source: stable/2.8/configure @ 1942

Last change on this file since 1942 was 1942, checked in by stefan, 6 years ago

restoring Cbc/stable/2.8

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