source: trunk/Clp/configure @ 1711

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

make sure COIN_HAS_BLAS conditional is always defined; rerun autotools

  • Property svn:executable set to *
File size: 1020.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp trunk.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Clp trunk'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CLPLIB_CFLAGS CLPLIB_LIBS CLPLIB_PCLIBS CLPLIB_PCREQUIRES CLPLIB_DEPENDENCIES CLPLIB_CFLAGS_INSTALLED CLPLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSICLPLIB_CFLAGS OSICLPLIB_LIBS OSICLPLIB_PCLIBS OSICLPLIB_PCREQUIRES OSICLPLIB_DEPENDENCIES OSICLPLIB_CFLAGS_INSTALLED OSICLPLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE AMDINCDIR AMDLIB COIN_HAS_AMD_TRUE COIN_HAS_AMD_FALSE CHOLMODINCDIR CHOLMODLIB COIN_HAS_CHOLMOD_TRUE COIN_HAS_CHOLMOD_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE MUMPS_LIBS MUMPS_CFLAGS MUMPS_DATA MUMPS_DEPENDENCIES MUMPS_LIBS_INSTALLED MUMPS_CFLAGS_INSTALLED MUMPS_DATA_INSTALLED COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS MPIF77 FLIBS BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_WSMP_TRUE COIN_HAS_WSMP_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1001ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
1002ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1003ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1004ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1005ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1006ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1007ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1008ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1009ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1010ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1011ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1012ac_env_MPIF77_set=${MPIF77+set}
1013ac_env_MPIF77_value=$MPIF77
1014ac_cv_env_MPIF77_set=${MPIF77+set}
1015ac_cv_env_MPIF77_value=$MPIF77
1016
1017#
1018# Report the --help message.
1019#
1020if test "$ac_init_help" = "long"; then
1021  # Omit some internal or obsolete options to make the list less imposing.
1022  # This message is too long to be a string in the A/UX 3.1 sh.
1023  cat <<_ACEOF
1024\`configure' configures Clp trunk to adapt to many kinds of systems.
1025
1026Usage: $0 [OPTION]... [VAR=VALUE]...
1027
1028To assign environment variables (e.g., CC, CFLAGS...), specify them as
1029VAR=VALUE.  See below for descriptions of some of the useful variables.
1030
1031Defaults for the options are specified in brackets.
1032
1033Configuration:
1034  -h, --help              display this help and exit
1035      --help=short        display options specific to this package
1036      --help=recursive    display the short help of all the included packages
1037  -V, --version           display version information and exit
1038  -q, --quiet, --silent   do not print \`checking...' messages
1039      --cache-file=FILE   cache test results in FILE [disabled]
1040  -C, --config-cache      alias for \`--cache-file=config.cache'
1041  -n, --no-create         do not create output files
1042      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1043
1044_ACEOF
1045
1046  cat <<_ACEOF
1047Installation directories:
1048  --prefix=PREFIX         install architecture-independent files in PREFIX
1049                          [$ac_default_prefix]
1050  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1051                          [PREFIX]
1052
1053By default, \`make install' will install all the files in
1054\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1055an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1056for instance \`--prefix=\$HOME'.
1057
1058For better control, use the options below.
1059
1060Fine tuning of the installation directories:
1061  --bindir=DIR           user executables [EPREFIX/bin]
1062  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1063  --libexecdir=DIR       program executables [EPREFIX/libexec]
1064  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1065  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1066  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1067  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1068  --libdir=DIR           object code libraries [EPREFIX/lib]
1069  --includedir=DIR       C header files [PREFIX/include]
1070  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1071  --infodir=DIR          info documentation [PREFIX/info]
1072  --mandir=DIR           man documentation [PREFIX/man]
1073_ACEOF
1074
1075  cat <<\_ACEOF
1076
1077Program names:
1078  --program-prefix=PREFIX            prepend PREFIX to installed program names
1079  --program-suffix=SUFFIX            append SUFFIX to installed program names
1080  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1081
1082System types:
1083  --build=BUILD     configure for building on BUILD [guessed]
1084  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1085_ACEOF
1086fi
1087
1088if test -n "$ac_init_help"; then
1089  case $ac_init_help in
1090     short | recursive ) echo "Configuration of Clp trunk:";;
1091   esac
1092  cat <<\_ACEOF
1093
1094Optional Features:
1095  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1096  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1097  --enable-debug          compile all projects with debug options tests
1098  --enable-debug-clp compile this project (Clp) with debug options
1099  --enable-doscompile     Under Cygwin, compile so that executables run under
1100                          DOS. Set to mingw to use gcc/g++/ld with
1101                          -mno-cygwin. Set to msvc to use cl/link (or
1102                          icl/link). Default when mentioned: mingw. Default
1103                          when not mentioned: disabled.
1104  --enable-static[=PKGS]
1105                          build static libraries [default=no]
1106  --disable-dependency-tracking  speeds up one-time build
1107  --enable-dependency-tracking   do not reject slow dependency extractors
1108  --enable-maintainer-mode  enable make rules and dependencies not useful
1109                          (and sometimes confusing) to the casual installer
1110  --enable-shared[=PKGS]
1111                          build shared libraries [default=yes]
1112  --enable-fast-install[=PKGS]
1113                          optimize for fast installation [default=yes]
1114  --disable-libtool-lock  avoid locking (might break parallel builds)
1115  --enable-pkg-config     use pkg-config if available (default is yes)
1116  --enable-interpackage-dependencies
1117                          whether to deduce Makefile dependencies from package
1118                          linker flags (default: yes)
1119  --enable-amd-libcheck use disable-amd-libcheck to skip the link
1120                          check at configuration time
1121  --enable-cholmod-libcheck
1122                          use disable-cholmod-libcheck to skip the
1123                          link check at configuration time
1124  --enable-gnu-packages   compile with GNU packages (disabled by default)
1125
1126Optional Packages:
1127  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1128  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1129  --with-clp-verbosity specify the debug verbosity level for project Clp
1130  --with-clp-checklevel specify the sanity check level for project Clp
1131  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1132  --with-pic              try to use only PIC/non-PIC objects [default=use
1133                          both]
1134  --with-tags[=TAGS]
1135                          include additional configurations [automatic]
1136  --with-coin-instdir     prefix of installation directory for precompiled
1137                          COIN packages
1138  --with-coinutils-lib linker flags for using package CoinUtils
1139  --with-coinutils-incdir directory with header files for using package
1140                          CoinUtils
1141  --with-coinutils-datadir
1142                          directory with data files for using package
1143                          CoinUtils
1144  --with-osi-lib linker flags for using package Osi
1145  --with-osi-incdir directory with header files for using package Osi
1146  --with-osi-datadir directory with data files for using package Osi
1147  --with-ositests-lib linker flags for using package OsiTests
1148  --with-ositests-incdir directory with header files for using package
1149                          OsiTests
1150  --with-ositests-datadir directory with data files for using package OsiTests
1151  --with-sample-lib linker flags for using package Sample
1152  --with-sample-incdir directory with header files for using package Sample
1153  --with-sample-datadir directory with data files for using package Sample
1154  --with-netlib-lib linker flags for using package Netlib
1155  --with-netlib-incdir directory with header files for using package Netlib
1156  --with-netlib-datadir directory with data files for using package Netlib
1157  --with-amd-incdir specify the header file directory for library AMD
1158  --with-amd-lib specify the flags used to link with the library AMD
1159  --with-cholmod-incdir specify the header file directory for library CHOLMOD
1160  --with-cholmod-lib specify the flags used to link with the library CHOLMOD
1161  --with-glpk-lib linker flags for using package Glpk
1162  --with-glpk-incdir directory with header files for using package Glpk
1163  --with-glpk-datadir directory with data files for using package Glpk
1164  --with-mumps-lib linker flags for using package Mumps
1165  --with-mumps-incdir directory with header files for using package Mumps
1166  --with-mumps-datadir directory with data files for using package Mumps
1167  --with-wsmp             specify WSMP library
1168  --with-blas             specify BLAS library (or BUILD to enforce use of
1169                          ThirdParty/Blas)
1170
1171  --with-blas-lib linker flags for using package Blas
1172  --with-blas-incdir directory with header files for using package Blas
1173  --with-blas-datadir directory with data files for using package Blas
1174  --with-dot              use dot (from graphviz) when creating documentation
1175                          with doxygen if available; --without-dot to disable
1176
1177Some influential environment variables:
1178  CDEFS       Additional -D flags to be used when compiling C code.
1179  ADD_CFLAGS  Additional C compiler options
1180  DBG_CFLAGS  Debug C compiler options
1181  OPT_CFLAGS  Optimize C compiler options
1182  CC          C compiler command
1183  CFLAGS      C compiler flags
1184  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1185              nonstandard directory <lib dir>
1186  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1187              headers in a nonstandard directory <include dir>
1188  MPICC       C MPI Compiler
1189  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1190  ADD_CXXFLAGS
1191              Additional C++ compiler options
1192  DBG_CXXFLAGS
1193              Debug C++ compiler options
1194  OPT_CXXFLAGS
1195              Optimize C++ compiler options
1196  CXX         C++ compiler command
1197  CXXFLAGS    C++ compiler flags
1198  MPICXX      C++ MPI Compiler
1199  CPP         C preprocessor
1200  CXXCPP      C++ preprocessor
1201  F77         Fortran 77 compiler command
1202  FFLAGS      Fortran 77 compiler flags
1203  PKG_CONFIG  path to pkg-config utility
1204  ADD_FFLAGS  Additional Fortran compiler options
1205  DBG_FFLAGS  Debug Fortran compiler options
1206  OPT_FFLAGS  Optimize Fortran compiler options
1207  MPIF77      Fortran MPI Compiler
1208
1209Use these variables to override the choices made by `configure' or to help
1210it to find libraries and programs with nonstandard names/locations.
1211
1212Report bugs to <clp@list.coin-or.org>.
1213_ACEOF
1214fi
1215
1216if test "$ac_init_help" = "recursive"; then
1217  # If there are subdirs, report their specific --help.
1218  ac_popdir=`pwd`
1219  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1220    test -d $ac_dir || continue
1221    ac_builddir=.
1222
1223if test "$ac_dir" != .; then
1224  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1225  # A "../" for each directory in $ac_dir_suffix.
1226  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1227else
1228  ac_dir_suffix= ac_top_builddir=
1229fi
1230
1231case $srcdir in
1232  .)  # No --srcdir option.  We are building in place.
1233    ac_srcdir=.
1234    if test -z "$ac_top_builddir"; then
1235       ac_top_srcdir=.
1236    else
1237       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1238    fi ;;
1239  [\\/]* | ?:[\\/]* )  # Absolute path.
1240    ac_srcdir=$srcdir$ac_dir_suffix;
1241    ac_top_srcdir=$srcdir ;;
1242  *) # Relative path.
1243    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1244    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1245esac
1246
1247# Do not use `cd foo && pwd` to compute absolute paths, because
1248# the directories may not exist.
1249case `pwd` in
1250.) ac_abs_builddir="$ac_dir";;
1251*)
1252  case "$ac_dir" in
1253  .) ac_abs_builddir=`pwd`;;
1254  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1255  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1256  esac;;
1257esac
1258case $ac_abs_builddir in
1259.) ac_abs_top_builddir=${ac_top_builddir}.;;
1260*)
1261  case ${ac_top_builddir}. in
1262  .) ac_abs_top_builddir=$ac_abs_builddir;;
1263  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1264  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1265  esac;;
1266esac
1267case $ac_abs_builddir in
1268.) ac_abs_srcdir=$ac_srcdir;;
1269*)
1270  case $ac_srcdir in
1271  .) ac_abs_srcdir=$ac_abs_builddir;;
1272  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1273  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1274  esac;;
1275esac
1276case $ac_abs_builddir in
1277.) ac_abs_top_srcdir=$ac_top_srcdir;;
1278*)
1279  case $ac_top_srcdir in
1280  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1281  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1282  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1283  esac;;
1284esac
1285
1286    cd $ac_dir
1287    # Check for guested configure; otherwise get Cygnus style configure.
1288    if test -f $ac_srcdir/configure.gnu; then
1289      echo
1290      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1291    elif test -f $ac_srcdir/configure; then
1292      echo
1293      $SHELL $ac_srcdir/configure  --help=recursive
1294    elif test -f $ac_srcdir/configure.ac ||
1295           test -f $ac_srcdir/configure.in; then
1296      echo
1297      $ac_configure --help
1298    else
1299      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1300    fi
1301    cd $ac_popdir
1302  done
1303fi
1304
1305test -n "$ac_init_help" && exit 0
1306if $ac_init_version; then
1307  cat <<\_ACEOF
1308Clp configure trunk
1309generated by GNU Autoconf 2.59
1310
1311Copyright (C) 2003 Free Software Foundation, Inc.
1312This configure script is free software; the Free Software Foundation
1313gives unlimited permission to copy, distribute and modify it.
1314
1315
1316Copyright 2006 International Business Machines and others.
1317All Rights Reserved.
1318This file is part of the open source package Coin which is distributed
1319under the Eclipse Public License.
1320_ACEOF
1321  exit 0
1322fi
1323exec 5>config.log
1324cat >&5 <<_ACEOF
1325This file contains any messages produced by compilers while
1326running configure, to aid debugging if configure makes a mistake.
1327
1328It was created by Clp $as_me trunk, which was
1329generated by GNU Autoconf 2.59.  Invocation command line was
1330
1331  $ $0 $@
1332
1333_ACEOF
1334{
1335cat <<_ASUNAME
1336## --------- ##
1337## Platform. ##
1338## --------- ##
1339
1340hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1341uname -m = `(uname -m) 2>/dev/null || echo unknown`
1342uname -r = `(uname -r) 2>/dev/null || echo unknown`
1343uname -s = `(uname -s) 2>/dev/null || echo unknown`
1344uname -v = `(uname -v) 2>/dev/null || echo unknown`
1345
1346/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1347/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1348
1349/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1350/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1351/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1352hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1353/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1354/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1355/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1356
1357_ASUNAME
1358
1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360for as_dir in $PATH
1361do
1362  IFS=$as_save_IFS
1363  test -z "$as_dir" && as_dir=.
1364  echo "PATH: $as_dir"
1365done
1366
1367} >&5
1368
1369cat >&5 <<_ACEOF
1370
1371
1372## ----------- ##
1373## Core tests. ##
1374## ----------- ##
1375
1376_ACEOF
1377
1378
1379# Keep a trace of the command line.
1380# Strip out --no-create and --no-recursion so they do not pile up.
1381# Strip out --silent because we don't want to record it for future runs.
1382# Also quote any args containing shell meta-characters.
1383# Make two passes to allow for proper duplicate-argument suppression.
1384ac_configure_args=
1385ac_configure_args0=
1386ac_configure_args1=
1387ac_sep=
1388ac_must_keep_next=false
1389for ac_pass in 1 2
1390do
1391  for ac_arg
1392  do
1393    case $ac_arg in
1394    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1395    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1396    | -silent | --silent | --silen | --sile | --sil)
1397      continue ;;
1398    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1399      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1400    esac
1401    case $ac_pass in
1402    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1403    2)
1404      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1405      if test $ac_must_keep_next = true; then
1406        ac_must_keep_next=false # Got value, back to normal.
1407      else
1408        case $ac_arg in
1409          *=* | --config-cache | -C | -disable-* | --disable-* \
1410          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1411          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1412          | -with-* | --with-* | -without-* | --without-* | --x)
1413            case "$ac_configure_args0 " in
1414              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1415            esac
1416            ;;
1417          -* ) ac_must_keep_next=true ;;
1418        esac
1419      fi
1420      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1421      # Get rid of the leading space.
1422      ac_sep=" "
1423      ;;
1424    esac
1425  done
1426done
1427$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1428$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1429
1430# When interrupted or exit'd, cleanup temporary files, and complete
1431# config.log.  We remove comments because anyway the quotes in there
1432# would cause problems or look ugly.
1433# WARNING: Be sure not to use single quotes in there, as some shells,
1434# such as our DU 5.0 friend, will then `close' the trap.
1435trap 'exit_status=$?
1436  # Save into config.log some information that might help in debugging.
1437  {
1438    echo
1439
1440    cat <<\_ASBOX
1441## ---------------- ##
1442## Cache variables. ##
1443## ---------------- ##
1444_ASBOX
1445    echo
1446    # The following way of writing the cache mishandles newlines in values,
1447{
1448  (set) 2>&1 |
1449    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1450    *ac_space=\ *)
1451      sed -n \
1452        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1453          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1454      ;;
1455    *)
1456      sed -n \
1457        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1458      ;;
1459    esac;
1460}
1461    echo
1462
1463    cat <<\_ASBOX
1464## ----------------- ##
1465## Output variables. ##
1466## ----------------- ##
1467_ASBOX
1468    echo
1469    for ac_var in $ac_subst_vars
1470    do
1471      eval ac_val=$`echo $ac_var`
1472      echo "$ac_var='"'"'$ac_val'"'"'"
1473    done | sort
1474    echo
1475
1476    if test -n "$ac_subst_files"; then
1477      cat <<\_ASBOX
1478## ------------- ##
1479## Output files. ##
1480## ------------- ##
1481_ASBOX
1482      echo
1483      for ac_var in $ac_subst_files
1484      do
1485        eval ac_val=$`echo $ac_var`
1486        echo "$ac_var='"'"'$ac_val'"'"'"
1487      done | sort
1488      echo
1489    fi
1490
1491    if test -s confdefs.h; then
1492      cat <<\_ASBOX
1493## ----------- ##
1494## confdefs.h. ##
1495## ----------- ##
1496_ASBOX
1497      echo
1498      sed "/^$/d" confdefs.h | sort
1499      echo
1500    fi
1501    test "$ac_signal" != 0 &&
1502      echo "$as_me: caught signal $ac_signal"
1503    echo "$as_me: exit $exit_status"
1504  } >&5
1505  rm -f core *.core &&
1506  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1507    exit $exit_status
1508     ' 0
1509for ac_signal in 1 2 13 15; do
1510  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1511done
1512ac_signal=0
1513
1514# confdefs.h avoids OS command line length limits that DEFS can exceed.
1515rm -rf conftest* confdefs.h
1516# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1517echo >confdefs.h
1518
1519# Predefined preprocessor variables.
1520
1521cat >>confdefs.h <<_ACEOF
1522#define PACKAGE_NAME "$PACKAGE_NAME"
1523_ACEOF
1524
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_VERSION "$PACKAGE_VERSION"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_STRING "$PACKAGE_STRING"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1543_ACEOF
1544
1545
1546# Let the site file select an alternate cache file if it wants to.
1547# Prefer explicitly selected file to automatically selected ones.
1548if test -z "$CONFIG_SITE"; then
1549  if test "x$prefix" != xNONE; then
1550    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1551  else
1552    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1553  fi
1554fi
1555for ac_site_file in $CONFIG_SITE; do
1556  if test -r "$ac_site_file"; then
1557    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1558echo "$as_me: loading site script $ac_site_file" >&6;}
1559    sed 's/^/| /' "$ac_site_file" >&5
1560    . "$ac_site_file"
1561  fi
1562done
1563
1564if test -r "$cache_file"; then
1565  # Some versions of bash will fail to source /dev/null (special
1566  # files actually), so we avoid doing that.
1567  if test -f "$cache_file"; then
1568    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1569echo "$as_me: loading cache $cache_file" >&6;}
1570    case $cache_file in
1571      [\\/]* | ?:[\\/]* ) . $cache_file;;
1572      *)                      . ./$cache_file;;
1573    esac
1574  fi
1575else
1576  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1577echo "$as_me: creating cache $cache_file" >&6;}
1578  >$cache_file
1579fi
1580
1581# Check that the precious variables saved in the cache have kept the same
1582# value.
1583ac_cache_corrupted=false
1584for ac_var in `(set) 2>&1 |
1585               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1586  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1587  eval ac_new_set=\$ac_env_${ac_var}_set
1588  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1589  eval ac_new_val="\$ac_env_${ac_var}_value"
1590  case $ac_old_set,$ac_new_set in
1591    set,)
1592      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1593echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1594      ac_cache_corrupted=: ;;
1595    ,set)
1596      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1597echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1598      ac_cache_corrupted=: ;;
1599    ,);;
1600    *)
1601      if test "x$ac_old_val" != "x$ac_new_val"; then
1602        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1603echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1604        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1605echo "$as_me:   former value:  $ac_old_val" >&2;}
1606        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1607echo "$as_me:   current value: $ac_new_val" >&2;}
1608        ac_cache_corrupted=:
1609      fi;;
1610  esac
1611  # Pass precious variables to config.status.
1612  if test "$ac_new_set" = set; then
1613    case $ac_new_val in
1614    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1615      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1616    *) ac_arg=$ac_var=$ac_new_val ;;
1617    esac
1618    case " $ac_configure_args " in
1619      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1620      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1621    esac
1622  fi
1623done
1624if $ac_cache_corrupted; then
1625  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1626echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1627  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1628echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1629   { (exit 1); exit 1; }; }
1630fi
1631
1632ac_ext=c
1633ac_cpp='$CPP $CPPFLAGS'
1634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1636ac_compiler_gnu=$ac_cv_c_compiler_gnu
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667# List one file in the package so that the configure script can test
1668# whether the package is actually there
1669
1670
1671# Where should everything be installed by default?  Here, we want it
1672# to be installed directly in 'bin', 'lib', 'include' subdirectories
1673# of the directory where configure is run.  The default would be
1674# /usr/local.
1675
1676
1677#############################################################################
1678#                         Standard build tool stuff                         #
1679#############################################################################
1680
1681# Get the system type
1682ac_aux_dir=
1683for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1684  if test -f $ac_dir/install-sh; then
1685    ac_aux_dir=$ac_dir
1686    ac_install_sh="$ac_aux_dir/install-sh -c"
1687    break
1688  elif test -f $ac_dir/install.sh; then
1689    ac_aux_dir=$ac_dir
1690    ac_install_sh="$ac_aux_dir/install.sh -c"
1691    break
1692  elif test -f $ac_dir/shtool; then
1693    ac_aux_dir=$ac_dir
1694    ac_install_sh="$ac_aux_dir/shtool install -c"
1695    break
1696  fi
1697done
1698if test -z "$ac_aux_dir"; then
1699  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1700echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1701   { (exit 1); exit 1; }; }
1702fi
1703ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1704ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1705ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1706
1707# Make sure we can run config.sub.
1708$ac_config_sub sun4 >/dev/null 2>&1 ||
1709  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1710echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1711   { (exit 1); exit 1; }; }
1712
1713echo "$as_me:$LINENO: checking build system type" >&5
1714echo $ECHO_N "checking build system type... $ECHO_C" >&6
1715if test "${ac_cv_build+set}" = set; then
1716  echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718  ac_cv_build_alias=$build_alias
1719test -z "$ac_cv_build_alias" &&
1720  ac_cv_build_alias=`$ac_config_guess`
1721test -z "$ac_cv_build_alias" &&
1722  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1723echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1724   { (exit 1); exit 1; }; }
1725ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1726  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1727echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1728   { (exit 1); exit 1; }; }
1729
1730fi
1731echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1732echo "${ECHO_T}$ac_cv_build" >&6
1733build=$ac_cv_build
1734build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737
1738
1739
1740# If this project depends on external projects, the Externals file in
1741# the source root directory contains definition of where to find those
1742# externals.  The following macro ensures that those externals are
1743# retrieved by svn if they are not there yet.
1744
1745# As backup, we make sure we don't loose an FLIBS if it has been set
1746# by the user
1747save_FLIBS="$FLIBS"
1748
1749# A useful makefile conditional that is always false
1750
1751
1752if false; then
1753  ALWAYS_FALSE_TRUE=
1754  ALWAYS_FALSE_FALSE='#'
1755else
1756  ALWAYS_FALSE_TRUE='#'
1757  ALWAYS_FALSE_FALSE=
1758fi
1759
1760
1761# We set the following variable so that we know later in AC_COIN_FINALIZE
1762# that we are in a project main directory
1763coin_projectdir=yes
1764
1765# Set the project's version numbers
1766
1767
1768cat >>confdefs.h <<_ACEOF
1769#define CLP_VERSION "$PACKAGE_VERSION"
1770_ACEOF
1771
1772
1773  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1774  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1775  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1776  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1777  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1778  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1779
1780cat >>confdefs.h <<_ACEOF
1781#define CLP_VERSION_MAJOR $coin_majorver
1782_ACEOF
1783
1784
1785cat >>confdefs.h <<_ACEOF
1786#define CLP_VERSION_MINOR $coin_minorver
1787_ACEOF
1788
1789
1790cat >>confdefs.h <<_ACEOF
1791#define CLP_VERSION_RELEASE $coin_releasever
1792_ACEOF
1793
1794
1795  # We use the following variable to have a string with the upper case
1796  # version of the project name
1797  COIN_PRJCT=CLP
1798
1799  # Set the project's SVN revision number. The complicated sed expression
1800  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1801  # as a single number.
1802  # Extract the first word of "svnversion", so it can be a program name with args.
1803set dummy svnversion; ac_word=$2
1804echo "$as_me:$LINENO: checking for $ac_word" >&5
1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806if test "${ac_cv_prog_have_svnversion+set}" = set; then
1807  echo $ECHO_N "(cached) $ECHO_C" >&6
1808else
1809  if test -n "$have_svnversion"; then
1810  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1811else
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815  IFS=$as_save_IFS
1816  test -z "$as_dir" && as_dir=.
1817  for ac_exec_ext in '' $ac_executable_extensions; do
1818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819    ac_cv_prog_have_svnversion="yes"
1820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821    break 2
1822  fi
1823done
1824done
1825
1826  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1827fi
1828fi
1829have_svnversion=$ac_cv_prog_have_svnversion
1830if test -n "$have_svnversion"; then
1831  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1832echo "${ECHO_T}$have_svnversion" >&6
1833else
1834  echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
1836fi
1837
1838  if test "x$have_svnversion" = xyes; then
1839
1840    svn_rev_tmp=`cd $srcdir/$coin_has_clp ; svnversion`
1841    CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1842    if test $CLP_SVN_REV != exported; then
1843
1844cat >>confdefs.h <<_ACEOF
1845#define CLP_SVN_REV $CLP_SVN_REV
1846_ACEOF
1847
1848    fi
1849  fi
1850
1851
1852
1853# Capture libtool library version, if given.
1854
1855
1856
1857
1858# Check if user wants to produce debugging code
1859
1860echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1861echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1862
1863# Check whether --enable-debug or --disable-debug was given.
1864if test "${enable_debug+set}" = set; then
1865  enableval="$enable_debug"
1866  case "${enableval}" in
1867   yes) coin_debug_compile=true
1868        if test "${enable_shared+set}" = set; then :; else
1869          enable_shared=no
1870        fi
1871        ;;
1872   no)  coin_debug_compile=false
1873        ;;
1874   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1875echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1876   { (exit 1); exit 1; }; }
1877        ;;
1878esac
1879else
1880  coin_debug_compile=false
1881fi;
1882
1883# Check whether --enable-debug-clp or --disable-debug-clp was given.
1884if test "${enable_debug_clp+set}" = set; then
1885  enableval="$enable_debug_clp"
1886  case "${enableval}" in
1887    yes) coin_debug_compile=true
1888         enable_shared=no
1889         ;;
1890    no)  coin_debug_compile=false
1891         ;;
1892    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1893echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1894   { (exit 1); exit 1; }; }
1895         ;;
1896 esac
1897else
1898  :
1899fi;
1900
1901 # m4_ifvaln([Clp],
1902
1903if test $coin_debug_compile = true; then
1904  echo "$as_me:$LINENO: result: yes" >&5
1905echo "${ECHO_T}yes" >&6
1906else
1907  echo "$as_me:$LINENO: result: no" >&5
1908echo "${ECHO_T}no" >&6
1909fi
1910
1911
1912# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1913if test "${with_clp_verbosity+set}" = set; then
1914  withval="$with_clp_verbosity"
1915  if test "$withval" = yes; then
1916                withval=1
1917              fi
1918              coin_clp_verbosity=$withval
1919else
1920  coin_clp_verbosity=0
1921fi;
1922
1923cat >>confdefs.h <<_ACEOF
1924#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1925_ACEOF
1926
1927
1928
1929# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1930if test "${with_clp_checklevel+set}" = set; then
1931  withval="$with_clp_checklevel"
1932  if test "$withval" = yes; then
1933                withval=1
1934              fi
1935              coin_clp_checklevel=$withval
1936else
1937  coin_clp_checklevel=0
1938fi;
1939
1940cat >>confdefs.h <<_ACEOF
1941#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1942_ACEOF
1943
1944
1945 # m4_ifvaln([Clp],
1946
1947
1948
1949# Get the name of the C++ compiler and appropriate compiler options
1950case $build in
1951  *-mingw*)
1952    if test "${LD+set}" = set; then :; else
1953      LD=link
1954    fi
1955    ;;
1956 esac
1957 case $enable_doscompile in
1958   msvc)
1959     if test "x${LD+set}" = xset; then :; else
1960       LD=link
1961     fi
1962     ;;
1963 esac
1964
1965
1966 # Check whether --enable-doscompile or --disable-doscompile was given.
1967if test "${enable_doscompile+set}" = set; then
1968  enableval="$enable_doscompile"
1969  if test "$enable_doscompile" != no; then
1970     case $build in
1971       *-cygwin* | *-mingw*) ;;
1972       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1973echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1974   { (exit 1); exit 1; }; } ;;
1975     esac
1976   fi
1977else
1978  enable_doscompile=no
1979fi;
1980 case "$enable_doscompile" in
1981   mingw)
1982     case $build in
1983       *-mingw*) enable_doscompile=no ;;
1984     esac
1985     ;;
1986   msvc|no) ;;
1987   yes) enable_doscompile=mingw ;;
1988   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1989                    Try configure --help=recursive." >&5
1990echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1991                    Try configure --help=recursive." >&2;}
1992   { (exit 1); exit 1; }; }
1993      ;;
1994  esac
1995  if test "$enable_doscompile" != no ; then
1996    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1997echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1998  fi
1999
2000
2001
2002
2003ac_ext=c
2004ac_cpp='$CPP $CPPFLAGS'
2005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008
2009
2010# For consistency, we set the C compiler to the same value of the C++
2011# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2012if test x"$CXX" != x; then
2013  case "$CXX" in
2014    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2015      if test x"$CC" = x; then
2016        CC="$CXX"
2017        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2018echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2019      fi
2020      ;;
2021  esac
2022fi
2023
2024# add automake conditional so we can recognize cl compiler in makefile
2025coin_cc_is_cl=false
2026if test x"$CXX" != x; then
2027  case "$CXX" in
2028    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2029      coin_cc_is_cl=true
2030      ;;
2031  esac
2032fi
2033
2034
2035if test $coin_cc_is_cl = true; then
2036  COIN_CC_IS_CL_TRUE=
2037  COIN_CC_IS_CL_FALSE='#'
2038else
2039  COIN_CC_IS_CL_TRUE='#'
2040  COIN_CC_IS_CL_FALSE=
2041fi
2042
2043
2044
2045
2046
2047
2048
2049coin_has_cc=yes
2050
2051save_cflags="$CFLAGS"
2052
2053# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2054# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2055# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2056# compiler. In this case, put cc after gcc.
2057
2058case $build in
2059  *-cygwin* | *-mingw*)
2060             if test "$enable_doscompile" = msvc ; then
2061               comps="icl cl"
2062             else
2063               comps="gcc cl"
2064             fi ;;
2065  *-*-solaris*)
2066             # Extract the first word of "cc", so it can be a program name with args.
2067set dummy cc; ac_word=$2
2068echo "$as_me:$LINENO: checking for $ac_word" >&5
2069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2071  echo $ECHO_N "(cached) $ECHO_C" >&6
2072else
2073  if test -n "$sol_cc_compiler"; then
2074  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2075else
2076  ac_prog_rejected=no
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080  IFS=$as_save_IFS
2081  test -z "$as_dir" && as_dir=.
2082  for ac_exec_ext in '' $ac_executable_extensions; do
2083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2085       ac_prog_rejected=yes
2086       continue
2087     fi
2088    ac_cv_prog_sol_cc_compiler="cc"
2089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090    break 2
2091  fi
2092done
2093done
2094
2095if test $ac_prog_rejected = yes; then
2096  # We found a bogon in the path, so make sure we never use it.
2097  set dummy $ac_cv_prog_sol_cc_compiler
2098  shift
2099  if test $# != 0; then
2100    # We chose a different compiler from the bogus one.
2101    # However, it has the same basename, so the bogon will be chosen
2102    # first if we set sol_cc_compiler to just the basename; use the full file name.
2103    shift
2104    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2105  fi
2106fi
2107fi
2108fi
2109sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2110if test -n "$sol_cc_compiler"; then
2111  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2112echo "${ECHO_T}$sol_cc_compiler" >&6
2113else
2114  echo "$as_me:$LINENO: result: no" >&5
2115echo "${ECHO_T}no" >&6
2116fi
2117
2118             if test "$sol_cc_compiler" = "cc" ; then
2119               comps="cc xlc gcc pgcc icc"
2120             else
2121               comps="xlc gcc pgcc icc cc"
2122             fi
2123             ;;
2124  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2125  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2126  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2127esac
2128
2129# We delete the cached value, since the test might not have been
2130# performed with our choice of compilers earlier
2131$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2132# AC_MSG_NOTICE([C compiler candidates: $comps])
2133ac_ext=c
2134ac_cpp='$CPP $CPPFLAGS'
2135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138if test -n "$ac_tool_prefix"; then
2139  for ac_prog in $comps
2140  do
2141    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2142set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2143echo "$as_me:$LINENO: checking for $ac_word" >&5
2144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2145if test "${ac_cv_prog_CC+set}" = set; then
2146  echo $ECHO_N "(cached) $ECHO_C" >&6
2147else
2148  if test -n "$CC"; then
2149  ac_cv_prog_CC="$CC" # Let the user override the test.
2150else
2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154  IFS=$as_save_IFS
2155  test -z "$as_dir" && as_dir=.
2156  for ac_exec_ext in '' $ac_executable_extensions; do
2157  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2158    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2159    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160    break 2
2161  fi
2162done
2163done
2164
2165fi
2166fi
2167CC=$ac_cv_prog_CC
2168if test -n "$CC"; then
2169  echo "$as_me:$LINENO: result: $CC" >&5
2170echo "${ECHO_T}$CC" >&6
2171else
2172  echo "$as_me:$LINENO: result: no" >&5
2173echo "${ECHO_T}no" >&6
2174fi
2175
2176    test -n "$CC" && break
2177  done
2178fi
2179if test -z "$CC"; then
2180  ac_ct_CC=$CC
2181  for ac_prog in $comps
2182do
2183  # Extract the first word of "$ac_prog", so it can be a program name with args.
2184set dummy $ac_prog; ac_word=$2
2185echo "$as_me:$LINENO: checking for $ac_word" >&5
2186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2187if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2188  echo $ECHO_N "(cached) $ECHO_C" >&6
2189else
2190  if test -n "$ac_ct_CC"; then
2191  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2192else
2193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2194for as_dir in $PATH
2195do
2196  IFS=$as_save_IFS
2197  test -z "$as_dir" && as_dir=.
2198  for ac_exec_ext in '' $ac_executable_extensions; do
2199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2200    ac_cv_prog_ac_ct_CC="$ac_prog"
2201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202    break 2
2203  fi
2204done
2205done
2206
2207fi
2208fi
2209ac_ct_CC=$ac_cv_prog_ac_ct_CC
2210if test -n "$ac_ct_CC"; then
2211  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2212echo "${ECHO_T}$ac_ct_CC" >&6
2213else
2214  echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6
2216fi
2217
2218  test -n "$ac_ct_CC" && break
2219done
2220
2221  CC=$ac_ct_CC
2222fi
2223
2224
2225test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2226See \`config.log' for more details." >&5
2227echo "$as_me: error: no acceptable C compiler found in \$PATH
2228See \`config.log' for more details." >&2;}
2229   { (exit 1); exit 1; }; }
2230
2231# Provide some information about the compiler.
2232echo "$as_me:$LINENO:" \
2233     "checking for C compiler version" >&5
2234ac_compiler=`set X $ac_compile; echo $2`
2235{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2236  (eval $ac_compiler --version </dev/null >&5) 2>&5
2237  ac_status=$?
2238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239  (exit $ac_status); }
2240{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2241  (eval $ac_compiler -v </dev/null >&5) 2>&5
2242  ac_status=$?
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); }
2245{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2246  (eval $ac_compiler -V </dev/null >&5) 2>&5
2247  ac_status=$?
2248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249  (exit $ac_status); }
2250
2251cat >conftest.$ac_ext <<_ACEOF
2252/* confdefs.h.  */
2253_ACEOF
2254cat confdefs.h >>conftest.$ac_ext
2255cat >>conftest.$ac_ext <<_ACEOF
2256/* end confdefs.h.  */
2257
2258int
2259main ()
2260{
2261
2262  ;
2263  return 0;
2264}
2265_ACEOF
2266ac_clean_files_save=$ac_clean_files
2267ac_clean_files="$ac_clean_files a.out a.exe b.out"
2268# Try to create an executable without -o first, disregard a.out.
2269# It will help us diagnose broken compilers, and finding out an intuition
2270# of exeext.
2271echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2272echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2273ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2274if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2275  (eval $ac_link_default) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; then
2279  # Find the output, starting from the most likely.  This scheme is
2280# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2281# resort.
2282
2283# Be careful to initialize this variable, since it used to be cached.
2284# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2285ac_cv_exeext=
2286# b.out is created by i960 compilers.
2287for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2288do
2289  test -f "$ac_file" || continue
2290  case $ac_file in
2291    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2292        ;;
2293    conftest.$ac_ext )
2294        # This is the source file.
2295        ;;
2296    [ab].out )
2297        # We found the default executable, but exeext='' is most
2298        # certainly right.
2299        break;;
2300    *.* )
2301        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2302        # FIXME: I believe we export ac_cv_exeext for Libtool,
2303        # but it would be cool to find out if it's true.  Does anybody
2304        # maintain Libtool? --akim.
2305        export ac_cv_exeext
2306        break;;
2307    * )
2308        break;;
2309  esac
2310done
2311else
2312  echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2316See \`config.log' for more details." >&5
2317echo "$as_me: error: C compiler cannot create executables
2318See \`config.log' for more details." >&2;}
2319   { (exit 77); exit 77; }; }
2320fi
2321
2322ac_exeext=$ac_cv_exeext
2323echo "$as_me:$LINENO: result: $ac_file" >&5
2324echo "${ECHO_T}$ac_file" >&6
2325
2326# Check the compiler produces executables we can run.  If not, either
2327# the compiler is broken, or we cross compile.
2328echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2329echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2330# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2331# If not cross compiling, check that we can run a simple program.
2332if test "$cross_compiling" != yes; then
2333  if { ac_try='./$ac_file'
2334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335  (eval $ac_try) 2>&5
2336  ac_status=$?
2337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338  (exit $ac_status); }; }; then
2339    cross_compiling=no
2340  else
2341    if test "$cross_compiling" = maybe; then
2342        cross_compiling=yes
2343    else
2344        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2345If you meant to cross compile, use \`--host'.
2346See \`config.log' for more details." >&5
2347echo "$as_me: error: cannot run C compiled programs.
2348If you meant to cross compile, use \`--host'.
2349See \`config.log' for more details." >&2;}
2350   { (exit 1); exit 1; }; }
2351    fi
2352  fi
2353fi
2354echo "$as_me:$LINENO: result: yes" >&5
2355echo "${ECHO_T}yes" >&6
2356
2357rm -f a.out a.exe conftest$ac_cv_exeext b.out
2358ac_clean_files=$ac_clean_files_save
2359# Check the compiler produces executables we can run.  If not, either
2360# the compiler is broken, or we cross compile.
2361echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2362echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2363echo "$as_me:$LINENO: result: $cross_compiling" >&5
2364echo "${ECHO_T}$cross_compiling" >&6
2365
2366echo "$as_me:$LINENO: checking for suffix of executables" >&5
2367echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2369  (eval $ac_link) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; then
2373  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2374# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2375# work properly (i.e., refer to `conftest.exe'), while it won't with
2376# `rm'.
2377for ac_file in conftest.exe conftest conftest.*; do
2378  test -f "$ac_file" || continue
2379  case $ac_file in
2380    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2381    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382          export ac_cv_exeext
2383          break;;
2384    * ) break;;
2385  esac
2386done
2387else
2388  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2389See \`config.log' for more details." >&5
2390echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2391See \`config.log' for more details." >&2;}
2392   { (exit 1); exit 1; }; }
2393fi
2394
2395rm -f conftest$ac_cv_exeext
2396echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2397echo "${ECHO_T}$ac_cv_exeext" >&6
2398
2399rm -f conftest.$ac_ext
2400EXEEXT=$ac_cv_exeext
2401ac_exeext=$EXEEXT
2402echo "$as_me:$LINENO: checking for suffix of object files" >&5
2403echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2404if test "${ac_cv_objext+set}" = set; then
2405  echo $ECHO_N "(cached) $ECHO_C" >&6
2406else
2407  cat >conftest.$ac_ext <<_ACEOF
2408/* confdefs.h.  */
2409_ACEOF
2410cat confdefs.h >>conftest.$ac_ext
2411cat >>conftest.$ac_ext <<_ACEOF
2412/* end confdefs.h.  */
2413
2414int
2415main ()
2416{
2417
2418  ;
2419  return 0;
2420}
2421_ACEOF
2422rm -f conftest.o conftest.obj
2423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424  (eval $ac_compile) 2>&5
2425  ac_status=$?
2426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427  (exit $ac_status); }; then
2428  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2429  case $ac_file in
2430    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2431    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2432       break;;
2433  esac
2434done
2435else
2436  echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2440See \`config.log' for more details." >&5
2441echo "$as_me: error: cannot compute suffix of object files: cannot compile
2442See \`config.log' for more details." >&2;}
2443   { (exit 1); exit 1; }; }
2444fi
2445
2446rm -f conftest.$ac_cv_objext conftest.$ac_ext
2447fi
2448echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2449echo "${ECHO_T}$ac_cv_objext" >&6
2450OBJEXT=$ac_cv_objext
2451ac_objext=$OBJEXT
2452echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2453echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2454if test "${ac_cv_c_compiler_gnu+set}" = set; then
2455  echo $ECHO_N "(cached) $ECHO_C" >&6
2456else
2457  cat >conftest.$ac_ext <<_ACEOF
2458/* confdefs.h.  */
2459_ACEOF
2460cat confdefs.h >>conftest.$ac_ext
2461cat >>conftest.$ac_ext <<_ACEOF
2462/* end confdefs.h.  */
2463
2464int
2465main ()
2466{
2467#ifndef __GNUC__
2468       choke me
2469#endif
2470
2471  ;
2472  return 0;
2473}
2474_ACEOF
2475rm -f conftest.$ac_objext
2476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477  (eval $ac_compile) 2>conftest.er1
2478  ac_status=$?
2479  grep -v '^ *+' conftest.er1 >conftest.err
2480  rm -f conftest.er1
2481  cat conftest.err >&5
2482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483  (exit $ac_status); } &&
2484         { ac_try='test -z "$ac_c_werror_flag"
2485                         || test ! -s conftest.err'
2486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487  (eval $ac_try) 2>&5
2488  ac_status=$?
2489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490  (exit $ac_status); }; } &&
2491         { ac_try='test -s conftest.$ac_objext'
2492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493  (eval $ac_try) 2>&5
2494  ac_status=$?
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); }; }; then
2497  ac_compiler_gnu=yes
2498else
2499  echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502ac_compiler_gnu=no
2503fi
2504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505ac_cv_c_compiler_gnu=$ac_compiler_gnu
2506
2507fi
2508echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2509echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2510GCC=`test $ac_compiler_gnu = yes && echo yes`
2511ac_test_CFLAGS=${CFLAGS+set}
2512ac_save_CFLAGS=$CFLAGS
2513CFLAGS="-g"
2514echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2515echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2516if test "${ac_cv_prog_cc_g+set}" = set; then
2517  echo $ECHO_N "(cached) $ECHO_C" >&6
2518else
2519  cat >conftest.$ac_ext <<_ACEOF
2520/* confdefs.h.  */
2521_ACEOF
2522cat confdefs.h >>conftest.$ac_ext
2523cat >>conftest.$ac_ext <<_ACEOF
2524/* end confdefs.h.  */
2525
2526int
2527main ()
2528{
2529
2530  ;
2531  return 0;
2532}
2533_ACEOF
2534rm -f conftest.$ac_objext
2535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2536  (eval $ac_compile) 2>conftest.er1
2537  ac_status=$?
2538  grep -v '^ *+' conftest.er1 >conftest.err
2539  rm -f conftest.er1
2540  cat conftest.err >&5
2541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542  (exit $ac_status); } &&
2543         { ac_try='test -z "$ac_c_werror_flag"
2544                         || test ! -s conftest.err'
2545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546  (eval $ac_try) 2>&5
2547  ac_status=$?
2548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549  (exit $ac_status); }; } &&
2550         { ac_try='test -s conftest.$ac_objext'
2551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552  (eval $ac_try) 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; }; then
2556  ac_cv_prog_cc_g=yes
2557else
2558  echo "$as_me: failed program was:" >&5
2559sed 's/^/| /' conftest.$ac_ext >&5
2560
2561ac_cv_prog_cc_g=no
2562fi
2563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564fi
2565echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2566echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2567if test "$ac_test_CFLAGS" = set; then
2568  CFLAGS=$ac_save_CFLAGS
2569elif test $ac_cv_prog_cc_g = yes; then
2570  if test "$GCC" = yes; then
2571    CFLAGS="-g -O2"
2572  else
2573    CFLAGS="-g"
2574  fi
2575else
2576  if test "$GCC" = yes; then
2577    CFLAGS="-O2"
2578  else
2579    CFLAGS=
2580  fi
2581fi
2582echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2583echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2584if test "${ac_cv_prog_cc_stdc+set}" = set; then
2585  echo $ECHO_N "(cached) $ECHO_C" >&6
2586else
2587  ac_cv_prog_cc_stdc=no
2588ac_save_CC=$CC
2589cat >conftest.$ac_ext <<_ACEOF
2590/* confdefs.h.  */
2591_ACEOF
2592cat confdefs.h >>conftest.$ac_ext
2593cat >>conftest.$ac_ext <<_ACEOF
2594/* end confdefs.h.  */
2595#include <stdarg.h>
2596#include <stdio.h>
2597#include <sys/types.h>
2598#include <sys/stat.h>
2599/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2600struct buf { int x; };
2601FILE * (*rcsopen) (struct buf *, struct stat *, int);
2602static char *e (p, i)
2603     char **p;
2604     int i;
2605{
2606  return p[i];
2607}
2608static char *f (char * (*g) (char **, int), char **p, ...)
2609{
2610  char *s;
2611  va_list v;
2612  va_start (v,p);
2613  s = g (p, va_arg (v,int));
2614  va_end (v);
2615  return s;
2616}
2617
2618/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2619   function prototypes and stuff, but not '\xHH' hex character constants.
2620   These don't provoke an error unfortunately, instead are silently treated
2621   as 'x'.  The following induces an error, until -std1 is added to get
2622   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2623   array size at least.  It's necessary to write '\x00'==0 to get something
2624   that's true only with -std1.  */
2625int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2626
2627int test (int i, double x);
2628struct s1 {int (*f) (int a);};
2629struct s2 {int (*f) (double a);};
2630int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2631int argc;
2632char **argv;
2633int
2634main ()
2635{
2636return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2637  ;
2638  return 0;
2639}
2640_ACEOF
2641# Don't try gcc -ansi; that turns off useful extensions and
2642# breaks some systems' header files.
2643# AIX                   -qlanglvl=ansi
2644# Ultrix and OSF/1      -std1
2645# HP-UX 10.20 and later -Ae
2646# HP-UX older versions  -Aa -D_HPUX_SOURCE
2647# SVR4                  -Xc -D__EXTENSIONS__
2648for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2649do
2650  CC="$ac_save_CC $ac_arg"
2651  rm -f conftest.$ac_objext
2652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653  (eval $ac_compile) 2>conftest.er1
2654  ac_status=$?
2655  grep -v '^ *+' conftest.er1 >conftest.err
2656  rm -f conftest.er1
2657  cat conftest.err >&5
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); } &&
2660         { ac_try='test -z "$ac_c_werror_flag"
2661                         || test ! -s conftest.err'
2662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663  (eval $ac_try) 2>&5
2664  ac_status=$?
2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666  (exit $ac_status); }; } &&
2667         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2673  ac_cv_prog_cc_stdc=$ac_arg
2674break
2675else
2676  echo "$as_me: failed program was:" >&5
2677sed 's/^/| /' conftest.$ac_ext >&5
2678
2679fi
2680rm -f conftest.err conftest.$ac_objext
2681done
2682rm -f conftest.$ac_ext conftest.$ac_objext
2683CC=$ac_save_CC
2684
2685fi
2686
2687case "x$ac_cv_prog_cc_stdc" in
2688  x|xno)
2689    echo "$as_me:$LINENO: result: none needed" >&5
2690echo "${ECHO_T}none needed" >&6 ;;
2691  *)
2692    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2693echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2694    CC="$CC $ac_cv_prog_cc_stdc" ;;
2695esac
2696
2697# Some people use a C++ compiler to compile C.  Since we use `exit',
2698# in C++ we need to declare it.  In case someone uses the same compiler
2699# for both compiling C and C++ we need to have the C++ compiler decide
2700# the declaration of exit, since it's the most demanding environment.
2701cat >conftest.$ac_ext <<_ACEOF
2702#ifndef __cplusplus
2703  choke me
2704#endif
2705_ACEOF
2706rm -f conftest.$ac_objext
2707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2708  (eval $ac_compile) 2>conftest.er1
2709  ac_status=$?
2710  grep -v '^ *+' conftest.er1 >conftest.err
2711  rm -f conftest.er1
2712  cat conftest.err >&5
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); } &&
2715         { ac_try='test -z "$ac_c_werror_flag"
2716                         || test ! -s conftest.err'
2717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718  (eval $ac_try) 2>&5
2719  ac_status=$?
2720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721  (exit $ac_status); }; } &&
2722         { ac_try='test -s conftest.$ac_objext'
2723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724  (eval $ac_try) 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }; }; then
2728  for ac_declaration in \
2729   '' \
2730   'extern "C" void std::exit (int) throw (); using std::exit;' \
2731   'extern "C" void std::exit (int); using std::exit;' \
2732   'extern "C" void exit (int) throw ();' \
2733   'extern "C" void exit (int);' \
2734   'void exit (int);'
2735do
2736  cat >conftest.$ac_ext <<_ACEOF
2737/* confdefs.h.  */
2738_ACEOF
2739cat confdefs.h >>conftest.$ac_ext
2740cat >>conftest.$ac_ext <<_ACEOF
2741/* end confdefs.h.  */
2742$ac_declaration
2743#include <stdlib.h>
2744int
2745main ()
2746{
2747exit (42);
2748  ;
2749  return 0;
2750}
2751_ACEOF
2752rm -f conftest.$ac_objext
2753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754  (eval $ac_compile) 2>conftest.er1
2755  ac_status=$?
2756  grep -v '^ *+' conftest.er1 >conftest.err
2757  rm -f conftest.er1
2758  cat conftest.err >&5
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); } &&
2761         { ac_try='test -z "$ac_c_werror_flag"
2762                         || test ! -s conftest.err'
2763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764  (eval $ac_try) 2>&5
2765  ac_status=$?
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); }; } &&
2768         { ac_try='test -s conftest.$ac_objext'
2769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770  (eval $ac_try) 2>&5
2771  ac_status=$?
2772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773  (exit $ac_status); }; }; then
2774  :
2775else
2776  echo "$as_me: failed program was:" >&5
2777sed 's/^/| /' conftest.$ac_ext >&5
2778
2779continue
2780fi
2781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2782  cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h.  */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h.  */
2788$ac_declaration
2789int
2790main ()
2791{
2792exit (42);
2793  ;
2794  return 0;
2795}
2796_ACEOF
2797rm -f conftest.$ac_objext
2798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799  (eval $ac_compile) 2>conftest.er1
2800  ac_status=$?
2801  grep -v '^ *+' conftest.er1 >conftest.err
2802  rm -f conftest.er1
2803  cat conftest.err >&5
2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805  (exit $ac_status); } &&
2806         { ac_try='test -z "$ac_c_werror_flag"
2807                         || test ! -s conftest.err'
2808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809  (eval $ac_try) 2>&5
2810  ac_status=$?
2811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812  (exit $ac_status); }; } &&
2813         { ac_try='test -s conftest.$ac_objext'
2814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815  (eval $ac_try) 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }; }; then
2819  break
2820else
2821  echo "$as_me: failed program was:" >&5
2822sed 's/^/| /' conftest.$ac_ext >&5
2823
2824fi
2825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2826done
2827rm -f conftest*
2828if test -n "$ac_declaration"; then
2829  echo '#ifdef __cplusplus' >>confdefs.h
2830  echo $ac_declaration      >>confdefs.h
2831  echo '#endif'             >>confdefs.h
2832fi
2833
2834else
2835  echo "$as_me: failed program was:" >&5
2836sed 's/^/| /' conftest.$ac_ext >&5
2837
2838fi
2839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840ac_ext=c
2841ac_cpp='$CPP $CPPFLAGS'
2842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2844ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845
2846if test -z "$CC" ; then
2847  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2848echo "$as_me: error: Failed to find a C compiler!" >&2;}
2849   { (exit 1); exit 1; }; }
2850fi
2851# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2852case "$CC" in
2853  cl* | */cl* | CL* | */CL* )
2854    if test "$ac_cv_prog_cc_g" = yes ; then
2855      ac_cv_prog_cc_g=no
2856      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2857echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2858    fi ;;
2859esac
2860CFLAGS="$save_cflags"
2861
2862# Check if a project specific CFLAGS variable has been set
2863if test x$COIN_PRJCT != x; then
2864  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2865  if test x$coin_tmp = xset; then
2866    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2867  fi
2868fi
2869
2870if test x"$CFLAGS" = x; then
2871
2872  coin_add_cflags=
2873  coin_opt_cflags=
2874  coin_dbg_cflags=
2875  coin_warn_cflags=
2876
2877  if test "$GCC" = "yes"; then
2878    case "$CC" in
2879      icc* | */icc*)
2880        ;;
2881      *)
2882        coin_opt_cflags="-O3"
2883        coin_add_cflags="-pipe"
2884        coin_dbg_cflags="-g"
2885        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2886        case $build in
2887          *-darwin*)
2888            ;;
2889          *)
2890            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2891            ;;
2892        esac
2893        case $enable_doscompile in
2894          mingw)
2895            CFLAGS="-mno-cygwin"
2896            cat >conftest.$ac_ext <<_ACEOF
2897/* confdefs.h.  */
2898_ACEOF
2899cat confdefs.h >>conftest.$ac_ext
2900cat >>conftest.$ac_ext <<_ACEOF
2901/* end confdefs.h.  */
2902
2903int
2904main ()
2905{
2906int i=0; i++;
2907  ;
2908  return 0;
2909}
2910_ACEOF
2911rm -f conftest.$ac_objext conftest$ac_exeext
2912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2913  (eval $ac_link) 2>conftest.er1
2914  ac_status=$?
2915  grep -v '^ *+' conftest.er1 >conftest.err
2916  rm -f conftest.er1
2917  cat conftest.err >&5
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); } &&
2920         { ac_try='test -z "$ac_c_werror_flag"
2921                         || test ! -s conftest.err'
2922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923  (eval $ac_try) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }; } &&
2927         { ac_try='test -s conftest$ac_exeext'
2928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929  (eval $ac_try) 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); }; }; then
2933  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2934else
2935  echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938fi
2939rm -f conftest.err conftest.$ac_objext \
2940      conftest$ac_exeext conftest.$ac_ext
2941            CFLAGS=
2942          ;;
2943        esac
2944    esac
2945  fi
2946  if test -z "$coin_opt_cflags"; then
2947    case $build in
2948      *-cygwin* | *-mingw*)
2949        case "$CC" in
2950          cl* | */cl* | CL* | */CL*)
2951            coin_opt_cflags='-MT -O2'
2952            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2953            coin_dbg_cflags='-MTd'
2954            ;;
2955          icl* | */icl* | ICL* | */ICL*)
2956            coin_opt_cflags='-MT -Ox'
2957            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2958            coin_dbg_cflags='-MTd -debug'
2959            ;;
2960        esac
2961        ;;
2962      *-linux-*)
2963        case "$CC" in
2964          icc* | */icc*)
2965            coin_opt_cflags="-O3 -ip -mp1"
2966            coin_add_cflags=""
2967            coin_dbg_cflags="-g"
2968            # Check if -i_dynamic is necessary (for new glibc library)
2969            CFLAGS=
2970            cat >conftest.$ac_ext <<_ACEOF
2971/* confdefs.h.  */
2972_ACEOF
2973cat confdefs.h >>conftest.$ac_ext
2974cat >>conftest.$ac_ext <<_ACEOF
2975/* end confdefs.h.  */
2976
2977int
2978main ()
2979{
2980int i=0; i++;
2981  ;
2982  return 0;
2983}
2984_ACEOF
2985rm -f conftest.$ac_objext conftest$ac_exeext
2986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2987  (eval $ac_link) 2>conftest.er1
2988  ac_status=$?
2989  grep -v '^ *+' conftest.er1 >conftest.err
2990  rm -f conftest.er1
2991  cat conftest.err >&5
2992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993  (exit $ac_status); } &&
2994         { ac_try='test -z "$ac_c_werror_flag"
2995                         || test ! -s conftest.err'
2996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997  (eval $ac_try) 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }; } &&
3001         { ac_try='test -s conftest$ac_exeext'
3002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3003  (eval $ac_try) 2>&5
3004  ac_status=$?
3005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006  (exit $ac_status); }; }; then
3007  :
3008else
3009  echo "$as_me: failed program was:" >&5
3010sed 's/^/| /' conftest.$ac_ext >&5
3011
3012coin_add_cflags="-i_dynamic $coin_add_cflags"
3013fi
3014rm -f conftest.err conftest.$ac_objext \
3015      conftest$ac_exeext conftest.$ac_ext
3016            ;;
3017          pgcc* | */pgcc*)
3018            coin_opt_cflags="-fast"
3019            coin_add_cflags="-Kieee -pc 64"
3020            coin_dbg_cflags="-g"
3021            ;;
3022        esac
3023        ;;
3024      *-ibm-*)
3025        case "$CC" in
3026          xlc* | */xlc* | mpxlc* | */mpxlc*)
3027            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3028            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3029            coin_dbg_cflags="-g"
3030          ;;
3031        esac
3032        ;;
3033      *-hp-*)
3034        coin_opt_cflags="-O"
3035        coin_add_cflags="-Ae"
3036        coin_dbg_cflags="-g"
3037        ;;
3038      *-*-solaris*)
3039        coin_opt_cflags="-xO4"
3040        coin_dbg_cflags="-g"
3041        ;;
3042      *-sgi-*)
3043        coin_opt_cflags="-O -OPT:Olimit=0"
3044        coin_dbg_cflags="-g"
3045        ;;
3046    esac
3047  fi
3048
3049  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3050    coin_dbg_cflags="-g"
3051  fi
3052
3053  if test -z "$coin_opt_cflags"; then
3054    # Try if -O option works if nothing else is set
3055    CFLAGS="-O"
3056    cat >conftest.$ac_ext <<_ACEOF
3057/* confdefs.h.  */
3058_ACEOF
3059cat confdefs.h >>conftest.$ac_ext
3060cat >>conftest.$ac_ext <<_ACEOF
3061/* end confdefs.h.  */
3062
3063int
3064main ()
3065{
3066int i=0; i++;
3067  ;
3068  return 0;
3069}
3070_ACEOF
3071rm -f conftest.$ac_objext conftest$ac_exeext
3072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3073  (eval $ac_link) 2>conftest.er1
3074  ac_status=$?
3075  grep -v '^ *+' conftest.er1 >conftest.err
3076  rm -f conftest.er1
3077  cat conftest.err >&5
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); } &&
3080         { ac_try='test -z "$ac_c_werror_flag"
3081                         || test ! -s conftest.err'
3082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3083  (eval $ac_try) 2>&5
3084  ac_status=$?
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); }; } &&
3087         { ac_try='test -s conftest$ac_exeext'
3088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089  (eval $ac_try) 2>&5
3090  ac_status=$?
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); }; }; then
3093  coin_opt_cflags="-O"
3094else
3095  echo "$as_me: failed program was:" >&5
3096sed 's/^/| /' conftest.$ac_ext >&5
3097
3098fi
3099rm -f conftest.err conftest.$ac_objext \
3100      conftest$ac_exeext conftest.$ac_ext
3101  fi
3102
3103  # if PM doesn't want the warning messages, take them out
3104  if test x"$coin_skip_warn_cflags" = xyes; then
3105    coin_warn_cflags=
3106  fi
3107
3108  if test x${DBG_CFLAGS+set} != xset; then
3109    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3110  fi
3111  if test x${OPT_CFLAGS+set} != xset; then
3112    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3113  fi
3114
3115  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3116  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3117
3118  if test "$coin_debug_compile" = "true"; then
3119    CFLAGS="$DBG_CFLAGS"
3120  else
3121    CFLAGS="$OPT_CFLAGS"
3122  fi
3123else
3124  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3125  if test x${DBG_CFLAGS+set} != xset; then
3126    DBG_CFLAGS="$CFLAGS"
3127  fi
3128  if test x${OPT_CFLAGS+set} != xset; then
3129    OPT_CFLAGS="$CFLAGS"
3130  fi
3131fi
3132
3133# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3134
3135case "$CFLAGS" in
3136  *-mno-cygwin*)
3137    if test x${CPPFLAGS+set} != xset ; then
3138      CPPFLAGS="-mno-cygwin"
3139    else
3140      case "$CPPFLAGS" in
3141        *-mno-cygwin*)
3142          ;;
3143        *)
3144          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3145          ;;
3146      esac
3147    fi ;;
3148esac
3149
3150# Try if CFLAGS works
3151save_CFLAGS="$CFLAGS"
3152cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h.  */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h.  */
3158
3159int
3160main ()
3161{
3162int i=0; i++;
3163  ;
3164  return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext conftest$ac_exeext
3168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3169  (eval $ac_link) 2>conftest.er1
3170  ac_status=$?
3171  grep -v '^ *+' conftest.er1 >conftest.err
3172  rm -f conftest.er1
3173  cat conftest.err >&5
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); } &&
3176         { ac_try='test -z "$ac_c_werror_flag"
3177                         || test ! -s conftest.err'
3178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179  (eval $ac_try) 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }; } &&
3183         { ac_try='test -s conftest$ac_exeext'
3184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185  (eval $ac_try) 2>&5
3186  ac_status=$?
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); }; }; then
3189  :
3190else
3191  echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194CFLAGS=
3195fi
3196rm -f conftest.err conftest.$ac_objext \
3197      conftest$ac_exeext conftest.$ac_ext
3198if test -z "$CFLAGS"; then
3199  { 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
3200echo "$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;}
3201  CFLAGS='-O'
3202  cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h.  */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212int i=0; i++;
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217rm -f conftest.$ac_objext conftest$ac_exeext
3218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3219  (eval $ac_link) 2>conftest.er1
3220  ac_status=$?
3221  grep -v '^ *+' conftest.er1 >conftest.err
3222  rm -f conftest.er1
3223  cat conftest.err >&5
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); } &&
3226         { ac_try='test -z "$ac_c_werror_flag"
3227                         || test ! -s conftest.err'
3228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229  (eval $ac_try) 2>&5
3230  ac_status=$?
3231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); }; } &&
3233         { ac_try='test -s conftest$ac_exeext'
3234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235  (eval $ac_try) 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }; }; then
3239  :
3240else
3241  echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244CFLAGS=
3245fi
3246rm -f conftest.err conftest.$ac_objext \
3247      conftest$ac_exeext conftest.$ac_ext
3248  if test -z "$CFLAGS"; then
3249    { 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
3250echo "$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;}
3251  fi
3252fi
3253
3254{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3255echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3256
3257
3258if test x"$MPICC" = x; then :; else
3259  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3260echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3261  CC="$MPICC"
3262fi
3263
3264# Correct the LD variable if we are using the MS or Intel-windows compiler
3265case "$CC" in
3266  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3267    case $build in
3268  *-mingw*)
3269    if test "${LD+set}" = set; then :; else
3270      LD=link
3271    fi
3272    ;;
3273 esac
3274 case $enable_doscompile in
3275   msvc)
3276     if test "x${LD+set}" = xset; then :; else
3277       LD=link
3278     fi
3279     ;;
3280 esac
3281
3282    ;;
3283esac
3284
3285ac_ext=c
3286ac_cpp='$CPP $CPPFLAGS'
3287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290
3291
3292
3293 #Let's try if that overcomes configuration problem with VC++ 6.0
3294
3295ac_ext=cc
3296ac_cpp='$CXXCPP $CPPFLAGS'
3297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3300
3301
3302
3303
3304
3305
3306
3307coin_has_cxx=yes
3308
3309save_cxxflags="$CXXFLAGS"
3310# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3311case $build in
3312  *-cygwin* | *-mingw*)
3313             if test "$enable_doscompile" = msvc ; then
3314               comps="icl cl"
3315             else
3316               comps="g++ cl"
3317             fi ;;
3318  *-*-solaris*)
3319             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3320  *-darwin*) comps="g++ c++ CC" ;;
3321  *-linux-gnu*)
3322             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3323          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3324esac
3325
3326# We delete the cached value, since the test might not have been
3327# performed with our choice of compilers earlier
3328$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3329# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3330ac_ext=cc
3331ac_cpp='$CXXCPP $CPPFLAGS'
3332ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3335if test -n "$ac_tool_prefix"; then
3336  for ac_prog in $CCC $comps
3337  do
3338    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3339set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3340echo "$as_me:$LINENO: checking for $ac_word" >&5
3341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342if test "${ac_cv_prog_CXX+set}" = set; then
3343  echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345  if test -n "$CXX"; then
3346  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351  IFS=$as_save_IFS
3352  test -z "$as_dir" && as_dir=.
3353  for ac_exec_ext in '' $ac_executable_extensions; do
3354  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357    break 2
3358  fi
3359done
3360done
3361
3362fi
3363fi
3364CXX=$ac_cv_prog_CXX
3365if test -n "$CXX"; then
3366  echo "$as_me:$LINENO: result: $CXX" >&5
3367echo "${ECHO_T}$CXX" >&6
3368else
3369  echo "$as_me:$LINENO: result: no" >&5
3370echo "${ECHO_T}no" >&6
3371fi
3372
3373    test -n "$CXX" && break
3374  done
3375fi
3376if test -z "$CXX"; then
3377  ac_ct_CXX=$CXX
3378  for ac_prog in $CCC $comps
3379do
3380  # Extract the first word of "$ac_prog", so it can be a program name with args.
3381set dummy $ac_prog; ac_word=$2
3382echo "$as_me:$LINENO: checking for $ac_word" >&5
3383echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3384if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3385  echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387  if test -n "$ac_ct_CXX"; then
3388  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393  IFS=$as_save_IFS
3394  test -z "$as_dir" && as_dir=.
3395  for ac_exec_ext in '' $ac_executable_extensions; do
3396  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397    ac_cv_prog_ac_ct_CXX="$ac_prog"
3398    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399    break 2
3400  fi
3401done
3402done
3403
3404fi
3405fi
3406ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3407if test -n "$ac_ct_CXX"; then
3408  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3409echo "${ECHO_T}$ac_ct_CXX" >&6
3410else
3411  echo "$as_me:$LINENO: result: no" >&5
3412echo "${ECHO_T}no" >&6
3413fi
3414
3415  test -n "$ac_ct_CXX" && break
3416done
3417test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3418
3419  CXX=$ac_ct_CXX
3420fi
3421
3422
3423# Provide some information about the compiler.
3424echo "$as_me:$LINENO:" \
3425     "checking for C++ compiler version" >&5
3426ac_compiler=`set X $ac_compile; echo $2`
3427{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3428  (eval $ac_compiler --version </dev/null >&5) 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }
3432{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3433  (eval $ac_compiler -v </dev/null >&5) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }
3437{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3438  (eval $ac_compiler -V </dev/null >&5) 2>&5
3439  ac_status=$?
3440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441  (exit $ac_status); }
3442
3443echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3444echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3445if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3446  echo $ECHO_N "(cached) $ECHO_C" >&6
3447else
3448  cat >conftest.$ac_ext <<_ACEOF
3449/* confdefs.h.  */
3450_ACEOF
3451cat confdefs.h >>conftest.$ac_ext
3452cat >>conftest.$ac_ext <<_ACEOF
3453/* end confdefs.h.  */
3454
3455int
3456main ()
3457{
3458#ifndef __GNUC__
3459       choke me
3460#endif
3461
3462  ;
3463  return 0;
3464}
3465_ACEOF
3466rm -f conftest.$ac_objext
3467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3468  (eval $ac_compile) 2>conftest.er1
3469  ac_status=$?
3470  grep -v '^ *+' conftest.er1 >conftest.err
3471  rm -f conftest.er1
3472  cat conftest.err >&5
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); } &&
3475         { ac_try='test -z "$ac_cxx_werror_flag"
3476                         || test ! -s conftest.err'
3477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3478  (eval $ac_try) 2>&5
3479  ac_status=$?
3480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481  (exit $ac_status); }; } &&
3482         { ac_try='test -s conftest.$ac_objext'
3483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484  (eval $ac_try) 2>&5
3485  ac_status=$?
3486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487  (exit $ac_status); }; }; then
3488  ac_compiler_gnu=yes
3489else
3490  echo "$as_me: failed program was:" >&5
3491sed 's/^/| /' conftest.$ac_ext >&5
3492
3493ac_compiler_gnu=no
3494fi
3495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3496ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3497
3498fi
3499echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3500echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3501GXX=`test $ac_compiler_gnu = yes && echo yes`
3502ac_test_CXXFLAGS=${CXXFLAGS+set}
3503ac_save_CXXFLAGS=$CXXFLAGS
3504CXXFLAGS="-g"
3505echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3506echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3507if test "${ac_cv_prog_cxx_g+set}" = set; then
3508  echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510  cat >conftest.$ac_ext <<_ACEOF
3511/* confdefs.h.  */
3512_ACEOF
3513cat confdefs.h >>conftest.$ac_ext
3514cat >>conftest.$ac_ext <<_ACEOF
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525rm -f conftest.$ac_objext
3526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527  (eval $ac_compile) 2>conftest.er1
3528  ac_status=$?
3529  grep -v '^ *+' conftest.er1 >conftest.err
3530  rm -f conftest.er1
3531  cat conftest.err >&5
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); } &&
3534         { ac_try='test -z "$ac_cxx_werror_flag"
3535                         || test ! -s conftest.err'
3536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537  (eval $ac_try) 2>&5
3538  ac_status=$?
3539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); }; } &&
3541         { ac_try='test -s conftest.$ac_objext'
3542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543  (eval $ac_try) 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); }; }; then
3547  ac_cv_prog_cxx_g=yes
3548else
3549  echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552ac_cv_prog_cxx_g=no
3553fi
3554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3555fi
3556echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3557echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3558if test "$ac_test_CXXFLAGS" = set; then
3559  CXXFLAGS=$ac_save_CXXFLAGS
3560elif test $ac_cv_prog_cxx_g = yes; then
3561  if test "$GXX" = yes; then
3562    CXXFLAGS="-g -O2"
3563  else
3564    CXXFLAGS="-g"
3565  fi
3566else
3567  if test "$GXX" = yes; then
3568    CXXFLAGS="-O2"
3569  else
3570    CXXFLAGS=
3571  fi
3572fi
3573for ac_declaration in \
3574   '' \
3575   'extern "C" void std::exit (int) throw (); using std::exit;' \
3576   'extern "C" void std::exit (int); using std::exit;' \
3577   'extern "C" void exit (int) throw ();' \
3578   'extern "C" void exit (int);' \
3579   'void exit (int);'
3580do
3581  cat >conftest.$ac_ext <<_ACEOF
3582/* confdefs.h.  */
3583_ACEOF
3584cat confdefs.h >>conftest.$ac_ext
3585cat >>conftest.$ac_ext <<_ACEOF
3586/* end confdefs.h.  */
3587$ac_declaration
3588#include <stdlib.h>
3589int
3590main ()
3591{
3592exit (42);
3593  ;
3594  return 0;
3595}
3596_ACEOF
3597rm -f conftest.$ac_objext
3598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3599  (eval $ac_compile) 2>conftest.er1
3600  ac_status=$?
3601  grep -v '^ *+' conftest.er1 >conftest.err
3602  rm -f conftest.er1
3603  cat conftest.err >&5
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); } &&
3606         { ac_try='test -z "$ac_cxx_werror_flag"
3607                         || test ! -s conftest.err'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; } &&
3613         { ac_try='test -s conftest.$ac_objext'
3614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3615  (eval $ac_try) 2>&5
3616  ac_status=$?
3617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618  (exit $ac_status); }; }; then
3619  :
3620else
3621  echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624continue
3625fi
3626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627  cat >conftest.$ac_ext <<_ACEOF
3628/* confdefs.h.  */
3629_ACEOF
3630cat confdefs.h >>conftest.$ac_ext
3631cat >>conftest.$ac_ext <<_ACEOF
3632/* end confdefs.h.  */
3633$ac_declaration
3634int
3635main ()
3636{
3637exit (42);
3638  ;
3639  return 0;
3640}
3641_ACEOF
3642rm -f conftest.$ac_objext
3643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3644  (eval $ac_compile) 2>conftest.er1
3645  ac_status=$?
3646  grep -v '^ *+' conftest.er1 >conftest.err
3647  rm -f conftest.er1
3648  cat conftest.err >&5
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); } &&
3651         { ac_try='test -z "$ac_cxx_werror_flag"
3652                         || test ! -s conftest.err'
3653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3654  (eval $ac_try) 2>&5
3655  ac_status=$?
3656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657  (exit $ac_status); }; } &&
3658         { ac_try='test -s conftest.$ac_objext'
3659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3660  (eval $ac_try) 2>&5
3661  ac_status=$?
3662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663  (exit $ac_status); }; }; then
3664  break
3665else
3666  echo "$as_me: failed program was:" >&5
3667sed 's/^/| /' conftest.$ac_ext >&5
3668
3669fi
3670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671done
3672rm -f conftest*
3673if test -n "$ac_declaration"; then
3674  echo '#ifdef __cplusplus' >>confdefs.h
3675  echo $ac_declaration      >>confdefs.h
3676  echo '#endif'             >>confdefs.h
3677fi
3678
3679ac_ext=cc
3680ac_cpp='$CXXCPP $CPPFLAGS'
3681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3684
3685
3686#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3687#thus, we test here whether $CXX is actually working
3688ac_ext=cc
3689ac_cpp='$CXXCPP $CPPFLAGS'
3690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3693
3694echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3695echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3696cat >conftest.$ac_ext <<_ACEOF
3697/* confdefs.h.  */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h.  */
3702
3703int
3704main ()
3705{
3706int i=0;
3707  ;
3708  return 0;
3709}
3710_ACEOF
3711rm -f conftest.$ac_objext
3712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3713  (eval $ac_compile) 2>conftest.er1
3714  ac_status=$?
3715  grep -v '^ *+' conftest.er1 >conftest.err
3716  rm -f conftest.er1
3717  cat conftest.err >&5
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); } &&
3720         { ac_try='test -z "$ac_cxx_werror_flag"
3721                         || test ! -s conftest.err'
3722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723  (eval $ac_try) 2>&5
3724  ac_status=$?
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); }; } &&
3727         { ac_try='test -s conftest.$ac_objext'
3728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3729  (eval $ac_try) 2>&5
3730  ac_status=$?
3731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732  (exit $ac_status); }; }; then
3733  echo "$as_me:$LINENO: result: yes" >&5
3734echo "${ECHO_T}yes" >&6
3735else
3736  echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739echo "$as_me:$LINENO: result: no" >&5
3740echo "${ECHO_T}no" >&6
3741   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3742echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3743   { (exit 1); exit 1; }; }
3744
3745fi
3746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3747ac_ext=cc
3748ac_cpp='$CXXCPP $CPPFLAGS'
3749ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3752
3753
3754coin_cxx_is_cl=false
3755# It seems that we need to cleanup something here for the Windows
3756case "$CXX" in
3757  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3758    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3759    mv confdefs.hh confdefs.h
3760    coin_cxx_is_cl=true
3761    ;;
3762esac
3763
3764# add automake conditional so we can recognize cl compiler in makefile
3765
3766
3767if test $coin_cxx_is_cl = true; then
3768  COIN_CXX_IS_CL_TRUE=
3769  COIN_CXX_IS_CL_FALSE='#'
3770else
3771  COIN_CXX_IS_CL_TRUE='#'
3772  COIN_CXX_IS_CL_FALSE=
3773fi
3774
3775
3776# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3777case "$CXX" in
3778  cl* | */cl* | CL* | */CL* )
3779    if test "$ac_cv_prog_cxx_g" = yes ; then
3780      ac_cv_prog_cxx_g=no
3781      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3782echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3783    fi ;;
3784esac
3785CXXFLAGS="$save_cxxflags"
3786
3787# Check if a project specific CXXFLAGS variable has been set
3788if test x$COIN_PRJCT != x; then
3789  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3790  if test x$coin_tmp = xset; then
3791    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3792  fi
3793fi
3794
3795if test x"$CXXFLAGS" = x; then
3796
3797# ToDo decide whether we want -DNDEBUG for optimization
3798  coin_add_cxxflags=
3799  coin_opt_cxxflags=
3800  coin_dbg_cxxflags=
3801  coin_warn_cxxflags=
3802
3803  if test "$GXX" = "yes"; then
3804    case "$CXX" in
3805      icpc* | */icpc*)
3806        ;;
3807      *)
3808# ToDo decide about unroll-loops
3809        coin_opt_cxxflags="-O3"
3810        coin_add_cxxflags="-pipe"
3811        coin_dbg_cxxflags="-g"
3812        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3813        case $build in
3814          *-darwin*)
3815            ;;
3816          *)
3817            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3818            ;;
3819        esac
3820
3821        case $enable_doscompile in
3822          mingw)
3823            CXXFLAGS="-mno-cygwin"
3824            cat >conftest.$ac_ext <<_ACEOF
3825/* confdefs.h.  */
3826_ACEOF
3827cat confdefs.h >>conftest.$ac_ext
3828cat >>conftest.$ac_ext <<_ACEOF
3829/* end confdefs.h.  */
3830
3831int
3832main ()
3833{
3834int i=0; i++;
3835  ;
3836  return 0;
3837}
3838_ACEOF
3839rm -f conftest.$ac_objext conftest$ac_exeext
3840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3841  (eval $ac_link) 2>conftest.er1
3842  ac_status=$?
3843  grep -v '^ *+' conftest.er1 >conftest.err
3844  rm -f conftest.er1
3845  cat conftest.err >&5
3846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847  (exit $ac_status); } &&
3848         { ac_try='test -z "$ac_cxx_werror_flag"
3849                         || test ! -s conftest.err'
3850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3851  (eval $ac_try) 2>&5
3852  ac_status=$?
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); }; } &&
3855         { ac_try='test -s conftest$ac_exeext'
3856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857  (eval $ac_try) 2>&5
3858  ac_status=$?
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); }; }; then
3861  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3862else
3863  echo "$as_me: failed program was:" >&5
3864sed 's/^/| /' conftest.$ac_ext >&5
3865
3866fi
3867rm -f conftest.err conftest.$ac_objext \
3868      conftest$ac_exeext conftest.$ac_ext
3869            CXXFLAGS=
3870          ;;
3871        esac
3872    esac
3873  fi
3874
3875# Note that we do not need to cover GCC in the following tests.
3876
3877  if test -z "$coin_opt_cxxflags"; then
3878    case $build in
3879      *-cygwin* | *-mingw*)
3880        case "$CXX" in
3881          cl* | */cl* | CL* | */CL*)
3882            # The MT and MTd options are mutually exclusive
3883            coin_opt_cxxflags='-MT -O2'
3884            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3885            coin_dbg_cxxflags='-MTd'
3886            ;;
3887          icl* | */icl* | ICL* | */ICL*)
3888            # The MT and MTd options are mutually exclusive
3889            coin_opt_cxxflags='-MT -Ox'
3890            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3891            coin_dbg_cxxflags='-MTd -debug'
3892            ;;
3893        esac
3894        ;;
3895      *-linux-*)
3896        case "$CXX" in
3897          icpc* | */icpc*)
3898            coin_opt_cxxflags="-O3 -ip -mp1"
3899            coin_add_cxxflags=""
3900            coin_dbg_cxxflags="-g"
3901            # Check if -i_dynamic is necessary (for new glibc library)
3902            CXXFLAGS=
3903            cat >conftest.$ac_ext <<_ACEOF
3904/* confdefs.h.  */
3905_ACEOF
3906cat confdefs.h >>conftest.$ac_ext
3907cat >>conftest.$ac_ext <<_ACEOF
3908/* end confdefs.h.  */
3909
3910int
3911main ()
3912{
3913int i=0; i++;
3914  ;
3915  return 0;
3916}
3917_ACEOF
3918rm -f conftest.$ac_objext conftest$ac_exeext
3919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3920  (eval $ac_link) 2>conftest.er1
3921  ac_status=$?
3922  grep -v '^ *+' conftest.er1 >conftest.err
3923  rm -f conftest.er1
3924  cat conftest.err >&5
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); } &&
3927         { ac_try='test -z "$ac_cxx_werror_flag"
3928                         || test ! -s conftest.err'
3929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3930  (eval $ac_try) 2>&5
3931  ac_status=$?
3932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933  (exit $ac_status); }; } &&
3934         { ac_try='test -s conftest$ac_exeext'
3935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3936  (eval $ac_try) 2>&5
3937  ac_status=$?
3938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939  (exit $ac_status); }; }; then
3940  :
3941else
3942  echo "$as_me: failed program was:" >&5
3943sed 's/^/| /' conftest.$ac_ext >&5
3944
3945coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3946fi
3947rm -f conftest.err conftest.$ac_objext \
3948      conftest$ac_exeext conftest.$ac_ext
3949            ;;
3950          pgCC* | */pgCC*)
3951            coin_opt_cxxflags="-fast"
3952            coin_add_cxxflags="-Kieee -pc 64"
3953            coin_dbg_cxxflags="-g"
3954            ;;
3955        esac
3956        ;;
3957      *-ibm-*)
3958        case "$CXX" in
3959          xlC* | */xlC* | mpxlC* | */mpxlC*)
3960            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3961            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3962            coin_dbg_cxxflags="-g"
3963            ;;
3964        esac
3965        ;;
3966      *-hp-*)
3967        case "$CXX" in
3968          aCC* | */aCC* )
3969            coin_opt_cxxflags="-O"
3970            coin_add_cxxflags="-AA"
3971            coin_dbg_cxxflags="-g"
3972            ;;
3973        esac
3974        ;;
3975      *-*-solaris*)
3976          coin_opt_cxxflags="-O4"
3977          coin_dbg_cxxflags="-g"
3978        ;;
3979    esac
3980  fi
3981
3982# Generic flag settings. If these don't work, add a case above.
3983
3984  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3985    coin_dbg_cxxflags="-g"
3986  fi
3987
3988  if test -z "$coin_opt_cxxflags"; then
3989    # Try if -O option works if nothing else is set
3990    CXXFLAGS=-O
3991    cat >conftest.$ac_ext <<_ACEOF
3992/* confdefs.h.  */
3993_ACEOF
3994cat confdefs.h >>conftest.$ac_ext
3995cat >>conftest.$ac_ext <<_ACEOF
3996/* end confdefs.h.  */
3997
3998int
3999main ()
4000{
4001int i=0; i++;
4002  ;
4003  return 0;
4004}
4005_ACEOF
4006rm -f conftest.$ac_objext conftest$ac_exeext
4007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008  (eval $ac_link) 2>conftest.er1
4009  ac_status=$?
4010  grep -v '^ *+' conftest.er1 >conftest.err
4011  rm -f conftest.er1
4012  cat conftest.err >&5
4013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014  (exit $ac_status); } &&
4015         { ac_try='test -z "$ac_cxx_werror_flag"
4016                         || test ! -s conftest.err'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; } &&
4022         { ac_try='test -s conftest$ac_exeext'
4023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024  (eval $ac_try) 2>&5
4025  ac_status=$?
4026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027  (exit $ac_status); }; }; then
4028  coin_opt_cxxflags="-O"
4029else
4030  echo "$as_me: failed program was:" >&5
4031sed 's/^/| /' conftest.$ac_ext >&5
4032
4033fi
4034rm -f conftest.err conftest.$ac_objext \
4035      conftest$ac_exeext conftest.$ac_ext
4036  fi
4037
4038  # if PM doesn't want the warning messages, take them out
4039  if test x"$coin_skip_warn_cxxflags" = xyes; then
4040    coin_warn_cxxflags=
4041  fi
4042
4043# Do final setup of flags based on values determined above.
4044
4045  if test x${DBG_CXXFLAGS+set} != xset; then
4046    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4047  fi
4048  if test x${OPT_CXXFLAGS+set} != xset; then
4049    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4050  fi
4051
4052  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4053  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4054
4055  if test "$coin_debug_compile" = "true"; then
4056    CXXFLAGS="$DBG_CXXFLAGS"
4057  else
4058    CXXFLAGS="$OPT_CXXFLAGS"
4059  fi
4060
4061# Handle the case where CXXFLAGS was set externally.
4062else
4063  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4064  if test x${DBG_CXXFLAGS+set} != xset; then
4065    DBG_CXXFLAGS="$CXXFLAGS"
4066  fi
4067  if test x${OPT_CXXFLAGS+set} != xset; then
4068    OPT_CXXFLAGS="$CXXFLAGS"
4069  fi
4070fi
4071
4072# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4073
4074case "$CXXFLAGS" in
4075  *-mno-cygwin*)
4076    if test x${CPPFLAGS+set} != xset ; then
4077      CPPFLAGS="-mno-cygwin"
4078    else
4079      case "$CPPFLAGS" in
4080        *-mno-cygwin*)
4081          ;;
4082        *)
4083          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4084          ;;
4085      esac
4086    fi ;;
4087esac
4088
4089# Try if CXXFLAGS works
4090save_CXXFLAGS="$CXXFLAGS"
4091cat >conftest.$ac_ext <<_ACEOF
4092/* confdefs.h.  */
4093_ACEOF
4094cat confdefs.h >>conftest.$ac_ext
4095cat >>conftest.$ac_ext <<_ACEOF
4096/* end confdefs.h.  */
4097
4098int
4099main ()
4100{
4101int i=0; i++;
4102  ;
4103  return 0;
4104}
4105_ACEOF
4106rm -f conftest.$ac_objext conftest$ac_exeext
4107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4108  (eval $ac_link) 2>conftest.er1
4109  ac_status=$?
4110  grep -v '^ *+' conftest.er1 >conftest.err
4111  rm -f conftest.er1
4112  cat conftest.err >&5
4113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114  (exit $ac_status); } &&
4115         { ac_try='test -z "$ac_cxx_werror_flag"
4116                         || test ! -s conftest.err'
4117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118  (eval $ac_try) 2>&5
4119  ac_status=$?
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); }; } &&
4122         { ac_try='test -s conftest$ac_exeext'
4123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124  (eval $ac_try) 2>&5
4125  ac_status=$?
4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127  (exit $ac_status); }; }; then
4128  :
4129else
4130  echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133CXXFLAGS=
4134fi
4135rm -f conftest.err conftest.$ac_objext \
4136      conftest$ac_exeext conftest.$ac_ext
4137if test -z "$CXXFLAGS"; then
4138  { 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
4139echo "$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;}
4140  CXXFLAGS='-O'
4141  cat >conftest.$ac_ext <<_ACEOF
4142/* confdefs.h.  */
4143_ACEOF
4144cat confdefs.h >>conftest.$ac_ext
4145cat >>conftest.$ac_ext <<_ACEOF
4146/* end confdefs.h.  */
4147
4148int
4149main ()
4150{
4151int i=0; i++;
4152  ;
4153  return 0;
4154}
4155_ACEOF
4156rm -f conftest.$ac_objext conftest$ac_exeext
4157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4158  (eval $ac_link) 2>conftest.er1
4159  ac_status=$?
4160  grep -v '^ *+' conftest.er1 >conftest.err
4161  rm -f conftest.er1
4162  cat conftest.err >&5
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); } &&
4165         { ac_try='test -z "$ac_cxx_werror_flag"
4166                         || test ! -s conftest.err'
4167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4168  (eval $ac_try) 2>&5
4169  ac_status=$?
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); }; } &&
4172         { ac_try='test -s conftest$ac_exeext'
4173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4174  (eval $ac_try) 2>&5
4175  ac_status=$?
4176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177  (exit $ac_status); }; }; then
4178  :
4179else
4180  echo "$as_me: failed program was:" >&5
4181sed 's/^/| /' conftest.$ac_ext >&5
4182
4183CXXFLAGS=
4184fi
4185rm -f conftest.err conftest.$ac_objext \
4186      conftest$ac_exeext conftest.$ac_ext
4187  if test -z "$CXXFLAGS"; then
4188    { 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
4189echo "$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;}
4190  fi
4191fi
4192
4193{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4194echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4195
4196
4197if test x"$MPICXX" = x; then :; else
4198  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4199echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4200  CXX="$MPICXX"
4201fi
4202
4203# correct the LD variable in a mingw build with MS or intel compiler
4204case "$CXX" in
4205  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4206    case $build in
4207  *-mingw*)
4208    if test "${LD+set}" = set; then :; else
4209      LD=link
4210    fi
4211    ;;
4212 esac
4213 case $enable_doscompile in
4214   msvc)
4215     if test "x${LD+set}" = xset; then :; else
4216       LD=link
4217     fi
4218     ;;
4219 esac
4220
4221    ;;
4222esac
4223
4224ac_ext=c
4225ac_cpp='$CPP $CPPFLAGS'
4226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229
4230
4231
4232# Initialize automake and libtool
4233{
4234
4235
4236
4237# START
4238
4239# Test if force_shared has been set
4240if test "x" = xforce_shared; then
4241  if test x$enable_shared = xno; then
4242    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4243echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4244   { (exit 1); exit 1; }; }
4245  fi
4246  enable_shared=yes;
4247else
4248  # On Cygwin and AIX, building DLLs doesn't work
4249  case $build in
4250    *-cygwin*)
4251      coin_disable_shared=yes
4252      platform=Cygwin
4253    ;;
4254    *-aix*)
4255      coin_disable_shared=yes
4256      platform=AIX
4257    ;;
4258    *-mingw*)
4259      coin_disable_shared=yes
4260      platform="Msys"
4261#      case "$CXX" in
4262#        cl*)
4263#          coin_disable_shared=yes
4264#          platform="Msys with cl"
4265#      ;;
4266#      esac
4267    ;;
4268  esac
4269fi
4270if test x"$coin_disable_shared" = xyes; then
4271  if test x"$enable_shared" = xyes; then
4272    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4273echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4274  fi
4275  enable_shared=no
4276fi
4277# By default, we only want the shared objects to be compiled
4278# Check whether --enable-static or --disable-static was given.
4279if test "${enable_static+set}" = set; then
4280  enableval="$enable_static"
4281  p=${PACKAGE-default}
4282    case $enableval in
4283    yes) enable_static=yes ;;
4284    no) enable_static=no ;;
4285    *)
4286     enable_static=no
4287      # Look at the argument we got.  We use all the common list separators.
4288      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4289      for pkg in $enableval; do
4290        IFS="$lt_save_ifs"
4291        if test "X$pkg" = "X$p"; then
4292          enable_static=yes
4293        fi
4294      done
4295      IFS="$lt_save_ifs"
4296      ;;
4297    esac
4298else
4299  enable_static=no
4300fi;
4301
4302
4303
4304
4305# Initialize automake
4306echo "$as_me:$LINENO: checking for egrep" >&5
4307echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4308if test "${ac_cv_prog_egrep+set}" = set; then
4309  echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4312    then ac_cv_prog_egrep='grep -E'
4313    else ac_cv_prog_egrep='egrep'
4314    fi
4315fi
4316echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4317echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4318 EGREP=$ac_cv_prog_egrep
4319
4320
4321echo "$as_me:$LINENO: checking whether ln -s works" >&5
4322echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4323LN_S=$as_ln_s
4324if test "$LN_S" = "ln -s"; then
4325  echo "$as_me:$LINENO: result: yes" >&5
4326echo "${ECHO_T}yes" >&6
4327else
4328  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4329echo "${ECHO_T}no, using $LN_S" >&6
4330fi
4331
4332am__api_version="1.9"
4333# Find a good install program.  We prefer a C program (faster),
4334# so one script is as good as another.  But avoid the broken or
4335# incompatible versions:
4336# SysV /etc/install, /usr/sbin/install
4337# SunOS /usr/etc/install
4338# IRIX /sbin/install
4339# AIX /bin/install
4340# AmigaOS /C/install, which installs bootblocks on floppy discs
4341# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4342# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4343# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4344# OS/2's system install, which has a completely different semantic
4345# ./install, which can be erroneously created by make from ./install.sh.
4346echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4347echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4348if test -z "$INSTALL"; then
4349if test "${ac_cv_path_install+set}" = set; then
4350  echo $ECHO_N "(cached) $ECHO_C" >&6
4351else
4352  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355  IFS=$as_save_IFS
4356  test -z "$as_dir" && as_dir=.
4357  # Account for people who put trailing slashes in PATH elements.
4358case $as_dir/ in
4359  ./ | .// | /cC/* | \
4360  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4361  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4362  /usr/ucb/* ) ;;
4363  *)
4364    # OSF1 and SCO ODT 3.0 have their own names for install.
4365    # Don't use installbsd from OSF since it installs stuff as root
4366    # by default.
4367    for ac_prog in ginstall scoinst install; do
4368      for ac_exec_ext in '' $ac_executable_extensions; do
4369        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4370          if test $ac_prog = install &&
4371            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4372            # AIX install.  It has an incompatible calling convention.
4373            :
4374          elif test $ac_prog = install &&
4375            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4376            # program-specific install script used by HP pwplus--don't use.
4377            :
4378          else
4379            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4380            break 3
4381          fi
4382        fi
4383      done
4384    done
4385    ;;
4386esac
4387done
4388
4389
4390fi
4391  if test "${ac_cv_path_install+set}" = set; then
4392    INSTALL=$ac_cv_path_install
4393  else
4394    # As a last resort, use the slow shell script.  We don't cache a
4395    # path for INSTALL within a source directory, because that will
4396    # break other packages using the cache if that directory is
4397    # removed, or if the path is relative.
4398    INSTALL=$ac_install_sh
4399  fi
4400fi
4401echo "$as_me:$LINENO: result: $INSTALL" >&5
4402echo "${ECHO_T}$INSTALL" >&6
4403
4404# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4405# It thinks the first close brace ends the variable substitution.
4406test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4407
4408test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4409
4410test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4411
4412echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4413echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4414# Just in case
4415sleep 1
4416echo timestamp > conftest.file
4417# Do `set' in a subshell so we don't clobber the current shell's
4418# arguments.  Must try -L first in case configure is actually a
4419# symlink; some systems play weird games with the mod time of symlinks
4420# (eg FreeBSD returns the mod time of the symlink's containing
4421# directory).
4422if (
4423   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4424   if test "$*" = "X"; then
4425      # -L didn't work.
4426      set X `ls -t $srcdir/configure conftest.file`
4427   fi
4428   rm -f conftest.file
4429   if test "$*" != "X $srcdir/configure conftest.file" \
4430      && test "$*" != "X conftest.file $srcdir/configure"; then
4431
4432      # If neither matched, then we have a broken ls.  This can happen
4433      # if, for instance, CONFIG_SHELL is bash and it inherits a
4434      # broken ls alias from the environment.  This has actually
4435      # happened.  Such a system could not be considered "sane".
4436      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4437alias in your environment" >&5
4438echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4439alias in your environment" >&2;}
4440   { (exit 1); exit 1; }; }
4441   fi
4442
4443   test "$2" = conftest.file
4444   )
4445then
4446   # Ok.
4447   :
4448else
4449   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4450Check your system clock" >&5
4451echo "$as_me: error: newly created file is older than distributed files!
4452Check your system clock" >&2;}
4453   { (exit 1); exit 1; }; }
4454fi
4455echo "$as_me:$LINENO: result: yes" >&5
4456echo "${ECHO_T}yes" >&6
4457test "$program_prefix" != NONE &&
4458  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4459# Use a double $ so make ignores it.
4460test "$program_suffix" != NONE &&
4461  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4462# Double any \ or $.  echo might interpret backslashes.
4463# By default was `s,x,x', remove it if useless.
4464cat <<\_ACEOF >conftest.sed
4465s/[\\$]/&&/g;s/;s,x,x,$//
4466_ACEOF
4467program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4468rm conftest.sed
4469
4470# expand $ac_aux_dir to an absolute path
4471am_aux_dir=`cd $ac_aux_dir && pwd`
4472
4473test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4474# Use eval to expand $SHELL
4475if eval "$MISSING --run true"; then
4476  am_missing_run="$MISSING --run "
4477else
4478  am_missing_run=
4479  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4480echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4481fi
4482
4483if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4484  # We used to keeping the `.' as first argument, in order to
4485  # allow $(mkdir_p) to be used without argument.  As in
4486  #   $(mkdir_p) $(somedir)
4487  # where $(somedir) is conditionally defined.  However this is wrong
4488  # for two reasons:
4489  #  1. if the package is installed by a user who cannot write `.'
4490  #     make install will fail,
4491  #  2. the above comment should most certainly read
4492  #     $(mkdir_p) $(DESTDIR)$(somedir)
4493  #     so it does not work when $(somedir) is undefined and
4494  #     $(DESTDIR) is not.
4495  #  To support the latter case, we have to write
4496  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4497  #  so the `.' trick is pointless.
4498  mkdir_p='mkdir -p --'
4499else
4500  # On NextStep and OpenStep, the `mkdir' command does not
4501  # recognize any option.  It will interpret all options as
4502  # directories to create, and then abort because `.' already
4503  # exists.
4504  for d in ./-p ./--version;
4505  do
4506    test -d $d && rmdir $d
4507  done
4508  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4509  if test -f "$ac_aux_dir/mkinstalldirs"; then
4510    mkdir_p='$(mkinstalldirs)'
4511  else
4512    mkdir_p='$(install_sh) -d'
4513  fi
4514fi
4515
4516for ac_prog in gawk mawk nawk awk
4517do
4518  # Extract the first word of "$ac_prog", so it can be a program name with args.
4519set dummy $ac_prog; ac_word=$2
4520echo "$as_me:$LINENO: checking for $ac_word" >&5
4521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522if test "${ac_cv_prog_AWK+set}" = set; then
4523  echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525  if test -n "$AWK"; then
4526  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531  IFS=$as_save_IFS
4532  test -z "$as_dir" && as_dir=.
4533  for ac_exec_ext in '' $ac_executable_extensions; do
4534  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535    ac_cv_prog_AWK="$ac_prog"
4536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537    break 2
4538  fi
4539done
4540done
4541
4542fi
4543fi
4544AWK=$ac_cv_prog_AWK
4545if test -n "$AWK"; then
4546  echo "$as_me:$LINENO: result: $AWK" >&5
4547echo "${ECHO_T}$AWK" >&6
4548else
4549  echo "$as_me:$LINENO: result: no" >&5
4550echo "${ECHO_T}no" >&6
4551fi
4552
4553  test -n "$AWK" && break
4554done
4555
4556echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4557echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4558set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4559if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4560  echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562  cat >conftest.make <<\_ACEOF
4563all:
4564        @echo 'ac_maketemp="$(MAKE)"'
4565_ACEOF
4566# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4567eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4568if test -n "$ac_maketemp"; then
4569  eval ac_cv_prog_make_${ac_make}_set=yes
4570else
4571  eval ac_cv_prog_make_${ac_make}_set=no
4572fi
4573rm -f conftest.make
4574fi
4575if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4576  echo "$as_me:$LINENO: result: yes" >&5
4577echo "${ECHO_T}yes" >&6
4578  SET_MAKE=
4579else
4580  echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6
4582  SET_MAKE="MAKE=${MAKE-make}"
4583fi
4584
4585rm -rf .tst 2>/dev/null
4586mkdir .tst 2>/dev/null
4587if test -d .tst; then
4588  am__leading_dot=.
4589else
4590  am__leading_dot=_
4591fi
4592rmdir .tst 2>/dev/null
4593
4594DEPDIR="${am__leading_dot}deps"
4595
4596          ac_config_commands="$ac_config_commands depfiles"
4597
4598
4599am_make=${MAKE-make}
4600cat > confinc << 'END'
4601am__doit:
4602        @echo done
4603.PHONY: am__doit
4604END
4605# If we don't find an include directive, just comment out the code.
4606echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4607echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4608am__include="#"
4609am__quote=
4610_am_result=none
4611# First try GNU make style include.
4612echo "include confinc" > confmf
4613# We grep out `Entering directory' and `Leaving directory'
4614# messages which can occur if `w' ends up in MAKEFLAGS.
4615# In particular we don't look at `^make:' because GNU make might
4616# be invoked under some other name (usually "gmake"), in which
4617# case it prints its new name instead of `make'.
4618if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4619   am__include=include
4620   am__quote=
4621   _am_result=GNU
4622fi
4623# Now try BSD make style include.
4624if test "$am__include" = "#"; then
4625   echo '.include "confinc"' > confmf
4626   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4627      am__include=.include
4628      am__quote="\""
4629      _am_result=BSD
4630   fi
4631fi
4632
4633
4634echo "$as_me:$LINENO: result: $_am_result" >&5
4635echo "${ECHO_T}$_am_result" >&6
4636rm -f confinc confmf
4637
4638# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4639if test "${enable_dependency_tracking+set}" = set; then
4640  enableval="$enable_dependency_tracking"
4641
4642fi;
4643if test "x$enable_dependency_tracking" != xno; then
4644  am_depcomp="$ac_aux_dir/depcomp"
4645  AMDEPBACKSLASH='\'
4646fi
4647
4648
4649if test "x$enable_dependency_tracking" != xno; then
4650  AMDEP_TRUE=
4651  AMDEP_FALSE='#'
4652else
4653  AMDEP_TRUE='#'
4654  AMDEP_FALSE=
4655fi
4656
4657
4658
4659
4660
4661
4662# AC_MSG_NOTICE([Beginning automake initialisation.])
4663# Stuff for automake
4664# test to see if srcdir already configured
4665if test "`cd $srcdir && pwd`" != "`pwd`" &&
4666   test -f $srcdir/config.status; then
4667  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4668echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4669   { (exit 1); exit 1; }; }
4670fi
4671
4672# test whether we have cygpath
4673if test -z "$CYGPATH_W"; then
4674  if (cygpath --version) >/dev/null 2>/dev/null; then
4675    CYGPATH_W='cygpath -w'
4676  else
4677    CYGPATH_W=echo
4678  fi
4679fi
4680
4681
4682# Define the identity of the package.
4683 PACKAGE='clp'
4684 VERSION='trunk'
4685
4686
4687cat >>confdefs.h <<_ACEOF
4688#define PACKAGE "$PACKAGE"
4689_ACEOF
4690
4691
4692cat >>confdefs.h <<_ACEOF
4693#define VERSION "$VERSION"
4694_ACEOF
4695
4696# Some tools Automake needs.
4697
4698ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4699
4700
4701AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4702
4703
4704AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4705
4706
4707AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4708
4709
4710MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4711
4712install_sh=${install_sh-"$am_aux_dir/install-sh"}
4713
4714# Installed binaries are usually stripped using `strip' when the user
4715# run `make install-strip'.  However `strip' might not be the right
4716# tool to use in cross-compilation environments, therefore Automake
4717# will honor the `STRIP' environment variable to overrule this program.
4718if test "$cross_compiling" != no; then
4719  if test -n "$ac_tool_prefix"; then
4720  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4721set dummy ${ac_tool_prefix}strip; ac_word=$2
4722echo "$as_me:$LINENO: checking for $ac_word" >&5
4723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4724if test "${ac_cv_prog_STRIP+set}" = set; then
4725  echo $ECHO_N "(cached) $ECHO_C" >&6
4726else
4727  if test -n "$STRIP"; then
4728  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4729else
4730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731for as_dir in $PATH
4732do
4733  IFS=$as_save_IFS
4734  test -z "$as_dir" && as_dir=.
4735  for ac_exec_ext in '' $ac_executable_extensions; do
4736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4737    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739    break 2
4740  fi
4741done
4742done
4743
4744fi
4745fi
4746STRIP=$ac_cv_prog_STRIP
4747if test -n "$STRIP"; then
4748  echo "$as_me:$LINENO: result: $STRIP" >&5
4749echo "${ECHO_T}$STRIP" >&6
4750else
4751  echo "$as_me:$LINENO: result: no" >&5
4752echo "${ECHO_T}no" >&6
4753fi
4754
4755fi
4756if test -z "$ac_cv_prog_STRIP"; then
4757  ac_ct_STRIP=$STRIP
4758  # Extract the first word of "strip", so it can be a program name with args.
4759set dummy strip; ac_word=$2
4760echo "$as_me:$LINENO: checking for $ac_word" >&5
4761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4762if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4763  echo $ECHO_N "(cached) $ECHO_C" >&6
4764else
4765  if test -n "$ac_ct_STRIP"; then
4766  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4767else
4768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH
4770do
4771  IFS=$as_save_IFS
4772  test -z "$as_dir" && as_dir=.
4773  for ac_exec_ext in '' $ac_executable_extensions; do
4774  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4775    ac_cv_prog_ac_ct_STRIP="strip"
4776    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777    break 2
4778  fi
4779done
4780done
4781
4782  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4783fi
4784fi
4785ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4786if test -n "$ac_ct_STRIP"; then
4787  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4788echo "${ECHO_T}$ac_ct_STRIP" >&6
4789else
4790  echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6
4792fi
4793
4794  STRIP=$ac_ct_STRIP
4795else
4796  STRIP="$ac_cv_prog_STRIP"
4797fi
4798
4799fi
4800INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4801
4802# We need awk for the "check" target.  The system "awk" is bad on
4803# some platforms.
4804# Always define AMTAR for backward compatibility.
4805
4806AMTAR=${AMTAR-"${am_missing_run}tar"}
4807
4808am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4809
4810
4811
4812
4813depcc="$CC"   am_compiler_list=
4814
4815echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4816echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4817if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4818  echo $ECHO_N "(cached) $ECHO_C" >&6
4819else
4820  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4821  # We make a subdir and do the tests there.  Otherwise we can end up
4822  # making bogus files that we don't know about and never remove.  For
4823  # instance it was reported that on HP-UX the gcc test will end up
4824  # making a dummy file named `D' -- because `-MD' means `put the output
4825  # in D'.
4826  mkdir conftest.dir
4827  # Copy depcomp to subdir because otherwise we won't find it if we're
4828  # using a relative directory.
4829  cp "$am_depcomp" conftest.dir
4830  cd conftest.dir
4831  # We will build objects and dependencies in a subdirectory because
4832  # it helps to detect inapplicable dependency modes.  For instance
4833  # both Tru64's cc and ICC support -MD to output dependencies as a
4834  # side effect of compilation, but ICC will put the dependencies in
4835  # the current directory while Tru64 will put them in the object
4836  # directory.
4837  mkdir sub
4838
4839  am_cv_CC_dependencies_compiler_type=none
4840  if test "$am_compiler_list" = ""; then
4841     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4842  fi
4843  for depmode in $am_compiler_list; do
4844    # Setup a source with many dependencies, because some compilers
4845    # like to wrap large dependency lists on column 80 (with \), and
4846    # we should not choose a depcomp mode which is confused by this.
4847    #
4848    # We need to recreate these files for each test, as the compiler may
4849    # overwrite some of them when testing with obscure command lines.
4850    # This happens at least with the AIX C compiler.
4851    : > sub/conftest.c
4852    for i in 1 2 3 4 5 6; do
4853      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4854      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4855      # Solaris 8's {/usr,}/bin/sh.
4856      touch sub/conftst$i.h
4857    done
4858    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4859
4860    case $depmode in
4861    nosideeffect)
4862      # after this tag, mechanisms are not by side-effect, so they'll
4863      # only be used when explicitly requested
4864      if test "x$enable_dependency_tracking" = xyes; then
4865        continue
4866      else
4867        break
4868      fi
4869      ;;
4870    none) break ;;
4871    esac
4872    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4873    # mode.  It turns out that the SunPro C++ compiler does not properly
4874    # handle `-M -o', and we need to detect this.
4875    if depmode=$depmode \
4876       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4877       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4878       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4879         >/dev/null 2>conftest.err &&
4880       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4881       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4882       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4883      # icc doesn't choke on unknown options, it will just issue warnings
4884      # or remarks (even with -Werror).  So we grep stderr for any message
4885      # that says an option was ignored or not supported.
4886      # When given -MP, icc 7.0 and 7.1 complain thusly:
4887      #   icc: Command line warning: ignoring option '-M'; no argument required
4888      # The diagnosis changed in icc 8.0:
4889      #   icc: Command line remark: option '-MP' not supported
4890      if (grep 'ignoring option' conftest.err ||
4891          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4892        am_cv_CC_dependencies_compiler_type=$depmode
4893        break
4894      fi
4895    fi
4896  done
4897
4898  cd ..
4899  rm -rf conftest.dir
4900else
4901  am_cv_CC_dependencies_compiler_type=none
4902fi
4903
4904fi
4905echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4906echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4907CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4908
4909
4910
4911if
4912  test "x$enable_dependency_tracking" != xno \
4913  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4914  am__fastdepCC_TRUE=
4915  am__fastdepCC_FALSE='#'
4916else
4917  am__fastdepCC_TRUE='#'
4918  am__fastdepCC_FALSE=
4919fi
4920
4921
4922depcc="$CXX"  am_compiler_list=
4923
4924echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4925echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4926if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4927  echo $ECHO_N "(cached) $ECHO_C" >&6
4928else
4929  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4930  # We make a subdir and do the tests there.  Otherwise we can end up
4931  # making bogus files that we don't know about and never remove.  For
4932  # instance it was reported that on HP-UX the gcc test will end up
4933  # making a dummy file named `D' -- because `-MD' means `put the output
4934  # in D'.
4935  mkdir conftest.dir
4936  # Copy depcomp to subdir because otherwise we won't find it if we're
4937  # using a relative directory.
4938  cp "$am_depcomp" conftest.dir
4939  cd conftest.dir
4940  # We will build objects and dependencies in a subdirectory because
4941  # it helps to detect inapplicable dependency modes.  For instance
4942  # both Tru64's cc and ICC support -MD to output dependencies as a
4943  # side effect of compilation, but ICC will put the dependencies in
4944  # the current directory while Tru64 will put them in the object
4945  # directory.
4946  mkdir sub
4947
4948  am_cv_CXX_dependencies_compiler_type=none
4949  if test "$am_compiler_list" = ""; then
4950     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4951  fi
4952  for depmode in $am_compiler_list; do
4953    # Setup a source with many dependencies, because some compilers
4954    # like to wrap large dependency lists on column 80 (with \), and
4955    # we should not choose a depcomp mode which is confused by this.
4956    #
4957    # We need to recreate these files for each test, as the compiler may
4958    # overwrite some of them when testing with obscure command lines.
4959    # This happens at least with the AIX C compiler.
4960    : > sub/conftest.c
4961    for i in 1 2 3 4 5 6; do
4962      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4963      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4964      # Solaris 8's {/usr,}/bin/sh.
4965      touch sub/conftst$i.h
4966    done
4967    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4968
4969    case $depmode in
4970    nosideeffect)
4971      # after this tag, mechanisms are not by side-effect, so they'll
4972      # only be used when explicitly requested
4973      if test "x$enable_dependency_tracking" = xyes; then
4974        continue
4975      else
4976        break
4977      fi
4978      ;;
4979    none) break ;;
4980    esac
4981    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4982    # mode.  It turns out that the SunPro C++ compiler does not properly
4983    # handle `-M -o', and we need to detect this.
4984    if depmode=$depmode \
4985       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4986       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4987       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4988         >/dev/null 2>conftest.err &&
4989       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4990       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4991       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4992      # icc doesn't choke on unknown options, it will just issue warnings
4993      # or remarks (even with -Werror).  So we grep stderr for any message
4994      # that says an option was ignored or not supported.
4995      # When given -MP, icc 7.0 and 7.1 complain thusly:
4996      #   icc: Command line warning: ignoring option '-M'; no argument required
4997      # The diagnosis changed in icc 8.0:
4998      #   icc: Command line remark: option '-MP' not supported
4999      if (grep 'ignoring option' conftest.err ||
5000          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5001        am_cv_CXX_dependencies_compiler_type=$depmode
5002        break
5003      fi
5004    fi
5005  done
5006
5007  cd ..
5008  rm -rf conftest.dir
5009else
5010  am_cv_CXX_dependencies_compiler_type=none
5011fi
5012
5013fi
5014echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5015echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5016CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5017
5018
5019
5020if
5021  test "x$enable_dependency_tracking" != xno \
5022  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5023  am__fastdepCXX_TRUE=
5024  am__fastdepCXX_FALSE='#'
5025else
5026  am__fastdepCXX_TRUE='#'
5027  am__fastdepCXX_FALSE=
5028fi
5029
5030
5031
5032echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5033echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5034    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5035if test "${enable_maintainer_mode+set}" = set; then
5036  enableval="$enable_maintainer_mode"
5037  USE_MAINTAINER_MODE=$enableval
5038else
5039  USE_MAINTAINER_MODE=no
5040fi;
5041  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5042echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5043
5044
5045if test $USE_MAINTAINER_MODE = yes; then
5046  MAINTAINER_MODE_TRUE=
5047  MAINTAINER_MODE_FALSE='#'
5048else
5049  MAINTAINER_MODE_TRUE='#'
5050  MAINTAINER_MODE_FALSE=
5051fi
5052
5053  MAINT=$MAINTAINER_MODE_TRUE
5054
5055
5056
5057coin_have_externals=no
5058if test "$enable_maintainer_mode" = yes; then
5059
5060  # If maintainer mode is chosen, we make sure that the correct versions
5061  # of the tools are used, and that we know where libtool.m4 is (to
5062  # recreate acinclude.m4)
5063
5064
5065  LIBTOOLM4=
5066  # Normally, $HOME
5067  AUTOTOOLS_DFLT=$HOME
5068
5069  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5070echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5071if test "${ac_cv_use_correct_autotools+set}" = set; then
5072  echo $ECHO_N "(cached) $ECHO_C" >&6
5073else
5074  ac_cv_use_correct_autotools=check
5075fi
5076echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5077echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5078
5079  if test $ac_cv_use_correct_autotools = check; then
5080    ac_cv_use_correct_autotools=yes
5081    # Check if we have autoconf
5082    # Extract the first word of "autoconf", so it can be a program name with args.
5083set dummy autoconf; ac_word=$2
5084echo "$as_me:$LINENO: checking for $ac_word" >&5
5085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5086if test "${ac_cv_prog_have_autoconf+set}" = set; then
5087  echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089  if test -n "$have_autoconf"; then
5090  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5091else
5092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093for as_dir in $PATH
5094do
5095  IFS=$as_save_IFS
5096  test -z "$as_dir" && as_dir=.
5097  for ac_exec_ext in '' $ac_executable_extensions; do
5098  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5099    ac_cv_prog_have_autoconf="yes"
5100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5101    break 2
5102  fi
5103done
5104done
5105
5106  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5107fi
5108fi
5109have_autoconf=$ac_cv_prog_have_autoconf
5110if test -n "$have_autoconf"; then
5111  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5112echo "${ECHO_T}$have_autoconf" >&6
5113else
5114  echo "$as_me:$LINENO: result: no" >&5
5115echo "${ECHO_T}no" >&6
5116fi
5117
5118    if test $have_autoconf = no; then
5119      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5120echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5121   { (exit 1); exit 1; }; }
5122    fi
5123
5124    # Check whether autoconf is the correct version
5125    correct_version='2.59'
5126    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5127    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5128echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5129    autoconf --version > confauto.out 2>&1
5130    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5131      echo "$as_me:$LINENO: result: yes" >&5
5132echo "${ECHO_T}yes" >&6
5133    else
5134      rm -f confauto.out
5135      echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6
5137      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5138echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5139   { (exit 1); exit 1; }; }
5140    fi
5141    rm -f confauto.out
5142
5143    # Check if the executable autoconf is picked up from the correct location
5144    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5145echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5146    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5147    autoconf_dir=`cd $autoconf_dir; pwd`
5148    if test x$AUTOTOOLS_DIR = x; then
5149      want_dir=$AUTOTOOLS_DFLT/bin
5150    else
5151      want_dir=$AUTOTOOLS_DIR/bin
5152    fi
5153    if test $autoconf_dir = `cd $want_dir; pwd`; then
5154      echo "$as_me:$LINENO: result: yes" >&5
5155echo "${ECHO_T}yes" >&6
5156    else
5157      rm -f confauto.out
5158      echo "$as_me:$LINENO: result: no" >&5
5159echo "${ECHO_T}no" >&6
5160      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5161echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5162   { (exit 1); exit 1; }; }
5163    fi
5164
5165    # Check if we have automake
5166    # Extract the first word of "automake", so it can be a program name with args.
5167set dummy automake; ac_word=$2
5168echo "$as_me:$LINENO: checking for $ac_word" >&5
5169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5170if test "${ac_cv_prog_have_automake+set}" = set; then
5171  echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173  if test -n "$have_automake"; then
5174  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5175else
5176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177for as_dir in $PATH
5178do
5179  IFS=$as_save_IFS
5180  test -z "$as_dir" && as_dir=.
5181  for ac_exec_ext in '' $ac_executable_extensions; do
5182  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5183    ac_cv_prog_have_automake="yes"
5184    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5185    break 2
5186  fi
5187done
5188done
5189
5190  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5191fi
5192fi
5193have_automake=$ac_cv_prog_have_automake
5194if test -n "$have_automake"; then
5195  echo "$as_me:$LINENO: result: $have_automake" >&5
5196echo "${ECHO_T}$have_automake" >&6
5197else
5198  echo "$as_me:$LINENO: result: no" >&5
5199echo "${ECHO_T}no" >&6
5200fi
5201
5202    if test $have_automake = no; then
5203      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5204echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5205   { (exit 1); exit 1; }; }
5206    fi
5207
5208    # Check whether automake is the correct version
5209    correct_version='1.9.6'
5210    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5211    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5212echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5213    automake --version > confauto.out 2>&1
5214    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5215      echo "$as_me:$LINENO: result: yes" >&5
5216echo "${ECHO_T}yes" >&6
5217    else
5218      rm -f confauto.out
5219      echo "$as_me:$LINENO: result: no" >&5
5220echo "${ECHO_T}no" >&6
5221      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5222echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5223   { (exit 1); exit 1; }; }
5224    fi
5225    rm -f confauto.out
5226
5227    # Check if the executable automake is picked up from the correct location
5228    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5229echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5230    automake_dir=`which automake | sed -e 's=/automake=='`
5231    automake_dir=`cd $automake_dir; pwd`
5232    if test x$AUTOTOOLS_DIR = x; then
5233      want_dir=$AUTOTOOLS_DFLT/bin
5234    else
5235      want_dir=$AUTOTOOLS_DIR/bin
5236    fi
5237    if test $automake_dir = `cd $want_dir; pwd`; then
5238      echo "$as_me:$LINENO: result: yes" >&5
5239echo "${ECHO_T}yes" >&6
5240    else
5241      rm -f confauto.out
5242      echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5245echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5246   { (exit 1); exit 1; }; }
5247    fi
5248
5249    # Check if this is the correct version of libtool (with escaped dots)
5250    if test x$AUTOTOOLS_DIR = x; then
5251      want_dir=$AUTOTOOLS_DFLT/share
5252    else
5253      want_dir=$AUTOTOOLS_DIR/share
5254    fi
5255    correct_version='1.5.22'
5256    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5257    if test -r $want_dir/libtool/ltmain.sh; then
5258  have_ltmain=yes
5259  :
5260else
5261  have_ltmain=no
5262  :
5263fi
5264
5265    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5266echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5267    if test $have_ltmain = yes; then
5268    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5269        echo "$as_me:$LINENO: result: yes" >&5
5270echo "${ECHO_T}yes" >&6
5271      else
5272        echo "$as_me:$LINENO: result: no" >&5
5273echo "${ECHO_T}no" >&6
5274        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5275echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5276   { (exit 1); exit 1; }; }
5277      fi
5278    else
5279      echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
5281      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5282echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5283   { (exit 1); exit 1; }; }
5284    fi
5285  fi
5286
5287  # Check if we can find the libtool file
5288  if test x$AUTOTOOLS_DIR = x; then
5289    want_dir=$AUTOTOOLS_DFLT/share
5290  else
5291    want_dir=$AUTOTOOLS_DIR/share
5292  fi
5293  if test -r $want_dir/aclocal/libtool.m4; then
5294  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5295  :
5296else
5297  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5298echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5299   { (exit 1); exit 1; }; }
5300  :
5301fi
5302
5303
5304  # Check if we have an Dependencies file
5305  if test -r $srcdir/Dependencies; then
5306    coin_have_externals=yes
5307  fi
5308  # Check if subversion is installed and understands https
5309  # Extract the first word of "svn", so it can be a program name with args.
5310set dummy svn; ac_word=$2
5311echo "$as_me:$LINENO: checking for $ac_word" >&5
5312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5313if test "${ac_cv_prog_have_svn+set}" = set; then
5314  echo $ECHO_N "(cached) $ECHO_C" >&6
5315else
5316  if test -n "$have_svn"; then
5317  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5318else
5319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320for as_dir in $PATH
5321do
5322  IFS=$as_save_IFS
5323  test -z "$as_dir" && as_dir=.
5324  for ac_exec_ext in '' $ac_executable_extensions; do
5325  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326    ac_cv_prog_have_svn="yes"
5327    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328    break 2
5329  fi
5330done
5331done
5332
5333  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5334fi
5335fi
5336have_svn=$ac_cv_prog_have_svn
5337if test -n "$have_svn"; then
5338  echo "$as_me:$LINENO: result: $have_svn" >&5
5339echo "${ECHO_T}$have_svn" >&6
5340else
5341  echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
5343fi
5344
5345  if test x$have_svn = xyes; then
5346    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5347echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5348if test "${ac_cv_svn_understands_https+set}" = set; then
5349  echo $ECHO_N "(cached) $ECHO_C" >&6
5350else
5351  svn --version > confauto.out 2>&1
5352                    if $EGREP https confauto.out >/dev/null 2>&1; then
5353                      ac_cv_svn_understands_https=yes
5354                    else
5355                      ac_cv_svn_understands_https=no
5356                      have_svn=no
5357                      ac_cv_prog_have_svn=no
5358                    fi
5359                    rm -f confauto.out
5360fi
5361echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5362echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5363  fi
5364
5365  # Find the location of the BuildTools directory
5366  BUILDTOOLSDIR=
5367  if test -r $srcdir/BuildTools/coin.m4; then
5368    BUILDTOOLSDIR=$srcdir/BuildTools
5369  else
5370    if test -r $srcdir/../BuildTools/coin.m4; then
5371      BUILDTOOLSDIR=$srcdir/../BuildTools
5372    else
5373      if test -r $srcdir/../../BuildTools/coin.m4; then
5374        BUILDTOOLSDIR=$srcdir/../../BuildTools
5375      else
5376        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5377echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5378   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5379      fi
5380    fi
5381  fi
5382
5383
5384  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5385  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5386    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5387  fi
5388
5389  # The following variable is set to the name of the directory where
5390  # the autotool scripts are located
5391
5392  AUX_DIR=$ac_aux_dir
5393fi
5394
5395# helpful variable for the base directory of this package
5396abs_source_dir=`cd $srcdir; pwd`
5397
5398
5399# Stuff for example Makefiles
5400if test x$prefix = xNONE; then
5401  full_prefix=$ac_default_prefix
5402else
5403  full_prefix=$prefix
5404fi
5405full_prefix=`cd $full_prefix ; pwd`
5406
5407abs_lib_dir=$full_prefix/lib
5408
5409abs_include_dir=$full_prefix/include
5410
5411abs_bin_dir=$full_prefix/bin
5412
5413
5414
5415if test $coin_have_externals = yes && test x$have_svn = xyes; then
5416  HAVE_EXTERNALS_TRUE=
5417  HAVE_EXTERNALS_FALSE='#'
5418else
5419  HAVE_EXTERNALS_TRUE='#'
5420  HAVE_EXTERNALS_FALSE=
5421fi
5422
5423
5424# AC_MSG_NOTICE([End automake initialisation.])
5425
5426
5427
5428LIBTOOL=
5429if test -r ../libtool; then
5430  coin_config_dir=..
5431  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5432fi
5433if test "x$LIBTOOL" = x; then
5434  if test -r ../../libtool; then
5435    coin_config_dir=../..
5436    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5437  fi
5438fi
5439
5440if test "x$LIBTOOL" = x; then
5441# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5442  # Stuff for libtool
5443  # Check whether --enable-shared or --disable-shared was given.
5444if test "${enable_shared+set}" = set; then
5445  enableval="$enable_shared"
5446  p=${PACKAGE-default}
5447    case $enableval in
5448    yes) enable_shared=yes ;;
5449    no) enable_shared=no ;;
5450    *)
5451      enable_shared=no
5452      # Look at the argument we got.  We use all the common list separators.
5453      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5454      for pkg in $enableval; do
5455        IFS="$lt_save_ifs"
5456        if test "X$pkg" = "X$p"; then
5457          enable_shared=yes
5458        fi
5459      done
5460      IFS="$lt_save_ifs"
5461      ;;
5462    esac
5463else
5464  enable_shared=yes
5465fi;
5466
5467# Check whether --enable-fast-install or --disable-fast-install was given.
5468if test "${enable_fast_install+set}" = set; then
5469  enableval="$enable_fast_install"
5470  p=${PACKAGE-default}
5471    case $enableval in
5472    yes) enable_fast_install=yes ;;
5473    no) enable_fast_install=no ;;
5474    *)
5475      enable_fast_install=no
5476      # Look at the argument we got.  We use all the common list separators.
5477      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5478      for pkg in $enableval; do
5479        IFS="$lt_save_ifs"
5480        if test "X$pkg" = "X$p"; then
5481          enable_fast_install=yes
5482        fi
5483      done
5484      IFS="$lt_save_ifs"
5485      ;;
5486    esac
5487else
5488  enable_fast_install=yes
5489fi;
5490
5491echo "$as_me:$LINENO: checking host system type" >&5
5492echo $ECHO_N "checking host system type... $ECHO_C" >&6
5493if test "${ac_cv_host+set}" = set; then
5494  echo $ECHO_N "(cached) $ECHO_C" >&6
5495else
5496  ac_cv_host_alias=$host_alias
5497test -z "$ac_cv_host_alias" &&
5498  ac_cv_host_alias=$ac_cv_build_alias
5499ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5500  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5501echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5502   { (exit 1); exit 1; }; }
5503
5504fi
5505echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5506echo "${ECHO_T}$ac_cv_host" >&6
5507host=$ac_cv_host
5508host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5509host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5510host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5511
5512
5513echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5514echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5515if test "${lt_cv_path_SED+set}" = set; then
5516  echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518  # Loop through the user's path and test for sed and gsed.
5519# Then use that list of sed's as ones to test for truncation.
5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523  IFS=$as_save_IFS
5524  test -z "$as_dir" && as_dir=.
5525  for lt_ac_prog in sed gsed; do
5526    for ac_exec_ext in '' $ac_executable_extensions; do
5527      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5528        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5529      fi
5530    done
5531  done
5532done
5533lt_ac_max=0
5534lt_ac_count=0
5535# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5536# along with /bin/sed that truncates output.
5537for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5538  test ! -f $lt_ac_sed && continue
5539  cat /dev/null > conftest.in
5540  lt_ac_count=0
5541  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5542  # Check for GNU sed and select it if it is found.
5543  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5544    lt_cv_path_SED=$lt_ac_sed
5545    break
5546  fi
5547  while true; do
5548    cat conftest.in conftest.in >conftest.tmp
5549    mv conftest.tmp conftest.in
5550    cp conftest.in conftest.nl
5551    echo >>conftest.nl
5552    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5553    cmp -s conftest.out conftest.nl || break
5554    # 10000 chars as input seems more than enough
5555    test $lt_ac_count -gt 10 && break
5556    lt_ac_count=`expr $lt_ac_count + 1`
5557    if test $lt_ac_count -gt $lt_ac_max; then
5558      lt_ac_max=$lt_ac_count
5559      lt_cv_path_SED=$lt_ac_sed
5560    fi
5561  done
5562done
5563
5564fi
5565
5566SED=$lt_cv_path_SED
5567echo "$as_me:$LINENO: result: $SED" >&5
5568echo "${ECHO_T}$SED" >&6
5569
5570
5571# Check whether --with-gnu-ld or --without-gnu-ld was given.
5572if test "${with_gnu_ld+set}" = set; then
5573  withval="$with_gnu_ld"
5574  test "$withval" = no || with_gnu_ld=yes
5575else
5576  with_gnu_ld=no
5577fi;
5578ac_prog=ld
5579if test "$GCC" = yes; then
5580  # Check if gcc -print-prog-name=ld gives a path.
5581  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5582echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5583  case $host in
5584  *-*-mingw*)
5585    # gcc leaves a trailing carriage return which upsets mingw
5586    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5587  *)
5588    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5589  esac
5590  case $ac_prog in
5591    # Accept absolute paths.
5592    [\\/]* | ?:[\\/]*)
5593      re_direlt='/[^/][^/]*/\.\./'
5594      # Canonicalize the pathname of ld
5595      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5596      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5597        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5598      done
5599      test -z "$LD" && LD="$ac_prog"
5600      ;;
5601  "")
5602    # If it fails, then pretend we aren't using GCC.
5603    ac_prog=ld
5604    ;;
5605  *)
5606    # If it is relative, then search for the first ld in PATH.
5607    with_gnu_ld=unknown
5608    ;;
5609  esac
5610elif test "$with_gnu_ld" = yes; then
5611  echo "$as_me:$LINENO: checking for GNU ld" >&5
5612echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5613else
5614  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5615echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5616fi
5617if test "${lt_cv_path_LD+set}" = set; then
5618  echo $ECHO_N "(cached) $ECHO_C" >&6
5619else
5620  if test -z "$LD"; then
5621  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5622  for ac_dir in $PATH; do
5623    IFS="$lt_save_ifs"
5624    test -z "$ac_dir" && ac_dir=.
5625    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5626      lt_cv_path_LD="$ac_dir/$ac_prog"
5627      # Check to see if the program is GNU ld.  I'd rather use --version,
5628      # but apparently some variants of GNU ld only accept -v.
5629      # Break only if it was the GNU/non-GNU ld that we prefer.
5630      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5631      *GNU* | *'with BFD'*)
5632        test "$with_gnu_ld" != no && break
5633        ;;
5634      *)
5635        test "$with_gnu_ld" != yes && break
5636        ;;
5637      esac
5638    fi
5639  done
5640  IFS="$lt_save_ifs"
5641else
5642  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5643fi
5644fi
5645
5646LD="$lt_cv_path_LD"
5647if test -n "$LD"; then
5648  echo "$as_me:$LINENO: result: $LD" >&5
5649echo "${ECHO_T}$LD" >&6
5650else
5651  echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6
5653fi
5654test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5655echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5656   { (exit 1); exit 1; }; }
5657echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5658echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5659if test "${lt_cv_prog_gnu_ld+set}" = set; then
5660  echo $ECHO_N "(cached) $ECHO_C" >&6
5661else
5662  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5663case `$LD -v 2>&1 </dev/null` in
5664*GNU* | *'with BFD'*)
5665  lt_cv_prog_gnu_ld=yes
5666  ;;
5667*)
5668  lt_cv_prog_gnu_ld=no
5669  ;;
5670esac
5671fi
5672echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5673echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5674with_gnu_ld=$lt_cv_prog_gnu_ld
5675
5676
5677echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5678echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5679if test "${lt_cv_ld_reload_flag+set}" = set; then
5680  echo $ECHO_N "(cached) $ECHO_C" >&6
5681else
5682  lt_cv_ld_reload_flag='-r'
5683fi
5684echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5685echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5686reload_flag=$lt_cv_ld_reload_flag
5687case $reload_flag in
5688"" | " "*) ;;
5689*) reload_flag=" $reload_flag" ;;
5690esac
5691reload_cmds='$LD$reload_flag -o $output$reload_objs'
5692case $host_os in
5693  darwin*)
5694    if test "$GCC" = yes; then
5695      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5696    else
5697      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5698    fi
5699    ;;
5700esac
5701
5702echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5703echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5704if test "${lt_cv_path_NM+set}" = set; then
5705  echo $ECHO_N "(cached) $ECHO_C" >&6
5706else
5707  if test -n "$NM"; then
5708  # Let the user override the test.
5709  lt_cv_path_NM="$NM"
5710else
5711  lt_nm_to_check="${ac_tool_prefix}nm"
5712  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5713    lt_nm_to_check="$lt_nm_to_check nm"
5714  fi
5715  for lt_tmp_nm in $lt_nm_to_check; do
5716    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5717    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5718      IFS="$lt_save_ifs"
5719      test -z "$ac_dir" && ac_dir=.
5720      tmp_nm="$ac_dir/$lt_tmp_nm"
5721      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5722        # Check to see if the nm accepts a BSD-compat flag.
5723        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5724        #   nm: unknown option "B" ignored
5725        # Tru64's nm complains that /dev/null is an invalid object file
5726        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5727        */dev/null* | *'Invalid file or object type'*)
5728          lt_cv_path_NM="$tmp_nm -B"
5729          break
5730          ;;
5731        *)
5732          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5733          */dev/null*)
5734            lt_cv_path_NM="$tmp_nm -p"
5735            break
5736            ;;
5737          *)
5738            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5739            continue # so that we can try to find one that supports BSD flags
5740            ;;
5741          esac
5742          ;;
5743        esac
5744      fi
5745    done
5746    IFS="$lt_save_ifs"
5747  done
5748  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5749fi
5750fi
5751echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5752echo "${ECHO_T}$lt_cv_path_NM" >&6
5753NM="$lt_cv_path_NM"
5754
5755echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5756echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5757if test "${lt_cv_deplibs_check_method+set}" = set; then
5758  echo $ECHO_N "(cached) $ECHO_C" >&6
5759else
5760  lt_cv_file_magic_cmd='$MAGIC_CMD'
5761lt_cv_file_magic_test_file=
5762lt_cv_deplibs_check_method='unknown'
5763# Need to set the preceding variable on all platforms that support
5764# interlibrary dependencies.
5765# 'none' -- dependencies not supported.
5766# `unknown' -- same as none, but documents that we really don't know.
5767# 'pass_all' -- all dependencies passed with no checks.
5768# 'test_compile' -- check by making test program.
5769# 'file_magic [[regex]]' -- check by looking for files in library path
5770# which responds to the $file_magic_cmd with a given extended regex.
5771# If you have `file' or equivalent on your system and you're not sure
5772# whether `pass_all' will *always* work, you probably want this one.
5773
5774case $host_os in
5775aix4* | aix5*)
5776  lt_cv_deplibs_check_method=pass_all
5777  ;;
5778
5779beos*)
5780  lt_cv_deplibs_check_method=pass_all
5781  ;;
5782
5783bsdi[45]*)
5784  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5785  lt_cv_file_magic_cmd='/usr/bin/file -L'
5786  lt_cv_file_magic_test_file=/shlib/libc.so
5787  ;;
5788
5789cygwin*)
5790  # func_win32_libid is a shell function defined in ltmain.sh
5791  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5792  lt_cv_file_magic_cmd='func_win32_libid'
5793  ;;
5794
5795mingw* | pw32*)
5796  # Base MSYS/MinGW do not provide the 'file' command needed by
5797  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5798  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5799  lt_cv_file_magic_cmd='$OBJDUMP -f'
5800  ;;
5801
5802darwin* | rhapsody*)
5803  lt_cv_deplibs_check_method=pass_all
5804  ;;
5805
5806freebsd* | kfreebsd*-gnu | dragonfly*)
5807  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5808    case $host_cpu in
5809    i*86 )
5810      # Not sure whether the presence of OpenBSD here was a mistake.
5811      # Let's accept both of them until this is cleared up.
5812      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5813      lt_cv_file_magic_cmd=/usr/bin/file
5814      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5815      ;;
5816    esac
5817  else
5818    lt_cv_deplibs_check_method=pass_all
5819  fi
5820  ;;
5821
5822gnu*)
5823  lt_cv_deplibs_check_method=pass_all
5824  ;;
5825
5826hpux10.20* | hpux11*)
5827  lt_cv_file_magic_cmd=/usr/bin/file
5828  case $host_cpu in
5829  ia64*)
5830    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5831    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5832    ;;
5833  hppa*64*)
5834    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]'
5835    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5836    ;;
5837  *)
5838    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5839    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5840    ;;
5841  esac
5842  ;;
5843
5844interix3*)
5845  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5846  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5847  ;;
5848
5849irix5* | irix6* | nonstopux*)
5850  case $LD in
5851  *-32|*"-32 ") libmagic=32-bit;;
5852  *-n32|*"-n32 ") libmagic=N32;;
5853  *-64|*"-64 ") libmagic=64-bit;;
5854  *) libmagic=never-match;;
5855  esac
5856  lt_cv_deplibs_check_method=pass_all
5857  ;;
5858
5859# This must be Linux ELF.
5860linux*)
5861  lt_cv_deplibs_check_method=pass_all
5862  ;;
5863
5864netbsd*)
5865  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5866    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5867  else
5868    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5869  fi
5870  ;;
5871
5872newos6*)
5873  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5874  lt_cv_file_magic_cmd=/usr/bin/file
5875  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5876  ;;
5877
5878nto-qnx*)
5879  lt_cv_deplibs_check_method=unknown
5880  ;;
5881
5882openbsd*)
5883  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5884    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5885  else
5886    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5887  fi
5888  ;;
5889
5890osf3* | osf4* | osf5*)
5891  lt_cv_deplibs_check_method=pass_all
5892  ;;
5893
5894solaris*)
5895  lt_cv_deplibs_check_method=pass_all
5896  ;;
5897
5898sysv4 | sysv4.3*)
5899  case $host_vendor in
5900  motorola)
5901    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]'
5902    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5903    ;;
5904  ncr)
5905    lt_cv_deplibs_check_method=pass_all
5906    ;;
5907  sequent)
5908    lt_cv_file_magic_cmd='/bin/file'
5909    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5910    ;;
5911  sni)
5912    lt_cv_file_magic_cmd='/bin/file'
5913    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5914    lt_cv_file_magic_test_file=/lib/libc.so
5915    ;;
5916  siemens)
5917    lt_cv_deplibs_check_method=pass_all
5918    ;;
5919  pc)
5920    lt_cv_deplibs_check_method=pass_all
5921    ;;
5922  esac
5923  ;;
5924
5925sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5926  lt_cv_deplibs_check_method=pass_all
5927  ;;
5928esac
5929
5930fi
5931echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5932echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5933file_magic_cmd=$lt_cv_file_magic_cmd
5934deplibs_check_method=$lt_cv_deplibs_check_method
5935test -z "$deplibs_check_method" && deplibs_check_method=unknown
5936
5937
5938
5939
5940# If no C compiler was specified, use CC.
5941LTCC=${LTCC-"$CC"}
5942
5943# If no C compiler flags were specified, use CFLAGS.
5944LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5945
5946# Allow CC to be a program name with arguments.
5947compiler=$CC
5948
5949# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5950if test "${enable_libtool_lock+set}" = set; then
5951  enableval="$enable_libtool_lock"
5952
5953fi;
5954test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5955
5956# Some flags need to be propagated to the compiler or linker for good
5957# libtool support.
5958case $host in
5959ia64-*-hpux*)
5960  # Find out which ABI we are using.
5961  echo 'int i;' > conftest.$ac_ext
5962  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963  (eval $ac_compile) 2>&5
5964  ac_status=$?
5965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966  (exit $ac_status); }; then
5967    case `/usr/bin/file conftest.$ac_objext` in
5968    *ELF-32*)
5969      HPUX_IA64_MODE="32"
5970      ;;
5971    *ELF-64*)
5972      HPUX_IA64_MODE="64"
5973      ;;
5974    esac
5975  fi
5976  rm -rf conftest*
5977  ;;
5978*-*-irix6*)
5979  # Find out which ABI we are using.
5980  echo '#line 5980 "configure"' > conftest.$ac_ext
5981  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982  (eval $ac_compile) 2>&5
5983  ac_status=$?
5984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985  (exit $ac_status); }; then
5986   if test "$lt_cv_prog_gnu_ld" = yes; then
5987    case `/usr/bin/file conftest.$ac_objext` in
5988    *32-bit*)
5989      LD="${LD-ld} -melf32bsmip"
5990      ;;
5991    *N32*)
5992      LD="${LD-ld} -melf32bmipn32"
5993      ;;
5994    *64-bit*)
5995      LD="${LD-ld} -melf64bmip"
5996      ;;
5997    esac
5998   else
5999    case `/usr/bin/file conftest.$ac_objext` in
6000    *32-bit*)
6001      LD="${LD-ld} -32"
6002      ;;
6003    *N32*)
6004      LD="${LD-ld} -n32"
6005      ;;
6006    *64-bit*)
6007      LD="${LD-ld} -64"
6008      ;;
6009    esac
6010   fi
6011  fi
6012  rm -rf conftest*
6013  ;;
6014
6015x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6016  # Find out which ABI we are using.
6017  echo 'int i;' > conftest.$ac_ext
6018  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019  (eval $ac_compile) 2>&5
6020  ac_status=$?
6021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022  (exit $ac_status); }; then
6023    case `/usr/bin/file conftest.o` in
6024    *32-bit*)
6025      case $host in
6026        x86_64-*linux*)
6027          LD="${LD-ld} -m elf_i386"
6028          ;;
6029        ppc64-*linux*|powerpc64-*linux*)
6030          LD="${LD-ld} -m elf32ppclinux"
6031          ;;
6032        s390x-*linux*)
6033          LD="${LD-ld} -m elf_s390"
6034          ;;
6035        sparc64-*linux*)
6036          LD="${LD-ld} -m elf32_sparc"
6037          ;;
6038      esac
6039      ;;
6040    *64-bit*)
6041      case $host in
6042        x86_64-*linux*)
6043          LD="${LD-ld} -m elf_x86_64"
6044          ;;
6045        ppc*-*linux*|powerpc*-*linux*)
6046          LD="${LD-ld} -m elf64ppc"
6047          ;;
6048        s390*-*linux*)
6049          LD="${LD-ld} -m elf64_s390"
6050          ;;
6051        sparc*-*linux*)
6052          LD="${LD-ld} -m elf64_sparc"
6053          ;;
6054      esac
6055      ;;
6056    esac
6057  fi
6058  rm -rf conftest*
6059  ;;
6060
6061*-*-sco3.2v5*)
6062  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6063  SAVE_CFLAGS="$CFLAGS"
6064  CFLAGS="$CFLAGS -belf"
6065  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6066echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6067if test "${lt_cv_cc_needs_belf+set}" = set; then
6068  echo $ECHO_N "(cached) $ECHO_C" >&6
6069else
6070  ac_ext=c
6071ac_cpp='$CPP $CPPFLAGS'
6072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075
6076     cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h.  */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h.  */
6082
6083int
6084main ()
6085{
6086
6087  ;
6088  return 0;
6089}
6090_ACEOF
6091rm -f conftest.$ac_objext conftest$ac_exeext
6092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6093  (eval $ac_link) 2>conftest.er1
6094  ac_status=$?
6095  grep -v '^ *+' conftest.er1 >conftest.err
6096  rm -f conftest.er1
6097  cat conftest.err >&5
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); } &&
6100         { ac_try='test -z "$ac_c_werror_flag"
6101                         || test ! -s conftest.err'
6102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6103  (eval $ac_try) 2>&5
6104  ac_status=$?
6105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106  (exit $ac_status); }; } &&
6107         { ac_try='test -s conftest$ac_exeext'
6108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6109  (eval $ac_try) 2>&5
6110  ac_status=$?
6111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112  (exit $ac_status); }; }; then
6113  lt_cv_cc_needs_belf=yes
6114else
6115  echo "$as_me: failed program was:" >&5
6116sed 's/^/| /' conftest.$ac_ext >&5
6117
6118lt_cv_cc_needs_belf=no
6119fi
6120rm -f conftest.err conftest.$ac_objext \
6121      conftest$ac_exeext conftest.$ac_ext
6122     ac_ext=c
6123ac_cpp='$CPP $CPPFLAGS'
6124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6126ac_compiler_gnu=$ac_cv_c_compiler_gnu
6127
6128fi
6129echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6130echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6131  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6132    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6133    CFLAGS="$SAVE_CFLAGS"
6134  fi
6135  ;;
6136sparc*-*solaris*)
6137  # Find out which ABI we are using.
6138  echo 'int i;' > conftest.$ac_ext
6139  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140  (eval $ac_compile) 2>&5
6141  ac_status=$?
6142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143  (exit $ac_status); }; then
6144    case `/usr/bin/file conftest.o` in
6145    *64-bit*)
6146      case $lt_cv_prog_gnu_ld in
6147      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6148      *)    LD="${LD-ld} -64" ;;
6149      esac
6150      ;;
6151    esac
6152  fi
6153  rm -rf conftest*
6154  ;;
6155
6156
6157esac
6158
6159need_locks="$enable_libtool_lock"
6160
6161
6162ac_ext=c
6163ac_cpp='$CPP $CPPFLAGS'
6164ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6165ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6166ac_compiler_gnu=$ac_cv_c_compiler_gnu
6167echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6168echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6169# On Suns, sometimes $CPP names a directory.
6170if test -n "$CPP" && test -d "$CPP"; then
6171  CPP=
6172fi
6173if test -z "$CPP"; then
6174  if test "${ac_cv_prog_CPP+set}" = set; then
6175  echo $ECHO_N "(cached) $ECHO_C" >&6
6176else
6177      # Double quotes because CPP needs to be expanded
6178    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6179    do
6180      ac_preproc_ok=false
6181for ac_c_preproc_warn_flag in '' yes
6182do
6183  # Use a header file that comes with gcc, so configuring glibc
6184  # with a fresh cross-compiler works.
6185  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6186  # <limits.h> exists even on freestanding compilers.
6187  # On the NeXT, cc -E runs the code through the compiler's parser,
6188  # not just through cpp. "Syntax error" is here to catch this case.
6189  cat >conftest.$ac_ext <<_ACEOF
6190/* confdefs.h.  */
6191_ACEOF
6192cat confdefs.h >>conftest.$ac_ext
6193cat >>conftest.$ac_ext <<_ACEOF
6194/* end confdefs.h.  */
6195#ifdef __STDC__
6196# include <limits.h>
6197#else
6198# include <assert.h>
6199#endif
6200                     Syntax error
6201_ACEOF
6202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6203  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6204  ac_status=$?
6205  grep -v '^ *+' conftest.er1 >conftest.err
6206  rm -f conftest.er1
6207  cat conftest.err >&5
6208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209  (exit $ac_status); } >/dev/null; then
6210  if test -s conftest.err; then
6211    ac_cpp_err=$ac_c_preproc_warn_flag
6212    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6213  else
6214    ac_cpp_err=
6215  fi
6216else
6217  ac_cpp_err=yes
6218fi
6219if test -z "$ac_cpp_err"; then
6220  :
6221else
6222  echo "$as_me: failed program was:" >&5
6223sed 's/^/| /' conftest.$ac_ext >&5
6224
6225  # Broken: fails on valid input.
6226continue
6227fi
6228rm -f conftest.err conftest.$ac_ext
6229
6230  # OK, works on sane cases.  Now check whether non-existent headers
6231  # can be detected and how.
6232  cat >conftest.$ac_ext <<_ACEOF
6233/* confdefs.h.  */
6234_ACEOF
6235cat confdefs.h >>conftest.$ac_ext
6236cat >>conftest.$ac_ext <<_ACEOF
6237/* end confdefs.h.  */
6238#include <ac_nonexistent.h>
6239_ACEOF
6240if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6241  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6242  ac_status=$?
6243  grep -v '^ *+' conftest.er1 >conftest.err
6244  rm -f conftest.er1
6245  cat conftest.err >&5
6246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247  (exit $ac_status); } >/dev/null; then
6248  if test -s conftest.err; then
6249    ac_cpp_err=$ac_c_preproc_warn_flag
6250    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6251  else
6252    ac_cpp_err=
6253  fi
6254else
6255  ac_cpp_err=yes
6256fi
6257if test -z "$ac_cpp_err"; then
6258  # Broken: success on invalid input.
6259continue
6260else
6261  echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264  # Passes both tests.
6265ac_preproc_ok=:
6266break
6267fi
6268rm -f conftest.err conftest.$ac_ext
6269
6270done
6271# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6272rm -f conftest.err conftest.$ac_ext
6273if $ac_preproc_ok; then
6274  break
6275fi
6276
6277    done
6278    ac_cv_prog_CPP=$CPP
6279
6280fi
6281  CPP=$ac_cv_prog_CPP
6282else
6283  ac_cv_prog_CPP=$CPP
6284fi
6285echo "$as_me:$LINENO: result: $CPP" >&5
6286echo "${ECHO_T}$CPP" >&6
6287ac_preproc_ok=false
6288for ac_c_preproc_warn_flag in '' yes
6289do
6290  # Use a header file that comes with gcc, so configuring glibc
6291  # with a fresh cross-compiler works.
6292  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6293  # <limits.h> exists even on freestanding compilers.
6294  # On the NeXT, cc -E runs the code through the compiler's parser,
6295  # not just through cpp. "Syntax error" is here to catch this case.
6296  cat >conftest.$ac_ext <<_ACEOF
6297/* confdefs.h.  */
6298_ACEOF
6299cat confdefs.h >>conftest.$ac_ext
6300cat >>conftest.$ac_ext <<_ACEOF
6301/* end confdefs.h.  */
6302#ifdef __STDC__
6303# include <limits.h>
6304#else
6305# include <assert.h>
6306#endif
6307                     Syntax error
6308_ACEOF
6309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6310  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6311  ac_status=$?
6312  grep -v '^ *+' conftest.er1 >conftest.err
6313  rm -f conftest.er1
6314  cat conftest.err >&5
6315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); } >/dev/null; then
6317  if test -s conftest.err; then
6318    ac_cpp_err=$ac_c_preproc_warn_flag
6319    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6320  else
6321    ac_cpp_err=
6322  fi
6323else
6324  ac_cpp_err=yes
6325fi
6326if test -z "$ac_cpp_err"; then
6327  :
6328else
6329  echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332  # Broken: fails on valid input.
6333continue
6334fi
6335rm -f conftest.err conftest.$ac_ext
6336
6337  # OK, works on sane cases.  Now check whether non-existent headers
6338  # can be detected and how.
6339  cat >conftest.$ac_ext <<_ACEOF
6340/* confdefs.h.  */
6341_ACEOF
6342cat confdefs.h >>conftest.$ac_ext
6343cat >>conftest.$ac_ext <<_ACEOF
6344/* end confdefs.h.  */
6345#include <ac_nonexistent.h>
6346_ACEOF
6347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6348  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6349  ac_status=$?
6350  grep -v '^ *+' conftest.er1 >conftest.err
6351  rm -f conftest.er1
6352  cat conftest.err >&5
6353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354  (exit $ac_status); } >/dev/null; then
6355  if test -s conftest.err; then
6356    ac_cpp_err=$ac_c_preproc_warn_flag
6357    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6358  else
6359    ac_cpp_err=
6360  fi
6361else
6362  ac_cpp_err=yes
6363fi
6364if test -z "$ac_cpp_err"; then
6365  # Broken: success on invalid input.
6366continue
6367else
6368  echo "$as_me: failed program was:" >&5
6369sed 's/^/| /' conftest.$ac_ext >&5
6370
6371  # Passes both tests.
6372ac_preproc_ok=:
6373break
6374fi
6375rm -f conftest.err conftest.$ac_ext
6376
6377done
6378# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6379rm -f conftest.err conftest.$ac_ext
6380if $ac_preproc_ok; then
6381  :
6382else
6383  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6384See \`config.log' for more details." >&5
6385echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6386See \`config.log' for more details." >&2;}
6387   { (exit 1); exit 1; }; }
6388fi
6389
6390ac_ext=c
6391ac_cpp='$CPP $CPPFLAGS'
6392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6394ac_compiler_gnu=$ac_cv_c_compiler_gnu
6395
6396
6397echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6398echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6399if test "${ac_cv_header_stdc+set}" = set; then
6400  echo $ECHO_N "(cached) $ECHO_C" >&6
6401else
6402  cat >conftest.$ac_ext <<_ACEOF
6403/* confdefs.h.  */
6404_ACEOF
6405cat confdefs.h >>conftest.$ac_ext
6406cat >>conftest.$ac_ext <<_ACEOF
6407/* end confdefs.h.  */
6408#include <stdlib.h>
6409#include <stdarg.h>
6410#include <string.h>
6411#include <float.h>
6412
6413int
6414main ()
6415{
6416
6417  ;
6418  return 0;
6419}
6420_ACEOF
6421rm -f conftest.$ac_objext
6422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6423  (eval $ac_compile) 2>conftest.er1
6424  ac_status=$?
6425  grep -v '^ *+' conftest.er1 >conftest.err
6426  rm -f conftest.er1
6427  cat conftest.err >&5
6428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429  (exit $ac_status); } &&
6430         { ac_try='test -z "$ac_c_werror_flag"
6431                         || test ! -s conftest.err'
6432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433  (eval $ac_try) 2>&5
6434  ac_status=$?
6435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436  (exit $ac_status); }; } &&
6437         { ac_try='test -s conftest.$ac_objext'
6438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439  (eval $ac_try) 2>&5
6440  ac_status=$?
6441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442  (exit $ac_status); }; }; then
6443  ac_cv_header_stdc=yes
6444else
6445  echo "$as_me: failed program was:" >&5
6446sed 's/^/| /' conftest.$ac_ext >&5
6447
6448ac_cv_header_stdc=no
6449fi
6450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6451
6452if test $ac_cv_header_stdc = yes; then
6453  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6454  cat >conftest.$ac_ext <<_ACEOF
6455/* confdefs.h.  */
6456_ACEOF
6457cat confdefs.h >>conftest.$ac_ext
6458cat >>conftest.$ac_ext <<_ACEOF
6459/* end confdefs.h.  */
6460#include <string.h>
6461
6462_ACEOF
6463if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6464  $EGREP "memchr" >/dev/null 2>&1; then
6465  :
6466else
6467  ac_cv_header_stdc=no
6468fi
6469rm -f conftest*
6470
6471fi
6472
6473if test $ac_cv_header_stdc = yes; then
6474  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6475  cat >conftest.$ac_ext <<_ACEOF
6476/* confdefs.h.  */
6477_ACEOF
6478cat confdefs.h >>conftest.$ac_ext
6479cat >>conftest.$ac_ext <<_ACEOF
6480/* end confdefs.h.  */
6481#include <stdlib.h>
6482
6483_ACEOF
6484if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6485  $EGREP "free" >/dev/null 2>&1; then
6486  :
6487else
6488  ac_cv_header_stdc=no
6489fi
6490rm -f conftest*
6491
6492fi
6493
6494if test $ac_cv_header_stdc = yes; then
6495  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6496  if test "$cross_compiling" = yes; then
6497  :
6498else
6499  cat >conftest.$ac_ext <<_ACEOF
6500/* confdefs.h.  */
6501_ACEOF
6502cat confdefs.h >>conftest.$ac_ext
6503cat >>conftest.$ac_ext <<_ACEOF
6504/* end confdefs.h.  */
6505#include <ctype.h>
6506#if ((' ' & 0x0FF) == 0x020)
6507# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6508# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6509#else
6510# define ISLOWER(c) \
6511                   (('a' <= (c) && (c) <= 'i') \
6512                     || ('j' <= (c) && (c) <= 'r') \
6513                     || ('s' <= (c) && (c) <= 'z'))
6514# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6515#endif
6516
6517#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6518int
6519main ()
6520{
6521  int i;
6522  for (i = 0; i < 256; i++)
6523    if (XOR (islower (i), ISLOWER (i))
6524        || toupper (i) != TOUPPER (i))
6525      exit(2);
6526  exit (0);
6527}
6528_ACEOF
6529rm -f conftest$ac_exeext
6530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531  (eval $ac_link) 2>&5
6532  ac_status=$?
6533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536  (eval $ac_try) 2>&5
6537  ac_status=$?
6538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539  (exit $ac_status); }; }; then
6540  :
6541else
6542  echo "$as_me: program exited with status $ac_status" >&5
6543echo "$as_me: failed program was:" >&5
6544sed 's/^/| /' conftest.$ac_ext >&5
6545
6546( exit $ac_status )
6547ac_cv_header_stdc=no
6548fi
6549rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6550fi
6551fi
6552fi
6553echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6554echo "${ECHO_T}$ac_cv_header_stdc" >&6
6555if test $ac_cv_header_stdc = yes; then
6556
6557cat >>confdefs.h <<\_ACEOF
6558#define STDC_HEADERS 1
6559_ACEOF
6560
6561fi
6562
6563# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6574                  inttypes.h stdint.h unistd.h
6575do
6576as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6577echo "$as_me:$LINENO: checking for $ac_header" >&5
6578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6579if eval "test \"\${$as_ac_Header+set}\" = set"; then
6580  echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582  cat >conftest.$ac_ext <<_ACEOF
6583/* confdefs.h.  */
6584_ACEOF
6585cat confdefs.h >>conftest.$ac_ext
6586cat >>conftest.$ac_ext <<_ACEOF
6587/* end confdefs.h.  */
6588$ac_includes_default
6589
6590#include <$ac_header>
6591_ACEOF
6592rm -f conftest.$ac_objext
6593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594  (eval $ac_compile) 2>conftest.er1
6595  ac_status=$?
6596  grep -v '^ *+' conftest.er1 >conftest.err
6597  rm -f conftest.er1
6598  cat conftest.err >&5
6599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600  (exit $ac_status); } &&
6601         { ac_try='test -z "$ac_c_werror_flag"
6602                         || test ! -s conftest.err'
6603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604  (eval $ac_try) 2>&5
6605  ac_status=$?
6606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607  (exit $ac_status); }; } &&
6608         { ac_try='test -s conftest.$ac_objext'
6609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610  (eval $ac_try) 2>&5
6611  ac_status=$?
6612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613  (exit $ac_status); }; }; then
6614  eval "$as_ac_Header=yes"
6615else
6616  echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619eval "$as_ac_Header=no"
6620fi
6621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6622fi
6623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6625if test `eval echo '${'$as_ac_Header'}'` = yes; then
6626  cat >>confdefs.h <<_ACEOF
6627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6628_ACEOF
6629
6630fi
6631
6632done
6633
6634
6635
6636for ac_header in dlfcn.h
6637do
6638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6639if eval "test \"\${$as_ac_Header+set}\" = set"; then
6640  echo "$as_me:$LINENO: checking for $ac_header" >&5
6641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6642if eval "test \"\${$as_ac_Header+set}\" = set"; then
6643  echo $ECHO_N "(cached) $ECHO_C" >&6
6644fi
6645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6647else
6648  # Is the header compilable?
6649echo "$as_me:$LINENO: checking $ac_header usability" >&5
6650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6651cat >conftest.$ac_ext <<_ACEOF
6652/* confdefs.h.  */
6653_ACEOF
6654cat confdefs.h >>conftest.$ac_ext
6655cat >>conftest.$ac_ext <<_ACEOF
6656/* end confdefs.h.  */
6657$ac_includes_default
6658#include <$ac_header>
6659_ACEOF
6660rm -f conftest.$ac_objext
6661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662  (eval $ac_compile) 2>conftest.er1
6663  ac_status=$?
6664  grep -v '^ *+' conftest.er1 >conftest.err
6665  rm -f conftest.er1
6666  cat conftest.err >&5
6667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668  (exit $ac_status); } &&
6669         { ac_try='test -z "$ac_c_werror_flag"
6670                         || test ! -s conftest.err'
6671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672  (eval $ac_try) 2>&5
6673  ac_status=$?
6674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675  (exit $ac_status); }; } &&
6676         { ac_try='test -s conftest.$ac_objext'
6677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678  (eval $ac_try) 2>&5
6679  ac_status=$?
6680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681  (exit $ac_status); }; }; then
6682  ac_header_compiler=yes
6683else
6684  echo "$as_me: failed program was:" >&5
6685sed 's/^/| /' conftest.$ac_ext >&5
6686
6687ac_header_compiler=no
6688fi
6689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6691echo "${ECHO_T}$ac_header_compiler" >&6
6692
6693# Is the header present?
6694echo "$as_me:$LINENO: checking $ac_header presence" >&5
6695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6696cat >conftest.$ac_ext <<_ACEOF
6697/* confdefs.h.  */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h.  */
6702#include <$ac_header>
6703_ACEOF
6704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6705  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6706  ac_status=$?
6707  grep -v '^ *+' conftest.er1 >conftest.err
6708  rm -f conftest.er1
6709  cat conftest.err >&5
6710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711  (exit $ac_status); } >/dev/null; then
6712  if test -s conftest.err; then
6713    ac_cpp_err=$ac_c_preproc_warn_flag
6714    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6715  else
6716    ac_cpp_err=
6717  fi
6718else
6719  ac_cpp_err=yes
6720fi
6721if test -z "$ac_cpp_err"; then
6722  ac_header_preproc=yes
6723else
6724  echo "$as_me: failed program was:" >&5
6725sed 's/^/| /' conftest.$ac_ext >&5
6726
6727  ac_header_preproc=no
6728fi
6729rm -f conftest.err conftest.$ac_ext
6730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6731echo "${ECHO_T}$ac_header_preproc" >&6
6732
6733# So?  What about this header?
6734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6735  yes:no: )
6736    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6738    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6740    ac_header_preproc=yes
6741    ;;
6742  no:yes:* )
6743    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6745    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6746echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6747    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6749    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6750echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6751    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6753    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6755    (
6756      cat <<\_ASBOX
6757## ----------------------------------- ##
6758## Report this to clp@list.coin-or.org ##
6759## ----------------------------------- ##
6760_ASBOX
6761    ) |
6762      sed "s/^/$as_me: WARNING:     /" >&2
6763    ;;
6764esac
6765echo "$as_me:$LINENO: checking for $ac_header" >&5
6766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6767if eval "test \"\${$as_ac_Header+set}\" = set"; then
6768  echo $ECHO_N "(cached) $ECHO_C" >&6
6769else
6770  eval "$as_ac_Header=\$ac_header_preproc"
6771fi
6772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6774
6775fi
6776if test `eval echo '${'$as_ac_Header'}'` = yes; then
6777  cat >>confdefs.h <<_ACEOF
6778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6779_ACEOF
6780
6781fi
6782
6783done
6784
6785
6786
6787if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6788    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6789    (test "X$CXX" != "Xg++"))) ; then
6790  ac_ext=cc
6791ac_cpp='$CXXCPP $CPPFLAGS'
6792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6795echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6796echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6797if test -z "$CXXCPP"; then
6798  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6799  echo $ECHO_N "(cached) $ECHO_C" >&6
6800else
6801      # Double quotes because CXXCPP needs to be expanded
6802    for CXXCPP in "$CXX -E" "/lib/cpp"
6803    do
6804      ac_preproc_ok=false
6805for ac_cxx_preproc_warn_flag in '' yes
6806do
6807  # Use a header file that comes with gcc, so configuring glibc
6808  # with a fresh cross-compiler works.
6809  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6810  # <limits.h> exists even on freestanding compilers.
6811  # On the NeXT, cc -E runs the code through the compiler's parser,
6812  # not just through cpp. "Syntax error" is here to catch this case.
6813  cat >conftest.$ac_ext <<_ACEOF
6814/* confdefs.h.  */
6815_ACEOF
6816cat confdefs.h >>conftest.$ac_ext
6817cat >>conftest.$ac_ext <<_ACEOF
6818/* end confdefs.h.  */
6819#ifdef __STDC__
6820# include <limits.h>
6821#else
6822# include <assert.h>
6823#endif
6824                     Syntax error
6825_ACEOF
6826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6827  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6828  ac_status=$?
6829  grep -v '^ *+' conftest.er1 >conftest.err
6830  rm -f conftest.er1
6831  cat conftest.err >&5
6832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833  (exit $ac_status); } >/dev/null; then
6834  if test -s conftest.err; then
6835    ac_cpp_err=$ac_cxx_preproc_warn_flag
6836    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6837  else
6838    ac_cpp_err=
6839  fi
6840else
6841  ac_cpp_err=yes
6842fi
6843if test -z "$ac_cpp_err"; then
6844  :
6845else
6846  echo "$as_me: failed program was:" >&5
6847sed 's/^/| /' conftest.$ac_ext >&5
6848
6849  # Broken: fails on valid input.
6850continue
6851fi
6852rm -f conftest.err conftest.$ac_ext
6853
6854  # OK, works on sane cases.  Now check whether non-existent headers
6855  # can be detected and how.
6856  cat >conftest.$ac_ext <<_ACEOF
6857/* confdefs.h.  */
6858_ACEOF
6859cat confdefs.h >>conftest.$ac_ext
6860cat >>conftest.$ac_ext <<_ACEOF
6861/* end confdefs.h.  */
6862#include <ac_nonexistent.h>
6863_ACEOF
6864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6865  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6866  ac_status=$?
6867  grep -v '^ *+' conftest.er1 >conftest.err
6868  rm -f conftest.er1
6869  cat conftest.err >&5
6870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871  (exit $ac_status); } >/dev/null; then
6872  if test -s conftest.err; then
6873    ac_cpp_err=$ac_cxx_preproc_warn_flag
6874    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6875  else
6876    ac_cpp_err=
6877  fi
6878else
6879  ac_cpp_err=yes
6880fi
6881if test -z "$ac_cpp_err"; then
6882  # Broken: success on invalid input.
6883continue
6884else
6885  echo "$as_me: failed program was:" >&5
6886sed 's/^/| /' conftest.$ac_ext >&5
6887
6888  # Passes both tests.
6889ac_preproc_ok=:
6890break
6891fi
6892rm -f conftest.err conftest.$ac_ext
6893
6894done
6895# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6896rm -f conftest.err conftest.$ac_ext
6897if $ac_preproc_ok; then
6898  break
6899fi
6900
6901    done
6902    ac_cv_prog_CXXCPP=$CXXCPP
6903
6904fi
6905  CXXCPP=$ac_cv_prog_CXXCPP
6906else
6907  ac_cv_prog_CXXCPP=$CXXCPP
6908fi
6909echo "$as_me:$LINENO: result: $CXXCPP" >&5
6910echo "${ECHO_T}$CXXCPP" >&6
6911ac_preproc_ok=false
6912for ac_cxx_preproc_warn_flag in '' yes
6913do
6914  # Use a header file that comes with gcc, so configuring glibc
6915  # with a fresh cross-compiler works.
6916  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6917  # <limits.h> exists even on freestanding compilers.
6918  # On the NeXT, cc -E runs the code through the compiler's parser,
6919  # not just through cpp. "Syntax error" is here to catch this case.
6920  cat >conftest.$ac_ext <<_ACEOF
6921/* confdefs.h.  */
6922_ACEOF
6923cat confdefs.h >>conftest.$ac_ext
6924cat >>conftest.$ac_ext <<_ACEOF
6925/* end confdefs.h.  */
6926#ifdef __STDC__
6927# include <limits.h>
6928#else
6929# include <assert.h>
6930#endif
6931                     Syntax error
6932_ACEOF
6933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6934  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6935  ac_status=$?
6936  grep -v '^ *+' conftest.er1 >conftest.err
6937  rm -f conftest.er1
6938  cat conftest.err >&5
6939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940  (exit $ac_status); } >/dev/null; then
6941  if test -s conftest.err; then
6942    ac_cpp_err=$ac_cxx_preproc_warn_flag
6943    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6944  else
6945    ac_cpp_err=
6946  fi
6947else
6948  ac_cpp_err=yes
6949fi
6950if test -z "$ac_cpp_err"; then
6951  :
6952else
6953  echo "$as_me: failed program was:" >&5
6954sed 's/^/| /' conftest.$ac_ext >&5
6955
6956  # Broken: fails on valid input.
6957continue
6958fi
6959rm -f conftest.err conftest.$ac_ext
6960
6961  # OK, works on sane cases.  Now check whether non-existent headers
6962  # can be detected and how.
6963  cat >conftest.$ac_ext <<_ACEOF
6964/* confdefs.h.  */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h.  */
6969#include <ac_nonexistent.h>
6970_ACEOF
6971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6972  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6973  ac_status=$?
6974  grep -v '^ *+' conftest.er1 >conftest.err
6975  rm -f conftest.er1
6976  cat conftest.err >&5
6977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978  (exit $ac_status); } >/dev/null; then
6979  if test -s conftest.err; then
6980    ac_cpp_err=$ac_cxx_preproc_warn_flag
6981    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6982  else
6983    ac_cpp_err=
6984  fi
6985else
6986  ac_cpp_err=yes
6987fi
6988if test -z "$ac_cpp_err"; then
6989  # Broken: success on invalid input.
6990continue
6991else
6992  echo "$as_me: failed program was:" >&5
6993sed 's/^/| /' conftest.$ac_ext >&5
6994
6995  # Passes both tests.
6996ac_preproc_ok=:
6997break
6998fi
6999rm -f conftest.err conftest.$ac_ext
7000
7001done
7002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7003rm -f conftest.err conftest.$ac_ext
7004if $ac_preproc_ok; then
7005  :
7006else
7007  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7008See \`config.log' for more details." >&5
7009echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7010See \`config.log' for more details." >&2;}
7011   { (exit 1); exit 1; }; }
7012fi
7013
7014ac_ext=cc
7015ac_cpp='$CXXCPP $CPPFLAGS'
7016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7019
7020fi
7021
7022ac_ext=f
7023ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7024ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7026if test -n "$ac_tool_prefix"; then
7027  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7028  do
7029    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7030set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7031echo "$as_me:$LINENO: checking for $ac_word" >&5
7032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7033if test "${ac_cv_prog_F77+set}" = set; then
7034  echo $ECHO_N "(cached) $ECHO_C" >&6
7035else
7036  if test -n "$F77"; then
7037  ac_cv_prog_F77="$F77" # Let the user override the test.
7038else
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042  IFS=$as_save_IFS
7043  test -z "$as_dir" && as_dir=.
7044  for ac_exec_ext in '' $ac_executable_extensions; do
7045  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7046    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7047    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7048    break 2
7049  fi
7050done
7051done
7052
7053fi
7054fi
7055F77=$ac_cv_prog_F77
7056if test -n "$F77"; then
7057  echo "$as_me:$LINENO: result: $F77" >&5
7058echo "${ECHO_T}$F77" >&6
7059else
7060  echo "$as_me:$LINENO: result: no" >&5
7061echo "${ECHO_T}no" >&6
7062fi
7063
7064    test -n "$F77" && break
7065  done
7066fi
7067if test -z "$F77"; then
7068  ac_ct_F77=$F77
7069  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7070do
7071  # Extract the first word of "$ac_prog", so it can be a program name with args.
7072set dummy $ac_prog; ac_word=$2
7073echo "$as_me:$LINENO: checking for $ac_word" >&5
7074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7075if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7076  echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078  if test -n "$ac_ct_F77"; then
7079  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7080else
7081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084  IFS=$as_save_IFS
7085  test -z "$as_dir" && as_dir=.
7086  for ac_exec_ext in '' $ac_executable_extensions; do
7087  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7088    ac_cv_prog_ac_ct_F77="$ac_prog"
7089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090    break 2
7091  fi
7092done
7093done
7094
7095fi
7096fi
7097ac_ct_F77=$ac_cv_prog_ac_ct_F77
7098if test -n "$ac_ct_F77"; then
7099  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7100echo "${ECHO_T}$ac_ct_F77" >&6
7101else
7102  echo "$as_me:$LINENO: result: no" >&5
7103echo "${ECHO_T}no" >&6
7104fi
7105
7106  test -n "$ac_ct_F77" && break
7107done
7108
7109  F77=$ac_ct_F77
7110fi
7111
7112
7113# Provide some information about the compiler.
7114echo "$as_me:7114:" \
7115     "checking for Fortran 77 compiler version" >&5
7116ac_compiler=`set X $ac_compile; echo $2`
7117{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7118  (eval $ac_compiler --version </dev/null >&5) 2>&5
7119  ac_status=$?
7120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121  (exit $ac_status); }
7122{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7123  (eval $ac_compiler -v </dev/null >&5) 2>&5
7124  ac_status=$?
7125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126  (exit $ac_status); }
7127{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7128  (eval $ac_compiler -V </dev/null >&5) 2>&5
7129  ac_status=$?
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); }
7132rm -f a.out
7133
7134# If we don't use `.F' as extension, the preprocessor is not run on the
7135# input file.  (Note that this only needs to work for GNU compilers.)
7136ac_save_ext=$ac_ext
7137ac_ext=F
7138echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7139echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7140if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7141  echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143  cat >conftest.$ac_ext <<_ACEOF
7144      program main
7145#ifndef __GNUC__
7146       choke me
7147#endif
7148
7149      end
7150_ACEOF
7151rm -f conftest.$ac_objext
7152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7153  (eval $ac_compile) 2>conftest.er1
7154  ac_status=$?
7155  grep -v '^ *+' conftest.er1 >conftest.err
7156  rm -f conftest.er1
7157  cat conftest.err >&5
7158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159  (exit $ac_status); } &&
7160         { ac_try='test -z "$ac_f77_werror_flag"
7161                         || test ! -s conftest.err'
7162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7163  (eval $ac_try) 2>&5
7164  ac_status=$?
7165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166  (exit $ac_status); }; } &&
7167         { ac_try='test -s conftest.$ac_objext'
7168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7169  (eval $ac_try) 2>&5
7170  ac_status=$?
7171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172  (exit $ac_status); }; }; then
7173  ac_compiler_gnu=yes
7174else
7175  echo "$as_me: failed program was:" >&5
7176sed 's/^/| /' conftest.$ac_ext >&5
7177
7178ac_compiler_gnu=no
7179fi
7180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7181ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7182
7183fi
7184echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7185echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7186ac_ext=$ac_save_ext
7187ac_test_FFLAGS=${FFLAGS+set}
7188ac_save_FFLAGS=$FFLAGS
7189FFLAGS=
7190echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7191echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7192if test "${ac_cv_prog_f77_g+set}" = set; then
7193  echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195  FFLAGS=-g
7196cat >conftest.$ac_ext <<_ACEOF
7197      program main
7198
7199      end
7200_ACEOF
7201rm -f conftest.$ac_objext
7202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7203  (eval $ac_compile) 2>conftest.er1
7204  ac_status=$?
7205  grep -v '^ *+' conftest.er1 >conftest.err
7206  rm -f conftest.er1
7207  cat conftest.err >&5
7208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209  (exit $ac_status); } &&
7210         { ac_try='test -z "$ac_f77_werror_flag"
7211                         || test ! -s conftest.err'
7212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213  (eval $ac_try) 2>&5
7214  ac_status=$?
7215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216  (exit $ac_status); }; } &&
7217         { ac_try='test -s conftest.$ac_objext'
7218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7219  (eval $ac_try) 2>&5
7220  ac_status=$?
7221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222  (exit $ac_status); }; }; then
7223  ac_cv_prog_f77_g=yes
7224else
7225  echo "$as_me: failed program was:" >&5
7226sed 's/^/| /' conftest.$ac_ext >&5
7227
7228ac_cv_prog_f77_g=no
7229fi
7230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7231
7232fi
7233echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7234echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7235if test "$ac_test_FFLAGS" = set; then
7236  FFLAGS=$ac_save_FFLAGS
7237elif test $ac_cv_prog_f77_g = yes; then
7238  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7239    FFLAGS="-g -O2"
7240  else
7241    FFLAGS="-g"
7242  fi
7243else
7244  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7245    FFLAGS="-O2"
7246  else
7247    FFLAGS=
7248  fi
7249fi
7250
7251G77=`test $ac_compiler_gnu = yes && echo yes`
7252ac_ext=c
7253ac_cpp='$CPP $CPPFLAGS'
7254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256ac_compiler_gnu=$ac_cv_c_compiler_gnu
7257
7258
7259
7260# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7261
7262# find the maximum length of command line arguments
7263echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7264echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7265if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7266  echo $ECHO_N "(cached) $ECHO_C" >&6
7267else
7268    i=0
7269  teststring="ABCD"
7270
7271  case $build_os in
7272  msdosdjgpp*)
7273    # On DJGPP, this test can blow up pretty badly due to problems in libc
7274    # (any single argument exceeding 2000 bytes causes a buffer overrun
7275    # during glob expansion).  Even if it were fixed, the result of this
7276    # check would be larger than it should be.
7277    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7278    ;;
7279
7280  gnu*)
7281    # Under GNU Hurd, this test is not required because there is
7282    # no limit to the length of command line arguments.
7283    # Libtool will interpret -1 as no limit whatsoever
7284    lt_cv_sys_max_cmd_len=-1;
7285    ;;
7286
7287  cygwin* | mingw*)
7288    # On Win9x/ME, this test blows up -- it succeeds, but takes
7289    # about 5 minutes as the teststring grows exponentially.
7290    # Worse, since 9x/ME are not pre-emptively multitasking,
7291    # you end up with a "frozen" computer, even though with patience
7292    # the test eventually succeeds (with a max line length of 256k).
7293    # Instead, let's just punt: use the minimum linelength reported by
7294    # all of the supported platforms: 8192 (on NT/2K/XP).
7295    lt_cv_sys_max_cmd_len=8192;
7296    ;;
7297
7298  amigaos*)
7299    # On AmigaOS with pdksh, this test takes hours, literally.
7300    # So we just punt and use a minimum line length of 8192.
7301    lt_cv_sys_max_cmd_len=8192;
7302    ;;
7303
7304  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7305    # This has been around since 386BSD, at least.  Likely further.
7306    if test -x /sbin/sysctl; then
7307      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7308    elif test -x /usr/sbin/sysctl; then
7309      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7310    else
7311      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7312    fi
7313    # And add a safety zone
7314    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7315    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7316    ;;
7317
7318  interix*)
7319    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7320    lt_cv_sys_max_cmd_len=196608
7321    ;;
7322
7323  osf*)
7324    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7325    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7326    # nice to cause kernel panics so lets avoid the loop below.
7327    # First set a reasonable default.
7328    lt_cv_sys_max_cmd_len=16384
7329    #
7330    if test -x /sbin/sysconfig; then
7331      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7332        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7333      esac
7334    fi
7335    ;;
7336  sco3.2v5*)
7337    lt_cv_sys_max_cmd_len=102400
7338    ;;
7339  sysv5* | sco5v6* | sysv4.2uw2*)
7340    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7341    if test -n "$kargmax"; then
7342      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7343    else
7344      lt_cv_sys_max_cmd_len=32768
7345    fi
7346    ;;
7347  *)
7348    # If test is not a shell built-in, we'll probably end up computing a
7349    # maximum length that is only half of the actual maximum length, but
7350    # we can't tell.
7351    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7352    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7353               = "XX$teststring") >/dev/null 2>&1 &&
7354            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7355            lt_cv_sys_max_cmd_len=$new_result &&
7356            test $i != 17 # 1/2 MB should be enough
7357    do
7358      i=`expr $i + 1`
7359      teststring=$teststring$teststring
7360    done
7361    teststring=
7362    # Add a significant safety factor because C++ compilers can tack on massive
7363    # amounts of additional arguments before passing them to the linker.
7364    # It appears as though 1/2 is a usable value.
7365    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7366    ;;
7367  esac
7368
7369fi
7370
7371if test -n $lt_cv_sys_max_cmd_len ; then
7372  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7373echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7374else
7375  echo "$as_me:$LINENO: result: none" >&5
7376echo "${ECHO_T}none" >&6
7377fi
7378
7379
7380
7381
7382# Check for command to grab the raw symbol name followed by C symbol from nm.
7383echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7384echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7385if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7386  echo $ECHO_N "(cached) $ECHO_C" >&6
7387else
7388
7389# These are sane defaults that work on at least a few old systems.
7390# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7391
7392# Character class describing NM global symbol codes.
7393symcode='[BCDEGRST]'
7394
7395# Regexp to match symbols that can be accessed directly from C.
7396sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7397
7398# Transform an extracted symbol line into a proper C declaration
7399lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7400
7401# Transform an extracted symbol line into symbol name and symbol address
7402lt_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'"
7403
7404# Define system-specific variables.
7405case $host_os in
7406aix*)
7407  symcode='[BCDT]'
7408  ;;
7409cygwin* | mingw* | pw32*)
7410  symcode='[ABCDGISTW]'
7411  ;;
7412hpux*) # Its linker distinguishes data from code symbols
7413  if test "$host_cpu" = ia64; then
7414    symcode='[ABCDEGRST]'
7415  fi
7416  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7417  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'"
7418  ;;
7419linux*)
7420  if test "$host_cpu" = ia64; then
7421    symcode='[ABCDGIRSTW]'
7422    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7423    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7424  fi
7425  ;;
7426irix* | nonstopux*)
7427  symcode='[BCDEGRST]'
7428  ;;
7429osf*)
7430  symcode='[BCDEGQRST]'
7431  ;;
7432solaris*)
7433  symcode='[BDRT]'
7434  ;;
7435sco3.2v5*)
7436  symcode='[DT]'
7437  ;;
7438sysv4.2uw2*)
7439  symcode='[DT]'
7440  ;;
7441sysv5* | sco5v6* | unixware* | OpenUNIX*)
7442  symcode='[ABDT]'
7443  ;;
7444sysv4)
7445  symcode='[DFNSTU]'
7446  ;;
7447esac
7448
7449# Handle CRLF in mingw tool chain
7450opt_cr=
7451case $build_os in
7452mingw*)
7453  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7454  ;;
7455esac
7456
7457# If we're using GNU nm, then use its standard symbol codes.
7458case `$NM -V 2>&1` in
7459*GNU* | *'with BFD'*)
7460  symcode='[ABCDGIRSTW]' ;;
7461esac
7462
7463# Try without a prefix undercore, then with it.
7464for ac_symprfx in "" "_"; do
7465
7466  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7467  symxfrm="\\1 $ac_symprfx\\2 \\2"
7468
7469  # Write the raw and C identifiers.
7470  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7471
7472  # Check to see that the pipe works correctly.
7473  pipe_works=no
7474
7475  rm -f conftest*
7476  cat > conftest.$ac_ext <<EOF
7477#ifdef __cplusplus
7478extern "C" {
7479#endif
7480char nm_test_var;
7481void nm_test_func(){}
7482#ifdef __cplusplus
7483}
7484#endif
7485int main(){nm_test_var='a';nm_test_func();return(0);}
7486EOF
7487
7488  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7489  (eval $ac_compile) 2>&5
7490  ac_status=$?
7491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492  (exit $ac_status); }; then
7493    # Now try to grab the symbols.
7494    nlist=conftest.nm
7495    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7496  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7497  ac_status=$?
7498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499  (exit $ac_status); } && test -s "$nlist"; then
7500      # Try sorting and uniquifying the output.
7501      if sort "$nlist" | uniq > "$nlist"T; then
7502        mv -f "$nlist"T "$nlist"
7503      else
7504        rm -f "$nlist"T
7505      fi
7506
7507      # Make sure that we snagged all the symbols we need.
7508      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7509        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7510          cat <<EOF > conftest.$ac_ext
7511#ifdef __cplusplus
7512extern "C" {
7513#endif
7514
7515EOF
7516          # Now generate the symbol file.
7517          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7518
7519          cat <<EOF >> conftest.$ac_ext
7520#if defined (__STDC__) && __STDC__
7521# define lt_ptr_t void *
7522#else
7523# define lt_ptr_t char *
7524# define const
7525#endif
7526
7527/* The mapping between symbol names and symbols. */
7528const struct {
7529  const char *name;
7530  lt_ptr_t address;
7531}
7532lt_preloaded_symbols[] =
7533{
7534EOF
7535          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7536          cat <<\EOF >> conftest.$ac_ext
7537  {0, (lt_ptr_t) 0}
7538};
7539
7540#ifdef __cplusplus
7541}
7542#endif
7543EOF
7544          # Now try linking the two files.
7545          mv conftest.$ac_objext conftstm.$ac_objext
7546          lt_save_LIBS="$LIBS"
7547          lt_save_CFLAGS="$CFLAGS"
7548          LIBS="conftstm.$ac_objext"
7549          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7550          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7551  (eval $ac_link) 2>&5
7552  ac_status=$?
7553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7555            pipe_works=yes
7556          fi
7557          LIBS="$lt_save_LIBS"
7558          CFLAGS="$lt_save_CFLAGS"
7559        else
7560          echo "cannot find nm_test_func in $nlist" >&5
7561        fi
7562      else
7563        echo "cannot find nm_test_var in $nlist" >&5
7564      fi
7565    else
7566      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7567    fi
7568  else
7569    echo "$progname: failed program was:" >&5
7570    cat conftest.$ac_ext >&5
7571  fi
7572  rm -f conftest* conftst*
7573
7574  # Do not use the global_symbol_pipe unless it works.
7575  if test "$pipe_works" = yes; then
7576    break
7577  else
7578    lt_cv_sys_global_symbol_pipe=
7579  fi
7580done
7581
7582fi
7583
7584if test -z "$lt_cv_sys_global_symbol_pipe"; then
7585  lt_cv_sys_global_symbol_to_cdecl=
7586fi
7587if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7588  echo "$as_me:$LINENO: result: failed" >&5
7589echo "${ECHO_T}failed" >&6
7590else
7591  echo "$as_me:$LINENO: result: ok" >&5
7592echo "${ECHO_T}ok" >&6
7593fi
7594
7595echo "$as_me:$LINENO: checking for objdir" >&5
7596echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7597if test "${lt_cv_objdir+set}" = set; then
7598  echo $ECHO_N "(cached) $ECHO_C" >&6
7599else
7600  rm -f .libs 2>/dev/null
7601mkdir .libs 2>/dev/null
7602if test -d .libs; then
7603  lt_cv_objdir=.libs
7604else
7605  # MS-DOS does not allow filenames that begin with a dot.
7606  lt_cv_objdir=_libs
7607fi
7608rmdir .libs 2>/dev/null
7609fi
7610echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7611echo "${ECHO_T}$lt_cv_objdir" >&6
7612objdir=$lt_cv_objdir
7613
7614
7615
7616
7617
7618case $host_os in
7619aix3*)
7620  # AIX sometimes has problems with the GCC collect2 program.  For some
7621  # reason, if we set the COLLECT_NAMES environment variable, the problems
7622  # vanish in a puff of smoke.
7623  if test "X${COLLECT_NAMES+set}" != Xset; then
7624    COLLECT_NAMES=
7625    export COLLECT_NAMES
7626  fi
7627  ;;
7628esac
7629
7630# Sed substitution that helps us do robust quoting.  It backslashifies
7631# metacharacters that are still active within double-quoted strings.
7632Xsed='sed -e 1s/^X//'
7633sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7634
7635# Same as above, but do not quote variable references.
7636double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7637
7638# Sed substitution to delay expansion of an escaped shell variable in a
7639# double_quote_subst'ed string.
7640delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7641
7642# Sed substitution to avoid accidental globbing in evaled expressions
7643no_glob_subst='s/\*/\\\*/g'
7644
7645# Constants:
7646rm="rm -f"
7647
7648# Global variables:
7649default_ofile=libtool
7650can_build_shared=yes
7651
7652# All known linkers require a `.a' archive for static linking (except MSVC,
7653# which needs '.lib').
7654libext=a
7655ltmain="$ac_aux_dir/ltmain.sh"
7656ofile="$default_ofile"
7657with_gnu_ld="$lt_cv_prog_gnu_ld"
7658
7659if test -n "$ac_tool_prefix"; then
7660  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7661set dummy ${ac_tool_prefix}ar; ac_word=$2
7662echo "$as_me:$LINENO: checking for $ac_word" >&5
7663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7664if test "${ac_cv_prog_AR+set}" = set; then
7665  echo $ECHO_N "(cached) $ECHO_C" >&6
7666else
7667  if test -n "$AR"; then
7668  ac_cv_prog_AR="$AR" # Let the user override the test.
7669else
7670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671for as_dir in $PATH
7672do
7673  IFS=$as_save_IFS
7674  test -z "$as_dir" && as_dir=.
7675  for ac_exec_ext in '' $ac_executable_extensions; do
7676  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7677    ac_cv_prog_AR="${ac_tool_prefix}ar"
7678    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7679    break 2
7680  fi
7681done
7682done
7683
7684fi
7685fi
7686AR=$ac_cv_prog_AR
7687if test -n "$AR"; then
7688  echo "$as_me:$LINENO: result: $AR" >&5
7689echo "${ECHO_T}$AR" >&6
7690else
7691  echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6
7693fi
7694
7695fi
7696if test -z "$ac_cv_prog_AR"; then
7697  ac_ct_AR=$AR
7698  # Extract the first word of "ar", so it can be a program name with args.
7699set dummy ar; ac_word=$2
7700echo "$as_me:$LINENO: checking for $ac_word" >&5
7701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7702if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7703  echo $ECHO_N "(cached) $ECHO_C" >&6
7704else
7705  if test -n "$ac_ct_AR"; then
7706  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7707else
7708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709for as_dir in $PATH
7710do
7711  IFS=$as_save_IFS
7712  test -z "$as_dir" && as_dir=.
7713  for ac_exec_ext in '' $ac_executable_extensions; do
7714  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7715    ac_cv_prog_ac_ct_AR="ar"
7716    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7717    break 2
7718  fi
7719done
7720done
7721
7722  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7723fi
7724fi
7725ac_ct_AR=$ac_cv_prog_ac_ct_AR
7726if test -n "$ac_ct_AR"; then
7727  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7728echo "${ECHO_T}$ac_ct_AR" >&6
7729else
7730  echo "$as_me:$LINENO: result: no" >&5
7731echo "${ECHO_T}no" >&6
7732fi
7733
7734  AR=$ac_ct_AR
7735else
7736  AR="$ac_cv_prog_AR"
7737fi
7738
7739if test -n "$ac_tool_prefix"; then
7740  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7741set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7742echo "$as_me:$LINENO: checking for $ac_word" >&5
7743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7744if test "${ac_cv_prog_RANLIB+set}" = set; then
7745  echo $ECHO_N "(cached) $ECHO_C" >&6
7746else
7747  if test -n "$RANLIB"; then
7748  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7749else
7750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751for as_dir in $PATH
7752do
7753  IFS=$as_save_IFS
7754  test -z "$as_dir" && as_dir=.
7755  for ac_exec_ext in '' $ac_executable_extensions; do
7756  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759    break 2
7760  fi
7761done
7762done
7763
7764fi
7765fi
7766RANLIB=$ac_cv_prog_RANLIB
7767if test -n "$RANLIB"; then
7768  echo "$as_me:$LINENO: result: $RANLIB" >&5
7769echo "${ECHO_T}$RANLIB" >&6
7770else
7771  echo "$as_me:$LINENO: result: no" >&5
7772echo "${ECHO_T}no" >&6
7773fi
7774
7775fi
7776if test -z "$ac_cv_prog_RANLIB"; then
7777  ac_ct_RANLIB=$RANLIB
7778  # Extract the first word of "ranlib", so it can be a program name with args.
7779set dummy ranlib; ac_word=$2
7780echo "$as_me:$LINENO: checking for $ac_word" >&5
7781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7782if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7783  echo $ECHO_N "(cached) $ECHO_C" >&6
7784else
7785  if test -n "$ac_ct_RANLIB"; then
7786  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7787else
7788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7789for as_dir in $PATH
7790do
7791  IFS=$as_save_IFS
7792  test -z "$as_dir" && as_dir=.
7793  for ac_exec_ext in '' $ac_executable_extensions; do
7794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7795    ac_cv_prog_ac_ct_RANLIB="ranlib"
7796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7797    break 2
7798  fi
7799done
7800done
7801
7802  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7803fi
7804fi
7805ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7806if test -n "$ac_ct_RANLIB"; then
7807  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7808echo "${ECHO_T}$ac_ct_RANLIB" >&6
7809else
7810  echo "$as_me:$LINENO: result: no" >&5
7811echo "${ECHO_T}no" >&6
7812fi
7813
7814  RANLIB=$ac_ct_RANLIB
7815else
7816  RANLIB="$ac_cv_prog_RANLIB"
7817fi
7818
7819if test -n "$ac_tool_prefix"; then
7820  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7821set dummy ${ac_tool_prefix}strip; ac_word=$2
7822echo "$as_me:$LINENO: checking for $ac_word" >&5
7823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7824if test "${ac_cv_prog_STRIP+set}" = set; then
7825  echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827  if test -n "$STRIP"; then
7828  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7829else
7830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833  IFS=$as_save_IFS
7834  test -z "$as_dir" && as_dir=.
7835  for ac_exec_ext in '' $ac_executable_extensions; do
7836  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7837    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7839    break 2
7840  fi
7841done
7842done
7843
7844fi
7845fi
7846STRIP=$ac_cv_prog_STRIP
7847if test -n "$STRIP"; then
7848  echo "$as_me:$LINENO: result: $STRIP" >&5
7849echo "${ECHO_T}$STRIP" >&6
7850else
7851  echo "$as_me:$LINENO: result: no" >&5
7852echo "${ECHO_T}no" >&6
7853fi
7854
7855fi
7856if test -z "$ac_cv_prog_STRIP"; then
7857  ac_ct_STRIP=$STRIP
7858  # Extract the first word of "strip", so it can be a program name with args.
7859set dummy strip; ac_word=$2
7860echo "$as_me:$LINENO: checking for $ac_word" >&5
7861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7862if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7863  echo $ECHO_N "(cached) $ECHO_C" >&6
7864else
7865  if test -n "$ac_ct_STRIP"; then
7866  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7867else
7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869for as_dir in $PATH
7870do
7871  IFS=$as_save_IFS
7872  test -z "$as_dir" && as_dir=.
7873  for ac_exec_ext in '' $ac_executable_extensions; do
7874  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875    ac_cv_prog_ac_ct_STRIP="strip"
7876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7877    break 2
7878  fi
7879done
7880done
7881
7882  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7883fi
7884fi
7885ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7886if test -n "$ac_ct_STRIP"; then
7887  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7888echo "${ECHO_T}$ac_ct_STRIP" >&6
7889else
7890  echo "$as_me:$LINENO: result: no" >&5
7891echo "${ECHO_T}no" >&6
7892fi
7893
7894  STRIP=$ac_ct_STRIP
7895else
7896  STRIP="$ac_cv_prog_STRIP"
7897fi
7898
7899
7900old_CC="$CC"
7901old_CFLAGS="$CFLAGS"
7902
7903# Set sane defaults for various variables
7904test -z "$AR" && AR=ar
7905test -z "$AR_FLAGS" && AR_FLAGS=cru
7906test -z "$AS" && AS=as
7907test -z "$CC" && CC=cc
7908test -z "$LTCC" && LTCC=$CC
7909test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7910test -z "$DLLTOOL" && DLLTOOL=dlltool
7911test -z "$LD" && LD=ld
7912test -z "$LN_S" && LN_S="ln -s"
7913test -z "$MAGIC_CMD" && MAGIC_CMD=file
7914test -z "$NM" && NM=nm
7915test -z "$SED" && SED=sed
7916test -z "$OBJDUMP" && OBJDUMP=objdump
7917test -z "$RANLIB" && RANLIB=:
7918test -z "$STRIP" && STRIP=:
7919test -z "$ac_objext" && ac_objext=o
7920
7921# Determine commands to create old-style static archives.
7922old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7923old_postinstall_cmds='chmod 644 $oldlib'
7924old_postuninstall_cmds=
7925
7926if test -n "$RANLIB"; then
7927  case $host_os in
7928  openbsd*)
7929    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7930    ;;
7931  *)
7932    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7933    ;;
7934  esac
7935  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7936fi
7937
7938for cc_temp in $compiler""; do
7939  case $cc_temp in
7940    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7941    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7942    \-*) ;;
7943    *) break;;
7944  esac
7945done
7946cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7947
7948
7949# Only perform the check for file, if the check method requires it
7950case $deplibs_check_method in
7951file_magic*)
7952  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7953    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7954echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7955if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7956  echo $ECHO_N "(cached) $ECHO_C" >&6
7957else
7958  case $MAGIC_CMD in
7959[\\/*] |  ?:[\\/]*)
7960  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7961  ;;
7962*)
7963  lt_save_MAGIC_CMD="$MAGIC_CMD"
7964  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7965  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7966  for ac_dir in $ac_dummy; do
7967    IFS="$lt_save_ifs"
7968    test -z "$ac_dir" && ac_dir=.
7969    if test -f $ac_dir/${ac_tool_prefix}file; then
7970      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7971      if test -n "$file_magic_test_file"; then
7972        case $deplibs_check_method in
7973        "file_magic "*)
7974          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7975          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7976          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7977            $EGREP "$file_magic_regex" > /dev/null; then
7978            :
7979          else
7980            cat <<EOF 1>&2
7981
7982*** Warning: the command libtool uses to detect shared libraries,
7983*** $file_magic_cmd, produces output that libtool cannot recognize.
7984*** The result is that libtool may fail to recognize shared libraries
7985*** as such.  This will affect the creation of libtool libraries that
7986*** depend on shared libraries, but programs linked with such libtool
7987*** libraries will work regardless of this problem.  Nevertheless, you
7988*** may want to report the problem to your system manager and/or to
7989*** bug-libtool@gnu.org
7990
7991EOF
7992          fi ;;
7993        esac
7994      fi
7995      break
7996    fi
7997  done
7998  IFS="$lt_save_ifs"
7999  MAGIC_CMD="$lt_save_MAGIC_CMD"
8000  ;;
8001esac
8002fi
8003
8004MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8005if test -n "$MAGIC_CMD"; then
8006  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8007echo "${ECHO_T}$MAGIC_CMD" >&6
8008else
8009  echo "$as_me:$LINENO: result: no" >&5
8010echo "${ECHO_T}no" >&6
8011fi
8012
8013if test -z "$lt_cv_path_MAGIC_CMD"; then
8014  if test -n "$ac_tool_prefix"; then
8015    echo "$as_me:$LINENO: checking for file" >&5
8016echo $ECHO_N "checking for file... $ECHO_C" >&6
8017if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8018  echo $ECHO_N "(cached) $ECHO_C" >&6
8019else
8020  case $MAGIC_CMD in
8021[\\/*] |  ?:[\\/]*)
8022  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8023  ;;
8024*)
8025  lt_save_MAGIC_CMD="$MAGIC_CMD"
8026  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8027  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8028  for ac_dir in $ac_dummy; do
8029    IFS="$lt_save_ifs"
8030    test -z "$ac_dir" && ac_dir=.
8031    if test -f $ac_dir/file; then
8032      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8033      if test -n "$file_magic_test_file"; then
8034        case $deplibs_check_method in
8035        "file_magic "*)
8036          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8037          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8038          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8039            $EGREP "$file_magic_regex" > /dev/null; then
8040            :
8041          else
8042            cat <<EOF 1>&2
8043
8044*** Warning: the command libtool uses to detect shared libraries,
8045*** $file_magic_cmd, produces output that libtool cannot recognize.
8046*** The result is that libtool may fail to recognize shared libraries
8047*** as such.  This will affect the creation of libtool libraries that
8048*** depend on shared libraries, but programs linked with such libtool
8049*** libraries will work regardless of this problem.  Nevertheless, you
8050*** may want to report the problem to your system manager and/or to
8051*** bug-libtool@gnu.org
8052
8053EOF
8054          fi ;;
8055        esac
8056      fi
8057      break
8058    fi
8059  done
8060  IFS="$lt_save_ifs"
8061  MAGIC_CMD="$lt_save_MAGIC_CMD"
8062  ;;
8063esac
8064fi
8065
8066MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8067if test -n "$MAGIC_CMD"; then
8068  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8069echo "${ECHO_T}$MAGIC_CMD" >&6
8070else
8071  echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
8073fi
8074
8075  else
8076    MAGIC_CMD=:
8077  fi
8078fi
8079
8080  fi
8081  ;;
8082esac
8083
8084enable_dlopen=no
8085enable_win32_dll=no
8086
8087# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8088if test "${enable_libtool_lock+set}" = set; then
8089  enableval="$enable_libtool_lock"
8090
8091fi;
8092test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8093
8094
8095# Check whether --with-pic or --without-pic was given.
8096if test "${with_pic+set}" = set; then
8097  withval="$with_pic"
8098  pic_mode="$withval"
8099else
8100  pic_mode=default
8101fi;
8102test -z "$pic_mode" && pic_mode=default
8103
8104# Use C for the default configuration in the libtool script
8105tagname=
8106lt_save_CC="$CC"
8107ac_ext=c
8108ac_cpp='$CPP $CPPFLAGS'
8109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8111ac_compiler_gnu=$ac_cv_c_compiler_gnu
8112
8113
8114# Source file extension for C test sources.
8115ac_ext=c
8116
8117# Object file extension for compiled C test sources.
8118objext=o
8119objext=$objext
8120
8121# Code to be used in simple compile tests
8122lt_simple_compile_test_code="int some_variable = 0;\n"
8123
8124# Code to be used in simple link tests
8125lt_simple_link_test_code='int main(){return(0);}\n'
8126
8127
8128# If no C compiler was specified, use CC.
8129LTCC=${LTCC-"$CC"}
8130
8131# If no C compiler flags were specified, use CFLAGS.
8132LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8133
8134# Allow CC to be a program name with arguments.
8135compiler=$CC
8136
8137
8138# save warnings/boilerplate of simple test code
8139ac_outfile=conftest.$ac_objext
8140printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8141eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8142_lt_compiler_boilerplate=`cat conftest.err`
8143$rm conftest*
8144
8145ac_outfile=conftest.$ac_objext
8146printf "$lt_simple_link_test_code" >conftest.$ac_ext
8147eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8148_lt_linker_boilerplate=`cat conftest.err`
8149$rm conftest*
8150
8151
8152## CAVEAT EMPTOR:
8153## There is no encapsulation within the following macros, do not change
8154## the running order or otherwise move them around unless you know exactly
8155## what you are doing...
8156
8157lt_prog_compiler_no_builtin_flag=
8158
8159if test "$GCC" = yes; then
8160  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8161
8162
8163echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8164echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8165if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8166  echo $ECHO_N "(cached) $ECHO_C" >&6
8167else
8168  lt_cv_prog_compiler_rtti_exceptions=no
8169  ac_outfile=conftest.$ac_objext
8170   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8171   lt_compiler_flag="-fno-rtti -fno-exceptions"
8172   # Insert the option either (1) after the last *FLAGS variable, or
8173   # (2) before a word containing "conftest.", or (3) at the end.
8174   # Note that $ac_compile itself does not contain backslashes and begins
8175   # with a dollar sign (not a hyphen), so the echo should work correctly.
8176   # The option is referenced via a variable to avoid confusing sed.
8177   lt_compile=`echo "$ac_compile" | $SED \
8178   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8179   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8180   -e 's:$: $lt_compiler_flag:'`
8181   (eval echo "\"\$as_me:8181: $lt_compile\"" >&5)
8182   (eval "$lt_compile" 2>conftest.err)
8183   ac_status=$?
8184   cat conftest.err >&5
8185   echo "$as_me:8185: \$? = $ac_status" >&5
8186   if (exit $ac_status) && test -s "$ac_outfile"; then
8187     # The compiler can only warn and ignore the option if not recognized
8188     # So say no if there are warnings other than the usual output.
8189     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8190     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8191     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8192       lt_cv_prog_compiler_rtti_exceptions=yes
8193     fi
8194   fi
8195   $rm conftest*
8196
8197fi
8198echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8199echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8200
8201if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8202    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8203else
8204    :
8205fi
8206
8207fi
8208
8209lt_prog_compiler_wl=
8210lt_prog_compiler_pic=
8211lt_prog_compiler_static=
8212
8213echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8214echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8215
8216  if test "$GCC" = yes; then
8217    lt_prog_compiler_wl='-Wl,'
8218    lt_prog_compiler_static='-static'
8219
8220    case $host_os in
8221      aix*)
8222      # All AIX code is PIC.
8223      if test "$host_cpu" = ia64; then
8224        # AIX 5 now supports IA64 processor
8225        lt_prog_compiler_static='-Bstatic'
8226      fi
8227      ;;
8228
8229    amigaos*)
8230      # FIXME: we need at least 68020 code to build shared libraries, but
8231      # adding the `-m68020' flag to GCC prevents building anything better,
8232      # like `-m68040'.
8233      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8234      ;;
8235
8236    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8237      # PIC is the default for these OSes.
8238      ;;
8239
8240    mingw* | pw32* | os2*)
8241      # This hack is so that the source file can tell whether it is being
8242      # built for inclusion in a dll (and should export symbols for example).
8243      lt_prog_compiler_pic='-DDLL_EXPORT'
8244      ;;
8245
8246    darwin* | rhapsody*)
8247      # PIC is the default on this platform
8248      # Common symbols not allowed in MH_DYLIB files
8249      lt_prog_compiler_pic='-fno-common'
8250      ;;
8251
8252    interix3*)
8253      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8254      # Instead, we relocate shared libraries at runtime.
8255      ;;
8256
8257    msdosdjgpp*)
8258      # Just because we use GCC doesn't mean we suddenly get shared libraries
8259      # on systems that don't support them.
8260      lt_prog_compiler_can_build_shared=no
8261      enable_shared=no
8262      ;;
8263
8264    sysv4*MP*)
8265      if test -d /usr/nec; then
8266        lt_prog_compiler_pic=-Kconform_pic
8267      fi
8268      ;;
8269
8270    hpux*)
8271      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8272      # not for PA HP-UX.
8273      case $host_cpu in
8274      hppa*64*|ia64*)
8275        # +Z the default
8276        ;;
8277      *)
8278        lt_prog_compiler_pic='-fPIC'
8279        ;;
8280      esac
8281      ;;
8282
8283    *)
8284      lt_prog_compiler_pic='-fPIC'
8285      ;;
8286    esac
8287  else
8288    # PORTME Check for flag to pass linker flags through the system compiler.
8289    case $host_os in
8290    aix*)
8291      lt_prog_compiler_wl='-Wl,'
8292      if test "$host_cpu" = ia64; then
8293        # AIX 5 now supports IA64 processor
8294        lt_prog_compiler_static='-Bstatic'
8295      else
8296        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8297      fi
8298      ;;
8299      darwin*)
8300        # PIC is the default on this platform
8301        # Common symbols not allowed in MH_DYLIB files
8302       case $cc_basename in
8303         xlc*)
8304         lt_prog_compiler_pic='-qnocommon'
8305         lt_prog_compiler_wl='-Wl,'
8306         ;;
8307       esac
8308       ;;
8309
8310    mingw* | pw32* | os2*)
8311      # This hack is so that the source file can tell whether it is being
8312      # built for inclusion in a dll (and should export symbols for example).
8313      lt_prog_compiler_pic='-DDLL_EXPORT'
8314      ;;
8315
8316    hpux9* | hpux10* | hpux11*)
8317      lt_prog_compiler_wl='-Wl,'
8318      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8319      # not for PA HP-UX.
8320      case $host_cpu in
8321      hppa*64*|ia64*)
8322        # +Z the default
8323        ;;
8324      *)
8325        lt_prog_compiler_pic='+Z'
8326        ;;
8327      esac
8328      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8329      lt_prog_compiler_static='${wl}-a ${wl}archive'
8330      ;;
8331
8332    irix5* | irix6* | nonstopux*)
8333      lt_prog_compiler_wl='-Wl,'
8334      # PIC (with -KPIC) is the default.
8335      lt_prog_compiler_static='-non_shared'
8336      ;;
8337
8338    newsos6)
8339      lt_prog_compiler_pic='-KPIC'
8340      lt_prog_compiler_static='-Bstatic'
8341      ;;
8342
8343    linux*)
8344      case $cc_basename in
8345      icc* | ecc*)
8346        lt_prog_compiler_wl='-Wl,'
8347        lt_prog_compiler_pic='-KPIC'
8348        lt_prog_compiler_static='-static'
8349        ;;
8350      pgcc* | pgf77* | pgf90* | pgf95*)
8351        # Portland Group compilers (*not* the Pentium gcc compiler,
8352        # which looks to be a dead project)
8353        lt_prog_compiler_wl='-Wl,'
8354        lt_prog_compiler_pic='-fpic'
8355        lt_prog_compiler_static='-Bstatic'
8356        ;;
8357      ccc*)
8358        lt_prog_compiler_wl='-Wl,'
8359        # All Alpha code is PIC.
8360        lt_prog_compiler_static='-non_shared'
8361        ;;
8362      esac
8363      ;;
8364
8365    osf3* | osf4* | osf5*)
8366      lt_prog_compiler_wl='-Wl,'
8367      # All OSF/1 code is PIC.
8368      lt_prog_compiler_static='-non_shared'
8369      ;;
8370
8371    solaris*)
8372      lt_prog_compiler_pic='-KPIC'
8373      lt_prog_compiler_static='-Bstatic'
8374      case $cc_basename in
8375      f77* | f90* | f95*)
8376        lt_prog_compiler_wl='-Qoption ld ';;
8377      *)
8378        lt_prog_compiler_wl='-Wl,';;
8379      esac
8380      ;;
8381
8382    sunos4*)
8383      lt_prog_compiler_wl='-Qoption ld '
8384      lt_prog_compiler_pic='-PIC'
8385      lt_prog_compiler_static='-Bstatic'
8386      ;;
8387
8388    sysv4 | sysv4.2uw2* | sysv4.3*)
8389      lt_prog_compiler_wl='-Wl,'
8390      lt_prog_compiler_pic='-KPIC'
8391      lt_prog_compiler_static='-Bstatic'
8392      ;;
8393
8394    sysv4*MP*)
8395      if test -d /usr/nec ;then
8396        lt_prog_compiler_pic='-Kconform_pic'
8397        lt_prog_compiler_static='-Bstatic'
8398      fi
8399      ;;
8400
8401    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8402      lt_prog_compiler_wl='-Wl,'
8403      lt_prog_compiler_pic='-KPIC'
8404      lt_prog_compiler_static='-Bstatic'
8405      ;;
8406
8407    unicos*)
8408      lt_prog_compiler_wl='-Wl,'
8409      lt_prog_compiler_can_build_shared=no
8410      ;;
8411
8412    uts4*)
8413      lt_prog_compiler_pic='-pic'
8414      lt_prog_compiler_static='-Bstatic'
8415      ;;
8416
8417    *)
8418      lt_prog_compiler_can_build_shared=no
8419      ;;
8420    esac
8421  fi
8422
8423echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8424echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8425
8426#
8427# Check to make sure the PIC flag actually works.
8428#
8429if test -n "$lt_prog_compiler_pic"; then
8430
8431echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8432echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8433if test "${lt_prog_compiler_pic_works+set}" = set; then
8434  echo $ECHO_N "(cached) $ECHO_C" >&6
8435else
8436  lt_prog_compiler_pic_works=no
8437  ac_outfile=conftest.$ac_objext
8438   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8439   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8440   # Insert the option either (1) after the last *FLAGS variable, or
8441   # (2) before a word containing "conftest.", or (3) at the end.
8442   # Note that $ac_compile itself does not contain backslashes and begins
8443   # with a dollar sign (not a hyphen), so the echo should work correctly.
8444   # The option is referenced via a variable to avoid confusing sed.
8445   lt_compile=`echo "$ac_compile" | $SED \
8446   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8447   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8448   -e 's:$: $lt_compiler_flag:'`
8449   (eval echo "\"\$as_me:8449: $lt_compile\"" >&5)
8450   (eval "$lt_compile" 2>conftest.err)
8451   ac_status=$?
8452   cat conftest.err >&5
8453   echo "$as_me:8453: \$? = $ac_status" >&5
8454   if (exit $ac_status) && test -s "$ac_outfile"; then
8455     # The compiler can only warn and ignore the option if not recognized
8456     # So say no if there are warnings other than the usual output.
8457     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8458     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8459     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8460       lt_prog_compiler_pic_works=yes
8461     fi
8462   fi
8463   $rm conftest*
8464
8465fi
8466echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8467echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8468
8469if test x"$lt_prog_compiler_pic_works" = xyes; then
8470    case $lt_prog_compiler_pic in
8471     "" | " "*) ;;
8472     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8473     esac
8474else
8475    lt_prog_compiler_pic=
8476     lt_prog_compiler_can_build_shared=no
8477fi
8478
8479fi
8480case $host_os in
8481  # For platforms which do not support PIC, -DPIC is meaningless:
8482  *djgpp*)
8483    lt_prog_compiler_pic=
8484    ;;
8485  *)
8486    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8487    ;;
8488esac
8489
8490#
8491# Check to make sure the static flag actually works.
8492#
8493wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8494echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8495echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8496if test "${lt_prog_compiler_static_works+set}" = set; then
8497  echo $ECHO_N "(cached) $ECHO_C" >&6
8498else
8499  lt_prog_compiler_static_works=no
8500   save_LDFLAGS="$LDFLAGS"
8501   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8502   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8503   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8504     # The linker can only warn and ignore the option if not recognized
8505     # So say no if there are warnings
8506     if test -s conftest.err; then
8507       # Append any errors to the config.log.
8508       cat conftest.err 1>&5
8509       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8510       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8511       if diff conftest.exp conftest.er2 >/dev/null; then
8512         lt_prog_compiler_static_works=yes
8513       fi
8514     else
8515       lt_prog_compiler_static_works=yes
8516     fi
8517   fi
8518   $rm conftest*
8519   LDFLAGS="$save_LDFLAGS"
8520
8521fi
8522echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8523echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8524
8525if test x"$lt_prog_compiler_static_works" = xyes; then
8526    :
8527else
8528    lt_prog_compiler_static=
8529fi
8530
8531
8532echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8533echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8534if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8535  echo $ECHO_N "(cached) $ECHO_C" >&6
8536else
8537  lt_cv_prog_compiler_c_o=no
8538   $rm -r conftest 2>/dev/null
8539   mkdir conftest
8540   cd conftest
8541   mkdir out
8542   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8543
8544   lt_compiler_flag="-o out/conftest2.$ac_objext"
8545   # Insert the option either (1) after the last *FLAGS variable, or
8546   # (2) before a word containing "conftest.", or (3) at the end.
8547   # Note that $ac_compile itself does not contain backslashes and begins
8548   # with a dollar sign (not a hyphen), so the echo should work correctly.
8549   lt_compile=`echo "$ac_compile" | $SED \
8550   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8551   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8552   -e 's:$: $lt_compiler_flag:'`
8553   (eval echo "\"\$as_me:8553: $lt_compile\"" >&5)
8554   (eval "$lt_compile" 2>out/conftest.err)
8555   ac_status=$?
8556   cat out/conftest.err >&5
8557   echo "$as_me:8557: \$? = $ac_status" >&5
8558   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8559   then
8560     # The compiler can only warn and ignore the option if not recognized
8561     # So say no if there are warnings
8562     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8563     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8564     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8565       lt_cv_prog_compiler_c_o=yes
8566     fi
8567   fi
8568   chmod u+w . 2>&5
8569   $rm conftest*
8570   # SGI C++ compiler will create directory out/ii_files/ for
8571   # template instantiation
8572   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8573   $rm out/* && rmdir out
8574   cd ..
8575   rmdir conftest
8576   $rm conftest*
8577
8578fi
8579echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8580echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8581
8582
8583hard_links="nottested"
8584if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8585  # do not overwrite the value of need_locks provided by the user
8586  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8587echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8588  hard_links=yes
8589  $rm conftest*
8590  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8591  touch conftest.a
8592  ln conftest.a conftest.b 2>&5 || hard_links=no
8593  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8594  echo "$as_me:$LINENO: result: $hard_links" >&5
8595echo "${ECHO_T}$hard_links" >&6
8596  if test "$hard_links" = no; then
8597    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8598echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8599    need_locks=warn
8600  fi
8601else
8602  need_locks=no
8603fi
8604
8605echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8606echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8607
8608  runpath_var=
8609  allow_undefined_flag=
8610  enable_shared_with_static_runtimes=no
8611  archive_cmds=
8612  archive_expsym_cmds=
8613  old_archive_From_new_cmds=
8614  old_archive_from_expsyms_cmds=
8615  export_dynamic_flag_spec=
8616  whole_archive_flag_spec=
8617  thread_safe_flag_spec=
8618  hardcode_libdir_flag_spec=
8619  hardcode_libdir_flag_spec_ld=
8620  hardcode_libdir_separator=
8621  hardcode_direct=no
8622  hardcode_minus_L=no
8623  hardcode_shlibpath_var=unsupported
8624  link_all_deplibs=unknown
8625  hardcode_automatic=no
8626  module_cmds=
8627  module_expsym_cmds=
8628  always_export_symbols=no
8629  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8630  # include_expsyms should be a list of space-separated symbols to be *always*
8631  # included in the symbol list
8632  include_expsyms=
8633  # exclude_expsyms can be an extended regexp of symbols to exclude
8634  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8635  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8636  # as well as any symbol that contains `d'.
8637  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8638  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8639  # platforms (ab)use it in PIC code, but their linkers get confused if
8640  # the symbol is explicitly referenced.  Since portable code cannot
8641  # rely on this symbol name, it's probably fine to never include it in
8642  # preloaded symbol tables.
8643  extract_expsyms_cmds=
8644  # Just being paranoid about ensuring that cc_basename is set.
8645  for cc_temp in $compiler""; do
8646  case $cc_temp in
8647    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8648    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8649    \-*) ;;
8650    *) break;;
8651  esac
8652done
8653cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8654
8655  case $host_os in
8656  cygwin* | mingw* | pw32*)
8657    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8658    # When not using gcc, we currently assume that we are using
8659    # Microsoft Visual C++.
8660    if test "$GCC" != yes; then
8661      with_gnu_ld=no
8662    fi
8663    ;;
8664  interix*)
8665    # we just hope/assume this is gcc and not c89 (= MSVC++)
8666    with_gnu_ld=yes
8667    ;;
8668  openbsd*)
8669    with_gnu_ld=no
8670    ;;
8671  esac
8672
8673  ld_shlibs=yes
8674  if test "$with_gnu_ld" = yes; then
8675    # If archive_cmds runs LD, not CC, wlarc should be empty
8676    wlarc='${wl}'
8677
8678    # Set some defaults for GNU ld with shared library support. These
8679    # are reset later if shared libraries are not supported. Putting them
8680    # here allows them to be overridden if necessary.
8681    runpath_var=LD_RUN_PATH
8682    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8683    export_dynamic_flag_spec='${wl}--export-dynamic'
8684    # ancient GNU ld didn't support --whole-archive et. al.
8685    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8686        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8687      else
8688        whole_archive_flag_spec=
8689    fi
8690    supports_anon_versioning=no
8691    case `$LD -v 2>/dev/null` in
8692      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8693      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8694      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8695      *\ 2.11.*) ;; # other 2.11 versions
8696      *) supports_anon_versioning=yes ;;
8697    esac
8698
8699    # See if GNU ld supports shared libraries.
8700    case $host_os in
8701    aix3* | aix4* | aix5*)
8702      # On AIX/PPC, the GNU linker is very broken
8703      if test "$host_cpu" != ia64; then
8704        ld_shlibs=no
8705        cat <<EOF 1>&2
8706
8707*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8708*** to be unable to reliably create shared libraries on AIX.
8709*** Therefore, libtool is disabling shared libraries support.  If you
8710*** really care for shared libraries, you may want to modify your PATH
8711*** so that a non-GNU linker is found, and then restart.
8712
8713EOF
8714      fi
8715      ;;
8716
8717    amigaos*)
8718      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)'
8719      hardcode_libdir_flag_spec='-L$libdir'
8720      hardcode_minus_L=yes
8721
8722      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8723      # that the semantics of dynamic libraries on AmigaOS, at least up
8724      # to version 4, is to share data among multiple programs linked
8725      # with the same dynamic library.  Since this doesn't match the
8726      # behavior of shared libraries on other platforms, we can't use
8727      # them.
8728      ld_shlibs=no
8729      ;;
8730
8731    beos*)
8732      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8733        allow_undefined_flag=unsupported
8734        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8735        # support --undefined.  This deserves some investigation.  FIXME
8736        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737      else
8738        ld_shlibs=no
8739      fi
8740      ;;
8741
8742    cygwin* | mingw* | pw32*)
8743      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8744      # as there is no search path for DLLs.
8745      hardcode_libdir_flag_spec='-L$libdir'
8746      allow_undefined_flag=unsupported
8747      always_export_symbols=no
8748      enable_shared_with_static_runtimes=yes
8749      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8750
8751      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8752        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8753        # If the export-symbols file already is a .def file (1st line
8754        # is EXPORTS), use it as is; otherwise, prepend...
8755        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8756          cp $export_symbols $output_objdir/$soname.def;
8757        else
8758          echo EXPORTS > $output_objdir/$soname.def;
8759          cat $export_symbols >> $output_objdir/$soname.def;
8760        fi~
8761        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8762      else
8763        ld_shlibs=no
8764      fi
8765      ;;
8766
8767    interix3*)
8768      hardcode_direct=no
8769      hardcode_shlibpath_var=no
8770      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8771      export_dynamic_flag_spec='${wl}-E'
8772      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8773      # Instead, shared libraries are loaded at an image base (0x10000000 by
8774      # default) and relocated if they conflict, which is a slow very memory
8775      # consuming and fragmenting process.  To avoid this, we pick a random,
8776      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8777      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8778      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8779      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'
8780      ;;
8781
8782    linux*)
8783      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8784        tmp_addflag=
8785        case $cc_basename,$host_cpu in
8786        pgcc*)                          # Portland Group C compiler
8787          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'
8788          tmp_addflag=' $pic_flag'
8789          ;;
8790        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8791          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'
8792          tmp_addflag=' $pic_flag -Mnomain' ;;
8793        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8794          tmp_addflag=' -i_dynamic' ;;
8795        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8796          tmp_addflag=' -i_dynamic -nofor_main' ;;
8797        ifc* | ifort*)                  # Intel Fortran compiler
8798          tmp_addflag=' -nofor_main' ;;
8799        esac
8800        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801
8802        if test $supports_anon_versioning = yes; then
8803          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8804  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8805  $echo "local: *; };" >> $output_objdir/$libname.ver~
8806          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8807        fi
8808      else
8809        ld_shlibs=no
8810      fi
8811      ;;
8812
8813    netbsd*)
8814      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8815        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8816        wlarc=
8817      else
8818        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8819        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8820      fi
8821      ;;
8822
8823    solaris*)
8824      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8825        ld_shlibs=no
8826        cat <<EOF 1>&2
8827
8828*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8829*** create shared libraries on Solaris systems.  Therefore, libtool
8830*** is disabling shared libraries support.  We urge you to upgrade GNU
8831*** binutils to release 2.9.1 or newer.  Another option is to modify
8832*** your PATH or compiler configuration so that the native linker is
8833*** used, and then restart.
8834
8835EOF
8836      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8837        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8838        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8839      else
8840        ld_shlibs=no
8841      fi
8842      ;;
8843
8844    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8845      case `$LD -v 2>&1` in
8846        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8847        ld_shlibs=no
8848        cat <<_LT_EOF 1>&2
8849
8850*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8851*** reliably create shared libraries on SCO systems.  Therefore, libtool
8852*** is disabling shared libraries support.  We urge you to upgrade GNU
8853*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8854*** your PATH or compiler configuration so that the native linker is
8855*** used, and then restart.
8856
8857_LT_EOF
8858        ;;
8859        *)
8860          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8861            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8862            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8863            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8864          else
8865            ld_shlibs=no
8866          fi
8867        ;;
8868      esac
8869      ;;
8870
8871    sunos4*)
8872      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8873      wlarc=
8874      hardcode_direct=yes
8875      hardcode_shlibpath_var=no
8876      ;;
8877
8878    *)
8879      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8880        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8882      else
8883        ld_shlibs=no
8884      fi
8885      ;;
8886    esac
8887
8888    if test "$ld_shlibs" = no; then
8889      runpath_var=
8890      hardcode_libdir_flag_spec=
8891      export_dynamic_flag_spec=
8892      whole_archive_flag_spec=
8893    fi
8894  else
8895    # PORTME fill in a description of your system's linker (not GNU ld)
8896    case $host_os in
8897    aix3*)
8898      allow_undefined_flag=unsupported
8899      always_export_symbols=yes
8900      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'
8901      # Note: this linker hardcodes the directories in LIBPATH if there
8902      # are no directories specified by -L.
8903      hardcode_minus_L=yes
8904      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8905        # Neither direct hardcoding nor static linking is supported with a
8906        # broken collect2.
8907        hardcode_direct=unsupported
8908      fi
8909      ;;
8910
8911    aix4* | aix5*)
8912      if test "$host_cpu" = ia64; then
8913        # On IA64, the linker does run time linking by default, so we don't
8914        # have to do anything special.
8915        aix_use_runtimelinking=no
8916        exp_sym_flag='-Bexport'
8917        no_entry_flag=""
8918      else
8919        # If we're using GNU nm, then we don't want the "-C" option.
8920        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8921        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8922          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'
8923        else
8924          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'
8925        fi
8926        aix_use_runtimelinking=no
8927
8928        # Test if we are trying to use run time linking or normal
8929        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8930        # need to do runtime linking.
8931        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8932          for ld_flag in $LDFLAGS; do
8933          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8934            aix_use_runtimelinking=yes
8935            break
8936          fi
8937          done
8938          ;;
8939        esac
8940
8941        exp_sym_flag='-bexport'
8942        no_entry_flag='-bnoentry'
8943      fi
8944
8945      # When large executables or shared objects are built, AIX ld can
8946      # have problems creating the table of contents.  If linking a library
8947      # or program results in "error TOC overflow" add -mminimal-toc to
8948      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8949      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8950
8951      archive_cmds=''
8952      hardcode_direct=yes
8953      hardcode_libdir_separator=':'
8954      link_all_deplibs=yes
8955
8956      if test "$GCC" = yes; then
8957        case $host_os in aix4.[012]|aix4.[012].*)
8958        # We only want to do this on AIX 4.2 and lower, the check
8959        # below for broken collect2 doesn't work under 4.3+
8960          collect2name=`${CC} -print-prog-name=collect2`
8961          if test -f "$collect2name" && \
8962           strings "$collect2name" | grep resolve_lib_name >/dev/null
8963          then
8964          # We have reworked collect2
8965          hardcode_direct=yes
8966          else
8967          # We have old collect2
8968          hardcode_direct=unsupported
8969          # It fails to find uninstalled libraries when the uninstalled
8970          # path is not listed in the libpath.  Setting hardcode_minus_L
8971          # to unsupported forces relinking
8972          hardcode_minus_L=yes
8973          hardcode_libdir_flag_spec='-L$libdir'
8974          hardcode_libdir_separator=
8975          fi
8976          ;;
8977        esac
8978        shared_flag='-shared'
8979        if test "$aix_use_runtimelinking" = yes; then
8980          shared_flag="$shared_flag "'${wl}-G'
8981        fi
8982      else
8983        # not using gcc
8984        if test "$host_cpu" = ia64; then
8985        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8986        # chokes on -Wl,-G. The following line is correct:
8987          shared_flag='-G'
8988        else
8989          if test "$aix_use_runtimelinking" = yes; then
8990            shared_flag='${wl}-G'
8991          else
8992            shared_flag='${wl}-bM:SRE'
8993          fi
8994        fi
8995      fi
8996
8997      # It seems that -bexpall does not export symbols beginning with
8998      # underscore (_), so it is better to generate a list of symbols to export.
8999      always_export_symbols=yes
9000      if test "$aix_use_runtimelinking" = yes; then
9001        # Warning - without using the other runtime loading flags (-brtl),
9002        # -berok will link without error, but may produce a broken library.
9003        allow_undefined_flag='-berok'
9004       # Determine the default libpath from the value encoded in an empty executable.
9005       cat >conftest.$ac_ext <<_ACEOF
9006/* confdefs.h.  */
9007_ACEOF
9008cat confdefs.h >>conftest.$ac_ext
9009cat >>conftest.$ac_ext <<_ACEOF
9010/* end confdefs.h.  */
9011
9012int
9013main ()
9014{
9015
9016  ;
9017  return 0;
9018}
9019_ACEOF
9020rm -f conftest.$ac_objext conftest$ac_exeext
9021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9022  (eval $ac_link) 2>conftest.er1
9023  ac_status=$?
9024  grep -v '^ *+' conftest.er1 >conftest.err
9025  rm -f conftest.er1
9026  cat conftest.err >&5
9027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028  (exit $ac_status); } &&
9029         { ac_try='test -z "$ac_c_werror_flag"
9030                         || test ! -s conftest.err'
9031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032  (eval $ac_try) 2>&5
9033  ac_status=$?
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); }; } &&
9036         { ac_try='test -s conftest$ac_exeext'
9037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038  (eval $ac_try) 2>&5
9039  ac_status=$?
9040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041  (exit $ac_status); }; }; then
9042
9043aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9044}'`
9045# Check for a 64-bit object if we didn't find anything.
9046if 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; }
9047}'`; fi
9048else
9049  echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052fi
9053rm -f conftest.err conftest.$ac_objext \
9054      conftest$ac_exeext conftest.$ac_ext
9055if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9056
9057       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9058        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"
9059       else
9060        if test "$host_cpu" = ia64; then
9061          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9062          allow_undefined_flag="-z nodefs"
9063          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"
9064        else
9065         # Determine the default libpath from the value encoded in an empty executable.
9066         cat >conftest.$ac_ext <<_ACEOF
9067/* confdefs.h.  */
9068_ACEOF
9069cat confdefs.h >>conftest.$ac_ext
9070cat >>conftest.$ac_ext <<_ACEOF
9071/* end confdefs.h.  */
9072
9073int
9074main ()
9075{
9076
9077  ;
9078  return 0;
9079}
9080_ACEOF
9081rm -f conftest.$ac_objext conftest$ac_exeext
9082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9083  (eval $ac_link) 2>conftest.er1
9084  ac_status=$?
9085  grep -v '^ *+' conftest.er1 >conftest.err
9086  rm -f conftest.er1
9087  cat conftest.err >&5
9088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089  (exit $ac_status); } &&
9090         { ac_try='test -z "$ac_c_werror_flag"
9091                         || test ! -s conftest.err'
9092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093  (eval $ac_try) 2>&5
9094  ac_status=$?
9095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096  (exit $ac_status); }; } &&
9097         { ac_try='test -s conftest$ac_exeext'
9098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099  (eval $ac_try) 2>&5
9100  ac_status=$?
9101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102  (exit $ac_status); }; }; then
9103
9104aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9105}'`
9106# Check for a 64-bit object if we didn't find anything.
9107if 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; }
9108}'`; fi
9109else
9110  echo "$as_me: failed program was:" >&5
9111sed 's/^/| /' conftest.$ac_ext >&5
9112
9113fi
9114rm -f conftest.err conftest.$ac_objext \
9115      conftest$ac_exeext conftest.$ac_ext
9116if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9117
9118         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9119          # Warning - without using the other run time loading flags,
9120          # -berok will link without error, but may produce a broken library.
9121          no_undefined_flag=' ${wl}-bernotok'
9122          allow_undefined_flag=' ${wl}-berok'
9123          # Exported symbols can be pulled into shared objects from archives
9124          whole_archive_flag_spec='$convenience'
9125          archive_cmds_need_lc=yes
9126          # This is similar to how AIX traditionally builds its shared libraries.
9127          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'
9128        fi
9129      fi
9130      ;;
9131
9132    amigaos*)
9133      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)'
9134      hardcode_libdir_flag_spec='-L$libdir'
9135      hardcode_minus_L=yes
9136      # see comment about different semantics on the GNU ld section
9137      ld_shlibs=no
9138      ;;
9139
9140    bsdi[45]*)
9141      export_dynamic_flag_spec=-rdynamic
9142      ;;
9143
9144    cygwin* | mingw* | pw32*)
9145      # When not using gcc, we currently assume that we are using
9146      # Microsoft Visual C++.
9147      # hardcode_libdir_flag_spec is actually meaningless, as there is
9148      # no search path for DLLs.
9149      hardcode_libdir_flag_spec=' '
9150      allow_undefined_flag=unsupported
9151      # Tell ltmain to make .lib files, not .a files.
9152      libext=lib
9153      # Tell ltmain to make .dll files, not .so files.
9154      shrext_cmds=".dll"
9155      # FIXME: Setting linknames here is a bad hack.
9156      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9157      # The linker will automatically build a .lib file if we build a DLL.
9158      old_archive_From_new_cmds='true'
9159      # FIXME: Should let the user specify the lib program.
9160      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9161      fix_srcfile_path='`cygpath -w "$srcfile"`'
9162      enable_shared_with_static_runtimes=yes
9163      ;;
9164
9165    darwin* | rhapsody*)
9166      case $host_os in
9167        rhapsody* | darwin1.[012])
9168         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9169         ;;
9170       *) # Darwin 1.3 on
9171         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9172           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9173         else
9174           case ${MACOSX_DEPLOYMENT_TARGET} in
9175             10.[012])
9176               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9177               ;;
9178             10.*)
9179               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9180               ;;
9181           esac
9182         fi
9183         ;;
9184      esac
9185      archive_cmds_need_lc=no
9186      hardcode_direct=no
9187      hardcode_automatic=yes
9188      hardcode_shlibpath_var=unsupported
9189      whole_archive_flag_spec=''
9190      link_all_deplibs=yes
9191    if test "$GCC" = yes ; then
9192        output_verbose_link_cmd='echo'
9193        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9194      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9195      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9196      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}'
9197      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}'
9198    else
9199      case $cc_basename in
9200        xlc*)
9201         output_verbose_link_cmd='echo'
9202         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9203         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9204          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9205         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}'
9206          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}'
9207          ;;
9208       *)
9209         ld_shlibs=no
9210          ;;
9211      esac
9212    fi
9213      ;;
9214
9215    dgux*)
9216      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9217      hardcode_libdir_flag_spec='-L$libdir'
9218      hardcode_shlibpath_var=no
9219      ;;
9220
9221    freebsd1*)
9222      ld_shlibs=no
9223      ;;
9224
9225    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9226    # support.  Future versions do this automatically, but an explicit c++rt0.o
9227    # does not break anything, and helps significantly (at the cost of a little
9228    # extra space).
9229    freebsd2.2*)
9230      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9231      hardcode_libdir_flag_spec='-R$libdir'
9232      hardcode_direct=yes
9233      hardcode_shlibpath_var=no
9234      ;;
9235
9236    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9237    freebsd2*)
9238      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9239      hardcode_direct=yes
9240      hardcode_minus_L=yes
9241      hardcode_shlibpath_var=no
9242      ;;
9243
9244    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9245    freebsd* | kfreebsd*-gnu | dragonfly*)
9246      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9247      hardcode_libdir_flag_spec='-R$libdir'
9248      hardcode_direct=yes
9249      hardcode_shlibpath_var=no
9250      ;;
9251
9252    hpux9*)
9253      if test "$GCC" = yes; then
9254        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'
9255      else
9256        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'
9257      fi
9258      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9259      hardcode_libdir_separator=:
9260      hardcode_direct=yes
9261
9262      # hardcode_minus_L: Not really in the search PATH,
9263      # but as the default location of the library.
9264      hardcode_minus_L=yes
9265      export_dynamic_flag_spec='${wl}-E'
9266      ;;
9267
9268    hpux10*)
9269      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9270        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9271      else
9272        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9273      fi
9274      if test "$with_gnu_ld" = no; then
9275        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9276        hardcode_libdir_separator=:
9277
9278        hardcode_direct=yes
9279        export_dynamic_flag_spec='${wl}-E'
9280
9281        # hardcode_minus_L: Not really in the search PATH,
9282        # but as the default location of the library.
9283        hardcode_minus_L=yes
9284      fi
9285      ;;
9286
9287    hpux11*)
9288      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9289        case $host_cpu in
9290        hppa*64*)
9291          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9292          ;;
9293        ia64*)
9294          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9295          ;;
9296        *)
9297          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9298          ;;
9299        esac
9300      else
9301        case $host_cpu in
9302        hppa*64*)
9303          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9304          ;;
9305        ia64*)
9306          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9307          ;;
9308        *)
9309          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9310          ;;
9311        esac
9312      fi
9313      if test "$with_gnu_ld" = no; then
9314        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9315        hardcode_libdir_separator=:
9316
9317        case $host_cpu in
9318        hppa*64*|ia64*)
9319          hardcode_libdir_flag_spec_ld='+b $libdir'
9320          hardcode_direct=no
9321          hardcode_shlibpath_var=no
9322          ;;
9323        *)
9324          hardcode_direct=yes
9325          export_dynamic_flag_spec='${wl}-E'
9326
9327          # hardcode_minus_L: Not really in the search PATH,
9328          # but as the default location of the library.
9329          hardcode_minus_L=yes
9330          ;;
9331        esac
9332      fi
9333      ;;
9334
9335    irix5* | irix6* | nonstopux*)
9336      if test "$GCC" = yes; then
9337        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'
9338      else
9339        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'
9340        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9341      fi
9342      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9343      hardcode_libdir_separator=:
9344      link_all_deplibs=yes
9345      ;;
9346
9347    netbsd*)
9348      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9349        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9350      else
9351        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9352      fi
9353      hardcode_libdir_flag_spec='-R$libdir'
9354      hardcode_direct=yes
9355      hardcode_shlibpath_var=no
9356      ;;
9357
9358    newsos6)
9359      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360      hardcode_direct=yes
9361      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9362      hardcode_libdir_separator=:
9363      hardcode_shlibpath_var=no
9364      ;;
9365
9366    openbsd*)
9367      hardcode_direct=yes
9368      hardcode_shlibpath_var=no
9369      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9370        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9371        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9372        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9373        export_dynamic_flag_spec='${wl}-E'
9374      else
9375       case $host_os in
9376         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9377           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9378           hardcode_libdir_flag_spec='-R$libdir'
9379           ;;
9380         *)
9381           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9382           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9383           ;;
9384       esac
9385      fi
9386      ;;
9387
9388    os2*)
9389      hardcode_libdir_flag_spec='-L$libdir'
9390      hardcode_minus_L=yes
9391      allow_undefined_flag=unsupported
9392      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'
9393      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9394      ;;
9395
9396    osf3*)
9397      if test "$GCC" = yes; then
9398        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9399        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'
9400      else
9401        allow_undefined_flag=' -expect_unresolved \*'
9402        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'
9403      fi
9404      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405      hardcode_libdir_separator=:
9406      ;;
9407
9408    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9409      if test "$GCC" = yes; then
9410        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9411        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'
9412        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9413      else
9414        allow_undefined_flag=' -expect_unresolved \*'
9415        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'
9416        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9417        $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'
9418
9419        # Both c and cxx compiler support -rpath directly
9420        hardcode_libdir_flag_spec='-rpath $libdir'
9421      fi
9422      hardcode_libdir_separator=:
9423      ;;
9424
9425    solaris*)
9426      no_undefined_flag=' -z text'
9427      if test "$GCC" = yes; then
9428        wlarc='${wl}'
9429        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9430        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9431          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9432      else
9433        wlarc=''
9434        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9436        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9437      fi
9438      hardcode_libdir_flag_spec='-R$libdir'
9439      hardcode_shlibpath_var=no
9440      case $host_os in
9441      solaris2.[0-5] | solaris2.[0-5].*) ;;
9442      *)
9443        # The compiler driver will combine linker options so we
9444        # cannot just pass the convience library names through
9445        # without $wl, iff we do not link with $LD.
9446        # Luckily, gcc supports the same syntax we need for Sun Studio.
9447        # Supported since Solaris 2.6 (maybe 2.5.1?)
9448        case $wlarc in
9449        '')
9450          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9451        *)
9452          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' ;;
9453        esac ;;
9454      esac
9455      link_all_deplibs=yes
9456      ;;
9457
9458    sunos4*)
9459      if test "x$host_vendor" = xsequent; then
9460        # Use $CC to link under sequent, because it throws in some extra .o
9461        # files that make .init and .fini sections work.
9462        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9463      else
9464        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9465      fi
9466      hardcode_libdir_flag_spec='-L$libdir'
9467      hardcode_direct=yes
9468      hardcode_minus_L=yes
9469      hardcode_shlibpath_var=no
9470      ;;
9471
9472    sysv4)
9473      case $host_vendor in
9474        sni)
9475          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476          hardcode_direct=yes # is this really true???
9477        ;;
9478        siemens)
9479          ## LD is ld it makes a PLAMLIB
9480          ## CC just makes a GrossModule.
9481          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9482          reload_cmds='$CC -r -o $output$reload_objs'
9483          hardcode_direct=no
9484        ;;
9485        motorola)
9486          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9488        ;;
9489      esac
9490      runpath_var='LD_RUN_PATH'
9491      hardcode_shlibpath_var=no
9492      ;;
9493
9494    sysv4.3*)
9495      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496      hardcode_shlibpath_var=no
9497      export_dynamic_flag_spec='-Bexport'
9498      ;;
9499
9500    sysv4*MP*)
9501      if test -d /usr/nec; then
9502        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9503        hardcode_shlibpath_var=no
9504        runpath_var=LD_RUN_PATH
9505        hardcode_runpath_var=yes
9506        ld_shlibs=yes
9507      fi
9508      ;;
9509
9510    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9511      no_undefined_flag='${wl}-z,text'
9512      archive_cmds_need_lc=no
9513      hardcode_shlibpath_var=no
9514      runpath_var='LD_RUN_PATH'
9515
9516      if test "$GCC" = yes; then
9517        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9518        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519      else
9520        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9521        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9522      fi
9523      ;;
9524
9525    sysv5* | sco3.2v5* | sco5v6*)
9526      # Note: We can NOT use -z defs as we might desire, because we do not
9527      # link with -lc, and that would cause any symbols used from libc to
9528      # always be unresolved, which means just about no library would
9529      # ever link correctly.  If we're not using GNU ld we use -z text
9530      # though, which does catch some bad symbols but isn't as heavy-handed
9531      # as -z defs.
9532      no_undefined_flag='${wl}-z,text'
9533      allow_undefined_flag='${wl}-z,nodefs'
9534      archive_cmds_need_lc=no
9535      hardcode_shlibpath_var=no
9536      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9537      hardcode_libdir_separator=':'
9538      link_all_deplibs=yes
9539      export_dynamic_flag_spec='${wl}-Bexport'
9540      runpath_var='LD_RUN_PATH'
9541
9542      if test "$GCC" = yes; then
9543        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9544        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9545      else
9546        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9547        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9548      fi
9549      ;;
9550
9551    uts4*)
9552      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9553      hardcode_libdir_flag_spec='-L$libdir'
9554      hardcode_shlibpath_var=no
9555      ;;
9556
9557    *)
9558      ld_shlibs=no
9559      ;;
9560    esac
9561  fi
9562
9563echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9564echo "${ECHO_T}$ld_shlibs" >&6
9565test "$ld_shlibs" = no && can_build_shared=no
9566
9567#
9568# Do we need to explicitly link libc?
9569#
9570case "x$archive_cmds_need_lc" in
9571x|xyes)
9572  # Assume -lc should be added
9573  archive_cmds_need_lc=yes
9574
9575  if test "$enable_shared" = yes && test "$GCC" = yes; then
9576    case $archive_cmds in
9577    *'~'*)
9578      # FIXME: we may have to deal with multi-command sequences.
9579      ;;
9580    '$CC '*)
9581      # Test whether the compiler implicitly links with -lc since on some
9582      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9583      # to ld, don't add -lc before -lgcc.
9584      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9585echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9586      $rm conftest*
9587      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9588
9589      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9590  (eval $ac_compile) 2>&5
9591  ac_status=$?
9592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593  (exit $ac_status); } 2>conftest.err; then
9594        soname=conftest
9595        lib=conftest
9596        libobjs=conftest.$ac_objext
9597        deplibs=
9598        wl=$lt_prog_compiler_wl
9599        pic_flag=$lt_prog_compiler_pic
9600        compiler_flags=-v
9601        linker_flags=-v
9602        verstring=
9603        output_objdir=.
9604        libname=conftest
9605        lt_save_allow_undefined_flag=$allow_undefined_flag
9606        allow_undefined_flag=
9607        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9608  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9609  ac_status=$?
9610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611  (exit $ac_status); }
9612        then
9613          archive_cmds_need_lc=no
9614        else
9615          archive_cmds_need_lc=yes
9616        fi
9617        allow_undefined_flag=$lt_save_allow_undefined_flag
9618      else
9619        cat conftest.err 1>&5
9620      fi
9621      $rm conftest*
9622      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9623echo "${ECHO_T}$archive_cmds_need_lc" >&6
9624      ;;
9625    esac
9626  fi
9627  ;;
9628esac
9629
9630echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9631echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9632library_names_spec=
9633libname_spec='lib$name'
9634soname_spec=
9635shrext_cmds=".so"
9636postinstall_cmds=
9637postuninstall_cmds=
9638finish_cmds=
9639finish_eval=
9640shlibpath_var=
9641shlibpath_overrides_runpath=unknown
9642version_type=none
9643dynamic_linker="$host_os ld.so"
9644sys_lib_dlsearch_path_spec="/lib /usr/lib"
9645if test "$GCC" = yes; then
9646  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9647  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9648    # if the path contains ";" then we assume it to be the separator
9649    # otherwise default to the standard path separator (i.e. ":") - it is
9650    # assumed that no part of a normal pathname contains ";" but that should
9651    # okay in the real world where ";" in dirpaths is itself problematic.
9652    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9653  else
9654    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9655  fi
9656else
9657  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9658fi
9659need_lib_prefix=unknown
9660hardcode_into_libs=no
9661
9662# when you set need_version to no, make sure it does not cause -set_version
9663# flags to be left without arguments
9664need_version=unknown
9665
9666case $host_os in
9667aix3*)
9668  version_type=linux
9669  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9670  shlibpath_var=LIBPATH
9671
9672  # AIX 3 has no versioning support, so we append a major version to the name.
9673  soname_spec='${libname}${release}${shared_ext}$major'
9674  ;;
9675
9676aix4* | aix5*)
9677  version_type=linux
9678  need_lib_prefix=no
9679  need_version=no
9680  hardcode_into_libs=yes
9681  if test "$host_cpu" = ia64; then
9682    # AIX 5 supports IA64
9683    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9684    shlibpath_var=LD_LIBRARY_PATH
9685  else
9686    # With GCC up to 2.95.x, collect2 would create an import file
9687    # for dependence libraries.  The import file would start with
9688    # the line `#! .'.  This would cause the generated library to
9689    # depend on `.', always an invalid library.  This was fixed in
9690    # development snapshots of GCC prior to 3.0.
9691    case $host_os in
9692      aix4 | aix4.[01] | aix4.[01].*)
9693      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9694           echo ' yes '
9695           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9696        :
9697      else
9698        can_build_shared=no
9699      fi
9700      ;;
9701    esac
9702    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9703    # soname into executable. Probably we can add versioning support to
9704    # collect2, so additional links can be useful in future.
9705    if test "$aix_use_runtimelinking" = yes; then
9706      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9707      # instead of lib<name>.a to let people know that these are not
9708      # typical AIX shared libraries.
9709      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710    else
9711      # We preserve .a as extension for shared libraries through AIX4.2
9712      # and later when we are not doing run time linking.
9713      library_names_spec='${libname}${release}.a $libname.a'
9714      soname_spec='${libname}${release}${shared_ext}$major'
9715    fi
9716    shlibpath_var=LIBPATH
9717  fi
9718  ;;
9719
9720amigaos*)
9721  library_names_spec='$libname.ixlibrary $libname.a'
9722  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9723  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'
9724  ;;
9725
9726beos*)
9727  library_names_spec='${libname}${shared_ext}'
9728  dynamic_linker="$host_os ld.so"
9729  shlibpath_var=LIBRARY_PATH
9730  ;;
9731
9732bsdi[45]*)
9733  version_type=linux
9734  need_version=no
9735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9736  soname_spec='${libname}${release}${shared_ext}$major'
9737  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9738  shlibpath_var=LD_LIBRARY_PATH
9739  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9740  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9741  # the default ld.so.conf also contains /usr/contrib/lib and
9742  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9743  # libtool to hard-code these into programs
9744  ;;
9745
9746cygwin* | mingw* | pw32*)
9747  version_type=windows
9748  shrext_cmds=".dll"
9749  need_version=no
9750  need_lib_prefix=no
9751
9752  case $GCC,$host_os in
9753  yes,cygwin* | yes,mingw* | yes,pw32*)
9754    library_names_spec='$libname.dll.a'
9755    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9756    postinstall_cmds='base_file=`basename \${file}`~
9757      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9758      dldir=$destdir/`dirname \$dlpath`~
9759      test -d \$dldir || mkdir -p \$dldir~
9760      $install_prog $dir/$dlname \$dldir/$dlname~
9761      chmod a+x \$dldir/$dlname'
9762    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9763      dlpath=$dir/\$dldll~
9764       $rm \$dlpath'
9765    shlibpath_overrides_runpath=yes
9766
9767    case $host_os in
9768    cygwin*)
9769      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9770      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9771      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9772      ;;
9773    mingw*)
9774      # MinGW DLLs use traditional 'lib' prefix
9775      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9776      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9777      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9778        # It is most probably a Windows format PATH printed by
9779        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9780        # path with ; separators, and with drive letters. We can handle the
9781        # drive letters (cygwin fileutils understands them), so leave them,
9782        # especially as we might pass files found there to a mingw objdump,
9783        # which wouldn't understand a cygwinified path. Ahh.
9784        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9785      else
9786        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9787      fi
9788      ;;
9789    pw32*)
9790      # pw32 DLLs use 'pw' prefix rather than 'lib'
9791      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9792      ;;
9793    esac
9794    ;;
9795
9796  *)
9797    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9798    ;;
9799  esac
9800  dynamic_linker='Win32 ld.exe'
9801  # FIXME: first we should search . and the directory the executable is in
9802  shlibpath_var=PATH
9803  ;;
9804
9805darwin* | rhapsody*)
9806  dynamic_linker="$host_os dyld"
9807  version_type=darwin
9808  need_lib_prefix=no
9809  need_version=no
9810  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9811  soname_spec='${libname}${release}${major}$shared_ext'
9812  shlibpath_overrides_runpath=yes
9813  shlibpath_var=DYLD_LIBRARY_PATH
9814  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9815  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9816  if test "$GCC" = yes; then
9817    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"`
9818  else
9819    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9820  fi
9821  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9822  ;;
9823
9824dgux*)
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  ;;
9832
9833freebsd1*)
9834  dynamic_linker=no
9835  ;;
9836
9837kfreebsd*-gnu)
9838  version_type=linux
9839  need_lib_prefix=no
9840  need_version=no
9841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9842  soname_spec='${libname}${release}${shared_ext}$major'
9843  shlibpath_var=LD_LIBRARY_PATH
9844  shlibpath_overrides_runpath=no
9845  hardcode_into_libs=yes
9846  dynamic_linker='GNU ld.so'
9847  ;;
9848
9849freebsd* | dragonfly*)
9850  # DragonFly does not have aout.  When/if they implement a new
9851  # versioning mechanism, adjust this.
9852  if test -x /usr/bin/objformat; then
9853    objformat=`/usr/bin/objformat`
9854  else
9855    case $host_os in
9856    freebsd[123]*) objformat=aout ;;
9857    *) objformat=elf ;;
9858    esac
9859  fi
9860  version_type=freebsd-$objformat
9861  case $version_type in
9862    freebsd-elf*)
9863      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9864      need_version=no
9865      need_lib_prefix=no
9866      ;;
9867    freebsd-*)
9868      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9869      need_version=yes
9870      ;;
9871  esac
9872  shlibpath_var=LD_LIBRARY_PATH
9873  case $host_os in
9874  freebsd2*)
9875    shlibpath_overrides_runpath=yes
9876    ;;
9877  freebsd3.[01]* | freebsdelf3.[01]*)
9878    shlibpath_overrides_runpath=yes
9879    hardcode_into_libs=yes
9880    ;;
9881  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9882  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9883    shlibpath_overrides_runpath=no
9884    hardcode_into_libs=yes
9885    ;;
9886  freebsd*) # from 4.6 on
9887    shlibpath_overrides_runpath=yes
9888    hardcode_into_libs=yes
9889    ;;
9890  esac
9891  ;;
9892
9893gnu*)
9894  version_type=linux
9895  need_lib_prefix=no
9896  need_version=no
9897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9898  soname_spec='${libname}${release}${shared_ext}$major'
9899  shlibpath_var=LD_LIBRARY_PATH
9900  hardcode_into_libs=yes
9901  ;;
9902
9903hpux9* | hpux10* | hpux11*)
9904  # Give a soname corresponding to the major version so that dld.sl refuses to
9905  # link against other versions.
9906  version_type=sunos
9907  need_lib_prefix=no
9908  need_version=no
9909  case $host_cpu in
9910  ia64*)
9911    shrext_cmds='.so'
9912    hardcode_into_libs=yes
9913    dynamic_linker="$host_os dld.so"
9914    shlibpath_var=LD_LIBRARY_PATH
9915    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9916    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9917    soname_spec='${libname}${release}${shared_ext}$major'
9918    if test "X$HPUX_IA64_MODE" = X32; then
9919      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9920    else
9921      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9922    fi
9923    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9924    ;;
9925   hppa*64*)
9926     shrext_cmds='.sl'
9927     hardcode_into_libs=yes
9928     dynamic_linker="$host_os dld.sl"
9929     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9930     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9931     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932     soname_spec='${libname}${release}${shared_ext}$major'
9933     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9934     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9935     ;;
9936   *)
9937    shrext_cmds='.sl'
9938    dynamic_linker="$host_os dld.sl"
9939    shlibpath_var=SHLIB_PATH
9940    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9941    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942    soname_spec='${libname}${release}${shared_ext}$major'
9943    ;;
9944  esac
9945  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9946  postinstall_cmds='chmod 555 $lib'
9947  ;;
9948
9949interix3*)
9950  version_type=linux
9951  need_lib_prefix=no
9952  need_version=no
9953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9954  soname_spec='${libname}${release}${shared_ext}$major'
9955  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9956  shlibpath_var=LD_LIBRARY_PATH
9957  shlibpath_overrides_runpath=no
9958  hardcode_into_libs=yes
9959  ;;
9960
9961irix5* | irix6* | nonstopux*)
9962  case $host_os in
9963    nonstopux*) version_type=nonstopux ;;
9964    *)
9965        if test "$lt_cv_prog_gnu_ld" = yes; then
9966                version_type=linux
9967        else
9968                version_type=irix
9969        fi ;;
9970  esac
9971  need_lib_prefix=no
9972  need_version=no
9973  soname_spec='${libname}${release}${shared_ext}$major'
9974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9975  case $host_os in
9976  irix5* | nonstopux*)
9977    libsuff= shlibsuff=
9978    ;;
9979  *)
9980    case $LD in # libtool.m4 will add one of these switches to LD
9981    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9982      libsuff= shlibsuff= libmagic=32-bit;;
9983    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9984      libsuff=32 shlibsuff=N32 libmagic=N32;;
9985    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9986      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9987    *) libsuff= shlibsuff= libmagic=never-match;;
9988    esac
9989    ;;
9990  esac
9991  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9992  shlibpath_overrides_runpath=no
9993  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9994  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9995  hardcode_into_libs=yes
9996  ;;
9997
9998# No shared lib support for Linux oldld, aout, or coff.
9999linux*oldld* | linux*aout* | linux*coff*)
10000  dynamic_linker=no
10001  ;;
10002
10003# This must be Linux ELF.
10004linux*)
10005  version_type=linux
10006  need_lib_prefix=no
10007  need_version=no
10008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009  soname_spec='${libname}${release}${shared_ext}$major'
10010  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10011  shlibpath_var=LD_LIBRARY_PATH
10012  shlibpath_overrides_runpath=no
10013  # This implies no fast_install, which is unacceptable.
10014  # Some rework will be needed to allow for fast_install
10015  # before this can be enabled.
10016  hardcode_into_libs=yes
10017
10018  # Append ld.so.conf contents to the search path
10019  if test -f /etc/ld.so.conf; then
10020    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' ' '`
10021    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10022  fi
10023
10024  # We used to test for /lib/ld.so.1 and disable shared libraries on
10025  # powerpc, because MkLinux only supported shared libraries with the
10026  # GNU dynamic linker.  Since this was broken with cross compilers,
10027  # most powerpc-linux boxes support dynamic linking these days and
10028  # people can always --disable-shared, the test was removed, and we
10029  # assume the GNU/Linux dynamic linker is in use.
10030  dynamic_linker='GNU/Linux ld.so'
10031  ;;
10032
10033knetbsd*-gnu)
10034  version_type=linux
10035  need_lib_prefix=no
10036  need_version=no
10037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10038  soname_spec='${libname}${release}${shared_ext}$major'
10039  shlibpath_var=LD_LIBRARY_PATH
10040  shlibpath_overrides_runpath=no
10041  hardcode_into_libs=yes
10042  dynamic_linker='GNU ld.so'
10043  ;;
10044
10045netbsd*)
10046  version_type=sunos
10047  need_lib_prefix=no
10048  need_version=no
10049  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10050    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10051    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10052    dynamic_linker='NetBSD (a.out) ld.so'
10053  else
10054    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10055    soname_spec='${libname}${release}${shared_ext}$major'
10056    dynamic_linker='NetBSD ld.elf_so'
10057  fi
10058  shlibpath_var=LD_LIBRARY_PATH
10059  shlibpath_overrides_runpath=yes
10060  hardcode_into_libs=yes
10061  ;;
10062
10063newsos6)
10064  version_type=linux
10065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066  shlibpath_var=LD_LIBRARY_PATH
10067  shlibpath_overrides_runpath=yes
10068  ;;
10069
10070nto-qnx*)
10071  version_type=linux
10072  need_lib_prefix=no
10073  need_version=no
10074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075  soname_spec='${libname}${release}${shared_ext}$major'
10076  shlibpath_var=LD_LIBRARY_PATH
10077  shlibpath_overrides_runpath=yes
10078  ;;
10079
10080openbsd*)
10081  version_type=sunos
10082  sys_lib_dlsearch_path_spec="/usr/lib"
10083  need_lib_prefix=no
10084  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10085  case $host_os in
10086    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10087    *)                         need_version=no  ;;
10088  esac
10089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10090  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10091  shlibpath_var=LD_LIBRARY_PATH
10092  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10093    case $host_os in
10094      openbsd2.[89] | openbsd2.[89].*)
10095        shlibpath_overrides_runpath=no
10096        ;;
10097      *)
10098        shlibpath_overrides_runpath=yes
10099        ;;
10100      esac
10101  else
10102    shlibpath_overrides_runpath=yes
10103  fi
10104  ;;
10105
10106os2*)
10107  libname_spec='$name'
10108  shrext_cmds=".dll"
10109  need_lib_prefix=no
10110  library_names_spec='$libname${shared_ext} $libname.a'
10111  dynamic_linker='OS/2 ld.exe'
10112  shlibpath_var=LIBPATH
10113  ;;
10114
10115osf3* | osf4* | osf5*)
10116  version_type=osf
10117  need_lib_prefix=no
10118  need_version=no
10119  soname_spec='${libname}${release}${shared_ext}$major'
10120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10121  shlibpath_var=LD_LIBRARY_PATH
10122  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10123  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10124  ;;
10125
10126solaris*)
10127  version_type=linux
10128  need_lib_prefix=no
10129  need_version=no
10130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131  soname_spec='${libname}${release}${shared_ext}$major'
10132  shlibpath_var=LD_LIBRARY_PATH
10133  shlibpath_overrides_runpath=yes
10134  hardcode_into_libs=yes
10135  # ldd complains unless libraries are executable
10136  postinstall_cmds='chmod +x $lib'
10137  ;;
10138
10139sunos4*)
10140  version_type=sunos
10141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10142  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10143  shlibpath_var=LD_LIBRARY_PATH
10144  shlibpath_overrides_runpath=yes
10145  if test "$with_gnu_ld" = yes; then
10146    need_lib_prefix=no
10147  fi
10148  need_version=yes
10149  ;;
10150
10151sysv4 | sysv4.3*)
10152  version_type=linux
10153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154  soname_spec='${libname}${release}${shared_ext}$major'
10155  shlibpath_var=LD_LIBRARY_PATH
10156  case $host_vendor in
10157    sni)
10158      shlibpath_overrides_runpath=no
10159      need_lib_prefix=no
10160      export_dynamic_flag_spec='${wl}-Blargedynsym'
10161      runpath_var=LD_RUN_PATH
10162      ;;
10163    siemens)
10164      need_lib_prefix=no
10165      ;;
10166    motorola)
10167      need_lib_prefix=no
10168      need_version=no
10169      shlibpath_overrides_runpath=no
10170      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10171      ;;
10172  esac
10173  ;;
10174
10175sysv4*MP*)
10176  if test -d /usr/nec ;then
10177    version_type=linux
10178    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10179    soname_spec='$libname${shared_ext}.$major'
10180    shlibpath_var=LD_LIBRARY_PATH
10181  fi
10182  ;;
10183
10184sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10185  version_type=freebsd-elf
10186  need_lib_prefix=no
10187  need_version=no
10188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10189  soname_spec='${libname}${release}${shared_ext}$major'
10190  shlibpath_var=LD_LIBRARY_PATH
10191  hardcode_into_libs=yes
10192  if test "$with_gnu_ld" = yes; then
10193    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10194    shlibpath_overrides_runpath=no
10195  else
10196    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10197    shlibpath_overrides_runpath=yes
10198    case $host_os in
10199      sco3.2v5*)
10200        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10201        ;;
10202    esac
10203  fi
10204  sys_lib_dlsearch_path_spec='/usr/lib'
10205  ;;
10206
10207uts4*)
10208  version_type=linux
10209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210  soname_spec='${libname}${release}${shared_ext}$major'
10211  shlibpath_var=LD_LIBRARY_PATH
10212  ;;
10213
10214*)
10215  dynamic_linker=no
10216  ;;
10217esac
10218echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10219echo "${ECHO_T}$dynamic_linker" >&6
10220test "$dynamic_linker" = no && can_build_shared=no
10221
10222variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10223if test "$GCC" = yes; then
10224  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10225fi
10226
10227echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10228echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10229hardcode_action=
10230if test -n "$hardcode_libdir_flag_spec" || \
10231   test -n "$runpath_var" || \
10232   test "X$hardcode_automatic" = "Xyes" ; then
10233
10234  # We can hardcode non-existant directories.
10235  if test "$hardcode_direct" != no &&
10236     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10237     # have to relink, otherwise we might link with an installed library
10238     # when we should be linking with a yet-to-be-installed one
10239     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10240     test "$hardcode_minus_L" != no; then
10241    # Linking always hardcodes the temporary library directory.
10242    hardcode_action=relink
10243  else
10244    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10245    hardcode_action=immediate
10246  fi
10247else
10248  # We cannot hardcode anything, or else we can only hardcode existing
10249  # directories.
10250  hardcode_action=unsupported
10251fi
10252echo "$as_me:$LINENO: result: $hardcode_action" >&5
10253echo "${ECHO_T}$hardcode_action" >&6
10254
10255if test "$hardcode_action" = relink; then
10256  # Fast installation is not supported
10257  enable_fast_install=no
10258elif test "$shlibpath_overrides_runpath" = yes ||
10259     test "$enable_shared" = no; then
10260  # Fast installation is not necessary
10261  enable_fast_install=needless
10262fi
10263
10264striplib=
10265old_striplib=
10266echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10267echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10268if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10269  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10270  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10271  echo "$as_me:$LINENO: result: yes" >&5
10272echo "${ECHO_T}yes" >&6
10273else
10274# FIXME - insert some real tests, host_os isn't really good enough
10275  case $host_os in
10276   darwin*)
10277       if test -n "$STRIP" ; then
10278         striplib="$STRIP -x"
10279         echo "$as_me:$LINENO: result: yes" >&5
10280echo "${ECHO_T}yes" >&6
10281       else
10282  echo "$as_me:$LINENO: result: no" >&5
10283echo "${ECHO_T}no" >&6
10284fi
10285       ;;
10286   *)
10287  echo "$as_me:$LINENO: result: no" >&5
10288echo "${ECHO_T}no" >&6
10289    ;;
10290  esac
10291fi
10292
10293if test "x$enable_dlopen" != xyes; then
10294  enable_dlopen=unknown
10295  enable_dlopen_self=unknown
10296  enable_dlopen_self_static=unknown
10297else
10298  lt_cv_dlopen=no
10299  lt_cv_dlopen_libs=
10300
10301  case $host_os in
10302  beos*)
10303    lt_cv_dlopen="load_add_on"
10304    lt_cv_dlopen_libs=
10305    lt_cv_dlopen_self=yes
10306    ;;
10307
10308  mingw* | pw32*)
10309    lt_cv_dlopen="LoadLibrary"
10310    lt_cv_dlopen_libs=
10311   ;;
10312
10313  cygwin*)
10314    lt_cv_dlopen="dlopen"
10315    lt_cv_dlopen_libs=
10316   ;;
10317
10318  darwin*)
10319  # if libdl is installed we need to link against it
10320    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10321echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10322if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10323  echo $ECHO_N "(cached) $ECHO_C" >&6
10324else
10325  ac_check_lib_save_LIBS=$LIBS
10326LIBS="-ldl  $LIBS"
10327cat >conftest.$ac_ext <<_ACEOF
10328/* confdefs.h.  */
10329_ACEOF
10330cat confdefs.h >>conftest.$ac_ext
10331cat >>conftest.$ac_ext <<_ACEOF
10332/* end confdefs.h.  */
10333
10334/* Override any gcc2 internal prototype to avoid an error.  */
10335#ifdef __cplusplus
10336extern "C"
10337#endif
10338/* We use char because int might match the return type of a gcc2
10339   builtin and then its argument prototype would still apply.  */
10340char dlopen ();
10341int
10342main ()
10343{
10344dlopen ();
10345  ;
10346  return 0;
10347}
10348_ACEOF
10349rm -f conftest.$ac_objext conftest$ac_exeext
10350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351  (eval $ac_link) 2>conftest.er1
10352  ac_status=$?
10353  grep -v '^ *+' conftest.er1 >conftest.err
10354  rm -f conftest.er1
10355  cat conftest.err >&5
10356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357  (exit $ac_status); } &&
10358         { ac_try='test -z "$ac_c_werror_flag"
10359                         || test ! -s conftest.err'
10360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361  (eval $ac_try) 2>&5
10362  ac_status=$?
10363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364  (exit $ac_status); }; } &&
10365         { ac_try='test -s conftest$ac_exeext'
10366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367  (eval $ac_try) 2>&5
10368  ac_status=$?
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); }; }; then
10371  ac_cv_lib_dl_dlopen=yes
10372else
10373  echo "$as_me: failed program was:" >&5
10374sed 's/^/| /' conftest.$ac_ext >&5
10375
10376ac_cv_lib_dl_dlopen=no
10377fi
10378rm -f conftest.err conftest.$ac_objext \
10379      conftest$ac_exeext conftest.$ac_ext
10380LIBS=$ac_check_lib_save_LIBS
10381fi
10382echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10383echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10384if test $ac_cv_lib_dl_dlopen = yes; then
10385  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10386else
10387
10388    lt_cv_dlopen="dyld"
10389    lt_cv_dlopen_libs=
10390    lt_cv_dlopen_self=yes
10391
10392fi
10393
10394   ;;
10395
10396  *)
10397    echo "$as_me:$LINENO: checking for shl_load" >&5
10398echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10399if test "${ac_cv_func_shl_load+set}" = set; then
10400  echo $ECHO_N "(cached) $ECHO_C" >&6
10401else
10402  cat >conftest.$ac_ext <<_ACEOF
10403/* confdefs.h.  */
10404_ACEOF
10405cat confdefs.h >>conftest.$ac_ext
10406cat >>conftest.$ac_ext <<_ACEOF
10407/* end confdefs.h.  */
10408/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10409   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10410#define shl_load innocuous_shl_load
10411
10412/* System header to define __stub macros and hopefully few prototypes,
10413    which can conflict with char shl_load (); below.
10414    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10415    <limits.h> exists even on freestanding compilers.  */
10416
10417#ifdef __STDC__
10418# include <limits.h>
10419#else
10420# include <assert.h>
10421#endif
10422
10423#undef shl_load
10424
10425/* Override any gcc2 internal prototype to avoid an error.  */
10426#ifdef __cplusplus
10427extern "C"
10428{
10429#endif
10430/* We use char because int might match the return type of a gcc2
10431   builtin and then its argument prototype would still apply.  */
10432char shl_load ();
10433/* The GNU C library defines this for functions which it implements
10434    to always fail with ENOSYS.  Some functions are actually named
10435    something starting with __ and the normal name is an alias.  */
10436#if defined (__stub_shl_load) || defined (__stub___shl_load)
10437choke me
10438#else
10439char (*f) () = shl_load;
10440#endif
10441#ifdef __cplusplus
10442}
10443#endif
10444
10445int
10446main ()
10447{
10448return f != shl_load;
10449  ;
10450  return 0;
10451}
10452_ACEOF
10453rm -f conftest.$ac_objext conftest$ac_exeext
10454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10455  (eval $ac_link) 2>conftest.er1
10456  ac_status=$?
10457  grep -v '^ *+' conftest.er1 >conftest.err
10458  rm -f conftest.er1
10459  cat conftest.err >&5
10460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461  (exit $ac_status); } &&
10462         { ac_try='test -z "$ac_c_werror_flag"
10463                         || test ! -s conftest.err'
10464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10465  (eval $ac_try) 2>&5
10466  ac_status=$?
10467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468  (exit $ac_status); }; } &&
10469         { ac_try='test -s conftest$ac_exeext'
10470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471  (eval $ac_try) 2>&5
10472  ac_status=$?
10473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); }; }; then
10475  ac_cv_func_shl_load=yes
10476else
10477  echo "$as_me: failed program was:" >&5
10478sed 's/^/| /' conftest.$ac_ext >&5
10479
10480ac_cv_func_shl_load=no
10481fi
10482rm -f conftest.err conftest.$ac_objext \
10483      conftest$ac_exeext conftest.$ac_ext
10484fi
10485echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10486echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10487if test $ac_cv_func_shl_load = yes; then
10488  lt_cv_dlopen="shl_load"
10489else
10490  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10491echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10492if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10493  echo $ECHO_N "(cached) $ECHO_C" >&6
10494else
10495  ac_check_lib_save_LIBS=$LIBS
10496LIBS="-ldld  $LIBS"
10497cat >conftest.$ac_ext <<_ACEOF
10498/* confdefs.h.  */
10499_ACEOF
10500cat confdefs.h >>conftest.$ac_ext
10501cat >>conftest.$ac_ext <<_ACEOF
10502/* end confdefs.h.  */
10503
10504/* Override any gcc2 internal prototype to avoid an error.  */
10505#ifdef __cplusplus
10506extern "C"
10507#endif
10508/* We use char because int might match the return type of a gcc2
10509   builtin and then its argument prototype would still apply.  */
10510char shl_load ();
10511int
10512main ()
10513{
10514shl_load ();
10515  ;
10516  return 0;
10517}
10518_ACEOF
10519rm -f conftest.$ac_objext conftest$ac_exeext
10520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10521  (eval $ac_link) 2>conftest.er1
10522  ac_status=$?
10523  grep -v '^ *+' conftest.er1 >conftest.err
10524  rm -f conftest.er1
10525  cat conftest.err >&5
10526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527  (exit $ac_status); } &&
10528         { ac_try='test -z "$ac_c_werror_flag"
10529                         || test ! -s conftest.err'
10530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531  (eval $ac_try) 2>&5
10532  ac_status=$?
10533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534  (exit $ac_status); }; } &&
10535         { ac_try='test -s conftest$ac_exeext'
10536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537  (eval $ac_try) 2>&5
10538  ac_status=$?
10539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540  (exit $ac_status); }; }; then
10541  ac_cv_lib_dld_shl_load=yes
10542else
10543  echo "$as_me: failed program was:" >&5
10544sed 's/^/| /' conftest.$ac_ext >&5
10545
10546ac_cv_lib_dld_shl_load=no
10547fi
10548rm -f conftest.err conftest.$ac_objext \
10549      conftest$ac_exeext conftest.$ac_ext
10550LIBS=$ac_check_lib_save_LIBS
10551fi
10552echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10553echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10554if test $ac_cv_lib_dld_shl_load = yes; then
10555  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10556else
10557  echo "$as_me:$LINENO: checking for dlopen" >&5
10558echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10559if test "${ac_cv_func_dlopen+set}" = set; then
10560  echo $ECHO_N "(cached) $ECHO_C" >&6
10561else
10562  cat >conftest.$ac_ext <<_ACEOF
10563/* confdefs.h.  */
10564_ACEOF
10565cat confdefs.h >>conftest.$ac_ext
10566cat >>conftest.$ac_ext <<_ACEOF
10567/* end confdefs.h.  */
10568/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10569   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10570#define dlopen innocuous_dlopen
10571
10572/* System header to define __stub macros and hopefully few prototypes,
10573    which can conflict with char dlopen (); below.
10574    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10575    <limits.h> exists even on freestanding compilers.  */
10576
10577#ifdef __STDC__
10578# include <limits.h>
10579#else
10580# include <assert.h>
10581#endif
10582
10583#undef dlopen
10584
10585/* Override any gcc2 internal prototype to avoid an error.  */
10586#ifdef __cplusplus
10587extern "C"
10588{
10589#endif
10590/* We use char because int might match the return type of a gcc2
10591   builtin and then its argument prototype would still apply.  */
10592char dlopen ();
10593/* The GNU C library defines this for functions which it implements
10594    to always fail with ENOSYS.  Some functions are actually named
10595    something starting with __ and the normal name is an alias.  */
10596#if defined (__stub_dlopen) || defined (__stub___dlopen)
10597choke me
10598#else
10599char (*f) () = dlopen;
10600#endif
10601#ifdef __cplusplus
10602}
10603#endif
10604
10605int
10606main ()
10607{
10608return f != dlopen;
10609  ;
10610  return 0;
10611}
10612_ACEOF
10613rm -f conftest.$ac_objext conftest$ac_exeext
10614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10615  (eval $ac_link) 2>conftest.er1
10616  ac_status=$?
10617  grep -v '^ *+' conftest.er1 >conftest.err
10618  rm -f conftest.er1
10619  cat conftest.err >&5
10620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621  (exit $ac_status); } &&
10622         { ac_try='test -z "$ac_c_werror_flag"
10623                         || test ! -s conftest.err'
10624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625  (eval $ac_try) 2>&5
10626  ac_status=$?
10627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628  (exit $ac_status); }; } &&
10629         { ac_try='test -s conftest$ac_exeext'
10630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10631  (eval $ac_try) 2>&5
10632  ac_status=$?
10633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634  (exit $ac_status); }; }; then
10635  ac_cv_func_dlopen=yes
10636else
10637  echo "$as_me: failed program was:" >&5
10638sed 's/^/| /' conftest.$ac_ext >&5
10639
10640ac_cv_func_dlopen=no
10641fi
10642rm -f conftest.err conftest.$ac_objext \
10643      conftest$ac_exeext conftest.$ac_ext
10644fi
10645echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10646echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10647if test $ac_cv_func_dlopen = yes; then
10648  lt_cv_dlopen="dlopen"
10649else
10650  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10651echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10652if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10653  echo $ECHO_N "(cached) $ECHO_C" >&6
10654else
10655  ac_check_lib_save_LIBS=$LIBS
10656LIBS="-ldl  $LIBS"
10657cat >conftest.$ac_ext <<_ACEOF
10658/* confdefs.h.  */
10659_ACEOF
10660cat confdefs.h >>conftest.$ac_ext
10661cat >>conftest.$ac_ext <<_ACEOF
10662/* end confdefs.h.  */
10663
10664/* Override any gcc2 internal prototype to avoid an error.  */
10665#ifdef __cplusplus
10666extern "C"
10667#endif
10668/* We use char because int might match the return type of a gcc2
10669   builtin and then its argument prototype would still apply.  */
10670char dlopen ();
10671int
10672main ()
10673{
10674dlopen ();
10675  ;
10676  return 0;
10677}
10678_ACEOF
10679rm -f conftest.$ac_objext conftest$ac_exeext
10680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10681  (eval $ac_link) 2>conftest.er1
10682  ac_status=$?
10683  grep -v '^ *+' conftest.er1 >conftest.err
10684  rm -f conftest.er1
10685  cat conftest.err >&5
10686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687  (exit $ac_status); } &&
10688         { ac_try='test -z "$ac_c_werror_flag"
10689                         || test ! -s conftest.err'
10690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691  (eval $ac_try) 2>&5
10692  ac_status=$?
10693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694  (exit $ac_status); }; } &&
10695         { ac_try='test -s conftest$ac_exeext'
10696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697  (eval $ac_try) 2>&5
10698  ac_status=$?
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); }; }; then
10701  ac_cv_lib_dl_dlopen=yes
10702else
10703  echo "$as_me: failed program was:" >&5
10704sed 's/^/| /' conftest.$ac_ext >&5
10705
10706ac_cv_lib_dl_dlopen=no
10707fi
10708rm -f conftest.err conftest.$ac_objext \
10709      conftest$ac_exeext conftest.$ac_ext
10710LIBS=$ac_check_lib_save_LIBS
10711fi
10712echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10713echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10714if test $ac_cv_lib_dl_dlopen = yes; then
10715  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10716else
10717  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10718echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10719if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10720  echo $ECHO_N "(cached) $ECHO_C" >&6
10721else
10722  ac_check_lib_save_LIBS=$LIBS
10723LIBS="-lsvld  $LIBS"
10724cat >conftest.$ac_ext <<_ACEOF
10725/* confdefs.h.  */
10726_ACEOF
10727cat confdefs.h >>conftest.$ac_ext
10728cat >>conftest.$ac_ext <<_ACEOF
10729/* end confdefs.h.  */
10730
10731/* Override any gcc2 internal prototype to avoid an error.  */
10732#ifdef __cplusplus
10733extern "C"