source: stable/1.15/Clp/configure @ 2012

Last change on this file since 2012 was 2012, checked in by tkr, 6 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 1.0 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.15.6.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.15.6'
433PACKAGE_STRING='Clp 1.15.6'
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 DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_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 COIN_HAS_ABC_TRUE COIN_HAS_ABC_FALSE AMDINCDIR AMDLIB COIN_HAS_AMD_TRUE COIN_HAS_AMD_FALSE CHOLMODINCDIR CHOLMODLIB COIN_HAS_CHOLMOD_TRUE COIN_HAS_CHOLMOD_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE MUMPS_LIBS MUMPS_CFLAGS MUMPS_DATA MUMPS_DEPENDENCIES MUMPS_LIBS_INSTALLED MUMPS_CFLAGS_INSTALLED MUMPS_DATA_INSTALLED COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS MPIF77 FLIBS BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_WSMP_TRUE COIN_HAS_WSMP_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1001ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
1002ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1003ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1004ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1005ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1006ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1007ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1008ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1009ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1010ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1011ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1012ac_env_MPIF77_set=${MPIF77+set}
1013ac_env_MPIF77_value=$MPIF77
1014ac_cv_env_MPIF77_set=${MPIF77+set}
1015ac_cv_env_MPIF77_value=$MPIF77
1016
1017#
1018# Report the --help message.
1019#
1020if test "$ac_init_help" = "long"; then
1021  # Omit some internal or obsolete options to make the list less imposing.
1022  # This message is too long to be a string in the A/UX 3.1 sh.
1023  cat <<_ACEOF
1024\`configure' configures Clp 1.15.6 to adapt to many kinds of systems.
1025
1026Usage: $0 [OPTION]... [VAR=VALUE]...
1027
1028To assign environment variables (e.g., CC, CFLAGS...), specify them as
1029VAR=VALUE.  See below for descriptions of some of the useful variables.
1030
1031Defaults for the options are specified in brackets.
1032
1033Configuration:
1034  -h, --help              display this help and exit
1035      --help=short        display options specific to this package
1036      --help=recursive    display the short help of all the included packages
1037  -V, --version           display version information and exit
1038  -q, --quiet, --silent   do not print \`checking...' messages
1039      --cache-file=FILE   cache test results in FILE [disabled]
1040  -C, --config-cache      alias for \`--cache-file=config.cache'
1041  -n, --no-create         do not create output files
1042      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1043
1044_ACEOF
1045
1046  cat <<_ACEOF
1047Installation directories:
1048  --prefix=PREFIX         install architecture-independent files in PREFIX
1049                          [$ac_default_prefix]
1050  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1051                          [PREFIX]
1052
1053By default, \`make install' will install all the files in
1054\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1055an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1056for instance \`--prefix=\$HOME'.
1057
1058For better control, use the options below.
1059
1060Fine tuning of the installation directories:
1061  --bindir=DIR           user executables [EPREFIX/bin]
1062  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1063  --libexecdir=DIR       program executables [EPREFIX/libexec]
1064  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1065  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1066  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1067  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1068  --libdir=DIR           object code libraries [EPREFIX/lib]
1069  --includedir=DIR       C header files [PREFIX/include]
1070  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1071  --infodir=DIR          info documentation [PREFIX/info]
1072  --mandir=DIR           man documentation [PREFIX/man]
1073_ACEOF
1074
1075  cat <<\_ACEOF
1076
1077Program names:
1078  --program-prefix=PREFIX            prepend PREFIX to installed program names
1079  --program-suffix=SUFFIX            append SUFFIX to installed program names
1080  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1081
1082System types:
1083  --build=BUILD     configure for building on BUILD [guessed]
1084  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1085_ACEOF
1086fi
1087
1088if test -n "$ac_init_help"; then
1089  case $ac_init_help in
1090     short | recursive ) echo "Configuration of Clp 1.15.6:";;
1091   esac
1092  cat <<\_ACEOF
1093
1094Optional Features:
1095  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1096  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1097  --enable-debug          compile all projects with debug options tests
1098                          (implies --disable-shared)
1099  --enable-debug-clp compile project Clp with debug compiler flags
1100
1101  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1102  --enable-static[=PKGS]
1103                          build static libraries [default=no]
1104  --disable-dependency-tracking  speeds up one-time build
1105  --enable-dependency-tracking   do not reject slow dependency extractors
1106  --enable-maintainer-mode  enable make rules and dependencies not useful
1107                          (and sometimes confusing) to the casual installer
1108  --enable-shared[=PKGS]
1109                          build shared libraries [default=yes]
1110  --enable-fast-install[=PKGS]
1111                          optimize for fast installation [default=yes]
1112  --disable-libtool-lock  avoid locking (might break parallel builds)
1113  --disable-pkg-config    disable use of pkg-config (if available)
1114  --disable-interpackage-dependencies
1115                          disables deduction of Makefile dependencies from
1116                          package linker flags
1117  --enable-aboca          enables build of Aboca solver (set to 1,2,3,4)
1118  --disable-amd-libcheck skip the link check at configuration time
1119  --disable-cholmod-libcheck
1120                          skip the link check at configuration time
1121  --enable-gnu-packages   compile with GNU packages (disabled by default)
1122
1123Optional Packages:
1124  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1125  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1126  --with-clp-verbosity specify the debug verbosity level for project Clp
1127  --with-clp-checklevel specify the sanity check level for project Clp
1128  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1129  --with-pic              try to use only PIC/non-PIC objects [default=use
1130                          both]
1131  --with-tags[=TAGS]
1132                          include additional configurations [automatic]
1133  --with-coin-instdir     prefix of installation directory for precompiled
1134                          COIN packages
1135
1136  --with-coinutils-lib linker flags for using package CoinUtils
1137  --with-coinutils-incdir directory with header files for using package
1138                          CoinUtils
1139  --with-coinutils-datadir
1140                          directory with data files for using package
1141                          CoinUtils
1142  --with-osi-lib linker flags for using package Osi
1143  --with-osi-incdir directory with header files for using package Osi
1144  --with-osi-datadir directory with data files for using package Osi
1145  --with-ositests-lib linker flags for using package OsiTests
1146  --with-ositests-incdir directory with header files for using package
1147                          OsiTests
1148  --with-ositests-datadir directory with data files for using package OsiTests
1149  --with-sample-lib linker flags for using package Sample
1150  --with-sample-incdir directory with header files for using package Sample
1151  --with-sample-datadir directory with data files for using package Sample
1152  --with-netlib-lib linker flags for using package Netlib
1153  --with-netlib-incdir directory with header files for using package Netlib
1154  --with-netlib-datadir directory with data files for using package Netlib
1155  --with-amd-incdir specify the header file directory for library AMD
1156  --with-amd-lib specify the flags used to link with the library AMD
1157  --with-cholmod-incdir specify the header file directory for library CHOLMOD
1158  --with-cholmod-lib specify the flags used to link with the library CHOLMOD
1159  --with-glpk-lib linker flags for using package Glpk
1160  --with-glpk-incdir directory with header files for using package Glpk
1161  --with-glpk-datadir directory with data files for using package Glpk
1162  --with-mumps-lib linker flags for using package Mumps
1163  --with-mumps-incdir directory with header files for using package Mumps
1164  --with-mumps-datadir directory with data files for using package Mumps
1165  --with-wsmp             specify WSMP library
1166  --with-blas             specify BLAS library (or BUILD to enforce use of
1167                          ThirdParty/Blas)
1168  --with-blas-lib linker flags for using package Blas
1169  --with-blas-incdir directory with header files for using package Blas
1170  --with-blas-datadir directory with data files for using package Blas
1171  --with-dot              use dot (from graphviz) when creating documentation
1172                          with doxygen if available; --without-dot to disable
1173
1174Some influential environment variables:
1175  CDEFS       Additional -D flags to be used when compiling C code.
1176  ADD_CFLAGS  Additional C compiler options
1177  DBG_CFLAGS  Debug C compiler options
1178  OPT_CFLAGS  Optimize C compiler options
1179  CC          C compiler command
1180  CFLAGS      C compiler flags
1181  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1182              nonstandard directory <lib dir>
1183  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1184              headers in a nonstandard directory <include dir>
1185  MPICC       C MPI Compiler
1186  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1187  ADD_CXXFLAGS
1188              Additional C++ compiler options
1189  DBG_CXXFLAGS
1190              Debug C++ compiler options
1191  OPT_CXXFLAGS
1192              Optimize C++ compiler options
1193  CXX         C++ compiler command
1194  CXXFLAGS    C++ compiler flags
1195  MPICXX      C++ MPI Compiler
1196  CPP         C preprocessor
1197  CXXCPP      C++ preprocessor
1198  F77         Fortran 77 compiler command
1199  FFLAGS      Fortran 77 compiler flags
1200  PKG_CONFIG  path to pkg-config utility
1201  ADD_FFLAGS  Additional Fortran compiler options
1202  DBG_FFLAGS  Debug Fortran compiler options
1203  OPT_FFLAGS  Optimize Fortran compiler options
1204  MPIF77      Fortran MPI Compiler
1205
1206Use these variables to override the choices made by `configure' or to help
1207it to find libraries and programs with nonstandard names/locations.
1208
1209Report bugs to <clp@list.coin-or.org>.
1210_ACEOF
1211fi
1212
1213if test "$ac_init_help" = "recursive"; then
1214  # If there are subdirs, report their specific --help.
1215  ac_popdir=`pwd`
1216  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1217    test -d $ac_dir || continue
1218    ac_builddir=.
1219
1220if test "$ac_dir" != .; then
1221  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1222  # A "../" for each directory in $ac_dir_suffix.
1223  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1224else
1225  ac_dir_suffix= ac_top_builddir=
1226fi
1227
1228case $srcdir in
1229  .)  # No --srcdir option.  We are building in place.
1230    ac_srcdir=.
1231    if test -z "$ac_top_builddir"; then
1232       ac_top_srcdir=.
1233    else
1234       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1235    fi ;;
1236  [\\/]* | ?:[\\/]* )  # Absolute path.
1237    ac_srcdir=$srcdir$ac_dir_suffix;
1238    ac_top_srcdir=$srcdir ;;
1239  *) # Relative path.
1240    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1241    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1242esac
1243
1244# Do not use `cd foo && pwd` to compute absolute paths, because
1245# the directories may not exist.
1246case `pwd` in
1247.) ac_abs_builddir="$ac_dir";;
1248*)
1249  case "$ac_dir" in
1250  .) ac_abs_builddir=`pwd`;;
1251  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1252  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1253  esac;;
1254esac
1255case $ac_abs_builddir in
1256.) ac_abs_top_builddir=${ac_top_builddir}.;;
1257*)
1258  case ${ac_top_builddir}. in
1259  .) ac_abs_top_builddir=$ac_abs_builddir;;
1260  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1261  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1262  esac;;
1263esac
1264case $ac_abs_builddir in
1265.) ac_abs_srcdir=$ac_srcdir;;
1266*)
1267  case $ac_srcdir in
1268  .) ac_abs_srcdir=$ac_abs_builddir;;
1269  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1270  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1271  esac;;
1272esac
1273case $ac_abs_builddir in
1274.) ac_abs_top_srcdir=$ac_top_srcdir;;
1275*)
1276  case $ac_top_srcdir in
1277  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1278  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1279  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1280  esac;;
1281esac
1282
1283    cd $ac_dir
1284    # Check for guested configure; otherwise get Cygnus style configure.
1285    if test -f $ac_srcdir/configure.gnu; then
1286      echo
1287      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1288    elif test -f $ac_srcdir/configure; then
1289      echo
1290      $SHELL $ac_srcdir/configure  --help=recursive
1291    elif test -f $ac_srcdir/configure.ac ||
1292           test -f $ac_srcdir/configure.in; then
1293      echo
1294      $ac_configure --help
1295    else
1296      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1297    fi
1298    cd $ac_popdir
1299  done
1300fi
1301
1302test -n "$ac_init_help" && exit 0
1303if $ac_init_version; then
1304  cat <<\_ACEOF
1305Clp configure 1.15.6
1306generated by GNU Autoconf 2.59
1307
1308Copyright (C) 2003 Free Software Foundation, Inc.
1309This configure script is free software; the Free Software Foundation
1310gives unlimited permission to copy, distribute and modify it.
1311
1312
1313Copyright 2006 International Business Machines and others.
1314All Rights Reserved.
1315This file is part of the open source package Coin which is distributed
1316under the Eclipse Public License.
1317_ACEOF
1318  exit 0
1319fi
1320exec 5>config.log
1321cat >&5 <<_ACEOF
1322This file contains any messages produced by compilers while
1323running configure, to aid debugging if configure makes a mistake.
1324
1325It was created by Clp $as_me 1.15.6, which was
1326generated by GNU Autoconf 2.59.  Invocation command line was
1327
1328  $ $0 $@
1329
1330_ACEOF
1331{
1332cat <<_ASUNAME
1333## --------- ##
1334## Platform. ##
1335## --------- ##
1336
1337hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1338uname -m = `(uname -m) 2>/dev/null || echo unknown`
1339uname -r = `(uname -r) 2>/dev/null || echo unknown`
1340uname -s = `(uname -s) 2>/dev/null || echo unknown`
1341uname -v = `(uname -v) 2>/dev/null || echo unknown`
1342
1343/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1344/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1345
1346/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1347/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1348/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1349hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1350/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1351/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1352/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1353
1354_ASUNAME
1355
1356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1357for as_dir in $PATH
1358do
1359  IFS=$as_save_IFS
1360  test -z "$as_dir" && as_dir=.
1361  echo "PATH: $as_dir"
1362done
1363
1364} >&5
1365
1366cat >&5 <<_ACEOF
1367
1368
1369## ----------- ##
1370## Core tests. ##
1371## ----------- ##
1372
1373_ACEOF
1374
1375
1376# Keep a trace of the command line.
1377# Strip out --no-create and --no-recursion so they do not pile up.
1378# Strip out --silent because we don't want to record it for future runs.
1379# Also quote any args containing shell meta-characters.
1380# Make two passes to allow for proper duplicate-argument suppression.
1381ac_configure_args=
1382ac_configure_args0=
1383ac_configure_args1=
1384ac_sep=
1385ac_must_keep_next=false
1386for ac_pass in 1 2
1387do
1388  for ac_arg
1389  do
1390    case $ac_arg in
1391    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1392    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1393    | -silent | --silent | --silen | --sile | --sil)
1394      continue ;;
1395    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1396      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1397    esac
1398    case $ac_pass in
1399    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1400    2)
1401      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1402      if test $ac_must_keep_next = true; then
1403        ac_must_keep_next=false # Got value, back to normal.
1404      else
1405        case $ac_arg in
1406          *=* | --config-cache | -C | -disable-* | --disable-* \
1407          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1408          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1409          | -with-* | --with-* | -without-* | --without-* | --x)
1410            case "$ac_configure_args0 " in
1411              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1412            esac
1413            ;;
1414          -* ) ac_must_keep_next=true ;;
1415        esac
1416      fi
1417      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1418      # Get rid of the leading space.
1419      ac_sep=" "
1420      ;;
1421    esac
1422  done
1423done
1424$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1425$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1426
1427# When interrupted or exit'd, cleanup temporary files, and complete
1428# config.log.  We remove comments because anyway the quotes in there
1429# would cause problems or look ugly.
1430# WARNING: Be sure not to use single quotes in there, as some shells,
1431# such as our DU 5.0 friend, will then `close' the trap.
1432trap 'exit_status=$?
1433  # Save into config.log some information that might help in debugging.
1434  {
1435    echo
1436
1437    cat <<\_ASBOX
1438## ---------------- ##
1439## Cache variables. ##
1440## ---------------- ##
1441_ASBOX
1442    echo
1443    # The following way of writing the cache mishandles newlines in values,
1444{
1445  (set) 2>&1 |
1446    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1447    *ac_space=\ *)
1448      sed -n \
1449        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1450          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1451      ;;
1452    *)
1453      sed -n \
1454        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1455      ;;
1456    esac;
1457}
1458    echo
1459
1460    cat <<\_ASBOX
1461## ----------------- ##
1462## Output variables. ##
1463## ----------------- ##
1464_ASBOX
1465    echo
1466    for ac_var in $ac_subst_vars
1467    do
1468      eval ac_val=$`echo $ac_var`
1469      echo "$ac_var='"'"'$ac_val'"'"'"
1470    done | sort
1471    echo
1472
1473    if test -n "$ac_subst_files"; then
1474      cat <<\_ASBOX
1475## ------------- ##
1476## Output files. ##
1477## ------------- ##
1478_ASBOX
1479      echo
1480      for ac_var in $ac_subst_files
1481      do
1482        eval ac_val=$`echo $ac_var`
1483        echo "$ac_var='"'"'$ac_val'"'"'"
1484      done | sort
1485      echo
1486    fi
1487
1488    if test -s confdefs.h; then
1489      cat <<\_ASBOX
1490## ----------- ##
1491## confdefs.h. ##
1492## ----------- ##
1493_ASBOX
1494      echo
1495      sed "/^$/d" confdefs.h | sort
1496      echo
1497    fi
1498    test "$ac_signal" != 0 &&
1499      echo "$as_me: caught signal $ac_signal"
1500    echo "$as_me: exit $exit_status"
1501  } >&5
1502  rm -f core *.core &&
1503  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1504    exit $exit_status
1505     ' 0
1506for ac_signal in 1 2 13 15; do
1507  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1508done
1509ac_signal=0
1510
1511# confdefs.h avoids OS command line length limits that DEFS can exceed.
1512rm -rf conftest* confdefs.h
1513# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1514echo >confdefs.h
1515
1516# Predefined preprocessor variables.
1517
1518cat >>confdefs.h <<_ACEOF
1519#define PACKAGE_NAME "$PACKAGE_NAME"
1520_ACEOF
1521
1522
1523cat >>confdefs.h <<_ACEOF
1524#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1525_ACEOF
1526
1527
1528cat >>confdefs.h <<_ACEOF
1529#define PACKAGE_VERSION "$PACKAGE_VERSION"
1530_ACEOF
1531
1532
1533cat >>confdefs.h <<_ACEOF
1534#define PACKAGE_STRING "$PACKAGE_STRING"
1535_ACEOF
1536
1537
1538cat >>confdefs.h <<_ACEOF
1539#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1540_ACEOF
1541
1542
1543# Let the site file select an alternate cache file if it wants to.
1544# Prefer explicitly selected file to automatically selected ones.
1545if test -z "$CONFIG_SITE"; then
1546  if test "x$prefix" != xNONE; then
1547    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1548  else
1549    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1550  fi
1551fi
1552for ac_site_file in $CONFIG_SITE; do
1553  if test -r "$ac_site_file"; then
1554    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1555echo "$as_me: loading site script $ac_site_file" >&6;}
1556    sed 's/^/| /' "$ac_site_file" >&5
1557    . "$ac_site_file"
1558  fi
1559done
1560
1561if test -r "$cache_file"; then
1562  # Some versions of bash will fail to source /dev/null (special
1563  # files actually), so we avoid doing that.
1564  if test -f "$cache_file"; then
1565    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1566echo "$as_me: loading cache $cache_file" >&6;}
1567    case $cache_file in
1568      [\\/]* | ?:[\\/]* ) . $cache_file;;
1569      *)                      . ./$cache_file;;
1570    esac
1571  fi
1572else
1573  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1574echo "$as_me: creating cache $cache_file" >&6;}
1575  >$cache_file
1576fi
1577
1578# Check that the precious variables saved in the cache have kept the same
1579# value.
1580ac_cache_corrupted=false
1581for ac_var in `(set) 2>&1 |
1582               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1583  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1584  eval ac_new_set=\$ac_env_${ac_var}_set
1585  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1586  eval ac_new_val="\$ac_env_${ac_var}_value"
1587  case $ac_old_set,$ac_new_set in
1588    set,)
1589      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1590echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1591      ac_cache_corrupted=: ;;
1592    ,set)
1593      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1594echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1595      ac_cache_corrupted=: ;;
1596    ,);;
1597    *)
1598      if test "x$ac_old_val" != "x$ac_new_val"; then
1599        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1600echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1601        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1602echo "$as_me:   former value:  $ac_old_val" >&2;}
1603        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1604echo "$as_me:   current value: $ac_new_val" >&2;}
1605        ac_cache_corrupted=:
1606      fi;;
1607  esac
1608  # Pass precious variables to config.status.
1609  if test "$ac_new_set" = set; then
1610    case $ac_new_val in
1611    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1612      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1613    *) ac_arg=$ac_var=$ac_new_val ;;
1614    esac
1615    case " $ac_configure_args " in
1616      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1617      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1618    esac
1619  fi
1620done
1621if $ac_cache_corrupted; then
1622  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1623echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1624  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1625echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1626   { (exit 1); exit 1; }; }
1627fi
1628
1629ac_ext=c
1630ac_cpp='$CPP $CPPFLAGS'
1631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664# List one file in the package so that the configure script can test
1665# whether the package is actually there
1666
1667
1668# Where should everything be installed by default?  Here, we want it
1669# to be installed directly in 'bin', 'lib', 'include' subdirectories
1670# of the directory where configure is run.  The default would be
1671# /usr/local.
1672
1673
1674#############################################################################
1675#                         Standard build tool stuff                         #
1676#############################################################################
1677
1678# Get the system type
1679ac_aux_dir=
1680for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1681  if test -f $ac_dir/install-sh; then
1682    ac_aux_dir=$ac_dir
1683    ac_install_sh="$ac_aux_dir/install-sh -c"
1684    break
1685  elif test -f $ac_dir/install.sh; then
1686    ac_aux_dir=$ac_dir
1687    ac_install_sh="$ac_aux_dir/install.sh -c"
1688    break
1689  elif test -f $ac_dir/shtool; then
1690    ac_aux_dir=$ac_dir
1691    ac_install_sh="$ac_aux_dir/shtool install -c"
1692    break
1693  fi
1694done
1695if test -z "$ac_aux_dir"; then
1696  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1697echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1698   { (exit 1); exit 1; }; }
1699fi
1700ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1701ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1702ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1703
1704# Make sure we can run config.sub.
1705$ac_config_sub sun4 >/dev/null 2>&1 ||
1706  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1707echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1708   { (exit 1); exit 1; }; }
1709
1710echo "$as_me:$LINENO: checking build system type" >&5
1711echo $ECHO_N "checking build system type... $ECHO_C" >&6
1712if test "${ac_cv_build+set}" = set; then
1713  echo $ECHO_N "(cached) $ECHO_C" >&6
1714else
1715  ac_cv_build_alias=$build_alias
1716test -z "$ac_cv_build_alias" &&
1717  ac_cv_build_alias=`$ac_config_guess`
1718test -z "$ac_cv_build_alias" &&
1719  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1720echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1721   { (exit 1); exit 1; }; }
1722ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1723  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1724echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1725   { (exit 1); exit 1; }; }
1726
1727fi
1728echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1729echo "${ECHO_T}$ac_cv_build" >&6
1730build=$ac_cv_build
1731build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1732build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1733build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1734
1735
1736
1737# If this project depends on external projects, the Externals file in
1738# the source root directory contains definition of where to find those
1739# externals.  The following macro ensures that those externals are
1740# retrieved by svn if they are not there yet.
1741
1742# As backup, we make sure we don't loose an FLIBS if it has been set
1743# by the user
1744save_FLIBS="$FLIBS"
1745
1746# A useful makefile conditional that is always false
1747
1748
1749if false; then
1750  ALWAYS_FALSE_TRUE=
1751  ALWAYS_FALSE_FALSE='#'
1752else
1753  ALWAYS_FALSE_TRUE='#'
1754  ALWAYS_FALSE_FALSE=
1755fi
1756
1757
1758# We set the following variable so that we know later in AC_COIN_FINALIZE
1759# that we are in a project main directory
1760coin_projectdir=yes
1761
1762# Set the project's version numbers
1763
1764
1765cat >>confdefs.h <<_ACEOF
1766#define CLP_VERSION "$PACKAGE_VERSION"
1767_ACEOF
1768
1769
1770  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1771  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1772  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1773  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1774  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1775  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1776
1777cat >>confdefs.h <<_ACEOF
1778#define CLP_VERSION_MAJOR $coin_majorver
1779_ACEOF
1780
1781
1782cat >>confdefs.h <<_ACEOF
1783#define CLP_VERSION_MINOR $coin_minorver
1784_ACEOF
1785
1786
1787cat >>confdefs.h <<_ACEOF
1788#define CLP_VERSION_RELEASE $coin_releasever
1789_ACEOF
1790
1791
1792  # We use the following variable to have a string with the upper case
1793  # version of the project name
1794  COIN_PRJCT=CLP
1795
1796  # Set the project's SVN revision number. The complicated sed expression
1797  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1798  # as a single number.
1799  # Extract the first word of "svnversion", so it can be a program name with args.
1800set dummy svnversion; ac_word=$2
1801echo "$as_me:$LINENO: checking for $ac_word" >&5
1802echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803if test "${ac_cv_prog_have_svnversion+set}" = set; then
1804  echo $ECHO_N "(cached) $ECHO_C" >&6
1805else
1806  if test -n "$have_svnversion"; then
1807  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1808else
1809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810for as_dir in $PATH
1811do
1812  IFS=$as_save_IFS
1813  test -z "$as_dir" && as_dir=.
1814  for ac_exec_ext in '' $ac_executable_extensions; do
1815  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816    ac_cv_prog_have_svnversion="yes"
1817    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818    break 2
1819  fi
1820done
1821done
1822
1823  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1824fi
1825fi
1826have_svnversion=$ac_cv_prog_have_svnversion
1827if test -n "$have_svnversion"; then
1828  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1829echo "${ECHO_T}$have_svnversion" >&6
1830else
1831  echo "$as_me:$LINENO: result: no" >&5
1832echo "${ECHO_T}no" >&6
1833fi
1834
1835  if test "x$have_svnversion" = xyes; then
1836
1837    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1838    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1839      CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1840
1841cat >>confdefs.h <<_ACEOF
1842#define CLP_SVN_REV $CLP_SVN_REV
1843_ACEOF
1844
1845    fi
1846  fi
1847
1848
1849
1850# Capture libtool library version, if given.
1851 coin_libversion=13:6:12
1852
1853
1854
1855
1856# Check if user wants to produce debugging code
1857
1858echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1859echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1860
1861# Check whether --enable-debug or --disable-debug was given.
1862if test "${enable_debug+set}" = set; then
1863  enableval="$enable_debug"
1864  case "${enableval}" in
1865   yes) coin_debug_compile=true
1866        if test "${enable_shared+set}" = set; then :; else
1867          enable_shared=no
1868        fi
1869        ;;
1870   no)  coin_debug_compile=false
1871        ;;
1872   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1873echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1874   { (exit 1); exit 1; }; }
1875        ;;
1876esac
1877else
1878  coin_debug_compile=false
1879fi;
1880
1881# Check whether --enable-debug-clp or --disable-debug-clp was given.
1882if test "${enable_debug_clp+set}" = set; then
1883  enableval="$enable_debug_clp"
1884  case "${enableval}" in
1885    yes) coin_debug_compile=true
1886         ;;
1887    no)  coin_debug_compile=false
1888         ;;
1889    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1890echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1891   { (exit 1); exit 1; }; }
1892         ;;
1893 esac
1894else
1895  :
1896fi;
1897
1898 # m4_ifvaln([Clp],
1899
1900if test $coin_debug_compile = true; then
1901  echo "$as_me:$LINENO: result: yes" >&5
1902echo "${ECHO_T}yes" >&6
1903else
1904  echo "$as_me:$LINENO: result: no" >&5
1905echo "${ECHO_T}no" >&6
1906fi
1907
1908
1909# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1910if test "${with_clp_verbosity+set}" = set; then
1911  withval="$with_clp_verbosity"
1912  if test "$withval" = yes; then
1913                withval=1
1914              fi
1915              coin_clp_verbosity=$withval
1916else
1917  coin_clp_verbosity=0
1918fi;
1919
1920cat >>confdefs.h <<_ACEOF
1921#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1922_ACEOF
1923
1924
1925
1926# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1927if test "${with_clp_checklevel+set}" = set; then
1928  withval="$with_clp_checklevel"
1929  if test "$withval" = yes; then
1930                withval=1
1931              fi
1932              coin_clp_checklevel=$withval
1933else
1934  coin_clp_checklevel=0
1935fi;
1936
1937cat >>confdefs.h <<_ACEOF
1938#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1939_ACEOF
1940
1941
1942 # m4_ifvaln([Clp],
1943
1944
1945
1946# Get the name of the C++ compiler and appropriate compiler options
1947
1948
1949  # for backward compatibility
1950  # Check whether --enable-doscompile or --disable-doscompile was given.
1951if test "${enable_doscompile+set}" = set; then
1952  enableval="$enable_doscompile"
1953  enable_doscompile=$enableval
1954else
1955  enable_doscompile=no
1956fi;
1957
1958  # Check whether --enable-msvc or --disable-msvc was given.
1959if test "${enable_msvc+set}" = set; then
1960  enableval="$enable_msvc"
1961  enable_msvc=$enableval
1962else
1963  enable_msvc=no
1964     if test "$enable_doscompile" = msvc ; then
1965       enable_msvc=yes
1966     elif test "$enable_doscompile" != no ; then
1967       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1968echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1969   { (exit 1); exit 1; }; }
1970     fi
1971
1972fi;
1973
1974  if test "$enable_msvc" = MD; then
1975    enable_shared=yes
1976    enable_msvc=yes
1977  fi
1978
1979  if test "$enable_msvc" = yes; then
1980    case $build in
1981      *-cygwin* | *-mingw*) ;;
1982      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1983echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1984   { (exit 1); exit 1; }; } ;;
1985    esac
1986  fi
1987
1988
1989 case $build in
1990  *-mingw*)
1991    if test "${LD+set}" = set; then :; else
1992      LD=link
1993    fi
1994    ;;
1995 esac
1996 if test $enable_msvc = yes ; then
1997   if test "x${LD+set}" = xset; then :; else
1998     LD=link
1999   fi
2000 fi
2001
2002
2003
2004
2005ac_ext=c
2006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010
2011
2012# For consistency, we set the C compiler to the same value of the C++
2013# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2014if test x"$CXX" != x; then
2015  case "$CXX" in
2016    clang* ) ;;
2017    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2018      if test x"$CC" = x; then
2019        CC="$CXX"
2020        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2021echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2022      fi
2023      ;;
2024  esac
2025fi
2026
2027
2028
2029
2030
2031
2032coin_has_cc=yes
2033
2034save_cflags="$CFLAGS"
2035
2036# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2037# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2038# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2039# compiler. In this case, put cc after gcc.
2040
2041case $build in
2042  *-cygwin* | *-mingw*)
2043             if test "$enable_msvc" = yes ; then
2044               comps="icl cl gcc"
2045             else
2046               comps="gcc icl cl"
2047             fi ;;
2048  *-*-solaris*)
2049             # Extract the first word of "cc", so it can be a program name with args.
2050set dummy cc; ac_word=$2
2051echo "$as_me:$LINENO: checking for $ac_word" >&5
2052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2054  echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056  if test -n "$sol_cc_compiler"; then
2057  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2058else
2059  ac_prog_rejected=no
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063  IFS=$as_save_IFS
2064  test -z "$as_dir" && as_dir=.
2065  for ac_exec_ext in '' $ac_executable_extensions; do
2066  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2068       ac_prog_rejected=yes
2069       continue
2070     fi
2071    ac_cv_prog_sol_cc_compiler="cc"
2072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073    break 2
2074  fi
2075done
2076done
2077
2078if test $ac_prog_rejected = yes; then
2079  # We found a bogon in the path, so make sure we never use it.
2080  set dummy $ac_cv_prog_sol_cc_compiler
2081  shift
2082  if test $# != 0; then
2083    # We chose a different compiler from the bogus one.
2084    # However, it has the same basename, so the bogon will be chosen
2085    # first if we set sol_cc_compiler to just the basename; use the full file name.
2086    shift
2087    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2088  fi
2089fi
2090fi
2091fi
2092sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2093if test -n "$sol_cc_compiler"; then
2094  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2095echo "${ECHO_T}$sol_cc_compiler" >&6
2096else
2097  echo "$as_me:$LINENO: result: no" >&5
2098echo "${ECHO_T}no" >&6
2099fi
2100
2101             if test "$sol_cc_compiler" = "cc" ; then
2102               comps="cc xlc gcc pgcc icc"
2103             else
2104               comps="xlc gcc pgcc icc cc"
2105             fi
2106             ;;
2107  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2108  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2109  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2110esac
2111
2112# We delete the cached value, since the test might not have been
2113# performed with our choice of compilers earlier
2114$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2115# AC_MSG_NOTICE([C compiler candidates: $comps])
2116ac_ext=c
2117ac_cpp='$CPP $CPPFLAGS'
2118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2120ac_compiler_gnu=$ac_cv_c_compiler_gnu
2121if test -n "$ac_tool_prefix"; then
2122  for ac_prog in $comps
2123  do
2124    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2125set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2126echo "$as_me:$LINENO: checking for $ac_word" >&5
2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128if test "${ac_cv_prog_CC+set}" = set; then
2129  echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131  if test -n "$CC"; then
2132  ac_cv_prog_CC="$CC" # Let the user override the test.
2133else
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137  IFS=$as_save_IFS
2138  test -z "$as_dir" && as_dir=.
2139  for ac_exec_ext in '' $ac_executable_extensions; do
2140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143    break 2
2144  fi
2145done
2146done
2147
2148fi
2149fi
2150CC=$ac_cv_prog_CC
2151if test -n "$CC"; then
2152  echo "$as_me:$LINENO: result: $CC" >&5
2153echo "${ECHO_T}$CC" >&6
2154else
2155  echo "$as_me:$LINENO: result: no" >&5
2156echo "${ECHO_T}no" >&6
2157fi
2158
2159    test -n "$CC" && break
2160  done
2161fi
2162if test -z "$CC"; then
2163  ac_ct_CC=$CC
2164  for ac_prog in $comps
2165do
2166  # Extract the first word of "$ac_prog", so it can be a program name with args.
2167set dummy $ac_prog; ac_word=$2
2168echo "$as_me:$LINENO: checking for $ac_word" >&5
2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2171  echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173  if test -n "$ac_ct_CC"; then
2174  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2175else
2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177for as_dir in $PATH
2178do
2179  IFS=$as_save_IFS
2180  test -z "$as_dir" && as_dir=.
2181  for ac_exec_ext in '' $ac_executable_extensions; do
2182  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183    ac_cv_prog_ac_ct_CC="$ac_prog"
2184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185    break 2
2186  fi
2187done
2188done
2189
2190fi
2191fi
2192ac_ct_CC=$ac_cv_prog_ac_ct_CC
2193if test -n "$ac_ct_CC"; then
2194  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2195echo "${ECHO_T}$ac_ct_CC" >&6
2196else
2197  echo "$as_me:$LINENO: result: no" >&5
2198echo "${ECHO_T}no" >&6
2199fi
2200
2201  test -n "$ac_ct_CC" && break
2202done
2203
2204  CC=$ac_ct_CC
2205fi
2206
2207
2208test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2209See \`config.log' for more details." >&5
2210echo "$as_me: error: no acceptable C compiler found in \$PATH
2211See \`config.log' for more details." >&2;}
2212   { (exit 1); exit 1; }; }
2213
2214# Provide some information about the compiler.
2215echo "$as_me:$LINENO:" \
2216     "checking for C compiler version" >&5
2217ac_compiler=`set X $ac_compile; echo $2`
2218{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2219  (eval $ac_compiler --version </dev/null >&5) 2>&5
2220  ac_status=$?
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); }
2223{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2224  (eval $ac_compiler -v </dev/null >&5) 2>&5
2225  ac_status=$?
2226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227  (exit $ac_status); }
2228{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2229  (eval $ac_compiler -V </dev/null >&5) 2>&5
2230  ac_status=$?
2231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232  (exit $ac_status); }
2233
2234cat >conftest.$ac_ext <<_ACEOF
2235/* confdefs.h.  */
2236_ACEOF
2237cat confdefs.h >>conftest.$ac_ext
2238cat >>conftest.$ac_ext <<_ACEOF
2239/* end confdefs.h.  */
2240
2241int
2242main ()
2243{
2244
2245  ;
2246  return 0;
2247}
2248_ACEOF
2249ac_clean_files_save=$ac_clean_files
2250ac_clean_files="$ac_clean_files a.out a.exe b.out"
2251# Try to create an executable without -o first, disregard a.out.
2252# It will help us diagnose broken compilers, and finding out an intuition
2253# of exeext.
2254echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2255echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2256ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2257if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2258  (eval $ac_link_default) 2>&5
2259  ac_status=$?
2260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261  (exit $ac_status); }; then
2262  # Find the output, starting from the most likely.  This scheme is
2263# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2264# resort.
2265
2266# Be careful to initialize this variable, since it used to be cached.
2267# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2268ac_cv_exeext=
2269# b.out is created by i960 compilers.
2270for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2271do
2272  test -f "$ac_file" || continue
2273  case $ac_file in
2274    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2275        ;;
2276    conftest.$ac_ext )
2277        # This is the source file.
2278        ;;
2279    [ab].out )
2280        # We found the default executable, but exeext='' is most
2281        # certainly right.
2282        break;;
2283    *.* )
2284        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285        # FIXME: I believe we export ac_cv_exeext for Libtool,
2286        # but it would be cool to find out if it's true.  Does anybody
2287        # maintain Libtool? --akim.
2288        export ac_cv_exeext
2289        break;;
2290    * )
2291        break;;
2292  esac
2293done
2294else
2295  echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2299See \`config.log' for more details." >&5
2300echo "$as_me: error: C compiler cannot create executables
2301See \`config.log' for more details." >&2;}
2302   { (exit 77); exit 77; }; }
2303fi
2304
2305ac_exeext=$ac_cv_exeext
2306echo "$as_me:$LINENO: result: $ac_file" >&5
2307echo "${ECHO_T}$ac_file" >&6
2308
2309# Check the compiler produces executables we can run.  If not, either
2310# the compiler is broken, or we cross compile.
2311echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2312echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2313# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2314# If not cross compiling, check that we can run a simple program.
2315if test "$cross_compiling" != yes; then
2316  if { ac_try='./$ac_file'
2317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318  (eval $ac_try) 2>&5
2319  ac_status=$?
2320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321  (exit $ac_status); }; }; then
2322    cross_compiling=no
2323  else
2324    if test "$cross_compiling" = maybe; then
2325        cross_compiling=yes
2326    else
2327        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2328If you meant to cross compile, use \`--host'.
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: cannot run C compiled programs.
2331If you meant to cross compile, use \`--host'.
2332See \`config.log' for more details." >&2;}
2333   { (exit 1); exit 1; }; }
2334    fi
2335  fi
2336fi
2337echo "$as_me:$LINENO: result: yes" >&5
2338echo "${ECHO_T}yes" >&6
2339
2340rm -f a.out a.exe conftest$ac_cv_exeext b.out
2341ac_clean_files=$ac_clean_files_save
2342# Check the compiler produces executables we can run.  If not, either
2343# the compiler is broken, or we cross compile.
2344echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2345echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2346echo "$as_me:$LINENO: result: $cross_compiling" >&5
2347echo "${ECHO_T}$cross_compiling" >&6
2348
2349echo "$as_me:$LINENO: checking for suffix of executables" >&5
2350echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2352  (eval $ac_link) 2>&5
2353  ac_status=$?
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); }; then
2356  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2357# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2358# work properly (i.e., refer to `conftest.exe'), while it won't with
2359# `rm'.
2360for ac_file in conftest.exe conftest conftest.*; do
2361  test -f "$ac_file" || continue
2362  case $ac_file in
2363    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2364    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2365          export ac_cv_exeext
2366          break;;
2367    * ) break;;
2368  esac
2369done
2370else
2371  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2372See \`config.log' for more details." >&5
2373echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2374See \`config.log' for more details." >&2;}
2375   { (exit 1); exit 1; }; }
2376fi
2377
2378rm -f conftest$ac_cv_exeext
2379echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2380echo "${ECHO_T}$ac_cv_exeext" >&6
2381
2382rm -f conftest.$ac_ext
2383EXEEXT=$ac_cv_exeext
2384ac_exeext=$EXEEXT
2385echo "$as_me:$LINENO: checking for suffix of object files" >&5
2386echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2387if test "${ac_cv_objext+set}" = set; then
2388  echo $ECHO_N "(cached) $ECHO_C" >&6
2389else
2390  cat >conftest.$ac_ext <<_ACEOF
2391/* confdefs.h.  */
2392_ACEOF
2393cat confdefs.h >>conftest.$ac_ext
2394cat >>conftest.$ac_ext <<_ACEOF
2395/* end confdefs.h.  */
2396
2397int
2398main ()
2399{
2400
2401  ;
2402  return 0;
2403}
2404_ACEOF
2405rm -f conftest.o conftest.obj
2406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407  (eval $ac_compile) 2>&5
2408  ac_status=$?
2409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410  (exit $ac_status); }; then
2411  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2412  case $ac_file in
2413    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2414    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2415       break;;
2416  esac
2417done
2418else
2419  echo "$as_me: failed program was:" >&5
2420sed 's/^/| /' conftest.$ac_ext >&5
2421
2422{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2423See \`config.log' for more details." >&5
2424echo "$as_me: error: cannot compute suffix of object files: cannot compile
2425See \`config.log' for more details." >&2;}
2426   { (exit 1); exit 1; }; }
2427fi
2428
2429rm -f conftest.$ac_cv_objext conftest.$ac_ext
2430fi
2431echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2432echo "${ECHO_T}$ac_cv_objext" >&6
2433OBJEXT=$ac_cv_objext
2434ac_objext=$OBJEXT
2435echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2436echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2437if test "${ac_cv_c_compiler_gnu+set}" = set; then
2438  echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
2440  cat >conftest.$ac_ext <<_ACEOF
2441/* confdefs.h.  */
2442_ACEOF
2443cat confdefs.h >>conftest.$ac_ext
2444cat >>conftest.$ac_ext <<_ACEOF
2445/* end confdefs.h.  */
2446
2447int
2448main ()
2449{
2450#ifndef __GNUC__
2451       choke me
2452#endif
2453
2454  ;
2455  return 0;
2456}
2457_ACEOF
2458rm -f conftest.$ac_objext
2459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2460  (eval $ac_compile) 2>conftest.er1
2461  ac_status=$?
2462  grep -v '^ *+' conftest.er1 >conftest.err
2463  rm -f conftest.er1
2464  cat conftest.err >&5
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); } &&
2467         { ac_try='test -z "$ac_c_werror_flag"
2468                         || test ! -s conftest.err'
2469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470  (eval $ac_try) 2>&5
2471  ac_status=$?
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); }; } &&
2474         { ac_try='test -s conftest.$ac_objext'
2475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476  (eval $ac_try) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; }; then
2480  ac_compiler_gnu=yes
2481else
2482  echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485ac_compiler_gnu=no
2486fi
2487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2488ac_cv_c_compiler_gnu=$ac_compiler_gnu
2489
2490fi
2491echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2492echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2493GCC=`test $ac_compiler_gnu = yes && echo yes`
2494ac_test_CFLAGS=${CFLAGS+set}
2495ac_save_CFLAGS=$CFLAGS
2496CFLAGS="-g"
2497echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2498echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2499if test "${ac_cv_prog_cc_g+set}" = set; then
2500  echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502  cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h.  */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h.  */
2508
2509int
2510main ()
2511{
2512
2513  ;
2514  return 0;
2515}
2516_ACEOF
2517rm -f conftest.$ac_objext
2518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519  (eval $ac_compile) 2>conftest.er1
2520  ac_status=$?
2521  grep -v '^ *+' conftest.er1 >conftest.err
2522  rm -f conftest.er1
2523  cat conftest.err >&5
2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525  (exit $ac_status); } &&
2526         { ac_try='test -z "$ac_c_werror_flag"
2527                         || test ! -s conftest.err'
2528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529  (eval $ac_try) 2>&5
2530  ac_status=$?
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); }; } &&
2533         { ac_try='test -s conftest.$ac_objext'
2534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535  (eval $ac_try) 2>&5
2536  ac_status=$?
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); }; }; then
2539  ac_cv_prog_cc_g=yes
2540else
2541  echo "$as_me: failed program was:" >&5
2542sed 's/^/| /' conftest.$ac_ext >&5
2543
2544ac_cv_prog_cc_g=no
2545fi
2546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547fi
2548echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2549echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2550if test "$ac_test_CFLAGS" = set; then
2551  CFLAGS=$ac_save_CFLAGS
2552elif test $ac_cv_prog_cc_g = yes; then
2553  if test "$GCC" = yes; then
2554    CFLAGS="-g -O2"
2555  else
2556    CFLAGS="-g"
2557  fi
2558else
2559  if test "$GCC" = yes; then
2560    CFLAGS="-O2"
2561  else
2562    CFLAGS=
2563  fi
2564fi
2565echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2566echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2567if test "${ac_cv_prog_cc_stdc+set}" = set; then
2568  echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570  ac_cv_prog_cc_stdc=no
2571ac_save_CC=$CC
2572cat >conftest.$ac_ext <<_ACEOF
2573/* confdefs.h.  */
2574_ACEOF
2575cat confdefs.h >>conftest.$ac_ext
2576cat >>conftest.$ac_ext <<_ACEOF
2577/* end confdefs.h.  */
2578#include <stdarg.h>
2579#include <stdio.h>
2580#include <sys/types.h>
2581#include <sys/stat.h>
2582/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2583struct buf { int x; };
2584FILE * (*rcsopen) (struct buf *, struct stat *, int);
2585static char *e (p, i)
2586     char **p;
2587     int i;
2588{
2589  return p[i];
2590}
2591static char *f (char * (*g) (char **, int), char **p, ...)
2592{
2593  char *s;
2594  va_list v;
2595  va_start (v,p);
2596  s = g (p, va_arg (v,int));
2597  va_end (v);
2598  return s;
2599}
2600
2601/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2602   function prototypes and stuff, but not '\xHH' hex character constants.
2603   These don't provoke an error unfortunately, instead are silently treated
2604   as 'x'.  The following induces an error, until -std1 is added to get
2605   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2606   array size at least.  It's necessary to write '\x00'==0 to get something
2607   that's true only with -std1.  */
2608int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2609
2610int test (int i, double x);
2611struct s1 {int (*f) (int a);};
2612struct s2 {int (*f) (double a);};
2613int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2614int argc;
2615char **argv;
2616int
2617main ()
2618{
2619return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2620  ;
2621  return 0;
2622}
2623_ACEOF
2624# Don't try gcc -ansi; that turns off useful extensions and
2625# breaks some systems' header files.
2626# AIX                   -qlanglvl=ansi
2627# Ultrix and OSF/1      -std1
2628# HP-UX 10.20 and later -Ae
2629# HP-UX older versions  -Aa -D_HPUX_SOURCE
2630# SVR4                  -Xc -D__EXTENSIONS__
2631for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2632do
2633  CC="$ac_save_CC $ac_arg"
2634  rm -f conftest.$ac_objext
2635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2636  (eval $ac_compile) 2>conftest.er1
2637  ac_status=$?
2638  grep -v '^ *+' conftest.er1 >conftest.err
2639  rm -f conftest.er1
2640  cat conftest.err >&5
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); } &&
2643         { ac_try='test -z "$ac_c_werror_flag"
2644                         || test ! -s conftest.err'
2645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646  (eval $ac_try) 2>&5
2647  ac_status=$?
2648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649  (exit $ac_status); }; } &&
2650         { ac_try='test -s conftest.$ac_objext'
2651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652  (eval $ac_try) 2>&5
2653  ac_status=$?
2654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655  (exit $ac_status); }; }; then
2656  ac_cv_prog_cc_stdc=$ac_arg
2657break
2658else
2659  echo "$as_me: failed program was:" >&5
2660sed 's/^/| /' conftest.$ac_ext >&5
2661
2662fi
2663rm -f conftest.err conftest.$ac_objext
2664done
2665rm -f conftest.$ac_ext conftest.$ac_objext
2666CC=$ac_save_CC
2667
2668fi
2669
2670case "x$ac_cv_prog_cc_stdc" in
2671  x|xno)
2672    echo "$as_me:$LINENO: result: none needed" >&5
2673echo "${ECHO_T}none needed" >&6 ;;
2674  *)
2675    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2676echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2677    CC="$CC $ac_cv_prog_cc_stdc" ;;
2678esac
2679
2680# Some people use a C++ compiler to compile C.  Since we use `exit',
2681# in C++ we need to declare it.  In case someone uses the same compiler
2682# for both compiling C and C++ we need to have the C++ compiler decide
2683# the declaration of exit, since it's the most demanding environment.
2684cat >conftest.$ac_ext <<_ACEOF
2685#ifndef __cplusplus
2686  choke me
2687#endif
2688_ACEOF
2689rm -f conftest.$ac_objext
2690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691  (eval $ac_compile) 2>conftest.er1
2692  ac_status=$?
2693  grep -v '^ *+' conftest.er1 >conftest.err
2694  rm -f conftest.er1
2695  cat conftest.err >&5
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); } &&
2698         { ac_try='test -z "$ac_c_werror_flag"
2699                         || test ! -s conftest.err'
2700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701  (eval $ac_try) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; } &&
2705         { ac_try='test -s conftest.$ac_objext'
2706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707  (eval $ac_try) 2>&5
2708  ac_status=$?
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); }; }; then
2711  for ac_declaration in \
2712   '' \
2713   'extern "C" void std::exit (int) throw (); using std::exit;' \
2714   'extern "C" void std::exit (int); using std::exit;' \
2715   'extern "C" void exit (int) throw ();' \
2716   'extern "C" void exit (int);' \
2717   'void exit (int);'
2718do
2719  cat >conftest.$ac_ext <<_ACEOF
2720/* confdefs.h.  */
2721_ACEOF
2722cat confdefs.h >>conftest.$ac_ext
2723cat >>conftest.$ac_ext <<_ACEOF
2724/* end confdefs.h.  */
2725$ac_declaration
2726#include <stdlib.h>
2727int
2728main ()
2729{
2730exit (42);
2731  ;
2732  return 0;
2733}
2734_ACEOF
2735rm -f conftest.$ac_objext
2736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737  (eval $ac_compile) 2>conftest.er1
2738  ac_status=$?
2739  grep -v '^ *+' conftest.er1 >conftest.err
2740  rm -f conftest.er1
2741  cat conftest.err >&5
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); } &&
2744         { ac_try='test -z "$ac_c_werror_flag"
2745                         || test ! -s conftest.err'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; } &&
2751         { ac_try='test -s conftest.$ac_objext'
2752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753  (eval $ac_try) 2>&5
2754  ac_status=$?
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); }; }; then
2757  :
2758else
2759  echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762continue
2763fi
2764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765  cat >conftest.$ac_ext <<_ACEOF
2766/* confdefs.h.  */
2767_ACEOF
2768cat confdefs.h >>conftest.$ac_ext
2769cat >>conftest.$ac_ext <<_ACEOF
2770/* end confdefs.h.  */
2771$ac_declaration
2772int
2773main ()
2774{
2775exit (42);
2776  ;
2777  return 0;
2778}
2779_ACEOF
2780rm -f conftest.$ac_objext
2781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2782  (eval $ac_compile) 2>conftest.er1
2783  ac_status=$?
2784  grep -v '^ *+' conftest.er1 >conftest.err
2785  rm -f conftest.er1
2786  cat conftest.err >&5
2787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788  (exit $ac_status); } &&
2789         { ac_try='test -z "$ac_c_werror_flag"
2790                         || test ! -s conftest.err'
2791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792  (eval $ac_try) 2>&5
2793  ac_status=$?
2794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795  (exit $ac_status); }; } &&
2796         { ac_try='test -s conftest.$ac_objext'
2797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798  (eval $ac_try) 2>&5
2799  ac_status=$?
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); }; }; then
2802  break
2803else
2804  echo "$as_me: failed program was:" >&5
2805sed 's/^/| /' conftest.$ac_ext >&5
2806
2807fi
2808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2809done
2810rm -f conftest*
2811if test -n "$ac_declaration"; then
2812  echo '#ifdef __cplusplus' >>confdefs.h
2813  echo $ac_declaration      >>confdefs.h
2814  echo '#endif'             >>confdefs.h
2815fi
2816
2817else
2818  echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821fi
2822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823ac_ext=c
2824ac_cpp='$CPP $CPPFLAGS'
2825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2827ac_compiler_gnu=$ac_cv_c_compiler_gnu
2828
2829if test -z "$CC" ; then
2830  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2831echo "$as_me: error: Failed to find a C compiler!" >&2;}
2832   { (exit 1); exit 1; }; }
2833fi
2834# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2835case "$CC" in
2836  clang* ) ;;
2837  cl* | */cl* | CL* | */CL* )
2838    if test "$ac_cv_prog_cc_g" = yes ; then
2839      ac_cv_prog_cc_g=no
2840      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2841echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2842    fi ;;
2843  * )
2844    if test x"$CYGPATH_W" = x ; then
2845      CYGPATH_W=echo
2846    fi
2847    ;;
2848esac
2849CFLAGS="$save_cflags"
2850
2851# add automake conditional so we can recognize cl compiler in makefile
2852coin_cc_is_cl=false
2853case "$CC" in
2854  clang* ) ;;
2855  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2856    coin_cc_is_cl=true
2857    ;;
2858esac
2859
2860
2861if test $coin_cc_is_cl = true; then
2862  COIN_CC_IS_CL_TRUE=
2863  COIN_CC_IS_CL_FALSE='#'
2864else
2865  COIN_CC_IS_CL_TRUE='#'
2866  COIN_CC_IS_CL_FALSE=
2867fi
2868
2869
2870# Check if a project specific CFLAGS variable has been set
2871if test x$COIN_PRJCT != x; then
2872  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2873  if test x$coin_tmp = xset; then
2874    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2875  fi
2876fi
2877
2878if test x"$CFLAGS" = x; then
2879
2880  coin_add_cflags=
2881  coin_opt_cflags=
2882  coin_dbg_cflags=
2883  coin_warn_cflags=
2884
2885  if test "$GCC" = "yes"; then
2886    case "$CC" in
2887      icc* | */icc*)
2888        ;;
2889      *)
2890        coin_opt_cflags="-O3"
2891        coin_add_cflags="-pipe"
2892        coin_dbg_cflags="-g -O0"
2893        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2894        case $build in
2895          *-darwin*)
2896            ;;
2897          *)
2898            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2899            ;;
2900        esac
2901    esac
2902  fi
2903  if test -z "$coin_opt_cflags"; then
2904    case $build in
2905      *-cygwin* | *-mingw*)
2906        case "$CC" in
2907          clang* ) ;;
2908          cl* | */cl* | CL* | */CL*)
2909            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2910              coin_opt_cflags='-MD -O2'
2911              coin_dbg_cflags='-MDd'
2912            else
2913              coin_opt_cflags='-MT -O2'
2914              coin_dbg_cflags='-MTd'
2915            fi
2916            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2917            ;;
2918          icl* | */icl* | ICL* | */ICL*)
2919            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2920              coin_opt_cflags='-MD -Ox'
2921              coin_dbg_cflags='-MDd -debug'
2922            else
2923              coin_opt_cflags='-MT -Ox'
2924              coin_dbg_cflags='-MTd -debug'
2925            fi
2926            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2927            ;;
2928        esac
2929        ;;
2930      *-linux-*)
2931        case "$CC" in
2932          icc* | */icc*)
2933            coin_opt_cflags="-O3 -ip -mp1"
2934            coin_add_cflags=""
2935            coin_dbg_cflags="-g"
2936            # Check if -i_dynamic is necessary (for new glibc library)
2937            CFLAGS=
2938            cat >conftest.$ac_ext <<_ACEOF
2939/* confdefs.h.  */
2940_ACEOF
2941cat confdefs.h >>conftest.$ac_ext
2942cat >>conftest.$ac_ext <<_ACEOF
2943/* end confdefs.h.  */
2944
2945int
2946main ()
2947{
2948int i=0; i++;
2949  ;
2950  return 0;
2951}
2952_ACEOF
2953rm -f conftest.$ac_objext conftest$ac_exeext
2954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2955  (eval $ac_link) 2>conftest.er1
2956  ac_status=$?
2957  grep -v '^ *+' conftest.er1 >conftest.err
2958  rm -f conftest.er1
2959  cat conftest.err >&5
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); } &&
2962         { ac_try='test -z "$ac_c_werror_flag"
2963                         || test ! -s conftest.err'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; } &&
2969         { ac_try='test -s conftest$ac_exeext'
2970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971  (eval $ac_try) 2>&5
2972  ac_status=$?
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); }; }; then
2975  :
2976else
2977  echo "$as_me: failed program was:" >&5
2978sed 's/^/| /' conftest.$ac_ext >&5
2979
2980coin_add_cflags="-i_dynamic $coin_add_cflags"
2981fi
2982rm -f conftest.err conftest.$ac_objext \
2983      conftest$ac_exeext conftest.$ac_ext
2984            ;;
2985          pgcc* | */pgcc*)
2986            coin_opt_cflags="-fast"
2987            coin_add_cflags="-Kieee -pc 64"
2988            coin_dbg_cflags="-g"
2989            ;;
2990        esac
2991        ;;
2992      *-ibm-*)
2993        case "$CC" in
2994          xlc* | */xlc* | mpxlc* | */mpxlc*)
2995            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2996            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2997            coin_dbg_cflags="-g"
2998          ;;
2999        esac
3000        ;;
3001      *-hp-*)
3002        coin_opt_cflags="-O"
3003        coin_add_cflags="-Ae"
3004        coin_dbg_cflags="-g"
3005        ;;
3006      *-*-solaris*)
3007        coin_opt_cflags="-xO4"
3008        coin_dbg_cflags="-g"
3009        ;;
3010      *-sgi-*)
3011        coin_opt_cflags="-O -OPT:Olimit=0"
3012        coin_dbg_cflags="-g"
3013        ;;
3014    esac
3015  fi
3016
3017  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3018    coin_dbg_cflags="-g"
3019  fi
3020
3021  if test -z "$coin_opt_cflags"; then
3022    # Try if -O option works if nothing else is set
3023    CFLAGS="-O"
3024    cat >conftest.$ac_ext <<_ACEOF
3025/* confdefs.h.  */
3026_ACEOF
3027cat confdefs.h >>conftest.$ac_ext
3028cat >>conftest.$ac_ext <<_ACEOF
3029/* end confdefs.h.  */
3030
3031int
3032main ()
3033{
3034int i=0; i++;
3035  ;
3036  return 0;
3037}
3038_ACEOF
3039rm -f conftest.$ac_objext conftest$ac_exeext
3040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3041  (eval $ac_link) 2>conftest.er1
3042  ac_status=$?
3043  grep -v '^ *+' conftest.er1 >conftest.err
3044  rm -f conftest.er1
3045  cat conftest.err >&5
3046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047  (exit $ac_status); } &&
3048         { ac_try='test -z "$ac_c_werror_flag"
3049                         || test ! -s conftest.err'
3050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051  (eval $ac_try) 2>&5
3052  ac_status=$?
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); }; } &&
3055         { ac_try='test -s conftest$ac_exeext'
3056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057  (eval $ac_try) 2>&5
3058  ac_status=$?
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); }; }; then
3061  coin_opt_cflags="-O"
3062else
3063  echo "$as_me: failed program was:" >&5
3064sed 's/^/| /' conftest.$ac_ext >&5
3065
3066fi
3067rm -f conftest.err conftest.$ac_objext \
3068      conftest$ac_exeext conftest.$ac_ext
3069  fi
3070
3071  # if PM doesn't want the warning messages, take them out
3072  if test x"$coin_skip_warn_cflags" = xyes; then
3073    coin_warn_cflags=
3074  fi
3075
3076  if test x${DBG_CFLAGS+set} != xset; then
3077    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3078  fi
3079  if test x${OPT_CFLAGS+set} != xset; then
3080    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3081  fi
3082
3083  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3084  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3085
3086  if test "$coin_debug_compile" = "true"; then
3087    CFLAGS="$DBG_CFLAGS"
3088  else
3089    CFLAGS="$OPT_CFLAGS"
3090  fi
3091else
3092  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3093  if test x${DBG_CFLAGS+set} != xset; then
3094    DBG_CFLAGS="$CFLAGS"
3095  fi
3096  if test x${OPT_CFLAGS+set} != xset; then
3097    OPT_CFLAGS="$CFLAGS"
3098  fi
3099fi
3100
3101# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3102if test x$COIN_PRJCT != x; then
3103  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3104fi
3105
3106# Try if CFLAGS works
3107save_CFLAGS="$CFLAGS"
3108cat >conftest.$ac_ext <<_ACEOF
3109/* confdefs.h.  */
3110_ACEOF
3111cat confdefs.h >>conftest.$ac_ext
3112cat >>conftest.$ac_ext <<_ACEOF
3113/* end confdefs.h.  */
3114
3115int
3116main ()
3117{
3118int i=0; i++;
3119  ;
3120  return 0;
3121}
3122_ACEOF
3123rm -f conftest.$ac_objext conftest$ac_exeext
3124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3125  (eval $ac_link) 2>conftest.er1
3126  ac_status=$?
3127  grep -v '^ *+' conftest.er1 >conftest.err
3128  rm -f conftest.er1
3129  cat conftest.err >&5
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); } &&
3132         { ac_try='test -z "$ac_c_werror_flag"
3133                         || test ! -s conftest.err'
3134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3135  (eval $ac_try) 2>&5
3136  ac_status=$?
3137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138  (exit $ac_status); }; } &&
3139         { ac_try='test -s conftest$ac_exeext'
3140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3141  (eval $ac_try) 2>&5
3142  ac_status=$?
3143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144  (exit $ac_status); }; }; then
3145  :
3146else
3147  echo "$as_me: failed program was:" >&5
3148sed 's/^/| /' conftest.$ac_ext >&5
3149
3150CFLAGS=
3151fi
3152rm -f conftest.err conftest.$ac_objext \
3153      conftest$ac_exeext conftest.$ac_ext
3154if test -z "$CFLAGS"; then
3155  { 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
3156echo "$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;}
3157  CFLAGS='-O'
3158  cat >conftest.$ac_ext <<_ACEOF
3159/* confdefs.h.  */
3160_ACEOF
3161cat confdefs.h >>conftest.$ac_ext
3162cat >>conftest.$ac_ext <<_ACEOF
3163/* end confdefs.h.  */
3164
3165int
3166main ()
3167{
3168int i=0; i++;
3169  ;
3170  return 0;
3171}
3172_ACEOF
3173rm -f conftest.$ac_objext conftest$ac_exeext
3174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3175  (eval $ac_link) 2>conftest.er1
3176  ac_status=$?
3177  grep -v '^ *+' conftest.er1 >conftest.err
3178  rm -f conftest.er1
3179  cat conftest.err >&5
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); } &&
3182         { ac_try='test -z "$ac_c_werror_flag"
3183                         || test ! -s conftest.err'
3184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185  (eval $ac_try) 2>&5
3186  ac_status=$?
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); }; } &&
3189         { ac_try='test -s conftest$ac_exeext'
3190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191  (eval $ac_try) 2>&5
3192  ac_status=$?
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); }; }; then
3195  :
3196else
3197  echo "$as_me: failed program was:" >&5
3198sed 's/^/| /' conftest.$ac_ext >&5
3199
3200CFLAGS=
3201fi
3202rm -f conftest.err conftest.$ac_objext \
3203      conftest$ac_exeext conftest.$ac_ext
3204  if test -z "$CFLAGS"; then
3205    { 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
3206echo "$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;}
3207  fi
3208fi
3209
3210{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3211echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3212
3213
3214if test x"$MPICC" = x; then :; else
3215  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3216echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3217  CC="$MPICC"
3218fi
3219
3220# Correct the LD variable if we are using the MS or Intel-windows compiler
3221case "$CC" in
3222  clang* ) ;;
3223  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3224
3225 case $build in
3226  *-mingw*)
3227    if test "${LD+set}" = set; then :; else
3228      LD=link
3229    fi
3230    ;;
3231 esac
3232 if test $enable_msvc = yes ; then
3233   if test "x${LD+set}" = xset; then :; else
3234     LD=link
3235   fi
3236 fi
3237
3238    ;;
3239esac
3240
3241ac_ext=c
3242ac_cpp='$CPP $CPPFLAGS'
3243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246
3247
3248
3249 #Let's try if that overcomes configuration problem with VC++ 6.0
3250
3251ac_ext=cc
3252ac_cpp='$CXXCPP $CPPFLAGS'
3253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3256
3257
3258
3259
3260
3261
3262
3263coin_has_cxx=yes
3264
3265save_cxxflags="$CXXFLAGS"
3266# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3267case $build in
3268  *-cygwin* | *-mingw*)
3269      if test "$enable_msvc" = yes ; then
3270         comps="icl cl g++"
3271      else
3272         comps="g++ icl cl"
3273      fi ;;
3274  *-*-solaris*)
3275             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3276  *-darwin*) comps="g++ c++ CC" ;;
3277  *-linux-gnu*)
3278             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3279          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3280esac
3281
3282# We delete the cached value, since the test might not have been
3283# performed with our choice of compilers earlier
3284$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3285# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3286ac_ext=cc
3287ac_cpp='$CXXCPP $CPPFLAGS'
3288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3291if test -n "$ac_tool_prefix"; then
3292  for ac_prog in $CCC $comps
3293  do
3294    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3295set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3296echo "$as_me:$LINENO: checking for $ac_word" >&5
3297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298if test "${ac_cv_prog_CXX+set}" = set; then
3299  echo $ECHO_N "(cached) $ECHO_C" >&6
3300else
3301  if test -n "$CXX"; then
3302  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3303else
3304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305for as_dir in $PATH
3306do
3307  IFS=$as_save_IFS
3308  test -z "$as_dir" && as_dir=.
3309  for ac_exec_ext in '' $ac_executable_extensions; do
3310  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3312    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313    break 2
3314  fi
3315done
3316done
3317
3318fi
3319fi
3320CXX=$ac_cv_prog_CXX
3321if test -n "$CXX"; then
3322  echo "$as_me:$LINENO: result: $CXX" >&5
3323echo "${ECHO_T}$CXX" >&6
3324else
3325  echo "$as_me:$LINENO: result: no" >&5
3326echo "${ECHO_T}no" >&6
3327fi
3328
3329    test -n "$CXX" && break
3330  done
3331fi
3332if test -z "$CXX"; then
3333  ac_ct_CXX=$CXX
3334  for ac_prog in $CCC $comps
3335do
3336  # Extract the first word of "$ac_prog", so it can be a program name with args.
3337set dummy $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_ac_ct_CXX+set}" = set; then
3341  echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343  if test -n "$ac_ct_CXX"; then
3344  ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$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
3362ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3363if test -n "$ac_ct_CXX"; then
3364  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3365echo "${ECHO_T}$ac_ct_CXX" >&6
3366else
3367  echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369fi
3370
3371  test -n "$ac_ct_CXX" && break
3372done
3373test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3374
3375  CXX=$ac_ct_CXX
3376fi
3377
3378
3379# Provide some information about the compiler.
3380echo "$as_me:$LINENO:" \
3381     "checking for C++ compiler version" >&5
3382ac_compiler=`set X $ac_compile; echo $2`
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3384  (eval $ac_compiler --version </dev/null >&5) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }
3388{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3389  (eval $ac_compiler -v </dev/null >&5) 2>&5
3390  ac_status=$?
3391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392  (exit $ac_status); }
3393{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3394  (eval $ac_compiler -V </dev/null >&5) 2>&5
3395  ac_status=$?
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); }
3398
3399echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3400echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3401if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3402  echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404  cat >conftest.$ac_ext <<_ACEOF
3405/* confdefs.h.  */
3406_ACEOF
3407cat confdefs.h >>conftest.$ac_ext
3408cat >>conftest.$ac_ext <<_ACEOF
3409/* end confdefs.h.  */
3410
3411int
3412main ()
3413{
3414#ifndef __GNUC__
3415       choke me
3416#endif
3417
3418  ;
3419  return 0;
3420}
3421_ACEOF
3422rm -f conftest.$ac_objext
3423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3424  (eval $ac_compile) 2>conftest.er1
3425  ac_status=$?
3426  grep -v '^ *+' conftest.er1 >conftest.err
3427  rm -f conftest.er1
3428  cat conftest.err >&5
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); } &&
3431         { ac_try='test -z "$ac_cxx_werror_flag"
3432                         || test ! -s conftest.err'
3433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434  (eval $ac_try) 2>&5
3435  ac_status=$?
3436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); }; } &&
3438         { ac_try='test -s conftest.$ac_objext'
3439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440  (eval $ac_try) 2>&5
3441  ac_status=$?
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); }; }; then
3444  ac_compiler_gnu=yes
3445else
3446  echo "$as_me: failed program was:" >&5
3447sed 's/^/| /' conftest.$ac_ext >&5
3448
3449ac_compiler_gnu=no
3450fi
3451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3452ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3453
3454fi
3455echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3456echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3457GXX=`test $ac_compiler_gnu = yes && echo yes`
3458ac_test_CXXFLAGS=${CXXFLAGS+set}
3459ac_save_CXXFLAGS=$CXXFLAGS
3460CXXFLAGS="-g"
3461echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3462echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3463if test "${ac_cv_prog_cxx_g+set}" = set; then
3464  echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466  cat >conftest.$ac_ext <<_ACEOF
3467/* confdefs.h.  */
3468_ACEOF
3469cat confdefs.h >>conftest.$ac_ext
3470cat >>conftest.$ac_ext <<_ACEOF
3471/* end confdefs.h.  */
3472
3473int
3474main ()
3475{
3476
3477  ;
3478  return 0;
3479}
3480_ACEOF
3481rm -f conftest.$ac_objext
3482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3483  (eval $ac_compile) 2>conftest.er1
3484  ac_status=$?
3485  grep -v '^ *+' conftest.er1 >conftest.err
3486  rm -f conftest.er1
3487  cat conftest.err >&5
3488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489  (exit $ac_status); } &&
3490         { ac_try='test -z "$ac_cxx_werror_flag"
3491                         || test ! -s conftest.err'
3492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493  (eval $ac_try) 2>&5
3494  ac_status=$?
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); }; } &&
3497         { ac_try='test -s conftest.$ac_objext'
3498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499  (eval $ac_try) 2>&5
3500  ac_status=$?
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); }; }; then
3503  ac_cv_prog_cxx_g=yes
3504else
3505  echo "$as_me: failed program was:" >&5
3506sed 's/^/| /' conftest.$ac_ext >&5
3507
3508ac_cv_prog_cxx_g=no
3509fi
3510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3511fi
3512echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3513echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3514if test "$ac_test_CXXFLAGS" = set; then
3515  CXXFLAGS=$ac_save_CXXFLAGS
3516elif test $ac_cv_prog_cxx_g = yes; then
3517  if test "$GXX" = yes; then
3518    CXXFLAGS="-g -O2"
3519  else
3520    CXXFLAGS="-g"
3521  fi
3522else
3523  if test "$GXX" = yes; then
3524    CXXFLAGS="-O2"
3525  else
3526    CXXFLAGS=
3527  fi
3528fi
3529for ac_declaration in \
3530   '' \
3531   'extern "C" void std::exit (int) throw (); using std::exit;' \
3532   'extern "C" void std::exit (int); using std::exit;' \
3533   'extern "C" void exit (int) throw ();' \
3534   'extern "C" void exit (int);' \
3535   'void exit (int);'
3536do
3537  cat >conftest.$ac_ext <<_ACEOF
3538/* confdefs.h.  */
3539_ACEOF
3540cat confdefs.h >>conftest.$ac_ext
3541cat >>conftest.$ac_ext <<_ACEOF
3542/* end confdefs.h.  */
3543$ac_declaration
3544#include <stdlib.h>
3545int
3546main ()
3547{
3548exit (42);
3549  ;
3550  return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext
3554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555  (eval $ac_compile) 2>conftest.er1
3556  ac_status=$?
3557  grep -v '^ *+' conftest.er1 >conftest.err
3558  rm -f conftest.er1
3559  cat conftest.err >&5
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); } &&
3562         { ac_try='test -z "$ac_cxx_werror_flag"
3563                         || test ! -s conftest.err'
3564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3565  (eval $ac_try) 2>&5
3566  ac_status=$?
3567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568  (exit $ac_status); }; } &&
3569         { ac_try='test -s conftest.$ac_objext'
3570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571  (eval $ac_try) 2>&5
3572  ac_status=$?
3573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574  (exit $ac_status); }; }; then
3575  :
3576else
3577  echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580continue
3581fi
3582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3583  cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h.  */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h.  */
3589$ac_declaration
3590int
3591main ()
3592{
3593exit (42);
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598rm -f conftest.$ac_objext
3599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600  (eval $ac_compile) 2>conftest.er1
3601  ac_status=$?
3602  grep -v '^ *+' conftest.er1 >conftest.err
3603  rm -f conftest.er1
3604  cat conftest.err >&5
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); } &&
3607         { ac_try='test -z "$ac_cxx_werror_flag"
3608                         || test ! -s conftest.err'
3609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610  (eval $ac_try) 2>&5
3611  ac_status=$?
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); }; } &&
3614         { ac_try='test -s conftest.$ac_objext'
3615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616  (eval $ac_try) 2>&5
3617  ac_status=$?
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); }; }; then
3620  break
3621else
3622  echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625fi
3626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627done
3628rm -f conftest*
3629if test -n "$ac_declaration"; then
3630  echo '#ifdef __cplusplus' >>confdefs.h
3631  echo $ac_declaration      >>confdefs.h
3632  echo '#endif'             >>confdefs.h
3633fi
3634
3635ac_ext=cc
3636ac_cpp='$CXXCPP $CPPFLAGS'
3637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3640
3641
3642#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3643#thus, we test here whether $CXX is actually working
3644ac_ext=cc
3645ac_cpp='$CXXCPP $CPPFLAGS'
3646ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3647ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3648ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3649
3650echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3651echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3652cat >conftest.$ac_ext <<_ACEOF
3653/* confdefs.h.  */
3654_ACEOF
3655cat confdefs.h >>conftest.$ac_ext
3656cat >>conftest.$ac_ext <<_ACEOF
3657/* end confdefs.h.  */
3658
3659int
3660main ()
3661{
3662int i=0;
3663  ;
3664  return 0;
3665}
3666_ACEOF
3667rm -f conftest.$ac_objext
3668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3669  (eval $ac_compile) 2>conftest.er1
3670  ac_status=$?
3671  grep -v '^ *+' conftest.er1 >conftest.err
3672  rm -f conftest.er1
3673  cat conftest.err >&5
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); } &&
3676         { ac_try='test -z "$ac_cxx_werror_flag"
3677                         || test ! -s conftest.err'
3678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679  (eval $ac_try) 2>&5
3680  ac_status=$?
3681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682  (exit $ac_status); }; } &&
3683         { ac_try='test -s conftest.$ac_objext'
3684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685  (eval $ac_try) 2>&5
3686  ac_status=$?
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); }; }; then
3689  echo "$as_me:$LINENO: result: yes" >&5
3690echo "${ECHO_T}yes" >&6
3691else
3692  echo "$as_me: failed program was:" >&5
3693sed 's/^/| /' conftest.$ac_ext >&5
3694
3695echo "$as_me:$LINENO: result: no" >&5
3696echo "${ECHO_T}no" >&6
3697   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3698echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3699   { (exit 1); exit 1; }; }
3700
3701fi
3702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3703ac_ext=cc
3704ac_cpp='$CXXCPP $CPPFLAGS'
3705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3708
3709
3710coin_cxx_is_cl=false
3711# It seems that we need to cleanup something here for the Windows
3712case "$CXX" in
3713  clang* ) ;;
3714  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3715    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3716    mv confdefs.hh confdefs.h
3717    coin_cxx_is_cl=true
3718    ;;
3719esac
3720
3721# add automake conditional so we can recognize cl compiler in makefile
3722
3723
3724if test $coin_cxx_is_cl = true; then
3725  COIN_CXX_IS_CL_TRUE=
3726  COIN_CXX_IS_CL_FALSE='#'
3727else
3728  COIN_CXX_IS_CL_TRUE='#'
3729  COIN_CXX_IS_CL_FALSE=
3730fi
3731
3732
3733# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3734case "$CXX" in
3735  clang* ) ;;
3736  cl* | */cl* | CL* | */CL* )
3737    if test "$ac_cv_prog_cxx_g" = yes ; then
3738      ac_cv_prog_cxx_g=no
3739      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3740echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3741    fi ;;
3742  * )
3743    if test x"$CYGPATH_W" = x ; then
3744      CYGPATH_W=echo
3745    fi
3746    ;;
3747esac
3748CXXFLAGS="$save_cxxflags"
3749
3750# Check if a project specific CXXFLAGS variable has been set
3751if test x$COIN_PRJCT != x; then
3752  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3753  if test x$coin_tmp = xset; then
3754    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3755  fi
3756fi
3757
3758if test x"$CXXFLAGS" = x; then
3759
3760# ToDo decide whether we want -DNDEBUG for optimization
3761  coin_add_cxxflags=
3762  coin_opt_cxxflags=
3763  coin_dbg_cxxflags=
3764  coin_warn_cxxflags=
3765
3766  if test "$GXX" = "yes"; then
3767    case "$CXX" in
3768      icpc* | */icpc*)
3769        ;;
3770      *)
3771# ToDo decide about unroll-loops
3772        coin_opt_cxxflags="-O3"
3773        coin_add_cxxflags="-pipe"
3774        coin_dbg_cxxflags="-g -O0"
3775        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3776        case $build in
3777          *-darwin*)
3778            ;;
3779          *)
3780            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3781            ;;
3782        esac
3783    esac
3784  fi
3785
3786# Note that we do not need to cover GCC in the following tests.
3787
3788  if test -z "$coin_opt_cxxflags"; then
3789    case $build in
3790      *-cygwin* | *-mingw*)
3791        case "$CXX" in
3792          clang* ) ;;
3793          cl* | */cl* | CL* | */CL*)
3794            # The MT and MTd options are mutually exclusive
3795            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3796               coin_opt_cxxflags='-MD -O2'
3797               coin_dbg_cxxflags='-MDd'
3798            else
3799               coin_opt_cxxflags='-MT -O2'
3800               coin_dbg_cxxflags='-MTd'
3801            fi
3802            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3803            ;;
3804          icl* | */icl* | ICL* | */ICL*)
3805          # The MT and MTd options are mutually exclusive
3806            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3807              coin_opt_cxxflags='-MD -Ox'
3808              coin_dbg_cxxflags='-MDd -debug'
3809            else
3810              coin_opt_cxxflags='-MT -Ox'
3811              coin_dbg_cxxflags='-MTd -debug'
3812            fi
3813            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3814            ;;
3815        esac
3816        ;;
3817      *-linux-*)
3818        case "$CXX" in
3819          icpc* | */icpc*)
3820            coin_opt_cxxflags="-O3 -ip -mp1"
3821            coin_add_cxxflags=""
3822            coin_dbg_cxxflags="-g"
3823            # Check if -i_dynamic is necessary (for new glibc library)
3824            CXXFLAGS=
3825            cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h.  */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h.  */
3831
3832int
3833main ()
3834{
3835int i=0; i++;
3836  ;
3837  return 0;
3838}
3839_ACEOF
3840rm -f conftest.$ac_objext conftest$ac_exeext
3841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3842  (eval $ac_link) 2>conftest.er1
3843  ac_status=$?
3844  grep -v '^ *+' conftest.er1 >conftest.err
3845  rm -f conftest.er1
3846  cat conftest.err >&5
3847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848  (exit $ac_status); } &&
3849         { ac_try='test -z "$ac_cxx_werror_flag"
3850                         || test ! -s conftest.err'
3851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852  (eval $ac_try) 2>&5
3853  ac_status=$?
3854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855  (exit $ac_status); }; } &&
3856         { ac_try='test -s conftest$ac_exeext'
3857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858  (eval $ac_try) 2>&5
3859  ac_status=$?
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); }; }; then
3862  :
3863else
3864  echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3868fi
3869rm -f conftest.err conftest.$ac_objext \
3870      conftest$ac_exeext conftest.$ac_ext
3871            ;;
3872          pgCC* | */pgCC*)
3873            coin_opt_cxxflags="-fast"
3874            coin_add_cxxflags="-Kieee -pc 64"
3875            coin_dbg_cxxflags="-g"
3876            ;;
3877        esac
3878        ;;
3879      *-ibm-*)
3880        case "$CXX" in
3881          xlC* | */xlC* | mpxlC* | */mpxlC*)
3882            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3883            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3884            coin_dbg_cxxflags="-g"
3885            ;;
3886        esac
3887        ;;
3888      *-hp-*)
3889        case "$CXX" in
3890          aCC* | */aCC* )
3891            coin_opt_cxxflags="-O"
3892            coin_add_cxxflags="-AA"
3893            coin_dbg_cxxflags="-g"
3894            ;;
3895        esac
3896        ;;
3897      *-*-solaris*)
3898          coin_opt_cxxflags="-O4"
3899          coin_dbg_cxxflags="-g"
3900        ;;
3901    esac
3902  fi
3903
3904# Generic flag settings. If these don't work, add a case above.
3905
3906  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3907    coin_dbg_cxxflags="-g"
3908  fi
3909
3910  if test -z "$coin_opt_cxxflags"; then
3911    # Try if -O option works if nothing else is set
3912    CXXFLAGS=-O
3913    cat >conftest.$ac_ext <<_ACEOF
3914/* confdefs.h.  */
3915_ACEOF
3916cat confdefs.h >>conftest.$ac_ext
3917cat >>conftest.$ac_ext <<_ACEOF
3918/* end confdefs.h.  */
3919
3920int
3921main ()
3922{
3923int i=0; i++;
3924  ;
3925  return 0;
3926}
3927_ACEOF
3928rm -f conftest.$ac_objext conftest$ac_exeext
3929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3930  (eval $ac_link) 2>conftest.er1
3931  ac_status=$?
3932  grep -v '^ *+' conftest.er1 >conftest.err
3933  rm -f conftest.er1
3934  cat conftest.err >&5
3935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936  (exit $ac_status); } &&
3937         { ac_try='test -z "$ac_cxx_werror_flag"
3938                         || test ! -s conftest.err'
3939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940  (eval $ac_try) 2>&5
3941  ac_status=$?
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); }; } &&
3944         { ac_try='test -s conftest$ac_exeext'
3945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946  (eval $ac_try) 2>&5
3947  ac_status=$?
3948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949  (exit $ac_status); }; }; then
3950  coin_opt_cxxflags="-O"
3951else
3952  echo "$as_me: failed program was:" >&5
3953sed 's/^/| /' conftest.$ac_ext >&5
3954
3955fi
3956rm -f conftest.err conftest.$ac_objext \
3957      conftest$ac_exeext conftest.$ac_ext
3958  fi
3959
3960  # if PM doesn't want the warning messages, take them out
3961  if test x"$coin_skip_warn_cxxflags" = xyes; then
3962    coin_warn_cxxflags=
3963  fi
3964
3965# Do final setup of flags based on values determined above.
3966
3967  if test x${DBG_CXXFLAGS+set} != xset; then
3968    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3969  fi
3970  if test x${OPT_CXXFLAGS+set} != xset; then
3971    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3972  fi
3973
3974  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3975  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3976
3977  if test "$coin_debug_compile" = "true"; then
3978    CXXFLAGS="$DBG_CXXFLAGS"
3979  else
3980    CXXFLAGS="$OPT_CXXFLAGS"
3981  fi
3982
3983# Handle the case where CXXFLAGS was set externally.
3984else
3985  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3986  if test x${DBG_CXXFLAGS+set} != xset; then
3987    DBG_CXXFLAGS="$CXXFLAGS"
3988  fi
3989  if test x${OPT_CXXFLAGS+set} != xset; then
3990    OPT_CXXFLAGS="$CXXFLAGS"
3991  fi
3992fi
3993
3994# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3995if test x$COIN_PRJCT != x; then
3996  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3997fi
3998
3999# Try if CXXFLAGS works
4000save_CXXFLAGS="$CXXFLAGS"
4001cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h.  */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h.  */
4007
4008int
4009main ()
4010{
4011int i=0; i++;
4012  ;
4013  return 0;
4014}
4015_ACEOF
4016rm -f conftest.$ac_objext conftest$ac_exeext
4017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4018  (eval $ac_link) 2>conftest.er1
4019  ac_status=$?
4020  grep -v '^ *+' conftest.er1 >conftest.err
4021  rm -f conftest.er1
4022  cat conftest.err >&5
4023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); } &&
4025         { ac_try='test -z "$ac_cxx_werror_flag"
4026                         || test ! -s conftest.err'
4027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028  (eval $ac_try) 2>&5
4029  ac_status=$?
4030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031  (exit $ac_status); }; } &&
4032         { ac_try='test -s conftest$ac_exeext'
4033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034  (eval $ac_try) 2>&5
4035  ac_status=$?
4036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037  (exit $ac_status); }; }; then
4038  :
4039else
4040  echo "$as_me: failed program was:" >&5
4041sed 's/^/| /' conftest.$ac_ext >&5
4042
4043CXXFLAGS=
4044fi
4045rm -f conftest.err conftest.$ac_objext \
4046      conftest$ac_exeext conftest.$ac_ext
4047if test -z "$CXXFLAGS"; then
4048  { 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
4049echo "$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;}
4050  CXXFLAGS='-O'
4051  cat >conftest.$ac_ext <<_ACEOF
4052/* confdefs.h.  */
4053_ACEOF
4054cat confdefs.h >>conftest.$ac_ext
4055cat >>conftest.$ac_ext <<_ACEOF
4056/* end confdefs.h.  */
4057
4058int
4059main ()
4060{
4061int i=0; i++;
4062  ;
4063  return 0;
4064}
4065_ACEOF
4066rm -f conftest.$ac_objext conftest$ac_exeext
4067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4068  (eval $ac_link) 2>conftest.er1
4069  ac_status=$?
4070  grep -v '^ *+' conftest.er1 >conftest.err
4071  rm -f conftest.er1
4072  cat conftest.err >&5
4073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074  (exit $ac_status); } &&
4075         { ac_try='test -z "$ac_cxx_werror_flag"
4076                         || test ! -s conftest.err'
4077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078  (eval $ac_try) 2>&5
4079  ac_status=$?
4080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081  (exit $ac_status); }; } &&
4082         { ac_try='test -s conftest$ac_exeext'
4083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084  (eval $ac_try) 2>&5
4085  ac_status=$?
4086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087  (exit $ac_status); }; }; then
4088  :
4089else
4090  echo "$as_me: failed program was:" >&5
4091sed 's/^/| /' conftest.$ac_ext >&5
4092
4093CXXFLAGS=
4094fi
4095rm -f conftest.err conftest.$ac_objext \
4096      conftest$ac_exeext conftest.$ac_ext
4097  if test -z "$CXXFLAGS"; then
4098    { 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
4099echo "$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;}
4100  fi
4101fi
4102
4103{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4104echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4105
4106
4107if test x"$MPICXX" = x; then :; else
4108  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4109echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4110  CXX="$MPICXX"
4111fi
4112
4113# correct the LD variable in a mingw build with MS or intel compiler
4114case "$CXX" in
4115  clang* ) ;;
4116  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4117
4118 case $build in
4119  *-mingw*)
4120    if test "${LD+set}" = set; then :; else
4121      LD=link
4122    fi
4123    ;;
4124 esac
4125 if test $enable_msvc = yes ; then
4126   if test "x${LD+set}" = xset; then :; else
4127     LD=link
4128   fi
4129 fi
4130
4131    ;;
4132esac
4133
4134ac_ext=c
4135ac_cpp='$CPP $CPPFLAGS'
4136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4138ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139
4140
4141
4142# Initialize automake and libtool
4143{
4144
4145
4146
4147# START
4148
4149coin_disable_shared=no
4150# Test if force_shared has been set
4151if test "x" = xforce_shared; then
4152  if test x$enable_shared = xno; then
4153    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4154echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4155   { (exit 1); exit 1; }; }
4156  fi
4157  enable_shared=yes;
4158else
4159  # On Cygwin and AIX, building DLLs doesn't work
4160  case $build in
4161    *-cygwin* | *-mingw*)
4162      coin_disable_shared=yes
4163      if test x"$enable_shared" = xyes; then
4164        case "$CC" in
4165          clang* )
4166            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4167echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4168            ;;
4169          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4170            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4171echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4172            ;;
4173          *gcc*)
4174            if test x"$enable_dependency_linking" = xyes; then
4175              coin_disable_shared=no
4176            else
4177              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
4178echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
4179            fi
4180            ;;
4181          *)
4182            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4183echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4184            ;;
4185        esac
4186      fi
4187    ;;
4188    *-aix*)
4189      coin_disable_shared=yes
4190      platform=AIX
4191      if test x"$enable_shared" = xyes; then
4192        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4193echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4194      fi
4195    ;;
4196  esac
4197fi
4198if test x"$coin_disable_shared" = xyes; then
4199  if test x"$enable_shared" = xyes; then
4200    :
4201  else
4202    # we don't disable shared, because it was not selected anyway
4203    coin_disable_shared=no
4204  fi
4205  enable_shared=no
4206fi
4207# By default, we only want the shared objects to be compiled
4208# Check whether --enable-static or --disable-static was given.
4209if test "${enable_static+set}" = set; then
4210  enableval="$enable_static"
4211  p=${PACKAGE-default}
4212    case $enableval in
4213    yes) enable_static=yes ;;
4214    no) enable_static=no ;;
4215    *)
4216     enable_static=no
4217      # Look at the argument we got.  We use all the common list separators.
4218      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4219      for pkg in $enableval; do
4220        IFS="$lt_save_ifs"
4221        if test "X$pkg" = "X$p"; then
4222          enable_static=yes
4223        fi
4224      done
4225      IFS="$lt_save_ifs"
4226      ;;
4227    esac
4228else
4229  enable_static=no
4230fi;
4231
4232
4233
4234
4235# Initialize automake
4236echo "$as_me:$LINENO: checking for egrep" >&5
4237echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4238if test "${ac_cv_prog_egrep+set}" = set; then
4239  echo $ECHO_N "(cached) $ECHO_C" >&6
4240else
4241  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4242    then ac_cv_prog_egrep='grep -E'
4243    else ac_cv_prog_egrep='egrep'
4244    fi
4245fi
4246echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4247echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4248 EGREP=$ac_cv_prog_egrep
4249
4250
4251echo "$as_me:$LINENO: checking whether ln -s works" >&5
4252echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4253LN_S=$as_ln_s
4254if test "$LN_S" = "ln -s"; then
4255  echo "$as_me:$LINENO: result: yes" >&5
4256echo "${ECHO_T}yes" >&6
4257else
4258  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4259echo "${ECHO_T}no, using $LN_S" >&6
4260fi
4261
4262am__api_version="1.9"
4263# Find a good install program.  We prefer a C program (faster),
4264# so one script is as good as another.  But avoid the broken or
4265# incompatible versions:
4266# SysV /etc/install, /usr/sbin/install
4267# SunOS /usr/etc/install
4268# IRIX /sbin/install
4269# AIX /bin/install
4270# AmigaOS /C/install, which installs bootblocks on floppy discs
4271# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4272# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4273# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4274# OS/2's system install, which has a completely different semantic
4275# ./install, which can be erroneously created by make from ./install.sh.
4276echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4277echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4278if test -z "$INSTALL"; then
4279if test "${ac_cv_path_install+set}" = set; then
4280  echo $ECHO_N "(cached) $ECHO_C" >&6
4281else
4282  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283for as_dir in $PATH
4284do
4285  IFS=$as_save_IFS
4286  test -z "$as_dir" && as_dir=.
4287  # Account for people who put trailing slashes in PATH elements.
4288case $as_dir/ in
4289  ./ | .// | /cC/* | \
4290  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4291  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4292  /usr/ucb/* ) ;;
4293  *)
4294    # OSF1 and SCO ODT 3.0 have their own names for install.
4295    # Don't use installbsd from OSF since it installs stuff as root
4296    # by default.
4297    for ac_prog in ginstall scoinst install; do
4298      for ac_exec_ext in '' $ac_executable_extensions; do
4299        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4300          if test $ac_prog = install &&
4301            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4302            # AIX install.  It has an incompatible calling convention.
4303            :
4304          elif test $ac_prog = install &&
4305            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4306            # program-specific install script used by HP pwplus--don't use.
4307            :
4308          else
4309            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4310            break 3
4311          fi
4312        fi
4313      done
4314    done
4315    ;;
4316esac
4317done
4318
4319
4320fi
4321  if test "${ac_cv_path_install+set}" = set; then
4322    INSTALL=$ac_cv_path_install
4323  else
4324    # As a last resort, use the slow shell script.  We don't cache a
4325    # path for INSTALL within a source directory, because that will
4326    # break other packages using the cache if that directory is
4327    # removed, or if the path is relative.
4328    INSTALL=$ac_install_sh
4329  fi
4330fi
4331echo "$as_me:$LINENO: result: $INSTALL" >&5
4332echo "${ECHO_T}$INSTALL" >&6
4333
4334# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4335# It thinks the first close brace ends the variable substitution.
4336test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4337
4338test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4339
4340test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4341
4342echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4343echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4344# Just in case
4345sleep 1
4346echo timestamp > conftest.file
4347# Do `set' in a subshell so we don't clobber the current shell's
4348# arguments.  Must try -L first in case configure is actually a
4349# symlink; some systems play weird games with the mod time of symlinks
4350# (eg FreeBSD returns the mod time of the symlink's containing
4351# directory).
4352if (
4353   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4354   if test "$*" = "X"; then
4355      # -L didn't work.
4356      set X `ls -t $srcdir/configure conftest.file`
4357   fi
4358   rm -f conftest.file
4359   if test "$*" != "X $srcdir/configure conftest.file" \
4360      && test "$*" != "X conftest.file $srcdir/configure"; then
4361
4362      # If neither matched, then we have a broken ls.  This can happen
4363      # if, for instance, CONFIG_SHELL is bash and it inherits a
4364      # broken ls alias from the environment.  This has actually
4365      # happened.  Such a system could not be considered "sane".
4366      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4367alias in your environment" >&5
4368echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4369alias in your environment" >&2;}
4370   { (exit 1); exit 1; }; }
4371   fi
4372
4373   test "$2" = conftest.file
4374   )
4375then
4376   # Ok.
4377   :
4378else
4379   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4380Check your system clock" >&5
4381echo "$as_me: error: newly created file is older than distributed files!
4382Check your system clock" >&2;}
4383   { (exit 1); exit 1; }; }
4384fi
4385echo "$as_me:$LINENO: result: yes" >&5
4386echo "${ECHO_T}yes" >&6
4387test "$program_prefix" != NONE &&
4388  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4389# Use a double $ so make ignores it.
4390test "$program_suffix" != NONE &&
4391  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4392# Double any \ or $.  echo might interpret backslashes.
4393# By default was `s,x,x', remove it if useless.
4394cat <<\_ACEOF >conftest.sed
4395s/[\\$]/&&/g;s/;s,x,x,$//
4396_ACEOF
4397program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4398rm conftest.sed
4399
4400# expand $ac_aux_dir to an absolute path
4401am_aux_dir=`cd $ac_aux_dir && pwd`
4402
4403test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4404# Use eval to expand $SHELL
4405if eval "$MISSING --run true"; then
4406  am_missing_run="$MISSING --run "
4407else
4408  am_missing_run=
4409  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4410echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4411fi
4412
4413if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4414  # We used to keeping the `.' as first argument, in order to
4415  # allow $(mkdir_p) to be used without argument.  As in
4416  #   $(mkdir_p) $(somedir)
4417  # where $(somedir) is conditionally defined.  However this is wrong
4418  # for two reasons:
4419  #  1. if the package is installed by a user who cannot write `.'
4420  #     make install will fail,
4421  #  2. the above comment should most certainly read
4422  #     $(mkdir_p) $(DESTDIR)$(somedir)
4423  #     so it does not work when $(somedir) is undefined and
4424  #     $(DESTDIR) is not.
4425  #  To support the latter case, we have to write
4426  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4427  #  so the `.' trick is pointless.
4428  mkdir_p='mkdir -p --'
4429else
4430  # On NextStep and OpenStep, the `mkdir' command does not
4431  # recognize any option.  It will interpret all options as
4432  # directories to create, and then abort because `.' already
4433  # exists.
4434  for d in ./-p ./--version;
4435  do
4436    test -d $d && rmdir $d
4437  done
4438  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4439  if test -f "$ac_aux_dir/mkinstalldirs"; then
4440    mkdir_p='$(mkinstalldirs)'
4441  else
4442    mkdir_p='$(install_sh) -d'
4443  fi
4444fi
4445
4446for ac_prog in gawk mawk nawk awk
4447do
4448  # Extract the first word of "$ac_prog", so it can be a program name with args.
4449set dummy $ac_prog; ac_word=$2
4450echo "$as_me:$LINENO: checking for $ac_word" >&5
4451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4452if test "${ac_cv_prog_AWK+set}" = set; then
4453  echo $ECHO_N "(cached) $ECHO_C" >&6
4454else
4455  if test -n "$AWK"; then
4456  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4457else
4458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH
4460do
4461  IFS=$as_save_IFS
4462  test -z "$as_dir" && as_dir=.
4463  for ac_exec_ext in '' $ac_executable_extensions; do
4464  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465    ac_cv_prog_AWK="$ac_prog"
4466    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467    break 2
4468  fi
4469done
4470done
4471
4472fi
4473fi
4474AWK=$ac_cv_prog_AWK
4475if test -n "$AWK"; then
4476  echo "$as_me:$LINENO: result: $AWK" >&5
4477echo "${ECHO_T}$AWK" >&6
4478else
4479  echo "$as_me:$LINENO: result: no" >&5
4480echo "${ECHO_T}no" >&6
4481fi
4482
4483  test -n "$AWK" && break
4484done
4485
4486echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4487echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4488set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4489if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4490  echo $ECHO_N "(cached) $ECHO_C" >&6
4491else
4492  cat >conftest.make <<\_ACEOF
4493all:
4494        @echo 'ac_maketemp="$(MAKE)"'
4495_ACEOF
4496# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4497eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4498if test -n "$ac_maketemp"; then
4499  eval ac_cv_prog_make_${ac_make}_set=yes
4500else
4501  eval ac_cv_prog_make_${ac_make}_set=no
4502fi
4503rm -f conftest.make
4504fi
4505if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4506  echo "$as_me:$LINENO: result: yes" >&5
4507echo "${ECHO_T}yes" >&6
4508  SET_MAKE=
4509else
4510  echo "$as_me:$LINENO: result: no" >&5
4511echo "${ECHO_T}no" >&6
4512  SET_MAKE="MAKE=${MAKE-make}"
4513fi
4514
4515rm -rf .tst 2>/dev/null
4516mkdir .tst 2>/dev/null
4517if test -d .tst; then
4518  am__leading_dot=.
4519else
4520  am__leading_dot=_
4521fi
4522rmdir .tst 2>/dev/null
4523
4524DEPDIR="${am__leading_dot}deps"
4525
4526          ac_config_commands="$ac_config_commands depfiles"
4527
4528
4529am_make=${MAKE-make}
4530cat > confinc << 'END'
4531am__doit:
4532        @echo done
4533.PHONY: am__doit
4534END
4535# If we don't find an include directive, just comment out the code.
4536echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4537echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4538am__include="#"
4539am__quote=
4540_am_result=none
4541# First try GNU make style include.
4542echo "include confinc" > confmf
4543# We grep out `Entering directory' and `Leaving directory'
4544# messages which can occur if `w' ends up in MAKEFLAGS.
4545# In particular we don't look at `^make:' because GNU make might
4546# be invoked under some other name (usually "gmake"), in which
4547# case it prints its new name instead of `make'.
4548if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4549   am__include=include
4550   am__quote=
4551   _am_result=GNU
4552fi
4553# Now try BSD make style include.
4554if test "$am__include" = "#"; then
4555   echo '.include "confinc"' > confmf
4556   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4557      am__include=.include
4558      am__quote="\""
4559      _am_result=BSD
4560   fi
4561fi
4562
4563
4564echo "$as_me:$LINENO: result: $_am_result" >&5
4565echo "${ECHO_T}$_am_result" >&6
4566rm -f confinc confmf
4567
4568# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4569if test "${enable_dependency_tracking+set}" = set; then
4570  enableval="$enable_dependency_tracking"
4571
4572fi;
4573if test "x$enable_dependency_tracking" != xno; then
4574  am_depcomp="$ac_aux_dir/depcomp"
4575  AMDEPBACKSLASH='\'
4576fi
4577
4578
4579if test "x$enable_dependency_tracking" != xno; then
4580  AMDEP_TRUE=
4581  AMDEP_FALSE='#'
4582else
4583  AMDEP_TRUE='#'
4584  AMDEP_FALSE=
4585fi
4586
4587
4588
4589
4590
4591
4592# AC_MSG_NOTICE([Beginning automake initialisation.])
4593# Stuff for automake
4594# test to see if srcdir already configured
4595if test "`cd $srcdir && pwd`" != "`pwd`" &&
4596   test -f $srcdir/config.status; then
4597  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4598echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4599   { (exit 1); exit 1; }; }
4600fi
4601
4602# test whether we have cygpath
4603if test -z "$CYGPATH_W"; then
4604  if (cygpath --version) >/dev/null 2>/dev/null; then
4605    CYGPATH_W='cygpath -w'
4606  else
4607    CYGPATH_W=echo
4608  fi
4609fi
4610
4611
4612# Define the identity of the package.
4613 PACKAGE='clp'
4614 VERSION='1.15.6'
4615
4616
4617cat >>confdefs.h <<_ACEOF
4618#define PACKAGE "$PACKAGE"
4619_ACEOF
4620
4621
4622cat >>confdefs.h <<_ACEOF
4623#define VERSION "$VERSION"
4624_ACEOF
4625
4626# Some tools Automake needs.
4627
4628ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4629
4630
4631AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4632
4633
4634AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4635
4636
4637AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4638
4639
4640MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4641
4642install_sh=${install_sh-"$am_aux_dir/install-sh"}
4643
4644# Installed binaries are usually stripped using `strip' when the user
4645# run `make install-strip'.  However `strip' might not be the right
4646# tool to use in cross-compilation environments, therefore Automake
4647# will honor the `STRIP' environment variable to overrule this program.
4648if test "$cross_compiling" != no; then
4649  if test -n "$ac_tool_prefix"; then
4650  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4651set dummy ${ac_tool_prefix}strip; ac_word=$2
4652echo "$as_me:$LINENO: checking for $ac_word" >&5
4653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4654if test "${ac_cv_prog_STRIP+set}" = set; then
4655  echo $ECHO_N "(cached) $ECHO_C" >&6
4656else
4657  if test -n "$STRIP"; then
4658  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4659else
4660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663  IFS=$as_save_IFS
4664  test -z "$as_dir" && as_dir=.
4665  for ac_exec_ext in '' $ac_executable_extensions; do
4666  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669    break 2
4670  fi
4671done
4672done
4673
4674fi
4675fi
4676STRIP=$ac_cv_prog_STRIP
4677if test -n "$STRIP"; then
4678  echo "$as_me:$LINENO: result: $STRIP" >&5
4679echo "${ECHO_T}$STRIP" >&6
4680else
4681  echo "$as_me:$LINENO: result: no" >&5
4682echo "${ECHO_T}no" >&6
4683fi
4684
4685fi
4686if test -z "$ac_cv_prog_STRIP"; then
4687  ac_ct_STRIP=$STRIP
4688  # Extract the first word of "strip", so it can be a program name with args.
4689set dummy strip; ac_word=$2
4690echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4693  echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695  if test -n "$ac_ct_STRIP"; then
4696  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701  IFS=$as_save_IFS
4702  test -z "$as_dir" && as_dir=.
4703  for ac_exec_ext in '' $ac_executable_extensions; do
4704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705    ac_cv_prog_ac_ct_STRIP="strip"
4706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707    break 2
4708  fi
4709done
4710done
4711
4712  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4713fi
4714fi
4715ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4716if test -n "$ac_ct_STRIP"; then
4717  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4718echo "${ECHO_T}$ac_ct_STRIP" >&6
4719else
4720  echo "$as_me:$LINENO: result: no" >&5
4721echo "${ECHO_T}no" >&6
4722fi
4723
4724  STRIP=$ac_ct_STRIP
4725else
4726  STRIP="$ac_cv_prog_STRIP"
4727fi
4728
4729fi
4730INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4731
4732# We need awk for the "check" target.  The system "awk" is bad on
4733# some platforms.
4734# Always define AMTAR for backward compatibility.
4735
4736AMTAR=${AMTAR-"${am_missing_run}tar"}
4737
4738am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4739
4740
4741
4742
4743depcc="$CC"   am_compiler_list=
4744
4745echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4746echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4747if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4748  echo $ECHO_N "(cached) $ECHO_C" >&6
4749else
4750  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4751  # We make a subdir and do the tests there.  Otherwise we can end up
4752  # making bogus files that we don't know about and never remove.  For
4753  # instance it was reported that on HP-UX the gcc test will end up
4754  # making a dummy file named `D' -- because `-MD' means `put the output
4755  # in D'.
4756  mkdir conftest.dir
4757  # Copy depcomp to subdir because otherwise we won't find it if we're
4758  # using a relative directory.
4759  cp "$am_depcomp" conftest.dir
4760  cd conftest.dir
4761  # We will build objects and dependencies in a subdirectory because
4762  # it helps to detect inapplicable dependency modes.  For instance
4763  # both Tru64's cc and ICC support -MD to output dependencies as a
4764  # side effect of compilation, but ICC will put the dependencies in
4765  # the current directory while Tru64 will put them in the object
4766  # directory.
4767  mkdir sub
4768
4769  am_cv_CC_dependencies_compiler_type=none
4770  if test "$am_compiler_list" = ""; then
4771     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4772  fi
4773  for depmode in $am_compiler_list; do
4774    # Setup a source with many dependencies, because some compilers
4775    # like to wrap large dependency lists on column 80 (with \), and
4776    # we should not choose a depcomp mode which is confused by this.
4777    #
4778    # We need to recreate these files for each test, as the compiler may
4779    # overwrite some of them when testing with obscure command lines.
4780    # This happens at least with the AIX C compiler.
4781    : > sub/conftest.c
4782    for i in 1 2 3 4 5 6; do
4783      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4784      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4785      # Solaris 8's {/usr,}/bin/sh.
4786      touch sub/conftst$i.h
4787    done
4788    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4789
4790    case $depmode in
4791    nosideeffect)
4792      # after this tag, mechanisms are not by side-effect, so they'll
4793      # only be used when explicitly requested
4794      if test "x$enable_dependency_tracking" = xyes; then
4795        continue
4796      else
4797        break
4798      fi
4799      ;;
4800    none) break ;;
4801    esac
4802    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4803    # mode.  It turns out that the SunPro C++ compiler does not properly
4804    # handle `-M -o', and we need to detect this.
4805    if depmode=$depmode \
4806       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4807       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4808       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4809         >/dev/null 2>conftest.err &&
4810       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4811       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4812       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4813      # icc doesn't choke on unknown options, it will just issue warnings
4814      # or remarks (even with -Werror).  So we grep stderr for any message
4815      # that says an option was ignored or not supported.
4816      # When given -MP, icc 7.0 and 7.1 complain thusly:
4817      #   icc: Command line warning: ignoring option '-M'; no argument required
4818      # The diagnosis changed in icc 8.0:
4819      #   icc: Command line remark: option '-MP' not supported
4820      if (grep 'ignoring option' conftest.err ||
4821          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4822        am_cv_CC_dependencies_compiler_type=$depmode
4823        break
4824      fi
4825    fi
4826  done
4827
4828  cd ..
4829  rm -rf conftest.dir
4830else
4831  am_cv_CC_dependencies_compiler_type=none
4832fi
4833
4834fi
4835echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4836echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4837CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4838
4839
4840
4841if
4842  test "x$enable_dependency_tracking" != xno \
4843  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4844  am__fastdepCC_TRUE=
4845  am__fastdepCC_FALSE='#'
4846else
4847  am__fastdepCC_TRUE='#'
4848  am__fastdepCC_FALSE=
4849fi
4850
4851
4852depcc="$CXX"  am_compiler_list=
4853
4854echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4855echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4856if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4857  echo $ECHO_N "(cached) $ECHO_C" >&6
4858else
4859  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4860  # We make a subdir and do the tests there.  Otherwise we can end up
4861  # making bogus files that we don't know about and never remove.  For
4862  # instance it was reported that on HP-UX the gcc test will end up
4863  # making a dummy file named `D' -- because `-MD' means `put the output
4864  # in D'.
4865  mkdir conftest.dir
4866  # Copy depcomp to subdir because otherwise we won't find it if we're
4867  # using a relative directory.
4868  cp "$am_depcomp" conftest.dir
4869  cd conftest.dir
4870  # We will build objects and dependencies in a subdirectory because
4871  # it helps to detect inapplicable dependency modes.  For instance
4872  # both Tru64's cc and ICC support -MD to output dependencies as a
4873  # side effect of compilation, but ICC will put the dependencies in
4874  # the current directory while Tru64 will put them in the object
4875  # directory.
4876  mkdir sub
4877
4878  am_cv_CXX_dependencies_compiler_type=none
4879  if test "$am_compiler_list" = ""; then
4880     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4881  fi
4882  for depmode in $am_compiler_list; do
4883    # Setup a source with many dependencies, because some compilers
4884    # like to wrap large dependency lists on column 80 (with \), and
4885    # we should not choose a depcomp mode which is confused by this.
4886    #
4887    # We need to recreate these files for each test, as the compiler may
4888    # overwrite some of them when testing with obscure command lines.
4889    # This happens at least with the AIX C compiler.
4890    : > sub/conftest.c
4891    for i in 1 2 3 4 5 6; do
4892      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4893      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4894      # Solaris 8's {/usr,}/bin/sh.
4895      touch sub/conftst$i.h
4896    done
4897    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4898
4899    case $depmode in
4900    nosideeffect)
4901      # after this tag, mechanisms are not by side-effect, so they'll
4902      # only be used when explicitly requested
4903      if test "x$enable_dependency_tracking" = xyes; then
4904        continue
4905      else
4906        break
4907      fi
4908      ;;
4909    none) break ;;
4910    esac
4911    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4912    # mode.  It turns out that the SunPro C++ compiler does not properly
4913    # handle `-M -o', and we need to detect this.
4914    if depmode=$depmode \
4915       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4916       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4917       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4918         >/dev/null 2>conftest.err &&
4919       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4920       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4921       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4922      # icc doesn't choke on unknown options, it will just issue warnings
4923      # or remarks (even with -Werror).  So we grep stderr for any message
4924      # that says an option was ignored or not supported.
4925      # When given -MP, icc 7.0 and 7.1 complain thusly:
4926      #   icc: Command line warning: ignoring option '-M'; no argument required
4927      # The diagnosis changed in icc 8.0:
4928      #   icc: Command line remark: option '-MP' not supported
4929      if (grep 'ignoring option' conftest.err ||
4930          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4931        am_cv_CXX_dependencies_compiler_type=$depmode
4932        break
4933      fi
4934    fi
4935  done
4936
4937  cd ..
4938  rm -rf conftest.dir
4939else
4940  am_cv_CXX_dependencies_compiler_type=none
4941fi
4942
4943fi
4944echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4945echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4946CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4947
4948
4949
4950if
4951  test "x$enable_dependency_tracking" != xno \
4952  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4953  am__fastdepCXX_TRUE=
4954  am__fastdepCXX_FALSE='#'
4955else
4956  am__fastdepCXX_TRUE='#'
4957  am__fastdepCXX_FALSE=
4958fi
4959
4960
4961
4962echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4963echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4964    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4965if test "${enable_maintainer_mode+set}" = set; then
4966  enableval="$enable_maintainer_mode"
4967  USE_MAINTAINER_MODE=$enableval
4968else
4969  USE_MAINTAINER_MODE=no
4970fi;
4971  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4972echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4973
4974
4975if test $USE_MAINTAINER_MODE = yes; then
4976  MAINTAINER_MODE_TRUE=
4977  MAINTAINER_MODE_FALSE='#'
4978else
4979  MAINTAINER_MODE_TRUE='#'
4980  MAINTAINER_MODE_FALSE=
4981fi
4982
4983  MAINT=$MAINTAINER_MODE_TRUE
4984
4985
4986
4987coin_have_externals=no
4988if test "$enable_maintainer_mode" = yes; then
4989
4990  # If maintainer mode is chosen, we make sure that the correct versions
4991  # of the tools are used, and that we know where libtool.m4 is (to
4992  # recreate acinclude.m4)
4993
4994
4995  LIBTOOLM4=
4996  # Normally, $HOME
4997  AUTOTOOLS_DFLT=$HOME
4998
4999  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5000echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5001if test "${ac_cv_use_correct_autotools+set}" = set; then
5002  echo $ECHO_N "(cached) $ECHO_C" >&6
5003else
5004  ac_cv_use_correct_autotools=check
5005fi
5006echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5007echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5008
5009  if test $ac_cv_use_correct_autotools = check; then
5010    ac_cv_use_correct_autotools=yes
5011    # Check if we have autoconf
5012    # Extract the first word of "autoconf", so it can be a program name with args.
5013set dummy autoconf; ac_word=$2
5014echo "$as_me:$LINENO: checking for $ac_word" >&5
5015echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5016if test "${ac_cv_prog_have_autoconf+set}" = set; then
5017  echo $ECHO_N "(cached) $ECHO_C" >&6
5018else
5019  if test -n "$have_autoconf"; then
5020  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5021else
5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025  IFS=$as_save_IFS
5026  test -z "$as_dir" && as_dir=.
5027  for ac_exec_ext in '' $ac_executable_extensions; do
5028  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029    ac_cv_prog_have_autoconf="yes"
5030    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031    break 2
5032  fi
5033done
5034done
5035
5036  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5037fi
5038fi
5039have_autoconf=$ac_cv_prog_have_autoconf
5040if test -n "$have_autoconf"; then
5041  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5042echo "${ECHO_T}$have_autoconf" >&6
5043else
5044  echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
5046fi
5047
5048    if test $have_autoconf = no; then
5049      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5050echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5051   { (exit 1); exit 1; }; }
5052    fi
5053
5054    # Check whether autoconf is the correct version
5055    correct_version='2.59'
5056    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5057    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5058echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5059    autoconf --version > confauto.out 2>&1
5060    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5061      echo "$as_me:$LINENO: result: yes" >&5
5062echo "${ECHO_T}yes" >&6
5063    else
5064      rm -f confauto.out
5065      echo "$as_me:$LINENO: result: no" >&5
5066echo "${ECHO_T}no" >&6
5067      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5068echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5069   { (exit 1); exit 1; }; }
5070    fi
5071    rm -f confauto.out
5072
5073    # Check if the executable autoconf is picked up from the correct location
5074    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5075echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5076    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5077    autoconf_dir=`cd $autoconf_dir; pwd`
5078    if test x$AUTOTOOLS_DIR = x; then
5079      want_dir=$AUTOTOOLS_DFLT/bin
5080    else
5081      want_dir=$AUTOTOOLS_DIR/bin
5082    fi
5083    if test $autoconf_dir = `cd $want_dir; pwd`; then
5084      echo "$as_me:$LINENO: result: yes" >&5
5085echo "${ECHO_T}yes" >&6
5086    else
5087      rm -f confauto.out
5088      echo "$as_me:$LINENO: result: no" >&5
5089echo "${ECHO_T}no" >&6
5090      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5091echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5092   { (exit 1); exit 1; }; }
5093    fi
5094
5095    # Check if we have automake
5096    # Extract the first word of "automake", so it can be a program name with args.
5097set dummy automake; ac_word=$2
5098echo "$as_me:$LINENO: checking for $ac_word" >&5
5099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5100if test "${ac_cv_prog_have_automake+set}" = set; then
5101  echo $ECHO_N "(cached) $ECHO_C" >&6
5102else
5103  if test -n "$have_automake"; then
5104  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5105else
5106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107for as_dir in $PATH
5108do
5109  IFS=$as_save_IFS
5110  test -z "$as_dir" && as_dir=.
5111  for ac_exec_ext in '' $ac_executable_extensions; do
5112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5113    ac_cv_prog_have_automake="yes"
5114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115    break 2
5116  fi
5117done
5118done
5119
5120  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5121fi
5122fi
5123have_automake=$ac_cv_prog_have_automake
5124if test -n "$have_automake"; then
5125  echo "$as_me:$LINENO: result: $have_automake" >&5
5126echo "${ECHO_T}$have_automake" >&6
5127else
5128  echo "$as_me:$LINENO: result: no" >&5
5129echo "${ECHO_T}no" >&6
5130fi
5131
5132    if test $have_automake = no; then
5133      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5134echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5135   { (exit 1); exit 1; }; }
5136    fi
5137
5138    # Check whether automake is the correct version
5139    correct_version='1.9.6'
5140    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5141    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5142echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5143    automake --version > confauto.out 2>&1
5144    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5145      echo "$as_me:$LINENO: result: yes" >&5
5146echo "${ECHO_T}yes" >&6
5147    else
5148      rm -f confauto.out
5149      echo "$as_me:$LINENO: result: no" >&5
5150echo "${ECHO_T}no" >&6
5151      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5152echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5153   { (exit 1); exit 1; }; }
5154    fi
5155    rm -f confauto.out
5156
5157    # Check if the executable automake is picked up from the correct location
5158    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5159echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5160    automake_dir=`which automake | sed -e 's=/automake=='`
5161    automake_dir=`cd $automake_dir; pwd`
5162    if test x$AUTOTOOLS_DIR = x; then
5163      want_dir=$AUTOTOOLS_DFLT/bin
5164    else
5165      want_dir=$AUTOTOOLS_DIR/bin
5166    fi
5167    if test $automake_dir = `cd $want_dir; pwd`; then
5168      echo "$as_me:$LINENO: result: yes" >&5
5169echo "${ECHO_T}yes" >&6
5170    else
5171      rm -f confauto.out
5172      echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
5174      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5175echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5176   { (exit 1); exit 1; }; }
5177    fi
5178
5179    # Check if this is the correct version of libtool (with escaped dots)
5180    if test x$AUTOTOOLS_DIR = x; then
5181      want_dir=$AUTOTOOLS_DFLT/share
5182    else
5183      want_dir=$AUTOTOOLS_DIR/share
5184    fi
5185    correct_version='1.5.22'
5186    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5187    if test -r $want_dir/libtool/ltmain.sh; then
5188  have_ltmain=yes
5189  :
5190else
5191  have_ltmain=no
5192  :
5193fi
5194
5195    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5196echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5197    if test $have_ltmain = yes; then
5198    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5199        echo "$as_me:$LINENO: result: yes" >&5
5200echo "${ECHO_T}yes" >&6
5201      else
5202        echo "$as_me:$LINENO: result: no" >&5
5203echo "${ECHO_T}no" >&6
5204        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5205echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5206   { (exit 1); exit 1; }; }
5207      fi
5208    else
5209      echo "$as_me:$LINENO: result: no" >&5
5210echo "${ECHO_T}no" >&6
5211      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5212echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5213   { (exit 1); exit 1; }; }
5214    fi
5215  fi
5216
5217  # Check if we can find the libtool file
5218  if test x$AUTOTOOLS_DIR = x; then
5219    want_dir=$AUTOTOOLS_DFLT/share
5220  else
5221    want_dir=$AUTOTOOLS_DIR/share
5222  fi
5223  if test -r $want_dir/aclocal/libtool.m4; then
5224  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5225  :
5226else
5227  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5228echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5229   { (exit 1); exit 1; }; }
5230  :
5231fi
5232
5233
5234  # Check if we have an Dependencies file
5235  if test -r $srcdir/Dependencies; then
5236    coin_have_externals=yes
5237  fi
5238  # Check if subversion is installed and understands https
5239  # Extract the first word of "svn", so it can be a program name with args.
5240set dummy svn; ac_word=$2
5241echo "$as_me:$LINENO: checking for $ac_word" >&5
5242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243if test "${ac_cv_prog_have_svn+set}" = set; then
5244  echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246  if test -n "$have_svn"; then
5247  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252  IFS=$as_save_IFS
5253  test -z "$as_dir" && as_dir=.
5254  for ac_exec_ext in '' $ac_executable_extensions; do
5255  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256    ac_cv_prog_have_svn="yes"
5257    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258    break 2
5259  fi
5260done
5261done
5262
5263  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5264fi
5265fi
5266have_svn=$ac_cv_prog_have_svn
5267if test -n "$have_svn"; then
5268  echo "$as_me:$LINENO: result: $have_svn" >&5
5269echo "${ECHO_T}$have_svn" >&6
5270else
5271  echo "$as_me:$LINENO: result: no" >&5
5272echo "${ECHO_T}no" >&6
5273fi
5274
5275  if test x$have_svn = xyes; then
5276    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5277echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5278if test "${ac_cv_svn_understands_https+set}" = set; then
5279  echo $ECHO_N "(cached) $ECHO_C" >&6
5280else
5281  svn --version > confauto.out 2>&1
5282                    if $EGREP https confauto.out >/dev/null 2>&1; then
5283                      ac_cv_svn_understands_https=yes
5284                    else
5285                      ac_cv_svn_understands_https=no
5286                      have_svn=no
5287                      ac_cv_prog_have_svn=no
5288                    fi
5289                    rm -f confauto.out
5290fi
5291echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5292echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5293  fi
5294
5295  # Find the location of the BuildTools directory
5296  BUILDTOOLSDIR=
5297  if test -r $srcdir/BuildTools/coin.m4; then
5298    BUILDTOOLSDIR=$srcdir/BuildTools
5299  else
5300    if test -r $srcdir/../BuildTools/coin.m4; then
5301      BUILDTOOLSDIR=$srcdir/../BuildTools
5302    else
5303      if test -r $srcdir/../../BuildTools/coin.m4; then
5304        BUILDTOOLSDIR=$srcdir/../../BuildTools
5305      else
5306        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5307echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5308   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5309      fi
5310    fi
5311  fi
5312
5313
5314  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5315  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5316    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5317  fi
5318
5319  # The following variable is set to the name of the directory where
5320  # the autotool scripts are located
5321
5322  AUX_DIR=$ac_aux_dir
5323fi
5324
5325# helpful variable for the base directory of this package
5326abs_source_dir=`cd $srcdir; pwd`
5327
5328
5329# Stuff for example Makefiles
5330if test x$prefix = xNONE; then
5331  full_prefix=$ac_default_prefix
5332else
5333  full_prefix=$prefix
5334fi
5335full_prefix=`cd $full_prefix ; pwd`
5336
5337abs_lib_dir=$full_prefix/lib
5338
5339abs_include_dir=$full_prefix/include
5340
5341abs_bin_dir=$full_prefix/bin
5342
5343
5344
5345if test $coin_have_externals = yes && test x$have_svn = xyes; then
5346  HAVE_EXTERNALS_TRUE=
5347  HAVE_EXTERNALS_FALSE='#'
5348else
5349  HAVE_EXTERNALS_TRUE='#'
5350  HAVE_EXTERNALS_FALSE=
5351fi
5352
5353
5354# AC_MSG_NOTICE([End automake initialisation.])
5355
5356
5357
5358LIBTOOL=
5359if test -f ../libtool; then
5360  coin_config_dir=..
5361  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5362fi
5363if test "x$LIBTOOL" = x; then
5364  if test -f ../../libtool; then
5365    coin_config_dir=../..
5366    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5367  fi
5368fi
5369
5370if test "x$LIBTOOL" = x; then
5371# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5372  # Stuff for libtool
5373  # Check whether --enable-shared or --disable-shared was given.
5374if test "${enable_shared+set}" = set; then
5375  enableval="$enable_shared"
5376  p=${PACKAGE-default}
5377    case $enableval in
5378    yes) enable_shared=yes ;;
5379    no) enable_shared=no ;;
5380    *)
5381      enable_shared=no
5382      # Look at the argument we got.  We use all the common list separators.
5383      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5384      for pkg in $enableval; do
5385        IFS="$lt_save_ifs"
5386        if test "X$pkg" = "X$p"; then
5387          enable_shared=yes
5388        fi
5389      done
5390      IFS="$lt_save_ifs"
5391      ;;
5392    esac
5393else
5394  enable_shared=yes
5395fi;
5396
5397# Check whether --enable-fast-install or --disable-fast-install was given.
5398if test "${enable_fast_install+set}" = set; then
5399  enableval="$enable_fast_install"
5400  p=${PACKAGE-default}
5401    case $enableval in
5402    yes) enable_fast_install=yes ;;
5403    no) enable_fast_install=no ;;
5404    *)
5405      enable_fast_install=no
5406      # Look at the argument we got.  We use all the common list separators.
5407      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5408      for pkg in $enableval; do
5409        IFS="$lt_save_ifs"
5410        if test "X$pkg" = "X$p"; then
5411          enable_fast_install=yes
5412        fi
5413      done
5414      IFS="$lt_save_ifs"
5415      ;;
5416    esac
5417else
5418  enable_fast_install=yes
5419fi;
5420
5421echo "$as_me:$LINENO: checking host system type" >&5
5422echo $ECHO_N "checking host system type... $ECHO_C" >&6
5423if test "${ac_cv_host+set}" = set; then
5424  echo $ECHO_N "(cached) $ECHO_C" >&6
5425else
5426  ac_cv_host_alias=$host_alias
5427test -z "$ac_cv_host_alias" &&
5428  ac_cv_host_alias=$ac_cv_build_alias
5429ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5430  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5431echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5432   { (exit 1); exit 1; }; }
5433
5434fi
5435echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5436echo "${ECHO_T}$ac_cv_host" >&6
5437host=$ac_cv_host
5438host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5439host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5440host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5441
5442
5443echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5444echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5445if test "${lt_cv_path_SED+set}" = set; then
5446  echo $ECHO_N "(cached) $ECHO_C" >&6
5447else
5448  # Loop through the user's path and test for sed and gsed.
5449# Then use that list of sed's as ones to test for truncation.
5450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451for as_dir in $PATH
5452do
5453  IFS=$as_save_IFS
5454  test -z "$as_dir" && as_dir=.
5455  for lt_ac_prog in sed gsed; do
5456    for ac_exec_ext in '' $ac_executable_extensions; do
5457      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5458        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5459      fi
5460    done
5461  done
5462done
5463lt_ac_max=0
5464lt_ac_count=0
5465# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5466# along with /bin/sed that truncates output.
5467for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5468  test ! -f $lt_ac_sed && continue
5469  cat /dev/null > conftest.in
5470  lt_ac_count=0
5471  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5472  # Check for GNU sed and select it if it is found.
5473  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5474    lt_cv_path_SED=$lt_ac_sed
5475    break
5476  fi
5477  while true; do
5478    cat conftest.in conftest.in >conftest.tmp
5479    mv conftest.tmp conftest.in
5480    cp conftest.in conftest.nl
5481    echo >>conftest.nl
5482    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5483    cmp -s conftest.out conftest.nl || break
5484    # 10000 chars as input seems more than enough
5485    test $lt_ac_count -gt 10 && break
5486    lt_ac_count=`expr $lt_ac_count + 1`
5487    if test $lt_ac_count -gt $lt_ac_max; then
5488      lt_ac_max=$lt_ac_count
5489      lt_cv_path_SED=$lt_ac_sed
5490    fi
5491  done
5492done
5493
5494fi
5495
5496SED=$lt_cv_path_SED
5497echo "$as_me:$LINENO: result: $SED" >&5
5498echo "${ECHO_T}$SED" >&6
5499
5500
5501# Check whether --with-gnu-ld or --without-gnu-ld was given.
5502if test "${with_gnu_ld+set}" = set; then
5503  withval="$with_gnu_ld"
5504  test "$withval" = no || with_gnu_ld=yes
5505else
5506  with_gnu_ld=no
5507fi;
5508ac_prog=ld
5509if test "$GCC" = yes; then
5510  # Check if gcc -print-prog-name=ld gives a path.
5511  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5512echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5513  case $host in
5514  *-*-mingw*)
5515    # gcc leaves a trailing carriage return which upsets mingw
5516    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5517  *)
5518    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5519  esac
5520  case $ac_prog in
5521    # Accept absolute paths.
5522    [\\/]* | ?:[\\/]*)
5523      re_direlt='/[^/][^/]*/\.\./'
5524      # Canonicalize the pathname of ld
5525      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5526      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5527        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5528      done
5529      test -z "$LD" && LD="$ac_prog"
5530      ;;
5531  "")
5532    # If it fails, then pretend we aren't using GCC.
5533    ac_prog=ld
5534    ;;
5535  *)
5536    # If it is relative, then search for the first ld in PATH.
5537    with_gnu_ld=unknown
5538    ;;
5539  esac
5540elif test "$with_gnu_ld" = yes; then
5541  echo "$as_me:$LINENO: checking for GNU ld" >&5
5542echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5543else
5544  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5545echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5546fi
5547if test "${lt_cv_path_LD+set}" = set; then
5548  echo $ECHO_N "(cached) $ECHO_C" >&6
5549else
5550  if test -z "$LD"; then
5551  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5552  for ac_dir in $PATH; do
5553    IFS="$lt_save_ifs"
5554    test -z "$ac_dir" && ac_dir=.
5555    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5556      lt_cv_path_LD="$ac_dir/$ac_prog"
5557      # Check to see if the program is GNU ld.  I'd rather use --version,
5558      # but apparently some variants of GNU ld only accept -v.
5559      # Break only if it was the GNU/non-GNU ld that we prefer.
5560      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5561      *GNU* | *'with BFD'*)
5562        test "$with_gnu_ld" != no && break
5563        ;;
5564      *)
5565        test "$with_gnu_ld" != yes && break
5566        ;;
5567      esac
5568    fi
5569  done
5570  IFS="$lt_save_ifs"
5571else
5572  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5573fi
5574fi
5575
5576LD="$lt_cv_path_LD"
5577if test -n "$LD"; then
5578  echo "$as_me:$LINENO: result: $LD" >&5
5579echo "${ECHO_T}$LD" >&6
5580else
5581  echo "$as_me:$LINENO: result: no" >&5
5582echo "${ECHO_T}no" >&6
5583fi
5584test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5585echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5586   { (exit 1); exit 1; }; }
5587echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5588echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5589if test "${lt_cv_prog_gnu_ld+set}" = set; then
5590  echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5593case `$LD -v 2>&1 </dev/null` in
5594*GNU* | *'with BFD'*)
5595  lt_cv_prog_gnu_ld=yes
5596  ;;
5597*)
5598  lt_cv_prog_gnu_ld=no
5599  ;;
5600esac
5601fi
5602echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5603echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5604with_gnu_ld=$lt_cv_prog_gnu_ld
5605
5606
5607echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5608echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5609if test "${lt_cv_ld_reload_flag+set}" = set; then
5610  echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612  lt_cv_ld_reload_flag='-r'
5613fi
5614echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5615echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5616reload_flag=$lt_cv_ld_reload_flag
5617case $reload_flag in
5618"" | " "*) ;;
5619*) reload_flag=" $reload_flag" ;;
5620esac
5621reload_cmds='$LD$reload_flag -o $output$reload_objs'
5622case $host_os in
5623  darwin*)
5624    if test "$GCC" = yes; then
5625      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5626    else
5627      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5628    fi
5629    ;;
5630esac
5631
5632echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5633echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5634if test "${lt_cv_path_NM+set}" = set; then
5635  echo $ECHO_N "(cached) $ECHO_C" >&6
5636else
5637  if test -n "$NM"; then
5638  # Let the user override the test.
5639  lt_cv_path_NM="$NM"
5640else
5641  lt_nm_to_check="${ac_tool_prefix}nm"
5642  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5643    lt_nm_to_check="$lt_nm_to_check nm"
5644  fi
5645  for lt_tmp_nm in $lt_nm_to_check; do
5646    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5647    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5648      IFS="$lt_save_ifs"
5649      test -z "$ac_dir" && ac_dir=.
5650      tmp_nm="$ac_dir/$lt_tmp_nm"
5651      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5652        # Check to see if the nm accepts a BSD-compat flag.
5653        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5654        #   nm: unknown option "B" ignored
5655        # Tru64's nm complains that /dev/null is an invalid object file
5656        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5657        */dev/null* | *'Invalid file or object type'*)
5658          lt_cv_path_NM="$tmp_nm -B"
5659          break
5660          ;;
5661        *)
5662          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5663          */dev/null*)
5664            lt_cv_path_NM="$tmp_nm -p"
5665            break
5666            ;;
5667          *)
5668            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5669            continue # so that we can try to find one that supports BSD flags
5670            ;;
5671          esac
5672          ;;
5673        esac
5674      fi
5675    done
5676    IFS="$lt_save_ifs"
5677  done
5678  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5679fi
5680fi
5681echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5682echo "${ECHO_T}$lt_cv_path_NM" >&6
5683NM="$lt_cv_path_NM"
5684
5685echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5686echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5687if test "${lt_cv_deplibs_check_method+set}" = set; then
5688  echo $ECHO_N "(cached) $ECHO_C" >&6
5689else
5690  lt_cv_file_magic_cmd='$MAGIC_CMD'
5691lt_cv_file_magic_test_file=
5692lt_cv_deplibs_check_method='unknown'
5693# Need to set the preceding variable on all platforms that support
5694# interlibrary dependencies.
5695# 'none' -- dependencies not supported.
5696# `unknown' -- same as none, but documents that we really don't know.
5697# 'pass_all' -- all dependencies passed with no checks.
5698# 'test_compile' -- check by making test program.
5699# 'file_magic [[regex]]' -- check by looking for files in library path
5700# which responds to the $file_magic_cmd with a given extended regex.
5701# If you have `file' or equivalent on your system and you're not sure
5702# whether `pass_all' will *always* work, you probably want this one.
5703
5704case $host_os in
5705aix4* | aix5*)
5706  lt_cv_deplibs_check_method=pass_all
5707  ;;
5708
5709beos*)
5710  lt_cv_deplibs_check_method=pass_all
5711  ;;
5712
5713bsdi[45]*)
5714  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5715  lt_cv_file_magic_cmd='/usr/bin/file -L'
5716  lt_cv_file_magic_test_file=/shlib/libc.so
5717  ;;
5718
5719cygwin*)
5720  # func_win32_libid is a shell function defined in ltmain.sh
5721  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5722  lt_cv_file_magic_cmd='func_win32_libid'
5723  ;;
5724
5725mingw* | pw32*)
5726  # Base MSYS/MinGW do not provide the 'file' command needed by
5727  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5728  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5729  lt_cv_file_magic_cmd='$OBJDUMP -f'
5730  ;;
5731
5732darwin* | rhapsody*)
5733  lt_cv_deplibs_check_method=pass_all
5734  ;;
5735
5736freebsd* | kfreebsd*-gnu | dragonfly*)
5737  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5738    case $host_cpu in
5739    i*86 )
5740      # Not sure whether the presence of OpenBSD here was a mistake.
5741      # Let's accept both of them until this is cleared up.
5742      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5743      lt_cv_file_magic_cmd=/usr/bin/file
5744      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5745      ;;
5746    esac
5747  else
5748    lt_cv_deplibs_check_method=pass_all
5749  fi
5750  ;;
5751
5752gnu*)
5753  lt_cv_deplibs_check_method=pass_all
5754  ;;
5755
5756hpux10.20* | hpux11*)
5757  lt_cv_file_magic_cmd=/usr/bin/file
5758  case $host_cpu in
5759  ia64*)
5760    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5761    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5762    ;;
5763  hppa*64*)
5764    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]'
5765    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5766    ;;
5767  *)
5768    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5769    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5770    ;;
5771  esac
5772  ;;
5773
5774interix3*)
5775  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5776  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5777  ;;
5778
5779irix5* | irix6* | nonstopux*)
5780  case $LD in
5781  *-32|*"-32 ") libmagic=32-bit;;
5782  *-n32|*"-n32 ") libmagic=N32;;
5783  *-64|*"-64 ") libmagic=64-bit;;
5784  *) libmagic=never-match;;
5785  esac
5786  lt_cv_deplibs_check_method=pass_all
5787  ;;
5788
5789# This must be Linux ELF.
5790linux*)
5791  lt_cv_deplibs_check_method=pass_all
5792  ;;
5793
5794netbsd*)
5795  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5796    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5797  else
5798    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5799  fi
5800  ;;
5801
5802newos6*)
5803  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5804  lt_cv_file_magic_cmd=/usr/bin/file
5805  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5806  ;;
5807
5808nto-qnx*)
5809  lt_cv_deplibs_check_method=unknown
5810  ;;
5811
5812openbsd*)
5813  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5814    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5815  else
5816    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5817  fi
5818  ;;
5819
5820osf3* | osf4* | osf5*)
5821  lt_cv_deplibs_check_method=pass_all
5822  ;;
5823
5824solaris*)
5825  lt_cv_deplibs_check_method=pass_all
5826  ;;
5827
5828sysv4 | sysv4.3*)
5829  case $host_vendor in
5830  motorola)
5831    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]'
5832    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5833    ;;
5834  ncr)
5835    lt_cv_deplibs_check_method=pass_all
5836    ;;
5837  sequent)
5838    lt_cv_file_magic_cmd='/bin/file'
5839    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5840    ;;
5841  sni)
5842    lt_cv_file_magic_cmd='/bin/file'
5843    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5844    lt_cv_file_magic_test_file=/lib/libc.so
5845    ;;
5846  siemens)
5847    lt_cv_deplibs_check_method=pass_all
5848    ;;
5849  pc)
5850    lt_cv_deplibs_check_method=pass_all
5851    ;;
5852  esac
5853  ;;
5854
5855sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5856  lt_cv_deplibs_check_method=pass_all
5857  ;;
5858esac
5859
5860fi
5861echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5862echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5863file_magic_cmd=$lt_cv_file_magic_cmd
5864deplibs_check_method=$lt_cv_deplibs_check_method
5865test -z "$deplibs_check_method" && deplibs_check_method=unknown
5866
5867
5868
5869
5870# If no C compiler was specified, use CC.
5871LTCC=${LTCC-"$CC"}
5872
5873# If no C compiler flags were specified, use CFLAGS.
5874LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5875
5876# Allow CC to be a program name with arguments.
5877compiler=$CC
5878
5879# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5880if test "${enable_libtool_lock+set}" = set; then
5881  enableval="$enable_libtool_lock"
5882
5883fi;
5884test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5885
5886# Some flags need to be propagated to the compiler or linker for good
5887# libtool support.
5888case $host in
5889ia64-*-hpux*)
5890  # Find out which ABI we are using.
5891  echo 'int i;' > conftest.$ac_ext
5892  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893  (eval $ac_compile) 2>&5
5894  ac_status=$?
5895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896  (exit $ac_status); }; then
5897    case `/usr/bin/file conftest.$ac_objext` in
5898    *ELF-32*)
5899      HPUX_IA64_MODE="32"
5900      ;;
5901    *ELF-64*)
5902      HPUX_IA64_MODE="64"
5903      ;;
5904    esac
5905  fi
5906  rm -rf conftest*
5907  ;;
5908*-*-irix6*)
5909  # Find out which ABI we are using.
5910  echo '#line 5910 "configure"' > conftest.$ac_ext
5911  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912  (eval $ac_compile) 2>&5
5913  ac_status=$?
5914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915  (exit $ac_status); }; then
5916   if test "$lt_cv_prog_gnu_ld" = yes; then
5917    case `/usr/bin/file conftest.$ac_objext` in
5918    *32-bit*)
5919      LD="${LD-ld} -melf32bsmip"
5920      ;;
5921    *N32*)
5922      LD="${LD-ld} -melf32bmipn32"
5923      ;;
5924    *64-bit*)
5925      LD="${LD-ld} -melf64bmip"
5926      ;;
5927    esac
5928   else
5929    case `/usr/bin/file conftest.$ac_objext` in
5930    *32-bit*)
5931      LD="${LD-ld} -32"
5932      ;;
5933    *N32*)
5934      LD="${LD-ld} -n32"
5935      ;;
5936    *64-bit*)
5937      LD="${LD-ld} -64"
5938      ;;
5939    esac
5940   fi
5941  fi
5942  rm -rf conftest*
5943  ;;
5944
5945x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5946  # Find out which ABI we are using.
5947  echo 'int i;' > conftest.$ac_ext
5948  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5949  (eval $ac_compile) 2>&5
5950  ac_status=$?
5951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952  (exit $ac_status); }; then
5953    case `/usr/bin/file conftest.o` in
5954    *32-bit*)
5955      case $host in
5956        x86_64-*linux*)
5957          LD="${LD-ld} -m elf_i386"
5958          ;;
5959        ppc64-*linux*|powerpc64-*linux*)
5960          LD="${LD-ld} -m elf32ppclinux"
5961          ;;
5962        s390x-*linux*)
5963          LD="${LD-ld} -m elf_s390"
5964          ;;
5965        sparc64-*linux*)
5966          LD="${LD-ld} -m elf32_sparc"
5967          ;;
5968      esac
5969      ;;
5970    *64-bit*)
5971      case $host in
5972        x86_64-*linux*)
5973          LD="${LD-ld} -m elf_x86_64"
5974          ;;
5975        ppc*-*linux*|powerpc*-*linux*)
5976          LD="${LD-ld} -m elf64ppc"
5977          ;;
5978        s390*-*linux*)
5979          LD="${LD-ld} -m elf64_s390"
5980          ;;
5981        sparc*-*linux*)
5982          LD="${LD-ld} -m elf64_sparc"
5983          ;;
5984      esac
5985      ;;
5986    esac
5987  fi
5988  rm -rf conftest*
5989  ;;
5990
5991*-*-sco3.2v5*)
5992  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5993  SAVE_CFLAGS="$CFLAGS"
5994  CFLAGS="$CFLAGS -belf"
5995  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5996echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5997if test "${lt_cv_cc_needs_belf+set}" = set; then
5998  echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000  ac_ext=c
6001ac_cpp='$CPP $CPPFLAGS'
6002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005
6006     cat >conftest.$ac_ext <<_ACEOF
6007/* confdefs.h.  */
6008_ACEOF
6009cat confdefs.h >>conftest.$ac_ext
6010cat >>conftest.$ac_ext <<_ACEOF
6011/* end confdefs.h.  */
6012
6013int
6014main ()
6015{
6016
6017  ;
6018  return 0;
6019}
6020_ACEOF
6021rm -f conftest.$ac_objext conftest$ac_exeext
6022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6023  (eval $ac_link) 2>conftest.er1
6024  ac_status=$?
6025  grep -v '^ *+' conftest.er1 >conftest.err
6026  rm -f conftest.er1
6027  cat conftest.err >&5
6028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6029  (exit $ac_status); } &&
6030         { ac_try='test -z "$ac_c_werror_flag"
6031                         || test ! -s conftest.err'
6032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033  (eval $ac_try) 2>&5
6034  ac_status=$?
6035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036  (exit $ac_status); }; } &&
6037         { ac_try='test -s conftest$ac_exeext'
6038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6039  (eval $ac_try) 2>&5
6040  ac_status=$?
6041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042  (exit $ac_status); }; }; then
6043  lt_cv_cc_needs_belf=yes
6044else
6045  echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048lt_cv_cc_needs_belf=no
6049fi
6050rm -f conftest.err conftest.$ac_objext \
6051      conftest$ac_exeext conftest.$ac_ext
6052     ac_ext=c
6053ac_cpp='$CPP $CPPFLAGS'
6054ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056ac_compiler_gnu=$ac_cv_c_compiler_gnu
6057
6058fi
6059echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6060echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6061  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6062    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6063    CFLAGS="$SAVE_CFLAGS"
6064  fi
6065  ;;
6066sparc*-*solaris*)
6067  # Find out which ABI we are using.
6068  echo 'int i;' > conftest.$ac_ext
6069  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6070  (eval $ac_compile) 2>&5
6071  ac_status=$?
6072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073  (exit $ac_status); }; then
6074    case `/usr/bin/file conftest.o` in
6075    *64-bit*)
6076      case $lt_cv_prog_gnu_ld in
6077      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6078      *)    LD="${LD-ld} -64" ;;
6079      esac
6080      ;;
6081    esac
6082  fi
6083  rm -rf conftest*
6084  ;;
6085
6086
6087esac
6088
6089need_locks="$enable_libtool_lock"
6090
6091
6092ac_ext=c
6093ac_cpp='$CPP $CPPFLAGS'
6094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6096ac_compiler_gnu=$ac_cv_c_compiler_gnu
6097echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6098echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6099# On Suns, sometimes $CPP names a directory.
6100if test -n "$CPP" && test -d "$CPP"; then
6101  CPP=
6102fi
6103if test -z "$CPP"; then
6104  if test "${ac_cv_prog_CPP+set}" = set; then
6105  echo $ECHO_N "(cached) $ECHO_C" >&6
6106else
6107      # Double quotes because CPP needs to be expanded
6108    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6109    do
6110      ac_preproc_ok=false
6111for ac_c_preproc_warn_flag in '' yes
6112do
6113  # Use a header file that comes with gcc, so configuring glibc
6114  # with a fresh cross-compiler works.
6115  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6116  # <limits.h> exists even on freestanding compilers.
6117  # On the NeXT, cc -E runs the code through the compiler's parser,
6118  # not just through cpp. "Syntax error" is here to catch this case.
6119  cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h.  */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h.  */
6125#ifdef __STDC__
6126# include <limits.h>
6127#else
6128# include <assert.h>
6129#endif
6130                     Syntax error
6131_ACEOF
6132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6134  ac_status=$?
6135  grep -v '^ *+' conftest.er1 >conftest.err
6136  rm -f conftest.er1
6137  cat conftest.err >&5
6138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); } >/dev/null; then
6140  if test -s conftest.err; then
6141    ac_cpp_err=$ac_c_preproc_warn_flag
6142    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6143  else
6144    ac_cpp_err=
6145  fi
6146else
6147  ac_cpp_err=yes
6148fi
6149if test -z "$ac_cpp_err"; then
6150  :
6151else
6152  echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155  # Broken: fails on valid input.
6156continue
6157fi
6158rm -f conftest.err conftest.$ac_ext
6159
6160  # OK, works on sane cases.  Now check whether non-existent headers
6161  # can be detected and how.
6162  cat >conftest.$ac_ext <<_ACEOF
6163/* confdefs.h.  */
6164_ACEOF
6165cat confdefs.h >>conftest.$ac_ext
6166cat >>conftest.$ac_ext <<_ACEOF
6167/* end confdefs.h.  */
6168#include <ac_nonexistent.h>
6169_ACEOF
6170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6171  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6172  ac_status=$?
6173  grep -v '^ *+' conftest.er1 >conftest.err
6174  rm -f conftest.er1
6175  cat conftest.err >&5
6176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177  (exit $ac_status); } >/dev/null; then
6178  if test -s conftest.err; then
6179    ac_cpp_err=$ac_c_preproc_warn_flag
6180    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6181  else
6182    ac_cpp_err=
6183  fi
6184else
6185  ac_cpp_err=yes
6186fi
6187if test -z "$ac_cpp_err"; then
6188  # Broken: success on invalid input.
6189continue
6190else
6191  echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
6193
6194  # Passes both tests.
6195ac_preproc_ok=:
6196break
6197fi
6198rm -f conftest.err conftest.$ac_ext
6199
6200done
6201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6202rm -f conftest.err conftest.$ac_ext
6203if $ac_preproc_ok; then
6204  break
6205fi
6206
6207    done
6208    ac_cv_prog_CPP=$CPP
6209
6210fi
6211  CPP=$ac_cv_prog_CPP
6212else
6213  ac_cv_prog_CPP=$CPP
6214fi
6215echo "$as_me:$LINENO: result: $CPP" >&5
6216echo "${ECHO_T}$CPP" >&6
6217ac_preproc_ok=false
6218for ac_c_preproc_warn_flag in '' yes
6219do
6220  # Use a header file that comes with gcc, so configuring glibc
6221  # with a fresh cross-compiler works.
6222  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6223  # <limits.h> exists even on freestanding compilers.
6224  # On the NeXT, cc -E runs the code through the compiler's parser,
6225  # not just through cpp. "Syntax error" is here to catch this case.
6226  cat >conftest.$ac_ext <<_ACEOF
6227/* confdefs.h.  */
6228_ACEOF
6229cat confdefs.h >>conftest.$ac_ext
6230cat >>conftest.$ac_ext <<_ACEOF
6231/* end confdefs.h.  */
6232#ifdef __STDC__
6233# include <limits.h>
6234#else
6235# include <assert.h>
6236#endif
6237                     Syntax error
6238_ACEOF
6239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6240  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6241  ac_status=$?
6242  grep -v '^ *+' conftest.er1 >conftest.err
6243  rm -f conftest.er1
6244  cat conftest.err >&5
6245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246  (exit $ac_status); } >/dev/null; then
6247  if test -s conftest.err; then
6248    ac_cpp_err=$ac_c_preproc_warn_flag
6249    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6250  else
6251    ac_cpp_err=
6252  fi
6253else
6254  ac_cpp_err=yes
6255fi
6256if test -z "$ac_cpp_err"; then
6257  :
6258else
6259  echo "$as_me: failed program was:" >&5
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
6262  # Broken: fails on valid input.
6263continue
6264fi
6265rm -f conftest.err conftest.$ac_ext
6266
6267  # OK, works on sane cases.  Now check whether non-existent headers
6268  # can be detected and how.
6269  cat >conftest.$ac_ext <<_ACEOF
6270/* confdefs.h.  */
6271_ACEOF
6272cat confdefs.h >>conftest.$ac_ext
6273cat >>conftest.$ac_ext <<_ACEOF
6274/* end confdefs.h.  */
6275#include <ac_nonexistent.h>
6276_ACEOF
6277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6278  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6279  ac_status=$?
6280  grep -v '^ *+' conftest.er1 >conftest.err
6281  rm -f conftest.er1
6282  cat conftest.err >&5
6283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284  (exit $ac_status); } >/dev/null; then
6285  if test -s conftest.err; then
6286    ac_cpp_err=$ac_c_preproc_warn_flag
6287    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6288  else
6289    ac_cpp_err=
6290  fi
6291else
6292  ac_cpp_err=yes
6293fi
6294if test -z "$ac_cpp_err"; then
6295  # Broken: success on invalid input.
6296continue
6297else
6298  echo "$as_me: failed program was:" >&5
6299sed 's/^/| /' conftest.$ac_ext >&5
6300
6301  # Passes both tests.
6302ac_preproc_ok=:
6303break
6304fi
6305rm -f conftest.err conftest.$ac_ext
6306
6307done
6308# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6309rm -f conftest.err conftest.$ac_ext
6310if $ac_preproc_ok; then
6311  :
6312else
6313  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6314See \`config.log' for more details." >&5
6315echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6316See \`config.log' for more details." >&2;}
6317   { (exit 1); exit 1; }; }
6318fi
6319
6320ac_ext=c
6321ac_cpp='$CPP $CPPFLAGS'
6322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324ac_compiler_gnu=$ac_cv_c_compiler_gnu
6325
6326
6327echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6328echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6329if test "${ac_cv_header_stdc+set}" = set; then
6330  echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332  cat >conftest.$ac_ext <<_ACEOF
6333/* confdefs.h.  */
6334_ACEOF
6335cat confdefs.h >>conftest.$ac_ext
6336cat >>conftest.$ac_ext <<_ACEOF
6337/* end confdefs.h.  */
6338#include <stdlib.h>
6339#include <stdarg.h>
6340#include <string.h>
6341#include <float.h>
6342
6343int
6344main ()
6345{
6346
6347  ;
6348  return 0;
6349}
6350_ACEOF
6351rm -f conftest.$ac_objext
6352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353  (eval $ac_compile) 2>conftest.er1
6354  ac_status=$?
6355  grep -v '^ *+' conftest.er1 >conftest.err
6356  rm -f conftest.er1
6357  cat conftest.err >&5
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); } &&
6360         { ac_try='test -z "$ac_c_werror_flag"
6361                         || test ! -s conftest.err'
6362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363  (eval $ac_try) 2>&5
6364  ac_status=$?
6365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366  (exit $ac_status); }; } &&
6367         { ac_try='test -s conftest.$ac_objext'
6368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369  (eval $ac_try) 2>&5
6370  ac_status=$?
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); }; }; then
6373  ac_cv_header_stdc=yes
6374else
6375  echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378ac_cv_header_stdc=no
6379fi
6380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381
6382if test $ac_cv_header_stdc = yes; then
6383  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6384  cat >conftest.$ac_ext <<_ACEOF
6385/* confdefs.h.  */
6386_ACEOF
6387cat confdefs.h >>conftest.$ac_ext
6388cat >>conftest.$ac_ext <<_ACEOF
6389/* end confdefs.h.  */
6390#include <string.h>
6391
6392_ACEOF
6393if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6394  $EGREP "memchr" >/dev/null 2>&1; then
6395  :
6396else
6397  ac_cv_header_stdc=no
6398fi
6399rm -f conftest*
6400
6401fi
6402
6403if test $ac_cv_header_stdc = yes; then
6404  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6405  cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h.  */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h.  */
6411#include <stdlib.h>
6412
6413_ACEOF
6414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6415  $EGREP "free" >/dev/null 2>&1; then
6416  :
6417else
6418  ac_cv_header_stdc=no
6419fi
6420rm -f conftest*
6421
6422fi
6423
6424if test $ac_cv_header_stdc = yes; then
6425  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6426  if test "$cross_compiling" = yes; then
6427  :
6428else
6429  cat >conftest.$ac_ext <<_ACEOF
6430/* confdefs.h.  */
6431_ACEOF
6432cat confdefs.h >>conftest.$ac_ext
6433cat >>conftest.$ac_ext <<_ACEOF
6434/* end confdefs.h.  */
6435#include <ctype.h>
6436#if ((' ' & 0x0FF) == 0x020)
6437# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6438# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6439#else
6440# define ISLOWER(c) \
6441                   (('a' <= (c) && (c) <= 'i') \
6442                     || ('j' <= (c) && (c) <= 'r') \
6443                     || ('s' <= (c) && (c) <= 'z'))
6444# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6445#endif
6446
6447#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6448int
6449main ()
6450{
6451  int i;
6452  for (i = 0; i < 256; i++)
6453    if (XOR (islower (i), ISLOWER (i))
6454        || toupper (i) != TOUPPER (i))
6455      exit(2);
6456  exit (0);
6457}
6458_ACEOF
6459rm -f conftest$ac_exeext
6460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6461  (eval $ac_link) 2>&5
6462  ac_status=$?
6463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466  (eval $ac_try) 2>&5
6467  ac_status=$?
6468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469  (exit $ac_status); }; }; then
6470  :
6471else
6472  echo "$as_me: program exited with status $ac_status" >&5
6473echo "$as_me: failed program was:" >&5
6474sed 's/^/| /' conftest.$ac_ext >&5
6475
6476( exit $ac_status )
6477ac_cv_header_stdc=no
6478fi
6479rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6480fi
6481fi
6482fi
6483echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6484echo "${ECHO_T}$ac_cv_header_stdc" >&6
6485if test $ac_cv_header_stdc = yes; then
6486
6487cat >>confdefs.h <<\_ACEOF
6488#define STDC_HEADERS 1
6489_ACEOF
6490
6491fi
6492
6493# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6504                  inttypes.h stdint.h unistd.h
6505do
6506as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6507echo "$as_me:$LINENO: checking for $ac_header" >&5
6508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6509if eval "test \"\${$as_ac_Header+set}\" = set"; then
6510  echo $ECHO_N "(cached) $ECHO_C" >&6
6511else
6512  cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h.  */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h.  */
6518$ac_includes_default
6519
6520#include <$ac_header>
6521_ACEOF
6522rm -f conftest.$ac_objext
6523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6524  (eval $ac_compile) 2>conftest.er1
6525  ac_status=$?
6526  grep -v '^ *+' conftest.er1 >conftest.err
6527  rm -f conftest.er1
6528  cat conftest.err >&5
6529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530  (exit $ac_status); } &&
6531         { ac_try='test -z "$ac_c_werror_flag"
6532                         || test ! -s conftest.err'
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); }; } &&
6538         { ac_try='test -s conftest.$ac_objext'
6539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540  (eval $ac_try) 2>&5
6541  ac_status=$?
6542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); }; }; then
6544  eval "$as_ac_Header=yes"
6545else
6546  echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549eval "$as_ac_Header=no"
6550fi
6551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6552fi
6553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6555if test `eval echo '${'$as_ac_Header'}'` = yes; then
6556  cat >>confdefs.h <<_ACEOF
6557#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6558_ACEOF
6559
6560fi
6561
6562done
6563
6564
6565
6566for ac_header in dlfcn.h
6567do
6568as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6569if eval "test \"\${$as_ac_Header+set}\" = set"; then
6570  echo "$as_me:$LINENO: checking for $ac_header" >&5
6571echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6572if eval "test \"\${$as_ac_Header+set}\" = set"; then
6573  echo $ECHO_N "(cached) $ECHO_C" >&6
6574fi
6575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6577else
6578  # Is the header compilable?
6579echo "$as_me:$LINENO: checking $ac_header usability" >&5
6580echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6581cat >conftest.$ac_ext <<_ACEOF
6582/* confdefs.h.  */
6583_ACEOF
6584cat confdefs.h >>conftest.$ac_ext
6585cat >>conftest.$ac_ext <<_ACEOF
6586/* end confdefs.h.  */
6587$ac_includes_default
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  ac_header_compiler=yes
6613else
6614  echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
6617ac_header_compiler=no
6618fi
6619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6620echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6621echo "${ECHO_T}$ac_header_compiler" >&6
6622
6623# Is the header present?
6624echo "$as_me:$LINENO: checking $ac_header presence" >&5
6625echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6626cat >conftest.$ac_ext <<_ACEOF
6627/* confdefs.h.  */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h.  */
6632#include <$ac_header>
6633_ACEOF
6634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6635  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6636  ac_status=$?
6637  grep -v '^ *+' conftest.er1 >conftest.err
6638  rm -f conftest.er1
6639  cat conftest.err >&5
6640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641  (exit $ac_status); } >/dev/null; then
6642  if test -s conftest.err; then
6643    ac_cpp_err=$ac_c_preproc_warn_flag
6644    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6645  else
6646    ac_cpp_err=
6647  fi
6648else
6649  ac_cpp_err=yes
6650fi
6651if test -z "$ac_cpp_err"; then
6652  ac_header_preproc=yes
6653else
6654  echo "$as_me: failed program was:" >&5
6655sed 's/^/| /' conftest.$ac_ext >&5
6656
6657  ac_header_preproc=no
6658fi
6659rm -f conftest.err conftest.$ac_ext
6660echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6661echo "${ECHO_T}$ac_header_preproc" >&6
6662
6663# So?  What about this header?
6664case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6665  yes:no: )
6666    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6667echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6668    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6669echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6670    ac_header_preproc=yes
6671    ;;
6672  no:yes:* )
6673    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6674echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6675    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6676echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6677    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6678echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6679    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6680echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6681    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6682echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6683    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6684echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6685    (
6686      cat <<\_ASBOX
6687## ----------------------------------- ##
6688## Report this to clp@list.coin-or.org ##
6689## ----------------------------------- ##
6690_ASBOX
6691    ) |
6692      sed "s/^/$as_me: WARNING:     /" >&2
6693    ;;
6694esac
6695echo "$as_me:$LINENO: checking for $ac_header" >&5
6696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6697if eval "test \"\${$as_ac_Header+set}\" = set"; then
6698  echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700  eval "$as_ac_Header=\$ac_header_preproc"
6701fi
6702echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6703echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6704
6705fi
6706if test `eval echo '${'$as_ac_Header'}'` = yes; then
6707  cat >>confdefs.h <<_ACEOF
6708#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6709_ACEOF
6710
6711fi
6712
6713done
6714
6715
6716
6717if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6718    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6719    (test "X$CXX" != "Xg++"))) ; then
6720  ac_ext=cc
6721ac_cpp='$CXXCPP $CPPFLAGS'
6722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6725echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6726echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6727if test -z "$CXXCPP"; then
6728  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6729  echo $ECHO_N "(cached) $ECHO_C" >&6
6730else
6731      # Double quotes because CXXCPP needs to be expanded
6732    for CXXCPP in "$CXX -E" "/lib/cpp"
6733    do
6734      ac_preproc_ok=false
6735for ac_cxx_preproc_warn_flag in '' yes
6736do
6737  # Use a header file that comes with gcc, so configuring glibc
6738  # with a fresh cross-compiler works.
6739  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6740  # <limits.h> exists even on freestanding compilers.
6741  # On the NeXT, cc -E runs the code through the compiler's parser,
6742  # not just through cpp. "Syntax error" is here to catch this case.
6743  cat >conftest.$ac_ext <<_ACEOF
6744/* confdefs.h.  */
6745_ACEOF
6746cat confdefs.h >>conftest.$ac_ext
6747cat >>conftest.$ac_ext <<_ACEOF
6748/* end confdefs.h.  */
6749#ifdef __STDC__
6750# include <limits.h>
6751#else
6752# include <assert.h>
6753#endif
6754                     Syntax error
6755_ACEOF
6756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6757  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6758  ac_status=$?
6759  grep -v '^ *+' conftest.er1 >conftest.err
6760  rm -f conftest.er1
6761  cat conftest.err >&5
6762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763  (exit $ac_status); } >/dev/null; then
6764  if test -s conftest.err; then
6765    ac_cpp_err=$ac_cxx_preproc_warn_flag
6766    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6767  else
6768    ac_cpp_err=
6769  fi
6770else
6771  ac_cpp_err=yes
6772fi
6773if test -z "$ac_cpp_err"; then
6774  :
6775else
6776  echo "$as_me: failed program was:" >&5
6777sed 's/^/| /' conftest.$ac_ext >&5
6778
6779  # Broken: fails on valid input.
6780continue
6781fi
6782rm -f conftest.err conftest.$ac_ext
6783
6784  # OK, works on sane cases.  Now check whether non-existent headers
6785  # can be detected and how.
6786  cat >conftest.$ac_ext <<_ACEOF
6787/* confdefs.h.  */
6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
6791/* end confdefs.h.  */
6792#include <ac_nonexistent.h>
6793_ACEOF
6794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6795  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6796  ac_status=$?
6797  grep -v '^ *+' conftest.er1 >conftest.err
6798  rm -f conftest.er1
6799  cat conftest.err >&5
6800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801  (exit $ac_status); } >/dev/null; then
6802  if test -s conftest.err; then
6803    ac_cpp_err=$ac_cxx_preproc_warn_flag
6804    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6805  else
6806    ac_cpp_err=
6807  fi
6808else
6809  ac_cpp_err=yes
6810fi
6811if test -z "$ac_cpp_err"; then
6812  # Broken: success on invalid input.
6813continue
6814else
6815  echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818  # Passes both tests.
6819ac_preproc_ok=:
6820break
6821fi
6822rm -f conftest.err conftest.$ac_ext
6823
6824done
6825# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6826rm -f conftest.err conftest.$ac_ext
6827if $ac_preproc_ok; then
6828  break
6829fi
6830
6831    done
6832    ac_cv_prog_CXXCPP=$CXXCPP
6833
6834fi
6835  CXXCPP=$ac_cv_prog_CXXCPP
6836else
6837  ac_cv_prog_CXXCPP=$CXXCPP
6838fi
6839echo "$as_me:$LINENO: result: $CXXCPP" >&5
6840echo "${ECHO_T}$CXXCPP" >&6
6841ac_preproc_ok=false
6842for ac_cxx_preproc_warn_flag in '' yes
6843do
6844  # Use a header file that comes with gcc, so configuring glibc
6845  # with a fresh cross-compiler works.
6846  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6847  # <limits.h> exists even on freestanding compilers.
6848  # On the NeXT, cc -E runs the code through the compiler's parser,
6849  # not just through cpp. "Syntax error" is here to catch this case.
6850  cat >conftest.$ac_ext <<_ACEOF
6851/* confdefs.h.  */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h.  */
6856#ifdef __STDC__
6857# include <limits.h>
6858#else
6859# include <assert.h>
6860#endif
6861                     Syntax error
6862_ACEOF
6863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6864  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6865  ac_status=$?
6866  grep -v '^ *+' conftest.er1 >conftest.err
6867  rm -f conftest.er1
6868  cat conftest.err >&5
6869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870  (exit $ac_status); } >/dev/null; then
6871  if test -s conftest.err; then
6872    ac_cpp_err=$ac_cxx_preproc_warn_flag
6873    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6874  else
6875    ac_cpp_err=
6876  fi
6877else
6878  ac_cpp_err=yes
6879fi
6880if test -z "$ac_cpp_err"; then
6881  :
6882else
6883  echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886  # Broken: fails on valid input.
6887continue
6888fi
6889rm -f conftest.err conftest.$ac_ext
6890
6891  # OK, works on sane cases.  Now check whether non-existent headers
6892  # can be detected and how.
6893  cat >conftest.$ac_ext <<_ACEOF
6894/* confdefs.h.  */
6895_ACEOF
6896cat confdefs.h >>conftest.$ac_ext
6897cat >>conftest.$ac_ext <<_ACEOF
6898/* end confdefs.h.  */
6899#include <ac_nonexistent.h>
6900_ACEOF
6901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6902  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6903  ac_status=$?
6904  grep -v '^ *+' conftest.er1 >conftest.err
6905  rm -f conftest.er1
6906  cat conftest.err >&5
6907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908  (exit $ac_status); } >/dev/null; then
6909  if test -s conftest.err; then
6910    ac_cpp_err=$ac_cxx_preproc_warn_flag
6911    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6912  else
6913    ac_cpp_err=
6914  fi
6915else
6916  ac_cpp_err=yes
6917fi
6918if test -z "$ac_cpp_err"; then
6919  # Broken: success on invalid input.
6920continue
6921else
6922  echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5
6924
6925  # Passes both tests.
6926ac_preproc_ok=:
6927break
6928fi
6929rm -f conftest.err conftest.$ac_ext
6930
6931done
6932# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6933rm -f conftest.err conftest.$ac_ext
6934if $ac_preproc_ok; then
6935  :
6936else
6937  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6938See \`config.log' for more details." >&5
6939echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6940See \`config.log' for more details." >&2;}
6941   { (exit 1); exit 1; }; }
6942fi
6943
6944ac_ext=cc
6945ac_cpp='$CXXCPP $CPPFLAGS'
6946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6949
6950fi
6951
6952ac_ext=f
6953ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6954ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6956if test -n "$ac_tool_prefix"; then
6957  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6958  do
6959    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6961echo "$as_me:$LINENO: checking for $ac_word" >&5
6962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6963if test "${ac_cv_prog_F77+set}" = set; then
6964  echo $ECHO_N "(cached) $ECHO_C" >&6
6965else
6966  if test -n "$F77"; then
6967  ac_cv_prog_F77="$F77" # Let the user override the test.
6968else
6969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970for as_dir in $PATH
6971do
6972  IFS=$as_save_IFS
6973  test -z "$as_dir" && as_dir=.
6974  for ac_exec_ext in '' $ac_executable_extensions; do
6975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6976    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978    break 2
6979  fi
6980done
6981done
6982
6983fi
6984fi
6985F77=$ac_cv_prog_F77
6986if test -n "$F77"; then
6987  echo "$as_me:$LINENO: result: $F77" >&5
6988echo "${ECHO_T}$F77" >&6
6989else
6990  echo "$as_me:$LINENO: result: no" >&5
6991echo "${ECHO_T}no" >&6
6992fi
6993
6994    test -n "$F77" && break
6995  done
6996fi
6997if test -z "$F77"; then
6998  ac_ct_F77=$F77
6999  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7000do
7001  # Extract the first word of "$ac_prog", so it can be a program name with args.
7002set dummy $ac_prog; ac_word=$2
7003echo "$as_me:$LINENO: checking for $ac_word" >&5
7004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7005if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7006  echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008  if test -n "$ac_ct_F77"; then
7009  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7010else
7011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012for as_dir in $PATH
7013do
7014  IFS=$as_save_IFS
7015  test -z "$as_dir" && as_dir=.
7016  for ac_exec_ext in '' $ac_executable_extensions; do
7017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7018    ac_cv_prog_ac_ct_F77="$ac_prog"
7019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7020    break 2
7021  fi
7022done
7023done
7024
7025fi
7026fi
7027ac_ct_F77=$ac_cv_prog_ac_ct_F77
7028if test -n "$ac_ct_F77"; then
7029  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7030echo "${ECHO_T}$ac_ct_F77" >&6
7031else
7032  echo "$as_me:$LINENO: result: no" >&5
7033echo "${ECHO_T}no" >&6
7034fi
7035
7036  test -n "$ac_ct_F77" && break
7037done
7038
7039  F77=$ac_ct_F77
7040fi
7041
7042
7043# Provide some information about the compiler.
7044echo "$as_me:7044:" \
7045     "checking for Fortran 77 compiler version" >&5
7046ac_compiler=`set X $ac_compile; echo $2`
7047{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7048  (eval $ac_compiler --version </dev/null >&5) 2>&5
7049  ac_status=$?
7050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051  (exit $ac_status); }
7052{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7053  (eval $ac_compiler -v </dev/null >&5) 2>&5
7054  ac_status=$?
7055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056  (exit $ac_status); }
7057{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7058  (eval $ac_compiler -V </dev/null >&5) 2>&5
7059  ac_status=$?
7060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061  (exit $ac_status); }
7062rm -f a.out
7063
7064# If we don't use `.F' as extension, the preprocessor is not run on the
7065# input file.  (Note that this only needs to work for GNU compilers.)
7066ac_save_ext=$ac_ext
7067ac_ext=F
7068echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7069echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7070if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7071  echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073  cat >conftest.$ac_ext <<_ACEOF
7074      program main
7075#ifndef __GNUC__
7076       choke me
7077#endif
7078
7079      end
7080_ACEOF
7081rm -f conftest.$ac_objext
7082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7083  (eval $ac_compile) 2>conftest.er1
7084  ac_status=$?
7085  grep -v '^ *+' conftest.er1 >conftest.err
7086  rm -f conftest.er1
7087  cat conftest.err >&5
7088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089  (exit $ac_status); } &&
7090         { ac_try='test -z "$ac_f77_werror_flag"
7091                         || test ! -s conftest.err'
7092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093  (eval $ac_try) 2>&5
7094  ac_status=$?
7095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096  (exit $ac_status); }; } &&
7097         { ac_try='test -s conftest.$ac_objext'
7098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7099  (eval $ac_try) 2>&5
7100  ac_status=$?
7101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102  (exit $ac_status); }; }; then
7103  ac_compiler_gnu=yes
7104else
7105  echo "$as_me: failed program was:" >&5
7106sed 's/^/| /' conftest.$ac_ext >&5
7107
7108ac_compiler_gnu=no
7109fi
7110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7111ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7112
7113fi
7114echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7115echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7116ac_ext=$ac_save_ext
7117ac_test_FFLAGS=${FFLAGS+set}
7118ac_save_FFLAGS=$FFLAGS
7119FFLAGS=
7120echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7121echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7122if test "${ac_cv_prog_f77_g+set}" = set; then
7123  echo $ECHO_N "(cached) $ECHO_C" >&6
7124else
7125  FFLAGS=-g
7126cat >conftest.$ac_ext <<_ACEOF
7127      program main
7128
7129      end
7130_ACEOF
7131rm -f conftest.$ac_objext
7132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7133  (eval $ac_compile) 2>conftest.er1
7134  ac_status=$?
7135  grep -v '^ *+' conftest.er1 >conftest.err
7136  rm -f conftest.er1
7137  cat conftest.err >&5
7138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139  (exit $ac_status); } &&
7140         { ac_try='test -z "$ac_f77_werror_flag"
7141                         || test ! -s conftest.err'
7142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143  (eval $ac_try) 2>&5
7144  ac_status=$?
7145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); }; } &&
7147         { ac_try='test -s conftest.$ac_objext'
7148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149  (eval $ac_try) 2>&5
7150  ac_status=$?
7151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152  (exit $ac_status); }; }; then
7153  ac_cv_prog_f77_g=yes
7154else
7155  echo "$as_me: failed program was:" >&5
7156sed 's/^/| /' conftest.$ac_ext >&5
7157
7158ac_cv_prog_f77_g=no
7159fi
7160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7161
7162fi
7163echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7164echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7165if test "$ac_test_FFLAGS" = set; then
7166  FFLAGS=$ac_save_FFLAGS
7167elif test $ac_cv_prog_f77_g = yes; then
7168  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7169    FFLAGS="-g -O2"
7170  else
7171    FFLAGS="-g"
7172  fi
7173else
7174  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7175    FFLAGS="-O2"
7176  else
7177    FFLAGS=
7178  fi
7179fi
7180
7181G77=`test $ac_compiler_gnu = yes && echo yes`
7182ac_ext=c
7183ac_cpp='$CPP $CPPFLAGS'
7184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7186ac_compiler_gnu=$ac_cv_c_compiler_gnu
7187
7188
7189
7190# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7191
7192# find the maximum length of command line arguments
7193echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7194echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7195if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7196  echo $ECHO_N "(cached) $ECHO_C" >&6
7197else
7198    i=0
7199  teststring="ABCD"
7200
7201  case $build_os in
7202  msdosdjgpp*)
7203    # On DJGPP, this test can blow up pretty badly due to problems in libc
7204    # (any single argument exceeding 2000 bytes causes a buffer overrun
7205    # during glob expansion).  Even if it were fixed, the result of this
7206    # check would be larger than it should be.
7207    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7208    ;;
7209
7210  gnu*)
7211    # Under GNU Hurd, this test is not required because there is
7212    # no limit to the length of command line arguments.
7213    # Libtool will interpret -1 as no limit whatsoever
7214    lt_cv_sys_max_cmd_len=-1;
7215    ;;
7216
7217  cygwin* | mingw*)
7218    # On Win9x/ME, this test blows up -- it succeeds, but takes
7219    # about 5 minutes as the teststring grows exponentially.
7220    # Worse, since 9x/ME are not pre-emptively multitasking,
7221    # you end up with a "frozen" computer, even though with patience
7222    # the test eventually succeeds (with a max line length of 256k).
7223    # Instead, let's just punt: use the minimum linelength reported by
7224    # all of the supported platforms: 8192 (on NT/2K/XP).
7225    lt_cv_sys_max_cmd_len=8192;
7226    ;;
7227
7228  amigaos*)
7229    # On AmigaOS with pdksh, this test takes hours, literally.
7230    # So we just punt and use a minimum line length of 8192.
7231    lt_cv_sys_max_cmd_len=8192;
7232    ;;
7233
7234  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7235    # This has been around since 386BSD, at least.  Likely further.
7236    if test -x /sbin/sysctl; then
7237      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7238    elif test -x /usr/sbin/sysctl; then
7239      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7240    else
7241      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7242    fi
7243    # And add a safety zone
7244    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7245    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7246    ;;
7247
7248  interix*)
7249    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7250    lt_cv_sys_max_cmd_len=196608
7251    ;;
7252
7253  osf*)
7254    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7255    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7256    # nice to cause kernel panics so lets avoid the loop below.
7257    # First set a reasonable default.
7258    lt_cv_sys_max_cmd_len=16384
7259    #
7260    if test -x /sbin/sysconfig; then
7261      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7262        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7263      esac
7264    fi
7265    ;;
7266  sco3.2v5*)
7267    lt_cv_sys_max_cmd_len=102400
7268    ;;
7269  sysv5* | sco5v6* | sysv4.2uw2*)
7270    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7271    if test -n "$kargmax"; then
7272      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7273    else
7274      lt_cv_sys_max_cmd_len=32768
7275    fi
7276    ;;
7277  *)
7278    # If test is not a shell built-in, we'll probably end up computing a
7279    # maximum length that is only half of the actual maximum length, but
7280    # we can't tell.
7281    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7282    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7283               = "XX$teststring") >/dev/null 2>&1 &&
7284            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7285            lt_cv_sys_max_cmd_len=$new_result &&
7286            test $i != 17 # 1/2 MB should be enough
7287    do
7288      i=`expr $i + 1`
7289      teststring=$teststring$teststring
7290    done
7291    teststring=
7292    # Add a significant safety factor because C++ compilers can tack on massive
7293    # amounts of additional arguments before passing them to the linker.
7294    # It appears as though 1/2 is a usable value.
7295    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7296    ;;
7297  esac
7298
7299fi
7300
7301if test -n $lt_cv_sys_max_cmd_len ; then
7302  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7303echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7304else
7305  echo "$as_me:$LINENO: result: none" >&5
7306echo "${ECHO_T}none" >&6
7307fi
7308
7309
7310
7311
7312# Check for command to grab the raw symbol name followed by C symbol from nm.
7313echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7314echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7315if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7316  echo $ECHO_N "(cached) $ECHO_C" >&6
7317else
7318
7319# These are sane defaults that work on at least a few old systems.
7320# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7321
7322# Character class describing NM global symbol codes.
7323symcode='[BCDEGRST]'
7324
7325# Regexp to match symbols that can be accessed directly from C.
7326sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7327
7328# Transform an extracted symbol line into a proper C declaration
7329lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7330
7331# Transform an extracted symbol line into symbol name and symbol address
7332lt_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'"
7333
7334# Define system-specific variables.
7335case $host_os in
7336aix*)
7337  symcode='[BCDT]'
7338  ;;
7339cygwin* | mingw* | pw32*)
7340  symcode='[ABCDGISTW]'
7341  ;;
7342hpux*) # Its linker distinguishes data from code symbols
7343  if test "$host_cpu" = ia64; then
7344    symcode='[ABCDEGRST]'
7345  fi
7346  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7347  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'"
7348  ;;
7349linux*)
7350  if test "$host_cpu" = ia64; then
7351    symcode='[ABCDGIRSTW]'
7352    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7353    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'"
7354  fi
7355  ;;
7356irix* | nonstopux*)
7357  symcode='[BCDEGRST]'
7358  ;;
7359osf*)
7360  symcode='[BCDEGQRST]'
7361  ;;
7362solaris*)
7363  symcode='[BDRT]'
7364  ;;
7365sco3.2v5*)
7366  symcode='[DT]'
7367  ;;
7368sysv4.2uw2*)
7369  symcode='[DT]'
7370  ;;
7371sysv5* | sco5v6* | unixware* | OpenUNIX*)
7372  symcode='[ABDT]'
7373  ;;
7374sysv4)
7375  symcode='[DFNSTU]'
7376  ;;
7377esac
7378
7379# Handle CRLF in mingw tool chain
7380opt_cr=
7381case $build_os in
7382mingw*)
7383  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7384  ;;
7385esac
7386
7387# If we're using GNU nm, then use its standard symbol codes.
7388case `$NM -V 2>&1` in
7389*GNU* | *'with BFD'*)
7390  symcode='[ABCDGIRSTW]' ;;
7391esac
7392
7393# Try without a prefix undercore, then with it.
7394for ac_symprfx in "" "_"; do
7395
7396  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7397  symxfrm="\\1 $ac_symprfx\\2 \\2"
7398
7399  # Write the raw and C identifiers.
7400  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7401
7402  # Check to see that the pipe works correctly.
7403  pipe_works=no
7404
7405  rm -f conftest*
7406  cat > conftest.$ac_ext <<EOF
7407#ifdef __cplusplus
7408extern "C" {
7409#endif
7410char nm_test_var;
7411void nm_test_func(){}
7412#ifdef __cplusplus
7413}
7414#endif
7415int main(){nm_test_var='a';nm_test_func();return(0);}
7416EOF
7417
7418  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7419  (eval $ac_compile) 2>&5
7420  ac_status=$?
7421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422  (exit $ac_status); }; then
7423    # Now try to grab the symbols.
7424    nlist=conftest.nm
7425    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7426  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7427  ac_status=$?
7428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429  (exit $ac_status); } && test -s "$nlist"; then
7430      # Try sorting and uniquifying the output.
7431      if sort "$nlist" | uniq > "$nlist"T; then
7432        mv -f "$nlist"T "$nlist"
7433      else
7434        rm -f "$nlist"T
7435      fi
7436
7437      # Make sure that we snagged all the symbols we need.
7438      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7439        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7440          cat <<EOF > conftest.$ac_ext
7441#ifdef __cplusplus
7442extern "C" {
7443#endif
7444
7445EOF
7446          # Now generate the symbol file.
7447          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7448
7449          cat <<EOF >> conftest.$ac_ext
7450#if defined (__STDC__) && __STDC__
7451# define lt_ptr_t void *
7452#else
7453# define lt_ptr_t char *
7454# define const
7455#endif
7456
7457/* The mapping between symbol names and symbols. */
7458const struct {
7459  const char *name;
7460  lt_ptr_t address;
7461}
7462lt_preloaded_symbols[] =
7463{
7464EOF
7465          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7466          cat <<\EOF >> conftest.$ac_ext
7467  {0, (lt_ptr_t) 0}
7468};
7469
7470#ifdef __cplusplus
7471}
7472#endif
7473EOF
7474          # Now try linking the two files.
7475          mv conftest.$ac_objext conftstm.$ac_objext
7476          lt_save_LIBS="$LIBS"
7477          lt_save_CFLAGS="$CFLAGS"
7478          LIBS="conftstm.$ac_objext"
7479          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7480          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7481  (eval $ac_link) 2>&5
7482  ac_status=$?
7483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7485            pipe_works=yes
7486          fi
7487          LIBS="$lt_save_LIBS"
7488          CFLAGS="$lt_save_CFLAGS"
7489        else
7490          echo "cannot find nm_test_func in $nlist" >&5
7491        fi
7492      else
7493        echo "cannot find nm_test_var in $nlist" >&5
7494      fi
7495    else
7496      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7497    fi
7498  else
7499    echo "$progname: failed program was:" >&5
7500    cat conftest.$ac_ext >&5
7501  fi
7502  rm -f conftest* conftst*
7503
7504  # Do not use the global_symbol_pipe unless it works.
7505  if test "$pipe_works" = yes; then
7506    break
7507  else
7508    lt_cv_sys_global_symbol_pipe=
7509  fi
7510done
7511
7512fi
7513
7514if test -z "$lt_cv_sys_global_symbol_pipe"; then
7515  lt_cv_sys_global_symbol_to_cdecl=
7516fi
7517if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7518  echo "$as_me:$LINENO: result: failed" >&5
7519echo "${ECHO_T}failed" >&6
7520else
7521  echo "$as_me:$LINENO: result: ok" >&5
7522echo "${ECHO_T}ok" >&6
7523fi
7524
7525echo "$as_me:$LINENO: checking for objdir" >&5
7526echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7527if test "${lt_cv_objdir+set}" = set; then
7528  echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530  rm -f .libs 2>/dev/null
7531mkdir .libs 2>/dev/null
7532if test -d .libs; then
7533  lt_cv_objdir=.libs
7534else
7535  # MS-DOS does not allow filenames that begin with a dot.
7536  lt_cv_objdir=_libs
7537fi
7538rmdir .libs 2>/dev/null
7539fi
7540echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7541echo "${ECHO_T}$lt_cv_objdir" >&6
7542objdir=$lt_cv_objdir
7543
7544
7545
7546
7547
7548case $host_os in
7549aix3*)
7550  # AIX sometimes has problems with the GCC collect2 program.  For some
7551  # reason, if we set the COLLECT_NAMES environment variable, the problems
7552  # vanish in a puff of smoke.
7553  if test "X${COLLECT_NAMES+set}" != Xset; then
7554    COLLECT_NAMES=
7555    export COLLECT_NAMES
7556  fi
7557  ;;
7558esac
7559
7560# Sed substitution that helps us do robust quoting.  It backslashifies
7561# metacharacters that are still active within double-quoted strings.
7562Xsed='sed -e 1s/^X//'
7563sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7564
7565# Same as above, but do not quote variable references.
7566double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7567
7568# Sed substitution to delay expansion of an escaped shell variable in a
7569# double_quote_subst'ed string.
7570delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7571
7572# Sed substitution to avoid accidental globbing in evaled expressions
7573no_glob_subst='s/\*/\\\*/g'
7574
7575# Constants:
7576rm="rm -f"
7577
7578# Global variables:
7579default_ofile=libtool
7580can_build_shared=yes
7581
7582# All known linkers require a `.a' archive for static linking (except MSVC,
7583# which needs '.lib').
7584libext=a
7585ltmain="$ac_aux_dir/ltmain.sh"
7586ofile="$default_ofile"
7587with_gnu_ld="$lt_cv_prog_gnu_ld"
7588
7589if test -n "$ac_tool_prefix"; then
7590  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7591set dummy ${ac_tool_prefix}ar; ac_word=$2
7592echo "$as_me:$LINENO: checking for $ac_word" >&5
7593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7594if test "${ac_cv_prog_AR+set}" = set; then
7595  echo $ECHO_N "(cached) $ECHO_C" >&6
7596else
7597  if test -n "$AR"; then
7598  ac_cv_prog_AR="$AR" # Let the user override the test.
7599else
7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601for as_dir in $PATH
7602do
7603  IFS=$as_save_IFS
7604  test -z "$as_dir" && as_dir=.
7605  for ac_exec_ext in '' $ac_executable_extensions; do
7606  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7607    ac_cv_prog_AR="${ac_tool_prefix}ar"
7608    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7609    break 2
7610  fi
7611done
7612done
7613
7614fi
7615fi
7616AR=$ac_cv_prog_AR
7617if test -n "$AR"; then
7618  echo "$as_me:$LINENO: result: $AR" >&5
7619echo "${ECHO_T}$AR" >&6
7620else
7621  echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
7623fi
7624
7625fi
7626if test -z "$ac_cv_prog_AR"; then
7627  ac_ct_AR=$AR
7628  # Extract the first word of "ar", so it can be a program name with args.
7629set dummy ar; ac_word=$2
7630echo "$as_me:$LINENO: checking for $ac_word" >&5
7631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7632if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7633  echo $ECHO_N "(cached) $ECHO_C" >&6
7634else
7635  if test -n "$ac_ct_AR"; then
7636  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7637else
7638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639for as_dir in $PATH
7640do
7641  IFS=$as_save_IFS
7642  test -z "$as_dir" && as_dir=.
7643  for ac_exec_ext in '' $ac_executable_extensions; do
7644  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7645    ac_cv_prog_ac_ct_AR="ar"
7646    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647    break 2
7648  fi
7649done
7650done
7651
7652  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7653fi
7654fi
7655ac_ct_AR=$ac_cv_prog_ac_ct_AR
7656if test -n "$ac_ct_AR"; then
7657  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7658echo "${ECHO_T}$ac_ct_AR" >&6
7659else
7660  echo "$as_me:$LINENO: result: no" >&5
7661echo "${ECHO_T}no" >&6
7662fi
7663
7664  AR=$ac_ct_AR
7665else
7666  AR="$ac_cv_prog_AR"
7667fi
7668
7669if test -n "$ac_tool_prefix"; then
7670  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7671set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7672echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7674if test "${ac_cv_prog_RANLIB+set}" = set; then
7675  echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677  if test -n "$RANLIB"; then
7678  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7679else
7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683  IFS=$as_save_IFS
7684  test -z "$as_dir" && as_dir=.
7685  for ac_exec_ext in '' $ac_executable_extensions; do
7686  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689    break 2
7690  fi
7691done
7692done
7693
7694fi
7695fi
7696RANLIB=$ac_cv_prog_RANLIB
7697if test -n "$RANLIB"; then
7698  echo "$as_me:$LINENO: result: $RANLIB" >&5
7699echo "${ECHO_T}$RANLIB" >&6
7700else
7701  echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703fi
7704
7705fi
7706if test -z "$ac_cv_prog_RANLIB"; then
7707  ac_ct_RANLIB=$RANLIB
7708  # Extract the first word of "ranlib", so it can be a program name with args.
7709set dummy ranlib; ac_word=$2
7710echo "$as_me:$LINENO: checking for $ac_word" >&5
7711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7712if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7713  echo $ECHO_N "(cached) $ECHO_C" >&6
7714else
7715  if test -n "$ac_ct_RANLIB"; then
7716  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7717else
7718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721  IFS=$as_save_IFS
7722  test -z "$as_dir" && as_dir=.
7723  for ac_exec_ext in '' $ac_executable_extensions; do
7724  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725    ac_cv_prog_ac_ct_RANLIB="ranlib"
7726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727    break 2
7728  fi
7729done
7730done
7731
7732  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7733fi
7734fi
7735ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7736if test -n "$ac_ct_RANLIB"; then
7737  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7738echo "${ECHO_T}$ac_ct_RANLIB" >&6
7739else
7740  echo "$as_me:$LINENO: result: no" >&5
7741echo "${ECHO_T}no" >&6
7742fi
7743
7744  RANLIB=$ac_ct_RANLIB
7745else
7746  RANLIB="$ac_cv_prog_RANLIB"
7747fi
7748
7749if test -n "$ac_tool_prefix"; then
7750  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7751set dummy ${ac_tool_prefix}strip; ac_word=$2
7752echo "$as_me:$LINENO: checking for $ac_word" >&5
7753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7754if test "${ac_cv_prog_STRIP+set}" = set; then
7755  echo $ECHO_N "(cached) $ECHO_C" >&6
7756else
7757  if test -n "$STRIP"; then
7758  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7759else
7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763  IFS=$as_save_IFS
7764  test -z "$as_dir" && as_dir=.
7765  for ac_exec_ext in '' $ac_executable_extensions; do
7766  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7767    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769    break 2
7770  fi
7771done
7772done
7773
7774fi
7775fi
7776STRIP=$ac_cv_prog_STRIP
7777if test -n "$STRIP"; then
7778  echo "$as_me:$LINENO: result: $STRIP" >&5
7779echo "${ECHO_T}$STRIP" >&6
7780else
7781  echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6
7783fi
7784
7785fi
7786if test -z "$ac_cv_prog_STRIP"; then
7787  ac_ct_STRIP=$STRIP
7788  # Extract the first word of "strip", so it can be a program name with args.
7789set dummy strip; ac_word=$2
7790echo "$as_me:$LINENO: checking for $ac_word" >&5
7791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7792if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7793  echo $ECHO_N "(cached) $ECHO_C" >&6
7794else
7795  if test -n "$ac_ct_STRIP"; then
7796  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7797else
7798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799for as_dir in $PATH
7800do
7801  IFS=$as_save_IFS
7802  test -z "$as_dir" && as_dir=.
7803  for ac_exec_ext in '' $ac_executable_extensions; do
7804  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805    ac_cv_prog_ac_ct_STRIP="strip"
7806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807    break 2
7808  fi
7809done
7810done
7811
7812  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7813fi
7814fi
7815ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7816if test -n "$ac_ct_STRIP"; then
7817  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7818echo "${ECHO_T}$ac_ct_STRIP" >&6
7819else
7820  echo "$as_me:$LINENO: result: no" >&5
7821echo "${ECHO_T}no" >&6
7822fi
7823
7824  STRIP=$ac_ct_STRIP
7825else
7826  STRIP="$ac_cv_prog_STRIP"
7827fi
7828
7829
7830old_CC="$CC"
7831old_CFLAGS="$CFLAGS"
7832
7833# Set sane defaults for various variables
7834test -z "$AR" && AR=ar
7835test -z "$AR_FLAGS" && AR_FLAGS=cru
7836test -z "$AS" && AS=as
7837test -z "$CC" && CC=cc
7838test -z "$LTCC" && LTCC=$CC
7839test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7840test -z "$DLLTOOL" && DLLTOOL=dlltool
7841test -z "$LD" && LD=ld
7842test -z "$LN_S" && LN_S="ln -s"
7843test -z "$MAGIC_CMD" && MAGIC_CMD=file
7844test -z "$NM" && NM=nm
7845test -z "$SED" && SED=sed
7846test -z "$OBJDUMP" && OBJDUMP=objdump
7847test -z "$RANLIB" && RANLIB=:
7848test -z "$STRIP" && STRIP=:
7849test -z "$ac_objext" && ac_objext=o
7850
7851# Determine commands to create old-style static archives.
7852old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7853old_postinstall_cmds='chmod 644 $oldlib'
7854old_postuninstall_cmds=
7855
7856if test -n "$RANLIB"; then
7857  case $host_os in
7858  openbsd*)
7859    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7860    ;;
7861  *)
7862    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7863    ;;
7864  esac
7865  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7866fi
7867
7868for cc_temp in $compiler""; do
7869  case $cc_temp in
7870    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7871    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7872    \-*) ;;
7873    *) break;;
7874  esac
7875done
7876cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7877
7878
7879# Only perform the check for file, if the check method requires it
7880case $deplibs_check_method in
7881file_magic*)
7882  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7883    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7884echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7885if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7886  echo $ECHO_N "(cached) $ECHO_C" >&6
7887else
7888  case $MAGIC_CMD in
7889[\\/*] |  ?:[\\/]*)
7890  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7891  ;;
7892*)
7893  lt_save_MAGIC_CMD="$MAGIC_CMD"
7894  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7895  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7896  for ac_dir in $ac_dummy; do
7897    IFS="$lt_save_ifs"
7898    test -z "$ac_dir" && ac_dir=.
7899    if test -f $ac_dir/${ac_tool_prefix}file; then
7900      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7901      if test -n "$file_magic_test_file"; then
7902        case $deplibs_check_method in
7903        "file_magic "*)
7904          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7905          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7906          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7907            $EGREP "$file_magic_regex" > /dev/null; then
7908            :
7909          else
7910            cat <<EOF 1>&2
7911
7912*** Warning: the command libtool uses to detect shared libraries,
7913*** $file_magic_cmd, produces output that libtool cannot recognize.
7914*** The result is that libtool may fail to recognize shared libraries
7915*** as such.  This will affect the creation of libtool libraries that
7916*** depend on shared libraries, but programs linked with such libtool
7917*** libraries will work regardless of this problem.  Nevertheless, you
7918*** may want to report the problem to your system manager and/or to
7919*** bug-libtool@gnu.org
7920
7921EOF
7922          fi ;;
7923        esac
7924      fi
7925      break
7926    fi
7927  done
7928  IFS="$lt_save_ifs"
7929  MAGIC_CMD="$lt_save_MAGIC_CMD"
7930  ;;
7931esac
7932fi
7933
7934MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7935if test -n "$MAGIC_CMD"; then
7936  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7937echo "${ECHO_T}$MAGIC_CMD" >&6
7938else
7939  echo "$as_me:$LINENO: result: no" >&5
7940echo "${ECHO_T}no" >&6
7941fi
7942
7943if test -z "$lt_cv_path_MAGIC_CMD"; then
7944  if test -n "$ac_tool_prefix"; then
7945    echo "$as_me:$LINENO: checking for file" >&5
7946echo $ECHO_N "checking for file... $ECHO_C" >&6
7947if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7948  echo $ECHO_N "(cached) $ECHO_C" >&6
7949else
7950  case $MAGIC_CMD in
7951[\\/*] |  ?:[\\/]*)
7952  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7953  ;;
7954*)
7955  lt_save_MAGIC_CMD="$MAGIC_CMD"
7956  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7957  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7958  for ac_dir in $ac_dummy; do
7959    IFS="$lt_save_ifs"
7960    test -z "$ac_dir" && ac_dir=.
7961    if test -f $ac_dir/file; then
7962      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7963      if test -n "$file_magic_test_file"; then
7964        case $deplibs_check_method in
7965        "file_magic "*)
7966          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7967          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7968          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7969            $EGREP "$file_magic_regex" > /dev/null; then
7970            :
7971          else
7972            cat <<EOF 1>&2
7973
7974*** Warning: the command libtool uses to detect shared libraries,
7975*** $file_magic_cmd, produces output that libtool cannot recognize.
7976*** The result is that libtool may fail to recognize shared libraries
7977*** as such.  This will affect the creation of libtool libraries that
7978*** depend on shared libraries, but programs linked with such libtool
7979*** libraries will work regardless of this problem.  Nevertheless, you
7980*** may want to report the problem to your system manager and/or to
7981*** bug-libtool@gnu.org
7982
7983EOF
7984          fi ;;
7985        esac
7986      fi
7987      break
7988    fi
7989  done
7990  IFS="$lt_save_ifs"
7991  MAGIC_CMD="$lt_save_MAGIC_CMD"
7992  ;;
7993esac
7994fi
7995
7996MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7997if test -n "$MAGIC_CMD"; then
7998  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7999echo "${ECHO_T}$MAGIC_CMD" >&6
8000else
8001  echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6
8003fi
8004
8005  else
8006    MAGIC_CMD=:
8007  fi
8008fi
8009
8010  fi
8011  ;;
8012esac
8013
8014enable_dlopen=no
8015enable_win32_dll=no
8016
8017# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8018if test "${enable_libtool_lock+set}" = set; then
8019  enableval="$enable_libtool_lock"
8020
8021fi;
8022test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8023
8024
8025# Check whether --with-pic or --without-pic was given.
8026if test "${with_pic+set}" = set; then
8027  withval="$with_pic"
8028  pic_mode="$withval"
8029else
8030  pic_mode=default
8031fi;
8032test -z "$pic_mode" && pic_mode=default
8033
8034# Use C for the default configuration in the libtool script
8035tagname=
8036lt_save_CC="$CC"
8037ac_ext=c
8038ac_cpp='$CPP $CPPFLAGS'
8039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8041ac_compiler_gnu=$ac_cv_c_compiler_gnu
8042
8043
8044# Source file extension for C test sources.
8045ac_ext=c
8046
8047# Object file extension for compiled C test sources.
8048objext=o
8049objext=$objext
8050
8051# Code to be used in simple compile tests
8052lt_simple_compile_test_code="int some_variable = 0;\n"
8053
8054# Code to be used in simple link tests
8055lt_simple_link_test_code='int main(){return(0);}\n'
8056
8057
8058# If no C compiler was specified, use CC.
8059LTCC=${LTCC-"$CC"}
8060
8061# If no C compiler flags were specified, use CFLAGS.
8062LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8063
8064# Allow CC to be a program name with arguments.
8065compiler=$CC
8066
8067
8068# save warnings/boilerplate of simple test code
8069ac_outfile=conftest.$ac_objext
8070printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8071eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8072_lt_compiler_boilerplate=`cat conftest.err`
8073$rm conftest*
8074
8075ac_outfile=conftest.$ac_objext
8076printf "$lt_simple_link_test_code" >conftest.$ac_ext
8077eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8078_lt_linker_boilerplate=`cat conftest.err`
8079$rm conftest*
8080
8081
8082## CAVEAT EMPTOR:
8083## There is no encapsulation within the following macros, do not change
8084## the running order or otherwise move them around unless you know exactly
8085## what you are doing...
8086
8087lt_prog_compiler_no_builtin_flag=
8088
8089if test "$GCC" = yes; then
8090  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8091
8092
8093echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8094echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8095if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8096  echo $ECHO_N "(cached) $ECHO_C" >&6
8097else
8098  lt_cv_prog_compiler_rtti_exceptions=no
8099  ac_outfile=conftest.$ac_objext
8100   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8101   lt_compiler_flag="-fno-rtti -fno-exceptions"
8102   # Insert the option either (1) after the last *FLAGS variable, or
8103   # (2) before a word containing "conftest.", or (3) at the end.
8104   # Note that $ac_compile itself does not contain backslashes and begins
8105   # with a dollar sign (not a hyphen), so the echo should work correctly.
8106   # The option is referenced via a variable to avoid confusing sed.
8107   lt_compile=`echo "$ac_compile" | $SED \
8108   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8109   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8110   -e 's:$: $lt_compiler_flag:'`
8111   (eval echo "\"\$as_me:8111: $lt_compile\"" >&5)
8112   (eval "$lt_compile" 2>conftest.err)
8113   ac_status=$?
8114   cat conftest.err >&5
8115   echo "$as_me:8115: \$? = $ac_status" >&5
8116   if (exit $ac_status) && test -s "$ac_outfile"; then
8117     # The compiler can only warn and ignore the option if not recognized
8118     # So say no if there are warnings other than the usual output.
8119     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8120     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8121     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8122       lt_cv_prog_compiler_rtti_exceptions=yes
8123     fi
8124   fi
8125   $rm conftest*
8126
8127fi
8128echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8129echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8130
8131if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8132    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8133else
8134    :
8135fi
8136
8137fi
8138
8139lt_prog_compiler_wl=
8140lt_prog_compiler_pic=
8141lt_prog_compiler_static=
8142
8143echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8144echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8145
8146  if test "$GCC" = yes; then
8147    lt_prog_compiler_wl='-Wl,'
8148    lt_prog_compiler_static='-static'
8149
8150    case $host_os in
8151      aix*)
8152      # All AIX code is PIC.
8153      if test "$host_cpu" = ia64; then
8154        # AIX 5 now supports IA64 processor
8155        lt_prog_compiler_static='-Bstatic'
8156      fi
8157      ;;
8158
8159    amigaos*)
8160      # FIXME: we need at least 68020 code to build shared libraries, but
8161      # adding the `-m68020' flag to GCC prevents building anything better,
8162      # like `-m68040'.
8163      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8164      ;;
8165
8166    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8167      # PIC is the default for these OSes.
8168      ;;
8169
8170    mingw* | pw32* | os2*)
8171      # This hack is so that the source file can tell whether it is being
8172      # built for inclusion in a dll (and should export symbols for example).
8173      lt_prog_compiler_pic='-DDLL_EXPORT'
8174      ;;
8175
8176    darwin* | rhapsody*)
8177      # PIC is the default on this platform
8178      # Common symbols not allowed in MH_DYLIB files
8179      lt_prog_compiler_pic='-fno-common'
8180      ;;
8181
8182    interix3*)
8183      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8184      # Instead, we relocate shared libraries at runtime.
8185      ;;
8186
8187    msdosdjgpp*)
8188      # Just because we use GCC doesn't mean we suddenly get shared libraries
8189      # on systems that don't support them.
8190      lt_prog_compiler_can_build_shared=no
8191      enable_shared=no
8192      ;;
8193
8194    sysv4*MP*)
8195      if test -d /usr/nec; then
8196        lt_prog_compiler_pic=-Kconform_pic
8197      fi
8198      ;;
8199
8200    hpux*)
8201      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8202      # not for PA HP-UX.
8203      case $host_cpu in
8204      hppa*64*|ia64*)
8205        # +Z the default
8206        ;;
8207      *)
8208        lt_prog_compiler_pic='-fPIC'
8209        ;;
8210      esac
8211      ;;
8212
8213    *)
8214      lt_prog_compiler_pic='-fPIC'
8215      ;;
8216    esac
8217  else
8218    # PORTME Check for flag to pass linker flags through the system compiler.
8219    case $host_os in
8220    aix*)
8221      lt_prog_compiler_wl='-Wl,'
8222      if test "$host_cpu" = ia64; then
8223        # AIX 5 now supports IA64 processor
8224        lt_prog_compiler_static='-Bstatic'
8225      else
8226        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8227      fi
8228      ;;
8229      darwin*)
8230        # PIC is the default on this platform
8231        # Common symbols not allowed in MH_DYLIB files
8232       case $cc_basename in
8233         xlc*)
8234         lt_prog_compiler_pic='-qnocommon'
8235         lt_prog_compiler_wl='-Wl,'
8236         ;;
8237       esac
8238       ;;
8239
8240    mingw* | pw32* | os2*)
8241      # This hack is so that the source file can tell whether it is being
8242      # built for inclusion in a dll (and should export symbols for example).
8243      lt_prog_compiler_pic='-DDLL_EXPORT'
8244      ;;
8245
8246    hpux9* | hpux10* | hpux11*)
8247      lt_prog_compiler_wl='-Wl,'
8248      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8249      # not for PA HP-UX.
8250      case $host_cpu in
8251      hppa*64*|ia64*)
8252        # +Z the default
8253        ;;
8254      *)
8255        lt_prog_compiler_pic='+Z'
8256        ;;
8257      esac
8258      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8259      lt_prog_compiler_static='${wl}-a ${wl}archive'
8260      ;;
8261
8262    irix5* | irix6* | nonstopux*)
8263      lt_prog_compiler_wl='-Wl,'
8264      # PIC (with -KPIC) is the default.
8265      lt_prog_compiler_static='-non_shared'
8266      ;;
8267
8268    newsos6)
8269      lt_prog_compiler_pic='-KPIC'
8270      lt_prog_compiler_static='-Bstatic'
8271      ;;
8272
8273    linux*)
8274      case $cc_basename in
8275      icc* | ecc*)
8276        lt_prog_compiler_wl='-Wl,'
8277        lt_prog_compiler_pic='-KPIC'
8278        lt_prog_compiler_static='-static'
8279        ;;
8280      pgcc* | pgf77* | pgf90* | pgf95*)
8281        # Portland Group compilers (*not* the Pentium gcc compiler,
8282        # which looks to be a dead project)
8283        lt_prog_compiler_wl='-Wl,'
8284        lt_prog_compiler_pic='-fpic'
8285        lt_prog_compiler_static='-Bstatic'
8286        ;;
8287      ccc*)
8288        lt_prog_compiler_wl='-Wl,'
8289        # All Alpha code is PIC.
8290        lt_prog_compiler_static='-non_shared'
8291        ;;
8292      esac
8293      ;;
8294
8295    osf3* | osf4* | osf5*)
8296      lt_prog_compiler_wl='-Wl,'
8297      # All OSF/1 code is PIC.
8298      lt_prog_compiler_static='-non_shared'
8299      ;;
8300
8301    solaris*)
8302      lt_prog_compiler_pic='-KPIC'
8303      lt_prog_compiler_static='-Bstatic'
8304      case $cc_basename in
8305      f77* | f90* | f95*)
8306        lt_prog_compiler_wl='-Qoption ld ';;
8307      *)
8308        lt_prog_compiler_wl='-Wl,';;
8309      esac
8310      ;;
8311
8312    sunos4*)
8313      lt_prog_compiler_wl='-Qoption ld '
8314      lt_prog_compiler_pic='-PIC'
8315      lt_prog_compiler_static='-Bstatic'
8316      ;;
8317
8318    sysv4 | sysv4.2uw2* | sysv4.3*)
8319      lt_prog_compiler_wl='-Wl,'
8320      lt_prog_compiler_pic='-KPIC'
8321      lt_prog_compiler_static='-Bstatic'
8322      ;;
8323
8324    sysv4*MP*)
8325      if test -d /usr/nec ;then
8326        lt_prog_compiler_pic='-Kconform_pic'
8327        lt_prog_compiler_static='-Bstatic'
8328      fi
8329      ;;
8330
8331    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8332      lt_prog_compiler_wl='-Wl,'
8333      lt_prog_compiler_pic='-KPIC'
8334      lt_prog_compiler_static='-Bstatic'
8335      ;;
8336
8337    unicos*)
8338      lt_prog_compiler_wl='-Wl,'
8339      lt_prog_compiler_can_build_shared=no
8340      ;;
8341
8342    uts4*)
8343      lt_prog_compiler_pic='-pic'
8344      lt_prog_compiler_static='-Bstatic'
8345      ;;
8346
8347    *)
8348      lt_prog_compiler_can_build_shared=no
8349      ;;
8350    esac
8351  fi
8352
8353echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8354echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8355
8356#
8357# Check to make sure the PIC flag actually works.
8358#
8359if test -n "$lt_prog_compiler_pic"; then
8360
8361echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8362echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8363if test "${lt_prog_compiler_pic_works+set}" = set; then
8364  echo $ECHO_N "(cached) $ECHO_C" >&6
8365else
8366  lt_prog_compiler_pic_works=no
8367  ac_outfile=conftest.$ac_objext
8368   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8369   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8370   # Insert the option either (1) after the last *FLAGS variable, or
8371   # (2) before a word containing "conftest.", or (3) at the end.
8372   # Note that $ac_compile itself does not contain backslashes and begins
8373   # with a dollar sign (not a hyphen), so the echo should work correctly.
8374   # The option is referenced via a variable to avoid confusing sed.
8375   lt_compile=`echo "$ac_compile" | $SED \
8376   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8377   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8378   -e 's:$: $lt_compiler_flag:'`
8379   (eval echo "\"\$as_me:8379: $lt_compile\"" >&5)
8380   (eval "$lt_compile" 2>conftest.err)
8381   ac_status=$?
8382   cat conftest.err >&5
8383   echo "$as_me:8383: \$? = $ac_status" >&5
8384   if (exit $ac_status) && test -s "$ac_outfile"; then
8385     # The compiler can only warn and ignore the option if not recognized
8386     # So say no if there are warnings other than the usual output.
8387     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8388     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8389     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8390       lt_prog_compiler_pic_works=yes
8391     fi
8392   fi
8393   $rm conftest*
8394
8395fi
8396echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8397echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8398
8399if test x"$lt_prog_compiler_pic_works" = xyes; then
8400    case $lt_prog_compiler_pic in
8401     "" | " "*) ;;
8402     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8403     esac
8404else
8405    lt_prog_compiler_pic=
8406     lt_prog_compiler_can_build_shared=no
8407fi
8408
8409fi
8410case $host_os in
8411  # For platforms which do not support PIC, -DPIC is meaningless:
8412  *djgpp*)
8413    lt_prog_compiler_pic=
8414    ;;
8415  *)
8416    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8417    ;;
8418esac
8419
8420#
8421# Check to make sure the static flag actually works.
8422#
8423wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8424echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8425echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8426if test "${lt_prog_compiler_static_works+set}" = set; then
8427  echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429  lt_prog_compiler_static_works=no
8430   save_LDFLAGS="$LDFLAGS"
8431   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8432   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8433   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8434     # The linker can only warn and ignore the option if not recognized
8435     # So say no if there are warnings
8436     if test -s conftest.err; then
8437       # Append any errors to the config.log.
8438       cat conftest.err 1>&5
8439       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8440       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8441       if diff conftest.exp conftest.er2 >/dev/null; then
8442         lt_prog_compiler_static_works=yes
8443       fi
8444     else
8445       lt_prog_compiler_static_works=yes
8446     fi
8447   fi
8448   $rm conftest*
8449   LDFLAGS="$save_LDFLAGS"
8450
8451fi
8452echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8453echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8454
8455if test x"$lt_prog_compiler_static_works" = xyes; then
8456    :
8457else
8458    lt_prog_compiler_static=
8459fi
8460
8461
8462echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8463echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8464if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8465  echo $ECHO_N "(cached) $ECHO_C" >&6
8466else
8467  lt_cv_prog_compiler_c_o=no
8468   $rm -r conftest 2>/dev/null
8469   mkdir conftest
8470   cd conftest
8471   mkdir out
8472   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8473
8474   lt_compiler_flag="-o out/conftest2.$ac_objext"
8475   # Insert the option either (1) after the last *FLAGS variable, or
8476   # (2) before a word containing "conftest.", or (3) at the end.
8477   # Note that $ac_compile itself does not contain backslashes and begins
8478   # with a dollar sign (not a hyphen), so the echo should work correctly.
8479   lt_compile=`echo "$ac_compile" | $SED \
8480   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8481   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8482   -e 's:$: $lt_compiler_flag:'`
8483   (eval echo "\"\$as_me:8483: $lt_compile\"" >&5)
8484   (eval "$lt_compile" 2>out/conftest.err)
8485   ac_status=$?
8486   cat out/conftest.err >&5
8487   echo "$as_me:8487: \$? = $ac_status" >&5
8488   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8489   then
8490     # The compiler can only warn and ignore the option if not recognized
8491     # So say no if there are warnings
8492     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8493     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8494     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8495       lt_cv_prog_compiler_c_o=yes
8496     fi
8497   fi
8498   chmod u+w . 2>&5
8499   $rm conftest*
8500   # SGI C++ compiler will create directory out/ii_files/ for
8501   # template instantiation
8502   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8503   $rm out/* && rmdir out
8504   cd ..
8505   rmdir conftest
8506   $rm conftest*
8507
8508fi
8509echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8510echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8511
8512
8513hard_links="nottested"
8514if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8515  # do not overwrite the value of need_locks provided by the user
8516  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8517echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8518  hard_links=yes
8519  $rm conftest*
8520  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8521  touch conftest.a
8522  ln conftest.a conftest.b 2>&5 || hard_links=no
8523  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8524  echo "$as_me:$LINENO: result: $hard_links" >&5
8525echo "${ECHO_T}$hard_links" >&6
8526  if test "$hard_links" = no; then
8527    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8528echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8529    need_locks=warn
8530  fi
8531else
8532  need_locks=no
8533fi
8534
8535echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8536echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8537
8538  runpath_var=
8539  allow_undefined_flag=
8540  enable_shared_with_static_runtimes=no
8541  archive_cmds=
8542  archive_expsym_cmds=
8543  old_archive_From_new_cmds=
8544  old_archive_from_expsyms_cmds=
8545  export_dynamic_flag_spec=
8546  whole_archive_flag_spec=
8547  thread_safe_flag_spec=
8548  hardcode_libdir_flag_spec=
8549  hardcode_libdir_flag_spec_ld=
8550  hardcode_libdir_separator=
8551  hardcode_direct=no
8552  hardcode_minus_L=no
8553  hardcode_shlibpath_var=unsupported
8554  link_all_deplibs=unknown
8555  hardcode_automatic=no
8556  module_cmds=
8557  module_expsym_cmds=
8558  always_export_symbols=no
8559  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8560  # include_expsyms should be a list of space-separated symbols to be *always*
8561  # included in the symbol list
8562  include_expsyms=
8563  # exclude_expsyms can be an extended regexp of symbols to exclude
8564  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8565  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8566  # as well as any symbol that contains `d'.
8567  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8568  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8569  # platforms (ab)use it in PIC code, but their linkers get confused if
8570  # the symbol is explicitly referenced.  Since portable code cannot
8571  # rely on this symbol name, it's probably fine to never include it in
8572  # preloaded symbol tables.
8573  extract_expsyms_cmds=
8574  # Just being paranoid about ensuring that cc_basename is set.
8575  for cc_temp in $compiler""; do
8576  case $cc_temp in
8577    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8578    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8579    \-*) ;;
8580    *) break;;
8581  esac
8582done
8583cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8584
8585  case $host_os in
8586  cygwin* | mingw* | pw32*)
8587    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8588    # When not using gcc, we currently assume that we are using
8589    # Microsoft Visual C++.
8590    if test "$GCC" != yes; then
8591      with_gnu_ld=no
8592    fi
8593    ;;
8594  interix*)
8595    # we just hope/assume this is gcc and not c89 (= MSVC++)
8596    with_gnu_ld=yes
8597    ;;
8598  openbsd*)
8599    with_gnu_ld=no
8600    ;;
8601  esac
8602
8603  ld_shlibs=yes
8604  if test "$with_gnu_ld" = yes; then
8605    # If archive_cmds runs LD, not CC, wlarc should be empty
8606    wlarc='${wl}'
8607
8608    # Set some defaults for GNU ld with shared library support. These
8609    # are reset later if shared libraries are not supported. Putting them
8610    # here allows them to be overridden if necessary.
8611    runpath_var=LD_RUN_PATH
8612    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8613    export_dynamic_flag_spec='${wl}--export-dynamic'
8614    # ancient GNU ld didn't support --whole-archive et. al.
8615    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8616        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8617      else
8618        whole_archive_flag_spec=
8619    fi
8620    supports_anon_versioning=no
8621    case `$LD -v 2>/dev/null` in
8622      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8623      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8624      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8625      *\ 2.11.*) ;; # other 2.11 versions
8626      *) supports_anon_versioning=yes ;;
8627    esac
8628
8629    # See if GNU ld supports shared libraries.
8630    case $host_os in
8631    aix3* | aix4* | aix5*)
8632      # On AIX/PPC, the GNU linker is very broken
8633      if test "$host_cpu" != ia64; then
8634        ld_shlibs=no
8635        cat <<EOF 1>&2
8636
8637*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8638*** to be unable to reliably create shared libraries on AIX.
8639*** Therefore, libtool is disabling shared libraries support.  If you
8640*** really care for shared libraries, you may want to modify your PATH
8641*** so that a non-GNU linker is found, and then restart.
8642
8643EOF
8644      fi
8645      ;;
8646
8647    amigaos*)
8648      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)'
8649      hardcode_libdir_flag_spec='-L$libdir'
8650      hardcode_minus_L=yes
8651
8652      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8653      # that the semantics of dynamic libraries on AmigaOS, at least up
8654      # to version 4, is to share data among multiple programs linked
8655      # with the same dynamic library.  Since this doesn't match the
8656      # behavior of shared libraries on other platforms, we can't use
8657      # them.
8658      ld_shlibs=no
8659      ;;
8660
8661    beos*)
8662      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8663        allow_undefined_flag=unsupported
8664        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8665        # support --undefined.  This deserves some investigation.  FIXME
8666        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8667      else
8668        ld_shlibs=no
8669      fi
8670      ;;
8671
8672    cygwin* | mingw* | pw32*)
8673      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8674      # as there is no search path for DLLs.
8675      hardcode_libdir_flag_spec='-L$libdir'
8676      allow_undefined_flag=unsupported
8677      always_export_symbols=no
8678      enable_shared_with_static_runtimes=yes
8679      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8680
8681      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8682        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8683        # If the export-symbols file already is a .def file (1st line
8684        # is EXPORTS), use it as is; otherwise, prepend...
8685        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8686          cp $export_symbols $output_objdir/$soname.def;
8687        else
8688          echo EXPORTS > $output_objdir/$soname.def;
8689          cat $export_symbols >> $output_objdir/$soname.def;
8690        fi~
8691        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8692      else
8693        ld_shlibs=no
8694      fi
8695      ;;
8696
8697    interix3*)
8698      hardcode_direct=no
8699      hardcode_shlibpath_var=no
8700      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8701      export_dynamic_flag_spec='${wl}-E'
8702      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8703      # Instead, shared libraries are loaded at an image base (0x10000000 by
8704      # default) and relocated if they conflict, which is a slow very memory
8705      # consuming and fragmenting process.  To avoid this, we pick a random,
8706      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8707      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8708      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8709      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'
8710      ;;
8711
8712    linux*)
8713      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8714        tmp_addflag=
8715        case $cc_basename,$host_cpu in
8716        pgcc*)                          # Portland Group C compiler
8717          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'
8718          tmp_addflag=' $pic_flag'
8719          ;;
8720        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8721          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'
8722          tmp_addflag=' $pic_flag -Mnomain' ;;
8723        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8724          tmp_addflag=' -i_dynamic' ;;
8725        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8726          tmp_addflag=' -i_dynamic -nofor_main' ;;
8727        ifc* | ifort*)                  # Intel Fortran compiler
8728          tmp_addflag=' -nofor_main' ;;
8729        esac
8730        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8731
8732        if test $supports_anon_versioning = yes; then
8733          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8734  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8735  $echo "local: *; };" >> $output_objdir/$libname.ver~
8736          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8737        fi
8738      else
8739        ld_shlibs=no
8740      fi
8741      ;;
8742
8743    netbsd*)
8744      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8745        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8746        wlarc=
8747      else
8748        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8750      fi
8751      ;;
8752
8753    solaris*)
8754      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8755        ld_shlibs=no
8756        cat <<EOF 1>&2
8757
8758*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8759*** create shared libraries on Solaris systems.  Therefore, libtool
8760*** is disabling shared libraries support.  We urge you to upgrade GNU
8761*** binutils to release 2.9.1 or newer.  Another option is to modify
8762*** your PATH or compiler configuration so that the native linker is
8763*** used, and then restart.
8764
8765EOF
8766      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8767        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8769      else
8770        ld_shlibs=no
8771      fi
8772      ;;
8773
8774    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8775      case `$LD -v 2>&1` in
8776        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8777        ld_shlibs=no
8778        cat <<_LT_EOF 1>&2
8779
8780*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8781*** reliably create shared libraries on SCO systems.  Therefore, libtool
8782*** is disabling shared libraries support.  We urge you to upgrade GNU
8783*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8784*** your PATH or compiler configuration so that the native linker is
8785*** used, and then restart.
8786
8787_LT_EOF
8788        ;;
8789        *)
8790          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8791            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8792            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8793            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8794          else
8795            ld_shlibs=no
8796          fi
8797        ;;
8798      esac
8799      ;;
8800
8801    sunos4*)
8802      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8803      wlarc=
8804      hardcode_direct=yes
8805      hardcode_shlibpath_var=no
8806      ;;
8807
8808    *)
8809      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8810        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8812      else
8813        ld_shlibs=no
8814      fi
8815      ;;
8816    esac
8817
8818    if test "$ld_shlibs" = no; then
8819      runpath_var=
8820      hardcode_libdir_flag_spec=
8821      export_dynamic_flag_spec=
8822      whole_archive_flag_spec=
8823    fi
8824  else
8825    # PORTME fill in a description of your system's linker (not GNU ld)
8826    case $host_os in
8827    aix3*)
8828      allow_undefined_flag=unsupported
8829      always_export_symbols=yes
8830      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'
8831      # Note: this linker hardcodes the directories in LIBPATH if there
8832      # are no directories specified by -L.
8833      hardcode_minus_L=yes
8834      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8835        # Neither direct hardcoding nor static linking is supported with a
8836        # broken collect2.
8837        hardcode_direct=unsupported
8838      fi
8839      ;;
8840
8841    aix4* | aix5*)
8842      if test "$host_cpu" = ia64; then
8843        # On IA64, the linker does run time linking by default, so we don't
8844        # have to do anything special.
8845        aix_use_runtimelinking=no
8846        exp_sym_flag='-Bexport'
8847        no_entry_flag=""
8848      else
8849        # If we're using GNU nm, then we don't want the "-C" option.
8850        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8851        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8852          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'
8853        else
8854          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'
8855        fi
8856        aix_use_runtimelinking=no
8857
8858        # Test if we are trying to use run time linking or normal
8859        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8860        # need to do runtime linking.
8861        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8862          for ld_flag in $LDFLAGS; do
8863          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8864            aix_use_runtimelinking=yes
8865            break
8866          fi
8867          done
8868          ;;
8869        esac
8870
8871        exp_sym_flag='-bexport'
8872        no_entry_flag='-bnoentry'
8873      fi
8874
8875      # When large executables or shared objects are built, AIX ld can
8876      # have problems creating the table of contents.  If linking a library
8877      # or program results in "error TOC overflow" add -mminimal-toc to
8878      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8879      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8880
8881      archive_cmds=''
8882      hardcode_direct=yes
8883      hardcode_libdir_separator=':'
8884      link_all_deplibs=yes
8885
8886      if test "$GCC" = yes; then
8887        case $host_os in aix4.[012]|aix4.[012].*)
8888        # We only want to do this on AIX 4.2 and lower, the check
8889        # below for broken collect2 doesn't work under 4.3+
8890          collect2name=`${CC} -print-prog-name=collect2`
8891          if test -f "$collect2name" && \
8892           strings "$collect2name" | grep resolve_lib_name >/dev/null
8893          then
8894          # We have reworked collect2
8895          hardcode_direct=yes
8896          else
8897          # We have old collect2
8898          hardcode_direct=unsupported
8899          # It fails to find uninstalled libraries when the uninstalled
8900          # path is not listed in the libpath.  Setting hardcode_minus_L
8901          # to unsupported forces relinking
8902          hardcode_minus_L=yes
8903          hardcode_libdir_flag_spec='-L$libdir'
8904          hardcode_libdir_separator=
8905          fi
8906          ;;
8907        esac
8908        shared_flag='-shared'
8909        if test "$aix_use_runtimelinking" = yes; then
8910          shared_flag="$shared_flag "'${wl}-G'
8911        fi
8912      else
8913        # not using gcc
8914        if test "$host_cpu" = ia64; then
8915        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8916        # chokes on -Wl,-G. The following line is correct:
8917          shared_flag='-G'
8918        else
8919          if test "$aix_use_runtimelinking" = yes; then
8920            shared_flag='${wl}-G'
8921          else
8922            shared_flag='${wl}-bM:SRE'
8923          fi
8924        fi
8925      fi
8926
8927      # It seems that -bexpall does not export symbols beginning with
8928      # underscore (_), so it is better to generate a list of symbols to export.
8929      always_export_symbols=yes
8930      if test "$aix_use_runtimelinking" = yes; then
8931        # Warning - without using the other runtime loading flags (-brtl),
8932        # -berok will link without error, but may produce a broken library.
8933        allow_undefined_flag='-berok'
8934       # Determine the default libpath from the value encoded in an empty executable.
8935       cat >conftest.$ac_ext <<_ACEOF
8936/* confdefs.h.  */
8937_ACEOF
8938cat confdefs.h >>conftest.$ac_ext
8939cat >>conftest.$ac_ext <<_ACEOF
8940/* end confdefs.h.  */
8941
8942int
8943main ()
8944{
8945
8946  ;
8947  return 0;
8948}
8949_ACEOF
8950rm -f conftest.$ac_objext conftest$ac_exeext
8951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8952  (eval $ac_link) 2>conftest.er1
8953  ac_status=$?
8954  grep -v '^ *+' conftest.er1 >conftest.err
8955  rm -f conftest.er1
8956  cat conftest.err >&5
8957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958  (exit $ac_status); } &&
8959         { ac_try='test -z "$ac_c_werror_flag"
8960                         || test ! -s conftest.err'
8961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962  (eval $ac_try) 2>&5
8963  ac_status=$?
8964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965  (exit $ac_status); }; } &&
8966         { ac_try='test -s conftest$ac_exeext'
8967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968  (eval $ac_try) 2>&5
8969  ac_status=$?
8970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971  (exit $ac_status); }; }; then
8972
8973aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8974}'`
8975# Check for a 64-bit object if we didn't find anything.
8976if 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; }
8977}'`; fi
8978else
8979  echo "$as_me: failed program was:" >&5
8980sed 's/^/| /' conftest.$ac_ext >&5
8981
8982fi
8983rm -f conftest.err conftest.$ac_objext \
8984      conftest$ac_exeext conftest.$ac_ext
8985if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8986
8987       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8988        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"
8989       else
8990        if test "$host_cpu" = ia64; then
8991          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8992          allow_undefined_flag="-z nodefs"
8993          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"
8994        else
8995         # Determine the default libpath from the value encoded in an empty executable.
8996         cat >conftest.$ac_ext <<_ACEOF
8997/* confdefs.h.  */
8998_ACEOF
8999cat confdefs.h >>conftest.$ac_ext
9000cat >>conftest.$ac_ext <<_ACEOF
9001/* end confdefs.h.  */
9002
9003int
9004main ()
9005{
9006
9007  ;
9008  return 0;
9009}
9010_ACEOF
9011rm -f conftest.$ac_objext conftest$ac_exeext
9012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9013  (eval $ac_link) 2>conftest.er1
9014  ac_status=$?
9015  grep -v '^ *+' conftest.er1 >conftest.err
9016  rm -f conftest.er1
9017  cat conftest.err >&5
9018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019  (exit $ac_status); } &&
9020         { ac_try='test -z "$ac_c_werror_flag"
9021                         || test ! -s conftest.err'
9022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023  (eval $ac_try) 2>&5
9024  ac_status=$?
9025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026  (exit $ac_status); }; } &&
9027         { ac_try='test -s conftest$ac_exeext'
9028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9029  (eval $ac_try) 2>&5
9030  ac_status=$?
9031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032  (exit $ac_status); }; }; then
9033
9034aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9035}'`
9036# Check for a 64-bit object if we didn't find anything.
9037if 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; }
9038}'`; fi
9039else
9040  echo "$as_me: failed program was:" >&5
9041sed 's/^/| /' conftest.$ac_ext >&5
9042
9043fi
9044rm -f conftest.err conftest.$ac_objext \
9045      conftest$ac_exeext conftest.$ac_ext
9046if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9047
9048         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9049          # Warning - without using the other run time loading flags,
9050          # -berok will link without error, but may produce a broken library.
9051          no_undefined_flag=' ${wl}-bernotok'
9052          allow_undefined_flag=' ${wl}-berok'
9053          # Exported symbols can be pulled into shared objects from archives
9054          whole_archive_flag_spec='$convenience'
9055          archive_cmds_need_lc=yes
9056          # This is similar to how AIX traditionally builds its shared libraries.
9057          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'
9058        fi
9059      fi
9060      ;;
9061
9062    amigaos*)
9063      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)'
9064      hardcode_libdir_flag_spec='-L$libdir'
9065      hardcode_minus_L=yes
9066      # see comment about different semantics on the GNU ld section
9067      ld_shlibs=no
9068      ;;
9069
9070    bsdi[45]*)
9071      export_dynamic_flag_spec=-rdynamic
9072      ;;
9073
9074    cygwin* | mingw* | pw32*)
9075      # When not using gcc, we currently assume that we are using
9076      # Microsoft Visual C++.
9077      # hardcode_libdir_flag_spec is actually meaningless, as there is
9078      # no search path for DLLs.
9079      hardcode_libdir_flag_spec=' '
9080      allow_undefined_flag=unsupported
9081      # Tell ltmain to make .lib files, not .a files.
9082      libext=lib
9083      # Tell ltmain to make .dll files, not .so files.
9084      shrext_cmds=".dll"
9085      # FIXME: Setting linknames here is a bad hack.
9086      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9087      # The linker will automatically build a .lib file if we build a DLL.
9088      old_archive_From_new_cmds='true'
9089      # FIXME: Should let the user specify the lib program.
9090      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9091      fix_srcfile_path='`cygpath -w "$srcfile"`'
9092      enable_shared_with_static_runtimes=yes
9093      ;;
9094
9095    darwin* | rhapsody*)
9096      case $host_os in
9097        rhapsody* | darwin1.[012])
9098         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9099         ;;
9100       *) # Darwin 1.3 on
9101         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9102           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9103         else
9104           case ${MACOSX_DEPLOYMENT_TARGET} in
9105             10.[012])
9106               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9107               ;;
9108             10.*)
9109               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9110               ;;
9111           esac
9112         fi
9113         ;;
9114      esac
9115      archive_cmds_need_lc=no
9116      hardcode_direct=no
9117      hardcode_automatic=yes
9118      hardcode_shlibpath_var=unsupported
9119      whole_archive_flag_spec=''
9120      link_all_deplibs=yes
9121    if test "$GCC" = yes ; then
9122        output_verbose_link_cmd='echo'
9123        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9124      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9125      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9126      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}'
9127      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}'
9128    else
9129      case $cc_basename in
9130        xlc*)
9131         output_verbose_link_cmd='echo'
9132         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9133         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9134          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9135         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}'
9136          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}'
9137          ;;
9138       *)
9139         ld_shlibs=no
9140          ;;
9141      esac
9142    fi
9143      ;;
9144
9145    dgux*)
9146      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9147      hardcode_libdir_flag_spec='-L$libdir'
9148      hardcode_shlibpath_var=no
9149      ;;
9150
9151    freebsd1*)
9152      ld_shlibs=no
9153      ;;
9154
9155    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9156    # support.  Future versions do this automatically, but an explicit c++rt0.o
9157    # does not break anything, and helps significantly (at the cost of a little
9158    # extra space).
9159    freebsd2.2*)
9160      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9161      hardcode_libdir_flag_spec='-R$libdir'
9162      hardcode_direct=yes
9163      hardcode_shlibpath_var=no
9164      ;;
9165
9166    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9167    freebsd2*)
9168      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9169      hardcode_direct=yes
9170      hardcode_minus_L=yes
9171      hardcode_shlibpath_var=no
9172      ;;
9173
9174    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9175    freebsd* | kfreebsd*-gnu | dragonfly*)
9176      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9177      hardcode_libdir_flag_spec='-R$libdir'
9178      hardcode_direct=yes
9179      hardcode_shlibpath_var=no
9180      ;;
9181
9182    hpux9*)
9183      if test "$GCC" = yes; then
9184        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'
9185      else
9186        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'
9187      fi
9188      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9189      hardcode_libdir_separator=:
9190      hardcode_direct=yes
9191
9192      # hardcode_minus_L: Not really in the search PATH,
9193      # but as the default location of the library.
9194      hardcode_minus_L=yes
9195      export_dynamic_flag_spec='${wl}-E'
9196      ;;
9197
9198    hpux10*)
9199      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9200        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9201      else
9202        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9203      fi
9204      if test "$with_gnu_ld" = no; then
9205        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9206        hardcode_libdir_separator=:
9207
9208        hardcode_direct=yes
9209        export_dynamic_flag_spec='${wl}-E'
9210
9211        # hardcode_minus_L: Not really in the search PATH,
9212        # but as the default location of the library.
9213        hardcode_minus_L=yes
9214      fi
9215      ;;
9216
9217    hpux11*)
9218      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9219        case $host_cpu in
9220        hppa*64*)
9221          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9222          ;;
9223        ia64*)
9224          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9225          ;;
9226        *)
9227          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9228          ;;
9229        esac
9230      else
9231        case $host_cpu in
9232        hppa*64*)
9233          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9234          ;;
9235        ia64*)
9236          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9237          ;;
9238        *)
9239          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9240          ;;
9241        esac
9242      fi
9243      if test "$with_gnu_ld" = no; then
9244        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9245        hardcode_libdir_separator=:
9246
9247        case $host_cpu in
9248        hppa*64*|ia64*)
9249          hardcode_libdir_flag_spec_ld='+b $libdir'
9250          hardcode_direct=no
9251          hardcode_shlibpath_var=no
9252          ;;
9253        *)
9254          hardcode_direct=yes
9255          export_dynamic_flag_spec='${wl}-E'
9256
9257          # hardcode_minus_L: Not really in the search PATH,
9258          # but as the default location of the library.
9259          hardcode_minus_L=yes
9260          ;;
9261        esac
9262      fi
9263      ;;
9264
9265    irix5* | irix6* | nonstopux*)
9266      if test "$GCC" = yes; then
9267        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'
9268      else
9269        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'
9270        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9271      fi
9272      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9273      hardcode_libdir_separator=:
9274      link_all_deplibs=yes
9275      ;;
9276
9277    netbsd*)
9278      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9279        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9280      else
9281        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9282      fi
9283      hardcode_libdir_flag_spec='-R$libdir'
9284      hardcode_direct=yes
9285      hardcode_shlibpath_var=no
9286      ;;
9287
9288    newsos6)
9289      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9290      hardcode_direct=yes
9291      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9292      hardcode_libdir_separator=:
9293      hardcode_shlibpath_var=no
9294      ;;
9295
9296    openbsd*)
9297      hardcode_direct=yes
9298      hardcode_shlibpath_var=no
9299      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9300        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9301        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9302        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9303        export_dynamic_flag_spec='${wl}-E'
9304      else
9305       case $host_os in
9306         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9307           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9308           hardcode_libdir_flag_spec='-R$libdir'
9309           ;;
9310         *)
9311           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9312           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9313           ;;
9314       esac
9315      fi
9316      ;;
9317
9318    os2*)
9319      hardcode_libdir_flag_spec='-L$libdir'
9320      hardcode_minus_L=yes
9321      allow_undefined_flag=unsupported
9322      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'
9323      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9324      ;;
9325
9326    osf3*)
9327      if test "$GCC" = yes; then
9328        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9329        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'
9330      else
9331        allow_undefined_flag=' -expect_unresolved \*'
9332        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'
9333      fi
9334      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9335      hardcode_libdir_separator=:
9336      ;;
9337
9338    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9339      if test "$GCC" = yes; then
9340        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9341        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'
9342        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9343      else
9344        allow_undefined_flag=' -expect_unresolved \*'
9345        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'
9346        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9347        $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'
9348
9349        # Both c and cxx compiler support -rpath directly
9350        hardcode_libdir_flag_spec='-rpath $libdir'
9351      fi
9352      hardcode_libdir_separator=:
9353      ;;
9354
9355    solaris*)
9356      no_undefined_flag=' -z text'
9357      if test "$GCC" = yes; then
9358        wlarc='${wl}'
9359        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9360        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9361          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9362      else
9363        wlarc=''
9364        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9365        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9366        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9367      fi
9368      hardcode_libdir_flag_spec='-R$libdir'
9369      hardcode_shlibpath_var=no
9370      case $host_os in
9371      solaris2.[0-5] | solaris2.[0-5].*) ;;
9372      *)
9373        # The compiler driver will combine linker options so we
9374        # cannot just pass the convience library names through
9375        # without $wl, iff we do not link with $LD.
9376        # Luckily, gcc supports the same syntax we need for Sun Studio.
9377        # Supported since Solaris 2.6 (maybe 2.5.1?)
9378        case $wlarc in
9379        '')
9380          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9381        *)
9382          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' ;;
9383        esac ;;
9384      esac
9385      link_all_deplibs=yes
9386      ;;
9387
9388    sunos4*)
9389      if test "x$host_vendor" = xsequent; then
9390        # Use $CC to link under sequent, because it throws in some extra .o
9391        # files that make .init and .fini sections work.
9392        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9393      else
9394        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9395      fi
9396      hardcode_libdir_flag_spec='-L$libdir'
9397      hardcode_direct=yes
9398      hardcode_minus_L=yes
9399      hardcode_shlibpath_var=no
9400      ;;
9401
9402    sysv4)
9403      case $host_vendor in
9404        sni)
9405          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9406          hardcode_direct=yes # is this really true???
9407        ;;
9408        siemens)
9409          ## LD is ld it makes a PLAMLIB
9410          ## CC just makes a GrossModule.
9411          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9412          reload_cmds='$CC -r -o $output$reload_objs'
9413          hardcode_direct=no
9414        ;;
9415        motorola)
9416          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9418        ;;
9419      esac
9420      runpath_var='LD_RUN_PATH'
9421      hardcode_shlibpath_var=no
9422      ;;
9423
9424    sysv4.3*)
9425      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9426      hardcode_shlibpath_var=no
9427      export_dynamic_flag_spec='-Bexport'
9428      ;;
9429
9430    sysv4*MP*)
9431      if test -d /usr/nec; then
9432        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9433        hardcode_shlibpath_var=no
9434        runpath_var=LD_RUN_PATH
9435        hardcode_runpath_var=yes
9436        ld_shlibs=yes
9437      fi
9438      ;;
9439
9440    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9441      no_undefined_flag='${wl}-z,text'
9442      archive_cmds_need_lc=no
9443      hardcode_shlibpath_var=no
9444      runpath_var='LD_RUN_PATH'
9445
9446      if test "$GCC" = yes; then
9447        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9449      else
9450        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452      fi
9453      ;;
9454
9455    sysv5* | sco3.2v5* | sco5v6*)
9456      # Note: We can NOT use -z defs as we might desire, because we do not
9457      # link with -lc, and that would cause any symbols used from libc to
9458      # always be unresolved, which means just about no library would
9459      # ever link correctly.  If we're not using GNU ld we use -z text
9460      # though, which does catch some bad symbols but isn't as heavy-handed
9461      # as -z defs.
9462      no_undefined_flag='${wl}-z,text'
9463      allow_undefined_flag='${wl}-z,nodefs'
9464      archive_cmds_need_lc=no
9465      hardcode_shlibpath_var=no
9466      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9467      hardcode_libdir_separator=':'
9468      link_all_deplibs=yes
9469      export_dynamic_flag_spec='${wl}-Bexport'
9470      runpath_var='LD_RUN_PATH'
9471
9472      if test "$GCC" = yes; then
9473        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9474        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9475      else
9476        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9477        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9478      fi
9479      ;;
9480
9481    uts4*)
9482      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9483      hardcode_libdir_flag_spec='-L$libdir'
9484      hardcode_shlibpath_var=no
9485      ;;
9486
9487    *)
9488      ld_shlibs=no
9489      ;;
9490    esac
9491  fi
9492
9493echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9494echo "${ECHO_T}$ld_shlibs" >&6
9495test "$ld_shlibs" = no && can_build_shared=no
9496
9497#
9498# Do we need to explicitly link libc?
9499#
9500case "x$archive_cmds_need_lc" in
9501x|xyes)
9502  # Assume -lc should be added
9503  archive_cmds_need_lc=yes
9504
9505  if test "$enable_shared" = yes && test "$GCC" = yes; then
9506    case $archive_cmds in
9507    *'~'*)
9508      # FIXME: we may have to deal with multi-command sequences.
9509      ;;
9510    '$CC '*)
9511      # Test whether the compiler implicitly links with -lc since on some
9512      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9513      # to ld, don't add -lc before -lgcc.
9514      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9515echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9516      $rm conftest*
9517      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9518
9519      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9520  (eval $ac_compile) 2>&5
9521  ac_status=$?
9522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523  (exit $ac_status); } 2>conftest.err; then
9524        soname=conftest
9525        lib=conftest
9526        libobjs=conftest.$ac_objext
9527        deplibs=
9528        wl=$lt_prog_compiler_wl
9529        pic_flag=$lt_prog_compiler_pic
9530        compiler_flags=-v
9531        linker_flags=-v
9532        verstring=
9533        output_objdir=.
9534        libname=conftest
9535        lt_save_allow_undefined_flag=$allow_undefined_flag
9536        allow_undefined_flag=
9537        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9538  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9539  ac_status=$?
9540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541  (exit $ac_status); }
9542        then
9543          archive_cmds_need_lc=no
9544        else
9545          archive_cmds_need_lc=yes
9546        fi
9547        allow_undefined_flag=$lt_save_allow_undefined_flag
9548      else
9549        cat conftest.err 1>&5
9550      fi
9551      $rm conftest*
9552      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9553echo "${ECHO_T}$archive_cmds_need_lc" >&6
9554      ;;
9555    esac
9556  fi
9557  ;;
9558esac
9559
9560echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9561echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9562library_names_spec=
9563libname_spec='lib$name'
9564soname_spec=
9565shrext_cmds=".so"
9566postinstall_cmds=
9567postuninstall_cmds=
9568finish_cmds=
9569finish_eval=
9570shlibpath_var=
9571shlibpath_overrides_runpath=unknown
9572version_type=none
9573dynamic_linker="$host_os ld.so"
9574sys_lib_dlsearch_path_spec="/lib /usr/lib"
9575if test "$GCC" = yes; then
9576  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9577  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9578    # if the path contains ";" then we assume it to be the separator
9579    # otherwise default to the standard path separator (i.e. ":") - it is
9580    # assumed that no part of a normal pathname contains ";" but that should
9581    # okay in the real world where ";" in dirpaths is itself problematic.
9582    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9583  else
9584    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9585  fi
9586else
9587  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9588fi
9589need_lib_prefix=unknown
9590hardcode_into_libs=no
9591
9592# when you set need_version to no, make sure it does not cause -set_version
9593# flags to be left without arguments
9594need_version=unknown
9595
9596case $host_os in
9597aix3*)
9598  version_type=linux
9599  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9600  shlibpath_var=LIBPATH
9601
9602  # AIX 3 has no versioning support, so we append a major version to the name.
9603  soname_spec='${libname}${release}${shared_ext}$major'
9604  ;;
9605
9606aix4* | aix5*)
9607  version_type=linux
9608  need_lib_prefix=no
9609  need_version=no
9610  hardcode_into_libs=yes
9611  if test "$host_cpu" = ia64; then
9612    # AIX 5 supports IA64
9613    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9614    shlibpath_var=LD_LIBRARY_PATH
9615  else
9616    # With GCC up to 2.95.x, collect2 would create an import file
9617    # for dependence libraries.  The import file would start with
9618    # the line `#! .'.  This would cause the generated library to
9619    # depend on `.', always an invalid library.  This was fixed in
9620    # development snapshots of GCC prior to 3.0.
9621    case $host_os in
9622      aix4 | aix4.[01] | aix4.[01].*)
9623      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9624           echo ' yes '
9625           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9626        :
9627      else
9628        can_build_shared=no
9629      fi
9630      ;;
9631    esac
9632    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9633    # soname into executable. Probably we can add versioning support to
9634    # collect2, so additional links can be useful in future.
9635    if test "$aix_use_runtimelinking" = yes; then
9636      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9637      # instead of lib<name>.a to let people know that these are not
9638      # typical AIX shared libraries.
9639      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640    else
9641      # We preserve .a as extension for shared libraries through AIX4.2
9642      # and later when we are not doing run time linking.
9643      library_names_spec='${libname}${release}.a $libname.a'
9644      soname_spec='${libname}${release}${shared_ext}$major'
9645    fi
9646    shlibpath_var=LIBPATH
9647  fi
9648  ;;
9649
9650amigaos*)
9651  library_names_spec='$libname.ixlibrary $libname.a'
9652  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9653  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'
9654  ;;
9655
9656beos*)
9657  library_names_spec='${libname}${shared_ext}'
9658  dynamic_linker="$host_os ld.so"
9659  shlibpath_var=LIBRARY_PATH
9660  ;;
9661
9662bsdi[45]*)
9663  version_type=linux
9664  need_version=no
9665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666  soname_spec='${libname}${release}${shared_ext}$major'
9667  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9668  shlibpath_var=LD_LIBRARY_PATH
9669  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9670  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9671  # the default ld.so.conf also contains /usr/contrib/lib and
9672  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9673  # libtool to hard-code these into programs
9674  ;;
9675
9676cygwin* | mingw* | pw32*)
9677  version_type=windows
9678  shrext_cmds=".dll"
9679  need_version=no
9680  need_lib_prefix=no
9681
9682  case $GCC,$host_os in
9683  yes,cygwin* | yes,mingw* | yes,pw32*)
9684    library_names_spec='$libname.dll.a'
9685    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9686    postinstall_cmds='base_file=`basename \${file}`~
9687      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9688      dldir=$destdir/`dirname \$dlpath`~
9689      test -d \$dldir || mkdir -p \$dldir~
9690      $install_prog $dir/$dlname \$dldir/$dlname~
9691      chmod a+x \$dldir/$dlname'
9692    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9693      dlpath=$dir/\$dldll~
9694       $rm \$dlpath'
9695    shlibpath_overrides_runpath=yes
9696
9697    case $host_os in
9698    cygwin*)
9699      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9700      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9701      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9702      ;;
9703    mingw*)
9704      # MinGW DLLs use traditional 'lib' prefix
9705      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9706      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9707      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9708        # It is most probably a Windows format PATH printed by
9709        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9710        # path with ; separators, and with drive letters. We can handle the
9711        # drive letters (cygwin fileutils understands them), so leave them,
9712        # especially as we might pass files found there to a mingw objdump,
9713        # which wouldn't understand a cygwinified path. Ahh.
9714        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9715      else
9716        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9717      fi
9718      ;;
9719    pw32*)
9720      # pw32 DLLs use 'pw' prefix rather than 'lib'
9721      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9722      ;;
9723    esac
9724    ;;
9725
9726  *)
9727    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9728    ;;
9729  esac
9730  dynamic_linker='Win32 ld.exe'
9731  # FIXME: first we should search . and the directory the executable is in
9732  shlibpath_var=PATH
9733  ;;
9734
9735darwin* | rhapsody*)
9736  dynamic_linker="$host_os dyld"
9737  version_type=darwin
9738  need_lib_prefix=no
9739  need_version=no
9740  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9741  soname_spec='${libname}${release}${major}$shared_ext'
9742  shlibpath_overrides_runpath=yes
9743  shlibpath_var=DYLD_LIBRARY_PATH
9744  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9745  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9746  if test "$GCC" = yes; then
9747    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"`
9748  else
9749    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9750  fi
9751  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9752  ;;
9753
9754dgux*)
9755  version_type=linux
9756  need_lib_prefix=no
9757  need_version=no
9758  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9759  soname_spec='${libname}${release}${shared_ext}$major'
9760  shlibpath_var=LD_LIBRARY_PATH
9761  ;;
9762
9763freebsd1*)
9764  dynamic_linker=no
9765  ;;
9766
9767kfreebsd*-gnu)
9768  version_type=linux
9769  need_lib_prefix=no
9770  need_version=no
9771  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9772  soname_spec='${libname}${release}${shared_ext}$major'
9773  shlibpath_var=LD_LIBRARY_PATH
9774  shlibpath_overrides_runpath=no
9775  hardcode_into_libs=yes
9776  dynamic_linker='GNU ld.so'
9777  ;;
9778
9779freebsd* | dragonfly*)
9780  # DragonFly does not have aout.  When/if they implement a new
9781  # versioning mechanism, adjust this.
9782  if test -x /usr/bin/objformat; then
9783    objformat=`/usr/bin/objformat`
9784  else
9785    case $host_os in
9786    freebsd[123]*) objformat=aout ;;
9787    *) objformat=elf ;;
9788    esac
9789  fi
9790  version_type=freebsd-$objformat
9791  case $version_type in
9792    freebsd-elf*)
9793      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9794      need_version=no
9795      need_lib_prefix=no
9796      ;;
9797    freebsd-*)
9798      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9799      need_version=yes
9800      ;;
9801  esac
9802  shlibpath_var=LD_LIBRARY_PATH
9803  case $host_os in
9804  freebsd2*)
9805    shlibpath_overrides_runpath=yes
9806    ;;
9807  freebsd3.[01]* | freebsdelf3.[01]*)
9808    shlibpath_overrides_runpath=yes
9809    hardcode_into_libs=yes
9810    ;;
9811  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9812  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9813    shlibpath_overrides_runpath=no
9814    hardcode_into_libs=yes
9815    ;;
9816  freebsd*) # from 4.6 on
9817    shlibpath_overrides_runpath=yes
9818    hardcode_into_libs=yes
9819    ;;
9820  esac
9821  ;;
9822
9823gnu*)
9824  version_type=linux
9825  need_lib_prefix=no
9826  need_version=no
9827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9828  soname_spec='${libname}${release}${shared_ext}$major'
9829  shlibpath_var=LD_LIBRARY_PATH
9830  hardcode_into_libs=yes
9831  ;;
9832
9833hpux9* | hpux10* | hpux11*)
9834  # Give a soname corresponding to the major version so that dld.sl refuses to
9835  # link against other versions.
9836  version_type=sunos
9837  need_lib_prefix=no
9838  need_version=no
9839  case $host_cpu in
9840  ia64*)
9841    shrext_cmds='.so'
9842    hardcode_into_libs=yes
9843    dynamic_linker="$host_os dld.so"
9844    shlibpath_var=LD_LIBRARY_PATH
9845    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9846    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9847    soname_spec='${libname}${release}${shared_ext}$major'
9848    if test "X$HPUX_IA64_MODE" = X32; then
9849      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9850    else
9851      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9852    fi
9853    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9854    ;;
9855   hppa*64*)
9856     shrext_cmds='.sl'
9857     hardcode_into_libs=yes
9858     dynamic_linker="$host_os dld.sl"
9859     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9860     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9861     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9862     soname_spec='${libname}${release}${shared_ext}$major'
9863     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9864     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9865     ;;
9866   *)
9867    shrext_cmds='.sl'
9868    dynamic_linker="$host_os dld.sl"
9869    shlibpath_var=SHLIB_PATH
9870    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9871    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9872    soname_spec='${libname}${release}${shared_ext}$major'
9873    ;;
9874  esac
9875  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9876  postinstall_cmds='chmod 555 $lib'
9877  ;;
9878
9879interix3*)
9880  version_type=linux
9881  need_lib_prefix=no
9882  need_version=no
9883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9884  soname_spec='${libname}${release}${shared_ext}$major'
9885  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9886  shlibpath_var=LD_LIBRARY_PATH
9887  shlibpath_overrides_runpath=no
9888  hardcode_into_libs=yes
9889  ;;
9890
9891irix5* | irix6* | nonstopux*)
9892  case $host_os in
9893    nonstopux*) version_type=nonstopux ;;
9894    *)
9895        if test "$lt_cv_prog_gnu_ld" = yes; then
9896                version_type=linux
9897        else
9898                version_type=irix
9899        fi ;;
9900  esac
9901  need_lib_prefix=no
9902  need_version=no
9903  soname_spec='${libname}${release}${shared_ext}$major'
9904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9905  case $host_os in
9906  irix5* | nonstopux*)
9907    libsuff= shlibsuff=
9908    ;;
9909  *)
9910    case $LD in # libtool.m4 will add one of these switches to LD
9911    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9912      libsuff= shlibsuff= libmagic=32-bit;;
9913    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9914      libsuff=32 shlibsuff=N32 libmagic=N32;;
9915    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9916      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9917    *) libsuff= shlibsuff= libmagic=never-match;;
9918    esac
9919    ;;
9920  esac
9921  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9922  shlibpath_overrides_runpath=no
9923  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9924  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9925  hardcode_into_libs=yes
9926  ;;
9927
9928# No shared lib support for Linux oldld, aout, or coff.
9929linux*oldld* | linux*aout* | linux*coff*)
9930  dynamic_linker=no
9931  ;;
9932
9933# This must be Linux ELF.
9934linux*)
9935  version_type=linux
9936  need_lib_prefix=no
9937  need_version=no
9938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9939  soname_spec='${libname}${release}${shared_ext}$major'
9940  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9941  shlibpath_var=LD_LIBRARY_PATH
9942  shlibpath_overrides_runpath=no
9943  # This implies no fast_install, which is unacceptable.
9944  # Some rework will be needed to allow for fast_install
9945  # before this can be enabled.
9946  hardcode_into_libs=yes
9947
9948  # Append ld.so.conf contents to the search path
9949  if test -f /etc/ld.so.conf; then
9950    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' ' '`
9951    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9952  fi
9953
9954  # We used to test for /lib/ld.so.1 and disable shared libraries on
9955  # powerpc, because MkLinux only supported shared libraries with the
9956  # GNU dynamic linker.  Since this was broken with cross compilers,
9957  # most powerpc-linux boxes support dynamic linking these days and
9958  # people can always --disable-shared, the test was removed, and we
9959  # assume the GNU/Linux dynamic linker is in use.
9960  dynamic_linker='GNU/Linux ld.so'
9961  ;;
9962
9963knetbsd*-gnu)
9964  version_type=linux
9965  need_lib_prefix=no
9966  need_version=no
9967  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9968  soname_spec='${libname}${release}${shared_ext}$major'
9969  shlibpath_var=LD_LIBRARY_PATH
9970  shlibpath_overrides_runpath=no
9971  hardcode_into_libs=yes
9972  dynamic_linker='GNU ld.so'
9973  ;;
9974
9975netbsd*)
9976  version_type=sunos
9977  need_lib_prefix=no
9978  need_version=no
9979  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9980    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9981    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9982    dynamic_linker='NetBSD (a.out) ld.so'
9983  else
9984    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9985    soname_spec='${libname}${release}${shared_ext}$major'
9986    dynamic_linker='NetBSD ld.elf_so'
9987  fi
9988  shlibpath_var=LD_LIBRARY_PATH
9989  shlibpath_overrides_runpath=yes
9990  hardcode_into_libs=yes
9991  ;;
9992
9993newsos6)
9994  version_type=linux
9995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996  shlibpath_var=LD_LIBRARY_PATH
9997  shlibpath_overrides_runpath=yes
9998  ;;
9999
10000nto-qnx*)
10001  version_type=linux
10002  need_lib_prefix=no
10003  need_version=no
10004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005  soname_spec='${libname}${release}${shared_ext}$major'
10006  shlibpath_var=LD_LIBRARY_PATH
10007  shlibpath_overrides_runpath=yes
10008  ;;
10009
10010openbsd*)
10011  version_type=sunos
10012  sys_lib_dlsearch_path_spec="/usr/lib"
10013  need_lib_prefix=no
10014  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10015  case $host_os in
10016    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10017    *)                         need_version=no  ;;
10018  esac
10019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10020  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10021  shlibpath_var=LD_LIBRARY_PATH
10022  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10023    case $host_os in
10024      openbsd2.[89] | openbsd2.[89].*)
10025        shlibpath_overrides_runpath=no
10026        ;;
10027      *)
10028        shlibpath_overrides_runpath=yes
10029        ;;
10030      esac
10031  else
10032    shlibpath_overrides_runpath=yes
10033  fi
10034  ;;
10035
10036os2*)
10037  libname_spec='$name'
10038  shrext_cmds=".dll"
10039  need_lib_prefix=no
10040  library_names_spec='$libname${shared_ext} $libname.a'
10041  dynamic_linker='OS/2 ld.exe'
10042  shlibpath_var=LIBPATH
10043  ;;
10044
10045osf3* | osf4* | osf5*)
10046  version_type=osf
10047  need_lib_prefix=no
10048  need_version=no
10049  soname_spec='${libname}${release}${shared_ext}$major'
10050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051  shlibpath_var=LD_LIBRARY_PATH
10052  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10053  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10054  ;;
10055
10056solaris*)
10057  version_type=linux
10058  need_lib_prefix=no
10059  need_version=no
10060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061  soname_spec='${libname}${release}${shared_ext}$major'
10062  shlibpath_var=LD_LIBRARY_PATH
10063  shlibpath_overrides_runpath=yes
10064  hardcode_into_libs=yes
10065  # ldd complains unless libraries are executable
10066  postinstall_cmds='chmod +x $lib'
10067  ;;
10068
10069sunos4*)
10070  version_type=sunos
10071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10072  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10073  shlibpath_var=LD_LIBRARY_PATH
10074  shlibpath_overrides_runpath=yes
10075  if test "$with_gnu_ld" = yes; then
10076    need_lib_prefix=no
10077  fi
10078  need_version=yes
10079  ;;
10080
10081sysv4 | sysv4.3*)
10082  version_type=linux
10083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084  soname_spec='${libname}${release}${shared_ext}$major'
10085  shlibpath_var=LD_LIBRARY_PATH
10086  case $host_vendor in
10087    sni)
10088      shlibpath_overrides_runpath=no
10089      need_lib_prefix=no
10090      export_dynamic_flag_spec='${wl}-Blargedynsym'
10091      runpath_var=LD_RUN_PATH
10092      ;;
10093    siemens)
10094      need_lib_prefix=no
10095      ;;
10096    motorola)
10097      need_lib_prefix=no
10098      need_version=no
10099      shlibpath_overrides_runpath=no
10100      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10101      ;;
10102  esac
10103  ;;
10104
10105sysv4*MP*)
10106  if test -d /usr/nec ;then
10107    version_type=linux
10108    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10109    soname_spec='$libname${shared_ext}.$major'
10110    shlibpath_var=LD_LIBRARY_PATH
10111  fi
10112  ;;
10113
10114sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10115  version_type=freebsd-elf
10116  need_lib_prefix=no
10117  need_version=no
10118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10119  soname_spec='${libname}${release}${shared_ext}$major'
10120  shlibpath_var=LD_LIBRARY_PATH
10121  hardcode_into_libs=yes
10122  if test "$with_gnu_ld" = yes; then
10123    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10124    shlibpath_overrides_runpath=no
10125  else
10126    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10127    shlibpath_overrides_runpath=yes
10128    case $host_os in
10129      sco3.2v5*)
10130        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10131        ;;
10132    esac
10133  fi
10134  sys_lib_dlsearch_path_spec='/usr/lib'
10135  ;;
10136
10137uts4*)
10138  version_type=linux
10139  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140  soname_spec='${libname}${release}${shared_ext}$major'
10141  shlibpath_var=LD_LIBRARY_PATH
10142  ;;
10143
10144*)
10145  dynamic_linker=no
10146  ;;
10147esac
10148echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10149echo "${ECHO_T}$dynamic_linker" >&6
10150test "$dynamic_linker" = no && can_build_shared=no
10151
10152variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10153if test "$GCC" = yes; then
10154  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10155fi
10156
10157echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10158echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10159hardcode_action=
10160if test -n "$hardcode_libdir_flag_spec" || \
10161   test -n "$runpath_var" || \
10162   test "X$hardcode_automatic" = "Xyes" ; then
10163
10164  # We can hardcode non-existant directories.
10165  if test "$hardcode_direct" != no &&
10166     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10167     # have to relink, otherwise we might link with an installed library
10168     # when we should be linking with a yet-to-be-installed one
10169     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10170     test "$hardcode_minus_L" != no; then
10171    # Linking always hardcodes the temporary library directory.
10172    hardcode_action=relink
10173  else
10174    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10175    hardcode_action=immediate
10176  fi
10177else
10178  # We cannot hardcode anything, or else we can only hardcode existing
10179  # directories.
10180  hardcode_action=unsupported
10181fi
10182echo "$as_me:$LINENO: result: $hardcode_action" >&5
10183echo "${ECHO_T}$hardcode_action" >&6
10184
10185if test "$hardcode_action" = relink; then
10186  # Fast installation is not supported
10187  enable_fast_install=no
10188elif test "$shlibpath_overrides_runpath" = yes ||
10189     test "$enable_shared" = no; then
10190  # Fast installation is not necessary
10191  enable_fast_install=needless
10192fi
10193
10194striplib=
10195old_striplib=
10196echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10197echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10198if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10199  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10200  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10201  echo "$as_me:$LINENO: result: yes" >&5
10202echo "${ECHO_T}yes" >&6
10203else
10204# FIXME - insert some real tests, host_os isn't really good enough
10205  case $host_os in
10206   darwin*)
10207       if test -n "$STRIP" ; then
10208         striplib="$STRIP -x"
10209         echo "$as_me:$LINENO: result: yes" >&5
10210echo "${ECHO_T}yes" >&6
10211       else
10212  echo "$as_me:$LINENO: result: no" >&5
10213echo "${ECHO_T}no" >&6
10214fi
10215       ;;
10216   *)
10217  echo "$as_me:$LINENO: result: no" >&5
10218echo "${ECHO_T}no" >&6
10219    ;;
10220  esac
10221fi
10222
10223if test "x$enable_dlopen" != xyes; then
10224  enable_dlopen=unknown
10225  enable_dlopen_self=unknown
10226  enable_dlopen_self_static=unknown
10227else
10228  lt_cv_dlopen=no
10229  lt_cv_dlopen_libs=
10230
10231  case $host_os in
10232  beos*)
10233    lt_cv_dlopen="load_add_on"
10234    lt_cv_dlopen_libs=
10235    lt_cv_dlopen_self=yes
10236    ;;
10237
10238  mingw* | pw32*)
10239    lt_cv_dlopen="LoadLibrary"
10240    lt_cv_dlopen_libs=
10241   ;;
10242
10243  cygwin*)
10244    lt_cv_dlopen="dlopen"
10245    lt_cv_dlopen_libs=
10246   ;;
10247
10248  darwin*)
10249  # if libdl is installed we need to link against it
10250    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10251echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10252if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10253  echo $ECHO_N "(cached) $ECHO_C" >&6
10254else
10255  ac_check_lib_save_LIBS=$LIBS
10256LIBS="-ldl  $LIBS"
10257cat >conftest.$ac_ext <<_ACEOF
10258/* confdefs.h.  */
10259_ACEOF
10260cat confdefs.h >>conftest.$ac_ext
10261cat >>conftest.$ac_ext <<_ACEOF
10262/* end confdefs.h.  */
10263
10264/* Override any gcc2 internal prototype to avoid an error.  */
10265#ifdef __cplusplus
10266extern "C"
10267#endif
10268/* We use char because int might match the return type of a gcc2
10269   builtin and then its argument prototype would still apply.  */
10270char dlopen ();
10271int
10272main ()
10273{
10274dlopen ();
10275  ;
10276  return 0;
10277}
10278_ACEOF
10279rm -f conftest.$ac_objext conftest$ac_exeext
10280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10281  (eval $ac_link) 2>conftest.er1
10282  ac_status=$?
10283  grep -v '^ *+' conftest.er1 >conftest.err
10284  rm -f conftest.er1
10285  cat conftest.err >&5
10286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287  (exit $ac_status); } &&
10288         { ac_try='test -z "$ac_c_werror_flag"
10289                         || test ! -s conftest.err'
10290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10291  (eval $ac_try) 2>&5
10292  ac_status=$?
10293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294  (exit $ac_status); }; } &&
10295         { ac_try='test -s conftest$ac_exeext'
10296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10297  (eval $ac_try) 2>&5
10298  ac_status=$?
10299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300  (exit $ac_status); }; }; then
10301  ac_cv_lib_dl_dlopen=yes
10302else
10303  echo "$as_me: failed program was:" >&5
10304sed 's/^/| /' conftest.$ac_ext >&5
10305
10306ac_cv_lib_dl_dlopen=no
10307fi
10308rm -f conftest.err conftest.$ac_objext \
10309      conftest$ac_exeext conftest.$ac_ext
10310LIBS=$ac_check_lib_save_LIBS
10311fi
10312echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10313echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10314if test $ac_cv_lib_dl_dlopen = yes; then
10315  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10316else
10317
10318    lt_cv_dlopen="dyld"
10319    lt_cv_dlopen_libs=
10320    lt_cv_dlopen_self=yes
10321
10322fi
10323
10324   ;;
10325
10326  *)
10327    echo "$as_me:$LINENO: checking for shl_load" >&5
10328echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10329if test "${ac_cv_func_shl_load+set}" = set; then
10330  echo $ECHO_N "(cached) $ECHO_C" >&6
10331else
10332  cat >conftest.$ac_ext <<_ACEOF
10333/* confdefs.h.  */
10334_ACEOF
10335cat confdefs.h >>conftest.$ac_ext
10336cat >>conftest.$ac_ext <<_ACEOF
10337/* end confdefs.h.  */
10338/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10339   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10340#define shl_load innocuous_shl_load
10341
10342/* System header to define __stub macros and hopefully few prototypes,
10343    which can conflict with char shl_load (); below.
10344    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10345    <limits.h> exists even on freestanding compilers.  */
10346
10347#ifdef __STDC__
10348# include <limits.h>
10349#else
10350# include <assert.h>
10351#endif
10352
10353#undef shl_load
10354
10355/* Override any gcc2 internal prototype to avoid an error.  */
10356#ifdef __cplusplus
10357extern "C"
10358{
10359#endif
10360/* We use char because int might match the return type of a gcc2
10361   builtin and then its argument prototype would still apply.  */
10362char shl_load ();
10363/* The GNU C library defines this for functions which it implements
10364    to always fail with ENOSYS.  Some functions are actually named
10365    something starting with __ and the normal name is an alias.  */
10366#if defined (__stub_shl_load) || defined (__stub___shl_load)
10367choke me
10368#else
10369char (*f) () = shl_load;
10370#endif
10371#ifdef __cplusplus
10372}
10373#endif
10374
10375int
10376main ()
10377{
10378return f != shl_load;
10379  ;
10380  return 0;
10381}
10382_ACEOF
10383rm -f conftest.$ac_objext conftest$ac_exeext
10384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385  (eval $ac_link) 2>conftest.er1
10386  ac_status=$?
10387  grep -v '^ *+' conftest.er1 >conftest.err
10388  rm -f conftest.er1
10389  cat conftest.err >&5
10390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391  (exit $ac_status); } &&
10392         { ac_try='test -z "$ac_c_werror_flag"
10393                         || test ! -s conftest.err'
10394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395  (eval $ac_try) 2>&5
10396  ac_status=$?
10397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398  (exit $ac_status); }; } &&
10399         { ac_try='test -s conftest$ac_exeext'
10400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10401  (eval $ac_try) 2>&5
10402  ac_status=$?
10403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404  (exit $ac_status); }; }; then
10405  ac_cv_func_shl_load=yes
10406else
10407  echo "$as_me: failed program was:" >&5
10408sed 's/^/| /' conftest.$ac_ext >&5
10409
10410ac_cv_func_shl_load=no
10411fi
10412rm -f conftest.err conftest.$ac_objext \
10413      conftest$ac_exeext conftest.$ac_ext
10414fi
10415echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10416echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10417if test $ac_cv_func_shl_load = yes; then
10418  lt_cv_dlopen="shl_load"
10419else
10420  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10421echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10422if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10423  echo $ECHO_N "(cached) $ECHO_C" >&6
10424else
10425  ac_check_lib_save_LIBS=$LIBS
10426LIBS="-ldld  $LIBS"
10427cat >conftest.$ac_ext <<_ACEOF
10428/* confdefs.h.  */
10429_ACEOF
10430cat confdefs.h >>conftest.$ac_ext
10431cat >>conftest.$ac_ext <<_ACEOF
10432/* end confdefs.h.  */
10433
10434/* Override any gcc2 internal prototype to avoid an error.  */
10435#ifdef __cplusplus
10436extern "C"
10437#endif
10438/* We use char because int might match the return type of a gcc2
10439   builtin and then its argument prototype would still apply.  */
10440char shl_load ();
10441int
10442main ()
10443{
10444shl_load ();
10445  ;
10446  return 0;
10447}
10448_ACEOF
10449rm -f conftest.$ac_objext conftest$ac_exeext
10450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10451  (eval $ac_link) 2>conftest.er1
10452  ac_status=$?
10453  grep -v '^ *+' conftest.er1 >conftest.err
10454  rm -f conftest.er1
10455  cat conftest.err >&5
10456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457  (exit $ac_status); } &&
10458         { ac_try='test -z "$ac_c_werror_flag"
10459                         || test ! -s conftest.err'
10460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461  (eval $ac_try) 2>&5
10462  ac_status=$?
10463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464  (exit $ac_status); }; } &&
10465         { ac_try='test -s conftest$ac_exeext'
10466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10467  (eval $ac_try) 2>&5
10468  ac_status=$?
10469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470  (exit $ac_status); }; }; then
10471  ac_cv_lib_dld_shl_load=yes
10472else
10473  echo "$as_me: failed program was:" >&5
10474sed 's/^/| /' conftest.$ac_ext >&5
10475
10476ac_cv_lib_dld_shl_load=no
10477fi
10478rm -f conftest.err conftest.$ac_objext \
10479      conftest$ac_exeext conftest.$ac_ext
10480LIBS=$ac_check_lib_save_LIBS
10481fi
10482echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10483echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10484if test $ac_cv_lib_dld_shl_load = yes; then
10485  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10486else
10487  echo "$as_me:$LINENO: checking for dlopen" >&5
10488echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10489if test "${ac_cv_func_dlopen+set}" = set; then
10490  echo $ECHO_N "(cached) $ECHO_C" >&6
10491else
10492  cat >conftest.$ac_ext <<_ACEOF
10493/* confdefs.h.  */
10494_ACEOF
10495cat confdefs.h >>conftest.$ac_ext
10496cat >>conftest.$ac_ext <<_ACEOF
10497/* end confdefs.h.  */
10498/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10499   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10500#define dlopen innocuous_dlopen
10501
10502/* System header to define __stub macros and hopefully few prototypes,
10503    which can conflict with char dlopen (); below.
10504    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10505    <limits.h> exists even on freestanding compilers.  */
10506
10507#ifdef __STDC__
10508# include <limits.h>
10509#else
10510# include <assert.h>
10511#endif
10512
10513#undef dlopen
10514
10515/* Override any gcc2 internal prototype to avoid an error.  */
10516#ifdef __cplusplus
10517extern "C"
10518{
10519#endif
10520/* We use char because int might match the return type of a gcc2
10521   builtin and then its argument prototype would still apply.  */
10522char dlopen ();
10523/* The GNU C library defines this for functions which it implements
10524    to always fail with ENOSYS.  Some functions are actually named
10525    something starting with __ and the normal name is an alias.  */
10526#if defined (__stub_dlopen) || defined (__stub___dlopen)
10527choke me
10528#else
10529char (*f) () = dlopen;
10530#endif
10531#ifdef __cplusplus
10532}
10533#endif
10534
10535int
10536main ()
10537{
10538return f != dlopen;
10539  ;
10540  return 0;
10541}
10542_ACEOF
10543rm -f conftest.$ac_objext conftest$ac_exeext
10544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10545  (eval $ac_link) 2>conftest.er1
10546  ac_status=$?
10547  grep -v '^ *+' conftest.er1 >conftest.err
10548  rm -f conftest.er1
10549  cat conftest.err >&5
10550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551  (exit $ac_status); } &&
10552         { ac_try='test -z "$ac_c_werror_flag"
10553                         || test ! -s conftest.err'
10554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555  (eval $ac_try) 2>&5
10556  ac_status=$?
10557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558  (exit $ac_status); }; } &&
10559         { ac_try='test -s conftest$ac_exeext'
10560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561  (eval $ac_try) 2>&5
10562  ac_status=$?
10563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564  (exit $ac_status); }; }; then
10565  ac_cv_func_dlopen=yes
10566else
10567  echo "$as_me: failed program was:" >&5
10568sed 's/^/| /' conftest.$ac_ext >&5
10569
10570ac_cv_func_dlopen=no
10571fi
10572rm -f conftest.err conftest.$ac_objext \
10573      conftest$ac_exeext conftest.$ac_ext
10574fi
10575echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10576echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10577if test $ac_cv_func_dlopen = yes; then
10578  lt_cv_dlopen="dlopen"
10579else
10580  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10581echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10582if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10583  echo $ECHO_N "(cached) $ECHO_C" >&6
10584else
10585  ac_check_lib_save_LIBS=$LIBS
10586LIBS="-ldl  $LIBS"
10587cat >conftest.$ac_ext <<_ACEOF
10588/* confdefs.h.  */
10589_ACEOF
10590cat confdefs.h >>conftest.$ac_ext
10591cat >>conftest.$ac_ext <<_ACEOF
10592/* end confdefs.h.  */
10593
10594/* Override any gcc2 internal prototype to avoid an error.  */
10595#ifdef __cplusplus
10596extern "C"
10597#endif
10598/* We use char because int might match the return type of a gcc2
10599   builtin and then its argument prototype would still apply.  */
10600char dlopen ();
10601int
10602main ()
10603{
10604dlopen ();
10605  ;
10606  return 0;
10607}
10608_ACEOF
10609rm -f conftest.$ac_objext conftest$ac_exeext
10610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10611  (eval $ac_link) 2>conftest.er1
10612  ac_status=$?
10613  grep -v '^ *+' conftest.er1 >conftest.err
10614  rm -f conftest.er1
10615  cat conftest.err >&5
10616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617  (exit $ac_status); } &&
10618         { ac_try='test -z "$ac_c_werror_flag"
10619                         || test ! -s conftest.err'
10620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10621  (eval $ac_try) 2>&5
10622  ac_status=$?
10623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624  (exit $ac_status); }; } &&
10625         { ac_try='test -s conftest$ac_exeext'
10626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627  (eval $ac_try) 2>&5
10628  ac_status=$?
10629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630  (exit $ac_status); }; }; then
10631  ac_cv_lib_dl_dlopen=yes
10632else
10633  echo "$as_me: failed program was:" >&5
10634sed 's/^/| /' conftest.$ac_ext >&5
10635
10636ac_cv_lib_dl_dlopen=no
10637fi
10638rm -f conftest.err conftest.$ac_objext \
10639      conftest$ac_exeext conftest.$ac_ext
10640LIBS=$ac_check_lib_save_LIBS
10641fi
10642echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10643echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10644if test $ac_cv_lib_dl_dlopen = yes; then
10645  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10646else
10647  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10648echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10649if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10650  echo $ECHO_N "(cached) $ECHO_C" >&6
10651else
10652  ac_check_lib_save_LIBS=$LIBS
10653LIBS="-lsvld  $LIBS"
10654cat >conftest.$ac_ext <<_ACEOF
10655/* confdefs.h.  */
10656_ACEOF
10657cat confdefs.h >>conftest.$ac_ext
10658cat >>conftest.$ac_ext <<_ACEOF
10659/* end confdefs.h.  */
10660
10661/* Override any gcc2 internal prototype to avoid an error.  */
10662#ifdef __cplusplus
10663extern "C"
10664#endif
10665/* We use char because int might match the return type of a gcc2
10666   builtin and then its argument prototype would still apply.  */
10667char dlopen ();
10668int
10669main ()
10670{
10671dlopen ();
10672  ;
10673  return 0;
10674}
10675_ACEOF
10676rm -f conftest.$ac_objext conftest$ac_exeext
10677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10678  (eval $ac_link) 2>conftest.er1
10679  ac_status=$?
10680  grep -v '^ *+' conftest.er1 >conftest.err
10681  rm -f conftest.er1
10682  cat conftest.err >&5
10683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684  (exit $ac_status); } &&
10685         { ac_try='test -z "$ac_c_werror_flag"
10686                         || test ! -s conftest.err'
10687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688  (eval $ac_try) 2>&5
10689  ac_status=$?
10690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691  (exit $ac_status); }; } &&
10692         { ac_try='test -s conftest$ac_exeext'
10693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694  (eval $ac_try) 2>&5
10695  ac_status=$?
10696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697  (exit $ac_status); }; }; then
10698  ac_cv_lib_svld_dlopen=yes
10699else
10700  echo "$as_me: failed program was:" >&5
10701sed 's/^/| /' conftest.$ac_ext >&5
10702
10703ac_cv_lib_svld_dlopen=no
10704fi
10705rm -f conftest.err conftest.$ac_objext \
10706      conftest$ac_exeext conftest.$ac_ext
10707LIBS=$ac_check_lib_save_LIBS
10708fi
10709echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10710echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10711if test $ac_cv_lib_svld_dlopen = yes; then
10712  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10713else
10714  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10715echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10716if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10717  echo $ECHO_N "(cached) $ECHO_C" >&6
10718else
10719  ac_check_lib_save_LIBS=$LIBS
10720LIBS="-ldld  $LIBS"
10721cat