source: stable/1.8/configure @ 2200

Last change on this file since 2200 was 2200, checked in by stefan, 4 months ago

merge r2194..r2199 from trunk

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