source: stable/1.15/configure @ 1981

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

temporarily committing release candidate

  • Property svn:executable set to *
File size: 773.3 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp 1.15.3.
5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='1.15.3'
434PACKAGE_STRING='Clp 1.15.3'
435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
481ac_subdirs_all="$ac_subdirs_all Data/Sample"
482ac_subdirs_all="$ac_subdirs_all Data/Netlib"
483ac_subdirs_all="$ac_subdirs_all CoinUtils"
484ac_subdirs_all="$ac_subdirs_all Osi"
485ac_subdirs_all="$ac_subdirs_all Clp"
486ac_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 CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 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 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
487ac_subst_files=''
488
489# Initialize some variables set by options.
490ac_init_help=
491ac_init_version=false
492# The variables have the same names as the options, with
493# dashes changed to underlines.
494cache_file=/dev/null
495exec_prefix=NONE
496no_create=
497no_recursion=
498prefix=NONE
499program_prefix=NONE
500program_suffix=NONE
501program_transform_name=s,x,x,
502silent=
503site=
504srcdir=
505verbose=
506x_includes=NONE
507x_libraries=NONE
508
509# Installation directory options.
510# These are left unexpanded so users can "make install exec_prefix=/foo"
511# and all the variables that are supposed to be based on exec_prefix
512# by default will actually change.
513# Use braces instead of parens because sh, perl, etc. also accept them.
514bindir='${exec_prefix}/bin'
515sbindir='${exec_prefix}/sbin'
516libexecdir='${exec_prefix}/libexec'
517datadir='${prefix}/share'
518sysconfdir='${prefix}/etc'
519sharedstatedir='${prefix}/com'
520localstatedir='${prefix}/var'
521libdir='${exec_prefix}/lib'
522includedir='${prefix}/include'
523oldincludedir='/usr/include'
524infodir='${prefix}/info'
525mandir='${prefix}/man'
526
527ac_prev=
528for ac_option
529do
530  # If the previous option needs an argument, assign it.
531  if test -n "$ac_prev"; then
532    eval "$ac_prev=\$ac_option"
533    ac_prev=
534    continue
535  fi
536
537  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
538
539  # Accept the important Cygnus configure options, so we can diagnose typos.
540
541  case $ac_option in
542
543  -bindir | --bindir | --bindi | --bind | --bin | --bi)
544    ac_prev=bindir ;;
545  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
546    bindir=$ac_optarg ;;
547
548  -build | --build | --buil | --bui | --bu)
549    ac_prev=build_alias ;;
550  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
551    build_alias=$ac_optarg ;;
552
553  -cache-file | --cache-file | --cache-fil | --cache-fi \
554  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
555    ac_prev=cache_file ;;
556  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
557  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
558    cache_file=$ac_optarg ;;
559
560  --config-cache | -C)
561    cache_file=config.cache ;;
562
563  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
564    ac_prev=datadir ;;
565  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
566  | --da=*)
567    datadir=$ac_optarg ;;
568
569  -disable-* | --disable-*)
570    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
571    # Reject names that are not valid shell variable names.
572    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574   { (exit 1); exit 1; }; }
575    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576    eval "enable_$ac_feature=no" ;;
577
578  -enable-* | --enable-*)
579    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
580    # Reject names that are not valid shell variable names.
581    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
582      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
583   { (exit 1); exit 1; }; }
584    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
585    case $ac_option in
586      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587      *) ac_optarg=yes ;;
588    esac
589    eval "enable_$ac_feature='$ac_optarg'" ;;
590
591  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
592  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
593  | --exec | --exe | --ex)
594    ac_prev=exec_prefix ;;
595  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
596  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
597  | --exec=* | --exe=* | --ex=*)
598    exec_prefix=$ac_optarg ;;
599
600  -gas | --gas | --ga | --g)
601    # Obsolete; use --with-gas.
602    with_gas=yes ;;
603
604  -help | --help | --hel | --he | -h)
605    ac_init_help=long ;;
606  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
607    ac_init_help=recursive ;;
608  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
609    ac_init_help=short ;;
610
611  -host | --host | --hos | --ho)
612    ac_prev=host_alias ;;
613  -host=* | --host=* | --hos=* | --ho=*)
614    host_alias=$ac_optarg ;;
615
616  -includedir | --includedir | --includedi | --included | --include \
617  | --includ | --inclu | --incl | --inc)
618    ac_prev=includedir ;;
619  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
620  | --includ=* | --inclu=* | --incl=* | --inc=*)
621    includedir=$ac_optarg ;;
622
623  -infodir | --infodir | --infodi | --infod | --info | --inf)
624    ac_prev=infodir ;;
625  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
626    infodir=$ac_optarg ;;
627
628  -libdir | --libdir | --libdi | --libd)
629    ac_prev=libdir ;;
630  -libdir=* | --libdir=* | --libdi=* | --libd=*)
631    libdir=$ac_optarg ;;
632
633  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
634  | --libexe | --libex | --libe)
635    ac_prev=libexecdir ;;
636  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
637  | --libexe=* | --libex=* | --libe=*)
638    libexecdir=$ac_optarg ;;
639
640  -localstatedir | --localstatedir | --localstatedi | --localstated \
641  | --localstate | --localstat | --localsta | --localst \
642  | --locals | --local | --loca | --loc | --lo)
643    ac_prev=localstatedir ;;
644  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
645  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
646  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
647    localstatedir=$ac_optarg ;;
648
649  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
650    ac_prev=mandir ;;
651  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
652    mandir=$ac_optarg ;;
653
654  -nfp | --nfp | --nf)
655    # Obsolete; use --without-fp.
656    with_fp=no ;;
657
658  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
659  | --no-cr | --no-c | -n)
660    no_create=yes ;;
661
662  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
663  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
664    no_recursion=yes ;;
665
666  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
667  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
668  | --oldin | --oldi | --old | --ol | --o)
669    ac_prev=oldincludedir ;;
670  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
671  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
672  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
673    oldincludedir=$ac_optarg ;;
674
675  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
676    ac_prev=prefix ;;
677  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
678    prefix=$ac_optarg ;;
679
680  -program-prefix | --program-prefix | --program-prefi | --program-pref \
681  | --program-pre | --program-pr | --program-p)
682    ac_prev=program_prefix ;;
683  -program-prefix=* | --program-prefix=* | --program-prefi=* \
684  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
685    program_prefix=$ac_optarg ;;
686
687  -program-suffix | --program-suffix | --program-suffi | --program-suff \
688  | --program-suf | --program-su | --program-s)
689    ac_prev=program_suffix ;;
690  -program-suffix=* | --program-suffix=* | --program-suffi=* \
691  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
692    program_suffix=$ac_optarg ;;
693
694  -program-transform-name | --program-transform-name \
695  | --program-transform-nam | --program-transform-na \
696  | --program-transform-n | --program-transform- \
697  | --program-transform | --program-transfor \
698  | --program-transfo | --program-transf \
699  | --program-trans | --program-tran \
700  | --progr-tra | --program-tr | --program-t)
701    ac_prev=program_transform_name ;;
702  -program-transform-name=* | --program-transform-name=* \
703  | --program-transform-nam=* | --program-transform-na=* \
704  | --program-transform-n=* | --program-transform-=* \
705  | --program-transform=* | --program-transfor=* \
706  | --program-transfo=* | --program-transf=* \
707  | --program-trans=* | --program-tran=* \
708  | --progr-tra=* | --program-tr=* | --program-t=*)
709    program_transform_name=$ac_optarg ;;
710
711  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
712  | -silent | --silent | --silen | --sile | --sil)
713    silent=yes ;;
714
715  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
716    ac_prev=sbindir ;;
717  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
718  | --sbi=* | --sb=*)
719    sbindir=$ac_optarg ;;
720
721  -sharedstatedir | --sharedstatedir | --sharedstatedi \
722  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
723  | --sharedst | --shareds | --shared | --share | --shar \
724  | --sha | --sh)
725    ac_prev=sharedstatedir ;;
726  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
727  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
728  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
729  | --sha=* | --sh=*)
730    sharedstatedir=$ac_optarg ;;
731
732  -site | --site | --sit)
733    ac_prev=site ;;
734  -site=* | --site=* | --sit=*)
735    site=$ac_optarg ;;
736
737  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
738    ac_prev=srcdir ;;
739  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
740    srcdir=$ac_optarg ;;
741
742  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
743  | --syscon | --sysco | --sysc | --sys | --sy)
744    ac_prev=sysconfdir ;;
745  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
746  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
747    sysconfdir=$ac_optarg ;;
748
749  -target | --target | --targe | --targ | --tar | --ta | --t)
750    ac_prev=target_alias ;;
751  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
752    target_alias=$ac_optarg ;;
753
754  -v | -verbose | --verbose | --verbos | --verbo | --verb)
755    verbose=yes ;;
756
757  -version | --version | --versio | --versi | --vers | -V)
758    ac_init_version=: ;;
759
760  -with-* | --with-*)
761    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
762    # Reject names that are not valid shell variable names.
763    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764      { echo "$as_me: error: invalid package name: $ac_package" >&2
765   { (exit 1); exit 1; }; }
766    ac_package=`echo $ac_package| sed 's/-/_/g'`
767    case $ac_option in
768      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
769      *) ac_optarg=yes ;;
770    esac
771    eval "with_$ac_package='$ac_optarg'" ;;
772
773  -without-* | --without-*)
774    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
775    # Reject names that are not valid shell variable names.
776    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
777      { echo "$as_me: error: invalid package name: $ac_package" >&2
778   { (exit 1); exit 1; }; }
779    ac_package=`echo $ac_package | sed 's/-/_/g'`
780    eval "with_$ac_package=no" ;;
781
782  --x)
783    # Obsolete; use --with-x.
784    with_x=yes ;;
785
786  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
787  | --x-incl | --x-inc | --x-in | --x-i)
788    ac_prev=x_includes ;;
789  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
790  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
791    x_includes=$ac_optarg ;;
792
793  -x-libraries | --x-libraries | --x-librarie | --x-librari \
794  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
795    ac_prev=x_libraries ;;
796  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
797  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
798    x_libraries=$ac_optarg ;;
799
800  -*) { echo "$as_me: error: unrecognized option: $ac_option
801Try \`$0 --help' for more information." >&2
802   { (exit 1); exit 1; }; }
803    ;;
804
805  *=*)
806    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
807    # Reject names that are not valid shell variable names.
808    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
809      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
810   { (exit 1); exit 1; }; }
811    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
812    eval "$ac_envvar='$ac_optarg'"
813    export $ac_envvar ;;
814
815  *)
816    # FIXME: should be removed in autoconf 3.0.
817    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
818    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
820    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
821    ;;
822
823  esac
824done
825
826if test -n "$ac_prev"; then
827  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
828  { echo "$as_me: error: missing argument to $ac_option" >&2
829   { (exit 1); exit 1; }; }
830fi
831
832# Be sure to have absolute paths.
833for ac_var in exec_prefix prefix
834do
835  eval ac_val=$`echo $ac_var`
836  case $ac_val in
837    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
838    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
839   { (exit 1); exit 1; }; };;
840  esac
841done
842
843# Be sure to have absolute paths.
844for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
845              localstatedir libdir includedir oldincludedir infodir mandir
846do
847  eval ac_val=$`echo $ac_var`
848  case $ac_val in
849    [\\/$]* | ?:[\\/]* ) ;;
850    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
851   { (exit 1); exit 1; }; };;
852  esac
853done
854
855# There might be people who depend on the old broken behavior: `$host'
856# used to hold the argument of --host etc.
857# FIXME: To remove some day.
858build=$build_alias
859host=$host_alias
860target=$target_alias
861
862# FIXME: To remove some day.
863if test "x$host_alias" != x; then
864  if test "x$build_alias" = x; then
865    cross_compiling=maybe
866    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
867    If a cross compiler is detected then cross compile mode will be used." >&2
868  elif test "x$build_alias" != "x$host_alias"; then
869    cross_compiling=yes
870  fi
871fi
872
873ac_tool_prefix=
874test -n "$host_alias" && ac_tool_prefix=$host_alias-
875
876test "$silent" = yes && exec 6>/dev/null
877
878
879# Find the source files, if location was not specified.
880if test -z "$srcdir"; then
881  ac_srcdir_defaulted=yes
882  # Try the directory containing this script, then its parent.
883  ac_confdir=`(dirname "$0") 2>/dev/null ||
884$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
885         X"$0" : 'X\(//\)[^/]' \| \
886         X"$0" : 'X\(//\)$' \| \
887         X"$0" : 'X\(/\)' \| \
888         .     : '\(.\)' 2>/dev/null ||
889echo X"$0" |
890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
891          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
892          /^X\(\/\/\)$/{ s//\1/; q; }
893          /^X\(\/\).*/{ s//\1/; q; }
894          s/.*/./; q'`
895  srcdir=$ac_confdir
896  if test ! -r $srcdir/$ac_unique_file; then
897    srcdir=..
898  fi
899else
900  ac_srcdir_defaulted=no
901fi
902if test ! -r $srcdir/$ac_unique_file; then
903  if test "$ac_srcdir_defaulted" = yes; then
904    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
905   { (exit 1); exit 1; }; }
906  else
907    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
908   { (exit 1); exit 1; }; }
909  fi
910fi
911(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
912  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
913   { (exit 1); exit 1; }; }
914srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
915ac_env_build_alias_set=${build_alias+set}
916ac_env_build_alias_value=$build_alias
917ac_cv_env_build_alias_set=${build_alias+set}
918ac_cv_env_build_alias_value=$build_alias
919ac_env_host_alias_set=${host_alias+set}
920ac_env_host_alias_value=$host_alias
921ac_cv_env_host_alias_set=${host_alias+set}
922ac_cv_env_host_alias_value=$host_alias
923ac_env_target_alias_set=${target_alias+set}
924ac_env_target_alias_value=$target_alias
925ac_cv_env_target_alias_set=${target_alias+set}
926ac_cv_env_target_alias_value=$target_alias
927ac_env_CDEFS_set=${CDEFS+set}
928ac_env_CDEFS_value=$CDEFS
929ac_cv_env_CDEFS_set=${CDEFS+set}
930ac_cv_env_CDEFS_value=$CDEFS
931ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
932ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
933ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
934ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
935ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
936ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
937ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
938ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
939ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
940ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
941ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
942ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
943ac_env_CC_set=${CC+set}
944ac_env_CC_value=$CC
945ac_cv_env_CC_set=${CC+set}
946ac_cv_env_CC_value=$CC
947ac_env_CFLAGS_set=${CFLAGS+set}
948ac_env_CFLAGS_value=$CFLAGS
949ac_cv_env_CFLAGS_set=${CFLAGS+set}
950ac_cv_env_CFLAGS_value=$CFLAGS
951ac_env_LDFLAGS_set=${LDFLAGS+set}
952ac_env_LDFLAGS_value=$LDFLAGS
953ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
954ac_cv_env_LDFLAGS_value=$LDFLAGS
955ac_env_CPPFLAGS_set=${CPPFLAGS+set}
956ac_env_CPPFLAGS_value=$CPPFLAGS
957ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
958ac_cv_env_CPPFLAGS_value=$CPPFLAGS
959ac_env_MPICC_set=${MPICC+set}
960ac_env_MPICC_value=$MPICC
961ac_cv_env_MPICC_set=${MPICC+set}
962ac_cv_env_MPICC_value=$MPICC
963ac_env_CXXDEFS_set=${CXXDEFS+set}
964ac_env_CXXDEFS_value=$CXXDEFS
965ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
966ac_cv_env_CXXDEFS_value=$CXXDEFS
967ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
968ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
969ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
970ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
971ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
972ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
973ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
974ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
975ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
976ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
977ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
978ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
979ac_env_CXX_set=${CXX+set}
980ac_env_CXX_value=$CXX
981ac_cv_env_CXX_set=${CXX+set}
982ac_cv_env_CXX_value=$CXX
983ac_env_CXXFLAGS_set=${CXXFLAGS+set}
984ac_env_CXXFLAGS_value=$CXXFLAGS
985ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
986ac_cv_env_CXXFLAGS_value=$CXXFLAGS
987ac_env_MPICXX_set=${MPICXX+set}
988ac_env_MPICXX_value=$MPICXX
989ac_cv_env_MPICXX_set=${MPICXX+set}
990ac_cv_env_MPICXX_value=$MPICXX
991ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
992ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
993ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
994ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
995ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
996ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
997ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
998ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
999ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1000ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1001ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1002ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1003ac_env_F77_set=${F77+set}
1004ac_env_F77_value=$F77
1005ac_cv_env_F77_set=${F77+set}
1006ac_cv_env_F77_value=$F77
1007ac_env_FFLAGS_set=${FFLAGS+set}
1008ac_env_FFLAGS_value=$FFLAGS
1009ac_cv_env_FFLAGS_set=${FFLAGS+set}
1010ac_cv_env_FFLAGS_value=$FFLAGS
1011ac_env_MPIF77_set=${MPIF77+set}
1012ac_env_MPIF77_value=$MPIF77
1013ac_cv_env_MPIF77_set=${MPIF77+set}
1014ac_cv_env_MPIF77_value=$MPIF77
1015ac_env_CPP_set=${CPP+set}
1016ac_env_CPP_value=$CPP
1017ac_cv_env_CPP_set=${CPP+set}
1018ac_cv_env_CPP_value=$CPP
1019ac_env_CXXCPP_set=${CXXCPP+set}
1020ac_env_CXXCPP_value=$CXXCPP
1021ac_cv_env_CXXCPP_set=${CXXCPP+set}
1022ac_cv_env_CXXCPP_value=$CXXCPP
1023ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1024ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1025ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1026ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1027
1028#
1029# Report the --help message.
1030#
1031if test "$ac_init_help" = "long"; then
1032  # Omit some internal or obsolete options to make the list less imposing.
1033  # This message is too long to be a string in the A/UX 3.1 sh.
1034  cat <<_ACEOF
1035\`configure' configures Clp 1.15.3 to adapt to many kinds of systems.
1036
1037Usage: $0 [OPTION]... [VAR=VALUE]...
1038
1039To assign environment variables (e.g., CC, CFLAGS...), specify them as
1040VAR=VALUE.  See below for descriptions of some of the useful variables.
1041
1042Defaults for the options are specified in brackets.
1043
1044Configuration:
1045  -h, --help              display this help and exit
1046      --help=short        display options specific to this package
1047      --help=recursive    display the short help of all the included packages
1048  -V, --version           display version information and exit
1049  -q, --quiet, --silent   do not print \`checking...' messages
1050      --cache-file=FILE   cache test results in FILE [disabled]
1051  -C, --config-cache      alias for \`--cache-file=config.cache'
1052  -n, --no-create         do not create output files
1053      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1054
1055_ACEOF
1056
1057  cat <<_ACEOF
1058Installation directories:
1059  --prefix=PREFIX         install architecture-independent files in PREFIX
1060                          [$ac_default_prefix]
1061  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1062                          [PREFIX]
1063
1064By default, \`make install' will install all the files in
1065\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1066an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1067for instance \`--prefix=\$HOME'.
1068
1069For better control, use the options below.
1070
1071Fine tuning of the installation directories:
1072  --bindir=DIR           user executables [EPREFIX/bin]
1073  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1074  --libexecdir=DIR       program executables [EPREFIX/libexec]
1075  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1076  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1077  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1078  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1079  --libdir=DIR           object code libraries [EPREFIX/lib]
1080  --includedir=DIR       C header files [PREFIX/include]
1081  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1082  --infodir=DIR          info documentation [PREFIX/info]
1083  --mandir=DIR           man documentation [PREFIX/man]
1084_ACEOF
1085
1086  cat <<\_ACEOF
1087
1088Program names:
1089  --program-prefix=PREFIX            prepend PREFIX to installed program names
1090  --program-suffix=SUFFIX            append SUFFIX to installed program names
1091  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1092
1093System types:
1094  --build=BUILD     configure for building on BUILD [guessed]
1095  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1096_ACEOF
1097fi
1098
1099if test -n "$ac_init_help"; then
1100  case $ac_init_help in
1101     short | recursive ) echo "Configuration of Clp 1.15.3:";;
1102   esac
1103  cat <<\_ACEOF
1104
1105Optional Features:
1106  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1107  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1108  --enable-debug          compile all projects with debug options tests
1109                          (implies --disable-shared)
1110  --enable-doscompile     Under Cygwin, compile so that executables run under
1111                          DOS. Set to mingw to use gcc/g++/ld with
1112                          -mno-cygwin. Set to msvc to use cl/link (or
1113                          icl/link). Default when mentioned: mingw. Default
1114                          when not mentioned: disabled.
1115  --enable-static[=PKGS]
1116                          build static libraries [default=no]
1117  --disable-dependency-tracking  speeds up one-time build
1118  --enable-dependency-tracking   do not reject slow dependency extractors
1119  --enable-maintainer-mode  enable make rules and dependencies not useful
1120                          (and sometimes confusing) to the casual installer
1121  --enable-shared[=PKGS]
1122                          build shared libraries [default=yes]
1123  --enable-fast-install[=PKGS]
1124                          optimize for fast installation [default=yes]
1125  --disable-libtool-lock  avoid locking (might break parallel builds)
1126
1127Optional Packages:
1128  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1129  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1130  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1131  --with-pic              try to use only PIC/non-PIC objects [default=use
1132                          both]
1133  --with-tags[=TAGS]
1134                          include additional configurations [automatic]
1135
1136  --with-blas-lib linker flags for using project Blas
1137  --with-blas-incdir directory with header files for using project Blas
1138  --with-blas-datadir directory with data files for using project Blas
1139  --with-blas             specify BLAS library (or BUILD to enforce use of
1140                          ThirdParty/Blas)
1141  --with-lapack-lib linker flags for using project Lapack
1142  --with-lapack-incdir directory with header files for using project Lapack
1143  --with-lapack-datadir directory with data files for using project Lapack
1144  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1145                          ThirdParty/Lapack)
1146  --with-metis-lib linker flags for using project Metis
1147  --with-metis-incdir directory with header files for using project Metis
1148  --with-metis-datadir directory with data files for using project Metis
1149  --with-mumps-lib linker flags for using project Mumps
1150  --with-mumps-incdir directory with header files for using project Mumps
1151  --with-mumps-datadir directory with data files for using project Mumps
1152  --with-glpk-lib linker flags for using project Glpk
1153  --with-glpk-incdir directory with header files for using project Glpk
1154  --with-glpk-datadir directory with data files for using project Glpk
1155  --with-sample-lib linker flags for using project Sample
1156  --with-sample-incdir directory with header files for using project Sample
1157  --with-sample-datadir directory with data files for using project Sample
1158  --with-netlib-lib linker flags for using project Netlib
1159  --with-netlib-incdir directory with header files for using project Netlib
1160  --with-netlib-datadir directory with data files for using project Netlib
1161  --with-coinutils-lib linker flags for using project CoinUtils
1162  --with-coinutils-incdir directory with header files for using project
1163                          CoinUtils
1164  --with-coinutils-datadir
1165                          directory with data files for using project
1166                          CoinUtils
1167  --with-osi-lib linker flags for using project Osi
1168  --with-osi-incdir directory with header files for using project Osi
1169  --with-osi-datadir directory with data files for using project Osi
1170  --with-clp-lib linker flags for using project Clp
1171  --with-clp-incdir directory with header files for using project Clp
1172  --with-clp-datadir directory with data files for using project Clp
1173  --with-dot              use dot (from graphviz) when creating documentation
1174                          with doxygen if available; --without-dot to disable
1175
1176Some influential environment variables:
1177  CDEFS       Additional -D flags to be used when compiling C code.
1178  ADD_CFLAGS  Additional C compiler options
1179  DBG_CFLAGS  Debug C compiler options
1180  OPT_CFLAGS  Optimize C compiler options
1181  CC          C compiler command
1182  CFLAGS      C compiler flags
1183  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1184              nonstandard directory <lib dir>
1185  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1186              headers in a nonstandard directory <include dir>
1187  MPICC       C MPI Compiler
1188  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1189  ADD_CXXFLAGS
1190              Additional C++ compiler options
1191  DBG_CXXFLAGS
1192              Debug C++ compiler options
1193  OPT_CXXFLAGS
1194              Optimize C++ compiler options
1195  CXX         C++ compiler command
1196  CXXFLAGS    C++ compiler flags
1197  MPICXX      C++ MPI Compiler
1198  ADD_FFLAGS  Additional Fortran compiler options
1199  DBG_FFLAGS  Debug Fortran compiler options
1200  OPT_FFLAGS  Optimize Fortran compiler options
1201  F77         Fortran 77 compiler command
1202  FFLAGS      Fortran 77 compiler flags
1203  MPIF77      Fortran MPI Compiler
1204  CPP         C preprocessor
1205  CXXCPP      C++ preprocessor
1206  COIN_SKIP_PROJECTS
1207              Set to the subdirectories of projects that should be skipped in
1208              the configuration
1209
1210Use these variables to override the choices made by `configure' or to help
1211it to find libraries and programs with nonstandard names/locations.
1212
1213Report bugs to <coin-clp@lists.coin-or.org>.
1214_ACEOF
1215fi
1216
1217if test "$ac_init_help" = "recursive"; then
1218  # If there are subdirs, report their specific --help.
1219  ac_popdir=`pwd`
1220  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1221    test -d $ac_dir || continue
1222    ac_builddir=.
1223
1224if test "$ac_dir" != .; then
1225  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1226  # A "../" for each directory in $ac_dir_suffix.
1227  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1228else
1229  ac_dir_suffix= ac_top_builddir=
1230fi
1231
1232case $srcdir in
1233  .)  # No --srcdir option.  We are building in place.
1234    ac_srcdir=.
1235    if test -z "$ac_top_builddir"; then
1236       ac_top_srcdir=.
1237    else
1238       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1239    fi ;;
1240  [\\/]* | ?:[\\/]* )  # Absolute path.
1241    ac_srcdir=$srcdir$ac_dir_suffix;
1242    ac_top_srcdir=$srcdir ;;
1243  *) # Relative path.
1244    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1245    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1246esac
1247
1248# Do not use `cd foo && pwd` to compute absolute paths, because
1249# the directories may not exist.
1250case `pwd` in
1251.) ac_abs_builddir="$ac_dir";;
1252*)
1253  case "$ac_dir" in
1254  .) ac_abs_builddir=`pwd`;;
1255  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1256  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1257  esac;;
1258esac
1259case $ac_abs_builddir in
1260.) ac_abs_top_builddir=${ac_top_builddir}.;;
1261*)
1262  case ${ac_top_builddir}. in
1263  .) ac_abs_top_builddir=$ac_abs_builddir;;
1264  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1265  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1266  esac;;
1267esac
1268case $ac_abs_builddir in
1269.) ac_abs_srcdir=$ac_srcdir;;
1270*)
1271  case $ac_srcdir in
1272  .) ac_abs_srcdir=$ac_abs_builddir;;
1273  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1274  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1275  esac;;
1276esac
1277case $ac_abs_builddir in
1278.) ac_abs_top_srcdir=$ac_top_srcdir;;
1279*)
1280  case $ac_top_srcdir in
1281  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1282  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1283  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1284  esac;;
1285esac
1286
1287    cd $ac_dir
1288    # Check for guested configure; otherwise get Cygnus style configure.
1289    if test -f $ac_srcdir/configure.gnu; then
1290      echo
1291      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1292    elif test -f $ac_srcdir/configure; then
1293      echo
1294      $SHELL $ac_srcdir/configure  --help=recursive
1295    elif test -f $ac_srcdir/configure.ac ||
1296           test -f $ac_srcdir/configure.in; then
1297      echo
1298      $ac_configure --help
1299    else
1300      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1301    fi
1302    cd $ac_popdir
1303  done
1304fi
1305
1306test -n "$ac_init_help" && exit 0
1307if $ac_init_version; then
1308  cat <<\_ACEOF
1309Clp configure 1.15.3
1310generated by GNU Autoconf 2.59
1311
1312Copyright (C) 2003 Free Software Foundation, Inc.
1313This configure script is free software; the Free Software Foundation
1314gives unlimited permission to copy, distribute and modify it.
1315
1316
1317Copyright 2006 International Business Machines and others.
1318All Rights Reserved.
1319This file is part of the open source package Coin which is distributed
1320under the Eclipse Public License.
1321_ACEOF
1322  exit 0
1323fi
1324exec 5>config.log
1325cat >&5 <<_ACEOF
1326This file contains any messages produced by compilers while
1327running configure, to aid debugging if configure makes a mistake.
1328
1329It was created by Clp $as_me 1.15.3, which was
1330generated by GNU Autoconf 2.59.  Invocation command line was
1331
1332  $ $0 $@
1333
1334_ACEOF
1335{
1336cat <<_ASUNAME
1337## --------- ##
1338## Platform. ##
1339## --------- ##
1340
1341hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1342uname -m = `(uname -m) 2>/dev/null || echo unknown`
1343uname -r = `(uname -r) 2>/dev/null || echo unknown`
1344uname -s = `(uname -s) 2>/dev/null || echo unknown`
1345uname -v = `(uname -v) 2>/dev/null || echo unknown`
1346
1347/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1348/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1349
1350/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1351/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1352/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1353hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1354/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1355/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1356/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1357
1358_ASUNAME
1359
1360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1361for as_dir in $PATH
1362do
1363  IFS=$as_save_IFS
1364  test -z "$as_dir" && as_dir=.
1365  echo "PATH: $as_dir"
1366done
1367
1368} >&5
1369
1370cat >&5 <<_ACEOF
1371
1372
1373## ----------- ##
1374## Core tests. ##
1375## ----------- ##
1376
1377_ACEOF
1378
1379
1380# Keep a trace of the command line.
1381# Strip out --no-create and --no-recursion so they do not pile up.
1382# Strip out --silent because we don't want to record it for future runs.
1383# Also quote any args containing shell meta-characters.
1384# Make two passes to allow for proper duplicate-argument suppression.
1385ac_configure_args=
1386ac_configure_args0=
1387ac_configure_args1=
1388ac_sep=
1389ac_must_keep_next=false
1390for ac_pass in 1 2
1391do
1392  for ac_arg
1393  do
1394    case $ac_arg in
1395    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1396    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1397    | -silent | --silent | --silen | --sile | --sil)
1398      continue ;;
1399    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1400      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1401    esac
1402    case $ac_pass in
1403    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1404    2)
1405      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1406      if test $ac_must_keep_next = true; then
1407        ac_must_keep_next=false # Got value, back to normal.
1408      else
1409        case $ac_arg in
1410          *=* | --config-cache | -C | -disable-* | --disable-* \
1411          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1412          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1413          | -with-* | --with-* | -without-* | --without-* | --x)
1414            case "$ac_configure_args0 " in
1415              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1416            esac
1417            ;;
1418          -* ) ac_must_keep_next=true ;;
1419        esac
1420      fi
1421      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1422      # Get rid of the leading space.
1423      ac_sep=" "
1424      ;;
1425    esac
1426  done
1427done
1428$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1429$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1430
1431# When interrupted or exit'd, cleanup temporary files, and complete
1432# config.log.  We remove comments because anyway the quotes in there
1433# would cause problems or look ugly.
1434# WARNING: Be sure not to use single quotes in there, as some shells,
1435# such as our DU 5.0 friend, will then `close' the trap.
1436trap 'exit_status=$?
1437  # Save into config.log some information that might help in debugging.
1438  {
1439    echo
1440
1441    cat <<\_ASBOX
1442## ---------------- ##
1443## Cache variables. ##
1444## ---------------- ##
1445_ASBOX
1446    echo
1447    # The following way of writing the cache mishandles newlines in values,
1448{
1449  (set) 2>&1 |
1450    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1451    *ac_space=\ *)
1452      sed -n \
1453        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1454          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1455      ;;
1456    *)
1457      sed -n \
1458        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1459      ;;
1460    esac;
1461}
1462    echo
1463
1464    cat <<\_ASBOX
1465## ----------------- ##
1466## Output variables. ##
1467## ----------------- ##
1468_ASBOX
1469    echo
1470    for ac_var in $ac_subst_vars
1471    do
1472      eval ac_val=$`echo $ac_var`
1473      echo "$ac_var='"'"'$ac_val'"'"'"
1474    done | sort
1475    echo
1476
1477    if test -n "$ac_subst_files"; then
1478      cat <<\_ASBOX
1479## ------------- ##
1480## Output files. ##
1481## ------------- ##
1482_ASBOX
1483      echo
1484      for ac_var in $ac_subst_files
1485      do
1486        eval ac_val=$`echo $ac_var`
1487        echo "$ac_var='"'"'$ac_val'"'"'"
1488      done | sort
1489      echo
1490    fi
1491
1492    if test -s confdefs.h; then
1493      cat <<\_ASBOX
1494## ----------- ##
1495## confdefs.h. ##
1496## ----------- ##
1497_ASBOX
1498      echo
1499      sed "/^$/d" confdefs.h | sort
1500      echo
1501    fi
1502    test "$ac_signal" != 0 &&
1503      echo "$as_me: caught signal $ac_signal"
1504    echo "$as_me: exit $exit_status"
1505  } >&5
1506  rm -f core *.core &&
1507  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1508    exit $exit_status
1509     ' 0
1510for ac_signal in 1 2 13 15; do
1511  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1512done
1513ac_signal=0
1514
1515# confdefs.h avoids OS command line length limits that DEFS can exceed.
1516rm -rf conftest* confdefs.h
1517# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1518echo >confdefs.h
1519
1520# Predefined preprocessor variables.
1521
1522cat >>confdefs.h <<_ACEOF
1523#define PACKAGE_NAME "$PACKAGE_NAME"
1524_ACEOF
1525
1526
1527cat >>confdefs.h <<_ACEOF
1528#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1529_ACEOF
1530
1531
1532cat >>confdefs.h <<_ACEOF
1533#define PACKAGE_VERSION "$PACKAGE_VERSION"
1534_ACEOF
1535
1536
1537cat >>confdefs.h <<_ACEOF
1538#define PACKAGE_STRING "$PACKAGE_STRING"
1539_ACEOF
1540
1541
1542cat >>confdefs.h <<_ACEOF
1543#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1544_ACEOF
1545
1546
1547# Let the site file select an alternate cache file if it wants to.
1548# Prefer explicitly selected file to automatically selected ones.
1549if test -z "$CONFIG_SITE"; then
1550  if test "x$prefix" != xNONE; then
1551    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1552  else
1553    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1554  fi
1555fi
1556for ac_site_file in $CONFIG_SITE; do
1557  if test -r "$ac_site_file"; then
1558    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1559echo "$as_me: loading site script $ac_site_file" >&6;}
1560    sed 's/^/| /' "$ac_site_file" >&5
1561    . "$ac_site_file"
1562  fi
1563done
1564
1565if test -r "$cache_file"; then
1566  # Some versions of bash will fail to source /dev/null (special
1567  # files actually), so we avoid doing that.
1568  if test -f "$cache_file"; then
1569    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1570echo "$as_me: loading cache $cache_file" >&6;}
1571    case $cache_file in
1572      [\\/]* | ?:[\\/]* ) . $cache_file;;
1573      *)                      . ./$cache_file;;
1574    esac
1575  fi
1576else
1577  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1578echo "$as_me: creating cache $cache_file" >&6;}
1579  >$cache_file
1580fi
1581
1582# Check that the precious variables saved in the cache have kept the same
1583# value.
1584ac_cache_corrupted=false
1585for ac_var in `(set) 2>&1 |
1586               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1587  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1588  eval ac_new_set=\$ac_env_${ac_var}_set
1589  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1590  eval ac_new_val="\$ac_env_${ac_var}_value"
1591  case $ac_old_set,$ac_new_set in
1592    set,)
1593      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1594echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1595      ac_cache_corrupted=: ;;
1596    ,set)
1597      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1598echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1599      ac_cache_corrupted=: ;;
1600    ,);;
1601    *)
1602      if test "x$ac_old_val" != "x$ac_new_val"; then
1603        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1604echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1605        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1606echo "$as_me:   former value:  $ac_old_val" >&2;}
1607        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1608echo "$as_me:   current value: $ac_new_val" >&2;}
1609        ac_cache_corrupted=:
1610      fi;;
1611  esac
1612  # Pass precious variables to config.status.
1613  if test "$ac_new_set" = set; then
1614    case $ac_new_val in
1615    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1616      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1617    *) ac_arg=$ac_var=$ac_new_val ;;
1618    esac
1619    case " $ac_configure_args " in
1620      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1621      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1622    esac
1623  fi
1624done
1625if $ac_cache_corrupted; then
1626  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1627echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1628  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1629echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1630   { (exit 1); exit 1; }; }
1631fi
1632
1633ac_ext=c
1634ac_cpp='$CPP $CPPFLAGS'
1635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1637ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1668
1669
1670# List one file in the package so that the configure script can test
1671# whether the package is actually there
1672
1673
1674# Where should everything be installed by default?  Here, we want it
1675# to be installed directly in 'bin', 'lib', 'include' subdirectories
1676# of the directory where configure is run.  The default would be
1677# /usr/local.
1678
1679
1680#############################################################################
1681#              Create the libtool script for the subdirectories             #
1682#############################################################################
1683
1684ac_aux_dir=
1685for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1686  if test -f $ac_dir/install-sh; then
1687    ac_aux_dir=$ac_dir
1688    ac_install_sh="$ac_aux_dir/install-sh -c"
1689    break
1690  elif test -f $ac_dir/install.sh; then
1691    ac_aux_dir=$ac_dir
1692    ac_install_sh="$ac_aux_dir/install.sh -c"
1693    break
1694  elif test -f $ac_dir/shtool; then
1695    ac_aux_dir=$ac_dir
1696    ac_install_sh="$ac_aux_dir/shtool install -c"
1697    break
1698  fi
1699done
1700if test -z "$ac_aux_dir"; then
1701  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1702echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1703   { (exit 1); exit 1; }; }
1704fi
1705ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1706ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1707ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1708
1709# Make sure we can run config.sub.
1710$ac_config_sub sun4 >/dev/null 2>&1 ||
1711  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1712echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1713   { (exit 1); exit 1; }; }
1714
1715echo "$as_me:$LINENO: checking build system type" >&5
1716echo $ECHO_N "checking build system type... $ECHO_C" >&6
1717if test "${ac_cv_build+set}" = set; then
1718  echo $ECHO_N "(cached) $ECHO_C" >&6
1719else
1720  ac_cv_build_alias=$build_alias
1721test -z "$ac_cv_build_alias" &&
1722  ac_cv_build_alias=`$ac_config_guess`
1723test -z "$ac_cv_build_alias" &&
1724  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1725echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1726   { (exit 1); exit 1; }; }
1727ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1728  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1729echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1730   { (exit 1); exit 1; }; }
1731
1732fi
1733echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1734echo "${ECHO_T}$ac_cv_build" >&6
1735build=$ac_cv_build
1736build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1737build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1738build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1739
1740
1741
1742# Check if user wants to produce debugging code
1743
1744echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1745echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1746
1747# Check whether --enable-debug or --disable-debug was given.
1748if test "${enable_debug+set}" = set; then
1749  enableval="$enable_debug"
1750  case "${enableval}" in
1751   yes) coin_debug_compile=true
1752        if test "${enable_shared+set}" = set; then :; else
1753          enable_shared=no
1754        fi
1755        ;;
1756   no)  coin_debug_compile=false
1757        ;;
1758   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1759echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1760   { (exit 1); exit 1; }; }
1761        ;;
1762esac
1763else
1764  coin_debug_compile=false
1765fi;
1766
1767 # m4_ifvaln([],
1768
1769if test $coin_debug_compile = true; then
1770  echo "$as_me:$LINENO: result: yes" >&5
1771echo "${ECHO_T}yes" >&6
1772else
1773  echo "$as_me:$LINENO: result: no" >&5
1774echo "${ECHO_T}no" >&6
1775fi
1776
1777 # m4_ifvaln([],
1778
1779
1780
1781# Get the name of the C compiler and appropriate compiler options
1782case $build in
1783  *-mingw*)
1784    if test "${LD+set}" = set; then :; else
1785      LD=link
1786    fi
1787    ;;
1788 esac
1789 case $enable_doscompile in
1790   msvc)
1791     if test "x${LD+set}" = xset; then :; else
1792       LD=link
1793     fi
1794     ;;
1795 esac
1796
1797
1798 # Check whether --enable-doscompile or --disable-doscompile was given.
1799if test "${enable_doscompile+set}" = set; then
1800  enableval="$enable_doscompile"
1801  if test "$enable_doscompile" != no; then
1802     case $build in
1803       *-cygwin* | *-mingw*) ;;
1804       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1805echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1806   { (exit 1); exit 1; }; } ;;
1807     esac
1808   fi
1809else
1810  enable_doscompile=no
1811fi;
1812 case "$enable_doscompile" in
1813   mingw)
1814     case $build in
1815       *-mingw*) enable_doscompile=no ;;
1816     esac
1817     ;;
1818   msvc|no) ;;
1819   yes) enable_doscompile=mingw ;;
1820   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1821                    Try configure --help=recursive." >&5
1822echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1823                    Try configure --help=recursive." >&2;}
1824   { (exit 1); exit 1; }; }
1825      ;;
1826  esac
1827  if test "$enable_doscompile" != no ; then
1828    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1829echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1830  fi
1831
1832
1833
1834
1835ac_ext=c
1836ac_cpp='$CPP $CPPFLAGS'
1837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1839ac_compiler_gnu=$ac_cv_c_compiler_gnu
1840
1841
1842# For consistency, we set the C compiler to the same value of the C++
1843# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1844if test x"$CXX" != x; then
1845  case "$CXX" in
1846    clang* ) ;;
1847    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1848      if test x"$CC" = x; then
1849        CC="$CXX"
1850        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1851echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1852      fi
1853      ;;
1854  esac
1855fi
1856
1857
1858
1859
1860
1861
1862coin_has_cc=yes
1863
1864save_cflags="$CFLAGS"
1865
1866# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1867# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1868# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1869# compiler. In this case, put cc after gcc.
1870
1871case $build in
1872  *-cygwin* | *-mingw*)
1873             if test "$enable_doscompile" = msvc ; then
1874               comps="icl cl"
1875             else
1876               comps="gcc cl"
1877             fi ;;
1878  *-*-solaris*)
1879             # Extract the first word of "cc", so it can be a program name with args.
1880set dummy cc; ac_word=$2
1881echo "$as_me:$LINENO: checking for $ac_word" >&5
1882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1884  echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886  if test -n "$sol_cc_compiler"; then
1887  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1888else
1889  ac_prog_rejected=no
1890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1891for as_dir in $PATH
1892do
1893  IFS=$as_save_IFS
1894  test -z "$as_dir" && as_dir=.
1895  for ac_exec_ext in '' $ac_executable_extensions; do
1896  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1897    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1898       ac_prog_rejected=yes
1899       continue
1900     fi
1901    ac_cv_prog_sol_cc_compiler="cc"
1902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903    break 2
1904  fi
1905done
1906done
1907
1908if test $ac_prog_rejected = yes; then
1909  # We found a bogon in the path, so make sure we never use it.
1910  set dummy $ac_cv_prog_sol_cc_compiler
1911  shift
1912  if test $# != 0; then
1913    # We chose a different compiler from the bogus one.
1914    # However, it has the same basename, so the bogon will be chosen
1915    # first if we set sol_cc_compiler to just the basename; use the full file name.
1916    shift
1917    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1918  fi
1919fi
1920fi
1921fi
1922sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1923if test -n "$sol_cc_compiler"; then
1924  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1925echo "${ECHO_T}$sol_cc_compiler" >&6
1926else
1927  echo "$as_me:$LINENO: result: no" >&5
1928echo "${ECHO_T}no" >&6
1929fi
1930
1931             if test "$sol_cc_compiler" = "cc" ; then
1932               comps="cc xlc gcc pgcc icc"
1933             else
1934               comps="xlc gcc pgcc icc cc"
1935             fi
1936             ;;
1937  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1938  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1939  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1940esac
1941
1942# We delete the cached value, since the test might not have been
1943# performed with our choice of compilers earlier
1944$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1945# AC_MSG_NOTICE([C compiler candidates: $comps])
1946ac_ext=c
1947ac_cpp='$CPP $CPPFLAGS'
1948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1950ac_compiler_gnu=$ac_cv_c_compiler_gnu
1951if test -n "$ac_tool_prefix"; then
1952  for ac_prog in $comps
1953  do
1954    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1955set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1956echo "$as_me:$LINENO: checking for $ac_word" >&5
1957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958if test "${ac_cv_prog_CC+set}" = set; then
1959  echo $ECHO_N "(cached) $ECHO_C" >&6
1960else
1961  if test -n "$CC"; then
1962  ac_cv_prog_CC="$CC" # Let the user override the test.
1963else
1964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965for as_dir in $PATH
1966do
1967  IFS=$as_save_IFS
1968  test -z "$as_dir" && as_dir=.
1969  for ac_exec_ext in '' $ac_executable_extensions; do
1970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1971    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973    break 2
1974  fi
1975done
1976done
1977
1978fi
1979fi
1980CC=$ac_cv_prog_CC
1981if test -n "$CC"; then
1982  echo "$as_me:$LINENO: result: $CC" >&5
1983echo "${ECHO_T}$CC" >&6
1984else
1985  echo "$as_me:$LINENO: result: no" >&5
1986echo "${ECHO_T}no" >&6
1987fi
1988
1989    test -n "$CC" && break
1990  done
1991fi
1992if test -z "$CC"; then
1993  ac_ct_CC=$CC
1994  for ac_prog in $comps
1995do
1996  # Extract the first word of "$ac_prog", so it can be a program name with args.
1997set dummy $ac_prog; ac_word=$2
1998echo "$as_me:$LINENO: checking for $ac_word" >&5
1999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2001  echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003  if test -n "$ac_ct_CC"; then
2004  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2005else
2006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007for as_dir in $PATH
2008do
2009  IFS=$as_save_IFS
2010  test -z "$as_dir" && as_dir=.
2011  for ac_exec_ext in '' $ac_executable_extensions; do
2012  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2013    ac_cv_prog_ac_ct_CC="$ac_prog"
2014    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015    break 2
2016  fi
2017done
2018done
2019
2020fi
2021fi
2022ac_ct_CC=$ac_cv_prog_ac_ct_CC
2023if test -n "$ac_ct_CC"; then
2024  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2025echo "${ECHO_T}$ac_ct_CC" >&6
2026else
2027  echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031  test -n "$ac_ct_CC" && break
2032done
2033
2034  CC=$ac_ct_CC
2035fi
2036
2037
2038test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2039See \`config.log' for more details." >&5
2040echo "$as_me: error: no acceptable C compiler found in \$PATH
2041See \`config.log' for more details." >&2;}
2042   { (exit 1); exit 1; }; }
2043
2044# Provide some information about the compiler.
2045echo "$as_me:$LINENO:" \
2046     "checking for C compiler version" >&5
2047ac_compiler=`set X $ac_compile; echo $2`
2048{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2049  (eval $ac_compiler --version </dev/null >&5) 2>&5
2050  ac_status=$?
2051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052  (exit $ac_status); }
2053{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2054  (eval $ac_compiler -v </dev/null >&5) 2>&5
2055  ac_status=$?
2056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057  (exit $ac_status); }
2058{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2059  (eval $ac_compiler -V </dev/null >&5) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }
2063
2064cat >conftest.$ac_ext <<_ACEOF
2065/* confdefs.h.  */
2066_ACEOF
2067cat confdefs.h >>conftest.$ac_ext
2068cat >>conftest.$ac_ext <<_ACEOF
2069/* end confdefs.h.  */
2070
2071int
2072main ()
2073{
2074
2075  ;
2076  return 0;
2077}
2078_ACEOF
2079ac_clean_files_save=$ac_clean_files
2080ac_clean_files="$ac_clean_files a.out a.exe b.out"
2081# Try to create an executable without -o first, disregard a.out.
2082# It will help us diagnose broken compilers, and finding out an intuition
2083# of exeext.
2084echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2085echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2086ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2087if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2088  (eval $ac_link_default) 2>&5
2089  ac_status=$?
2090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091  (exit $ac_status); }; then
2092  # Find the output, starting from the most likely.  This scheme is
2093# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2094# resort.
2095
2096# Be careful to initialize this variable, since it used to be cached.
2097# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2098ac_cv_exeext=
2099# b.out is created by i960 compilers.
2100for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2101do
2102  test -f "$ac_file" || continue
2103  case $ac_file in
2104    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2105        ;;
2106    conftest.$ac_ext )
2107        # This is the source file.
2108        ;;
2109    [ab].out )
2110        # We found the default executable, but exeext='' is most
2111        # certainly right.
2112        break;;
2113    *.* )
2114        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2115        # FIXME: I believe we export ac_cv_exeext for Libtool,
2116        # but it would be cool to find out if it's true.  Does anybody
2117        # maintain Libtool? --akim.
2118        export ac_cv_exeext
2119        break;;
2120    * )
2121        break;;
2122  esac
2123done
2124else
2125  echo "$as_me: failed program was:" >&5
2126sed 's/^/| /' conftest.$ac_ext >&5
2127
2128{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2129See \`config.log' for more details." >&5
2130echo "$as_me: error: C compiler cannot create executables
2131See \`config.log' for more details." >&2;}
2132   { (exit 77); exit 77; }; }
2133fi
2134
2135ac_exeext=$ac_cv_exeext
2136echo "$as_me:$LINENO: result: $ac_file" >&5
2137echo "${ECHO_T}$ac_file" >&6
2138
2139# Check the compiler produces executables we can run.  If not, either
2140# the compiler is broken, or we cross compile.
2141echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2142echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2143# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2144# If not cross compiling, check that we can run a simple program.
2145if test "$cross_compiling" != yes; then
2146  if { ac_try='./$ac_file'
2147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148  (eval $ac_try) 2>&5
2149  ac_status=$?
2150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151  (exit $ac_status); }; }; then
2152    cross_compiling=no
2153  else
2154    if test "$cross_compiling" = maybe; then
2155        cross_compiling=yes
2156    else
2157        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2158If you meant to cross compile, use \`--host'.
2159See \`config.log' for more details." >&5
2160echo "$as_me: error: cannot run C compiled programs.
2161If you meant to cross compile, use \`--host'.
2162See \`config.log' for more details." >&2;}
2163   { (exit 1); exit 1; }; }
2164    fi
2165  fi
2166fi
2167echo "$as_me:$LINENO: result: yes" >&5
2168echo "${ECHO_T}yes" >&6
2169
2170rm -f a.out a.exe conftest$ac_cv_exeext b.out
2171ac_clean_files=$ac_clean_files_save
2172# Check the compiler produces executables we can run.  If not, either
2173# the compiler is broken, or we cross compile.
2174echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2175echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2176echo "$as_me:$LINENO: result: $cross_compiling" >&5
2177echo "${ECHO_T}$cross_compiling" >&6
2178
2179echo "$as_me:$LINENO: checking for suffix of executables" >&5
2180echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2182  (eval $ac_link) 2>&5
2183  ac_status=$?
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); }; then
2186  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2187# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2188# work properly (i.e., refer to `conftest.exe'), while it won't with
2189# `rm'.
2190for ac_file in conftest.exe conftest conftest.*; do
2191  test -f "$ac_file" || continue
2192  case $ac_file in
2193    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2194    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2195          export ac_cv_exeext
2196          break;;
2197    * ) break;;
2198  esac
2199done
2200else
2201  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2202See \`config.log' for more details." >&5
2203echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2204See \`config.log' for more details." >&2;}
2205   { (exit 1); exit 1; }; }
2206fi
2207
2208rm -f conftest$ac_cv_exeext
2209echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2210echo "${ECHO_T}$ac_cv_exeext" >&6
2211
2212rm -f conftest.$ac_ext
2213EXEEXT=$ac_cv_exeext
2214ac_exeext=$EXEEXT
2215echo "$as_me:$LINENO: checking for suffix of object files" >&5
2216echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2217if test "${ac_cv_objext+set}" = set; then
2218  echo $ECHO_N "(cached) $ECHO_C" >&6
2219else
2220  cat >conftest.$ac_ext <<_ACEOF
2221/* confdefs.h.  */
2222_ACEOF
2223cat confdefs.h >>conftest.$ac_ext
2224cat >>conftest.$ac_ext <<_ACEOF
2225/* end confdefs.h.  */
2226
2227int
2228main ()
2229{
2230
2231  ;
2232  return 0;
2233}
2234_ACEOF
2235rm -f conftest.o conftest.obj
2236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2237  (eval $ac_compile) 2>&5
2238  ac_status=$?
2239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240  (exit $ac_status); }; then
2241  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2242  case $ac_file in
2243    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2244    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2245       break;;
2246  esac
2247done
2248else
2249  echo "$as_me: failed program was:" >&5
2250sed 's/^/| /' conftest.$ac_ext >&5
2251
2252{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2253See \`config.log' for more details." >&5
2254echo "$as_me: error: cannot compute suffix of object files: cannot compile
2255See \`config.log' for more details." >&2;}
2256   { (exit 1); exit 1; }; }
2257fi
2258
2259rm -f conftest.$ac_cv_objext conftest.$ac_ext
2260fi
2261echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2262echo "${ECHO_T}$ac_cv_objext" >&6
2263OBJEXT=$ac_cv_objext
2264ac_objext=$OBJEXT
2265echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2266echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2267if test "${ac_cv_c_compiler_gnu+set}" = set; then
2268  echo $ECHO_N "(cached) $ECHO_C" >&6
2269else
2270  cat >conftest.$ac_ext <<_ACEOF
2271/* confdefs.h.  */
2272_ACEOF
2273cat confdefs.h >>conftest.$ac_ext
2274cat >>conftest.$ac_ext <<_ACEOF
2275/* end confdefs.h.  */
2276
2277int
2278main ()
2279{
2280#ifndef __GNUC__
2281       choke me
2282#endif
2283
2284  ;
2285  return 0;
2286}
2287_ACEOF
2288rm -f conftest.$ac_objext
2289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290  (eval $ac_compile) 2>conftest.er1
2291  ac_status=$?
2292  grep -v '^ *+' conftest.er1 >conftest.err
2293  rm -f conftest.er1
2294  cat conftest.err >&5
2295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296  (exit $ac_status); } &&
2297         { ac_try='test -z "$ac_c_werror_flag"
2298                         || test ! -s conftest.err'
2299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300  (eval $ac_try) 2>&5
2301  ac_status=$?
2302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303  (exit $ac_status); }; } &&
2304         { ac_try='test -s conftest.$ac_objext'
2305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306  (eval $ac_try) 2>&5
2307  ac_status=$?
2308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309  (exit $ac_status); }; }; then
2310  ac_compiler_gnu=yes
2311else
2312  echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315ac_compiler_gnu=no
2316fi
2317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2318ac_cv_c_compiler_gnu=$ac_compiler_gnu
2319
2320fi
2321echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2322echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2323GCC=`test $ac_compiler_gnu = yes && echo yes`
2324ac_test_CFLAGS=${CFLAGS+set}
2325ac_save_CFLAGS=$CFLAGS
2326CFLAGS="-g"
2327echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2328echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2329if test "${ac_cv_prog_cc_g+set}" = set; then
2330  echo $ECHO_N "(cached) $ECHO_C" >&6
2331else
2332  cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h.  */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h.  */
2338
2339int
2340main ()
2341{
2342
2343  ;
2344  return 0;
2345}
2346_ACEOF
2347rm -f conftest.$ac_objext
2348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349  (eval $ac_compile) 2>conftest.er1
2350  ac_status=$?
2351  grep -v '^ *+' conftest.er1 >conftest.err
2352  rm -f conftest.er1
2353  cat conftest.err >&5
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); } &&
2356         { ac_try='test -z "$ac_c_werror_flag"
2357                         || test ! -s conftest.err'
2358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359  (eval $ac_try) 2>&5
2360  ac_status=$?
2361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362  (exit $ac_status); }; } &&
2363         { ac_try='test -s conftest.$ac_objext'
2364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365  (eval $ac_try) 2>&5
2366  ac_status=$?
2367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368  (exit $ac_status); }; }; then
2369  ac_cv_prog_cc_g=yes
2370else
2371  echo "$as_me: failed program was:" >&5
2372sed 's/^/| /' conftest.$ac_ext >&5
2373
2374ac_cv_prog_cc_g=no
2375fi
2376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2377fi
2378echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2379echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2380if test "$ac_test_CFLAGS" = set; then
2381  CFLAGS=$ac_save_CFLAGS
2382elif test $ac_cv_prog_cc_g = yes; then
2383  if test "$GCC" = yes; then
2384    CFLAGS="-g -O2"
2385  else
2386    CFLAGS="-g"
2387  fi
2388else
2389  if test "$GCC" = yes; then
2390    CFLAGS="-O2"
2391  else
2392    CFLAGS=
2393  fi
2394fi
2395echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2396echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2397if test "${ac_cv_prog_cc_stdc+set}" = set; then
2398  echo $ECHO_N "(cached) $ECHO_C" >&6
2399else
2400  ac_cv_prog_cc_stdc=no
2401ac_save_CC=$CC
2402cat >conftest.$ac_ext <<_ACEOF
2403/* confdefs.h.  */
2404_ACEOF
2405cat confdefs.h >>conftest.$ac_ext
2406cat >>conftest.$ac_ext <<_ACEOF
2407/* end confdefs.h.  */
2408#include <stdarg.h>
2409#include <stdio.h>
2410#include <sys/types.h>
2411#include <sys/stat.h>
2412/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2413struct buf { int x; };
2414FILE * (*rcsopen) (struct buf *, struct stat *, int);
2415static char *e (p, i)
2416     char **p;
2417     int i;
2418{
2419  return p[i];
2420}
2421static char *f (char * (*g) (char **, int), char **p, ...)
2422{
2423  char *s;
2424  va_list v;
2425  va_start (v,p);
2426  s = g (p, va_arg (v,int));
2427  va_end (v);
2428  return s;
2429}
2430
2431/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2432   function prototypes and stuff, but not '\xHH' hex character constants.
2433   These don't provoke an error unfortunately, instead are silently treated
2434   as 'x'.  The following induces an error, until -std1 is added to get
2435   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2436   array size at least.  It's necessary to write '\x00'==0 to get something
2437   that's true only with -std1.  */
2438int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2439
2440int test (int i, double x);
2441struct s1 {int (*f) (int a);};
2442struct s2 {int (*f) (double a);};
2443int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2444int argc;
2445char **argv;
2446int
2447main ()
2448{
2449return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2450  ;
2451  return 0;
2452}
2453_ACEOF
2454# Don't try gcc -ansi; that turns off useful extensions and
2455# breaks some systems' header files.
2456# AIX                   -qlanglvl=ansi
2457# Ultrix and OSF/1      -std1
2458# HP-UX 10.20 and later -Ae
2459# HP-UX older versions  -Aa -D_HPUX_SOURCE
2460# SVR4                  -Xc -D__EXTENSIONS__
2461for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2462do
2463  CC="$ac_save_CC $ac_arg"
2464  rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466  (eval $ac_compile) 2>conftest.er1
2467  ac_status=$?
2468  grep -v '^ *+' conftest.er1 >conftest.err
2469  rm -f conftest.er1
2470  cat conftest.err >&5
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); } &&
2473         { ac_try='test -z "$ac_c_werror_flag"
2474                         || test ! -s conftest.err'
2475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476  (eval $ac_try) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; } &&
2480         { ac_try='test -s conftest.$ac_objext'
2481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482  (eval $ac_try) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }; }; then
2486  ac_cv_prog_cc_stdc=$ac_arg
2487break
2488else
2489  echo "$as_me: failed program was:" >&5
2490sed 's/^/| /' conftest.$ac_ext >&5
2491
2492fi
2493rm -f conftest.err conftest.$ac_objext
2494done
2495rm -f conftest.$ac_ext conftest.$ac_objext
2496CC=$ac_save_CC
2497
2498fi
2499
2500case "x$ac_cv_prog_cc_stdc" in
2501  x|xno)
2502    echo "$as_me:$LINENO: result: none needed" >&5
2503echo "${ECHO_T}none needed" >&6 ;;
2504  *)
2505    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2506echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2507    CC="$CC $ac_cv_prog_cc_stdc" ;;
2508esac
2509
2510# Some people use a C++ compiler to compile C.  Since we use `exit',
2511# in C++ we need to declare it.  In case someone uses the same compiler
2512# for both compiling C and C++ we need to have the C++ compiler decide
2513# the declaration of exit, since it's the most demanding environment.
2514cat >conftest.$ac_ext <<_ACEOF
2515#ifndef __cplusplus
2516  choke me
2517#endif
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521  (eval $ac_compile) 2>conftest.er1
2522  ac_status=$?
2523  grep -v '^ *+' conftest.er1 >conftest.err
2524  rm -f conftest.er1
2525  cat conftest.err >&5
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); } &&
2528         { ac_try='test -z "$ac_c_werror_flag"
2529                         || test ! -s conftest.err'
2530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531  (eval $ac_try) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; } &&
2535         { ac_try='test -s conftest.$ac_objext'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; }; then
2541  for ac_declaration in \
2542   '' \
2543   'extern "C" void std::exit (int) throw (); using std::exit;' \
2544   'extern "C" void std::exit (int); using std::exit;' \
2545   'extern "C" void exit (int) throw ();' \
2546   'extern "C" void exit (int);' \
2547   'void exit (int);'
2548do
2549  cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h.  */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h.  */
2555$ac_declaration
2556#include <stdlib.h>
2557int
2558main ()
2559{
2560exit (42);
2561  ;
2562  return 0;
2563}
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567  (eval $ac_compile) 2>conftest.er1
2568  ac_status=$?
2569  grep -v '^ *+' conftest.er1 >conftest.err
2570  rm -f conftest.er1
2571  cat conftest.err >&5
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); } &&
2574         { ac_try='test -z "$ac_c_werror_flag"
2575                         || test ! -s conftest.err'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; } &&
2581         { ac_try='test -s conftest.$ac_objext'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; }; then
2587  :
2588else
2589  echo "$as_me: failed program was:" >&5
2590sed 's/^/| /' conftest.$ac_ext >&5
2591
2592continue
2593fi
2594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595  cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h.  */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h.  */
2601$ac_declaration
2602int
2603main ()
2604{
2605exit (42);
2606  ;
2607  return 0;
2608}
2609_ACEOF
2610rm -f conftest.$ac_objext
2611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2612  (eval $ac_compile) 2>conftest.er1
2613  ac_status=$?
2614  grep -v '^ *+' conftest.er1 >conftest.err
2615  rm -f conftest.er1
2616  cat conftest.err >&5
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); } &&
2619         { ac_try='test -z "$ac_c_werror_flag"
2620                         || test ! -s conftest.err'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; } &&
2626         { ac_try='test -s conftest.$ac_objext'
2627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628  (eval $ac_try) 2>&5
2629  ac_status=$?
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); }; }; then
2632  break
2633else
2634  echo "$as_me: failed program was:" >&5
2635sed 's/^/| /' conftest.$ac_ext >&5
2636
2637fi
2638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2639done
2640rm -f conftest*
2641if test -n "$ac_declaration"; then
2642  echo '#ifdef __cplusplus' >>confdefs.h
2643  echo $ac_declaration      >>confdefs.h
2644  echo '#endif'             >>confdefs.h
2645fi
2646
2647else
2648  echo "$as_me: failed program was:" >&5
2649sed 's/^/| /' conftest.$ac_ext >&5
2650
2651fi
2652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2653ac_ext=c
2654ac_cpp='$CPP $CPPFLAGS'
2655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2657ac_compiler_gnu=$ac_cv_c_compiler_gnu
2658
2659if test -z "$CC" ; then
2660  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2661echo "$as_me: error: Failed to find a C compiler!" >&2;}
2662   { (exit 1); exit 1; }; }
2663fi
2664# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2665case "$CC" in
2666  clang* ) ;;
2667  cl* | */cl* | CL* | */CL* )
2668    if test "$ac_cv_prog_cc_g" = yes ; then
2669      ac_cv_prog_cc_g=no
2670      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2671echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2672    fi ;;
2673  * )
2674    CYGPATH_W=echo
2675    ;;
2676esac
2677CFLAGS="$save_cflags"
2678
2679# add automake conditional so we can recognize cl compiler in makefile
2680coin_cc_is_cl=false
2681case "$CC" in
2682  clang* ) ;;
2683  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2684    coin_cc_is_cl=true
2685    ;;
2686esac
2687
2688
2689if test $coin_cc_is_cl = true; then
2690  COIN_CC_IS_CL_TRUE=
2691  COIN_CC_IS_CL_FALSE='#'
2692else
2693  COIN_CC_IS_CL_TRUE='#'
2694  COIN_CC_IS_CL_FALSE=
2695fi
2696
2697
2698# Check if a project specific CFLAGS variable has been set
2699if test x$COIN_PRJCT != x; then
2700  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2701  if test x$coin_tmp = xset; then
2702    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2703  fi
2704fi
2705
2706if test x"$CFLAGS" = x; then
2707
2708  coin_add_cflags=
2709  coin_opt_cflags=
2710  coin_dbg_cflags=
2711  coin_warn_cflags=
2712
2713  if test "$GCC" = "yes"; then
2714    case "$CC" in
2715      icc* | */icc*)
2716        ;;
2717      *)
2718        coin_opt_cflags="-O3"
2719        coin_add_cflags="-pipe"
2720        coin_dbg_cflags="-g -O0"
2721        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2722        case $build in
2723          *-darwin*)
2724            ;;
2725          *)
2726            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2727            ;;
2728        esac
2729        case $enable_doscompile in
2730          mingw)
2731            CFLAGS="-mno-cygwin"
2732            cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h.  */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h.  */
2738
2739int
2740main ()
2741{
2742int i=0; i++;
2743  ;
2744  return 0;
2745}
2746_ACEOF
2747rm -f conftest.$ac_objext conftest$ac_exeext
2748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2749  (eval $ac_link) 2>conftest.er1
2750  ac_status=$?
2751  grep -v '^ *+' conftest.er1 >conftest.err
2752  rm -f conftest.er1
2753  cat conftest.err >&5
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); } &&
2756         { ac_try='test -z "$ac_c_werror_flag"
2757                         || test ! -s conftest.err'
2758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759  (eval $ac_try) 2>&5
2760  ac_status=$?
2761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762  (exit $ac_status); }; } &&
2763         { ac_try='test -s conftest$ac_exeext'
2764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765  (eval $ac_try) 2>&5
2766  ac_status=$?
2767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768  (exit $ac_status); }; }; then
2769  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2770else
2771  echo "$as_me: failed program was:" >&5
2772sed 's/^/| /' conftest.$ac_ext >&5
2773
2774fi
2775rm -f conftest.err conftest.$ac_objext \
2776      conftest$ac_exeext conftest.$ac_ext
2777            CFLAGS=
2778          ;;
2779        esac
2780    esac
2781  fi
2782  if test -z "$coin_opt_cflags"; then
2783    case $build in
2784      *-cygwin* | *-mingw*)
2785        case "$CC" in
2786          clang* ) ;;
2787          cl* | */cl* | CL* | */CL*)
2788            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2789              coin_opt_cflags='-MD -O2'
2790              coin_dbg_cflags='-MDd'
2791            else
2792              coin_opt_cflags='-MT -O2'
2793              coin_dbg_cflags='-MTd'
2794            fi
2795            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2796            ;;
2797          icl* | */icl* | ICL* | */ICL*)
2798            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2799              coin_opt_cflags='-MD -Ox'
2800              coin_dbg_cflags='-MDd -debug'
2801            else
2802              coin_opt_cflags='-MT -Ox'
2803              coin_dbg_cflags='-MTd -debug'
2804            fi
2805            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2806            ;;
2807        esac
2808        ;;
2809      *-linux-*)
2810        case "$CC" in
2811          icc* | */icc*)
2812            coin_opt_cflags="-O3 -ip -mp1"
2813            coin_add_cflags=""
2814            coin_dbg_cflags="-g"
2815            # Check if -i_dynamic is necessary (for new glibc library)
2816            CFLAGS=
2817            cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h.  */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h.  */
2823
2824int
2825main ()
2826{
2827int i=0; i++;
2828  ;
2829  return 0;
2830}
2831_ACEOF
2832rm -f conftest.$ac_objext conftest$ac_exeext
2833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834  (eval $ac_link) 2>conftest.er1
2835  ac_status=$?
2836  grep -v '^ *+' conftest.er1 >conftest.err
2837  rm -f conftest.er1
2838  cat conftest.err >&5
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); } &&
2841         { ac_try='test -z "$ac_c_werror_flag"
2842                         || test ! -s conftest.err'
2843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844  (eval $ac_try) 2>&5
2845  ac_status=$?
2846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847  (exit $ac_status); }; } &&
2848         { ac_try='test -s conftest$ac_exeext'
2849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850  (eval $ac_try) 2>&5
2851  ac_status=$?
2852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853  (exit $ac_status); }; }; then
2854  :
2855else
2856  echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859coin_add_cflags="-i_dynamic $coin_add_cflags"
2860fi
2861rm -f conftest.err conftest.$ac_objext \
2862      conftest$ac_exeext conftest.$ac_ext
2863            ;;
2864          pgcc* | */pgcc*)
2865            coin_opt_cflags="-fast"
2866            coin_add_cflags="-Kieee -pc 64"
2867            coin_dbg_cflags="-g"
2868            ;;
2869        esac
2870        ;;
2871      *-ibm-*)
2872        case "$CC" in
2873          xlc* | */xlc* | mpxlc* | */mpxlc*)
2874            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2875            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2876            coin_dbg_cflags="-g"
2877          ;;
2878        esac
2879        ;;
2880      *-hp-*)
2881        coin_opt_cflags="-O"
2882        coin_add_cflags="-Ae"
2883        coin_dbg_cflags="-g"
2884        ;;
2885      *-*-solaris*)
2886        coin_opt_cflags="-xO4"
2887        coin_dbg_cflags="-g"
2888        ;;
2889      *-sgi-*)
2890        coin_opt_cflags="-O -OPT:Olimit=0"
2891        coin_dbg_cflags="-g"
2892        ;;
2893    esac
2894  fi
2895
2896  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2897    coin_dbg_cflags="-g"
2898  fi
2899
2900  if test -z "$coin_opt_cflags"; then
2901    # Try if -O option works if nothing else is set
2902    CFLAGS="-O"
2903    cat >conftest.$ac_ext <<_ACEOF
2904/* confdefs.h.  */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h.  */
2909
2910int
2911main ()
2912{
2913int i=0; i++;
2914  ;
2915  return 0;
2916}
2917_ACEOF
2918rm -f conftest.$ac_objext conftest$ac_exeext
2919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2920  (eval $ac_link) 2>conftest.er1
2921  ac_status=$?
2922  grep -v '^ *+' conftest.er1 >conftest.err
2923  rm -f conftest.er1
2924  cat conftest.err >&5
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); } &&
2927         { ac_try='test -z "$ac_c_werror_flag"
2928                         || test ! -s conftest.err'
2929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930  (eval $ac_try) 2>&5
2931  ac_status=$?
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); }; } &&
2934         { ac_try='test -s conftest$ac_exeext'
2935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936  (eval $ac_try) 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }; }; then
2940  coin_opt_cflags="-O"
2941else
2942  echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945fi
2946rm -f conftest.err conftest.$ac_objext \
2947      conftest$ac_exeext conftest.$ac_ext
2948  fi
2949
2950  # if PM doesn't want the warning messages, take them out
2951  if test x"$coin_skip_warn_cflags" = xyes; then
2952    coin_warn_cflags=
2953  fi
2954
2955  if test x${DBG_CFLAGS+set} != xset; then
2956    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2957  fi
2958  if test x${OPT_CFLAGS+set} != xset; then
2959    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2960  fi
2961
2962  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2963  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2964
2965  if test "$coin_debug_compile" = "true"; then
2966    CFLAGS="$DBG_CFLAGS"
2967  else
2968    CFLAGS="$OPT_CFLAGS"
2969  fi
2970else
2971  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2972  if test x${DBG_CFLAGS+set} != xset; then
2973    DBG_CFLAGS="$CFLAGS"
2974  fi
2975  if test x${OPT_CFLAGS+set} != xset; then
2976    OPT_CFLAGS="$CFLAGS"
2977  fi
2978fi
2979
2980# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2981
2982case "$CFLAGS" in
2983  *-mno-cygwin*)
2984    if test x${CPPFLAGS+set} != xset ; then
2985      CPPFLAGS="-mno-cygwin"
2986    else
2987      case "$CPPFLAGS" in
2988        *-mno-cygwin*)
2989          ;;
2990        *)
2991          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2992          ;;
2993      esac
2994    fi ;;
2995esac
2996
2997# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2998if test x$COIN_PRJCT != x; then
2999  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3000fi
3001
3002# Try if CFLAGS works
3003save_CFLAGS="$CFLAGS"
3004cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h.  */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h.  */
3010
3011int
3012main ()
3013{
3014int i=0; i++;
3015  ;
3016  return 0;
3017}
3018_ACEOF
3019rm -f conftest.$ac_objext conftest$ac_exeext
3020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3021  (eval $ac_link) 2>conftest.er1
3022  ac_status=$?
3023  grep -v '^ *+' conftest.er1 >conftest.err
3024  rm -f conftest.er1
3025  cat conftest.err >&5
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); } &&
3028         { ac_try='test -z "$ac_c_werror_flag"
3029                         || test ! -s conftest.err'
3030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031  (eval $ac_try) 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; } &&
3035         { ac_try='test -s conftest$ac_exeext'
3036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037  (eval $ac_try) 2>&5
3038  ac_status=$?
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }; }; then
3041  :
3042else
3043  echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046CFLAGS=
3047fi
3048rm -f conftest.err conftest.$ac_objext \
3049      conftest$ac_exeext conftest.$ac_ext
3050if test -z "$CFLAGS"; then
3051  { 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
3052echo "$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;}
3053  CFLAGS='-O'
3054  cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h.  */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h.  */
3060
3061int
3062main ()
3063{
3064int i=0; i++;
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext conftest$ac_exeext
3070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071  (eval $ac_link) 2>conftest.er1
3072  ac_status=$?
3073  grep -v '^ *+' conftest.er1 >conftest.err
3074  rm -f conftest.er1
3075  cat conftest.err >&5
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); } &&
3078         { ac_try='test -z "$ac_c_werror_flag"
3079                         || test ! -s conftest.err'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; } &&
3085         { ac_try='test -s conftest$ac_exeext'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; }; then
3091  :
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096CFLAGS=
3097fi
3098rm -f conftest.err conftest.$ac_objext \
3099      conftest$ac_exeext conftest.$ac_ext
3100  if test -z "$CFLAGS"; then
3101    { 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
3102echo "$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;}
3103  fi
3104fi
3105
3106{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3107echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3108
3109
3110if test x"$MPICC" = x; then :; else
3111  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3112echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3113  CC="$MPICC"
3114fi
3115
3116# Correct the LD variable if we are using the MS or Intel-windows compiler
3117case "$CC" in
3118  clang* ) ;;
3119  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3120    case $build in
3121  *-mingw*)
3122    if test "${LD+set}" = set; then :; else
3123      LD=link
3124    fi
3125    ;;
3126 esac
3127 case $enable_doscompile in
3128   msvc)
3129     if test "x${LD+set}" = xset; then :; else
3130       LD=link
3131     fi
3132     ;;
3133 esac
3134
3135    ;;
3136esac
3137
3138ac_ext=c
3139ac_cpp='$CPP $CPPFLAGS'
3140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143
3144
3145
3146# Get the name of the C++ compiler and appropriate compiler options
3147
3148 #Let's try if that overcomes configuration problem with VC++ 6.0
3149
3150ac_ext=cc
3151ac_cpp='$CXXCPP $CPPFLAGS'
3152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3155
3156
3157
3158
3159
3160
3161
3162coin_has_cxx=yes
3163
3164save_cxxflags="$CXXFLAGS"
3165# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3166case $build in
3167  *-cygwin* | *-mingw*)
3168             if test "$enable_doscompile" = msvc ; then
3169               comps="icl cl"
3170             else
3171               comps="g++ cl"
3172             fi ;;
3173  *-*-solaris*)
3174             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3175  *-darwin*) comps="g++ c++ CC" ;;
3176  *-linux-gnu*)
3177             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3178          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3179esac
3180
3181# We delete the cached value, since the test might not have been
3182# performed with our choice of compilers earlier
3183$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3184# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3185ac_ext=cc
3186ac_cpp='$CXXCPP $CPPFLAGS'
3187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3190if test -n "$ac_tool_prefix"; then
3191  for ac_prog in $CCC $comps
3192  do
3193    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3194set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3195echo "$as_me:$LINENO: checking for $ac_word" >&5
3196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3197if test "${ac_cv_prog_CXX+set}" = set; then
3198  echo $ECHO_N "(cached) $ECHO_C" >&6
3199else
3200  if test -n "$CXX"; then
3201  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3202else
3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH
3205do
3206  IFS=$as_save_IFS
3207  test -z "$as_dir" && as_dir=.
3208  for ac_exec_ext in '' $ac_executable_extensions; do
3209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212    break 2
3213  fi
3214done
3215done
3216
3217fi
3218fi
3219CXX=$ac_cv_prog_CXX
3220if test -n "$CXX"; then
3221  echo "$as_me:$LINENO: result: $CXX" >&5
3222echo "${ECHO_T}$CXX" >&6
3223else
3224  echo "$as_me:$LINENO: result: no" >&5
3225echo "${ECHO_T}no" >&6
3226fi
3227
3228    test -n "$CXX" && break
3229  done
3230fi
3231if test -z "$CXX"; then
3232  ac_ct_CXX=$CXX
3233  for ac_prog in $CCC $comps
3234do
3235  # Extract the first word of "$ac_prog", so it can be a program name with args.
3236set dummy $ac_prog; ac_word=$2
3237echo "$as_me:$LINENO: checking for $ac_word" >&5
3238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3239if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3240  echo $ECHO_N "(cached) $ECHO_C" >&6
3241else
3242  if test -n "$ac_ct_CXX"; then
3243  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3244else
3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246for as_dir in $PATH
3247do
3248  IFS=$as_save_IFS
3249  test -z "$as_dir" && as_dir=.
3250  for ac_exec_ext in '' $ac_executable_extensions; do
3251  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252    ac_cv_prog_ac_ct_CXX="$ac_prog"
3253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254    break 2
3255  fi
3256done
3257done
3258
3259fi
3260fi
3261ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3262if test -n "$ac_ct_CXX"; then
3263  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3264echo "${ECHO_T}$ac_ct_CXX" >&6
3265else
3266  echo "$as_me:$LINENO: result: no" >&5
3267echo "${ECHO_T}no" >&6
3268fi
3269
3270  test -n "$ac_ct_CXX" && break
3271done
3272test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3273
3274  CXX=$ac_ct_CXX
3275fi
3276
3277
3278# Provide some information about the compiler.
3279echo "$as_me:$LINENO:" \
3280     "checking for C++ compiler version" >&5
3281ac_compiler=`set X $ac_compile; echo $2`
3282{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3283  (eval $ac_compiler --version </dev/null >&5) 2>&5
3284  ac_status=$?
3285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286  (exit $ac_status); }
3287{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3288  (eval $ac_compiler -v </dev/null >&5) 2>&5
3289  ac_status=$?
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); }
3292{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3293  (eval $ac_compiler -V </dev/null >&5) 2>&5
3294  ac_status=$?
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); }
3297
3298echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3299echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3300if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3301  echo $ECHO_N "(cached) $ECHO_C" >&6
3302else
3303  cat >conftest.$ac_ext <<_ACEOF
3304/* confdefs.h.  */
3305_ACEOF
3306cat confdefs.h >>conftest.$ac_ext
3307cat >>conftest.$ac_ext <<_ACEOF
3308/* end confdefs.h.  */
3309
3310int
3311main ()
3312{
3313#ifndef __GNUC__
3314       choke me
3315#endif
3316
3317  ;
3318  return 0;
3319}
3320_ACEOF
3321rm -f conftest.$ac_objext
3322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3323  (eval $ac_compile) 2>conftest.er1
3324  ac_status=$?
3325  grep -v '^ *+' conftest.er1 >conftest.err
3326  rm -f conftest.er1
3327  cat conftest.err >&5
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); } &&
3330         { ac_try='test -z "$ac_cxx_werror_flag"
3331                         || test ! -s conftest.err'
3332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3333  (eval $ac_try) 2>&5
3334  ac_status=$?
3335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336  (exit $ac_status); }; } &&
3337         { ac_try='test -s conftest.$ac_objext'
3338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3339  (eval $ac_try) 2>&5
3340  ac_status=$?
3341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342  (exit $ac_status); }; }; then
3343  ac_compiler_gnu=yes
3344else
3345  echo "$as_me: failed program was:" >&5
3346sed 's/^/| /' conftest.$ac_ext >&5
3347
3348ac_compiler_gnu=no
3349fi
3350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3351ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3352
3353fi
3354echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3355echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3356GXX=`test $ac_compiler_gnu = yes && echo yes`
3357ac_test_CXXFLAGS=${CXXFLAGS+set}
3358ac_save_CXXFLAGS=$CXXFLAGS
3359CXXFLAGS="-g"
3360echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3361echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3362if test "${ac_cv_prog_cxx_g+set}" = set; then
3363  echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365  cat >conftest.$ac_ext <<_ACEOF
3366/* confdefs.h.  */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h.  */
3371
3372int
3373main ()
3374{
3375
3376  ;
3377  return 0;
3378}
3379_ACEOF
3380rm -f conftest.$ac_objext
3381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3382  (eval $ac_compile) 2>conftest.er1
3383  ac_status=$?
3384  grep -v '^ *+' conftest.er1 >conftest.err
3385  rm -f conftest.er1
3386  cat conftest.err >&5
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); } &&
3389         { ac_try='test -z "$ac_cxx_werror_flag"
3390                         || test ! -s conftest.err'
3391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392  (eval $ac_try) 2>&5
3393  ac_status=$?
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); }; } &&
3396         { ac_try='test -s conftest.$ac_objext'
3397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398  (eval $ac_try) 2>&5
3399  ac_status=$?
3400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3401  (exit $ac_status); }; }; then
3402  ac_cv_prog_cxx_g=yes
3403else
3404  echo "$as_me: failed program was:" >&5
3405sed 's/^/| /' conftest.$ac_ext >&5
3406
3407ac_cv_prog_cxx_g=no
3408fi
3409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410fi
3411echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3412echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3413if test "$ac_test_CXXFLAGS" = set; then
3414  CXXFLAGS=$ac_save_CXXFLAGS
3415elif test $ac_cv_prog_cxx_g = yes; then
3416  if test "$GXX" = yes; then
3417    CXXFLAGS="-g -O2"
3418  else
3419    CXXFLAGS="-g"
3420  fi
3421else
3422  if test "$GXX" = yes; then
3423    CXXFLAGS="-O2"
3424  else
3425    CXXFLAGS=
3426  fi
3427fi
3428for ac_declaration in \
3429   '' \
3430   'extern "C" void std::exit (int) throw (); using std::exit;' \
3431   'extern "C" void std::exit (int); using std::exit;' \
3432   'extern "C" void exit (int) throw ();' \
3433   'extern "C" void exit (int);' \
3434   'void exit (int);'
3435do
3436  cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h.  */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h.  */
3442$ac_declaration
3443#include <stdlib.h>
3444int
3445main ()
3446{
3447exit (42);
3448  ;
3449  return 0;
3450}
3451_ACEOF
3452rm -f conftest.$ac_objext
3453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3454  (eval $ac_compile) 2>conftest.er1
3455  ac_status=$?
3456  grep -v '^ *+' conftest.er1 >conftest.err
3457  rm -f conftest.er1
3458  cat conftest.err >&5
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); } &&
3461         { ac_try='test -z "$ac_cxx_werror_flag"
3462                         || test ! -s conftest.err'
3463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3464  (eval $ac_try) 2>&5
3465  ac_status=$?
3466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467  (exit $ac_status); }; } &&
3468         { ac_try='test -s conftest.$ac_objext'
3469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470  (eval $ac_try) 2>&5
3471  ac_status=$?
3472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473  (exit $ac_status); }; }; then
3474  :
3475else
3476  echo "$as_me: failed program was:" >&5
3477sed 's/^/| /' conftest.$ac_ext >&5
3478
3479continue
3480fi
3481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3482  cat >conftest.$ac_ext <<_ACEOF
3483/* confdefs.h.  */
3484_ACEOF
3485cat confdefs.h >>conftest.$ac_ext
3486cat >>conftest.$ac_ext <<_ACEOF
3487/* end confdefs.h.  */
3488$ac_declaration
3489int
3490main ()
3491{
3492exit (42);
3493  ;
3494  return 0;
3495}
3496_ACEOF
3497rm -f conftest.$ac_objext
3498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499  (eval $ac_compile) 2>conftest.er1
3500  ac_status=$?
3501  grep -v '^ *+' conftest.er1 >conftest.err
3502  rm -f conftest.er1
3503  cat conftest.err >&5
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); } &&
3506         { ac_try='test -z "$ac_cxx_werror_flag"
3507                         || test ! -s conftest.err'
3508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509  (eval $ac_try) 2>&5
3510  ac_status=$?
3511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512  (exit $ac_status); }; } &&
3513         { ac_try='test -s conftest.$ac_objext'
3514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3515  (eval $ac_try) 2>&5
3516  ac_status=$?
3517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518  (exit $ac_status); }; }; then
3519  break
3520else
3521  echo "$as_me: failed program was:" >&5
3522sed 's/^/| /' conftest.$ac_ext >&5
3523
3524fi
3525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3526done
3527rm -f conftest*
3528if test -n "$ac_declaration"; then
3529  echo '#ifdef __cplusplus' >>confdefs.h
3530  echo $ac_declaration      >>confdefs.h
3531  echo '#endif'             >>confdefs.h
3532fi
3533
3534ac_ext=cc
3535ac_cpp='$CXXCPP $CPPFLAGS'
3536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3539
3540
3541#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3542#thus, we test here whether $CXX is actually working
3543ac_ext=cc
3544ac_cpp='$CXXCPP $CPPFLAGS'
3545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3548
3549echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3550echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3551cat >conftest.$ac_ext <<_ACEOF
3552/* confdefs.h.  */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h.  */
3557
3558int
3559main ()
3560{
3561int i=0;
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566rm -f conftest.$ac_objext
3567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568  (eval $ac_compile) 2>conftest.er1
3569  ac_status=$?
3570  grep -v '^ *+' conftest.er1 >conftest.err
3571  rm -f conftest.er1
3572  cat conftest.err >&5
3573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574  (exit $ac_status); } &&
3575         { ac_try='test -z "$ac_cxx_werror_flag"
3576                         || test ! -s conftest.err'
3577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578  (eval $ac_try) 2>&5
3579  ac_status=$?
3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581  (exit $ac_status); }; } &&
3582         { ac_try='test -s conftest.$ac_objext'
3583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584  (eval $ac_try) 2>&5
3585  ac_status=$?
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); }; }; then
3588  echo "$as_me:$LINENO: result: yes" >&5
3589echo "${ECHO_T}yes" >&6
3590else
3591  echo "$as_me: failed program was:" >&5
3592sed 's/^/| /' conftest.$ac_ext >&5
3593
3594echo "$as_me:$LINENO: result: no" >&5
3595echo "${ECHO_T}no" >&6
3596   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3597echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3598   { (exit 1); exit 1; }; }
3599
3600fi
3601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3602ac_ext=cc
3603ac_cpp='$CXXCPP $CPPFLAGS'
3604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3607
3608
3609coin_cxx_is_cl=false
3610# It seems that we need to cleanup something here for the Windows
3611case "$CXX" in
3612  clang* ) ;;
3613  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3614    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3615    mv confdefs.hh confdefs.h
3616    coin_cxx_is_cl=true
3617    ;;
3618esac
3619
3620# add automake conditional so we can recognize cl compiler in makefile
3621
3622
3623if test $coin_cxx_is_cl = true; then
3624  COIN_CXX_IS_CL_TRUE=
3625  COIN_CXX_IS_CL_FALSE='#'
3626else
3627  COIN_CXX_IS_CL_TRUE='#'
3628  COIN_CXX_IS_CL_FALSE=
3629fi
3630
3631
3632# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3633case "$CXX" in
3634  clang* ) ;;
3635  cl* | */cl* | CL* | */CL* )
3636    if test "$ac_cv_prog_cxx_g" = yes ; then
3637      ac_cv_prog_cxx_g=no
3638      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3639echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3640    fi ;;
3641  * )
3642    CYGPATH_W=echo
3643    ;;
3644esac
3645CXXFLAGS="$save_cxxflags"
3646
3647# Check if a project specific CXXFLAGS variable has been set
3648if test x$COIN_PRJCT != x; then
3649  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3650  if test x$coin_tmp = xset; then
3651    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3652  fi
3653fi
3654
3655if test x"$CXXFLAGS" = x; then
3656
3657# ToDo decide whether we want -DNDEBUG for optimization
3658  coin_add_cxxflags=
3659  coin_opt_cxxflags=
3660  coin_dbg_cxxflags=
3661  coin_warn_cxxflags=
3662
3663  if test "$GXX" = "yes"; then
3664    case "$CXX" in
3665      icpc* | */icpc*)
3666        ;;
3667      *)
3668# ToDo decide about unroll-loops
3669        coin_opt_cxxflags="-O3"
3670        coin_add_cxxflags="-pipe"
3671        coin_dbg_cxxflags="-g -O0"
3672        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3673        case $build in
3674          *-darwin*)
3675            ;;
3676          *)
3677            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3678            ;;
3679        esac
3680
3681        case $enable_doscompile in
3682          mingw)
3683            CXXFLAGS="-mno-cygwin"
3684            cat >conftest.$ac_ext <<_ACEOF
3685/* confdefs.h.  */
3686_ACEOF
3687cat confdefs.h >>conftest.$ac_ext
3688cat >>conftest.$ac_ext <<_ACEOF
3689/* end confdefs.h.  */
3690
3691int
3692main ()
3693{
3694int i=0; i++;
3695  ;
3696  return 0;
3697}
3698_ACEOF
3699rm -f conftest.$ac_objext conftest$ac_exeext
3700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3701  (eval $ac_link) 2>conftest.er1
3702  ac_status=$?
3703  grep -v '^ *+' conftest.er1 >conftest.err
3704  rm -f conftest.er1
3705  cat conftest.err >&5
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); } &&
3708         { ac_try='test -z "$ac_cxx_werror_flag"
3709                         || test ! -s conftest.err'
3710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3711  (eval $ac_try) 2>&5
3712  ac_status=$?
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); }; } &&
3715         { ac_try='test -s conftest$ac_exeext'
3716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717  (eval $ac_try) 2>&5
3718  ac_status=$?
3719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720  (exit $ac_status); }; }; then
3721  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3722else
3723  echo "$as_me: failed program was:" >&5
3724sed 's/^/| /' conftest.$ac_ext >&5
3725
3726fi
3727rm -f conftest.err conftest.$ac_objext \
3728      conftest$ac_exeext conftest.$ac_ext
3729            CXXFLAGS=
3730          ;;
3731        esac
3732    esac
3733  fi
3734
3735# Note that we do not need to cover GCC in the following tests.
3736
3737  if test -z "$coin_opt_cxxflags"; then
3738    case $build in
3739      *-cygwin* | *-mingw*)
3740        case "$CXX" in
3741          clang* ) ;;
3742          cl* | */cl* | CL* | */CL*)
3743            # The MT and MTd options are mutually exclusive
3744            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3745               coin_opt_cxxflags='-MD -O2'
3746               coin_dbg_cxxflags='-MDd'
3747            else
3748               coin_opt_cxxflags='-MT -O2'
3749               coin_dbg_cxxflags='-MTd'
3750            fi
3751            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3752            ;;
3753          icl* | */icl* | ICL* | */ICL*)
3754          # The MT and MTd options are mutually exclusive
3755            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3756              coin_opt_cxxflags='-MD -Ox'
3757              coin_dbg_cxxflags='-MDd -debug'
3758            else
3759              coin_opt_cxxflags='-MT -Ox'
3760              coin_dbg_cxxflags='-MTd -debug'
3761            fi
3762            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3763            ;;
3764        esac
3765        ;;
3766      *-linux-*)
3767        case "$CXX" in
3768          icpc* | */icpc*)
3769            coin_opt_cxxflags="-O3 -ip -mp1"
3770            coin_add_cxxflags=""
3771            coin_dbg_cxxflags="-g"
3772            # Check if -i_dynamic is necessary (for new glibc library)
3773            CXXFLAGS=
3774            cat >conftest.$ac_ext <<_ACEOF
3775/* confdefs.h.  */
3776_ACEOF
3777cat confdefs.h >>conftest.$ac_ext
3778cat >>conftest.$ac_ext <<_ACEOF
3779/* end confdefs.h.  */
3780
3781int
3782main ()
3783{
3784int i=0; i++;
3785  ;
3786  return 0;
3787}
3788_ACEOF
3789rm -f conftest.$ac_objext conftest$ac_exeext
3790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791  (eval $ac_link) 2>conftest.er1
3792  ac_status=$?
3793  grep -v '^ *+' conftest.er1 >conftest.err
3794  rm -f conftest.er1
3795  cat conftest.err >&5
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); } &&
3798         { ac_try='test -z "$ac_cxx_werror_flag"
3799                         || test ! -s conftest.err'
3800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801  (eval $ac_try) 2>&5
3802  ac_status=$?
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); }; } &&
3805         { ac_try='test -s conftest$ac_exeext'
3806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807  (eval $ac_try) 2>&5
3808  ac_status=$?
3809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810  (exit $ac_status); }; }; then
3811  :
3812else
3813  echo "$as_me: failed program was:" >&5
3814sed 's/^/| /' conftest.$ac_ext >&5
3815
3816coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3817fi
3818rm -f conftest.err conftest.$ac_objext \
3819      conftest$ac_exeext conftest.$ac_ext
3820            ;;
3821          pgCC* | */pgCC*)
3822            coin_opt_cxxflags="-fast"
3823            coin_add_cxxflags="-Kieee -pc 64"
3824            coin_dbg_cxxflags="-g"
3825            ;;
3826        esac
3827        ;;
3828      *-ibm-*)
3829        case "$CXX" in
3830          xlC* | */xlC* | mpxlC* | */mpxlC*)
3831            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3832            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3833            coin_dbg_cxxflags="-g"
3834            ;;
3835        esac
3836        ;;
3837      *-hp-*)
3838        case "$CXX" in
3839          aCC* | */aCC* )
3840            coin_opt_cxxflags="-O"
3841            coin_add_cxxflags="-AA"
3842            coin_dbg_cxxflags="-g"
3843            ;;
3844        esac
3845        ;;
3846      *-*-solaris*)
3847          coin_opt_cxxflags="-O4"
3848          coin_dbg_cxxflags="-g"
3849        ;;
3850    esac
3851  fi
3852
3853# Generic flag settings. If these don't work, add a case above.
3854
3855  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3856    coin_dbg_cxxflags="-g"
3857  fi
3858
3859  if test -z "$coin_opt_cxxflags"; then
3860    # Try if -O option works if nothing else is set
3861    CXXFLAGS=-O
3862    cat >conftest.$ac_ext <<_ACEOF
3863/* confdefs.h.  */
3864_ACEOF
3865cat confdefs.h >>conftest.$ac_ext
3866cat >>conftest.$ac_ext <<_ACEOF
3867/* end confdefs.h.  */
3868
3869int
3870main ()
3871{
3872int i=0; i++;
3873  ;
3874  return 0;
3875}
3876_ACEOF
3877rm -f conftest.$ac_objext conftest$ac_exeext
3878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3879  (eval $ac_link) 2>conftest.er1
3880  ac_status=$?
3881  grep -v '^ *+' conftest.er1 >conftest.err
3882  rm -f conftest.er1
3883  cat conftest.err >&5
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); } &&
3886         { ac_try='test -z "$ac_cxx_werror_flag"
3887                         || test ! -s conftest.err'
3888  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3889  (eval $ac_try) 2>&5
3890  ac_status=$?
3891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892  (exit $ac_status); }; } &&
3893         { ac_try='test -s conftest$ac_exeext'
3894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895  (eval $ac_try) 2>&5
3896  ac_status=$?
3897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898  (exit $ac_status); }; }; then
3899  coin_opt_cxxflags="-O"
3900else
3901  echo "$as_me: failed program was:" >&5
3902sed 's/^/| /' conftest.$ac_ext >&5
3903
3904fi
3905rm -f conftest.err conftest.$ac_objext \
3906      conftest$ac_exeext conftest.$ac_ext
3907  fi
3908
3909  # if PM doesn't want the warning messages, take them out
3910  if test x"$coin_skip_warn_cxxflags" = xyes; then
3911    coin_warn_cxxflags=
3912  fi
3913
3914# Do final setup of flags based on values determined above.
3915
3916  if test x${DBG_CXXFLAGS+set} != xset; then
3917    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3918  fi
3919  if test x${OPT_CXXFLAGS+set} != xset; then
3920    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3921  fi
3922
3923  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3924  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3925
3926  if test "$coin_debug_compile" = "true"; then
3927    CXXFLAGS="$DBG_CXXFLAGS"
3928  else
3929    CXXFLAGS="$OPT_CXXFLAGS"
3930  fi
3931
3932# Handle the case where CXXFLAGS was set externally.
3933else
3934  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3935  if test x${DBG_CXXFLAGS+set} != xset; then
3936    DBG_CXXFLAGS="$CXXFLAGS"
3937  fi
3938  if test x${OPT_CXXFLAGS+set} != xset; then
3939    OPT_CXXFLAGS="$CXXFLAGS"
3940  fi
3941fi
3942
3943# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3944
3945case "$CXXFLAGS" in
3946  *-mno-cygwin*)
3947    if test x${CPPFLAGS+set} != xset ; then
3948      CPPFLAGS="-mno-cygwin"
3949    else
3950      case "$CPPFLAGS" in
3951        *-mno-cygwin*)
3952          ;;
3953        *)
3954          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3955          ;;
3956      esac
3957    fi ;;
3958esac
3959
3960# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3961if test x$COIN_PRJCT != x; then
3962  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3963fi
3964
3965# Try if CXXFLAGS works
3966save_CXXFLAGS="$CXXFLAGS"
3967cat >conftest.$ac_ext <<_ACEOF
3968/* confdefs.h.  */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
3972/* end confdefs.h.  */
3973
3974int
3975main ()
3976{
3977int i=0; i++;
3978  ;
3979  return 0;
3980}
3981_ACEOF
3982rm -f conftest.$ac_objext conftest$ac_exeext
3983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3984  (eval $ac_link) 2>conftest.er1
3985  ac_status=$?
3986  grep -v '^ *+' conftest.er1 >conftest.err
3987  rm -f conftest.er1
3988  cat conftest.err >&5
3989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990  (exit $ac_status); } &&
3991         { ac_try='test -z "$ac_cxx_werror_flag"
3992                         || test ! -s conftest.err'
3993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994  (eval $ac_try) 2>&5
3995  ac_status=$?
3996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997  (exit $ac_status); }; } &&
3998         { ac_try='test -s conftest$ac_exeext'
3999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000  (eval $ac_try) 2>&5
4001  ac_status=$?
4002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003  (exit $ac_status); }; }; then
4004  :
4005else
4006  echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009CXXFLAGS=
4010fi
4011rm -f conftest.err conftest.$ac_objext \
4012      conftest$ac_exeext conftest.$ac_ext
4013if test -z "$CXXFLAGS"; then
4014  { 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
4015echo "$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;}
4016  CXXFLAGS='-O'
4017  cat >conftest.$ac_ext <<_ACEOF
4018/* confdefs.h.  */
4019_ACEOF
4020cat confdefs.h >>conftest.$ac_ext
4021cat >>conftest.$ac_ext <<_ACEOF
4022/* end confdefs.h.  */
4023
4024int
4025main ()
4026{
4027int i=0; i++;
4028  ;
4029  return 0;
4030}
4031_ACEOF
4032rm -f conftest.$ac_objext conftest$ac_exeext
4033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4034  (eval $ac_link) 2>conftest.er1
4035  ac_status=$?
4036  grep -v '^ *+' conftest.er1 >conftest.err
4037  rm -f conftest.er1
4038  cat conftest.err >&5
4039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040  (exit $ac_status); } &&
4041         { ac_try='test -z "$ac_cxx_werror_flag"
4042                         || test ! -s conftest.err'
4043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044  (eval $ac_try) 2>&5
4045  ac_status=$?
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); }; } &&
4048         { ac_try='test -s conftest$ac_exeext'
4049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4050  (eval $ac_try) 2>&5
4051  ac_status=$?
4052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053  (exit $ac_status); }; }; then
4054  :
4055else
4056  echo "$as_me: failed program was:" >&5
4057sed 's/^/| /' conftest.$ac_ext >&5
4058
4059CXXFLAGS=
4060fi
4061rm -f conftest.err conftest.$ac_objext \
4062      conftest$ac_exeext conftest.$ac_ext
4063  if test -z "$CXXFLAGS"; then
4064    { 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
4065echo "$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;}
4066  fi
4067fi
4068
4069{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4070echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4071
4072
4073if test x"$MPICXX" = x; then :; else
4074  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4075echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4076  CXX="$MPICXX"
4077fi
4078
4079# correct the LD variable in a mingw build with MS or intel compiler
4080case "$CXX" in
4081  clang* ) ;;
4082  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4083    case $build in
4084  *-mingw*)
4085    if test "${LD+set}" = set; then :; else
4086      LD=link
4087    fi
4088    ;;
4089 esac
4090 case $enable_doscompile in
4091   msvc)
4092     if test "x${LD+set}" = xset; then :; else
4093       LD=link
4094     fi
4095     ;;
4096 esac
4097
4098    ;;
4099esac
4100
4101ac_ext=c
4102ac_cpp='$CPP $CPPFLAGS'
4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106
4107
4108
4109# Get the name of the Fortran compiler and appropriate compiler options
4110case $build in
4111  *-cygwin* | *-mingw*)
4112     if test "$enable_doscompile" = msvc ; then
4113       coin_f77_comps="ifort fl32 compile_f2c"
4114     else
4115       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4116     fi ;;
4117  *-*-solaris*)
4118     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4119  *-linux-gnu*)
4120     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4121  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4122 esac
4123
4124
4125
4126
4127
4128
4129ac_ext=f
4130ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4131ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4133
4134
4135
4136
4137
4138
4139coin_has_f77=yes
4140
4141save_fflags="$FFLAGS"
4142
4143# We delete the cached value, since the test might not have been
4144# performed with our choice of compilers earlier
4145$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4146
4147# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4148# coin_f77_comps to see if there's a program that matches one of the names.
4149# If there's no such program, F77 = unavailable. If we match the name,
4150# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4151# compiler.
4152# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4153
4154
4155{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4156echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4157if test -n "$ac_tool_prefix"; then
4158  for ac_prog in $coin_f77_comps
4159  do
4160    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4162echo "$as_me:$LINENO: checking for $ac_word" >&5
4163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4164if test "${ac_cv_prog_F77+set}" = set; then
4165  echo $ECHO_N "(cached) $ECHO_C" >&6
4166else
4167  if test -n "$F77"; then
4168  ac_cv_prog_F77="$F77" # Let the user override the test.
4169else
4170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175  for ac_exec_ext in '' $ac_executable_extensions; do
4176  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4177    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179    break 2
4180  fi
4181done
4182done
4183
4184fi
4185fi
4186F77=$ac_cv_prog_F77
4187if test -n "$F77"; then
4188  echo "$as_me:$LINENO: result: $F77" >&5
4189echo "${ECHO_T}$F77" >&6
4190else
4191  echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
4193fi
4194
4195    test -n "$F77" && break
4196  done
4197fi
4198if test -z "$F77"; then
4199  ac_ct_F77=$F77
4200  for ac_prog in $coin_f77_comps
4201do
4202  # Extract the first word of "$ac_prog", so it can be a program name with args.
4203set dummy $ac_prog; ac_word=$2
4204echo "$as_me:$LINENO: checking for $ac_word" >&5
4205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4206if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4207  echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209  if test -n "$ac_ct_F77"; then
4210  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4211else
4212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213for as_dir in $PATH
4214do
4215  IFS=$as_save_IFS
4216  test -z "$as_dir" && as_dir=.
4217  for ac_exec_ext in '' $ac_executable_extensions; do
4218  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4219    ac_cv_prog_ac_ct_F77="$ac_prog"
4220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221    break 2
4222  fi
4223done
4224done
4225
4226fi
4227fi
4228ac_ct_F77=$ac_cv_prog_ac_ct_F77
4229if test -n "$ac_ct_F77"; then
4230  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4231echo "${ECHO_T}$ac_ct_F77" >&6
4232else
4233  echo "$as_me:$LINENO: result: no" >&5
4234echo "${ECHO_T}no" >&6
4235fi
4236
4237  test -n "$ac_ct_F77" && break
4238done
4239test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4240
4241  F77=$ac_ct_F77
4242fi
4243
4244
4245if test "$F77" != "unavailable" ; then
4246  ac_ext=f
4247ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4248ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4250if test -n "$ac_tool_prefix"; then
4251  for ac_prog in $coin_f77_comps
4252  do
4253    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4254set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4255echo "$as_me:$LINENO: checking for $ac_word" >&5
4256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4257if test "${ac_cv_prog_F77+set}" = set; then
4258  echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260  if test -n "$F77"; then
4261  ac_cv_prog_F77="$F77" # Let the user override the test.
4262else
4263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264for as_dir in $PATH
4265do
4266  IFS=$as_save_IFS
4267  test -z "$as_dir" && as_dir=.
4268  for ac_exec_ext in '' $ac_executable_extensions; do
4269  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4270    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272    break 2
4273  fi
4274done
4275done
4276
4277fi
4278fi
4279F77=$ac_cv_prog_F77
4280if test -n "$F77"; then
4281  echo "$as_me:$LINENO: result: $F77" >&5
4282echo "${ECHO_T}$F77" >&6
4283else
4284  echo "$as_me:$LINENO: result: no" >&5
4285echo "${ECHO_T}no" >&6
4286fi
4287
4288    test -n "$F77" && break
4289  done
4290fi
4291if test -z "$F77"; then
4292  ac_ct_F77=$F77
4293  for ac_prog in $coin_f77_comps
4294do
4295  # Extract the first word of "$ac_prog", so it can be a program name with args.
4296set dummy $ac_prog; ac_word=$2
4297echo "$as_me:$LINENO: checking for $ac_word" >&5
4298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4299if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4300  echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
4302  if test -n "$ac_ct_F77"; then
4303  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4304else
4305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306for as_dir in $PATH
4307do
4308  IFS=$as_save_IFS
4309  test -z "$as_dir" && as_dir=.
4310  for ac_exec_ext in '' $ac_executable_extensions; do
4311  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312    ac_cv_prog_ac_ct_F77="$ac_prog"
4313    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314    break 2
4315  fi
4316done
4317done
4318
4319fi
4320fi
4321ac_ct_F77=$ac_cv_prog_ac_ct_F77
4322if test -n "$ac_ct_F77"; then
4323  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4324echo "${ECHO_T}$ac_ct_F77" >&6
4325else
4326  echo "$as_me:$LINENO: result: no" >&5
4327echo "${ECHO_T}no" >&6
4328fi
4329
4330  test -n "$ac_ct_F77" && break
4331done
4332
4333  F77=$ac_ct_F77
4334fi
4335
4336
4337# Provide some information about the compiler.
4338echo "$as_me:4338:" \
4339     "checking for Fortran 77 compiler version" >&5
4340ac_compiler=`set X $ac_compile; echo $2`
4341{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4342  (eval $ac_compiler --version </dev/null >&5) 2>&5
4343  ac_status=$?
4344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345  (exit $ac_status); }
4346{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4347  (eval $ac_compiler -v </dev/null >&5) 2>&5
4348  ac_status=$?
4349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350  (exit $ac_status); }
4351{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4352  (eval $ac_compiler -V </dev/null >&5) 2>&5
4353  ac_status=$?
4354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355  (exit $ac_status); }
4356rm -f a.out
4357
4358# If we don't use `.F' as extension, the preprocessor is not run on the
4359# input file.  (Note that this only needs to work for GNU compilers.)
4360ac_save_ext=$ac_ext
4361ac_ext=F
4362echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4363echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4364if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4365  echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367  cat >conftest.$ac_ext <<_ACEOF
4368      program main
4369#ifndef __GNUC__
4370       choke me
4371#endif
4372
4373      end
4374_ACEOF
4375rm -f conftest.$ac_objext
4376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377  (eval $ac_compile) 2>conftest.er1
4378  ac_status=$?
4379  grep -v '^ *+' conftest.er1 >conftest.err
4380  rm -f conftest.er1
4381  cat conftest.err >&5
4382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383  (exit $ac_status); } &&
4384         { ac_try='test -z "$ac_f77_werror_flag"
4385                         || test ! -s conftest.err'
4386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387  (eval $ac_try) 2>&5
4388  ac_status=$?
4389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390  (exit $ac_status); }; } &&
4391         { ac_try='test -s conftest.$ac_objext'
4392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393  (eval $ac_try) 2>&5
4394  ac_status=$?
4395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396  (exit $ac_status); }; }; then
4397  ac_compiler_gnu=yes
4398else
4399  echo "$as_me: failed program was:" >&5
4400sed 's/^/| /' conftest.$ac_ext >&5
4401
4402ac_compiler_gnu=no
4403fi
4404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4405ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4406
4407fi
4408echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4409echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4410ac_ext=$ac_save_ext
4411ac_test_FFLAGS=${FFLAGS+set}
4412ac_save_FFLAGS=$FFLAGS
4413FFLAGS=
4414echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4415echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4416if test "${ac_cv_prog_f77_g+set}" = set; then
4417  echo $ECHO_N "(cached) $ECHO_C" >&6
4418else
4419  FFLAGS=-g
4420cat >conftest.$ac_ext <<_ACEOF
4421      program main
4422
4423      end
4424_ACEOF
4425rm -f conftest.$ac_objext
4426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427  (eval $ac_compile) 2>conftest.er1
4428  ac_status=$?
4429  grep -v '^ *+' conftest.er1 >conftest.err
4430  rm -f conftest.er1
4431  cat conftest.err >&5
4432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433  (exit $ac_status); } &&
4434         { ac_try='test -z "$ac_f77_werror_flag"
4435                         || test ! -s conftest.err'
4436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437  (eval $ac_try) 2>&5
4438  ac_status=$?
4439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440  (exit $ac_status); }; } &&
4441         { ac_try='test -s conftest.$ac_objext'
4442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4443  (eval $ac_try) 2>&5
4444  ac_status=$?
4445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446  (exit $ac_status); }; }; then
4447  ac_cv_prog_f77_g=yes
4448else
4449  echo "$as_me: failed program was:" >&5
4450sed 's/^/| /' conftest.$ac_ext >&5
4451
4452ac_cv_prog_f77_g=no
4453fi
4454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4455
4456fi
4457echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4458echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4459if test "$ac_test_FFLAGS" = set; then
4460  FFLAGS=$ac_save_FFLAGS
4461elif test $ac_cv_prog_f77_g = yes; then
4462  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4463    FFLAGS="-g -O2"
4464  else
4465    FFLAGS="-g"
4466  fi
4467else
4468  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4469    FFLAGS="-O2"
4470  else
4471    FFLAGS=
4472  fi
4473fi
4474
4475G77=`test $ac_compiler_gnu = yes && echo yes`
4476ac_ext=f
4477ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4478ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4479ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4480
4481else
4482  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4483echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4484fi
4485
4486FFLAGS="$save_fflags"
4487
4488# Check if a project specific FFLAGS variable has been set
4489if test x$COIN_PRJCT != x; then
4490  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4491  if test x$coin_tmp = xset; then
4492    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4493  fi
4494fi
4495
4496if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4497
4498  coin_add_fflags=
4499  coin_opt_fflags=
4500  coin_dbg_fflags=
4501  coin_warn_fflags=
4502
4503  if test "$G77" = "yes"; then
4504    coin_opt_fflags="-O3"
4505    coin_add_fflags="-pipe"
4506    coin_dbg_fflags="-g -O0"
4507    case $enable_doscompile in
4508      mingw)
4509        FFLAGS="-mno-cygwin"
4510        cat >conftest.$ac_ext <<_ACEOF
4511      program main
4512      write(*,*) 'Hello world'
4513      end
4514_ACEOF
4515rm -f conftest.$ac_objext conftest$ac_exeext
4516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4517  (eval $ac_link) 2>conftest.er1
4518  ac_status=$?
4519  grep -v '^ *+' conftest.er1 >conftest.err
4520  rm -f conftest.er1
4521  cat conftest.err >&5
4522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523  (exit $ac_status); } &&
4524         { ac_try='test -z "$ac_f77_werror_flag"
4525                         || test ! -s conftest.err'
4526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527  (eval $ac_try) 2>&5
4528  ac_status=$?
4529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530  (exit $ac_status); }; } &&
4531         { ac_try='test -s conftest$ac_exeext'
4532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533  (eval $ac_try) 2>&5
4534  ac_status=$?
4535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536  (exit $ac_status); }; }; then
4537  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4538else
4539  echo "$as_me: failed program was:" >&5
4540sed 's/^/| /' conftest.$ac_ext >&5
4541
4542fi
4543rm -f conftest.err conftest.$ac_objext \
4544      conftest$ac_exeext conftest.$ac_ext
4545        FFLAGS=
4546      ;;
4547    esac
4548  else
4549    case $build in
4550      *-cygwin* | *-mingw*)
4551        case $F77 in
4552          ifort* | */ifort* | IFORT* | */IFORT* )
4553            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4554              coin_opt_fflags='-MD -O3'
4555              coin_dbg_fflags='-MDd -debug'
4556            else
4557              coin_opt_fflags='-MT -O3'
4558              coin_dbg_fflags='-MTd -debug'
4559            fi
4560            coin_add_fflags='-fpp -nologo'
4561          ;;
4562          compile_f2c*)
4563            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4564              coin_opt_fflags='-MD -O2'
4565              coin_dbg_fflags='-MDd'
4566            else
4567              coin_opt_fflags='-MT -O2'
4568              coin_dbg_fflags='-MTd'
4569            fi
4570            coin_add_fflags='-nologo -wd4996'
4571          ;;
4572        esac
4573        ;;
4574      *-linux-*)
4575        case $F77 in
4576          ifc* | */ifc* | ifort* | */ifort*)
4577            coin_opt_fflags="-O3 -ip"
4578            coin_add_fflags="-cm -w90 -w95"
4579            coin_dbg_fflags="-g -CA -CB -CS"
4580            # Check if -i_dynamic is necessary (for new glibc library)
4581            FFLAGS=
4582            cat >conftest.$ac_ext <<_ACEOF
4583      program main
4584      write(*,*) 'Hello world'
4585      end
4586_ACEOF
4587rm -f conftest.$ac_objext conftest$ac_exeext
4588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4589  (eval $ac_link) 2>conftest.er1
4590  ac_status=$?
4591  grep -v '^ *+' conftest.er1 >conftest.err
4592  rm -f conftest.er1
4593  cat conftest.err >&5
4594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595  (exit $ac_status); } &&
4596         { ac_try='test -z "$ac_f77_werror_flag"
4597                         || test ! -s conftest.err'
4598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599  (eval $ac_try) 2>&5
4600  ac_status=$?
4601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602  (exit $ac_status); }; } &&
4603         { ac_try='test -s conftest$ac_exeext'
4604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605  (eval $ac_try) 2>&5
4606  ac_status=$?
4607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608  (exit $ac_status); }; }; then
4609  :
4610else
4611  echo "$as_me: failed program was:" >&5
4612sed 's/^/| /' conftest.$ac_ext >&5
4613
4614coin_add_fflags="-i_dynamic $coin_add_fflags"
4615fi
4616rm -f conftest.err conftest.$ac_objext \
4617      conftest$ac_exeext conftest.$ac_ext
4618            ;;
4619          pgf77* | */pgf77* | pgf90* | */pgf90*)
4620            coin_opt_fflags="-fast"
4621            coin_add_fflags="-Kieee -pc 64"
4622            coin_dbg_fflags="-g"
4623          ;;
4624        esac
4625        ;;
4626      *-ibm-*)
4627        case "$F77" in
4628          xlf* | */xlf* | mpxlf* | */mpxlf* )
4629            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4630            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4631            coin_dbg_fflags="-g -C"
4632            ;;
4633        esac
4634        ;;
4635      *-hp-*)
4636        coin_opt_fflags="+O3"
4637        coin_add_fflags="+U77"
4638        coin_dbg_fflags="-C -g"
4639        ;;
4640      *-*-solaris*)
4641        coin_opt_fflags="-O4"
4642        coin_dbg_fflags="-g"
4643        ;;
4644      *-sgi-*)
4645        coin_opt_fflags="-O5 -OPT:Olimit=0"
4646        coin_dbg_fflags="-g"
4647        ;;
4648    esac
4649  fi
4650
4651  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4652    coin_dbg_fflags="-g"
4653  fi
4654
4655  if test -z "$coin_opt_fflags"; then
4656    # Try if -O option works if nothing else is set
4657    FFLAGS=-O
4658    cat >conftest.$ac_ext <<_ACEOF
4659      program main
4660      integer i
4661      end
4662_ACEOF
4663rm -f conftest.$ac_objext conftest$ac_exeext
4664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4665  (eval $ac_link) 2>conftest.er1
4666  ac_status=$?
4667  grep -v '^ *+' conftest.er1 >conftest.err
4668  rm -f conftest.er1
4669  cat conftest.err >&5
4670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); } &&
4672         { ac_try='test -z "$ac_f77_werror_flag"
4673                         || test ! -s conftest.err'
4674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675  (eval $ac_try) 2>&5
4676  ac_status=$?
4677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678  (exit $ac_status); }; } &&
4679         { ac_try='test -s conftest$ac_exeext'
4680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681  (eval $ac_try) 2>&5
4682  ac_status=$?
4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684  (exit $ac_status); }; }; then
4685  coin_opt_fflags="-O"
4686else
4687  echo "$as_me: failed program was:" >&5
4688sed 's/^/| /' conftest.$ac_ext >&5
4689
4690fi
4691rm -f conftest.err conftest.$ac_objext \
4692      conftest$ac_exeext conftest.$ac_ext
4693  fi
4694
4695  # if PM doesn't want the warning messages, take them out
4696  if test x"$coin_skip_warn_fflags" = xyes; then
4697    coin_warn_fflags=
4698  fi
4699
4700  if test x${DBG_FFLAGS+set} != xset; then
4701    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4702  fi
4703  if test x${OPT_FFLAGS+set} != xset; then
4704    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4705  fi
4706
4707  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4708  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4709
4710  if test "$coin_debug_compile" = "true"; then
4711    FFLAGS="$DBG_FFLAGS"
4712  else
4713    FFLAGS="$OPT_FFLAGS"
4714  fi
4715else
4716  FFLAGS="$FFLAGS $ADD_FFLAGS"
4717  if test x${DBG_FFLAGS+set} != xset; then
4718    DBG_FFLAGS="$FFLAGS"
4719  fi
4720  if test x${OPT_FFLAGS+set} != xset; then
4721    OPT_FFLAGS="$FFLAGS"
4722  fi
4723fi
4724
4725# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4726case "$FFLAGS" in
4727  *-mno-cygwin*)
4728    if test x${CPPFLAGS+set} != xset ; then
4729      CPPFLAGS="-mno-cygwin"
4730    else
4731      case "$CPPFLAGS" in
4732        *-mno-cygwin*)
4733          ;;
4734        *)
4735          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4736          ;;
4737      esac
4738    fi ;;
4739esac
4740
4741# Try if FFLAGS works
4742if test "$F77" != "unavailable" ; then
4743  cat >conftest.$ac_ext <<_ACEOF
4744      program main
4745      integer i
4746      end
4747_ACEOF
4748rm -f conftest.$ac_objext conftest$ac_exeext
4749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4750  (eval $ac_link) 2>conftest.er1
4751  ac_status=$?
4752  grep -v '^ *+' conftest.er1 >conftest.err
4753  rm -f conftest.er1
4754  cat conftest.err >&5
4755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756  (exit $ac_status); } &&
4757         { ac_try='test -z "$ac_f77_werror_flag"
4758                         || test ! -s conftest.err'
4759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4760  (eval $ac_try) 2>&5
4761  ac_status=$?
4762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763  (exit $ac_status); }; } &&
4764         { ac_try='test -s conftest$ac_exeext'
4765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4766  (eval $ac_try) 2>&5
4767  ac_status=$?
4768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769  (exit $ac_status); }; }; then
4770  :
4771else
4772  echo "$as_me: failed program was:" >&5
4773sed 's/^/| /' conftest.$ac_ext >&5
4774
4775FFLAGS=
4776fi
4777rm -f conftest.err conftest.$ac_objext \
4778      conftest$ac_exeext conftest.$ac_ext
4779  if test -z "$FFLAGS"; then
4780    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4781echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4782    FFLAGS='-O'
4783    cat >conftest.$ac_ext <<_ACEOF
4784      program main
4785      integer i
4786      end
4787_ACEOF
4788rm -f conftest.$ac_objext conftest$ac_exeext
4789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4790  (eval $ac_link) 2>conftest.er1
4791  ac_status=$?
4792  grep -v '^ *+' conftest.er1 >conftest.err
4793  rm -f conftest.er1
4794  cat conftest.err >&5
4795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796  (exit $ac_status); } &&
4797         { ac_try='test -z "$ac_f77_werror_flag"
4798                         || test ! -s conftest.err'
4799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800  (eval $ac_try) 2>&5
4801  ac_status=$?
4802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803  (exit $ac_status); }; } &&
4804         { ac_try='test -s conftest$ac_exeext'
4805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806  (eval $ac_try) 2>&5
4807  ac_status=$?
4808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809  (exit $ac_status); }; }; then
4810  :
4811else
4812  echo "$as_me: failed program was:" >&5
4813sed 's/^/| /' conftest.$ac_ext >&5
4814
4815FFLAGS=
4816fi
4817rm -f conftest.err conftest.$ac_objext \
4818      conftest$ac_exeext conftest.$ac_ext
4819    if test -z "$FFLAGS"; then
4820      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4821echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4822    fi
4823  fi
4824fi
4825
4826{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4827echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4828
4829
4830if test x"$MPIF77" = x; then :; else
4831  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4832echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4833  F77="$MPIF77"
4834fi
4835
4836# correct the LD variable if we use the intel fortran compiler in windows
4837case "$F77" in
4838  ifort* | */ifort* | IFORT* | */IFORT*)
4839    case $build in
4840  *-mingw*)
4841    if test "${LD+set}" = set; then :; else
4842      LD=link
4843    fi
4844    ;;
4845 esac
4846 case $enable_doscompile in
4847   msvc)
4848     if test "x${LD+set}" = xset; then :; else
4849       LD=link
4850     fi
4851     ;;
4852 esac
4853
4854    ;;
4855esac
4856
4857ac_ext=c
4858ac_cpp='$CPP $CPPFLAGS'
4859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862
4863
4864
4865# Initialize automake and libtool
4866# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4867{
4868
4869
4870
4871# START
4872
4873coin_disable_shared=no
4874# Test if force_shared has been set
4875if test "x" = xforce_shared; then
4876  if test x$enable_shared = xno; then
4877    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4878echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4879   { (exit 1); exit 1; }; }
4880  fi
4881  enable_shared=yes;
4882else
4883  # On Cygwin and AIX, building DLLs doesn't work
4884  case $build in
4885    *-cygwin* | *-mingw*)
4886      coin_disable_shared=yes
4887      if test x"$enable_shared" = xyes; then
4888        case "$CXX" in
4889          clang* )
4890            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4891echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4892            ;;
4893          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4894            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&5
4895echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice, but will build with -MD(d) instead of -MT(d)." >&2;}
4896            ;;
4897          *)
4898            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4899echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4900            ;;
4901        esac
4902      fi
4903    ;;
4904    *-aix*)
4905      coin_disable_shared=yes
4906      platform=AIX
4907      if test x"$enable_shared" = xyes; then
4908        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4909echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4910      fi
4911    ;;
4912  esac
4913fi
4914if test x"$coin_disable_shared" = xyes; then
4915  if test x"$enable_shared" = xyes; then
4916    :
4917  else
4918    # we don't disable shared, because it was not selected anyway
4919    coin_disable_shared=no
4920  fi
4921  enable_shared=no
4922fi
4923# By default, we only want the shared objects to be compiled
4924# Check whether --enable-static or --disable-static was given.
4925if test "${enable_static+set}" = set; then
4926  enableval="$enable_static"
4927  p=${PACKAGE-default}
4928    case $enableval in
4929    yes) enable_static=yes ;;
4930    no) enable_static=no ;;
4931    *)
4932     enable_static=no
4933      # Look at the argument we got.  We use all the common list separators.
4934      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4935      for pkg in $enableval; do
4936        IFS="$lt_save_ifs"
4937        if test "X$pkg" = "X$p"; then
4938          enable_static=yes
4939        fi
4940      done
4941      IFS="$lt_save_ifs"
4942      ;;
4943    esac
4944else
4945  enable_static=no
4946fi;
4947
4948
4949
4950
4951# Initialize automake
4952echo "$as_me:$LINENO: checking for egrep" >&5
4953echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4954if test "${ac_cv_prog_egrep+set}" = set; then
4955  echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4958    then ac_cv_prog_egrep='grep -E'
4959    else ac_cv_prog_egrep='egrep'
4960    fi
4961fi
4962echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4963echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4964 EGREP=$ac_cv_prog_egrep
4965
4966
4967echo "$as_me:$LINENO: checking whether ln -s works" >&5
4968echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4969LN_S=$as_ln_s
4970if test "$LN_S" = "ln -s"; then
4971  echo "$as_me:$LINENO: result: yes" >&5
4972echo "${ECHO_T}yes" >&6
4973else
4974  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4975echo "${ECHO_T}no, using $LN_S" >&6
4976fi
4977
4978am__api_version="1.9"
4979# Find a good install program.  We prefer a C program (faster),
4980# so one script is as good as another.  But avoid the broken or
4981# incompatible versions:
4982# SysV /etc/install, /usr/sbin/install
4983# SunOS /usr/etc/install
4984# IRIX /sbin/install
4985# AIX /bin/install
4986# AmigaOS /C/install, which installs bootblocks on floppy discs
4987# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4988# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4989# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4990# OS/2's system install, which has a completely different semantic
4991# ./install, which can be erroneously created by make from ./install.sh.
4992echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4993echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4994if test -z "$INSTALL"; then
4995if test "${ac_cv_path_install+set}" = set; then
4996  echo $ECHO_N "(cached) $ECHO_C" >&6
4997else
4998  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999for as_dir in $PATH
5000do
5001  IFS=$as_save_IFS
5002  test -z "$as_dir" && as_dir=.
5003  # Account for people who put trailing slashes in PATH elements.
5004case $as_dir/ in
5005  ./ | .// | /cC/* | \
5006  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5007  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5008  /usr/ucb/* ) ;;
5009  *)
5010    # OSF1 and SCO ODT 3.0 have their own names for install.
5011    # Don't use installbsd from OSF since it installs stuff as root
5012    # by default.
5013    for ac_prog in ginstall scoinst install; do
5014      for ac_exec_ext in '' $ac_executable_extensions; do
5015        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5016          if test $ac_prog = install &&
5017            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5018            # AIX install.  It has an incompatible calling convention.
5019            :
5020          elif test $ac_prog = install &&
5021            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5022            # program-specific install script used by HP pwplus--don't use.
5023            :
5024          else
5025            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5026            break 3
5027          fi
5028        fi
5029      done
5030    done
5031    ;;
5032esac
5033done
5034
5035
5036fi
5037  if test "${ac_cv_path_install+set}" = set; then
5038    INSTALL=$ac_cv_path_install
5039  else
5040    # As a last resort, use the slow shell script.  We don't cache a
5041    # path for INSTALL within a source directory, because that will
5042    # break other packages using the cache if that directory is
5043    # removed, or if the path is relative.
5044    INSTALL=$ac_install_sh
5045  fi
5046fi
5047echo "$as_me:$LINENO: result: $INSTALL" >&5
5048echo "${ECHO_T}$INSTALL" >&6
5049
5050# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5051# It thinks the first close brace ends the variable substitution.
5052test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5053
5054test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5055
5056test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5057
5058echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5059echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5060# Just in case
5061sleep 1
5062echo timestamp > conftest.file
5063# Do `set' in a subshell so we don't clobber the current shell's
5064# arguments.  Must try -L first in case configure is actually a
5065# symlink; some systems play weird games with the mod time of symlinks
5066# (eg FreeBSD returns the mod time of the symlink's containing
5067# directory).
5068if (
5069   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5070   if test "$*" = "X"; then
5071      # -L didn't work.
5072      set X `ls -t $srcdir/configure conftest.file`
5073   fi
5074   rm -f conftest.file
5075   if test "$*" != "X $srcdir/configure conftest.file" \
5076      && test "$*" != "X conftest.file $srcdir/configure"; then
5077
5078      # If neither matched, then we have a broken ls.  This can happen
5079      # if, for instance, CONFIG_SHELL is bash and it inherits a
5080      # broken ls alias from the environment.  This has actually
5081      # happened.  Such a system could not be considered "sane".
5082      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5083alias in your environment" >&5
5084echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5085alias in your environment" >&2;}
5086   { (exit 1); exit 1; }; }
5087   fi
5088
5089   test "$2" = conftest.file
5090   )
5091then
5092   # Ok.
5093   :
5094else
5095   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5096Check your system clock" >&5
5097echo "$as_me: error: newly created file is older than distributed files!
5098Check your system clock" >&2;}
5099   { (exit 1); exit 1; }; }
5100fi
5101echo "$as_me:$LINENO: result: yes" >&5
5102echo "${ECHO_T}yes" >&6
5103test "$program_prefix" != NONE &&
5104  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5105# Use a double $ so make ignores it.
5106test "$program_suffix" != NONE &&
5107  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5108# Double any \ or $.  echo might interpret backslashes.
5109# By default was `s,x,x', remove it if useless.
5110cat <<\_ACEOF >conftest.sed
5111s/[\\$]/&&/g;s/;s,x,x,$//
5112_ACEOF
5113program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5114rm conftest.sed
5115
5116# expand $ac_aux_dir to an absolute path
5117am_aux_dir=`cd $ac_aux_dir && pwd`
5118
5119test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5120# Use eval to expand $SHELL
5121if eval "$MISSING --run true"; then
5122  am_missing_run="$MISSING --run "
5123else
5124  am_missing_run=
5125  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5126echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5127fi
5128
5129if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5130  # We used to keeping the `.' as first argument, in order to
5131  # allow $(mkdir_p) to be used without argument.  As in
5132  #   $(mkdir_p) $(somedir)
5133  # where $(somedir) is conditionally defined.  However this is wrong
5134  # for two reasons:
5135  #  1. if the package is installed by a user who cannot write `.'
5136  #     make install will fail,
5137  #  2. the above comment should most certainly read
5138  #     $(mkdir_p) $(DESTDIR)$(somedir)
5139  #     so it does not work when $(somedir) is undefined and
5140  #     $(DESTDIR) is not.
5141  #  To support the latter case, we have to write
5142  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5143  #  so the `.' trick is pointless.
5144  mkdir_p='mkdir -p --'
5145else
5146  # On NextStep and OpenStep, the `mkdir' command does not
5147  # recognize any option.  It will interpret all options as
5148  # directories to create, and then abort because `.' already
5149  # exists.
5150  for d in ./-p ./--version;
5151  do
5152    test -d $d && rmdir $d
5153  done
5154  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5155  if test -f "$ac_aux_dir/mkinstalldirs"; then
5156    mkdir_p='$(mkinstalldirs)'
5157  else
5158    mkdir_p='$(install_sh) -d'
5159  fi
5160fi
5161
5162for ac_prog in gawk mawk nawk awk
5163do
5164  # Extract the first word of "$ac_prog", so it can be a program name with args.
5165set dummy $ac_prog; ac_word=$2
5166echo "$as_me:$LINENO: checking for $ac_word" >&5
5167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168if test "${ac_cv_prog_AWK+set}" = set; then
5169  echo $ECHO_N "(cached) $ECHO_C" >&6
5170else
5171  if test -n "$AWK"; then
5172  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5173else
5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177  IFS=$as_save_IFS
5178  test -z "$as_dir" && as_dir=.
5179  for ac_exec_ext in '' $ac_executable_extensions; do
5180  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5181    ac_cv_prog_AWK="$ac_prog"
5182    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5183    break 2
5184  fi
5185done
5186done
5187
5188fi
5189fi
5190AWK=$ac_cv_prog_AWK
5191if test -n "$AWK"; then
5192  echo "$as_me:$LINENO: result: $AWK" >&5
5193echo "${ECHO_T}$AWK" >&6
5194else
5195  echo "$as_me:$LINENO: result: no" >&5
5196echo "${ECHO_T}no" >&6
5197fi
5198
5199  test -n "$AWK" && break
5200done
5201
5202echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5203echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5204set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5205if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5206  echo $ECHO_N "(cached) $ECHO_C" >&6
5207else
5208  cat >conftest.make <<\_ACEOF
5209all:
5210        @echo 'ac_maketemp="$(MAKE)"'
5211_ACEOF
5212# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5213eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5214if test -n "$ac_maketemp"; then
5215  eval ac_cv_prog_make_${ac_make}_set=yes
5216else
5217  eval ac_cv_prog_make_${ac_make}_set=no
5218fi
5219rm -f conftest.make
5220fi
5221if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5222  echo "$as_me:$LINENO: result: yes" >&5
5223echo "${ECHO_T}yes" >&6
5224  SET_MAKE=
5225else
5226  echo "$as_me:$LINENO: result: no" >&5
5227echo "${ECHO_T}no" >&6
5228  SET_MAKE="MAKE=${MAKE-make}"
5229fi
5230
5231rm -rf .tst 2>/dev/null
5232mkdir .tst 2>/dev/null
5233if test -d .tst; then
5234  am__leading_dot=.
5235else
5236  am__leading_dot=_
5237fi
5238rmdir .tst 2>/dev/null
5239
5240DEPDIR="${am__leading_dot}deps"
5241
5242          ac_config_commands="$ac_config_commands depfiles"
5243
5244
5245am_make=${MAKE-make}
5246cat > confinc << 'END'
5247am__doit:
5248        @echo done
5249.PHONY: am__doit
5250END
5251# If we don't find an include directive, just comment out the code.
5252echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5253echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5254am__include="#"
5255am__quote=
5256_am_result=none
5257# First try GNU make style include.
5258echo "include confinc" > confmf
5259# We grep out `Entering directory' and `Leaving directory'
5260# messages which can occur if `w' ends up in MAKEFLAGS.
5261# In particular we don't look at `^make:' because GNU make might
5262# be invoked under some other name (usually "gmake"), in which
5263# case it prints its new name instead of `make'.
5264if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5265   am__include=include
5266   am__quote=
5267   _am_result=GNU
5268fi
5269# Now try BSD make style include.
5270if test "$am__include" = "#"; then
5271   echo '.include "confinc"' > confmf
5272   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5273      am__include=.include
5274      am__quote="\""
5275      _am_result=BSD
5276   fi
5277fi
5278
5279
5280echo "$as_me:$LINENO: result: $_am_result" >&5
5281echo "${ECHO_T}$_am_result" >&6
5282rm -f confinc confmf
5283
5284# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5285if test "${enable_dependency_tracking+set}" = set; then
5286  enableval="$enable_dependency_tracking"
5287
5288fi;
5289if test "x$enable_dependency_tracking" != xno; then
5290  am_depcomp="$ac_aux_dir/depcomp"
5291  AMDEPBACKSLASH='\'
5292fi
5293
5294
5295if test "x$enable_dependency_tracking" != xno; then
5296  AMDEP_TRUE=
5297  AMDEP_FALSE='#'
5298else
5299  AMDEP_TRUE='#'
5300  AMDEP_FALSE=
5301fi
5302
5303
5304
5305
5306
5307
5308# AC_MSG_NOTICE([Beginning automake initialisation.])
5309# Stuff for automake
5310# test to see if srcdir already configured
5311if test "`cd $srcdir && pwd`" != "`pwd`" &&
5312   test -f $srcdir/config.status; then
5313  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5314echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5315   { (exit 1); exit 1; }; }
5316fi
5317
5318# test whether we have cygpath
5319if test -z "$CYGPATH_W"; then
5320  if (cygpath --version) >/dev/null 2>/dev/null; then
5321    CYGPATH_W='cygpath -w'
5322  else
5323    CYGPATH_W=echo
5324  fi
5325fi
5326
5327
5328# Define the identity of the package.
5329 PACKAGE='clp'
5330 VERSION='1.15.3'
5331
5332
5333cat >>confdefs.h <<_ACEOF
5334#define PACKAGE "$PACKAGE"
5335_ACEOF
5336
5337
5338cat >>confdefs.h <<_ACEOF
5339#define VERSION "$VERSION"
5340_ACEOF
5341
5342# Some tools Automake needs.
5343
5344ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5345
5346
5347AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5348
5349
5350AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5351
5352
5353AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5354
5355
5356MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5357
5358install_sh=${install_sh-"$am_aux_dir/install-sh"}
5359
5360# Installed binaries are usually stripped using `strip' when the user
5361# run `make install-strip'.  However `strip' might not be the right
5362# tool to use in cross-compilation environments, therefore Automake
5363# will honor the `STRIP' environment variable to overrule this program.
5364if test "$cross_compiling" != no; then
5365  if test -n "$ac_tool_prefix"; then
5366  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5367set dummy ${ac_tool_prefix}strip; ac_word=$2
5368echo "$as_me:$LINENO: checking for $ac_word" >&5
5369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5370if test "${ac_cv_prog_STRIP+set}" = set; then
5371  echo $ECHO_N "(cached) $ECHO_C" >&6
5372else
5373  if test -n "$STRIP"; then
5374  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5375else
5376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377for as_dir in $PATH
5378do
5379  IFS=$as_save_IFS
5380  test -z "$as_dir" && as_dir=.
5381  for ac_exec_ext in '' $ac_executable_extensions; do
5382  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5383    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5384    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5385    break 2
5386  fi
5387done
5388done
5389
5390fi
5391fi
5392STRIP=$ac_cv_prog_STRIP
5393if test -n "$STRIP"; then
5394  echo "$as_me:$LINENO: result: $STRIP" >&5
5395echo "${ECHO_T}$STRIP" >&6
5396else
5397  echo "$as_me:$LINENO: result: no" >&5
5398echo "${ECHO_T}no" >&6
5399fi
5400
5401fi
5402if test -z "$ac_cv_prog_STRIP"; then
5403  ac_ct_STRIP=$STRIP
5404  # Extract the first word of "strip", so it can be a program name with args.
5405set dummy strip; ac_word=$2
5406echo "$as_me:$LINENO: checking for $ac_word" >&5
5407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5408if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5409  echo $ECHO_N "(cached) $ECHO_C" >&6
5410else
5411  if test -n "$ac_ct_STRIP"; then
5412  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5413else
5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415for as_dir in $PATH
5416do
5417  IFS=$as_save_IFS
5418  test -z "$as_dir" && as_dir=.
5419  for ac_exec_ext in '' $ac_executable_extensions; do
5420  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421    ac_cv_prog_ac_ct_STRIP="strip"
5422    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5423    break 2
5424  fi
5425done
5426done
5427
5428  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5429fi
5430fi
5431ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5432if test -n "$ac_ct_STRIP"; then
5433  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5434echo "${ECHO_T}$ac_ct_STRIP" >&6
5435else
5436  echo "$as_me:$LINENO: result: no" >&5
5437echo "${ECHO_T}no" >&6
5438fi
5439
5440  STRIP=$ac_ct_STRIP
5441else
5442  STRIP="$ac_cv_prog_STRIP"
5443fi
5444
5445fi
5446INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5447
5448# We need awk for the "check" target.  The system "awk" is bad on
5449# some platforms.
5450# Always define AMTAR for backward compatibility.
5451
5452AMTAR=${AMTAR-"${am_missing_run}tar"}
5453
5454am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5455
5456
5457
5458
5459depcc="$CC"   am_compiler_list=
5460
5461echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5462echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5463if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5464  echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5467  # We make a subdir and do the tests there.  Otherwise we can end up
5468  # making bogus files that we don't know about and never remove.  For
5469  # instance it was reported that on HP-UX the gcc test will end up
5470  # making a dummy file named `D' -- because `-MD' means `put the output
5471  # in D'.
5472  mkdir conftest.dir
5473  # Copy depcomp to subdir because otherwise we won't find it if we're
5474  # using a relative directory.
5475  cp "$am_depcomp" conftest.dir
5476  cd conftest.dir
5477  # We will build objects and dependencies in a subdirectory because
5478  # it helps to detect inapplicable dependency modes.  For instance
5479  # both Tru64's cc and ICC support -MD to output dependencies as a
5480  # side effect of compilation, but ICC will put the dependencies in
5481  # the current directory while Tru64 will put them in the object
5482  # directory.
5483  mkdir sub
5484
5485  am_cv_CC_dependencies_compiler_type=none
5486  if test "$am_compiler_list" = ""; then
5487     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5488  fi
5489  for depmode in $am_compiler_list; do
5490    # Setup a source with many dependencies, because some compilers
5491    # like to wrap large dependency lists on column 80 (with \), and
5492    # we should not choose a depcomp mode which is confused by this.
5493    #
5494    # We need to recreate these files for each test, as the compiler may
5495    # overwrite some of them when testing with obscure command lines.
5496    # This happens at least with the AIX C compiler.
5497    : > sub/conftest.c
5498    for i in 1 2 3 4 5 6; do
5499      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5500      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5501      # Solaris 8's {/usr,}/bin/sh.
5502      touch sub/conftst$i.h
5503    done
5504    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5505
5506    case $depmode in
5507    nosideeffect)
5508      # after this tag, mechanisms are not by side-effect, so they'll
5509      # only be used when explicitly requested
5510      if test "x$enable_dependency_tracking" = xyes; then
5511        continue
5512      else
5513        break
5514      fi
5515      ;;
5516    none) break ;;
5517    esac
5518    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5519    # mode.  It turns out that the SunPro C++ compiler does not properly
5520    # handle `-M -o', and we need to detect this.
5521    if depmode=$depmode \
5522       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5523       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5524       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5525         >/dev/null 2>conftest.err &&
5526       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5527       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5528       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5529      # icc doesn't choke on unknown options, it will just issue warnings
5530      # or remarks (even with -Werror).  So we grep stderr for any message
5531      # that says an option was ignored or not supported.
5532      # When given -MP, icc 7.0 and 7.1 complain thusly:
5533      #   icc: Command line warning: ignoring option '-M'; no argument required
5534      # The diagnosis changed in icc 8.0:
5535      #   icc: Command line remark: option '-MP' not supported
5536      if (grep 'ignoring option' conftest.err ||
5537          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5538        am_cv_CC_dependencies_compiler_type=$depmode
5539        break
5540      fi
5541    fi
5542  done
5543
5544  cd ..
5545  rm -rf conftest.dir
5546else
5547  am_cv_CC_dependencies_compiler_type=none
5548fi
5549
5550fi
5551echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5552echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5553CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5554
5555
5556
5557if
5558  test "x$enable_dependency_tracking" != xno \
5559  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5560  am__fastdepCC_TRUE=
5561  am__fastdepCC_FALSE='#'
5562else
5563  am__fastdepCC_TRUE='#'
5564  am__fastdepCC_FALSE=
5565fi
5566
5567
5568depcc="$CXX"  am_compiler_list=
5569
5570echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5571echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5572if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5573  echo $ECHO_N "(cached) $ECHO_C" >&6
5574else
5575  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5576  # We make a subdir and do the tests there.  Otherwise we can end up
5577  # making bogus files that we don't know about and never remove.  For
5578  # instance it was reported that on HP-UX the gcc test will end up
5579  # making a dummy file named `D' -- because `-MD' means `put the output
5580  # in D'.
5581  mkdir conftest.dir
5582  # Copy depcomp to subdir because otherwise we won't find it if we're
5583  # using a relative directory.
5584  cp "$am_depcomp" conftest.dir
5585  cd conftest.dir
5586  # We will build objects and dependencies in a subdirectory because
5587  # it helps to detect inapplicable dependency modes.  For instance
5588  # both Tru64's cc and ICC support -MD to output dependencies as a
5589  # side effect of compilation, but ICC will put the dependencies in
5590  # the current directory while Tru64 will put them in the object
5591  # directory.
5592  mkdir sub
5593
5594  am_cv_CXX_dependencies_compiler_type=none
5595  if test "$am_compiler_list" = ""; then
5596     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5597  fi
5598  for depmode in $am_compiler_list; do
5599    # Setup a source with many dependencies, because some compilers
5600    # like to wrap large dependency lists on column 80 (with \), and
5601    # we should not choose a depcomp mode which is confused by this.
5602    #
5603    # We need to recreate these files for each test, as the compiler may
5604    # overwrite some of them when testing with obscure command lines.
5605    # This happens at least with the AIX C compiler.
5606    : > sub/conftest.c
5607    for i in 1 2 3 4 5 6; do
5608      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5609      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5610      # Solaris 8's {/usr,}/bin/sh.
5611      touch sub/conftst$i.h
5612    done
5613    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5614
5615    case $depmode in
5616    nosideeffect)
5617      # after this tag, mechanisms are not by side-effect, so they'll
5618      # only be used when explicitly requested
5619      if test "x$enable_dependency_tracking" = xyes; then
5620        continue
5621      else
5622        break
5623      fi
5624      ;;
5625    none) break ;;
5626    esac
5627    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5628    # mode.  It turns out that the SunPro C++ compiler does not properly
5629    # handle `-M -o', and we need to detect this.
5630    if depmode=$depmode \
5631       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5632       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5633       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5634         >/dev/null 2>conftest.err &&
5635       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5636       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5637       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5638      # icc doesn't choke on unknown options, it will just issue warnings
5639      # or remarks (even with -Werror).  So we grep stderr for any message
5640      # that says an option was ignored or not supported.
5641      # When given -MP, icc 7.0 and 7.1 complain thusly:
5642      #   icc: Command line warning: ignoring option '-M'; no argument required
5643      # The diagnosis changed in icc 8.0:
5644      #   icc: Command line remark: option '-MP' not supported
5645      if (grep 'ignoring option' conftest.err ||
5646          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5647        am_cv_CXX_dependencies_compiler_type=$depmode
5648        break
5649      fi
5650    fi
5651  done
5652
5653  cd ..
5654  rm -rf conftest.dir
5655else
5656  am_cv_CXX_dependencies_compiler_type=none
5657fi
5658
5659fi
5660echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5661echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5662CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5663
5664
5665
5666if
5667  test "x$enable_dependency_tracking" != xno \
5668  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5669  am__fastdepCXX_TRUE=
5670  am__fastdepCXX_FALSE='#'
5671else
5672  am__fastdepCXX_TRUE='#'
5673  am__fastdepCXX_FALSE=
5674fi
5675
5676
5677
5678echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5679echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5680    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5681if test "${enable_maintainer_mode+set}" = set; then
5682  enableval="$enable_maintainer_mode"
5683  USE_MAINTAINER_MODE=$enableval
5684else
5685  USE_MAINTAINER_MODE=no
5686fi;
5687  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5688echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5689
5690
5691if test $USE_MAINTAINER_MODE = yes; then
5692  MAINTAINER_MODE_TRUE=
5693  MAINTAINER_MODE_FALSE='#'
5694else
5695  MAINTAINER_MODE_TRUE='#'
5696  MAINTAINER_MODE_FALSE=
5697fi
5698
5699  MAINT=$MAINTAINER_MODE_TRUE
5700
5701
5702
5703coin_have_externals=no
5704if test "$enable_maintainer_mode" = yes; then
5705
5706  # If maintainer mode is chosen, we make sure that the correct versions
5707  # of the tools are used, and that we know where libtool.m4 is (to
5708  # recreate acinclude.m4)
5709
5710
5711  LIBTOOLM4=
5712  # Normally, $HOME
5713  AUTOTOOLS_DFLT=$HOME
5714
5715  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5716echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5717if test "${ac_cv_use_correct_autotools+set}" = set; then
5718  echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720  ac_cv_use_correct_autotools=check
5721fi
5722echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5723echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5724
5725  if test $ac_cv_use_correct_autotools = check; then
5726    ac_cv_use_correct_autotools=yes
5727    # Check if we have autoconf
5728    # Extract the first word of "autoconf", so it can be a program name with args.
5729set dummy autoconf; ac_word=$2
5730echo "$as_me:$LINENO: checking for $ac_word" >&5
5731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5732if test "${ac_cv_prog_have_autoconf+set}" = set; then
5733  echo $ECHO_N "(cached) $ECHO_C" >&6
5734else
5735  if test -n "$have_autoconf"; then
5736  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5737else
5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739for as_dir in $PATH
5740do
5741  IFS=$as_save_IFS
5742  test -z "$as_dir" && as_dir=.
5743  for ac_exec_ext in '' $ac_executable_extensions; do
5744  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745    ac_cv_prog_have_autoconf="yes"
5746    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747    break 2
5748  fi
5749done
5750done
5751
5752  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5753fi
5754fi
5755have_autoconf=$ac_cv_prog_have_autoconf
5756if test -n "$have_autoconf"; then
5757  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5758echo "${ECHO_T}$have_autoconf" >&6
5759else
5760  echo "$as_me:$LINENO: result: no" >&5
5761echo "${ECHO_T}no" >&6
5762fi
5763
5764    if test $have_autoconf = no; then
5765      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5766echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5767   { (exit 1); exit 1; }; }
5768    fi
5769
5770    # Check whether autoconf is the correct version
5771    correct_version='2.59'
5772    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5773    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5774echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5775    autoconf --version > confauto.out 2>&1
5776    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5777      echo "$as_me:$LINENO: result: yes" >&5
5778echo "${ECHO_T}yes" >&6
5779    else
5780      rm -f confauto.out
5781      echo "$as_me:$LINENO: result: no" >&5
5782echo "${ECHO_T}no" >&6
5783      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5784echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5785   { (exit 1); exit 1; }; }
5786    fi
5787    rm -f confauto.out
5788
5789    # Check if the executable autoconf is picked up from the correct location
5790    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5791echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5792    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5793    autoconf_dir=`cd $autoconf_dir; pwd`
5794    if test x$AUTOTOOLS_DIR = x; then
5795      want_dir=$AUTOTOOLS_DFLT/bin
5796    else
5797      want_dir=$AUTOTOOLS_DIR/bin
5798    fi
5799    if test $autoconf_dir = `cd $want_dir; pwd`; then
5800      echo "$as_me:$LINENO: result: yes" >&5
5801echo "${ECHO_T}yes" >&6
5802    else
5803      rm -f confauto.out
5804      echo "$as_me:$LINENO: result: no" >&5
5805echo "${ECHO_T}no" >&6
5806      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5807echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5808   { (exit 1); exit 1; }; }
5809    fi
5810
5811    # Check if we have automake
5812    # Extract the first word of "automake", so it can be a program name with args.
5813set dummy automake; ac_word=$2
5814echo "$as_me:$LINENO: checking for $ac_word" >&5
5815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5816if test "${ac_cv_prog_have_automake+set}" = set; then
5817  echo $ECHO_N "(cached) $ECHO_C" >&6
5818else
5819  if test -n "$have_automake"; then
5820  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5821else
5822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823for as_dir in $PATH
5824do
5825  IFS=$as_save_IFS
5826  test -z "$as_dir" && as_dir=.
5827  for ac_exec_ext in '' $ac_executable_extensions; do
5828  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829    ac_cv_prog_have_automake="yes"
5830    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831    break 2
5832  fi
5833done
5834done
5835
5836  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5837fi
5838fi
5839have_automake=$ac_cv_prog_have_automake
5840if test -n "$have_automake"; then
5841  echo "$as_me:$LINENO: result: $have_automake" >&5
5842echo "${ECHO_T}$have_automake" >&6
5843else
5844  echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6
5846fi
5847
5848    if test $have_automake = no; then
5849      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5850echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5851   { (exit 1); exit 1; }; }
5852    fi
5853
5854    # Check whether automake is the correct version
5855    correct_version='1.9.6'
5856    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5857    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5858echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5859    automake --version > confauto.out 2>&1
5860    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5861      echo "$as_me:$LINENO: result: yes" >&5
5862echo "${ECHO_T}yes" >&6
5863    else
5864      rm -f confauto.out
5865      echo "$as_me:$LINENO: result: no" >&5
5866echo "${ECHO_T}no" >&6
5867      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5868echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5869   { (exit 1); exit 1; }; }
5870    fi
5871    rm -f confauto.out
5872
5873    # Check if the executable automake is picked up from the correct location
5874    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5875echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5876    automake_dir=`which automake | sed -e 's=/automake=='`
5877    automake_dir=`cd $automake_dir; pwd`
5878    if test x$AUTOTOOLS_DIR = x; then
5879      want_dir=$AUTOTOOLS_DFLT/bin
5880    else
5881      want_dir=$AUTOTOOLS_DIR/bin
5882    fi
5883    if test $automake_dir = `cd $want_dir; pwd`; then
5884      echo "$as_me:$LINENO: result: yes" >&5
5885echo "${ECHO_T}yes" >&6
5886    else
5887      rm -f confauto.out
5888      echo "$as_me:$LINENO: result: no" >&5
5889echo "${ECHO_T}no" >&6
5890      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5891echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5892   { (exit 1); exit 1; }; }
5893    fi
5894
5895    # Check if this is the correct version of libtool (with escaped dots)
5896    if test x$AUTOTOOLS_DIR = x; then
5897      want_dir=$AUTOTOOLS_DFLT/share
5898    else
5899      want_dir=$AUTOTOOLS_DIR/share
5900    fi
5901    correct_version='1.5.22'
5902    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5903    if test -r $want_dir/libtool/ltmain.sh; then
5904  have_ltmain=yes
5905  :
5906else
5907  have_ltmain=no
5908  :
5909fi
5910
5911    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5912echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5913    if test $have_ltmain = yes; then
5914    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5915        echo "$as_me:$LINENO: result: yes" >&5
5916echo "${ECHO_T}yes" >&6
5917      else
5918        echo "$as_me:$LINENO: result: no" >&5
5919echo "${ECHO_T}no" >&6
5920        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5921echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5922   { (exit 1); exit 1; }; }
5923      fi
5924    else
5925      echo "$as_me:$LINENO: result: no" >&5
5926echo "${ECHO_T}no" >&6
5927      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5928echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5929   { (exit 1); exit 1; }; }
5930    fi
5931  fi
5932
5933  # Check if we can find the libtool file
5934  if test x$AUTOTOOLS_DIR = x; then
5935    want_dir=$AUTOTOOLS_DFLT/share
5936  else
5937    want_dir=$AUTOTOOLS_DIR/share
5938  fi
5939  if test -r $want_dir/aclocal/libtool.m4; then
5940  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5941  :
5942else
5943  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5944echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5945   { (exit 1); exit 1; }; }
5946  :
5947fi
5948
5949
5950  # Check if we have an Dependencies file
5951  if test -r $srcdir/Dependencies; then
5952    coin_have_externals=yes
5953  fi
5954  # Check if subversion is installed and understands https
5955  # Extract the first word of "svn", so it can be a program name with args.
5956set dummy svn; ac_word=$2
5957echo "$as_me:$LINENO: checking for $ac_word" >&5
5958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5959if test "${ac_cv_prog_have_svn+set}" = set; then
5960  echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962  if test -n "$have_svn"; then
5963  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968  IFS=$as_save_IFS
5969  test -z "$as_dir" && as_dir=.
5970  for ac_exec_ext in '' $ac_executable_extensions; do
5971  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972    ac_cv_prog_have_svn="yes"
5973    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974    break 2
5975  fi
5976done
5977done
5978
5979  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5980fi
5981fi
5982have_svn=$ac_cv_prog_have_svn
5983if test -n "$have_svn"; then
5984  echo "$as_me:$LINENO: result: $have_svn" >&5
5985echo "${ECHO_T}$have_svn" >&6
5986else
5987  echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6
5989fi
5990
5991  if test x$have_svn = xyes; then
5992    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5993echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5994if test "${ac_cv_svn_understands_https+set}" = set; then
5995  echo $ECHO_N "(cached) $ECHO_C" >&6
5996else
5997  svn --version > confauto.out 2>&1
5998                    if $EGREP https confauto.out >/dev/null 2>&1; then
5999                      ac_cv_svn_understands_https=yes
6000                    else
6001                      ac_cv_svn_understands_https=no
6002                      have_svn=no
6003                      ac_cv_prog_have_svn=no
6004                    fi
6005                    rm -f confauto.out
6006fi
6007echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6008echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6009  fi
6010
6011  # Find the location of the BuildTools directory
6012  BUILDTOOLSDIR=
6013  if test -r $srcdir/BuildTools/coin.m4; then
6014    BUILDTOOLSDIR=$srcdir/BuildTools
6015  else
6016    if test -r $srcdir/../BuildTools/coin.m4; then
6017      BUILDTOOLSDIR=$srcdir/../BuildTools
6018    else
6019      if test -r $srcdir/../../BuildTools/coin.m4; then
6020        BUILDTOOLSDIR=$srcdir/../../BuildTools
6021      else
6022        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6023echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6024   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6025      fi
6026    fi
6027  fi
6028
6029
6030  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6031  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6032    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6033  fi
6034
6035  # The following variable is set to the name of the directory where
6036  # the autotool scripts are located
6037
6038  AUX_DIR=$ac_aux_dir
6039fi
6040
6041# helpful variable for the base directory of this package
6042abs_source_dir=`cd $srcdir; pwd`
6043
6044
6045# Stuff for example Makefiles
6046if test x$prefix = xNONE; then
6047  full_prefix=$ac_default_prefix
6048else
6049  full_prefix=$prefix
6050fi
6051full_prefix=`cd $full_prefix ; pwd`
6052
6053abs_lib_dir=$full_prefix/lib
6054
6055abs_include_dir=$full_prefix/include
6056
6057abs_bin_dir=$full_prefix/bin
6058
6059
6060
6061if test $coin_have_externals = yes && test x$have_svn = xyes; then
6062  HAVE_EXTERNALS_TRUE=
6063  HAVE_EXTERNALS_FALSE='#'
6064else
6065  HAVE_EXTERNALS_TRUE='#'
6066  HAVE_EXTERNALS_FALSE=
6067fi
6068
6069
6070# AC_MSG_NOTICE([End automake initialisation.])
6071
6072
6073
6074LIBTOOL=
6075if test -r ../libtool; then
6076  coin_config_dir=..
6077  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6078fi
6079if test "x$LIBTOOL" = x; then
6080  if test -r ../../libtool; then
6081    coin_config_dir=../..
6082    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6083  fi
6084fi
6085
6086if test "x$LIBTOOL" = x; then
6087# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6088  # Stuff for libtool
6089  # Check whether --enable-shared or --disable-shared was given.
6090if test "${enable_shared+set}" = set; then
6091  enableval="$enable_shared"
6092  p=${PACKAGE-default}
6093    case $enableval in
6094    yes) enable_shared=yes ;;
6095    no) enable_shared=no ;;
6096    *)
6097      enable_shared=no
6098      # Look at the argument we got.  We use all the common list separators.
6099      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6100      for pkg in $enableval; do
6101        IFS="$lt_save_ifs"
6102        if test "X$pkg" = "X$p"; then
6103          enable_shared=yes
6104        fi
6105      done
6106      IFS="$lt_save_ifs"
6107      ;;
6108    esac
6109else
6110  enable_shared=yes
6111fi;
6112
6113# Check whether --enable-fast-install or --disable-fast-install was given.
6114if test "${enable_fast_install+set}" = set; then
6115  enableval="$enable_fast_install"
6116  p=${PACKAGE-default}
6117    case $enableval in
6118    yes) enable_fast_install=yes ;;
6119    no) enable_fast_install=no ;;
6120    *)
6121      enable_fast_install=no
6122      # Look at the argument we got.  We use all the common list separators.
6123      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6124      for pkg in $enableval; do
6125        IFS="$lt_save_ifs"
6126        if test "X$pkg" = "X$p"; then
6127          enable_fast_install=yes
6128        fi
6129      done
6130      IFS="$lt_save_ifs"
6131      ;;
6132    esac
6133else
6134  enable_fast_install=yes
6135fi;
6136
6137echo "$as_me:$LINENO: checking host system type" >&5
6138echo $ECHO_N "checking host system type... $ECHO_C" >&6
6139if test "${ac_cv_host+set}" = set; then
6140  echo $ECHO_N "(cached) $ECHO_C" >&6
6141else
6142  ac_cv_host_alias=$host_alias
6143test -z "$ac_cv_host_alias" &&
6144  ac_cv_host_alias=$ac_cv_build_alias
6145ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6146  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6147echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6148   { (exit 1); exit 1; }; }
6149
6150fi
6151echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6152echo "${ECHO_T}$ac_cv_host" >&6
6153host=$ac_cv_host
6154host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6155host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6156host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6157
6158
6159echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6160echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6161if test "${lt_cv_path_SED+set}" = set; then
6162  echo $ECHO_N "(cached) $ECHO_C" >&6
6163else
6164  # Loop through the user's path and test for sed and gsed.
6165# Then use that list of sed's as ones to test for truncation.
6166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH
6168do
6169  IFS=$as_save_IFS
6170  test -z "$as_dir" && as_dir=.
6171  for lt_ac_prog in sed gsed; do
6172    for ac_exec_ext in '' $ac_executable_extensions; do
6173      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6174        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6175      fi
6176    done
6177  done
6178done
6179lt_ac_max=0
6180lt_ac_count=0
6181# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6182# along with /bin/sed that truncates output.
6183for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6184  test ! -f $lt_ac_sed && continue
6185  cat /dev/null > conftest.in
6186  lt_ac_count=0
6187  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6188  # Check for GNU sed and select it if it is found.
6189  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6190    lt_cv_path_SED=$lt_ac_sed
6191    break
6192  fi
6193  while true; do
6194    cat conftest.in conftest.in >conftest.tmp
6195    mv conftest.tmp conftest.in
6196    cp conftest.in conftest.nl
6197    echo >>conftest.nl
6198    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6199    cmp -s conftest.out conftest.nl || break
6200    # 10000 chars as input seems more than enough
6201    test $lt_ac_count -gt 10 && break
6202    lt_ac_count=`expr $lt_ac_count + 1`
6203    if test $lt_ac_count -gt $lt_ac_max; then
6204      lt_ac_max=$lt_ac_count
6205      lt_cv_path_SED=$lt_ac_sed
6206    fi
6207  done
6208done
6209
6210fi
6211
6212SED=$lt_cv_path_SED
6213echo "$as_me:$LINENO: result: $SED" >&5
6214echo "${ECHO_T}$SED" >&6
6215
6216
6217# Check whether --with-gnu-ld or --without-gnu-ld was given.
6218if test "${with_gnu_ld+set}" = set; then
6219  withval="$with_gnu_ld"
6220  test "$withval" = no || with_gnu_ld=yes
6221else
6222  with_gnu_ld=no
6223fi;
6224ac_prog=ld
6225if test "$GCC" = yes; then
6226  # Check if gcc -print-prog-name=ld gives a path.
6227  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6228echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6229  case $host in
6230  *-*-mingw*)
6231    # gcc leaves a trailing carriage return which upsets mingw
6232    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6233  *)
6234    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6235  esac
6236  case $ac_prog in
6237    # Accept absolute paths.
6238    [\\/]* | ?:[\\/]*)
6239      re_direlt='/[^/][^/]*/\.\./'
6240      # Canonicalize the pathname of ld
6241      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6242      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6243        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6244      done
6245      test -z "$LD" && LD="$ac_prog"
6246      ;;
6247  "")
6248    # If it fails, then pretend we aren't using GCC.
6249    ac_prog=ld
6250    ;;
6251  *)
6252    # If it is relative, then search for the first ld in PATH.
6253    with_gnu_ld=unknown
6254    ;;
6255  esac
6256elif test "$with_gnu_ld" = yes; then
6257  echo "$as_me:$LINENO: checking for GNU ld" >&5
6258echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6259else
6260  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6261echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6262fi
6263if test "${lt_cv_path_LD+set}" = set; then
6264  echo $ECHO_N "(cached) $ECHO_C" >&6
6265else
6266  if test -z "$LD"; then
6267  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6268  for ac_dir in $PATH; do
6269    IFS="$lt_save_ifs"
6270    test -z "$ac_dir" && ac_dir=.
6271    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6272      lt_cv_path_LD="$ac_dir/$ac_prog"
6273      # Check to see if the program is GNU ld.  I'd rather use --version,
6274      # but apparently some variants of GNU ld only accept -v.
6275      # Break only if it was the GNU/non-GNU ld that we prefer.
6276      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6277      *GNU* | *'with BFD'*)
6278        test "$with_gnu_ld" != no && break
6279        ;;
6280      *)
6281        test "$with_gnu_ld" != yes && break
6282        ;;
6283      esac
6284    fi
6285  done
6286  IFS="$lt_save_ifs"
6287else
6288  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6289fi
6290fi
6291
6292LD="$lt_cv_path_LD"
6293if test -n "$LD"; then
6294  echo "$as_me:$LINENO: result: $LD" >&5
6295echo "${ECHO_T}$LD" >&6
6296else
6297  echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6
6299fi
6300test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6301echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6302   { (exit 1); exit 1; }; }
6303echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6304echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6305if test "${lt_cv_prog_gnu_ld+set}" = set; then
6306  echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
6308  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6309case `$LD -v 2>&1 </dev/null` in
6310*GNU* | *'with BFD'*)
6311  lt_cv_prog_gnu_ld=yes
6312  ;;
6313*)
6314  lt_cv_prog_gnu_ld=no
6315  ;;
6316esac
6317fi
6318echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6319echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6320with_gnu_ld=$lt_cv_prog_gnu_ld
6321
6322
6323echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6324echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6325if test "${lt_cv_ld_reload_flag+set}" = set; then
6326  echo $ECHO_N "(cached) $ECHO_C" >&6
6327else
6328  lt_cv_ld_reload_flag='-r'
6329fi
6330echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6331echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6332reload_flag=$lt_cv_ld_reload_flag
6333case $reload_flag in
6334"" | " "*) ;;
6335*) reload_flag=" $reload_flag" ;;
6336esac
6337reload_cmds='$LD$reload_flag -o $output$reload_objs'
6338case $host_os in
6339  darwin*)
6340    if test "$GCC" = yes; then
6341      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6342    else
6343      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6344    fi
6345    ;;
6346esac
6347
6348echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6349echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6350if test "${lt_cv_path_NM+set}" = set; then
6351  echo $ECHO_N "(cached) $ECHO_C" >&6
6352else
6353  if test -n "$NM"; then
6354  # Let the user override the test.
6355  lt_cv_path_NM="$NM"
6356else
6357  lt_nm_to_check="${ac_tool_prefix}nm"
6358  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6359    lt_nm_to_check="$lt_nm_to_check nm"
6360  fi
6361  for lt_tmp_nm in $lt_nm_to_check; do
6362    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6363    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6364      IFS="$lt_save_ifs"
6365      test -z "$ac_dir" && ac_dir=.
6366      tmp_nm="$ac_dir/$lt_tmp_nm"
6367      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6368        # Check to see if the nm accepts a BSD-compat flag.
6369        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6370        #   nm: unknown option "B" ignored
6371        # Tru64's nm complains that /dev/null is an invalid object file
6372        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6373        */dev/null* | *'Invalid file or object type'*)
6374          lt_cv_path_NM="$tmp_nm -B"
6375          break
6376          ;;
6377        *)
6378          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6379          */dev/null*)
6380            lt_cv_path_NM="$tmp_nm -p"
6381            break
6382            ;;
6383          *)
6384            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6385            continue # so that we can try to find one that supports BSD flags
6386            ;;
6387          esac
6388          ;;
6389        esac
6390      fi
6391    done
6392    IFS="$lt_save_ifs"
6393  done
6394  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6395fi
6396fi
6397echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6398echo "${ECHO_T}$lt_cv_path_NM" >&6
6399NM="$lt_cv_path_NM"
6400
6401echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6402echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6403if test "${lt_cv_deplibs_check_method+set}" = set; then
6404  echo $ECHO_N "(cached) $ECHO_C" >&6
6405else
6406  lt_cv_file_magic_cmd='$MAGIC_CMD'
6407lt_cv_file_magic_test_file=
6408lt_cv_deplibs_check_method='unknown'
6409# Need to set the preceding variable on all platforms that support
6410# interlibrary dependencies.
6411# 'none' -- dependencies not supported.
6412# `unknown' -- same as none, but documents that we really don't know.
6413# 'pass_all' -- all dependencies passed with no checks.
6414# 'test_compile' -- check by making test program.
6415# 'file_magic [[regex]]' -- check by looking for files in library path
6416# which responds to the $file_magic_cmd with a given extended regex.
6417# If you have `file' or equivalent on your system and you're not sure
6418# whether `pass_all' will *always* work, you probably want this one.
6419
6420case $host_os in
6421aix4* | aix5*)
6422  lt_cv_deplibs_check_method=pass_all
6423  ;;
6424
6425beos*)
6426  lt_cv_deplibs_check_method=pass_all
6427  ;;
6428
6429bsdi[45]*)
6430  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6431  lt_cv_file_magic_cmd='/usr/bin/file -L'
6432  lt_cv_file_magic_test_file=/shlib/libc.so
6433  ;;
6434
6435cygwin*)
6436  # func_win32_libid is a shell function defined in ltmain.sh
6437  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6438  lt_cv_file_magic_cmd='func_win32_libid'
6439  ;;
6440
6441mingw* | pw32*)
6442  # Base MSYS/MinGW do not provide the 'file' command needed by
6443  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6444  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6445  lt_cv_file_magic_cmd='$OBJDUMP -f'
6446  ;;
6447
6448darwin* | rhapsody*)
6449  lt_cv_deplibs_check_method=pass_all
6450  ;;
6451
6452freebsd* | kfreebsd*-gnu | dragonfly*)
6453  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6454    case $host_cpu in
6455    i*86 )
6456      # Not sure whether the presence of OpenBSD here was a mistake.
6457      # Let's accept both of them until this is cleared up.
6458      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6459      lt_cv_file_magic_cmd=/usr/bin/file
6460      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6461      ;;
6462    esac
6463  else
6464    lt_cv_deplibs_check_method=pass_all
6465  fi
6466  ;;
6467
6468gnu*)
6469  lt_cv_deplibs_check_method=pass_all
6470  ;;
6471
6472hpux10.20* | hpux11*)
6473  lt_cv_file_magic_cmd=/usr/bin/file
6474  case $host_cpu in
6475  ia64*)
6476    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6477    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6478    ;;
6479  hppa*64*)
6480    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]'
6481    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6482    ;;
6483  *)
6484    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6485    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6486    ;;
6487  esac
6488  ;;
6489
6490interix3*)
6491  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6492  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6493  ;;
6494
6495irix5* | irix6* | nonstopux*)
6496  case $LD in
6497  *-32|*"-32 ") libmagic=32-bit;;
6498  *-n32|*"-n32 ") libmagic=N32;;
6499  *-64|*"-64 ") libmagic=64-bit;;
6500  *) libmagic=never-match;;
6501  esac
6502  lt_cv_deplibs_check_method=pass_all
6503  ;;
6504
6505# This must be Linux ELF.
6506linux*)
6507  lt_cv_deplibs_check_method=pass_all
6508  ;;
6509
6510netbsd*)
6511  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6512    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6513  else
6514    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6515  fi
6516  ;;
6517
6518newos6*)
6519  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6520  lt_cv_file_magic_cmd=/usr/bin/file
6521  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6522  ;;
6523
6524nto-qnx*)
6525  lt_cv_deplibs_check_method=unknown
6526  ;;
6527
6528openbsd*)
6529  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6530    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6531  else
6532    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6533  fi
6534  ;;
6535
6536osf3* | osf4* | osf5*)
6537  lt_cv_deplibs_check_method=pass_all
6538  ;;
6539
6540solaris*)
6541  lt_cv_deplibs_check_method=pass_all
6542  ;;
6543
6544sysv4 | sysv4.3*)
6545  case $host_vendor in
6546  motorola)
6547    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]'
6548    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6549    ;;
6550  ncr)
6551    lt_cv_deplibs_check_method=pass_all
6552    ;;
6553  sequent)
6554    lt_cv_file_magic_cmd='/bin/file'
6555    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6556    ;;
6557  sni)
6558    lt_cv_file_magic_cmd='/bin/file'
6559    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6560    lt_cv_file_magic_test_file=/lib/libc.so
6561    ;;
6562  siemens)
6563    lt_cv_deplibs_check_method=pass_all
6564    ;;
6565  pc)
6566    lt_cv_deplibs_check_method=pass_all
6567    ;;
6568  esac
6569  ;;
6570
6571sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6572  lt_cv_deplibs_check_method=pass_all
6573  ;;
6574esac
6575
6576fi
6577echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6578echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6579file_magic_cmd=$lt_cv_file_magic_cmd
6580deplibs_check_method=$lt_cv_deplibs_check_method
6581test -z "$deplibs_check_method" && deplibs_check_method=unknown
6582
6583
6584
6585
6586# If no C compiler was specified, use CC.
6587LTCC=${LTCC-"$CC"}
6588
6589# If no C compiler flags were specified, use CFLAGS.
6590LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6591
6592# Allow CC to be a program name with arguments.
6593compiler=$CC
6594
6595# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6596if test "${enable_libtool_lock+set}" = set; then
6597  enableval="$enable_libtool_lock"
6598
6599fi;
6600test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6601
6602# Some flags need to be propagated to the compiler or linker for good
6603# libtool support.
6604case $host in
6605ia64-*-hpux*)
6606  # Find out which ABI we are using.
6607  echo 'int i;' > conftest.$ac_ext
6608  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6609  (eval $ac_compile) 2>&5
6610  ac_status=$?
6611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612  (exit $ac_status); }; then
6613    case `/usr/bin/file conftest.$ac_objext` in
6614    *ELF-32*)
6615      HPUX_IA64_MODE="32"
6616      ;;
6617    *ELF-64*)
6618      HPUX_IA64_MODE="64"
6619      ;;
6620    esac
6621  fi
6622  rm -rf conftest*
6623  ;;
6624*-*-irix6*)
6625  # Find out which ABI we are using.
6626  echo '#line 6626 "configure"' > conftest.$ac_ext
6627  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6628  (eval $ac_compile) 2>&5
6629  ac_status=$?
6630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631  (exit $ac_status); }; then
6632   if test "$lt_cv_prog_gnu_ld" = yes; then
6633    case `/usr/bin/file conftest.$ac_objext` in
6634    *32-bit*)
6635      LD="${LD-ld} -melf32bsmip"
6636      ;;
6637    *N32*)
6638      LD="${LD-ld} -melf32bmipn32"
6639      ;;
6640    *64-bit*)
6641      LD="${LD-ld} -melf64bmip"
6642      ;;
6643    esac
6644   else
6645    case `/usr/bin/file conftest.$ac_objext` in
6646    *32-bit*)
6647      LD="${LD-ld} -32"
6648      ;;
6649    *N32*)
6650      LD="${LD-ld} -n32"
6651      ;;
6652    *64-bit*)
6653      LD="${LD-ld} -64"
6654      ;;
6655    esac
6656   fi
6657  fi
6658  rm -rf conftest*
6659  ;;
6660
6661x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6662  # Find out which ABI we are using.
6663  echo 'int i;' > conftest.$ac_ext
6664  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665  (eval $ac_compile) 2>&5
6666  ac_status=$?
6667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668  (exit $ac_status); }; then
6669    case `/usr/bin/file conftest.o` in
6670    *32-bit*)
6671      case $host in
6672        x86_64-*linux*)
6673          LD="${LD-ld} -m elf_i386"
6674          ;;
6675        ppc64-*linux*|powerpc64-*linux*)
6676          LD="${LD-ld} -m elf32ppclinux"
6677          ;;
6678        s390x-*linux*)
6679          LD="${LD-ld} -m elf_s390"
6680          ;;
6681        sparc64-*linux*)
6682          LD="${LD-ld} -m elf32_sparc"
6683          ;;
6684      esac
6685      ;;
6686    *64-bit*)
6687      case $host in
6688        x86_64-*linux*)
6689          LD="${LD-ld} -m elf_x86_64"
6690          ;;
6691        ppc*-*linux*|powerpc*-*linux*)
6692          LD="${LD-ld} -m elf64ppc"
6693          ;;
6694        s390*-*linux*)
6695          LD="${LD-ld} -m elf64_s390"
6696          ;;
6697        sparc*-*linux*)
6698          LD="${LD-ld} -m elf64_sparc"
6699          ;;
6700      esac
6701      ;;
6702    esac
6703  fi
6704  rm -rf conftest*
6705  ;;
6706
6707*-*-sco3.2v5*)
6708  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6709  SAVE_CFLAGS="$CFLAGS"
6710  CFLAGS="$CFLAGS -belf"
6711  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6712echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6713if test "${lt_cv_cc_needs_belf+set}" = set; then
6714  echo $ECHO_N "(cached) $ECHO_C" >&6
6715else
6716  ac_ext=c
6717ac_cpp='$CPP $CPPFLAGS'
6718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6720ac_compiler_gnu=$ac_cv_c_compiler_gnu
6721
6722     cat >conftest.$ac_ext <<_ACEOF
6723/* confdefs.h.  */
6724_ACEOF
6725cat confdefs.h >>conftest.$ac_ext
6726cat >>conftest.$ac_ext <<_ACEOF
6727/* end confdefs.h.  */
6728
6729int
6730main ()
6731{
6732
6733  ;
6734  return 0;
6735}
6736_ACEOF
6737rm -f conftest.$ac_objext conftest$ac_exeext
6738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739  (eval $ac_link) 2>conftest.er1
6740  ac_status=$?
6741  grep -v '^ *+' conftest.er1 >conftest.err
6742  rm -f conftest.er1
6743  cat conftest.err >&5
6744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745  (exit $ac_status); } &&
6746         { ac_try='test -z "$ac_c_werror_flag"
6747                         || test ! -s conftest.err'
6748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749  (eval $ac_try) 2>&5
6750  ac_status=$?
6751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752  (exit $ac_status); }; } &&
6753         { ac_try='test -s conftest$ac_exeext'
6754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755  (eval $ac_try) 2>&5
6756  ac_status=$?
6757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758  (exit $ac_status); }; }; then
6759  lt_cv_cc_needs_belf=yes
6760else
6761  echo "$as_me: failed program was:" >&5
6762sed 's/^/| /' conftest.$ac_ext >&5
6763
6764lt_cv_cc_needs_belf=no
6765fi
6766rm -f conftest.err conftest.$ac_objext \
6767      conftest$ac_exeext conftest.$ac_ext
6768     ac_ext=c
6769ac_cpp='$CPP $CPPFLAGS'
6770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772ac_compiler_gnu=$ac_cv_c_compiler_gnu
6773
6774fi
6775echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6776echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6777  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6778    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6779    CFLAGS="$SAVE_CFLAGS"
6780  fi
6781  ;;
6782sparc*-*solaris*)
6783  # Find out which ABI we are using.
6784  echo 'int i;' > conftest.$ac_ext
6785  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6786  (eval $ac_compile) 2>&5
6787  ac_status=$?
6788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789  (exit $ac_status); }; then
6790    case `/usr/bin/file conftest.o` in
6791    *64-bit*)
6792      case $lt_cv_prog_gnu_ld in
6793      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6794      *)    LD="${LD-ld} -64" ;;
6795      esac
6796      ;;
6797    esac
6798  fi
6799  rm -rf conftest*
6800  ;;
6801
6802
6803esac
6804
6805need_locks="$enable_libtool_lock"
6806
6807
6808ac_ext=c
6809ac_cpp='$CPP $CPPFLAGS'
6810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812ac_compiler_gnu=$ac_cv_c_compiler_gnu
6813echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6814echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6815# On Suns, sometimes $CPP names a directory.
6816if test -n "$CPP" && test -d "$CPP"; then
6817  CPP=
6818fi
6819if test -z "$CPP"; then
6820  if test "${ac_cv_prog_CPP+set}" = set; then
6821  echo $ECHO_N "(cached) $ECHO_C" >&6
6822else
6823      # Double quotes because CPP needs to be expanded
6824    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6825    do
6826      ac_preproc_ok=false
6827for ac_c_preproc_warn_flag in '' yes
6828do
6829  # Use a header file that comes with gcc, so configuring glibc
6830  # with a fresh cross-compiler works.
6831  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6832  # <limits.h> exists even on freestanding compilers.
6833  # On the NeXT, cc -E runs the code through the compiler's parser,
6834  # not just through cpp. "Syntax error" is here to catch this case.
6835  cat >conftest.$ac_ext <<_ACEOF
6836/* confdefs.h.  */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6840/* end confdefs.h.  */
6841#ifdef __STDC__
6842# include <limits.h>
6843#else
6844# include <assert.h>
6845#endif
6846                     Syntax error
6847_ACEOF
6848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6849  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6850  ac_status=$?
6851  grep -v '^ *+' conftest.er1 >conftest.err
6852  rm -f conftest.er1
6853  cat conftest.err >&5
6854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6855  (exit $ac_status); } >/dev/null; then
6856  if test -s conftest.err; then
6857    ac_cpp_err=$ac_c_preproc_warn_flag
6858    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6859  else
6860    ac_cpp_err=
6861  fi
6862else
6863  ac_cpp_err=yes
6864fi
6865if test -z "$ac_cpp_err"; then
6866  :
6867else
6868  echo "$as_me: failed program was:" >&5
6869sed 's/^/| /' conftest.$ac_ext >&5
6870
6871  # Broken: fails on valid input.
6872continue
6873fi
6874rm -f conftest.err conftest.$ac_ext
6875
6876  # OK, works on sane cases.  Now check whether non-existent headers
6877  # can be detected and how.
6878  cat >conftest.$ac_ext <<_ACEOF
6879/* confdefs.h.  */
6880_ACEOF
6881cat confdefs.h >>conftest.$ac_ext
6882cat >>conftest.$ac_ext <<_ACEOF
6883/* end confdefs.h.  */
6884#include <ac_nonexistent.h>
6885_ACEOF
6886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6887  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6888  ac_status=$?
6889  grep -v '^ *+' conftest.er1 >conftest.err
6890  rm -f conftest.er1
6891  cat conftest.err >&5
6892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893  (exit $ac_status); } >/dev/null; then
6894  if test -s conftest.err; then
6895    ac_cpp_err=$ac_c_preproc_warn_flag
6896    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6897  else
6898    ac_cpp_err=
6899  fi
6900else
6901  ac_cpp_err=yes
6902fi
6903if test -z "$ac_cpp_err"; then
6904  # Broken: success on invalid input.
6905continue
6906else
6907  echo "$as_me: failed program was:" >&5
6908sed 's/^/| /' conftest.$ac_ext >&5
6909
6910  # Passes both tests.
6911ac_preproc_ok=:
6912break
6913fi
6914rm -f conftest.err conftest.$ac_ext
6915
6916done
6917# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6918rm -f conftest.err conftest.$ac_ext
6919if $ac_preproc_ok; then
6920  break
6921fi
6922
6923    done
6924    ac_cv_prog_CPP=$CPP
6925
6926fi
6927  CPP=$ac_cv_prog_CPP
6928else
6929  ac_cv_prog_CPP=$CPP
6930fi
6931echo "$as_me:$LINENO: result: $CPP" >&5
6932echo "${ECHO_T}$CPP" >&6
6933ac_preproc_ok=false
6934for ac_c_preproc_warn_flag in '' yes
6935do
6936  # Use a header file that comes with gcc, so configuring glibc
6937  # with a fresh cross-compiler works.
6938  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6939  # <limits.h> exists even on freestanding compilers.
6940  # On the NeXT, cc -E runs the code through the compiler's parser,
6941  # not just through cpp. "Syntax error" is here to catch this case.
6942  cat >conftest.$ac_ext <<_ACEOF
6943/* confdefs.h.  */
6944_ACEOF
6945cat confdefs.h >>conftest.$ac_ext
6946cat >>conftest.$ac_ext <<_ACEOF
6947/* end confdefs.h.  */
6948#ifdef __STDC__
6949# include <limits.h>
6950#else
6951# include <assert.h>
6952#endif
6953                     Syntax error
6954_ACEOF
6955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6956  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6957  ac_status=$?
6958  grep -v '^ *+' conftest.er1 >conftest.err
6959  rm -f conftest.er1
6960  cat conftest.err >&5
6961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962  (exit $ac_status); } >/dev/null; then
6963  if test -s conftest.err; then
6964    ac_cpp_err=$ac_c_preproc_warn_flag
6965    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6966  else
6967    ac_cpp_err=
6968  fi
6969else
6970  ac_cpp_err=yes
6971fi
6972if test -z "$ac_cpp_err"; then
6973  :
6974else
6975  echo "$as_me: failed program was:" >&5
6976sed 's/^/| /' conftest.$ac_ext >&5
6977
6978  # Broken: fails on valid input.
6979continue
6980fi
6981rm -f conftest.err conftest.$ac_ext
6982
6983  # OK, works on sane cases.  Now check whether non-existent headers
6984  # can be detected and how.
6985  cat >conftest.$ac_ext <<_ACEOF
6986/* confdefs.h.  */
6987_ACEOF
6988cat confdefs.h >>conftest.$ac_ext
6989cat >>conftest.$ac_ext <<_ACEOF
6990/* end confdefs.h.  */
6991#include <ac_nonexistent.h>
6992_ACEOF
6993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6994  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6995  ac_status=$?
6996  grep -v '^ *+' conftest.er1 >conftest.err
6997  rm -f conftest.er1
6998  cat conftest.err >&5
6999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000  (exit $ac_status); } >/dev/null; then
7001  if test -s conftest.err; then
7002    ac_cpp_err=$ac_c_preproc_warn_flag
7003    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7004  else
7005    ac_cpp_err=
7006  fi
7007else
7008  ac_cpp_err=yes
7009fi
7010if test -z "$ac_cpp_err"; then
7011  # Broken: success on invalid input.
7012continue
7013else
7014  echo "$as_me: failed program was:" >&5
7015sed 's/^/| /' conftest.$ac_ext >&5
7016
7017  # Passes both tests.
7018ac_preproc_ok=:
7019break
7020fi
7021rm -f conftest.err conftest.$ac_ext
7022
7023done
7024# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7025rm -f conftest.err conftest.$ac_ext
7026if $ac_preproc_ok; then
7027  :
7028else
7029  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7030See \`config.log' for more details." >&5
7031echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7032See \`config.log' for more details." >&2;}
7033   { (exit 1); exit 1; }; }
7034fi
7035
7036ac_ext=c
7037ac_cpp='$CPP $CPPFLAGS'
7038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041
7042
7043echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7044echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7045if test "${ac_cv_header_stdc+set}" = set; then
7046  echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048  cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h.  */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h.  */
7054#include <stdlib.h>
7055#include <stdarg.h>
7056#include <string.h>
7057#include <float.h>
7058
7059int
7060main ()
7061{
7062
7063  ;
7064  return 0;
7065}
7066_ACEOF
7067rm -f conftest.$ac_objext
7068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069  (eval $ac_compile) 2>conftest.er1
7070  ac_status=$?
7071  grep -v '^ *+' conftest.er1 >conftest.err
7072  rm -f conftest.er1
7073  cat conftest.err >&5
7074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075  (exit $ac_status); } &&
7076         { ac_try='test -z "$ac_c_werror_flag"
7077                         || test ! -s conftest.err'
7078  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079  (eval $ac_try) 2>&5
7080  ac_status=$?
7081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082  (exit $ac_status); }; } &&
7083         { ac_try='test -s conftest.$ac_objext'
7084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085  (eval $ac_try) 2>&5
7086  ac_status=$?
7087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088  (exit $ac_status); }; }; then
7089  ac_cv_header_stdc=yes
7090else
7091  echo "$as_me: failed program was:" >&5
7092sed 's/^/| /' conftest.$ac_ext >&5
7093
7094ac_cv_header_stdc=no
7095fi
7096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7097
7098if test $ac_cv_header_stdc = yes; then
7099  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7100  cat >conftest.$ac_ext <<_ACEOF
7101/* confdefs.h.  */
7102_ACEOF
7103cat confdefs.h >>conftest.$ac_ext
7104cat >>conftest.$ac_ext <<_ACEOF
7105/* end confdefs.h.  */
7106#include <string.h>
7107
7108_ACEOF
7109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7110  $EGREP "memchr" >/dev/null 2>&1; then
7111  :
7112else
7113  ac_cv_header_stdc=no
7114fi
7115rm -f conftest*
7116
7117fi
7118
7119if test $ac_cv_header_stdc = yes; then
7120  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7121  cat >conftest.$ac_ext <<_ACEOF
7122/* confdefs.h.  */
7123_ACEOF
7124cat confdefs.h >>conftest.$ac_ext
7125cat >>conftest.$ac_ext <<_ACEOF
7126/* end confdefs.h.  */
7127#include <stdlib.h>
7128
7129_ACEOF
7130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7131  $EGREP "free" >/dev/null 2>&1; then
7132  :
7133else
7134  ac_cv_header_stdc=no
7135fi
7136rm -f conftest*
7137
7138fi
7139
7140if test $ac_cv_header_stdc = yes; then
7141  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7142  if test "$cross_compiling" = yes; then
7143  :
7144else
7145  cat >conftest.$ac_ext <<_ACEOF
7146/* confdefs.h.  */
7147_ACEOF
7148cat confdefs.h >>conftest.$ac_ext
7149cat >>conftest.$ac_ext <<_ACEOF
7150/* end confdefs.h.  */
7151#include <ctype.h>
7152#if ((' ' & 0x0FF) == 0x020)
7153# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7154# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7155#else
7156# define ISLOWER(c) \
7157                   (('a' <= (c) && (c) <= 'i') \
7158                     || ('j' <= (c) && (c) <= 'r') \
7159                     || ('s' <= (c) && (c) <= 'z'))
7160# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7161#endif
7162
7163#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7164int
7165main ()
7166{
7167  int i;
7168  for (i = 0; i < 256; i++)
7169    if (XOR (islower (i), ISLOWER (i))
7170        || toupper (i) != TOUPPER (i))
7171      exit(2);
7172  exit (0);
7173}
7174_ACEOF
7175rm -f conftest$ac_exeext
7176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7177  (eval $ac_link) 2>&5
7178  ac_status=$?
7179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182  (eval $ac_try) 2>&5
7183  ac_status=$?
7184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185  (exit $ac_status); }; }; then
7186  :
7187else
7188  echo "$as_me: program exited with status $ac_status" >&5
7189echo "$as_me: failed program was:" >&5
7190sed 's/^/| /' conftest.$ac_ext >&5
7191
7192( exit $ac_status )
7193ac_cv_header_stdc=no
7194fi
7195rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7196fi
7197fi
7198fi
7199echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7200echo "${ECHO_T}$ac_cv_header_stdc" >&6
7201if test $ac_cv_header_stdc = yes; then
7202
7203cat >>confdefs.h <<\_ACEOF
7204#define STDC_HEADERS 1
7205_ACEOF
7206
7207fi
7208
7209# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7220                  inttypes.h stdint.h unistd.h
7221do
7222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7223echo "$as_me:$LINENO: checking for $ac_header" >&5
7224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7225if eval "test \"\${$as_ac_Header+set}\" = set"; then
7226  echo $ECHO_N "(cached) $ECHO_C" >&6
7227else
7228  cat >conftest.$ac_ext <<_ACEOF
7229/* confdefs.h.  */
7230_ACEOF
7231cat confdefs.h >>conftest.$ac_ext
7232cat >>conftest.$ac_ext <<_ACEOF
7233/* end confdefs.h.  */
7234$ac_includes_default
7235
7236#include <$ac_header>
7237_ACEOF
7238rm -f conftest.$ac_objext
7239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7240  (eval $ac_compile) 2>conftest.er1
7241  ac_status=$?
7242  grep -v '^ *+' conftest.er1 >conftest.err
7243  rm -f conftest.er1
7244  cat conftest.err >&5
7245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246  (exit $ac_status); } &&
7247         { ac_try='test -z "$ac_c_werror_flag"
7248                         || test ! -s conftest.err'
7249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250  (eval $ac_try) 2>&5
7251  ac_status=$?
7252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253  (exit $ac_status); }; } &&
7254         { ac_try='test -s conftest.$ac_objext'
7255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256  (eval $ac_try) 2>&5
7257  ac_status=$?
7258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259  (exit $ac_status); }; }; then
7260  eval "$as_ac_Header=yes"
7261else
7262  echo "$as_me: failed program was:" >&5
7263sed 's/^/| /' conftest.$ac_ext >&5
7264
7265eval "$as_ac_Header=no"
7266fi
7267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7268fi
7269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7270echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7271if test `eval echo '${'$as_ac_Header'}'` = yes; then
7272  cat >>confdefs.h <<_ACEOF
7273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7274_ACEOF
7275
7276fi
7277
7278done
7279
7280
7281
7282for ac_header in dlfcn.h
7283do
7284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7285if eval "test \"\${$as_ac_Header+set}\" = set"; then
7286  echo "$as_me:$LINENO: checking for $ac_header" >&5
7287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7288if eval "test \"\${$as_ac_Header+set}\" = set"; then
7289  echo $ECHO_N "(cached) $ECHO_C" >&6
7290fi
7291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7293else
7294  # Is the header compilable?
7295echo "$as_me:$LINENO: checking $ac_header usability" >&5
7296echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7297cat >conftest.$ac_ext <<_ACEOF
7298/* confdefs.h.  */
7299_ACEOF
7300cat confdefs.h >>conftest.$ac_ext
7301cat >>conftest.$ac_ext <<_ACEOF
7302/* end confdefs.h.  */
7303$ac_includes_default
7304#include <$ac_header>
7305_ACEOF
7306rm -f conftest.$ac_objext
7307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7308  (eval $ac_compile) 2>conftest.er1
7309  ac_status=$?
7310  grep -v '^ *+' conftest.er1 >conftest.err
7311  rm -f conftest.er1
7312  cat conftest.err >&5
7313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314  (exit $ac_status); } &&
7315         { ac_try='test -z "$ac_c_werror_flag"
7316                         || test ! -s conftest.err'
7317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318  (eval $ac_try) 2>&5
7319  ac_status=$?
7320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321  (exit $ac_status); }; } &&
7322         { ac_try='test -s conftest.$ac_objext'
7323  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324  (eval $ac_try) 2>&5
7325  ac_status=$?
7326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327  (exit $ac_status); }; }; then
7328  ac_header_compiler=yes
7329else
7330  echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
7333ac_header_compiler=no
7334fi
7335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7336echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7337echo "${ECHO_T}$ac_header_compiler" >&6
7338
7339# Is the header present?
7340echo "$as_me:$LINENO: checking $ac_header presence" >&5
7341echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7342cat >conftest.$ac_ext <<_ACEOF
7343/* confdefs.h.  */
7344_ACEOF
7345cat confdefs.h >>conftest.$ac_ext
7346cat >>conftest.$ac_ext <<_ACEOF
7347/* end confdefs.h.  */
7348#include <$ac_header>
7349_ACEOF
7350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7351  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7352  ac_status=$?
7353  grep -v '^ *+' conftest.er1 >conftest.err
7354  rm -f conftest.er1
7355  cat conftest.err >&5
7356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357  (exit $ac_status); } >/dev/null; then
7358  if test -s conftest.err; then
7359    ac_cpp_err=$ac_c_preproc_warn_flag
7360    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7361  else
7362    ac_cpp_err=
7363  fi
7364else
7365  ac_cpp_err=yes
7366fi
7367if test -z "$ac_cpp_err"; then
7368  ac_header_preproc=yes
7369else
7370  echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
7373  ac_header_preproc=no
7374fi
7375rm -f conftest.err conftest.$ac_ext
7376echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7377echo "${ECHO_T}$ac_header_preproc" >&6
7378
7379# So?  What about this header?
7380case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7381  yes:no: )
7382    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7383echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7384    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7385echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7386    ac_header_preproc=yes
7387    ;;
7388  no:yes:* )
7389    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7390echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7391    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7392echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7393    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7394echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7395    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7396echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7397    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7398echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7399    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7400echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7401    (
7402      cat <<\_ASBOX
7403## ----------------------------------------- ##
7404## Report this to coin-clp@lists.coin-or.org ##
7405## ----------------------------------------- ##
7406_ASBOX
7407    ) |
7408      sed "s/^/$as_me: WARNING:     /" >&2
7409    ;;
7410esac
7411echo "$as_me:$LINENO: checking for $ac_header" >&5
7412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7413if eval "test \"\${$as_ac_Header+set}\" = set"; then
7414  echo $ECHO_N "(cached) $ECHO_C" >&6
7415else
7416  eval "$as_ac_Header=\$ac_header_preproc"
7417fi
7418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7420
7421fi
7422if test `eval echo '${'$as_ac_Header'}'` = yes; then
7423  cat >>confdefs.h <<_ACEOF
7424#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7425_ACEOF
7426
7427fi
7428
7429done
7430
7431
7432
7433if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7434    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7435    (test "X$CXX" != "Xg++"))) ; then
7436  ac_ext=cc
7437ac_cpp='$CXXCPP $CPPFLAGS'
7438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7441echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7442echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7443if test -z "$CXXCPP"; then
7444  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7445  echo $ECHO_N "(cached) $ECHO_C" >&6
7446else
7447      # Double quotes because CXXCPP needs to be expanded
7448    for CXXCPP in "$CXX -E" "/lib/cpp"
7449    do
7450      ac_preproc_ok=false
7451for ac_cxx_preproc_warn_flag in '' yes
7452do
7453  # Use a header file that comes with gcc, so configuring glibc
7454  # with a fresh cross-compiler works.
7455  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7456  # <limits.h> exists even on freestanding compilers.
7457  # On the NeXT, cc -E runs the code through the compiler's parser,
7458  # not just through cpp. "Syntax error" is here to catch this case.
7459  cat >conftest.$ac_ext <<_ACEOF
7460/* confdefs.h.  */
7461_ACEOF
7462cat confdefs.h >>conftest.$ac_ext
7463cat >>conftest.$ac_ext <<_ACEOF
7464/* end confdefs.h.  */
7465#ifdef __STDC__
7466# include <limits.h>
7467#else
7468# include <assert.h>
7469#endif
7470                     Syntax error
7471_ACEOF
7472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7473  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7474  ac_status=$?
7475  grep -v '^ *+' conftest.er1 >conftest.err
7476  rm -f conftest.er1
7477  cat conftest.err >&5
7478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479  (exit $ac_status); } >/dev/null; then
7480  if test -s conftest.err; then
7481    ac_cpp_err=$ac_cxx_preproc_warn_flag
7482    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7483  else
7484    ac_cpp_err=
7485  fi
7486else
7487  ac_cpp_err=yes
7488fi
7489if test -z "$ac_cpp_err"; then
7490  :
7491else
7492  echo "$as_me: failed program was:" >&5
7493sed 's/^/| /' conftest.$ac_ext >&5
7494
7495  # Broken: fails on valid input.
7496continue
7497fi
7498rm -f conftest.err conftest.$ac_ext
7499
7500  # OK, works on sane cases.  Now check whether non-existent headers
7501  # can be detected and how.
7502  cat >conftest.$ac_ext <<_ACEOF
7503/* confdefs.h.  */
7504_ACEOF
7505cat confdefs.h >>conftest.$ac_ext
7506cat >>conftest.$ac_ext <<_ACEOF
7507/* end confdefs.h.  */
7508#include <ac_nonexistent.h>
7509_ACEOF
7510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7511  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7512  ac_status=$?
7513  grep -v '^ *+' conftest.er1 >conftest.err
7514  rm -f conftest.er1
7515  cat conftest.err >&5
7516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517  (exit $ac_status); } >/dev/null; then
7518  if test -s conftest.err; then
7519    ac_cpp_err=$ac_cxx_preproc_warn_flag
7520    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7521  else
7522    ac_cpp_err=
7523  fi
7524else
7525  ac_cpp_err=yes
7526fi
7527if test -z "$ac_cpp_err"; then
7528  # Broken: success on invalid input.
7529continue
7530else
7531  echo "$as_me: failed program was:" >&5
7532sed 's/^/| /' conftest.$ac_ext >&5
7533
7534  # Passes both tests.
7535ac_preproc_ok=:
7536break
7537fi
7538rm -f conftest.err conftest.$ac_ext
7539
7540done
7541# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7542rm -f conftest.err conftest.$ac_ext
7543if $ac_preproc_ok; then
7544  break
7545fi
7546
7547    done
7548    ac_cv_prog_CXXCPP=$CXXCPP
7549
7550fi
7551  CXXCPP=$ac_cv_prog_CXXCPP
7552else
7553  ac_cv_prog_CXXCPP=$CXXCPP
7554fi
7555echo "$as_me:$LINENO: result: $CXXCPP" >&5
7556echo "${ECHO_T}$CXXCPP" >&6
7557ac_preproc_ok=false
7558for ac_cxx_preproc_warn_flag in '' yes
7559do
7560  # Use a header file that comes with gcc, so configuring glibc
7561  # with a fresh cross-compiler works.
7562  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7563  # <limits.h> exists even on freestanding compilers.
7564  # On the NeXT, cc -E runs the code through the compiler's parser,
7565  # not just through cpp. "Syntax error" is here to catch this case.
7566  cat >conftest.$ac_ext <<_ACEOF
7567/* confdefs.h.  */
7568_ACEOF
7569cat confdefs.h >>conftest.$ac_ext
7570cat >>conftest.$ac_ext <<_ACEOF
7571/* end confdefs.h.  */
7572#ifdef __STDC__
7573# include <limits.h>
7574#else
7575# include <assert.h>
7576#endif
7577                     Syntax error
7578_ACEOF
7579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7580  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7581  ac_status=$?
7582  grep -v '^ *+' conftest.er1 >conftest.err
7583  rm -f conftest.er1
7584  cat conftest.err >&5
7585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586  (exit $ac_status); } >/dev/null; then
7587  if test -s conftest.err; then
7588    ac_cpp_err=$ac_cxx_preproc_warn_flag
7589    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7590  else
7591    ac_cpp_err=
7592  fi
7593else
7594  ac_cpp_err=yes
7595fi
7596if test -z "$ac_cpp_err"; then
7597  :
7598else
7599  echo "$as_me: failed program was:" >&5
7600sed 's/^/| /' conftest.$ac_ext >&5
7601
7602  # Broken: fails on valid input.
7603continue
7604fi
7605rm -f conftest.err conftest.$ac_ext
7606
7607  # OK, works on sane cases.  Now check whether non-existent headers
7608  # can be detected and how.
7609  cat >conftest.$ac_ext <<_ACEOF
7610/* confdefs.h.  */
7611_ACEOF
7612cat confdefs.h >>conftest.$ac_ext
7613cat >>conftest.$ac_ext <<_ACEOF
7614/* end confdefs.h.  */
7615#include <ac_nonexistent.h>
7616_ACEOF
7617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7618  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7619  ac_status=$?
7620  grep -v '^ *+' conftest.er1 >conftest.err
7621  rm -f conftest.er1
7622  cat conftest.err >&5
7623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624  (exit $ac_status); } >/dev/null; then
7625  if test -s conftest.err; then
7626    ac_cpp_err=$ac_cxx_preproc_warn_flag
7627    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7628  else
7629    ac_cpp_err=
7630  fi
7631else
7632  ac_cpp_err=yes
7633fi
7634if test -z "$ac_cpp_err"; then
7635  # Broken: success on invalid input.
7636continue
7637else
7638  echo "$as_me: failed program was:" >&5
7639sed 's/^/| /' conftest.$ac_ext >&5
7640
7641  # Passes both tests.
7642ac_preproc_ok=:
7643break
7644fi
7645rm -f conftest.err conftest.$ac_ext
7646
7647done
7648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7649rm -f conftest.err conftest.$ac_ext
7650if $ac_preproc_ok; then
7651  :
7652else
7653  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7654See \`config.log' for more details." >&5
7655echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7656See \`config.log' for more details." >&2;}
7657   { (exit 1); exit 1; }; }
7658fi
7659
7660ac_ext=cc
7661ac_cpp='$CXXCPP $CPPFLAGS'
7662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7665
7666fi
7667
7668
7669# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7670
7671# find the maximum length of command line arguments
7672echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7673echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7674if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7675  echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677    i=0
7678  teststring="ABCD"
7679
7680  case $build_os in
7681  msdosdjgpp*)
7682    # On DJGPP, this test can blow up pretty badly due to problems in libc
7683    # (any single argument exceeding 2000 bytes causes a buffer overrun
7684    # during glob expansion).  Even if it were fixed, the result of this
7685    # check would be larger than it should be.
7686    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7687    ;;
7688
7689  gnu*)
7690    # Under GNU Hurd, this test is not required because there is
7691    # no limit to the length of command line arguments.
7692    # Libtool will interpret -1 as no limit whatsoever
7693    lt_cv_sys_max_cmd_len=-1;
7694    ;;
7695
7696  cygwin* | mingw*)
7697    # On Win9x/ME, this test blows up -- it succeeds, but takes
7698    # about 5 minutes as the teststring grows exponentially.
7699    # Worse, since 9x/ME are not pre-emptively multitasking,
7700    # you end up with a "frozen" computer, even though with patience
7701    # the test eventually succeeds (with a max line length of 256k).
7702    # Instead, let's just punt: use the minimum linelength reported by
7703    # all of the supported platforms: 8192 (on NT/2K/XP).
7704    lt_cv_sys_max_cmd_len=8192;
7705    ;;
7706
7707  amigaos*)
7708    # On AmigaOS with pdksh, this test takes hours, literally.
7709    # So we just punt and use a minimum line length of 8192.
7710    lt_cv_sys_max_cmd_len=8192;
7711    ;;
7712
7713  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7714    # This has been around since 386BSD, at least.  Likely further.
7715    if test -x /sbin/sysctl; then
7716      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7717    elif test -x /usr/sbin/sysctl; then
7718      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7719    else
7720      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7721    fi
7722    # And add a safety zone
7723    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7724    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7725    ;;
7726
7727  interix*)
7728    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7729    lt_cv_sys_max_cmd_len=196608
7730    ;;
7731
7732  osf*)
7733    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7734    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7735    # nice to cause kernel panics so lets avoid the loop below.
7736    # First set a reasonable default.
7737    lt_cv_sys_max_cmd_len=16384
7738    #
7739    if test -x /sbin/sysconfig; then
7740      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7741        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7742      esac
7743    fi
7744    ;;
7745  sco3.2v5*)
7746    lt_cv_sys_max_cmd_len=102400
7747    ;;
7748  sysv5* | sco5v6* | sysv4.2uw2*)
7749    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7750    if test -n "$kargmax"; then
7751      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7752    else
7753      lt_cv_sys_max_cmd_len=32768
7754    fi
7755    ;;
7756  *)
7757    # If test is not a shell built-in, we'll probably end up computing a
7758    # maximum length that is only half of the actual maximum length, but
7759    # we can't tell.
7760    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7761    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7762               = "XX$teststring") >/dev/null 2>&1 &&
7763            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7764            lt_cv_sys_max_cmd_len=$new_result &&
7765            test $i != 17 # 1/2 MB should be enough
7766    do
7767      i=`expr $i + 1`
7768      teststring=$teststring$teststring
7769    done
7770    teststring=
7771    # Add a significant safety factor because C++ compilers can tack on massive
7772    # amounts of additional arguments before passing them to the linker.
7773    # It appears as though 1/2 is a usable value.
7774    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7775    ;;
7776  esac
7777
7778fi
7779
7780if test -n $lt_cv_sys_max_cmd_len ; then
7781  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7782echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7783else
7784  echo "$as_me:$LINENO: result: none" >&5
7785echo "${ECHO_T}none" >&6
7786fi
7787
7788
7789
7790
7791# Check for command to grab the raw symbol name followed by C symbol from nm.
7792echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7793echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7794if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7795  echo $ECHO_N "(cached) $ECHO_C" >&6
7796else
7797
7798# These are sane defaults that work on at least a few old systems.
7799# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7800
7801# Character class describing NM global symbol codes.
7802symcode='[BCDEGRST]'
7803
7804# Regexp to match symbols that can be accessed directly from C.
7805sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7806
7807# Transform an extracted symbol line into a proper C declaration
7808lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7809
7810# Transform an extracted symbol line into symbol name and symbol address
7811lt_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'"
7812
7813# Define system-specific variables.
7814case $host_os in
7815aix*)
7816  symcode='[BCDT]'
7817  ;;
7818cygwin* | mingw* | pw32*)
7819  symcode='[ABCDGISTW]'
7820  ;;
7821hpux*) # Its linker distinguishes data from code symbols
7822  if test "$host_cpu" = ia64; then
7823    symcode='[ABCDEGRST]'
7824  fi
7825  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7826  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'"
7827  ;;
7828linux*)
7829  if test "$host_cpu" = ia64; then
7830    symcode='[ABCDGIRSTW]'
7831    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7832    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'"
7833  fi
7834  ;;
7835irix* | nonstopux*)
7836  symcode='[BCDEGRST]'
7837  ;;
7838osf*)
7839  symcode='[BCDEGQRST]'
7840  ;;
7841solaris*)
7842  symcode='[BDRT]'
7843  ;;
7844sco3.2v5*)
7845  symcode='[DT]'
7846  ;;
7847sysv4.2uw2*)
7848  symcode='[DT]'
7849  ;;
7850sysv5* | sco5v6* | unixware* | OpenUNIX*)
7851  symcode='[ABDT]'
7852  ;;
7853sysv4)
7854  symcode='[DFNSTU]'
7855  ;;
7856esac
7857
7858# Handle CRLF in mingw tool chain
7859opt_cr=
7860case $build_os in
7861mingw*)
7862  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7863  ;;
7864esac
7865
7866# If we're using GNU nm, then use its standard symbol codes.
7867case `$NM -V 2>&1` in
7868*GNU* | *'with BFD'*)
7869  symcode='[ABCDGIRSTW]' ;;
7870esac
7871
7872# Try without a prefix undercore, then with it.
7873for ac_symprfx in "" "_"; do
7874
7875  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7876  symxfrm="\\1 $ac_symprfx\\2 \\2"
7877
7878  # Write the raw and C identifiers.
7879  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7880
7881  # Check to see that the pipe works correctly.
7882  pipe_works=no
7883
7884  rm -f conftest*
7885  cat > conftest.$ac_ext <<EOF
7886#ifdef __cplusplus
7887extern "C" {
7888#endif
7889char nm_test_var;
7890void nm_test_func(){}
7891#ifdef __cplusplus
7892}
7893#endif
7894int main(){nm_test_var='a';nm_test_func();return(0);}
7895EOF
7896
7897  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898  (eval $ac_compile) 2>&5
7899  ac_status=$?
7900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901  (exit $ac_status); }; then
7902    # Now try to grab the symbols.
7903    nlist=conftest.nm
7904    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7905  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7906  ac_status=$?
7907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908  (exit $ac_status); } && test -s "$nlist"; then
7909      # Try sorting and uniquifying the output.
7910      if sort "$nlist" | uniq > "$nlist"T; then
7911        mv -f "$nlist"T "$nlist"
7912      else
7913        rm -f "$nlist"T
7914      fi
7915
7916      # Make sure that we snagged all the symbols we need.
7917      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7918        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7919          cat <<EOF > conftest.$ac_ext
7920#ifdef __cplusplus
7921extern "C" {
7922#endif
7923
7924EOF
7925          # Now generate the symbol file.
7926          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7927
7928          cat <<EOF >> conftest.$ac_ext
7929#if defined (__STDC__) && __STDC__
7930# define lt_ptr_t void *
7931#else
7932# define lt_ptr_t char *
7933# define const
7934#endif
7935
7936/* The mapping between symbol names and symbols. */
7937const struct {
7938  const char *name;
7939  lt_ptr_t address;
7940}
7941lt_preloaded_symbols[] =
7942{
7943EOF
7944          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7945          cat <<\EOF >> conftest.$ac_ext
7946  {0, (lt_ptr_t) 0}
7947};
7948
7949#ifdef __cplusplus
7950}
7951#endif
7952EOF
7953          # Now try linking the two files.
7954          mv conftest.$ac_objext conftstm.$ac_objext
7955          lt_save_LIBS="$LIBS"
7956          lt_save_CFLAGS="$CFLAGS"
7957          LIBS="conftstm.$ac_objext"
7958          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7959          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7960  (eval $ac_link) 2>&5
7961  ac_status=$?
7962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7964            pipe_works=yes
7965          fi
7966          LIBS="$lt_save_LIBS"
7967          CFLAGS="$lt_save_CFLAGS"
7968        else
7969          echo "cannot find nm_test_func in $nlist" >&5
7970        fi
7971      else
7972        echo "cannot find nm_test_var in $nlist" >&5
7973      fi
7974    else
7975      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7976    fi
7977  else
7978    echo "$progname: failed program was:" >&5
7979    cat conftest.$ac_ext >&5
7980  fi
7981  rm -f conftest* conftst*
7982
7983  # Do not use the global_symbol_pipe unless it works.
7984  if test "$pipe_works" = yes; then
7985    break
7986  else
7987    lt_cv_sys_global_symbol_pipe=
7988  fi
7989done
7990
7991fi
7992
7993if test -z "$lt_cv_sys_global_symbol_pipe"; then
7994  lt_cv_sys_global_symbol_to_cdecl=
7995fi
7996if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7997  echo "$as_me:$LINENO: result: failed" >&5
7998echo "${ECHO_T}failed" >&6
7999else
8000  echo "$as_me:$LINENO: result: ok" >&5
8001echo "${ECHO_T}ok" >&6
8002fi
8003
8004echo "$as_me:$LINENO: checking for objdir" >&5
8005echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8006if test "${lt_cv_objdir+set}" = set; then
8007  echo $ECHO_N "(cached) $ECHO_C" >&6
8008else
8009  rm -f .libs 2>/dev/null
8010mkdir .libs 2>/dev/null
8011if test -d .libs; then
8012  lt_cv_objdir=.libs
8013else
8014  # MS-DOS does not allow filenames that begin with a dot.
8015  lt_cv_objdir=_libs
8016fi
8017rmdir .libs 2>/dev/null
8018fi
8019echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8020echo "${ECHO_T}$lt_cv_objdir" >&6
8021objdir=$lt_cv_objdir
8022
8023
8024
8025
8026
8027case $host_os in
8028aix3*)
8029  # AIX sometimes has problems with the GCC collect2 program.  For some
8030  # reason, if we set the COLLECT_NAMES environment variable, the problems
8031  # vanish in a puff of smoke.
8032  if test "X${COLLECT_NAMES+set}" != Xset; then
8033    COLLECT_NAMES=
8034    export COLLECT_NAMES
8035  fi
8036  ;;
8037esac
8038
8039# Sed substitution that helps us do robust quoting.  It backslashifies
8040# metacharacters that are still active within double-quoted strings.
8041Xsed='sed -e 1s/^X//'
8042sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8043
8044# Same as above, but do not quote variable references.
8045double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8046
8047# Sed substitution to delay expansion of an escaped shell variable in a
8048# double_quote_subst'ed string.
8049delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8050
8051# Sed substitution to avoid accidental globbing in evaled expressions
8052no_glob_subst='s/\*/\\\*/g'
8053
8054# Constants:
8055rm="rm -f"
8056
8057# Global variables:
8058default_ofile=libtool
8059can_build_shared=yes
8060
8061# All known linkers require a `.a' archive for static linking (except MSVC,
8062# which needs '.lib').
8063libext=a
8064ltmain="$ac_aux_dir/ltmain.sh"
8065ofile="$default_ofile"
8066with_gnu_ld="$lt_cv_prog_gnu_ld"
8067
8068if test -n "$ac_tool_prefix"; then
8069  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8070set dummy ${ac_tool_prefix}ar; ac_word=$2
8071echo "$as_me:$LINENO: checking for $ac_word" >&5
8072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8073if test "${ac_cv_prog_AR+set}" = set; then
8074  echo $ECHO_N "(cached) $ECHO_C" >&6
8075else
8076  if test -n "$AR"; then
8077  ac_cv_prog_AR="$AR" # Let the user override the test.
8078else
8079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8080for as_dir in $PATH
8081do
8082  IFS=$as_save_IFS
8083  test -z "$as_dir" && as_dir=.
8084  for ac_exec_ext in '' $ac_executable_extensions; do
8085  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8086    ac_cv_prog_AR="${ac_tool_prefix}ar"
8087    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8088    break 2
8089  fi
8090done
8091done
8092
8093fi
8094fi
8095AR=$ac_cv_prog_AR
8096if test -n "$AR"; then
8097  echo "$as_me:$LINENO: result: $AR" >&5
8098echo "${ECHO_T}$AR" >&6
8099else
8100  echo "$as_me:$LINENO: result: no" >&5
8101echo "${ECHO_T}no" >&6
8102fi
8103
8104fi
8105if test -z "$ac_cv_prog_AR"; then
8106  ac_ct_AR=$AR
8107  # Extract the first word of "ar", so it can be a program name with args.
8108set dummy ar; ac_word=$2
8109echo "$as_me:$LINENO: checking for $ac_word" >&5
8110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8111if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8112  echo $ECHO_N "(cached) $ECHO_C" >&6
8113else
8114  if test -n "$ac_ct_AR"; then
8115  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8116else
8117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118for as_dir in $PATH
8119do
8120  IFS=$as_save_IFS
8121  test -z "$as_dir" && as_dir=.
8122  for ac_exec_ext in '' $ac_executable_extensions; do
8123  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8124    ac_cv_prog_ac_ct_AR="ar"
8125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8126    break 2
8127  fi
8128done
8129done
8130
8131  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8132fi
8133fi
8134ac_ct_AR=$ac_cv_prog_ac_ct_AR
8135if test -n "$ac_ct_AR"; then
8136  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8137echo "${ECHO_T}$ac_ct_AR" >&6
8138else
8139  echo "$as_me:$LINENO: result: no" >&5
8140echo "${ECHO_T}no" >&6
8141fi
8142
8143  AR=$ac_ct_AR
8144else
8145  AR="$ac_cv_prog_AR"
8146fi
8147
8148if test -n "$ac_tool_prefix"; then
8149  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8150set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8151echo "$as_me:$LINENO: checking for $ac_word" >&5
8152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8153if test "${ac_cv_prog_RANLIB+set}" = set; then
8154  echo $ECHO_N "(cached) $ECHO_C" >&6
8155else
8156  if test -n "$RANLIB"; then
8157  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8158else
8159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160for as_dir in $PATH
8161do
8162  IFS=$as_save_IFS
8163  test -z "$as_dir" && as_dir=.
8164  for ac_exec_ext in '' $ac_executable_extensions; do
8165  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8167    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8168    break 2
8169  fi
8170done
8171done
8172
8173fi
8174fi
8175RANLIB=$ac_cv_prog_RANLIB
8176if test -n "$RANLIB"; then
8177  echo "$as_me:$LINENO: result: $RANLIB" >&5
8178echo "${ECHO_T}$RANLIB" >&6
8179else
8180  echo "$as_me:$LINENO: result: no" >&5
8181echo "${ECHO_T}no" >&6
8182fi
8183
8184fi
8185if test -z "$ac_cv_prog_RANLIB"; then
8186  ac_ct_RANLIB=$RANLIB
8187  # Extract the first word of "ranlib", so it can be a program name with args.
8188set dummy ranlib; ac_word=$2
8189echo "$as_me:$LINENO: checking for $ac_word" >&5
8190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8191if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8192  echo $ECHO_N "(cached) $ECHO_C" >&6
8193else
8194  if test -n "$ac_ct_RANLIB"; then
8195  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8196else
8197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198for as_dir in $PATH
8199do
8200  IFS=$as_save_IFS
8201  test -z "$as_dir" && as_dir=.
8202  for ac_exec_ext in '' $ac_executable_extensions; do
8203  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8204    ac_cv_prog_ac_ct_RANLIB="ranlib"
8205    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8206    break 2
8207  fi
8208done
8209done
8210
8211  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8212fi
8213fi
8214ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8215if test -n "$ac_ct_RANLIB"; then
8216  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8217echo "${ECHO_T}$ac_ct_RANLIB" >&6
8218else
8219  echo "$as_me:$LINENO: result: no" >&5
8220echo "${ECHO_T}no" >&6
8221fi
8222
8223  RANLIB=$ac_ct_RANLIB
8224else
8225  RANLIB="$ac_cv_prog_RANLIB"
8226fi
8227
8228if test -n "$ac_tool_prefix"; then
8229  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8230set dummy ${ac_tool_prefix}strip; ac_word=$2
8231echo "$as_me:$LINENO: checking for $ac_word" >&5
8232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8233if test "${ac_cv_prog_STRIP+set}" = set; then
8234  echo $ECHO_N "(cached) $ECHO_C" >&6
8235else
8236  if test -n "$STRIP"; then
8237  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8238else
8239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240for as_dir in $PATH
8241do
8242  IFS=$as_save_IFS
8243  test -z "$as_dir" && as_dir=.
8244  for ac_exec_ext in '' $ac_executable_extensions; do
8245  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8246    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8247    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8248    break 2
8249  fi
8250done
8251done
8252
8253fi
8254fi
8255STRIP=$ac_cv_prog_STRIP
8256if test -n "$STRIP"; then
8257  echo "$as_me:$LINENO: result: $STRIP" >&5
8258echo "${ECHO_T}$STRIP" >&6
8259else
8260  echo "$as_me:$LINENO: result: no" >&5
8261echo "${ECHO_T}no" >&6
8262fi
8263
8264fi
8265if test -z "$ac_cv_prog_STRIP"; then
8266  ac_ct_STRIP=$STRIP
8267  # Extract the first word of "strip", so it can be a program name with args.
8268set dummy strip; ac_word=$2
8269echo "$as_me:$LINENO: checking for $ac_word" >&5
8270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8271if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8272  echo $ECHO_N "(cached) $ECHO_C" >&6
8273else
8274  if test -n "$ac_ct_STRIP"; then
8275  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8276else
8277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280  IFS=$as_save_IFS
8281  test -z "$as_dir" && as_dir=.
8282  for ac_exec_ext in '' $ac_executable_extensions; do
8283  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284    ac_cv_prog_ac_ct_STRIP="strip"
8285    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8286    break 2
8287  fi
8288done
8289done
8290
8291  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8292fi
8293fi
8294ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8295if test -n "$ac_ct_STRIP"; then
8296  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8297echo "${ECHO_T}$ac_ct_STRIP" >&6
8298else
8299  echo "$as_me:$LINENO: result: no" >&5
8300echo "${ECHO_T}no" >&6
8301fi
8302
8303  STRIP=$ac_ct_STRIP
8304else
8305  STRIP="$ac_cv_prog_STRIP"
8306fi
8307
8308
8309old_CC="$CC"
8310old_CFLAGS="$CFLAGS"
8311
8312# Set sane defaults for various variables
8313test -z "$AR" && AR=ar
8314test -z "$AR_FLAGS" && AR_FLAGS=cru
8315test -z "$AS" && AS=as
8316test -z "$CC" && CC=cc
8317test -z "$LTCC" && LTCC=$CC
8318test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8319test -z "$DLLTOOL" && DLLTOOL=dlltool
8320test -z "$LD" && LD=ld
8321test -z "$LN_S" && LN_S="ln -s"
8322test -z "$MAGIC_CMD" && MAGIC_CMD=file
8323test -z "$NM" && NM=nm
8324test -z "$SED" && SED=sed
8325test -z "$OBJDUMP" && OBJDUMP=objdump
8326test -z "$RANLIB" && RANLIB=:
8327test -z "$STRIP" && STRIP=:
8328test -z "$ac_objext" && ac_objext=o
8329
8330# Determine commands to create old-style static archives.
8331old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8332old_postinstall_cmds='chmod 644 $oldlib'
8333old_postuninstall_cmds=
8334
8335if test -n "$RANLIB"; then
8336  case $host_os in
8337  openbsd*)
8338    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8339    ;;
8340  *)
8341    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8342    ;;
8343  esac
8344  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8345fi
8346
8347for cc_temp in $compiler""; do
8348  case $cc_temp in
8349    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8350    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8351    \-*) ;;
8352    *) break;;
8353  esac
8354done
8355cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8356
8357
8358# Only perform the check for file, if the check method requires it
8359case $deplibs_check_method in
8360file_magic*)
8361  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8362    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8363echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8364if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8365  echo $ECHO_N "(cached) $ECHO_C" >&6
8366else
8367  case $MAGIC_CMD in
8368[\\/*] |  ?:[\\/]*)
8369  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8370  ;;
8371*)
8372  lt_save_MAGIC_CMD="$MAGIC_CMD"
8373  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8374  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8375  for ac_dir in $ac_dummy; do
8376    IFS="$lt_save_ifs"
8377    test -z "$ac_dir" && ac_dir=.
8378    if test -f $ac_dir/${ac_tool_prefix}file; then
8379      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8380      if test -n "$file_magic_test_file"; then
8381        case $deplibs_check_method in
8382        "file_magic "*)
8383          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8384          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8385          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8386            $EGREP "$file_magic_regex" > /dev/null; then
8387            :
8388          else
8389            cat <<EOF 1>&2
8390
8391*** Warning: the command libtool uses to detect shared libraries,
8392*** $file_magic_cmd, produces output that libtool cannot recognize.
8393*** The result is that libtool may fail to recognize shared libraries
8394*** as such.  This will affect the creation of libtool libraries that
8395*** depend on shared libraries, but programs linked with such libtool
8396*** libraries will work regardless of this problem.  Nevertheless, you
8397*** may want to report the problem to your system manager and/or to
8398*** bug-libtool@gnu.org
8399
8400EOF
8401          fi ;;
8402        esac
8403      fi
8404      break
8405    fi
8406  done
8407  IFS="$lt_save_ifs"
8408  MAGIC_CMD="$lt_save_MAGIC_CMD"
8409  ;;
8410esac
8411fi
8412
8413MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8414if test -n "$MAGIC_CMD"; then
8415  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8416echo "${ECHO_T}$MAGIC_CMD" >&6
8417else
8418  echo "$as_me:$LINENO: result: no" >&5
8419echo "${ECHO_T}no" >&6
8420fi
8421
8422if test -z "$lt_cv_path_MAGIC_CMD"; then
8423  if test -n "$ac_tool_prefix"; then
8424    echo "$as_me:$LINENO: checking for file" >&5
8425echo $ECHO_N "checking for file... $ECHO_C" >&6
8426if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8427  echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429  case $MAGIC_CMD in
8430[\\/*] |  ?:[\\/]*)
8431  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8432  ;;
8433*)
8434  lt_save_MAGIC_CMD="$MAGIC_CMD"
8435  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8436  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8437  for ac_dir in $ac_dummy; do
8438    IFS="$lt_save_ifs"
8439    test -z "$ac_dir" && ac_dir=.
8440    if test -f $ac_dir/file; then
8441      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8442      if test -n "$file_magic_test_file"; then
8443        case $deplibs_check_method in
8444        "file_magic "*)
8445          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8446          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8447          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8448            $EGREP "$file_magic_regex" > /dev/null; then
8449            :
8450          else
8451            cat <<EOF 1>&2
8452
8453*** Warning: the command libtool uses to detect shared libraries,
8454*** $file_magic_cmd, produces output that libtool cannot recognize.
8455*** The result is that libtool may fail to recognize shared libraries
8456*** as such.  This will affect the creation of libtool libraries that
8457*** depend on shared libraries, but programs linked with such libtool
8458*** libraries will work regardless of this problem.  Nevertheless, you
8459*** may want to report the problem to your system manager and/or to
8460*** bug-libtool@gnu.org
8461
8462EOF
8463          fi ;;
8464        esac
8465      fi
8466      break
8467    fi
8468  done
8469  IFS="$lt_save_ifs"
8470  MAGIC_CMD="$lt_save_MAGIC_CMD"
8471  ;;
8472esac
8473fi
8474
8475MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8476if test -n "$MAGIC_CMD"; then
8477  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8478echo "${ECHO_T}$MAGIC_CMD" >&6
8479else
8480  echo "$as_me:$LINENO: result: no" >&5
8481echo "${ECHO_T}no" >&6
8482fi
8483
8484  else
8485    MAGIC_CMD=:
8486  fi
8487fi
8488
8489  fi
8490  ;;
8491esac
8492
8493enable_dlopen=no
8494enable_win32_dll=no
8495
8496# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8497if test "${enable_libtool_lock+set}" = set; then
8498  enableval="$enable_libtool_lock"
8499
8500fi;
8501test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8502
8503
8504# Check whether --with-pic or --without-pic was given.
8505if test "${with_pic+set}" = set; then
8506  withval="$with_pic"
8507  pic_mode="$withval"
8508else
8509  pic_mode=default
8510fi;
8511test -z "$pic_mode" && pic_mode=default
8512
8513# Use C for the default configuration in the libtool script
8514tagname=
8515lt_save_CC="$CC"
8516ac_ext=c
8517ac_cpp='$CPP $CPPFLAGS'
8518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8520ac_compiler_gnu=$ac_cv_c_compiler_gnu
8521
8522
8523# Source file extension for C test sources.
8524ac_ext=c
8525
8526# Object file extension for compiled C test sources.
8527objext=o
8528objext=$objext
8529
8530# Code to be used in simple compile tests
8531lt_simple_compile_test_code="int some_variable = 0;\n"
8532
8533# Code to be used in simple link tests
8534lt_simple_link_test_code='int main(){return(0);}\n'
8535
8536
8537# If no C compiler was specified, use CC.
8538LTCC=${LTCC-"$CC"}
8539
8540# If no C compiler flags were specified, use CFLAGS.
8541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8542
8543# Allow CC to be a program name with arguments.
8544compiler=$CC
8545
8546
8547# save warnings/boilerplate of simple test code
8548ac_outfile=conftest.$ac_objext
8549printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8550eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8551_lt_compiler_boilerplate=`cat conftest.err`
8552$rm conftest*
8553
8554ac_outfile=conftest.$ac_objext
8555printf "$lt_simple_link_test_code" >conftest.$ac_ext
8556eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8557_lt_linker_boilerplate=`cat conftest.err`
8558$rm conftest*
8559
8560
8561## CAVEAT EMPTOR:
8562## There is no encapsulation within the following macros, do not change
8563## the running order or otherwise move them around unless you know exactly
8564## what you are doing...
8565
8566lt_prog_compiler_no_builtin_flag=
8567
8568if test "$GCC" = yes; then
8569  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8570
8571
8572echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8573echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8574if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8575  echo $ECHO_N "(cached) $ECHO_C" >&6
8576else
8577  lt_cv_prog_compiler_rtti_exceptions=no
8578  ac_outfile=conftest.$ac_objext
8579   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8580   lt_compiler_flag="-fno-rtti -fno-exceptions"
8581   # Insert the option either (1) after the last *FLAGS variable, or
8582   # (2) before a word containing "conftest.", or (3) at the end.
8583   # Note that $ac_compile itself does not contain backslashes and begins
8584   # with a dollar sign (not a hyphen), so the echo should work correctly.
8585   # The option is referenced via a variable to avoid confusing sed.
8586   lt_compile=`echo "$ac_compile" | $SED \
8587   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8588   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8589   -e 's:$: $lt_compiler_flag:'`
8590   (eval echo "\"\$as_me:8590: $lt_compile\"" >&5)
8591   (eval "$lt_compile" 2>conftest.err)
8592   ac_status=$?
8593   cat conftest.err >&5
8594   echo "$as_me:8594: \$? = $ac_status" >&5
8595   if (exit $ac_status) && test -s "$ac_outfile"; then
8596     # The compiler can only warn and ignore the option if not recognized
8597     # So say no if there are warnings other than the usual output.
8598     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8599     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8600     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8601       lt_cv_prog_compiler_rtti_exceptions=yes
8602     fi
8603   fi
8604   $rm conftest*
8605
8606fi
8607echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8608echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8609
8610if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8611    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8612else
8613    :
8614fi
8615
8616fi
8617
8618lt_prog_compiler_wl=
8619lt_prog_compiler_pic=
8620lt_prog_compiler_static=
8621
8622echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8623echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8624
8625  if test "$GCC" = yes; then
8626    lt_prog_compiler_wl='-Wl,'
8627    lt_prog_compiler_static='-static'
8628
8629    case $host_os in
8630      aix*)
8631      # All AIX code is PIC.
8632      if test "$host_cpu" = ia64; then
8633        # AIX 5 now supports IA64 processor
8634        lt_prog_compiler_static='-Bstatic'
8635      fi
8636      ;;
8637
8638    amigaos*)
8639      # FIXME: we need at least 68020 code to build shared libraries, but
8640      # adding the `-m68020' flag to GCC prevents building anything better,
8641      # like `-m68040'.
8642      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8643      ;;
8644
8645    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8646      # PIC is the default for these OSes.
8647      ;;
8648
8649    mingw* | pw32* | os2*)
8650      # This hack is so that the source file can tell whether it is being
8651      # built for inclusion in a dll (and should export symbols for example).
8652      lt_prog_compiler_pic='-DDLL_EXPORT'
8653      ;;
8654
8655    darwin* | rhapsody*)
8656      # PIC is the default on this platform
8657      # Common symbols not allowed in MH_DYLIB files
8658      lt_prog_compiler_pic='-fno-common'
8659      ;;
8660
8661    interix3*)
8662      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8663      # Instead, we relocate shared libraries at runtime.
8664      ;;
8665
8666    msdosdjgpp*)
8667      # Just because we use GCC doesn't mean we suddenly get shared libraries
8668      # on systems that don't support them.
8669      lt_prog_compiler_can_build_shared=no
8670      enable_shared=no
8671      ;;
8672
8673    sysv4*MP*)
8674      if test -d /usr/nec; then
8675        lt_prog_compiler_pic=-Kconform_pic
8676      fi
8677      ;;
8678
8679    hpux*)
8680      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8681      # not for PA HP-UX.
8682      case $host_cpu in
8683      hppa*64*|ia64*)
8684        # +Z the default
8685        ;;
8686      *)
8687        lt_prog_compiler_pic='-fPIC'
8688        ;;
8689      esac
8690      ;;
8691
8692    *)
8693      lt_prog_compiler_pic='-fPIC'
8694      ;;
8695    esac
8696  else
8697    # PORTME Check for flag to pass linker flags through the system compiler.
8698    case $host_os in
8699    aix*)
8700      lt_prog_compiler_wl='-Wl,'
8701      if test "$host_cpu" = ia64; then
8702        # AIX 5 now supports IA64 processor
8703        lt_prog_compiler_static='-Bstatic'
8704      else
8705        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8706      fi
8707      ;;
8708      darwin*)
8709        # PIC is the default on this platform
8710        # Common symbols not allowed in MH_DYLIB files
8711       case $cc_basename in
8712         xlc*)
8713         lt_prog_compiler_pic='-qnocommon'
8714         lt_prog_compiler_wl='-Wl,'
8715         ;;
8716       esac
8717       ;;
8718
8719    mingw* | pw32* | os2*)
8720      # This hack is so that the source file can tell whether it is being
8721      # built for inclusion in a dll (and should export symbols for example).
8722      lt_prog_compiler_pic='-DDLL_EXPORT'
8723      ;;
8724
8725    hpux9* | hpux10* | hpux11*)
8726      lt_prog_compiler_wl='-Wl,'
8727      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8728      # not for PA HP-UX.
8729      case $host_cpu in
8730      hppa*64*|ia64*)
8731        # +Z the default
8732        ;;
8733      *)
8734        lt_prog_compiler_pic='+Z'
8735        ;;
8736      esac
8737      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8738      lt_prog_compiler_static='${wl}-a ${wl}archive'
8739      ;;
8740
8741    irix5* | irix6* | nonstopux*)
8742      lt_prog_compiler_wl='-Wl,'
8743      # PIC (with -KPIC) is the default.
8744      lt_prog_compiler_static='-non_shared'
8745      ;;
8746
8747    newsos6)
8748      lt_prog_compiler_pic='-KPIC'
8749      lt_prog_compiler_static='-Bstatic'
8750      ;;
8751
8752    linux*)
8753      case $cc_basename in
8754      icc* | ecc*)
8755        lt_prog_compiler_wl='-Wl,'
8756        lt_prog_compiler_pic='-KPIC'
8757        lt_prog_compiler_static='-static'
8758        ;;
8759      pgcc* | pgf77* | pgf90* | pgf95*)
8760        # Portland Group compilers (*not* the Pentium gcc compiler,
8761        # which looks to be a dead project)
8762        lt_prog_compiler_wl='-Wl,'
8763        lt_prog_compiler_pic='-fpic'
8764        lt_prog_compiler_static='-Bstatic'
8765        ;;
8766      ccc*)
8767        lt_prog_compiler_wl='-Wl,'
8768        # All Alpha code is PIC.
8769        lt_prog_compiler_static='-non_shared'
8770        ;;
8771      esac
8772      ;;
8773
8774    osf3* | osf4* | osf5*)
8775      lt_prog_compiler_wl='-Wl,'
8776      # All OSF/1 code is PIC.
8777      lt_prog_compiler_static='-non_shared'
8778      ;;
8779
8780    solaris*)
8781      lt_prog_compiler_pic='-KPIC'
8782      lt_prog_compiler_static='-Bstatic'
8783      case $cc_basename in
8784      f77* | f90* | f95*)
8785        lt_prog_compiler_wl='-Qoption ld ';;
8786      *)
8787        lt_prog_compiler_wl='-Wl,';;
8788      esac
8789      ;;
8790
8791    sunos4*)
8792      lt_prog_compiler_wl='-Qoption ld '
8793      lt_prog_compiler_pic='-PIC'
8794      lt_prog_compiler_static='-Bstatic'
8795      ;;
8796
8797    sysv4 | sysv4.2uw2* | sysv4.3*)
8798      lt_prog_compiler_wl='-Wl,'
8799      lt_prog_compiler_pic='-KPIC'
8800      lt_prog_compiler_static='-Bstatic'
8801      ;;
8802
8803    sysv4*MP*)
8804      if test -d /usr/nec ;then
8805        lt_prog_compiler_pic='-Kconform_pic'
8806        lt_prog_compiler_static='-Bstatic'
8807      fi
8808      ;;
8809
8810    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8811      lt_prog_compiler_wl='-Wl,'
8812      lt_prog_compiler_pic='-KPIC'
8813      lt_prog_compiler_static='-Bstatic'
8814      ;;
8815
8816    unicos*)
8817      lt_prog_compiler_wl='-Wl,'
8818      lt_prog_compiler_can_build_shared=no
8819      ;;
8820
8821    uts4*)
8822      lt_prog_compiler_pic='-pic'
8823      lt_prog_compiler_static='-Bstatic'
8824      ;;
8825
8826    *)
8827      lt_prog_compiler_can_build_shared=no
8828      ;;
8829    esac
8830  fi
8831
8832echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8833echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8834
8835#
8836# Check to make sure the PIC flag actually works.
8837#
8838if test -n "$lt_prog_compiler_pic"; then
8839
8840echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8841echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8842if test "${lt_prog_compiler_pic_works+set}" = set; then
8843  echo $ECHO_N "(cached) $ECHO_C" >&6
8844else
8845  lt_prog_compiler_pic_works=no
8846  ac_outfile=conftest.$ac_objext
8847   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8848   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8849   # Insert the option either (1) after the last *FLAGS variable, or
8850   # (2) before a word containing "conftest.", or (3) at the end.
8851   # Note that $ac_compile itself does not contain backslashes and begins
8852   # with a dollar sign (not a hyphen), so the echo should work correctly.
8853   # The option is referenced via a variable to avoid confusing sed.
8854   lt_compile=`echo "$ac_compile" | $SED \
8855   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857   -e 's:$: $lt_compiler_flag:'`
8858   (eval echo "\"\$as_me:8858: $lt_compile\"" >&5)
8859   (eval "$lt_compile" 2>conftest.err)
8860   ac_status=$?
8861   cat conftest.err >&5
8862   echo "$as_me:8862: \$? = $ac_status" >&5
8863   if (exit $ac_status) && test -s "$ac_outfile"; then
8864     # The compiler can only warn and ignore the option if not recognized
8865     # So say no if there are warnings other than the usual output.
8866     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8867     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8868     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8869       lt_prog_compiler_pic_works=yes
8870     fi
8871   fi
8872   $rm conftest*
8873
8874fi
8875echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8876echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8877
8878if test x"$lt_prog_compiler_pic_works" = xyes; then
8879    case $lt_prog_compiler_pic in
8880     "" | " "*) ;;
8881     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8882     esac
8883else
8884    lt_prog_compiler_pic=
8885     lt_prog_compiler_can_build_shared=no
8886fi
8887
8888fi
8889case $host_os in
8890  # For platforms which do not support PIC, -DPIC is meaningless:
8891  *djgpp*)
8892    lt_prog_compiler_pic=
8893    ;;
8894  *)
8895    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8896    ;;
8897esac
8898
8899#
8900# Check to make sure the static flag actually works.
8901#
8902wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8903echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8904echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8905if test "${lt_prog_compiler_static_works+set}" = set; then
8906  echo $ECHO_N "(cached) $ECHO_C" >&6
8907else
8908  lt_prog_compiler_static_works=no
8909   save_LDFLAGS="$LDFLAGS"
8910   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8911   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8912   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8913     # The linker can only warn and ignore the option if not recognized
8914     # So say no if there are warnings
8915     if test -s conftest.err; then
8916       # Append any errors to the config.log.
8917       cat conftest.err 1>&5
8918       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8919       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8920       if diff conftest.exp conftest.er2 >/dev/null; then
8921         lt_prog_compiler_static_works=yes
8922       fi
8923     else
8924       lt_prog_compiler_static_works=yes
8925     fi
8926   fi
8927   $rm conftest*
8928   LDFLAGS="$save_LDFLAGS"
8929
8930fi
8931echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8932echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8933
8934if test x"$lt_prog_compiler_static_works" = xyes; then
8935    :
8936else
8937    lt_prog_compiler_static=
8938fi
8939
8940
8941echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8942echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8943if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8944  echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8946  lt_cv_prog_compiler_c_o=no
8947   $rm -r conftest 2>/dev/null
8948   mkdir conftest
8949   cd conftest
8950   mkdir out
8951   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8952
8953   lt_compiler_flag="-o out/conftest2.$ac_objext"
8954   # Insert the option either (1) after the last *FLAGS variable, or
8955   # (2) before a word containing "conftest.", or (3) at the end.
8956   # Note that $ac_compile itself does not contain backslashes and begins
8957   # with a dollar sign (not a hyphen), so the echo should work correctly.
8958   lt_compile=`echo "$ac_compile" | $SED \
8959   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8960   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8961   -e 's:$: $lt_compiler_flag:'`
8962   (eval echo "\"\$as_me:8962: $lt_compile\"" >&5)
8963   (eval "$lt_compile" 2>out/conftest.err)
8964   ac_status=$?
8965   cat out/conftest.err >&5
8966   echo "$as_me:8966: \$? = $ac_status" >&5
8967   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8968   then
8969     # The compiler can only warn and ignore the option if not recognized
8970     # So say no if there are warnings
8971     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8972     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8973     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8974       lt_cv_prog_compiler_c_o=yes
8975     fi
8976   fi
8977   chmod u+w . 2>&5
8978   $rm conftest*
8979   # SGI C++ compiler will create directory out/ii_files/ for
8980   # template instantiation
8981   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8982   $rm out/* && rmdir out
8983   cd ..
8984   rmdir conftest
8985   $rm conftest*
8986
8987fi
8988echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8989echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8990
8991
8992hard_links="nottested"
8993if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8994  # do not overwrite the value of need_locks provided by the user
8995  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8996echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8997  hard_links=yes
8998  $rm conftest*
8999  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9000  touch conftest.a
9001  ln conftest.a conftest.b 2>&5 || hard_links=no
9002  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9003  echo "$as_me:$LINENO: result: $hard_links" >&5
9004echo "${ECHO_T}$hard_links" >&6
9005  if test "$hard_links" = no; then
9006    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9007echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9008    need_locks=warn
9009  fi
9010else
9011  need_locks=no
9012fi
9013
9014echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9015echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9016
9017  runpath_var=
9018  allow_undefined_flag=
9019  enable_shared_with_static_runtimes=no
9020  archive_cmds=
9021  archive_expsym_cmds=
9022  old_archive_From_new_cmds=
9023  old_archive_from_expsyms_cmds=
9024  export_dynamic_flag_spec=
9025  whole_archive_flag_spec=
9026  thread_safe_flag_spec=
9027  hardcode_libdir_flag_spec=
9028  hardcode_libdir_flag_spec_ld=
9029  hardcode_libdir_separator=
9030  hardcode_direct=no
9031  hardcode_minus_L=no
9032  hardcode_shlibpath_var=unsupported
9033  link_all_deplibs=unknown
9034  hardcode_automatic=no
9035  module_cmds=
9036  module_expsym_cmds=
9037  always_export_symbols=no
9038  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9039  # include_expsyms should be a list of space-separated symbols to be *always*
9040  # included in the symbol list
9041  include_expsyms=
9042  # exclude_expsyms can be an extended regexp of symbols to exclude
9043  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9044  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9045  # as well as any symbol that contains `d'.
9046  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9047  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9048  # platforms (ab)use it in PIC code, but their linkers get confused if
9049  # the symbol is explicitly referenced.  Since portable code cannot
9050  # rely on this symbol name, it's probably fine to never include it in
9051  # preloaded symbol tables.
9052  extract_expsyms_cmds=
9053  # Just being paranoid about ensuring that cc_basename is set.
9054  for cc_temp in $compiler""; do
9055  case $cc_temp in
9056    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9057    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9058    \-*) ;;
9059    *) break;;
9060  esac
9061done
9062cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9063
9064  case $host_os in
9065  cygwin* | mingw* | pw32*)
9066    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9067    # When not using gcc, we currently assume that we are using
9068    # Microsoft Visual C++.
9069    if test "$GCC" != yes; then
9070      with_gnu_ld=no
9071    fi
9072    ;;
9073  interix*)
9074    # we just hope/assume this is gcc and not c89 (= MSVC++)
9075    with_gnu_ld=yes
9076    ;;
9077  openbsd*)
9078    with_gnu_ld=no
9079    ;;
9080  esac
9081
9082  ld_shlibs=yes
9083  if test "$with_gnu_ld" = yes; then
9084    # If archive_cmds runs LD, not CC, wlarc should be empty
9085    wlarc='${wl}'
9086
9087    # Set some defaults for GNU ld with shared library support. These
9088    # are reset later if shared libraries are not supported. Putting them
9089    # here allows them to be overridden if necessary.
9090    runpath_var=LD_RUN_PATH
9091    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9092    export_dynamic_flag_spec='${wl}--export-dynamic'
9093    # ancient GNU ld didn't support --whole-archive et. al.
9094    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9095        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9096      else
9097        whole_archive_flag_spec=
9098    fi
9099    supports_anon_versioning=no
9100    case `$LD -v 2>/dev/null` in
9101      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9102      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9103      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9104      *\ 2.11.*) ;; # other 2.11 versions
9105      *) supports_anon_versioning=yes ;;
9106    esac
9107
9108    # See if GNU ld supports shared libraries.
9109    case $host_os in
9110    aix3* | aix4* | aix5*)
9111      # On AIX/PPC, the GNU linker is very broken
9112      if test "$host_cpu" != ia64; then
9113        ld_shlibs=no
9114        cat <<EOF 1>&2
9115
9116*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9117*** to be unable to reliably create shared libraries on AIX.
9118*** Therefore, libtool is disabling shared libraries support.  If you
9119*** really care for shared libraries, you may want to modify your PATH
9120*** so that a non-GNU linker is found, and then restart.
9121
9122EOF
9123      fi
9124      ;;
9125
9126    amigaos*)
9127      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)'
9128      hardcode_libdir_flag_spec='-L$libdir'
9129      hardcode_minus_L=yes
9130
9131      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9132      # that the semantics of dynamic libraries on AmigaOS, at least up
9133      # to version 4, is to share data among multiple programs linked
9134      # with the same dynamic library.  Since this doesn't match the
9135      # behavior of shared libraries on other platforms, we can't use
9136      # them.
9137      ld_shlibs=no
9138      ;;
9139
9140    beos*)
9141      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9142        allow_undefined_flag=unsupported
9143        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9144        # support --undefined.  This deserves some investigation.  FIXME
9145        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146      else
9147        ld_shlibs=no
9148      fi
9149      ;;
9150
9151    cygwin* | mingw* | pw32*)
9152      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9153      # as there is no search path for DLLs.
9154      hardcode_libdir_flag_spec='-L$libdir'
9155      allow_undefined_flag=unsupported
9156      always_export_symbols=no
9157      enable_shared_with_static_runtimes=yes
9158      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9159
9160      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9161        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9162        # If the export-symbols file already is a .def file (1st line
9163        # is EXPORTS), use it as is; otherwise, prepend...
9164        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9165          cp $export_symbols $output_objdir/$soname.def;
9166        else
9167          echo EXPORTS > $output_objdir/$soname.def;
9168          cat $export_symbols >> $output_objdir/$soname.def;
9169        fi~
9170        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9171      else
9172        ld_shlibs=no
9173      fi
9174      ;;
9175
9176    interix3*)
9177      hardcode_direct=no
9178      hardcode_shlibpath_var=no
9179      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9180      export_dynamic_flag_spec='${wl}-E'
9181      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9182      # Instead, shared libraries are loaded at an image base (0x10000000 by
9183      # default) and relocated if they conflict, which is a slow very memory
9184      # consuming and fragmenting process.  To avoid this, we pick a random,
9185      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9186      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9187      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9188      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'
9189      ;;
9190
9191    linux*)
9192      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9193        tmp_addflag=
9194        case $cc_basename,$host_cpu in
9195        pgcc*)                          # Portland Group C compiler
9196          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'
9197          tmp_addflag=' $pic_flag'
9198          ;;
9199        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9200          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'
9201          tmp_addflag=' $pic_flag -Mnomain' ;;
9202        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9203          tmp_addflag=' -i_dynamic' ;;
9204        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9205          tmp_addflag=' -i_dynamic -nofor_main' ;;
9206        ifc* | ifort*)                  # Intel Fortran compiler
9207          tmp_addflag=' -nofor_main' ;;
9208        esac
9209        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9210
9211        if test $supports_anon_versioning = yes; then
9212          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9213  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9214  $echo "local: *; };" >> $output_objdir/$libname.ver~
9215          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9216        fi
9217      else
9218        ld_shlibs=no
9219      fi
9220      ;;
9221
9222    netbsd*)
9223      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9224        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9225        wlarc=
9226      else
9227        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9229      fi
9230      ;;
9231
9232    solaris*)
9233      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9234        ld_shlibs=no
9235        cat <<EOF 1>&2
9236
9237*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9238*** create shared libraries on Solaris systems.  Therefore, libtool
9239*** is disabling shared libraries support.  We urge you to upgrade GNU
9240*** binutils to release 2.9.1 or newer.  Another option is to modify
9241*** your PATH or compiler configuration so that the native linker is
9242*** used, and then restart.
9243
9244EOF
9245      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9246        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9248      else
9249        ld_shlibs=no
9250      fi
9251      ;;
9252
9253    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9254      case `$LD -v 2>&1` in
9255        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9256        ld_shlibs=no
9257        cat <<_LT_EOF 1>&2
9258
9259*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9260*** reliably create shared libraries on SCO systems.  Therefore, libtool
9261*** is disabling shared libraries support.  We urge you to upgrade GNU
9262*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9263*** your PATH or compiler configuration so that the native linker is
9264*** used, and then restart.
9265
9266_LT_EOF
9267        ;;
9268        *)
9269          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9270            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9271            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9272            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9273          else
9274            ld_shlibs=no
9275          fi
9276        ;;
9277      esac
9278      ;;
9279
9280    sunos4*)
9281      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9282      wlarc=
9283      hardcode_direct=yes
9284      hardcode_shlibpath_var=no
9285      ;;
9286
9287    *)
9288      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9289        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9291      else
9292        ld_shlibs=no
9293      fi
9294      ;;
9295    esac
9296
9297    if test "$ld_shlibs" = no; then
9298      runpath_var=
9299      hardcode_libdir_flag_spec=
9300      export_dynamic_flag_spec=
9301      whole_archive_flag_spec=
9302    fi
9303  else
9304    # PORTME fill in a description of your system's linker (not GNU ld)
9305    case $host_os in
9306    aix3*)
9307      allow_undefined_flag=unsupported
9308      always_export_symbols=yes
9309      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'
9310      # Note: this linker hardcodes the directories in LIBPATH if there
9311      # are no directories specified by -L.
9312      hardcode_minus_L=yes
9313      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9314        # Neither direct hardcoding nor static linking is supported with a
9315        # broken collect2.
9316        hardcode_direct=unsupported
9317      fi
9318      ;;
9319
9320    aix4* | aix5*)
9321      if test "$host_cpu" = ia64; then
9322        # On IA64, the linker does run time linking by default, so we don't
9323        # have to do anything special.
9324        aix_use_runtimelinking=no
9325        exp_sym_flag='-Bexport'
9326        no_entry_flag=""
9327      else
9328        # If we're using GNU nm, then we don't want the "-C" option.
9329        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9330        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9331          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'
9332        else
9333          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'
9334        fi
9335        aix_use_runtimelinking=no
9336
9337        # Test if we are trying to use run time linking or normal
9338        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9339        # need to do runtime linking.
9340        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9341          for ld_flag in $LDFLAGS; do
9342          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9343            aix_use_runtimelinking=yes
9344            break
9345          fi
9346          done
9347          ;;
9348        esac
9349
9350        exp_sym_flag='-bexport'
9351        no_entry_flag='-bnoentry'
9352      fi
9353
9354      # When large executables or shared objects are built, AIX ld can
9355      # have problems creating the table of contents.  If linking a library
9356      # or program results in "error TOC overflow" add -mminimal-toc to
9357      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9358      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9359
9360      archive_cmds=''
9361      hardcode_direct=yes
9362      hardcode_libdir_separator=':'
9363      link_all_deplibs=yes
9364
9365      if test "$GCC" = yes; then
9366        case $host_os in aix4.[012]|aix4.[012].*)
9367        # We only want to do this on AIX 4.2 and lower, the check
9368        # below for broken collect2 doesn't work under 4.3+
9369          collect2name=`${CC} -print-prog-name=collect2`
9370          if test -f "$collect2name" && \
9371           strings "$collect2name" | grep resolve_lib_name >/dev/null
9372          then
9373          # We have reworked collect2
9374          hardcode_direct=yes
9375          else
9376          # We have old collect2
9377          hardcode_direct=unsupported
9378          # It fails to find uninstalled libraries when the uninstalled
9379          # path is not listed in the libpath.  Setting hardcode_minus_L
9380          # to unsupported forces relinking
9381          hardcode_minus_L=yes
9382          hardcode_libdir_flag_spec='-L$libdir'
9383          hardcode_libdir_separator=
9384          fi
9385          ;;
9386        esac
9387        shared_flag='-shared'
9388        if test "$aix_use_runtimelinking" = yes; then
9389          shared_flag="$shared_flag "'${wl}-G'
9390        fi
9391      else
9392        # not using gcc
9393        if test "$host_cpu" = ia64; then
9394        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9395        # chokes on -Wl,-G. The following line is correct:
9396          shared_flag='-G'
9397        else
9398          if test "$aix_use_runtimelinking" = yes; then
9399            shared_flag='${wl}-G'
9400          else
9401            shared_flag='${wl}-bM:SRE'
9402          fi
9403        fi
9404      fi
9405
9406      # It seems that -bexpall does not export symbols beginning with
9407      # underscore (_), so it is better to generate a list of symbols to export.
9408      always_export_symbols=yes
9409      if test "$aix_use_runtimelinking" = yes; then
9410        # Warning - without using the other runtime loading flags (-brtl),
9411        # -berok will link without error, but may produce a broken library.
9412        allow_undefined_flag='-berok'
9413       # Determine the default libpath from the value encoded in an empty executable.
9414       cat >conftest.$ac_ext <<_ACEOF
9415/* confdefs.h.  */
9416_ACEOF
9417cat confdefs.h >>conftest.$ac_ext
9418cat >>conftest.$ac_ext <<_ACEOF
9419/* end confdefs.h.  */
9420
9421int
9422main ()
9423{
9424
9425  ;
9426  return 0;
9427}
9428_ACEOF
9429rm -f conftest.$ac_objext conftest$ac_exeext
9430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9431  (eval $ac_link) 2>conftest.er1
9432  ac_status=$?
9433  grep -v '^ *+' conftest.er1 >conftest.err
9434  rm -f conftest.er1
9435  cat conftest.err >&5
9436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437  (exit $ac_status); } &&
9438         { ac_try='test -z "$ac_c_werror_flag"
9439                         || test ! -s conftest.err'
9440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441  (eval $ac_try) 2>&5
9442  ac_status=$?
9443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444  (exit $ac_status); }; } &&
9445         { ac_try='test -s conftest$ac_exeext'
9446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447  (eval $ac_try) 2>&5
9448  ac_status=$?
9449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450  (exit $ac_status); }; }; then
9451
9452aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9453}'`
9454# Check for a 64-bit object if we didn't find anything.
9455if 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; }
9456}'`; fi
9457else
9458  echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461fi
9462rm -f conftest.err conftest.$ac_objext \
9463      conftest$ac_exeext conftest.$ac_ext
9464if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9465
9466       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9467        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"
9468       else
9469        if test "$host_cpu" = ia64; then
9470          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9471          allow_undefined_flag="-z nodefs"
9472          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"
9473        else
9474         # Determine the default libpath from the value encoded in an empty executable.
9475         cat >conftest.$ac_ext <<_ACEOF
9476/* confdefs.h.  */
9477_ACEOF
9478cat confdefs.h >>conftest.$ac_ext
9479cat >>conftest.$ac_ext <<_ACEOF
9480/* end confdefs.h.  */
9481
9482int
9483main ()
9484{
9485
9486  ;
9487  return 0;
9488}
9489_ACEOF
9490rm -f conftest.$ac_objext conftest$ac_exeext
9491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492  (eval $ac_link) 2>conftest.er1
9493  ac_status=$?
9494  grep -v '^ *+' conftest.er1 >conftest.err
9495  rm -f conftest.er1
9496  cat conftest.err >&5
9497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498  (exit $ac_status); } &&
9499         { ac_try='test -z "$ac_c_werror_flag"
9500                         || test ! -s conftest.err'
9501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502  (eval $ac_try) 2>&5
9503  ac_status=$?
9504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505  (exit $ac_status); }; } &&
9506         { ac_try='test -s conftest$ac_exeext'
9507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508  (eval $ac_try) 2>&5
9509  ac_status=$?
9510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511  (exit $ac_status); }; }; then
9512
9513aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9514}'`
9515# Check for a 64-bit object if we didn't find anything.
9516if 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; }
9517}'`; fi
9518else
9519  echo "$as_me: failed program was:" >&5
9520sed 's/^/| /' conftest.$ac_ext >&5
9521
9522fi
9523rm -f conftest.err conftest.$ac_objext \
9524      conftest$ac_exeext conftest.$ac_ext
9525if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9526
9527         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9528          # Warning - without using the other run time loading flags,
9529          # -berok will link without error, but may produce a broken library.
9530          no_undefined_flag=' ${wl}-bernotok'
9531          allow_undefined_flag=' ${wl}-berok'
9532          # Exported symbols can be pulled into shared objects from archives
9533          whole_archive_flag_spec='$convenience'
9534          archive_cmds_need_lc=yes
9535          # This is similar to how AIX traditionally builds its shared libraries.
9536          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'
9537        fi
9538      fi
9539      ;;
9540
9541    amigaos*)
9542      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)'
9543      hardcode_libdir_flag_spec='-L$libdir'
9544      hardcode_minus_L=yes
9545      # see comment about different semantics on the GNU ld section
9546      ld_shlibs=no
9547      ;;
9548
9549    bsdi[45]*)
9550      export_dynamic_flag_spec=-rdynamic
9551      ;;
9552
9553    cygwin* | mingw* | pw32*)
9554      # When not using gcc, we currently assume that we are using
9555      # Microsoft Visual C++.
9556      # hardcode_libdir_flag_spec is actually meaningless, as there is
9557      # no search path for DLLs.
9558      hardcode_libdir_flag_spec=' '
9559      allow_undefined_flag=unsupported
9560      # Tell ltmain to make .lib files, not .a files.
9561      libext=lib
9562      # Tell ltmain to make .dll files, not .so files.
9563      shrext_cmds=".dll"
9564      # FIXME: Setting linknames here is a bad hack.
9565      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9566      # The linker will automatically build a .lib file if we build a DLL.
9567      old_archive_From_new_cmds='true'
9568      # FIXME: Should let the user specify the lib program.
9569      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9570      fix_srcfile_path='`cygpath -w "$srcfile"`'
9571      enable_shared_with_static_runtimes=yes
9572      ;;
9573
9574    darwin* | rhapsody*)
9575      case $host_os in
9576        rhapsody* | darwin1.[012])
9577         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9578         ;;
9579       *) # Darwin 1.3 on
9580         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9581           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9582         else
9583           case ${MACOSX_DEPLOYMENT_TARGET} in
9584             10.[012])
9585               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9586               ;;
9587             10.*)
9588               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9589               ;;
9590           esac
9591         fi
9592         ;;
9593      esac
9594      archive_cmds_need_lc=no
9595      hardcode_direct=no
9596      hardcode_automatic=yes
9597      hardcode_shlibpath_var=unsupported
9598      whole_archive_flag_spec=''
9599      link_all_deplibs=yes
9600    if test "$GCC" = yes ; then
9601        output_verbose_link_cmd='echo'
9602        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9603      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9604      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9605      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}'
9606      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}'
9607    else
9608      case $cc_basename in
9609        xlc*)
9610         output_verbose_link_cmd='echo'
9611         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9612         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9613          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9614         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}'
9615          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}'
9616          ;;
9617       *)
9618         ld_shlibs=no
9619          ;;
9620      esac
9621    fi
9622      ;;
9623
9624    dgux*)
9625      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626      hardcode_libdir_flag_spec='-L$libdir'
9627      hardcode_shlibpath_var=no
9628      ;;
9629
9630    freebsd1*)
9631      ld_shlibs=no
9632      ;;
9633
9634    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9635    # support.  Future versions do this automatically, but an explicit c++rt0.o
9636    # does not break anything, and helps significantly (at the cost of a little
9637    # extra space).
9638    freebsd2.2*)
9639      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9640      hardcode_libdir_flag_spec='-R$libdir'
9641      hardcode_direct=yes
9642      hardcode_shlibpath_var=no
9643      ;;
9644
9645    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9646    freebsd2*)
9647      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9648      hardcode_direct=yes
9649      hardcode_minus_L=yes
9650      hardcode_shlibpath_var=no
9651      ;;
9652
9653    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9654    freebsd* | kfreebsd*-gnu | dragonfly*)
9655      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9656      hardcode_libdir_flag_spec='-R$libdir'
9657      hardcode_direct=yes
9658      hardcode_shlibpath_var=no
9659      ;;
9660
9661    hpux9*)
9662      if test "$GCC" = yes; then
9663        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'
9664      else
9665        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'
9666      fi
9667      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9668      hardcode_libdir_separator=:
9669      hardcode_direct=yes
9670
9671      # hardcode_minus_L: Not really in the search PATH,
9672      # but as the default location of the library.
9673      hardcode_minus_L=yes
9674      export_dynamic_flag_spec='${wl}-E'
9675      ;;
9676
9677    hpux10*)
9678      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9679        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9680      else
9681        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9682      fi
9683      if test "$with_gnu_ld" = no; then
9684        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9685        hardcode_libdir_separator=:
9686
9687        hardcode_direct=yes
9688        export_dynamic_flag_spec='${wl}-E'
9689
9690        # hardcode_minus_L: Not really in the search PATH,
9691        # but as the default location of the library.
9692        hardcode_minus_L=yes
9693      fi
9694      ;;
9695
9696    hpux11*)
9697      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9698        case $host_cpu in
9699        hppa*64*)
9700          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9701          ;;
9702        ia64*)
9703          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9704          ;;
9705        *)
9706          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9707          ;;
9708        esac
9709      else
9710        case $host_cpu in
9711        hppa*64*)
9712          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9713          ;;
9714        ia64*)
9715          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9716          ;;
9717        *)
9718          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9719          ;;
9720        esac
9721      fi
9722      if test "$with_gnu_ld" = no; then
9723        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9724        hardcode_libdir_separator=:
9725
9726        case $host_cpu in
9727        hppa*64*|ia64*)
9728          hardcode_libdir_flag_spec_ld='+b $libdir'
9729          hardcode_direct=no
9730          hardcode_shlibpath_var=no
9731          ;;
9732        *)
9733          hardcode_direct=yes
9734          export_dynamic_flag_spec='${wl}-E'
9735
9736          # hardcode_minus_L: Not really in the search PATH,
9737          # but as the default location of the library.
9738          hardcode_minus_L=yes
9739          ;;
9740        esac
9741      fi
9742      ;;
9743
9744    irix5* | irix6* | nonstopux*)
9745      if test "$GCC" = yes; then
9746        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'
9747      else
9748        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'
9749        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9750      fi
9751      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9752      hardcode_libdir_separator=:
9753      link_all_deplibs=yes
9754      ;;
9755
9756    netbsd*)
9757      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9758        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9759      else
9760        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9761      fi
9762      hardcode_libdir_flag_spec='-R$libdir'
9763      hardcode_direct=yes
9764      hardcode_shlibpath_var=no
9765      ;;
9766
9767    newsos6)
9768      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769      hardcode_direct=yes
9770      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9771      hardcode_libdir_separator=:
9772      hardcode_shlibpath_var=no
9773      ;;
9774
9775    openbsd*)
9776      hardcode_direct=yes
9777      hardcode_shlibpath_var=no
9778      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9779        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9780        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9781        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9782        export_dynamic_flag_spec='${wl}-E'
9783      else
9784       case $host_os in
9785         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9786           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9787           hardcode_libdir_flag_spec='-R$libdir'
9788           ;;
9789         *)
9790           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9791           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9792           ;;
9793       esac
9794      fi
9795      ;;
9796
9797    os2*)
9798      hardcode_libdir_flag_spec='-L$libdir'
9799      hardcode_minus_L=yes
9800      allow_undefined_flag=unsupported
9801      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'
9802      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9803      ;;
9804
9805    osf3*)
9806      if test "$GCC" = yes; then
9807        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9808        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'
9809      else
9810        allow_undefined_flag=' -expect_unresolved \*'
9811        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'
9812      fi
9813      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9814      hardcode_libdir_separator=:
9815      ;;
9816
9817    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9818      if test "$GCC" = yes; then
9819        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9820        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'
9821        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9822      else
9823        allow_undefined_flag=' -expect_unresolved \*'
9824        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'
9825        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9826        $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'
9827
9828        # Both c and cxx compiler support -rpath directly
9829        hardcode_libdir_flag_spec='-rpath $libdir'
9830      fi
9831      hardcode_libdir_separator=:
9832      ;;
9833
9834    solaris*)
9835      no_undefined_flag=' -z text'
9836      if test "$GCC" = yes; then
9837        wlarc='${wl}'
9838        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9839        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9840          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9841      else
9842        wlarc=''
9843        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9844        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9845        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9846      fi
9847      hardcode_libdir_flag_spec='-R$libdir'
9848      hardcode_shlibpath_var=no
9849      case $host_os in
9850      solaris2.[0-5] | solaris2.[0-5].*) ;;
9851      *)
9852        # The compiler driver will combine linker options so we
9853        # cannot just pass the convience library names through
9854        # without $wl, iff we do not link with $LD.
9855        # Luckily, gcc supports the same syntax we need for Sun Studio.
9856        # Supported since Solaris 2.6 (maybe 2.5.1?)
9857        case $wlarc in
9858        '')
9859          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9860        *)
9861          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' ;;
9862        esac ;;
9863      esac
9864      link_all_deplibs=yes
9865      ;;
9866
9867    sunos4*)
9868      if test "x$host_vendor" = xsequent; then
9869        # Use $CC to link under sequent, because it throws in some extra .o
9870        # files that make .init and .fini sections work.
9871        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9872      else
9873        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9874      fi
9875      hardcode_libdir_flag_spec='-L$libdir'
9876      hardcode_direct=yes
9877      hardcode_minus_L=yes
9878      hardcode_shlibpath_var=no
9879      ;;
9880
9881    sysv4)
9882      case $host_vendor in
9883        sni)
9884          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9885          hardcode_direct=yes # is this really true???
9886        ;;
9887        siemens)
9888          ## LD is ld it makes a PLAMLIB
9889          ## CC just makes a GrossModule.
9890          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9891          reload_cmds='$CC -r -o $output$reload_objs'
9892          hardcode_direct=no
9893        ;;
9894        motorola)
9895          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9897        ;;
9898      esac
9899      runpath_var='LD_RUN_PATH'
9900      hardcode_shlibpath_var=no
9901      ;;
9902
9903    sysv4.3*)
9904      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905      hardcode_shlibpath_var=no
9906      export_dynamic_flag_spec='-Bexport'
9907      ;;
9908
9909    sysv4*MP*)
9910      if test -d /usr/nec; then
9911        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9912        hardcode_shlibpath_var=no
9913        runpath_var=LD_RUN_PATH
9914        hardcode_runpath_var=yes
9915        ld_shlibs=yes
9916      fi
9917      ;;
9918
9919    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9920      no_undefined_flag='${wl}-z,text'
9921      archive_cmds_need_lc=no
9922      hardcode_shlibpath_var=no
9923      runpath_var='LD_RUN_PATH'
9924
9925      if test "$GCC" = yes; then
9926        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9927        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9928      else
9929        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9930        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9931      fi
9932      ;;
9933
9934    sysv5* | sco3.2v5* | sco5v6*)
9935      # Note: We can NOT use -z defs as we might desire, because we do not
9936      # link with -lc, and that would cause any symbols used from libc to
9937      # always be unresolved, which means just about no library would
9938      # ever link correctly.  If we're not using GNU ld we use -z text
9939      # though, which does catch some bad symbols but isn't as heavy-handed
9940      # as -z defs.
9941      no_undefined_flag='${wl}-z,text'
9942      allow_undefined_flag='${wl}-z,nodefs'
9943      archive_cmds_need_lc=no
9944      hardcode_shlibpath_var=no
9945      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9946      hardcode_libdir_separator=':'
9947      link_all_deplibs=yes
9948      export_dynamic_flag_spec='${wl}-Bexport'
9949      runpath_var='LD_RUN_PATH'
9950
9951      if test "$GCC" = yes; then
9952        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9953        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9954      else
9955        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9956        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9957      fi
9958      ;;
9959
9960    uts4*)
9961      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9962      hardcode_libdir_flag_spec='-L$libdir'
9963      hardcode_shlibpath_var=no
9964      ;;
9965
9966    *)
9967      ld_shlibs=no
9968      ;;
9969    esac
9970  fi
9971
9972echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9973echo "${ECHO_T}$ld_shlibs" >&6
9974test "$ld_shlibs" = no && can_build_shared=no
9975
9976#
9977# Do we need to explicitly link libc?
9978#
9979case "x$archive_cmds_need_lc" in
9980x|xyes)
9981  # Assume -lc should be added
9982  archive_cmds_need_lc=yes
9983
9984  if test "$enable_shared" = yes && test "$GCC" = yes; then
9985    case $archive_cmds in
9986    *'~'*)
9987      # FIXME: we may have to deal with multi-command sequences.
9988      ;;
9989    '$CC '*)
9990      # Test whether the compiler implicitly links with -lc since on some
9991      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9992      # to ld, don't add -lc before -lgcc.
9993      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9994echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9995      $rm conftest*
9996      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9997
9998      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9999  (eval $ac_compile) 2>&5
10000  ac_status=$?
10001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002  (exit $ac_status); } 2>conftest.err; then
10003        soname=conftest
10004        lib=conftest
10005        libobjs=conftest.$ac_objext
10006        deplibs=
10007        wl=$lt_prog_compiler_wl
10008        pic_flag=$lt_prog_compiler_pic
10009        compiler_flags=-v
10010        linker_flags=-v
10011        verstring=
10012        output_objdir=.
10013        libname=conftest
10014        lt_save_allow_undefined_flag=$allow_undefined_flag
10015        allow_undefined_flag=
10016        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10017  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10018  ac_status=$?
10019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020  (exit $ac_status); }
10021        then
10022          archive_cmds_need_lc=no
10023        else
10024          archive_cmds_need_lc=yes
10025        fi
10026        allow_undefined_flag=$lt_save_allow_undefined_flag
10027      else
10028        cat conftest.err 1>&5
10029      fi
10030      $rm conftest*
10031      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10032echo "${ECHO_T}$archive_cmds_need_lc" >&6
10033      ;;
10034    esac
10035  fi
10036  ;;
10037esac
10038
10039echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10040echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10041library_names_spec=
10042libname_spec='lib$name'
10043soname_spec=
10044shrext_cmds=".so"
10045postinstall_cmds=
10046postuninstall_cmds=
10047finish_cmds=
10048finish_eval=
10049shlibpath_var=
10050shlibpath_overrides_runpath=unknown
10051version_type=none
10052dynamic_linker="$host_os ld.so"
10053sys_lib_dlsearch_path_spec="/lib /usr/lib"
10054if test "$GCC" = yes; then
10055  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10056  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10057    # if the path contains ";" then we assume it to be the separator
10058    # otherwise default to the standard path separator (i.e. ":") - it is
10059    # assumed that no part of a normal pathname contains ";" but that should
10060    # okay in the real world where ";" in dirpaths is itself problematic.
10061    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10062  else
10063    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10064  fi
10065else
10066  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10067fi
10068need_lib_prefix=unknown
10069hardcode_into_libs=no
10070
10071# when you set need_version to no, make sure it does not cause -set_version
10072# flags to be left without arguments
10073need_version=unknown
10074
10075case $host_os in
10076aix3*)
10077  version_type=linux
10078  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10079  shlibpath_var=LIBPATH
10080
10081  # AIX 3 has no versioning support, so we append a major version to the name.
10082  soname_spec='${libname}${release}${shared_ext}$major'
10083  ;;
10084
10085aix4* | aix5*)
10086  version_type=linux
10087  need_lib_prefix=no
10088  need_version=no
10089  hardcode_into_libs=yes
10090  if test "$host_cpu" = ia64; then
10091    # AIX 5 supports IA64
10092    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10093    shlibpath_var=LD_LIBRARY_PATH
10094  else
10095    # With GCC up to 2.95.x, collect2 would create an import file
10096    # for dependence libraries.  The import file would start with
10097    # the line `#! .'.  This would cause the generated library to
10098    # depend on `.', always an invalid library.  This was fixed in
10099    # development snapshots of GCC prior to 3.0.
10100    case $host_os in
10101      aix4 | aix4.[01] | aix4.[01].*)
10102      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10103           echo ' yes '
10104           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10105        :
10106      else
10107        can_build_shared=no
10108      fi
10109      ;;
10110    esac
10111    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10112    # soname into executable. Probably we can add versioning support to
10113    # collect2, so additional links can be useful in future.
10114    if test "$aix_use_runtimelinking" = yes; then
10115      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10116      # instead of lib<name>.a to let people know that these are not
10117      # typical AIX shared libraries.
10118      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10119    else
10120      # We preserve .a as extension for shared libraries through AIX4.2
10121      # and later when we are not doing run time linking.
10122      library_names_spec='${libname}${release}.a $libname.a'
10123      soname_spec='${libname}${release}${shared_ext}$major'
10124    fi
10125    shlibpath_var=LIBPATH
10126  fi
10127  ;;
10128
10129amigaos*)
10130  library_names_spec='$libname.ixlibrary $libname.a'
10131  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10132  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'
10133  ;;
10134
10135beos*)
10136  library_names_spec='${libname}${shared_ext}'
10137  dynamic_linker="$host_os ld.so"
10138  shlibpath_var=LIBRARY_PATH
10139  ;;
10140
10141bsdi[45]*)
10142  version_type=linux
10143  need_version=no
10144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145  soname_spec='${libname}${release}${shared_ext}$major'
10146  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10147  shlibpath_var=LD_LIBRARY_PATH
10148  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10149  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10150  # the default ld.so.conf also contains /usr/contrib/lib and
10151  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10152  # libtool to hard-code these into programs
10153  ;;
10154
10155cygwin* | mingw* | pw32*)
10156  version_type=windows
10157  shrext_cmds=".dll"
10158  need_version=no
10159  need_lib_prefix=no
10160
10161  case $GCC,$host_os in
10162  yes,cygwin* | yes,mingw* | yes,pw32*)
10163    library_names_spec='$libname.dll.a'
10164    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10165    postinstall_cmds='base_file=`basename \${file}`~
10166      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10167      dldir=$destdir/`dirname \$dlpath`~
10168      test -d \$dldir || mkdir -p \$dldir~
10169      $install_prog $dir/$dlname \$dldir/$dlname~
10170      chmod a+x \$dldir/$dlname'
10171    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10172      dlpath=$dir/\$dldll~
10173       $rm \$dlpath'
10174    shlibpath_overrides_runpath=yes
10175
10176    case $host_os in
10177    cygwin*)
10178      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10179      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10180      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10181      ;;
10182    mingw*)
10183      # MinGW DLLs use traditional 'lib' prefix
10184      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10185      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10186      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10187        # It is most probably a Windows format PATH printed by
10188        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10189        # path with ; separators, and with drive letters. We can handle the
10190        # drive letters (cygwin fileutils understands them), so leave them,
10191        # especially as we might pass files found there to a mingw objdump,
10192        # which wouldn't understand a cygwinified path. Ahh.
10193        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10194      else
10195        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10196      fi
10197      ;;
10198    pw32*)
10199      # pw32 DLLs use 'pw' prefix rather than 'lib'
10200      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10201      ;;
10202    esac
10203    ;;
10204
10205  *)
10206    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10207    ;;
10208  esac
10209  dynamic_linker='Win32 ld.exe'
10210  # FIXME: first we should search . and the directory the executable is in
10211  shlibpath_var=PATH
10212  ;;
10213
10214darwin* | rhapsody*)
10215  dynamic_linker="$host_os dyld"
10216  version_type=darwin
10217  need_lib_prefix=no
10218  need_version=no
10219  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10220  soname_spec='${libname}${release}${major}$shared_ext'
10221  shlibpath_overrides_runpath=yes
10222  shlibpath_var=DYLD_LIBRARY_PATH
10223  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10224  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10225  if test "$GCC" = yes; then
10226    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"`
10227  else
10228    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10229  fi
10230  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10231  ;;
10232
10233dgux*)
10234  version_type=linux
10235  need_lib_prefix=no
10236  need_version=no
10237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10238  soname_spec='${libname}${release}${shared_ext}$major'
10239  shlibpath_var=LD_LIBRARY_PATH
10240  ;;
10241
10242freebsd1*)
10243  dynamic_linker=no
10244  ;;
10245
10246kfreebsd*-gnu)
10247  version_type=linux
10248  need_lib_prefix=no
10249  need_version=no
10250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10251  soname_spec='${libname}${release}${shared_ext}$major'
10252  shlibpath_var=LD_LIBRARY_PATH
10253  shlibpath_overrides_runpath=no
10254  hardcode_into_libs=yes
10255  dynamic_linker='GNU ld.so'
10256  ;;
10257
10258freebsd* | dragonfly*)
10259  # DragonFly does not have aout.  When/if they implement a new
10260  # versioning mechanism, adjust this.
10261  if test -x /usr/bin/objformat; then
10262    objformat=`/usr/bin/objformat`
10263  else
10264    case $host_os in
10265    freebsd[123]*) objformat=aout ;;
10266    *) objformat=elf ;;
10267    esac
10268  fi
10269  version_type=freebsd-$objformat
10270  case $version_type in
10271    freebsd-elf*)
10272      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10273      need_version=no
10274      need_lib_prefix=no
10275      ;;
10276    freebsd-*)
10277      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10278      need_version=yes
10279      ;;
10280  esac
10281  shlibpath_var=LD_LIBRARY_PATH
10282  case $host_os in
10283  freebsd2*)
10284    shlibpath_overrides_runpath=yes
10285    ;;
10286  freebsd3.[01]* | freebsdelf3.[01]*)
10287    shlibpath_overrides_runpath=yes
10288    hardcode_into_libs=yes
10289    ;;
10290  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10291  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10292    shlibpath_overrides_runpath=no
10293    hardcode_into_libs=yes
10294    ;;
10295  freebsd*) # from 4.6 on
10296    shlibpath_overrides_runpath=yes
10297    hardcode_into_libs=yes
10298    ;;
10299  esac
10300  ;;
10301
10302gnu*)
10303  version_type=linux
10304  need_lib_prefix=no
10305  need_version=no
10306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10307  soname_spec='${libname}${release}${shared_ext}$major'
10308  shlibpath_var=LD_LIBRARY_PATH
10309  hardcode_into_libs=yes
10310  ;;
10311
10312hpux9* | hpux10* | hpux11*)
10313  # Give a soname corresponding to the major version so that dld.sl refuses to
10314  # link against other versions.
10315  version_type=sunos
10316  need_lib_prefix=no
10317  need_version=no
10318  case $host_cpu in
10319  ia64*)
10320    shrext_cmds='.so'
10321    hardcode_into_libs=yes
10322    dynamic_linker="$host_os dld.so"
10323    shlibpath_var=LD_LIBRARY_PATH
10324    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10325    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326    soname_spec='${libname}${release}${shared_ext}$major'
10327    if test "X$HPUX_IA64_MODE" = X32; then
10328      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10329    else
10330      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10331    fi
10332    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10333    ;;
10334   hppa*64*)
10335     shrext_cmds='.sl'
10336     hardcode_into_libs=yes
10337     dynamic_linker="$host_os dld.sl"
10338     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10339     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341     soname_spec='${libname}${release}${shared_ext}$major'
10342     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10343     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10344     ;;
10345   *)
10346    shrext_cmds='.sl'
10347    dynamic_linker="$host_os dld.sl"
10348    shlibpath_var=SHLIB_PATH
10349    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10350    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351    soname_spec='${libname}${release}${shared_ext}$major'
10352    ;;
10353  esac
10354  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10355  postinstall_cmds='chmod 555 $lib'
10356  ;;
10357
10358interix3*)
10359  version_type=linux
10360  need_lib_prefix=no
10361  need_version=no
10362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10363  soname_spec='${libname}${release}${shared_ext}$major'
10364  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10365  shlibpath_var=LD_LIBRARY_PATH
10366  shlibpath_overrides_runpath=no
10367  hardcode_into_libs=yes
10368  ;;
10369
10370irix5* | irix6* | nonstopux*)
10371  case $host_os in
10372    nonstopux*) version_type=nonstopux ;;
10373    *)
10374        if test "$lt_cv_prog_gnu_ld" = yes; then
10375                version_type=linux
10376        else
10377                version_type=irix
10378        fi ;;
10379  esac
10380  need_lib_prefix=no
10381  need_version=no
10382  soname_spec='${libname}${release}${shared_ext}$major'
10383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10384  case $host_os in
10385  irix5* | nonstopux*)
10386    libsuff= shlibsuff=
10387    ;;
10388  *)
10389    case $LD in # libtool.m4 will add one of these switches to LD
10390    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10391      libsuff= shlibsuff= libmagic=32-bit;;
10392    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10393      libsuff=32 shlibsuff=N32 libmagic=N32;;
10394    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10395      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10396    *) libsuff= shlibsuff= libmagic=never-match;;
10397    esac
10398    ;;
10399  esac
10400  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10401  shlibpath_overrides_runpath=no
10402  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10403  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10404  hardcode_into_libs=yes
10405  ;;
10406
10407# No shared lib support for Linux oldld, aout, or coff.
10408linux*oldld* | linux*aout* | linux*coff*)
10409  dynamic_linker=no
10410  ;;
10411
10412# This must be Linux ELF.
10413linux*)
10414  version_type=linux
10415  need_lib_prefix=no
10416  need_version=no
10417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418  soname_spec='${libname}${release}${shared_ext}$major'
10419  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10420  shlibpath_var=LD_LIBRARY_PATH
10421  shlibpath_overrides_runpath=no
10422  # This implies no fast_install, which is unacceptable.
10423  # Some rework will be needed to allow for fast_install
10424  # before this can be enabled.
10425  hardcode_into_libs=yes
10426
10427  # Append ld.so.conf contents to the search path
10428  if test -f /etc/ld.so.conf; then
10429    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' ' '`
10430    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10431  fi
10432
10433  # We used to test for /lib/ld.so.1 and disable shared libraries on
10434  # powerpc, because MkLinux only supported shared libraries with the
10435  # GNU dynamic linker.  Since this was broken with cross compilers,
10436  # most powerpc-linux boxes support dynamic linking these days and
10437  # people can always --disable-shared, the test was removed, and we
10438  # assume the GNU/Linux dynamic linker is in use.
10439  dynamic_linker='GNU/Linux ld.so'
10440  ;;
10441
10442knetbsd*-gnu)
10443  version_type=linux
10444  need_lib_prefix=no
10445  need_version=no
10446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10447  soname_spec='${libname}${release}${shared_ext}$major'
10448  shlibpath_var=LD_LIBRARY_PATH
10449  shlibpath_overrides_runpath=no
10450  hardcode_into_libs=yes
10451  dynamic_linker='GNU ld.so'
10452  ;;
10453
10454netbsd*)
10455  version_type=sunos
10456  need_lib_prefix=no
10457  need_version=no
10458  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10459    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10460    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10461    dynamic_linker='NetBSD (a.out) ld.so'
10462  else
10463    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10464    soname_spec='${libname}${release}${shared_ext}$major'
10465    dynamic_linker='NetBSD ld.elf_so'
10466  fi
10467  shlibpath_var=LD_LIBRARY_PATH
10468  shlibpath_overrides_runpath=yes
10469  hardcode_into_libs=yes
10470  ;;
10471
10472newsos6)
10473  version_type=linux
10474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10475  shlibpath_var=LD_LIBRARY_PATH
10476  shlibpath_overrides_runpath=yes
10477  ;;
10478
10479nto-qnx*)
10480  version_type=linux
10481  need_lib_prefix=no
10482  need_version=no
10483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10484  soname_spec='${libname}${release}${shared_ext}$major'
10485  shlibpath_var=LD_LIBRARY_PATH
10486  shlibpath_overrides_runpath=yes
10487  ;;
10488
10489openbsd*)
10490  version_type=sunos
10491  sys_lib_dlsearch_path_spec="/usr/lib"
10492  need_lib_prefix=no
10493  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10494  case $host_os in
10495    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10496    *)                         need_version=no  ;;
10497  esac
10498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10499  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10500  shlibpath_var=LD_LIBRARY_PATH
10501  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10502    case $host_os in
10503      openbsd2.[89] | openbsd2.[89].*)
10504        shlibpath_overrides_runpath=no
10505        ;;
10506      *)
10507        shlibpath_overrides_runpath=yes
10508        ;;
10509      esac
10510  else
10511    shlibpath_overrides_runpath=yes
10512  fi
10513  ;;
10514
10515os2*)
10516  libname_spec='$name'
10517  shrext_cmds=".dll"
10518  need_lib_prefix=no
10519  library_names_spec='$libname${shared_ext} $libname.a'
10520  dynamic_linker='OS/2 ld.exe'
10521  shlibpath_var=LIBPATH
10522  ;;
10523
10524osf3* | osf4* | osf5*)
10525  version_type=osf
10526  need_lib_prefix=no
10527  need_version=no
10528  soname_spec='${libname}${release}${shared_ext}$major'
10529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10530  shlibpath_var=LD_LIBRARY_PATH
10531  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10532  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10533  ;;
10534
10535solaris*)
10536  version_type=linux
10537  need_lib_prefix=no
10538  need_version=no
10539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540  soname_spec='${libname}${release}${shared_ext}$major'
10541  shlibpath_var=LD_LIBRARY_PATH
10542  shlibpath_overrides_runpath=yes
10543  hardcode_into_libs=yes
10544  # ldd complains unless libraries are executable
10545  postinstall_cmds='chmod +x $lib'
10546  ;;
10547
10548sunos4*)
10549  version_type=sunos
10550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10551  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10552  shlibpath_var=LD_LIBRARY_PATH
10553  shlibpath_overrides_runpath=yes
10554  if test "$with_gnu_ld" = yes; then
10555    need_lib_prefix=no
10556  fi
10557  need_version=yes
10558  ;;
10559
10560sysv4 | sysv4.3*)
10561  version_type=linux
10562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563  soname_spec='${libname}${release}${shared_ext}$major'
10564  shlibpath_var=LD_LIBRARY_PATH
10565  case $host_vendor in
10566    sni)
10567      shlibpath_overrides_runpath=no
10568      need_lib_prefix=no
10569      export_dynamic_flag_spec='${wl}-Blargedynsym'
10570      runpath_var=LD_RUN_PATH
10571      ;;
10572    siemens)
10573      need_lib_prefix=no
10574      ;;
10575    motorola)
10576      need_lib_prefix=no
10577      need_version=no
10578      shlibpath_overrides_runpath=no
10579      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10580      ;;
10581  esac
10582  ;;
10583
10584sysv4*MP*)
10585  if test -d /usr/nec ;then
10586    version_type=linux
10587    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10588    soname_spec='$libname${shared_ext}.$major'
10589    shlibpath_var=LD_LIBRARY_PATH
10590  fi
10591  ;;
10592
10593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10594  version_type=freebsd-elf
10595  need_lib_prefix=no
10596  need_version=no
10597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10598  soname_spec='${libname}${release}${shared_ext}$major'
10599  shlibpath_var=LD_LIBRARY_PATH
10600  hardcode_into_libs=yes
10601  if test "$with_gnu_ld" = yes; then
10602    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10603    shlibpath_overrides_runpath=no
10604  else
10605    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10606    shlibpath_overrides_runpath=yes
10607    case $host_os in
10608      sco3.2v5*)
10609        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10610        ;;
10611    esac
10612  fi
10613  sys_lib_dlsearch_path_spec='/usr/lib'
10614  ;;
10615
10616uts4*)
10617  version_type=linux
10618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619  soname_spec='${libname}${release}${shared_ext}$major'
10620  shlibpath_var=LD_LIBRARY_PATH
10621  ;;
10622
10623*)
10624  dynamic_linker=no
10625  ;;
10626esac
10627echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10628echo "${ECHO_T}$dynamic_linker" >&6
10629test "$dynamic_linker" = no && can_build_shared=no
10630
10631variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10632if test "$GCC" = yes; then
10633  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10634fi
10635
10636echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10637echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10638hardcode_action=
10639if test -n "$hardcode_libdir_flag_spec" || \
10640   test -n "$runpath_var" || \
10641   test "X$hardcode_automatic" = "Xyes" ; then
10642
10643  # We can hardcode non-existant directories.
10644  if test "$hardcode_direct" != no &&
10645     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10646     # have to relink, otherwise we might link with an installed library
10647     # when we should be linking with a yet-to-be-installed one
10648     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10649     test "$hardcode_minus_L" != no; then
10650    # Linking always hardcodes the temporary library directory.
10651    hardcode_action=relink
10652  else
10653    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10654    hardcode_action=immediate
10655  fi
10656else
10657  # We cannot hardcode anything, or else we can only hardcode existing
10658  # directories.
10659  hardcode_action=unsupported
10660fi
10661echo "$as_me:$LINENO: result: $hardcode_action" >&5
10662echo "${ECHO_T}$hardcode_action" >&6
10663
10664if test "$hardcode_action" = relink; then
10665  # Fast installation is not supported
10666  enable_fast_install=no
10667elif test "$shlibpath_overrides_runpath" = yes ||
10668     test "$enable_shared" = no; then
10669  # Fast installation is not necessary
10670  enable_fast_install=needless
10671fi
10672
10673striplib=
10674old_striplib=
10675echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10676echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10677if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10678  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10679  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10680  echo "$as_me:$LINENO: result: yes" >&5
10681echo "${ECHO_T}yes" >&6
10682else
10683# FIXME - insert some real tests, host_os isn't really good enough
10684  case $host_os in
10685   darwin*)
10686       if test -n "$STRIP" ; then
10687         striplib="$STRIP -x"
10688         echo "$as_me:$LINENO: result: yes" >&5
10689echo "${ECHO_T}yes" >&6
10690       else
10691  echo "$as_me:$LINENO: result: no" >&5
10692echo "${ECHO_T}no" >&6
10693fi
10694       ;;
10695   *)
10696  echo "$as_me:$LINENO: result: no" >&5
10697echo "${ECHO_T}no" >&6
10698    ;;
10699  esac
10700fi
10701
10702if test "x$enable_dlopen" != xyes; then
10703  enable_dlopen=unknown
10704  enable_dlopen_self=unknown
10705  enable_dlopen_self_static=unknown
10706else
10707  lt_cv_dlopen=no
10708  lt_cv_dlopen_libs=
10709
10710  case $host_os in
10711  beos*)
10712    lt_cv_dlopen="load_add_on"
10713    lt_cv_dlopen_libs=
10714    lt_cv_dlopen_self=yes
10715    ;;
10716
10717  mingw* | pw32*)
10718    lt_cv_dlopen="LoadLibrary"
10719    lt_cv_dlopen_libs=
10720   ;;
10721
10722  cygwin*)
10723    lt_cv_dlopen="dlopen"
10724    lt_cv_dlopen_libs=
10725   ;;
10726
10727  darwin*)
10728  # if libdl is installed we need to link against it
10729    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10730echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10731if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10732  echo $ECHO_N "(cached) $ECHO_C" >&6
10733else
10734  ac_check_lib_save_LIBS=$LIBS
10735LIBS="-ldl  $LIBS"
10736cat >conftest.$ac_ext <<_ACEOF
10737/* confdefs.h.  */
10738_ACEOF
10739cat confdefs.h >>conftest.$ac_ext
10740cat >>conftest.$ac_ext <<_ACEOF
10741/* end confdefs.h.  */