source: stable/0.106/Osi/configure @ 1905

Last change on this file since 1905 was 1905, checked in by stefan, 9 years ago

restoring Osi/stable/0.106

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