source: trunk/Couenne/configure @ 487

Last change on this file since 487 was 487, checked in by pbelotti, 10 years ago

adopting new build system in trunk

File size: 894.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Couenne trunk.
4#
5# Report bugs to <couenne@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 Carnegie Mellon University, International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Couenne'
431PACKAGE_TARNAME='couenne'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Couenne trunk'
434PACKAGE_BUGREPORT='couenne@list.coin-or.org'
435
436ac_unique_file="src/expression/expression.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion COUENNE_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP 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 LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BONMIN_LIBS BONMIN_CFLAGS BONMIN_DATA BONMIN_DEPENDENCIES BONMIN_LIBS_INSTALLED BONMIN_CFLAGS_INSTALLED BONMIN_DATA_INSTALLED COUENNELIB_CFLAGS COUENNELIB_LIBS COUENNELIB_PCLIBS COUENNELIB_PCREQUIRES COUENNELIB_DEPENDENCIES COUENNELIB_CFLAGS_INSTALLED COUENNELIB_LIBS_INSTALLED COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE NTYINCDIR NTYLIB COIN_HAS_NTY_TRUE COIN_HAS_NTY_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE CPXINCDIR GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Couenne trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Couenne trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-couenne compile this project (Couenne) with debug options
1083  --enable-doscompile     Under Cygwin, compile so that executables run under
1084                          DOS. Set to mingw to use gcc/g++/ld with
1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --disable-dependency-tracking  speeds up one-time build
1091  --enable-dependency-tracking   do not reject slow dependency extractors
1092  --enable-maintainer-mode  enable make rules and dependencies not useful
1093                          (and sometimes confusing) to the casual installer
1094  --enable-shared[=PKGS]
1095                          build shared libraries [default=yes]
1096  --enable-fast-install[=PKGS]
1097                          optimize for fast installation [default=yes]
1098  --disable-libtool-lock  avoid locking (might break parallel builds)
1099  --enable-pkg-config     use pkg-config if available (default is yes)
1100  --enable-interpackage-dependencies
1101                          whether to deduce Makefile dependencies from package
1102                          linker flags (default: yes)
1103  --enable-nauty-libcheck use disable-nauty-libcheck to skip the
1104                          link check at configuration time
1105
1106Optional Packages:
1107  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1108  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1109  --with-couenne-verbosity
1110                          specify the debug verbosity level for project
1111                          Couenne
1112  --with-couenne-checklevel
1113                          specify the sanity check level for project Couenne
1114  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1115  --with-pic              try to use only PIC/non-PIC objects [default=use
1116                          both]
1117  --with-tags[=TAGS]
1118                          include additional configurations [automatic]
1119  --with-coin-instdir     prefix of installation directory for precompiled
1120                          COIN packages
1121  --with-bonmin-lib linker flags for using package Bonmin
1122  --with-bonmin-incdir directory with header files for using package Bonmin
1123  --with-bonmin-datadir directory with data files for using package Bonmin
1124  --with-asl-lib linker flags for using package ASL
1125  --with-asl-incdir directory with header files for using package ASL
1126  --with-asl-datadir directory with data files for using package ASL
1127  --with-nauty-incdir specify the header file directory for library Nauty
1128  --with-nauty-lib specify the flags used to link with the library Nauty
1129  --with-cpx-lib linker flags for using package Cpx
1130  --with-cpx-incdir directory with header files for using package Cpx
1131  --with-cpx-datadir directory with data files for using package Cpx
1132  --with-cplex-incdir     specify the header file directory for library cplex
1133  --with-grb-lib linker flags for using package Grb
1134  --with-grb-incdir directory with header files for using package Grb
1135  --with-grb-datadir directory with data files for using package Grb
1136  --with-msk-lib linker flags for using package Msk
1137  --with-msk-incdir directory with header files for using package Msk
1138  --with-msk-datadir directory with data files for using package Msk
1139  --with-spx-lib linker flags for using package Spx
1140  --with-spx-incdir directory with header files for using package Spx
1141  --with-spx-datadir directory with data files for using package Spx
1142  --with-xpr-lib linker flags for using package Xpr
1143  --with-xpr-incdir directory with header files for using package Xpr
1144  --with-xpr-datadir directory with data files for using package Xpr
1145
1146Some influential environment variables:
1147  CDEFS       Additional -D flags to be used when compiling C code.
1148  ADD_CFLAGS  Additional C compiler options
1149  DBG_CFLAGS  Debug C compiler options
1150  OPT_CFLAGS  Optimize C compiler options
1151  CC          C compiler command
1152  CFLAGS      C compiler flags
1153  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1154              nonstandard directory <lib dir>
1155  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1156              headers in a nonstandard directory <include dir>
1157  MPICC       C MPI Compiler
1158  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1159  ADD_CXXFLAGS
1160              Additional C++ compiler options
1161  DBG_CXXFLAGS
1162              Debug C++ compiler options
1163  OPT_CXXFLAGS
1164              Optimize C++ compiler options
1165  CXX         C++ compiler command
1166  CXXFLAGS    C++ compiler flags
1167  MPICXX      C++ MPI Compiler
1168  CPP         C preprocessor
1169  CXXCPP      C++ preprocessor
1170  F77         Fortran 77 compiler command
1171  FFLAGS      Fortran 77 compiler flags
1172  PKG_CONFIG  path to pkg-config utility
1173
1174Use these variables to override the choices made by `configure' or to help
1175it to find libraries and programs with nonstandard names/locations.
1176
1177Report bugs to <couenne@list.coin-or.org>.
1178_ACEOF
1179fi
1180
1181if test "$ac_init_help" = "recursive"; then
1182  # If there are subdirs, report their specific --help.
1183  ac_popdir=`pwd`
1184  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1185    test -d $ac_dir || continue
1186    ac_builddir=.
1187
1188if test "$ac_dir" != .; then
1189  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1190  # A "../" for each directory in $ac_dir_suffix.
1191  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1192else
1193  ac_dir_suffix= ac_top_builddir=
1194fi
1195
1196case $srcdir in
1197  .)  # No --srcdir option.  We are building in place.
1198    ac_srcdir=.
1199    if test -z "$ac_top_builddir"; then
1200       ac_top_srcdir=.
1201    else
1202       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1203    fi ;;
1204  [\\/]* | ?:[\\/]* )  # Absolute path.
1205    ac_srcdir=$srcdir$ac_dir_suffix;
1206    ac_top_srcdir=$srcdir ;;
1207  *) # Relative path.
1208    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1209    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1210esac
1211
1212# Do not use `cd foo && pwd` to compute absolute paths, because
1213# the directories may not exist.
1214case `pwd` in
1215.) ac_abs_builddir="$ac_dir";;
1216*)
1217  case "$ac_dir" in
1218  .) ac_abs_builddir=`pwd`;;
1219  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1220  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1221  esac;;
1222esac
1223case $ac_abs_builddir in
1224.) ac_abs_top_builddir=${ac_top_builddir}.;;
1225*)
1226  case ${ac_top_builddir}. in
1227  .) ac_abs_top_builddir=$ac_abs_builddir;;
1228  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1229  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1230  esac;;
1231esac
1232case $ac_abs_builddir in
1233.) ac_abs_srcdir=$ac_srcdir;;
1234*)
1235  case $ac_srcdir in
1236  .) ac_abs_srcdir=$ac_abs_builddir;;
1237  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1238  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1239  esac;;
1240esac
1241case $ac_abs_builddir in
1242.) ac_abs_top_srcdir=$ac_top_srcdir;;
1243*)
1244  case $ac_top_srcdir in
1245  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1246  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1247  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1248  esac;;
1249esac
1250
1251    cd $ac_dir
1252    # Check for guested configure; otherwise get Cygnus style configure.
1253    if test -f $ac_srcdir/configure.gnu; then
1254      echo
1255      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1256    elif test -f $ac_srcdir/configure; then
1257      echo
1258      $SHELL $ac_srcdir/configure  --help=recursive
1259    elif test -f $ac_srcdir/configure.ac ||
1260           test -f $ac_srcdir/configure.in; then
1261      echo
1262      $ac_configure --help
1263    else
1264      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1265    fi
1266    cd $ac_popdir
1267  done
1268fi
1269
1270test -n "$ac_init_help" && exit 0
1271if $ac_init_version; then
1272  cat <<\_ACEOF
1273Couenne configure trunk
1274generated by GNU Autoconf 2.59
1275
1276Copyright (C) 2003 Free Software Foundation, Inc.
1277This configure script is free software; the Free Software Foundation
1278gives unlimited permission to copy, distribute and modify it.
1279
1280
1281Copyright 2006 Carnegie Mellon University, International Business Machines and others.
1282All Rights Reserved.
1283This file is part of the open source package Coin which is distributed
1284under the Common Public License.
1285_ACEOF
1286  exit 0
1287fi
1288exec 5>config.log
1289cat >&5 <<_ACEOF
1290This file contains any messages produced by compilers while
1291running configure, to aid debugging if configure makes a mistake.
1292
1293It was created by Couenne $as_me trunk, which was
1294generated by GNU Autoconf 2.59.  Invocation command line was
1295
1296  $ $0 $@
1297
1298_ACEOF
1299{
1300cat <<_ASUNAME
1301## --------- ##
1302## Platform. ##
1303## --------- ##
1304
1305hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1306uname -m = `(uname -m) 2>/dev/null || echo unknown`
1307uname -r = `(uname -r) 2>/dev/null || echo unknown`
1308uname -s = `(uname -s) 2>/dev/null || echo unknown`
1309uname -v = `(uname -v) 2>/dev/null || echo unknown`
1310
1311/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1312/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1313
1314/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1315/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1316/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1317hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1318/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1319/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1320/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1321
1322_ASUNAME
1323
1324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1325for as_dir in $PATH
1326do
1327  IFS=$as_save_IFS
1328  test -z "$as_dir" && as_dir=.
1329  echo "PATH: $as_dir"
1330done
1331
1332} >&5
1333
1334cat >&5 <<_ACEOF
1335
1336
1337## ----------- ##
1338## Core tests. ##
1339## ----------- ##
1340
1341_ACEOF
1342
1343
1344# Keep a trace of the command line.
1345# Strip out --no-create and --no-recursion so they do not pile up.
1346# Strip out --silent because we don't want to record it for future runs.
1347# Also quote any args containing shell meta-characters.
1348# Make two passes to allow for proper duplicate-argument suppression.
1349ac_configure_args=
1350ac_configure_args0=
1351ac_configure_args1=
1352ac_sep=
1353ac_must_keep_next=false
1354for ac_pass in 1 2
1355do
1356  for ac_arg
1357  do
1358    case $ac_arg in
1359    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1360    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1361    | -silent | --silent | --silen | --sile | --sil)
1362      continue ;;
1363    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1364      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1365    esac
1366    case $ac_pass in
1367    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1368    2)
1369      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1370      if test $ac_must_keep_next = true; then
1371        ac_must_keep_next=false # Got value, back to normal.
1372      else
1373        case $ac_arg in
1374          *=* | --config-cache | -C | -disable-* | --disable-* \
1375          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1376          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1377          | -with-* | --with-* | -without-* | --without-* | --x)
1378            case "$ac_configure_args0 " in
1379              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1380            esac
1381            ;;
1382          -* ) ac_must_keep_next=true ;;
1383        esac
1384      fi
1385      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1386      # Get rid of the leading space.
1387      ac_sep=" "
1388      ;;
1389    esac
1390  done
1391done
1392$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1393$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1394
1395# When interrupted or exit'd, cleanup temporary files, and complete
1396# config.log.  We remove comments because anyway the quotes in there
1397# would cause problems or look ugly.
1398# WARNING: Be sure not to use single quotes in there, as some shells,
1399# such as our DU 5.0 friend, will then `close' the trap.
1400trap 'exit_status=$?
1401  # Save into config.log some information that might help in debugging.
1402  {
1403    echo
1404
1405    cat <<\_ASBOX
1406## ---------------- ##
1407## Cache variables. ##
1408## ---------------- ##
1409_ASBOX
1410    echo
1411    # The following way of writing the cache mishandles newlines in values,
1412{
1413  (set) 2>&1 |
1414    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1415    *ac_space=\ *)
1416      sed -n \
1417        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1418          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1419      ;;
1420    *)
1421      sed -n \
1422        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1423      ;;
1424    esac;
1425}
1426    echo
1427
1428    cat <<\_ASBOX
1429## ----------------- ##
1430## Output variables. ##
1431## ----------------- ##
1432_ASBOX
1433    echo
1434    for ac_var in $ac_subst_vars
1435    do
1436      eval ac_val=$`echo $ac_var`
1437      echo "$ac_var='"'"'$ac_val'"'"'"
1438    done | sort
1439    echo
1440
1441    if test -n "$ac_subst_files"; then
1442      cat <<\_ASBOX
1443## ------------- ##
1444## Output files. ##
1445## ------------- ##
1446_ASBOX
1447      echo
1448      for ac_var in $ac_subst_files
1449      do
1450        eval ac_val=$`echo $ac_var`
1451        echo "$ac_var='"'"'$ac_val'"'"'"
1452      done | sort
1453      echo
1454    fi
1455
1456    if test -s confdefs.h; then
1457      cat <<\_ASBOX
1458## ----------- ##
1459## confdefs.h. ##
1460## ----------- ##
1461_ASBOX
1462      echo
1463      sed "/^$/d" confdefs.h | sort
1464      echo
1465    fi
1466    test "$ac_signal" != 0 &&
1467      echo "$as_me: caught signal $ac_signal"
1468    echo "$as_me: exit $exit_status"
1469  } >&5
1470  rm -f core *.core &&
1471  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1472    exit $exit_status
1473     ' 0
1474for ac_signal in 1 2 13 15; do
1475  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1476done
1477ac_signal=0
1478
1479# confdefs.h avoids OS command line length limits that DEFS can exceed.
1480rm -rf conftest* confdefs.h
1481# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1482echo >confdefs.h
1483
1484# Predefined preprocessor variables.
1485
1486cat >>confdefs.h <<_ACEOF
1487#define PACKAGE_NAME "$PACKAGE_NAME"
1488_ACEOF
1489
1490
1491cat >>confdefs.h <<_ACEOF
1492#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1493_ACEOF
1494
1495
1496cat >>confdefs.h <<_ACEOF
1497#define PACKAGE_VERSION "$PACKAGE_VERSION"
1498_ACEOF
1499
1500
1501cat >>confdefs.h <<_ACEOF
1502#define PACKAGE_STRING "$PACKAGE_STRING"
1503_ACEOF
1504
1505
1506cat >>confdefs.h <<_ACEOF
1507#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1508_ACEOF
1509
1510
1511# Let the site file select an alternate cache file if it wants to.
1512# Prefer explicitly selected file to automatically selected ones.
1513if test -z "$CONFIG_SITE"; then
1514  if test "x$prefix" != xNONE; then
1515    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1516  else
1517    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1518  fi
1519fi
1520for ac_site_file in $CONFIG_SITE; do
1521  if test -r "$ac_site_file"; then
1522    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1523echo "$as_me: loading site script $ac_site_file" >&6;}
1524    sed 's/^/| /' "$ac_site_file" >&5
1525    . "$ac_site_file"
1526  fi
1527done
1528
1529if test -r "$cache_file"; then
1530  # Some versions of bash will fail to source /dev/null (special
1531  # files actually), so we avoid doing that.
1532  if test -f "$cache_file"; then
1533    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1534echo "$as_me: loading cache $cache_file" >&6;}
1535    case $cache_file in
1536      [\\/]* | ?:[\\/]* ) . $cache_file;;
1537      *)                      . ./$cache_file;;
1538    esac
1539  fi
1540else
1541  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1542echo "$as_me: creating cache $cache_file" >&6;}
1543  >$cache_file
1544fi
1545
1546# Check that the precious variables saved in the cache have kept the same
1547# value.
1548ac_cache_corrupted=false
1549for ac_var in `(set) 2>&1 |
1550               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1551  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1552  eval ac_new_set=\$ac_env_${ac_var}_set
1553  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1554  eval ac_new_val="\$ac_env_${ac_var}_value"
1555  case $ac_old_set,$ac_new_set in
1556    set,)
1557      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1558echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1559      ac_cache_corrupted=: ;;
1560    ,set)
1561      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1562echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1563      ac_cache_corrupted=: ;;
1564    ,);;
1565    *)
1566      if test "x$ac_old_val" != "x$ac_new_val"; then
1567        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1568echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1569        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1570echo "$as_me:   former value:  $ac_old_val" >&2;}
1571        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1572echo "$as_me:   current value: $ac_new_val" >&2;}
1573        ac_cache_corrupted=:
1574      fi;;
1575  esac
1576  # Pass precious variables to config.status.
1577  if test "$ac_new_set" = set; then
1578    case $ac_new_val in
1579    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1580      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1581    *) ac_arg=$ac_var=$ac_new_val ;;
1582    esac
1583    case " $ac_configure_args " in
1584      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1585      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1586    esac
1587  fi
1588done
1589if $ac_cache_corrupted; then
1590  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1591echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1592  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1593echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1594   { (exit 1); exit 1; }; }
1595fi
1596
1597ac_ext=c
1598ac_cpp='$CPP $CPPFLAGS'
1599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1601ac_compiler_gnu=$ac_cv_c_compiler_gnu
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632# List one file in the package so that the configure script can test
1633# whether the package is actually there
1634
1635
1636# Where should everything be installed by default?  Here, we want it
1637# to be installed directly in 'bin', 'lib', 'include' subdirectories
1638# of the directory where configure is run.  The default would be
1639# /usr/local.
1640
1641
1642#############################################################################
1643#                         Standard build tool stuff                         #
1644#############################################################################
1645
1646# Get the system type
1647ac_aux_dir=
1648for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1649  if test -f $ac_dir/install-sh; then
1650    ac_aux_dir=$ac_dir
1651    ac_install_sh="$ac_aux_dir/install-sh -c"
1652    break
1653  elif test -f $ac_dir/install.sh; then
1654    ac_aux_dir=$ac_dir
1655    ac_install_sh="$ac_aux_dir/install.sh -c"
1656    break
1657  elif test -f $ac_dir/shtool; then
1658    ac_aux_dir=$ac_dir
1659    ac_install_sh="$ac_aux_dir/shtool install -c"
1660    break
1661  fi
1662done
1663if test -z "$ac_aux_dir"; then
1664  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1665echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1666   { (exit 1); exit 1; }; }
1667fi
1668ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1669ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1670ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1671
1672# Make sure we can run config.sub.
1673$ac_config_sub sun4 >/dev/null 2>&1 ||
1674  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1675echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1676   { (exit 1); exit 1; }; }
1677
1678echo "$as_me:$LINENO: checking build system type" >&5
1679echo $ECHO_N "checking build system type... $ECHO_C" >&6
1680if test "${ac_cv_build+set}" = set; then
1681  echo $ECHO_N "(cached) $ECHO_C" >&6
1682else
1683  ac_cv_build_alias=$build_alias
1684test -z "$ac_cv_build_alias" &&
1685  ac_cv_build_alias=`$ac_config_guess`
1686test -z "$ac_cv_build_alias" &&
1687  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1688echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1689   { (exit 1); exit 1; }; }
1690ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1691  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1692echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1693   { (exit 1); exit 1; }; }
1694
1695fi
1696echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1697echo "${ECHO_T}$ac_cv_build" >&6
1698build=$ac_cv_build
1699build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1700build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1701build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1702
1703
1704
1705# Initialization specifically for project main directories
1706
1707# As backup, we make sure we don't loose an FLIBS if it has been set
1708# by the user
1709save_FLIBS="$FLIBS"
1710
1711# A useful makefile conditional that is always false
1712
1713
1714if false; then
1715  ALWAYS_FALSE_TRUE=
1716  ALWAYS_FALSE_FALSE='#'
1717else
1718  ALWAYS_FALSE_TRUE='#'
1719  ALWAYS_FALSE_FALSE=
1720fi
1721
1722
1723# We set the following variable so that we know later in AC_COIN_FINALIZE
1724# that we are in a project main directory
1725coin_projectdir=yes
1726
1727# Set the project's version number
1728if test "xCouenne" != x; then
1729
1730cat >>confdefs.h <<_ACEOF
1731#define COUENNE_VERSION "$PACKAGE_VERSION"
1732_ACEOF
1733
1734fi
1735
1736# Set the project's SVN revision number. The complicated sed expression
1737# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1738# as a single number.
1739# Extract the first word of "svnversion", so it can be a program name with args.
1740set dummy svnversion; ac_word=$2
1741echo "$as_me:$LINENO: checking for $ac_word" >&5
1742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743if test "${ac_cv_prog_have_svnversion+set}" = set; then
1744  echo $ECHO_N "(cached) $ECHO_C" >&6
1745else
1746  if test -n "$have_svnversion"; then
1747  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1748else
1749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750for as_dir in $PATH
1751do
1752  IFS=$as_save_IFS
1753  test -z "$as_dir" && as_dir=.
1754  for ac_exec_ext in '' $ac_executable_extensions; do
1755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756    ac_cv_prog_have_svnversion="yes"
1757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758    break 2
1759  fi
1760done
1761done
1762
1763  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1764fi
1765fi
1766have_svnversion=$ac_cv_prog_have_svnversion
1767if test -n "$have_svnversion"; then
1768  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1769echo "${ECHO_T}$have_svnversion" >&6
1770else
1771  echo "$as_me:$LINENO: result: no" >&5
1772echo "${ECHO_T}no" >&6
1773fi
1774
1775if test "x$have_svnversion" = xyes && test "xCouenne" != x; then
1776
1777  svn_rev_tmp=`cd $srcdir/$coin_has_couenne ; svnversion`
1778  COUENNE_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1779  if test $COUENNE_SVN_REV != exported; then
1780
1781cat >>confdefs.h <<_ACEOF
1782#define COUENNE_SVN_REV $COUENNE_SVN_REV
1783_ACEOF
1784
1785  fi
1786fi
1787
1788# Capture libtool library version, if given.
1789
1790
1791
1792# Check if user wants to produce debugging code
1793
1794echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1795echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1796
1797# Check whether --enable-debug or --disable-debug was given.
1798if test "${enable_debug+set}" = set; then
1799  enableval="$enable_debug"
1800  case "${enableval}" in
1801   yes) coin_debug_compile=true
1802        if test "${enable_shared+set}" = set; then :; else
1803          enable_shared=no
1804        fi
1805        ;;
1806   no)  coin_debug_compile=false
1807        ;;
1808   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1809echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1810   { (exit 1); exit 1; }; }
1811        ;;
1812esac
1813else
1814  coin_debug_compile=false
1815fi;
1816
1817# Check whether --enable-debug-couenne or --disable-debug-couenne was given.
1818if test "${enable_debug_couenne+set}" = set; then
1819  enableval="$enable_debug_couenne"
1820  case "${enableval}" in
1821    yes) coin_debug_compile=true
1822         enable_shared=no
1823         ;;
1824    no)  coin_debug_compile=false
1825         ;;
1826    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-couenne" >&5
1827echo "$as_me: error: bad value ${enableval} for --enable-debug-couenne" >&2;}
1828   { (exit 1); exit 1; }; }
1829         ;;
1830 esac
1831else
1832  :
1833fi;
1834
1835 # m4_ifvaln([Couenne],
1836
1837if test $coin_debug_compile = true; then
1838  echo "$as_me:$LINENO: result: yes" >&5
1839echo "${ECHO_T}yes" >&6
1840else
1841  echo "$as_me:$LINENO: result: no" >&5
1842echo "${ECHO_T}no" >&6
1843fi
1844
1845
1846# Check whether --with-couenne-verbosity or --without-couenne-verbosity was given.
1847if test "${with_couenne_verbosity+set}" = set; then
1848  withval="$with_couenne_verbosity"
1849  if test "$withval" = yes; then
1850                withval=1
1851              fi
1852              coin_couenne_verbosity=$withval
1853else
1854  coin_couenne_verbosity=0
1855fi;
1856
1857cat >>confdefs.h <<_ACEOF
1858#define COIN_COUENNE_VERBOSITY $coin_couenne_verbosity
1859_ACEOF
1860
1861
1862
1863# Check whether --with-couenne-checklevel or --without-couenne-checklevel was given.
1864if test "${with_couenne_checklevel+set}" = set; then
1865  withval="$with_couenne_checklevel"
1866  if test "$withval" = yes; then
1867                withval=1
1868              fi
1869              coin_couenne_checklevel=$withval
1870else
1871  coin_couenne_checklevel=0
1872fi;
1873
1874cat >>confdefs.h <<_ACEOF
1875#define COIN_COUENNE_CHECKLEVEL $coin_couenne_checklevel
1876_ACEOF
1877
1878
1879# We use the following variable to have a string with the upper case
1880# version of the project name
1881COIN_PRJCT=COUENNE
1882
1883
1884 # m4_ifvaln([Couenne],
1885
1886
1887
1888# Get the name of the C++ compiler and appropriate compiler options
1889case $build in
1890  *-mingw*)
1891    if test "${LD+set}" = set; then :; else
1892      LD=link
1893    fi
1894    ;;
1895 esac
1896 case $enable_doscompile in
1897   msvc)
1898     if test "x${LD+set}" = xset; then :; else
1899       LD=link
1900     fi
1901     ;;
1902 esac
1903
1904
1905 # Check whether --enable-doscompile or --disable-doscompile was given.
1906if test "${enable_doscompile+set}" = set; then
1907  enableval="$enable_doscompile"
1908  if test "$enable_doscompile" != no; then
1909     case $build in
1910       *-cygwin* | *-mingw*) ;;
1911       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1912echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1913   { (exit 1); exit 1; }; } ;;
1914     esac
1915   fi
1916else
1917  enable_doscompile=no
1918fi;
1919 case "$enable_doscompile" in
1920   mingw)
1921     case $build in
1922       *-mingw*) enable_doscompile=no ;;
1923     esac
1924     ;;
1925   msvc|no) ;;
1926   yes) enable_doscompile=mingw ;;
1927   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1928                    Try configure --help=recursive." >&5
1929echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1930                    Try configure --help=recursive." >&2;}
1931   { (exit 1); exit 1; }; }
1932      ;;
1933  esac
1934  if test "$enable_doscompile" != no ; then
1935    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1936echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1937  fi
1938
1939
1940
1941
1942ac_ext=c
1943ac_cpp='$CPP $CPPFLAGS'
1944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1946ac_compiler_gnu=$ac_cv_c_compiler_gnu
1947
1948
1949# For consistency, we set the C compiler to the same value of the C++
1950# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1951if test x"$CXX" != x; then
1952  case "$CXX" in
1953    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1954      if test x"$CC" = x; then
1955        CC="$CXX"
1956        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1957echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1958      fi
1959      ;;
1960  esac
1961fi
1962
1963# add automake conditional so we can recognize cl compiler in makefile
1964coin_cc_is_cl=false
1965if test x"$CXX" != x; then
1966  case "$CXX" in
1967    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1968      coin_cc_is_cl=true
1969      ;;
1970  esac
1971fi
1972
1973
1974if test $coin_cc_is_cl = true; then
1975  COIN_CC_IS_CL_TRUE=
1976  COIN_CC_IS_CL_FALSE='#'
1977else
1978  COIN_CC_IS_CL_TRUE='#'
1979  COIN_CC_IS_CL_FALSE=
1980fi
1981
1982
1983
1984
1985
1986
1987
1988coin_has_cc=yes
1989
1990save_cflags="$CFLAGS"
1991
1992# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1993# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1994# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1995# compiler. In this case, put cc after gcc.
1996
1997case $build in
1998  *-cygwin* | *-mingw*)
1999             if test "$enable_doscompile" = msvc ; then
2000               comps="icl cl"
2001             else
2002               comps="gcc cl"
2003             fi ;;
2004  *-*-solaris*)
2005             # Extract the first word of "cc", so it can be a program name with args.
2006set dummy cc; ac_word=$2
2007echo "$as_me:$LINENO: checking for $ac_word" >&5
2008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2010  echo $ECHO_N "(cached) $ECHO_C" >&6
2011else
2012  if test -n "$sol_cc_compiler"; then
2013  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2014else
2015  ac_prog_rejected=no
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019  IFS=$as_save_IFS
2020  test -z "$as_dir" && as_dir=.
2021  for ac_exec_ext in '' $ac_executable_extensions; do
2022  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2024       ac_prog_rejected=yes
2025       continue
2026     fi
2027    ac_cv_prog_sol_cc_compiler="cc"
2028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029    break 2
2030  fi
2031done
2032done
2033
2034if test $ac_prog_rejected = yes; then
2035  # We found a bogon in the path, so make sure we never use it.
2036  set dummy $ac_cv_prog_sol_cc_compiler
2037  shift
2038  if test $# != 0; then
2039    # We chose a different compiler from the bogus one.
2040    # However, it has the same basename, so the bogon will be chosen
2041    # first if we set sol_cc_compiler to just the basename; use the full file name.
2042    shift
2043    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2044  fi
2045fi
2046fi
2047fi
2048sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2049if test -n "$sol_cc_compiler"; then
2050  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2051echo "${ECHO_T}$sol_cc_compiler" >&6
2052else
2053  echo "$as_me:$LINENO: result: no" >&5
2054echo "${ECHO_T}no" >&6
2055fi
2056
2057             if test "$sol_cc_compiler" = "cc" ; then
2058               comps="cc xlc gcc pgcc icc"
2059             else
2060               comps="xlc gcc pgcc icc cc"
2061             fi
2062             ;;
2063  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2064  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2065  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2066esac
2067
2068# We delete the cached value, since the test might not have been
2069# performed with our choice of compilers earlier
2070$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2071# AC_MSG_NOTICE([C compiler candidates: $comps])
2072ac_ext=c
2073ac_cpp='$CPP $CPPFLAGS'
2074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2076ac_compiler_gnu=$ac_cv_c_compiler_gnu
2077if test -n "$ac_tool_prefix"; then
2078  for ac_prog in $comps
2079  do
2080    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2081set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2082echo "$as_me:$LINENO: checking for $ac_word" >&5
2083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2084if test "${ac_cv_prog_CC+set}" = set; then
2085  echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087  if test -n "$CC"; then
2088  ac_cv_prog_CC="$CC" # Let the user override the test.
2089else
2090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2091for as_dir in $PATH
2092do
2093  IFS=$as_save_IFS
2094  test -z "$as_dir" && as_dir=.
2095  for ac_exec_ext in '' $ac_executable_extensions; do
2096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2097    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2099    break 2
2100  fi
2101done
2102done
2103
2104fi
2105fi
2106CC=$ac_cv_prog_CC
2107if test -n "$CC"; then
2108  echo "$as_me:$LINENO: result: $CC" >&5
2109echo "${ECHO_T}$CC" >&6
2110else
2111  echo "$as_me:$LINENO: result: no" >&5
2112echo "${ECHO_T}no" >&6
2113fi
2114
2115    test -n "$CC" && break
2116  done
2117fi
2118if test -z "$CC"; then
2119  ac_ct_CC=$CC
2120  for ac_prog in $comps
2121do
2122  # Extract the first word of "$ac_prog", so it can be a program name with args.
2123set dummy $ac_prog; ac_word=$2
2124echo "$as_me:$LINENO: checking for $ac_word" >&5
2125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2126if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2127  echo $ECHO_N "(cached) $ECHO_C" >&6
2128else
2129  if test -n "$ac_ct_CC"; then
2130  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2131else
2132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2133for as_dir in $PATH
2134do
2135  IFS=$as_save_IFS
2136  test -z "$as_dir" && as_dir=.
2137  for ac_exec_ext in '' $ac_executable_extensions; do
2138  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2139    ac_cv_prog_ac_ct_CC="$ac_prog"
2140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141    break 2
2142  fi
2143done
2144done
2145
2146fi
2147fi
2148ac_ct_CC=$ac_cv_prog_ac_ct_CC
2149if test -n "$ac_ct_CC"; then
2150  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2151echo "${ECHO_T}$ac_ct_CC" >&6
2152else
2153  echo "$as_me:$LINENO: result: no" >&5
2154echo "${ECHO_T}no" >&6
2155fi
2156
2157  test -n "$ac_ct_CC" && break
2158done
2159
2160  CC=$ac_ct_CC
2161fi
2162
2163
2164test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: no acceptable C compiler found in \$PATH
2167See \`config.log' for more details." >&2;}
2168   { (exit 1); exit 1; }; }
2169
2170# Provide some information about the compiler.
2171echo "$as_me:$LINENO:" \
2172     "checking for C compiler version" >&5
2173ac_compiler=`set X $ac_compile; echo $2`
2174{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2175  (eval $ac_compiler --version </dev/null >&5) 2>&5
2176  ac_status=$?
2177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178  (exit $ac_status); }
2179{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2180  (eval $ac_compiler -v </dev/null >&5) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }
2184{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2185  (eval $ac_compiler -V </dev/null >&5) 2>&5
2186  ac_status=$?
2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188  (exit $ac_status); }
2189
2190cat >conftest.$ac_ext <<_ACEOF
2191/* confdefs.h.  */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h.  */
2196
2197int
2198main ()
2199{
2200
2201  ;
2202  return 0;
2203}
2204_ACEOF
2205ac_clean_files_save=$ac_clean_files
2206ac_clean_files="$ac_clean_files a.out a.exe b.out"
2207# Try to create an executable without -o first, disregard a.out.
2208# It will help us diagnose broken compilers, and finding out an intuition
2209# of exeext.
2210echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2211echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2212ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2213if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2214  (eval $ac_link_default) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }; then
2218  # Find the output, starting from the most likely.  This scheme is
2219# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2220# resort.
2221
2222# Be careful to initialize this variable, since it used to be cached.
2223# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2224ac_cv_exeext=
2225# b.out is created by i960 compilers.
2226for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2227do
2228  test -f "$ac_file" || continue
2229  case $ac_file in
2230    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2231        ;;
2232    conftest.$ac_ext )
2233        # This is the source file.
2234        ;;
2235    [ab].out )
2236        # We found the default executable, but exeext='' is most
2237        # certainly right.
2238        break;;
2239    *.* )
2240        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2241        # FIXME: I believe we export ac_cv_exeext for Libtool,
2242        # but it would be cool to find out if it's true.  Does anybody
2243        # maintain Libtool? --akim.
2244        export ac_cv_exeext
2245        break;;
2246    * )
2247        break;;
2248  esac
2249done
2250else
2251  echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2255See \`config.log' for more details." >&5
2256echo "$as_me: error: C compiler cannot create executables
2257See \`config.log' for more details." >&2;}
2258   { (exit 77); exit 77; }; }
2259fi
2260
2261ac_exeext=$ac_cv_exeext
2262echo "$as_me:$LINENO: result: $ac_file" >&5
2263echo "${ECHO_T}$ac_file" >&6
2264
2265# Check the compiler produces executables we can run.  If not, either
2266# the compiler is broken, or we cross compile.
2267echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2268echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2269# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2270# If not cross compiling, check that we can run a simple program.
2271if test "$cross_compiling" != yes; then
2272  if { ac_try='./$ac_file'
2273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274  (eval $ac_try) 2>&5
2275  ac_status=$?
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); }; }; then
2278    cross_compiling=no
2279  else
2280    if test "$cross_compiling" = maybe; then
2281        cross_compiling=yes
2282    else
2283        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2284If you meant to cross compile, use \`--host'.
2285See \`config.log' for more details." >&5
2286echo "$as_me: error: cannot run C compiled programs.
2287If you meant to cross compile, use \`--host'.
2288See \`config.log' for more details." >&2;}
2289   { (exit 1); exit 1; }; }
2290    fi
2291  fi
2292fi
2293echo "$as_me:$LINENO: result: yes" >&5
2294echo "${ECHO_T}yes" >&6
2295
2296rm -f a.out a.exe conftest$ac_cv_exeext b.out
2297ac_clean_files=$ac_clean_files_save
2298# Check the compiler produces executables we can run.  If not, either
2299# the compiler is broken, or we cross compile.
2300echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2301echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2302echo "$as_me:$LINENO: result: $cross_compiling" >&5
2303echo "${ECHO_T}$cross_compiling" >&6
2304
2305echo "$as_me:$LINENO: checking for suffix of executables" >&5
2306echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2308  (eval $ac_link) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }; then
2312  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2313# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2314# work properly (i.e., refer to `conftest.exe'), while it won't with
2315# `rm'.
2316for ac_file in conftest.exe conftest conftest.*; do
2317  test -f "$ac_file" || continue
2318  case $ac_file in
2319    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2320    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2321          export ac_cv_exeext
2322          break;;
2323    * ) break;;
2324  esac
2325done
2326else
2327  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2330See \`config.log' for more details." >&2;}
2331   { (exit 1); exit 1; }; }
2332fi
2333
2334rm -f conftest$ac_cv_exeext
2335echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2336echo "${ECHO_T}$ac_cv_exeext" >&6
2337
2338rm -f conftest.$ac_ext
2339EXEEXT=$ac_cv_exeext
2340ac_exeext=$EXEEXT
2341echo "$as_me:$LINENO: checking for suffix of object files" >&5
2342echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2343if test "${ac_cv_objext+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  cat >conftest.$ac_ext <<_ACEOF
2347/* confdefs.h.  */
2348_ACEOF
2349cat confdefs.h >>conftest.$ac_ext
2350cat >>conftest.$ac_ext <<_ACEOF
2351/* end confdefs.h.  */
2352
2353int
2354main ()
2355{
2356
2357  ;
2358  return 0;
2359}
2360_ACEOF
2361rm -f conftest.o conftest.obj
2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2363  (eval $ac_compile) 2>&5
2364  ac_status=$?
2365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366  (exit $ac_status); }; then
2367  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2368  case $ac_file in
2369    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2370    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2371       break;;
2372  esac
2373done
2374else
2375  echo "$as_me: failed program was:" >&5
2376sed 's/^/| /' conftest.$ac_ext >&5
2377
2378{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2379See \`config.log' for more details." >&5
2380echo "$as_me: error: cannot compute suffix of object files: cannot compile
2381See \`config.log' for more details." >&2;}
2382   { (exit 1); exit 1; }; }
2383fi
2384
2385rm -f conftest.$ac_cv_objext conftest.$ac_ext
2386fi
2387echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2388echo "${ECHO_T}$ac_cv_objext" >&6
2389OBJEXT=$ac_cv_objext
2390ac_objext=$OBJEXT
2391echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2392echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2393if test "${ac_cv_c_compiler_gnu+set}" = set; then
2394  echo $ECHO_N "(cached) $ECHO_C" >&6
2395else
2396  cat >conftest.$ac_ext <<_ACEOF
2397/* confdefs.h.  */
2398_ACEOF
2399cat confdefs.h >>conftest.$ac_ext
2400cat >>conftest.$ac_ext <<_ACEOF
2401/* end confdefs.h.  */
2402
2403int
2404main ()
2405{
2406#ifndef __GNUC__
2407       choke me
2408#endif
2409
2410  ;
2411  return 0;
2412}
2413_ACEOF
2414rm -f conftest.$ac_objext
2415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2416  (eval $ac_compile) 2>conftest.er1
2417  ac_status=$?
2418  grep -v '^ *+' conftest.er1 >conftest.err
2419  rm -f conftest.er1
2420  cat conftest.err >&5
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); } &&
2423         { ac_try='test -z "$ac_c_werror_flag"
2424                         || test ! -s conftest.err'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; } &&
2430         { ac_try='test -s conftest.$ac_objext'
2431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432  (eval $ac_try) 2>&5
2433  ac_status=$?
2434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435  (exit $ac_status); }; }; then
2436  ac_compiler_gnu=yes
2437else
2438  echo "$as_me: failed program was:" >&5
2439sed 's/^/| /' conftest.$ac_ext >&5
2440
2441ac_compiler_gnu=no
2442fi
2443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444ac_cv_c_compiler_gnu=$ac_compiler_gnu
2445
2446fi
2447echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2448echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2449GCC=`test $ac_compiler_gnu = yes && echo yes`
2450ac_test_CFLAGS=${CFLAGS+set}
2451ac_save_CFLAGS=$CFLAGS
2452CFLAGS="-g"
2453echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2454echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2455if test "${ac_cv_prog_cc_g+set}" = set; then
2456  echo $ECHO_N "(cached) $ECHO_C" >&6
2457else
2458  cat >conftest.$ac_ext <<_ACEOF
2459/* confdefs.h.  */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h.  */
2464
2465int
2466main ()
2467{
2468
2469  ;
2470  return 0;
2471}
2472_ACEOF
2473rm -f conftest.$ac_objext
2474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475  (eval $ac_compile) 2>conftest.er1
2476  ac_status=$?
2477  grep -v '^ *+' conftest.er1 >conftest.err
2478  rm -f conftest.er1
2479  cat conftest.err >&5
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); } &&
2482         { ac_try='test -z "$ac_c_werror_flag"
2483                         || test ! -s conftest.err'
2484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485  (eval $ac_try) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; } &&
2489         { ac_try='test -s conftest.$ac_objext'
2490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491  (eval $ac_try) 2>&5
2492  ac_status=$?
2493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494  (exit $ac_status); }; }; then
2495  ac_cv_prog_cc_g=yes
2496else
2497  echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500ac_cv_prog_cc_g=no
2501fi
2502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2503fi
2504echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2505echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2506if test "$ac_test_CFLAGS" = set; then
2507  CFLAGS=$ac_save_CFLAGS
2508elif test $ac_cv_prog_cc_g = yes; then
2509  if test "$GCC" = yes; then
2510    CFLAGS="-g -O2"
2511  else
2512    CFLAGS="-g"
2513  fi
2514else
2515  if test "$GCC" = yes; then
2516    CFLAGS="-O2"
2517  else
2518    CFLAGS=
2519  fi
2520fi
2521echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2522echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2523if test "${ac_cv_prog_cc_stdc+set}" = set; then
2524  echo $ECHO_N "(cached) $ECHO_C" >&6
2525else
2526  ac_cv_prog_cc_stdc=no
2527ac_save_CC=$CC
2528cat >conftest.$ac_ext <<_ACEOF
2529/* confdefs.h.  */
2530_ACEOF
2531cat confdefs.h >>conftest.$ac_ext
2532cat >>conftest.$ac_ext <<_ACEOF
2533/* end confdefs.h.  */
2534#include <stdarg.h>
2535#include <stdio.h>
2536#include <sys/types.h>
2537#include <sys/stat.h>
2538/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2539struct buf { int x; };
2540FILE * (*rcsopen) (struct buf *, struct stat *, int);
2541static char *e (p, i)
2542     char **p;
2543     int i;
2544{
2545  return p[i];
2546}
2547static char *f (char * (*g) (char **, int), char **p, ...)
2548{
2549  char *s;
2550  va_list v;
2551  va_start (v,p);
2552  s = g (p, va_arg (v,int));
2553  va_end (v);
2554  return s;
2555}
2556
2557/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2558   function prototypes and stuff, but not '\xHH' hex character constants.
2559   These don't provoke an error unfortunately, instead are silently treated
2560   as 'x'.  The following induces an error, until -std1 is added to get
2561   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2562   array size at least.  It's necessary to write '\x00'==0 to get something
2563   that's true only with -std1.  */
2564int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2565
2566int test (int i, double x);
2567struct s1 {int (*f) (int a);};
2568struct s2 {int (*f) (double a);};
2569int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2570int argc;
2571char **argv;
2572int
2573main ()
2574{
2575return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2576  ;
2577  return 0;
2578}
2579_ACEOF
2580# Don't try gcc -ansi; that turns off useful extensions and
2581# breaks some systems' header files.
2582# AIX                   -qlanglvl=ansi
2583# Ultrix and OSF/1      -std1
2584# HP-UX 10.20 and later -Ae
2585# HP-UX older versions  -Aa -D_HPUX_SOURCE
2586# SVR4                  -Xc -D__EXTENSIONS__
2587for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2588do
2589  CC="$ac_save_CC $ac_arg"
2590  rm -f conftest.$ac_objext
2591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592  (eval $ac_compile) 2>conftest.er1
2593  ac_status=$?
2594  grep -v '^ *+' conftest.er1 >conftest.err
2595  rm -f conftest.er1
2596  cat conftest.err >&5
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); } &&
2599         { ac_try='test -z "$ac_c_werror_flag"
2600                         || test ! -s conftest.err'
2601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602  (eval $ac_try) 2>&5
2603  ac_status=$?
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }; } &&
2606         { ac_try='test -s conftest.$ac_objext'
2607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608  (eval $ac_try) 2>&5
2609  ac_status=$?
2610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611  (exit $ac_status); }; }; then
2612  ac_cv_prog_cc_stdc=$ac_arg
2613break
2614else
2615  echo "$as_me: failed program was:" >&5
2616sed 's/^/| /' conftest.$ac_ext >&5
2617
2618fi
2619rm -f conftest.err conftest.$ac_objext
2620done
2621rm -f conftest.$ac_ext conftest.$ac_objext
2622CC=$ac_save_CC
2623
2624fi
2625
2626case "x$ac_cv_prog_cc_stdc" in
2627  x|xno)
2628    echo "$as_me:$LINENO: result: none needed" >&5
2629echo "${ECHO_T}none needed" >&6 ;;
2630  *)
2631    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2632echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2633    CC="$CC $ac_cv_prog_cc_stdc" ;;
2634esac
2635
2636# Some people use a C++ compiler to compile C.  Since we use `exit',
2637# in C++ we need to declare it.  In case someone uses the same compiler
2638# for both compiling C and C++ we need to have the C++ compiler decide
2639# the declaration of exit, since it's the most demanding environment.
2640cat >conftest.$ac_ext <<_ACEOF
2641#ifndef __cplusplus
2642  choke me
2643#endif
2644_ACEOF
2645rm -f conftest.$ac_objext
2646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2647  (eval $ac_compile) 2>conftest.er1
2648  ac_status=$?
2649  grep -v '^ *+' conftest.er1 >conftest.err
2650  rm -f conftest.er1
2651  cat conftest.err >&5
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); } &&
2654         { ac_try='test -z "$ac_c_werror_flag"
2655                         || test ! -s conftest.err'
2656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657  (eval $ac_try) 2>&5
2658  ac_status=$?
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); }; } &&
2661         { ac_try='test -s conftest.$ac_objext'
2662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663  (eval $ac_try) 2>&5
2664  ac_status=$?
2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666  (exit $ac_status); }; }; then
2667  for ac_declaration in \
2668   '' \
2669   'extern "C" void std::exit (int) throw (); using std::exit;' \
2670   'extern "C" void std::exit (int); using std::exit;' \
2671   'extern "C" void exit (int) throw ();' \
2672   'extern "C" void exit (int);' \
2673   'void exit (int);'
2674do
2675  cat >conftest.$ac_ext <<_ACEOF
2676/* confdefs.h.  */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h.  */
2681$ac_declaration
2682#include <stdlib.h>
2683int
2684main ()
2685{
2686exit (42);
2687  ;
2688  return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693  (eval $ac_compile) 2>conftest.er1
2694  ac_status=$?
2695  grep -v '^ *+' conftest.er1 >conftest.err
2696  rm -f conftest.er1
2697  cat conftest.err >&5
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); } &&
2700         { ac_try='test -z "$ac_c_werror_flag"
2701                         || test ! -s conftest.err'
2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703  (eval $ac_try) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; } &&
2707         { ac_try='test -s conftest.$ac_objext'
2708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709  (eval $ac_try) 2>&5
2710  ac_status=$?
2711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712  (exit $ac_status); }; }; then
2713  :
2714else
2715  echo "$as_me: failed program was:" >&5
2716sed 's/^/| /' conftest.$ac_ext >&5
2717
2718continue
2719fi
2720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721  cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h.  */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h.  */
2727$ac_declaration
2728int
2729main ()
2730{
2731exit (42);
2732  ;
2733  return 0;
2734}
2735_ACEOF
2736rm -f conftest.$ac_objext
2737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738  (eval $ac_compile) 2>conftest.er1
2739  ac_status=$?
2740  grep -v '^ *+' conftest.er1 >conftest.err
2741  rm -f conftest.er1
2742  cat conftest.err >&5
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); } &&
2745         { ac_try='test -z "$ac_c_werror_flag"
2746                         || test ! -s conftest.err'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; } &&
2752         { ac_try='test -s conftest.$ac_objext'
2753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754  (eval $ac_try) 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; }; then
2758  break
2759else
2760  echo "$as_me: failed program was:" >&5
2761sed 's/^/| /' conftest.$ac_ext >&5
2762
2763fi
2764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765done
2766rm -f conftest*
2767if test -n "$ac_declaration"; then
2768  echo '#ifdef __cplusplus' >>confdefs.h
2769  echo $ac_declaration      >>confdefs.h
2770  echo '#endif'             >>confdefs.h
2771fi
2772
2773else
2774  echo "$as_me: failed program was:" >&5
2775sed 's/^/| /' conftest.$ac_ext >&5
2776
2777fi
2778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2779ac_ext=c
2780ac_cpp='$CPP $CPPFLAGS'
2781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2783ac_compiler_gnu=$ac_cv_c_compiler_gnu
2784
2785if test -z "$CC" ; then
2786  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2787echo "$as_me: error: Failed to find a C compiler!" >&2;}
2788   { (exit 1); exit 1; }; }
2789fi
2790# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2791case "$CC" in
2792  cl* | */cl* | CL* | */CL* )
2793    if test "$ac_cv_prog_cc_g" = yes ; then
2794      ac_cv_prog_cc_g=no
2795      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2796echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2797    fi ;;
2798esac
2799CFLAGS="$save_cflags"
2800
2801# Check if a project specific CFLAGS variable has been set
2802if test x$COIN_PRJCT != x; then
2803  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2804  if test x$coin_tmp = xset; then
2805    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2806  fi
2807fi
2808
2809if test x"$CFLAGS" = x; then
2810
2811  coin_add_cflags=
2812  coin_opt_cflags=
2813  coin_dbg_cflags=
2814  coin_warn_cflags=
2815
2816  if test "$GCC" = "yes"; then
2817    case "$CC" in
2818      icc* | */icc*)
2819        ;;
2820      *)
2821        coin_opt_cflags="-O3"
2822        coin_add_cflags="-pipe"
2823        coin_dbg_cflags="-g"
2824        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2825        case $build in
2826          *-darwin*)
2827            ;;
2828          *)
2829            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2830            ;;
2831        esac
2832        case $enable_doscompile in
2833          mingw)
2834            CFLAGS="-mno-cygwin"
2835            cat >conftest.$ac_ext <<_ACEOF
2836/* confdefs.h.  */
2837_ACEOF
2838cat confdefs.h >>conftest.$ac_ext
2839cat >>conftest.$ac_ext <<_ACEOF
2840/* end confdefs.h.  */
2841
2842int
2843main ()
2844{
2845int i=0; i++;
2846  ;
2847  return 0;
2848}
2849_ACEOF
2850rm -f conftest.$ac_objext conftest$ac_exeext
2851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2852  (eval $ac_link) 2>conftest.er1
2853  ac_status=$?
2854  grep -v '^ *+' conftest.er1 >conftest.err
2855  rm -f conftest.er1
2856  cat conftest.err >&5
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); } &&
2859         { ac_try='test -z "$ac_c_werror_flag"
2860                         || test ! -s conftest.err'
2861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862  (eval $ac_try) 2>&5
2863  ac_status=$?
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); }; } &&
2866         { ac_try='test -s conftest$ac_exeext'
2867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868  (eval $ac_try) 2>&5
2869  ac_status=$?
2870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871  (exit $ac_status); }; }; then
2872  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2873else
2874  echo "$as_me: failed program was:" >&5
2875sed 's/^/| /' conftest.$ac_ext >&5
2876
2877fi
2878rm -f conftest.err conftest.$ac_objext \
2879      conftest$ac_exeext conftest.$ac_ext
2880            CFLAGS=
2881          ;;
2882        esac
2883    esac
2884  fi
2885  if test -z "$coin_opt_cflags"; then
2886    case $build in
2887      *-cygwin* | *-mingw*)
2888        case "$CC" in
2889          cl* | */cl* | CL* | */CL*)
2890            coin_opt_cflags='-MT -O2'
2891            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2892            coin_dbg_cflags='-MTd'
2893            ;;
2894          icl* | */icl* | ICL* | */ICL*)
2895            coin_opt_cflags='-MT -Ox'
2896            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2897            coin_dbg_cflags='-MTd -debug'
2898            ;;
2899        esac
2900        ;;
2901      *-linux-*)
2902        case "$CC" in
2903          icc* | */icc*)
2904            coin_opt_cflags="-O3 -ip -mp1"
2905            coin_add_cflags=""
2906            coin_dbg_cflags="-g"
2907            # Check if -i_dynamic is necessary (for new glibc library)
2908            CFLAGS=
2909            cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h.  */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h.  */
2915
2916int
2917main ()
2918{
2919int i=0; i++;
2920  ;
2921  return 0;
2922}
2923_ACEOF
2924rm -f conftest.$ac_objext conftest$ac_exeext
2925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926  (eval $ac_link) 2>conftest.er1
2927  ac_status=$?
2928  grep -v '^ *+' conftest.er1 >conftest.err
2929  rm -f conftest.er1
2930  cat conftest.err >&5
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); } &&
2933         { ac_try='test -z "$ac_c_werror_flag"
2934                         || test ! -s conftest.err'
2935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936  (eval $ac_try) 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }; } &&
2940         { ac_try='test -s conftest$ac_exeext'
2941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942  (eval $ac_try) 2>&5
2943  ac_status=$?
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); }; }; then
2946  :
2947else
2948  echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951coin_add_cflags="-i_dynamic $coin_add_cflags"
2952fi
2953rm -f conftest.err conftest.$ac_objext \
2954      conftest$ac_exeext conftest.$ac_ext
2955            ;;
2956          pgcc* | */pgcc*)
2957            coin_opt_cflags="-fast"
2958            coin_add_cflags="-Kieee -pc 64"
2959            coin_dbg_cflags="-g"
2960            ;;
2961        esac
2962        ;;
2963      *-ibm-*)
2964        case "$CC" in
2965          xlc* | */xlc* | mpxlc* | */mpxlc*)
2966            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2967            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2968            coin_dbg_cflags="-g"
2969          ;;
2970        esac
2971        ;;
2972      *-hp-*)
2973        coin_opt_cflags="-O"
2974        coin_add_cflags="-Ae"
2975        coin_dbg_cflags="-g"
2976        ;;
2977      *-*-solaris*)
2978        coin_opt_cflags="-xO4"
2979        coin_dbg_cflags="-g"
2980        ;;
2981      *-sgi-*)
2982        coin_opt_cflags="-O -OPT:Olimit=0"
2983        coin_dbg_cflags="-g"
2984        ;;
2985    esac
2986  fi
2987
2988  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2989    coin_dbg_cflags="-g"
2990  fi
2991
2992  if test -z "$coin_opt_cflags"; then
2993    # Try if -O option works if nothing else is set
2994    CFLAGS="-O"
2995    cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h.  */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h.  */
3001
3002int
3003main ()
3004{
3005int i=0; i++;
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010rm -f conftest.$ac_objext conftest$ac_exeext
3011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3012  (eval $ac_link) 2>conftest.er1
3013  ac_status=$?
3014  grep -v '^ *+' conftest.er1 >conftest.err
3015  rm -f conftest.er1
3016  cat conftest.err >&5
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); } &&
3019         { ac_try='test -z "$ac_c_werror_flag"
3020                         || test ! -s conftest.err'
3021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022  (eval $ac_try) 2>&5
3023  ac_status=$?
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }; } &&
3026         { ac_try='test -s conftest$ac_exeext'
3027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3028  (eval $ac_try) 2>&5
3029  ac_status=$?
3030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031  (exit $ac_status); }; }; then
3032  coin_opt_cflags="-O"
3033else
3034  echo "$as_me: failed program was:" >&5
3035sed 's/^/| /' conftest.$ac_ext >&5
3036
3037fi
3038rm -f conftest.err conftest.$ac_objext \
3039      conftest$ac_exeext conftest.$ac_ext
3040  fi
3041
3042  # if PM doesn't want the warning messages, take them out
3043  if test x"$coin_skip_warn_cflags" = xyes; then
3044    coin_warn_cflags=
3045  fi
3046
3047  if test x${DBG_CFLAGS+set} != xset; then
3048    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3049  fi
3050  if test x${OPT_CFLAGS+set} != xset; then
3051    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3052  fi
3053
3054  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3055  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3056
3057  if test "$coin_debug_compile" = "true"; then
3058    CFLAGS="$DBG_CFLAGS"
3059  else
3060    CFLAGS="$OPT_CFLAGS"
3061  fi
3062else
3063  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3064  if test x${DBG_CFLAGS+set} != xset; then
3065    DBG_CFLAGS="$CFLAGS"
3066  fi
3067  if test x${OPT_CFLAGS+set} != xset; then
3068    OPT_CFLAGS="$CFLAGS"
3069  fi
3070fi
3071
3072# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3073
3074case "$CFLAGS" in
3075  *-mno-cygwin*)
3076    if test x${CPPFLAGS+set} != xset ; then
3077      CPPFLAGS="-mno-cygwin"
3078    else
3079      case "$CPPFLAGS" in
3080        *-mno-cygwin*)
3081          ;;
3082        *)
3083          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3084          ;;
3085      esac
3086    fi ;;
3087esac
3088
3089# Try if CFLAGS works
3090save_CFLAGS="$CFLAGS"
3091cat >conftest.$ac_ext <<_ACEOF
3092/* confdefs.h.  */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h.  */
3097
3098int
3099main ()
3100{
3101int i=0; i++;
3102  ;
3103  return 0;
3104}
3105_ACEOF
3106rm -f conftest.$ac_objext conftest$ac_exeext
3107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3108  (eval $ac_link) 2>conftest.er1
3109  ac_status=$?
3110  grep -v '^ *+' conftest.er1 >conftest.err
3111  rm -f conftest.er1
3112  cat conftest.err >&5
3113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114  (exit $ac_status); } &&
3115         { ac_try='test -z "$ac_c_werror_flag"
3116                         || test ! -s conftest.err'
3117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118  (eval $ac_try) 2>&5
3119  ac_status=$?
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); }; } &&
3122         { ac_try='test -s conftest$ac_exeext'
3123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124  (eval $ac_try) 2>&5
3125  ac_status=$?
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); }; }; then
3128  :
3129else
3130  echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133CFLAGS=
3134fi
3135rm -f conftest.err conftest.$ac_objext \
3136      conftest$ac_exeext conftest.$ac_ext
3137if test -z "$CFLAGS"; then
3138  { 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
3139echo "$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;}
3140  CFLAGS='-O'
3141  cat >conftest.$ac_ext <<_ACEOF
3142/* confdefs.h.  */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h.  */
3147
3148int
3149main ()
3150{
3151int i=0; i++;
3152  ;
3153  return 0;
3154}
3155_ACEOF
3156rm -f conftest.$ac_objext conftest$ac_exeext
3157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3158  (eval $ac_link) 2>conftest.er1
3159  ac_status=$?
3160  grep -v '^ *+' conftest.er1 >conftest.err
3161  rm -f conftest.er1
3162  cat conftest.err >&5
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); } &&
3165         { ac_try='test -z "$ac_c_werror_flag"
3166                         || test ! -s conftest.err'
3167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168  (eval $ac_try) 2>&5
3169  ac_status=$?
3170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171  (exit $ac_status); }; } &&
3172         { ac_try='test -s conftest$ac_exeext'
3173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174  (eval $ac_try) 2>&5
3175  ac_status=$?
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); }; }; then
3178  :
3179else
3180  echo "$as_me: failed program was:" >&5
3181sed 's/^/| /' conftest.$ac_ext >&5
3182
3183CFLAGS=
3184fi
3185rm -f conftest.err conftest.$ac_objext \
3186      conftest$ac_exeext conftest.$ac_ext
3187  if test -z "$CFLAGS"; then
3188    { 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
3189echo "$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;}
3190  fi
3191fi
3192
3193{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3194echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3195
3196
3197if test x"$MPICC" = x; then :; else
3198  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3199echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3200  CC="$MPICC"
3201fi
3202
3203# Correct the LD variable if we are using the MS or Intel-windows compiler
3204case "$CC" in
3205  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3206    case $build in
3207  *-mingw*)
3208    if test "${LD+set}" = set; then :; else
3209      LD=link
3210    fi
3211    ;;
3212 esac
3213 case $enable_doscompile in
3214   msvc)
3215     if test "x${LD+set}" = xset; then :; else
3216       LD=link
3217     fi
3218     ;;
3219 esac
3220
3221    ;;
3222esac
3223
3224ac_ext=c
3225ac_cpp='$CPP $CPPFLAGS'
3226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3228ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229
3230
3231
3232 #Let's try if that overcomes configuration problem with VC++ 6.0
3233
3234ac_ext=cc
3235ac_cpp='$CXXCPP $CPPFLAGS'
3236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3239
3240
3241
3242
3243
3244
3245
3246coin_has_cxx=yes
3247
3248save_cxxflags="$CXXFLAGS"
3249# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3250case $build in
3251  *-cygwin* | *-mingw*)
3252             if test "$enable_doscompile" = msvc ; then
3253               comps="icl cl"
3254             else
3255               comps="g++ cl"
3256             fi ;;
3257  *-*-solaris*)
3258             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3259  *-darwin*) comps="g++ c++ CC" ;;
3260  *-linux-gnu*)
3261             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3262          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3263esac
3264
3265# We delete the cached value, since the test might not have been
3266# performed with our choice of compilers earlier
3267$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3268# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3269ac_ext=cc
3270ac_cpp='$CXXCPP $CPPFLAGS'
3271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3274if test -n "$ac_tool_prefix"; then
3275  for ac_prog in $CCC $comps
3276  do
3277    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3278set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3279echo "$as_me:$LINENO: checking for $ac_word" >&5
3280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3281if test "${ac_cv_prog_CXX+set}" = set; then
3282  echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284  if test -n "$CXX"; then
3285  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3286else
3287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288for as_dir in $PATH
3289do
3290  IFS=$as_save_IFS
3291  test -z "$as_dir" && as_dir=.
3292  for ac_exec_ext in '' $ac_executable_extensions; do
3293  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3294    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3296    break 2
3297  fi
3298done
3299done
3300
3301fi
3302fi
3303CXX=$ac_cv_prog_CXX
3304if test -n "$CXX"; then
3305  echo "$as_me:$LINENO: result: $CXX" >&5
3306echo "${ECHO_T}$CXX" >&6
3307else
3308  echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
3310fi
3311
3312    test -n "$CXX" && break
3313  done
3314fi
3315if test -z "$CXX"; then
3316  ac_ct_CXX=$CXX
3317  for ac_prog in $CCC $comps
3318do
3319  # Extract the first word of "$ac_prog", so it can be a program name with args.
3320set dummy $ac_prog; ac_word=$2
3321echo "$as_me:$LINENO: checking for $ac_word" >&5
3322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3323if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3324  echo $ECHO_N "(cached) $ECHO_C" >&6
3325else
3326  if test -n "$ac_ct_CXX"; then
3327  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3328else
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332  IFS=$as_save_IFS
3333  test -z "$as_dir" && as_dir=.
3334  for ac_exec_ext in '' $ac_executable_extensions; do
3335  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336    ac_cv_prog_ac_ct_CXX="$ac_prog"
3337    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338    break 2
3339  fi
3340done
3341done
3342
3343fi
3344fi
3345ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3346if test -n "$ac_ct_CXX"; then
3347  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3348echo "${ECHO_T}$ac_ct_CXX" >&6
3349else
3350  echo "$as_me:$LINENO: result: no" >&5
3351echo "${ECHO_T}no" >&6
3352fi
3353
3354  test -n "$ac_ct_CXX" && break
3355done
3356test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3357
3358  CXX=$ac_ct_CXX
3359fi
3360
3361
3362# Provide some information about the compiler.
3363echo "$as_me:$LINENO:" \
3364     "checking for C++ compiler version" >&5
3365ac_compiler=`set X $ac_compile; echo $2`
3366{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3367  (eval $ac_compiler --version </dev/null >&5) 2>&5
3368  ac_status=$?
3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370  (exit $ac_status); }
3371{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3372  (eval $ac_compiler -v </dev/null >&5) 2>&5
3373  ac_status=$?
3374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375  (exit $ac_status); }
3376{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3377  (eval $ac_compiler -V </dev/null >&5) 2>&5
3378  ac_status=$?
3379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380  (exit $ac_status); }
3381
3382echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3383echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3384if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3385  echo $ECHO_N "(cached) $ECHO_C" >&6
3386else
3387  cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h.  */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h.  */
3393
3394int
3395main ()
3396{
3397#ifndef __GNUC__
3398       choke me
3399#endif
3400
3401  ;
3402  return 0;
3403}
3404_ACEOF
3405rm -f conftest.$ac_objext
3406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3407  (eval $ac_compile) 2>conftest.er1
3408  ac_status=$?
3409  grep -v '^ *+' conftest.er1 >conftest.err
3410  rm -f conftest.er1
3411  cat conftest.err >&5
3412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413  (exit $ac_status); } &&
3414         { ac_try='test -z "$ac_cxx_werror_flag"
3415                         || test ! -s conftest.err'
3416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417  (eval $ac_try) 2>&5
3418  ac_status=$?
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }; } &&
3421         { ac_try='test -s conftest.$ac_objext'
3422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423  (eval $ac_try) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }; }; then
3427  ac_compiler_gnu=yes
3428else
3429  echo "$as_me: failed program was:" >&5
3430sed 's/^/| /' conftest.$ac_ext >&5
3431
3432ac_compiler_gnu=no
3433fi
3434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3435ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3436
3437fi
3438echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3439echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3440GXX=`test $ac_compiler_gnu = yes && echo yes`
3441ac_test_CXXFLAGS=${CXXFLAGS+set}
3442ac_save_CXXFLAGS=$CXXFLAGS
3443CXXFLAGS="-g"
3444echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3445echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3446if test "${ac_cv_prog_cxx_g+set}" = set; then
3447  echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449  cat >conftest.$ac_ext <<_ACEOF
3450/* confdefs.h.  */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h.  */
3455
3456int
3457main ()
3458{
3459
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464rm -f conftest.$ac_objext
3465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466  (eval $ac_compile) 2>conftest.er1
3467  ac_status=$?
3468  grep -v '^ *+' conftest.er1 >conftest.err
3469  rm -f conftest.er1
3470  cat conftest.err >&5
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); } &&
3473         { ac_try='test -z "$ac_cxx_werror_flag"
3474                         || test ! -s conftest.err'
3475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476  (eval $ac_try) 2>&5
3477  ac_status=$?
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); }; } &&
3480         { ac_try='test -s conftest.$ac_objext'
3481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482  (eval $ac_try) 2>&5
3483  ac_status=$?
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); }; }; then
3486  ac_cv_prog_cxx_g=yes
3487else
3488  echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491ac_cv_prog_cxx_g=no
3492fi
3493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494fi
3495echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3496echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3497if test "$ac_test_CXXFLAGS" = set; then
3498  CXXFLAGS=$ac_save_CXXFLAGS
3499elif test $ac_cv_prog_cxx_g = yes; then
3500  if test "$GXX" = yes; then
3501    CXXFLAGS="-g -O2"
3502  else
3503    CXXFLAGS="-g"
3504  fi
3505else
3506  if test "$GXX" = yes; then
3507    CXXFLAGS="-O2"
3508  else
3509    CXXFLAGS=
3510  fi
3511fi
3512for ac_declaration in \
3513   '' \
3514   'extern "C" void std::exit (int) throw (); using std::exit;' \
3515   'extern "C" void std::exit (int); using std::exit;' \
3516   'extern "C" void exit (int) throw ();' \
3517   'extern "C" void exit (int);' \
3518   'void exit (int);'
3519do
3520  cat >conftest.$ac_ext <<_ACEOF
3521/* confdefs.h.  */
3522_ACEOF
3523cat confdefs.h >>conftest.$ac_ext
3524cat >>conftest.$ac_ext <<_ACEOF
3525/* end confdefs.h.  */
3526$ac_declaration
3527#include <stdlib.h>
3528int
3529main ()
3530{
3531exit (42);
3532  ;
3533  return 0;
3534}
3535_ACEOF
3536rm -f conftest.$ac_objext
3537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3538  (eval $ac_compile) 2>conftest.er1
3539  ac_status=$?
3540  grep -v '^ *+' conftest.er1 >conftest.err
3541  rm -f conftest.er1
3542  cat conftest.err >&5
3543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544  (exit $ac_status); } &&
3545         { ac_try='test -z "$ac_cxx_werror_flag"
3546                         || test ! -s conftest.err'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; } &&
3552         { ac_try='test -s conftest.$ac_objext'
3553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3554  (eval $ac_try) 2>&5
3555  ac_status=$?
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); }; }; then
3558  :
3559else
3560  echo "$as_me: failed program was:" >&5
3561sed 's/^/| /' conftest.$ac_ext >&5
3562
3563continue
3564fi
3565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3566  cat >conftest.$ac_ext <<_ACEOF
3567/* confdefs.h.  */
3568_ACEOF
3569cat confdefs.h >>conftest.$ac_ext
3570cat >>conftest.$ac_ext <<_ACEOF
3571/* end confdefs.h.  */
3572$ac_declaration
3573int
3574main ()
3575{
3576exit (42);
3577  ;
3578  return 0;
3579}
3580_ACEOF
3581rm -f conftest.$ac_objext
3582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583  (eval $ac_compile) 2>conftest.er1
3584  ac_status=$?
3585  grep -v '^ *+' conftest.er1 >conftest.err
3586  rm -f conftest.er1
3587  cat conftest.err >&5
3588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589  (exit $ac_status); } &&
3590         { ac_try='test -z "$ac_cxx_werror_flag"
3591                         || test ! -s conftest.err'
3592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593  (eval $ac_try) 2>&5
3594  ac_status=$?
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); }; } &&
3597         { ac_try='test -s conftest.$ac_objext'
3598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599  (eval $ac_try) 2>&5
3600  ac_status=$?
3601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602  (exit $ac_status); }; }; then
3603  break
3604else
3605  echo "$as_me: failed program was:" >&5
3606sed 's/^/| /' conftest.$ac_ext >&5
3607
3608fi
3609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3610done
3611rm -f conftest*
3612if test -n "$ac_declaration"; then
3613  echo '#ifdef __cplusplus' >>confdefs.h
3614  echo $ac_declaration      >>confdefs.h
3615  echo '#endif'             >>confdefs.h
3616fi
3617
3618ac_ext=cc
3619ac_cpp='$CXXCPP $CPPFLAGS'
3620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3623
3624
3625#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3626#thus, we test here whether $CXX is actually working
3627ac_ext=cc
3628ac_cpp='$CXXCPP $CPPFLAGS'
3629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3632
3633echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3634echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3635cat >conftest.$ac_ext <<_ACEOF
3636/* confdefs.h.  */
3637_ACEOF
3638cat confdefs.h >>conftest.$ac_ext
3639cat >>conftest.$ac_ext <<_ACEOF
3640/* end confdefs.h.  */
3641
3642int
3643main ()
3644{
3645int i=0;
3646  ;
3647  return 0;
3648}
3649_ACEOF
3650rm -f conftest.$ac_objext
3651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3652  (eval $ac_compile) 2>conftest.er1
3653  ac_status=$?
3654  grep -v '^ *+' conftest.er1 >conftest.err
3655  rm -f conftest.er1
3656  cat conftest.err >&5
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); } &&
3659         { ac_try='test -z "$ac_cxx_werror_flag"
3660                         || test ! -s conftest.err'
3661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662  (eval $ac_try) 2>&5
3663  ac_status=$?
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); }; } &&
3666         { ac_try='test -s conftest.$ac_objext'
3667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3668  (eval $ac_try) 2>&5
3669  ac_status=$?
3670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); }; }; then
3672  echo "$as_me:$LINENO: result: yes" >&5
3673echo "${ECHO_T}yes" >&6
3674else
3675  echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678echo "$as_me:$LINENO: result: no" >&5
3679echo "${ECHO_T}no" >&6
3680   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3681echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3682   { (exit 1); exit 1; }; }
3683
3684fi
3685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3686ac_ext=cc
3687ac_cpp='$CXXCPP $CPPFLAGS'
3688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3691
3692
3693coin_cxx_is_cl=false
3694# It seems that we need to cleanup something here for the Windows
3695case "$CXX" in
3696  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3697    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3698    mv confdefs.hh confdefs.h
3699    coin_cxx_is_cl=true
3700    ;;
3701esac
3702
3703# add automake conditional so we can recognize cl compiler in makefile
3704
3705
3706if test $coin_cxx_is_cl = true; then
3707  COIN_CXX_IS_CL_TRUE=
3708  COIN_CXX_IS_CL_FALSE='#'
3709else
3710  COIN_CXX_IS_CL_TRUE='#'
3711  COIN_CXX_IS_CL_FALSE=
3712fi
3713
3714
3715# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3716case "$CXX" in
3717  cl* | */cl* | CL* | */CL* )
3718    if test "$ac_cv_prog_cxx_g" = yes ; then
3719      ac_cv_prog_cxx_g=no
3720      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3721echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3722    fi ;;
3723esac
3724CXXFLAGS="$save_cxxflags"
3725
3726# Check if a project specific CXXFLAGS variable has been set
3727if test x$COIN_PRJCT != x; then
3728  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3729  if test x$coin_tmp = xset; then
3730    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3731  fi
3732fi
3733
3734if test x"$CXXFLAGS" = x; then
3735
3736# ToDo decide whether we want -DNDEBUG for optimization
3737  coin_add_cxxflags=
3738  coin_opt_cxxflags=
3739  coin_dbg_cxxflags=
3740  coin_warn_cxxflags=
3741
3742  if test "$GXX" = "yes"; then
3743    case "$CXX" in
3744      icpc* | */icpc*)
3745        ;;
3746      *)
3747# ToDo decide about unroll-loops
3748        coin_opt_cxxflags="-O3"
3749        coin_add_cxxflags="-pipe"
3750        coin_dbg_cxxflags="-g"
3751        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3752        case $build in
3753          *-darwin*)
3754            ;;
3755          *)
3756            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3757            ;;
3758        esac
3759
3760        case $enable_doscompile in
3761          mingw)
3762            CXXFLAGS="-mno-cygwin"
3763            cat >conftest.$ac_ext <<_ACEOF
3764/* confdefs.h.  */
3765_ACEOF
3766cat confdefs.h >>conftest.$ac_ext
3767cat >>conftest.$ac_ext <<_ACEOF
3768/* end confdefs.h.  */
3769
3770int
3771main ()
3772{
3773int i=0; i++;
3774  ;
3775  return 0;
3776}
3777_ACEOF
3778rm -f conftest.$ac_objext conftest$ac_exeext
3779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3780  (eval $ac_link) 2>conftest.er1
3781  ac_status=$?
3782  grep -v '^ *+' conftest.er1 >conftest.err
3783  rm -f conftest.er1
3784  cat conftest.err >&5
3785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786  (exit $ac_status); } &&
3787         { ac_try='test -z "$ac_cxx_werror_flag"
3788                         || test ! -s conftest.err'
3789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790  (eval $ac_try) 2>&5
3791  ac_status=$?
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); }; } &&
3794         { ac_try='test -s conftest$ac_exeext'
3795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796  (eval $ac_try) 2>&5
3797  ac_status=$?
3798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799  (exit $ac_status); }; }; then
3800  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3801else
3802  echo "$as_me: failed program was:" >&5
3803sed 's/^/| /' conftest.$ac_ext >&5
3804
3805fi
3806rm -f conftest.err conftest.$ac_objext \
3807      conftest$ac_exeext conftest.$ac_ext
3808            CXXFLAGS=
3809          ;;
3810        esac
3811    esac
3812  fi
3813
3814# Note that we do not need to cover GCC in the following tests.
3815
3816  if test -z "$coin_opt_cxxflags"; then
3817    case $build in
3818      *-cygwin* | *-mingw*)
3819        case "$CXX" in
3820          cl* | */cl* | CL* | */CL*)
3821            # The MT and MTd options are mutually exclusive
3822            coin_opt_cxxflags='-MT -O2'
3823            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3824            coin_dbg_cxxflags='-MTd'
3825            ;;
3826          icl* | */icl* | ICL* | */ICL*)
3827            # The MT and MTd options are mutually exclusive
3828            coin_opt_cxxflags='-MT -Ox'
3829            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3830            coin_dbg_cxxflags='-MTd -debug'
3831            ;;
3832        esac
3833        ;;
3834      *-linux-*)
3835        case "$CXX" in
3836          icpc* | */icpc*)
3837            coin_opt_cxxflags="-O3 -ip -mp1"
3838            coin_add_cxxflags=""
3839            coin_dbg_cxxflags="-g"
3840            # Check if -i_dynamic is necessary (for new glibc library)
3841            CXXFLAGS=
3842            cat >conftest.$ac_ext <<_ACEOF
3843/* confdefs.h.  */
3844_ACEOF
3845cat confdefs.h >>conftest.$ac_ext
3846cat >>conftest.$ac_ext <<_ACEOF
3847/* end confdefs.h.  */
3848
3849int
3850main ()
3851{
3852int i=0; i++;
3853  ;
3854  return 0;
3855}
3856_ACEOF
3857rm -f conftest.$ac_objext conftest$ac_exeext
3858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859  (eval $ac_link) 2>conftest.er1
3860  ac_status=$?
3861  grep -v '^ *+' conftest.er1 >conftest.err
3862  rm -f conftest.er1
3863  cat conftest.err >&5
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); } &&
3866         { ac_try='test -z "$ac_cxx_werror_flag"
3867                         || test ! -s conftest.err'
3868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869  (eval $ac_try) 2>&5
3870  ac_status=$?
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); }; } &&
3873         { ac_try='test -s conftest$ac_exeext'
3874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875  (eval $ac_try) 2>&5
3876  ac_status=$?
3877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878  (exit $ac_status); }; }; then
3879  :
3880else
3881  echo "$as_me: failed program was:" >&5
3882sed 's/^/| /' conftest.$ac_ext >&5
3883
3884coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3885fi
3886rm -f conftest.err conftest.$ac_objext \
3887      conftest$ac_exeext conftest.$ac_ext
3888            ;;
3889          pgCC* | */pgCC*)
3890            coin_opt_cxxflags="-fast"
3891            coin_add_cxxflags="-Kieee -pc 64"
3892            coin_dbg_cxxflags="-g"
3893            ;;
3894        esac
3895        ;;
3896      *-ibm-*)
3897        case "$CXX" in
3898          xlC* | */xlC* | mpxlC* | */mpxlC*)
3899            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3900            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3901            coin_dbg_cxxflags="-g"
3902            ;;
3903        esac
3904        ;;
3905      *-hp-*)
3906        case "$CXX" in
3907          aCC* | */aCC* )
3908            coin_opt_cxxflags="-O"
3909            coin_add_cxxflags="-AA"
3910            coin_dbg_cxxflags="-g"
3911            ;;
3912        esac
3913        ;;
3914      *-*-solaris*)
3915          coin_opt_cxxflags="-O4"
3916          coin_dbg_cxxflags="-g"
3917        ;;
3918    esac
3919  fi
3920
3921# Generic flag settings. If these don't work, add a case above.
3922
3923  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3924    coin_dbg_cxxflags="-g"
3925  fi
3926
3927  if test -z "$coin_opt_cxxflags"; then
3928    # Try if -O option works if nothing else is set
3929    CXXFLAGS=-O
3930    cat >conftest.$ac_ext <<_ACEOF
3931/* confdefs.h.  */
3932_ACEOF
3933cat confdefs.h >>conftest.$ac_ext
3934cat >>conftest.$ac_ext <<_ACEOF
3935/* end confdefs.h.  */
3936
3937int
3938main ()
3939{
3940int i=0; i++;
3941  ;
3942  return 0;
3943}
3944_ACEOF
3945rm -f conftest.$ac_objext conftest$ac_exeext
3946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3947  (eval $ac_link) 2>conftest.er1
3948  ac_status=$?
3949  grep -v '^ *+' conftest.er1 >conftest.err
3950  rm -f conftest.er1
3951  cat conftest.err >&5
3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953  (exit $ac_status); } &&
3954         { ac_try='test -z "$ac_cxx_werror_flag"
3955                         || test ! -s conftest.err'
3956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957  (eval $ac_try) 2>&5
3958  ac_status=$?
3959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960  (exit $ac_status); }; } &&
3961         { ac_try='test -s conftest$ac_exeext'
3962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963  (eval $ac_try) 2>&5
3964  ac_status=$?
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); }; }; then
3967  coin_opt_cxxflags="-O"
3968else
3969  echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972fi
3973rm -f conftest.err conftest.$ac_objext \
3974      conftest$ac_exeext conftest.$ac_ext
3975  fi
3976
3977  # if PM doesn't want the warning messages, take them out
3978  if test x"$coin_skip_warn_cxxflags" = xyes; then
3979    coin_warn_cxxflags=
3980  fi
3981
3982# Do final setup of flags based on values determined above.
3983
3984  if test x${DBG_CXXFLAGS+set} != xset; then
3985    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3986  fi
3987  if test x${OPT_CXXFLAGS+set} != xset; then
3988    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3989  fi
3990
3991  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3992  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3993
3994  if test "$coin_debug_compile" = "true"; then
3995    CXXFLAGS="$DBG_CXXFLAGS"
3996  else
3997    CXXFLAGS="$OPT_CXXFLAGS"
3998  fi
3999
4000# Handle the case where CXXFLAGS was set externally.
4001else
4002  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4003  if test x${DBG_CXXFLAGS+set} != xset; then
4004    DBG_CXXFLAGS="$CXXFLAGS"
4005  fi
4006  if test x${OPT_CXXFLAGS+set} != xset; then
4007    OPT_CXXFLAGS="$CXXFLAGS"
4008  fi
4009fi
4010
4011# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4012
4013case "$CXXFLAGS" in
4014  *-mno-cygwin*)
4015    if test x${CPPFLAGS+set} != xset ; then
4016      CPPFLAGS="-mno-cygwin"
4017    else
4018      case "$CPPFLAGS" in
4019        *-mno-cygwin*)
4020          ;;
4021        *)
4022          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4023          ;;
4024      esac
4025    fi ;;
4026esac
4027
4028# Try if CXXFLAGS works
4029save_CXXFLAGS="$CXXFLAGS"
4030cat >conftest.$ac_ext <<_ACEOF
4031/* confdefs.h.  */
4032_ACEOF
4033cat confdefs.h >>conftest.$ac_ext
4034cat >>conftest.$ac_ext <<_ACEOF
4035/* end confdefs.h.  */
4036
4037int
4038main ()
4039{
4040int i=0; i++;
4041  ;
4042  return 0;
4043}
4044_ACEOF
4045rm -f conftest.$ac_objext conftest$ac_exeext
4046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4047  (eval $ac_link) 2>conftest.er1
4048  ac_status=$?
4049  grep -v '^ *+' conftest.er1 >conftest.err
4050  rm -f conftest.er1
4051  cat conftest.err >&5
4052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4053  (exit $ac_status); } &&
4054         { ac_try='test -z "$ac_cxx_werror_flag"
4055                         || test ! -s conftest.err'
4056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057  (eval $ac_try) 2>&5
4058  ac_status=$?
4059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060  (exit $ac_status); }; } &&
4061         { ac_try='test -s conftest$ac_exeext'
4062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4063  (eval $ac_try) 2>&5
4064  ac_status=$?
4065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066  (exit $ac_status); }; }; then
4067  :
4068else
4069  echo "$as_me: failed program was:" >&5
4070sed 's/^/| /' conftest.$ac_ext >&5
4071
4072CXXFLAGS=
4073fi
4074rm -f conftest.err conftest.$ac_objext \
4075      conftest$ac_exeext conftest.$ac_ext
4076if test -z "$CXXFLAGS"; then
4077  { 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
4078echo "$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;}
4079  CXXFLAGS='-O'
4080  cat >conftest.$ac_ext <<_ACEOF
4081/* confdefs.h.  */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h.  */
4086
4087int
4088main ()
4089{
4090int i=0; i++;
4091  ;
4092  return 0;
4093}
4094_ACEOF
4095rm -f conftest.$ac_objext conftest$ac_exeext
4096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4097  (eval $ac_link) 2>conftest.er1
4098  ac_status=$?
4099  grep -v '^ *+' conftest.er1 >conftest.err
4100  rm -f conftest.er1
4101  cat conftest.err >&5
4102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103  (exit $ac_status); } &&
4104         { ac_try='test -z "$ac_cxx_werror_flag"
4105                         || test ! -s conftest.err'
4106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107  (eval $ac_try) 2>&5
4108  ac_status=$?
4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110  (exit $ac_status); }; } &&
4111         { ac_try='test -s conftest$ac_exeext'
4112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113  (eval $ac_try) 2>&5
4114  ac_status=$?
4115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116  (exit $ac_status); }; }; then
4117  :
4118else
4119  echo "$as_me: failed program was:" >&5
4120sed 's/^/| /' conftest.$ac_ext >&5
4121
4122CXXFLAGS=
4123fi
4124rm -f conftest.err conftest.$ac_objext \
4125      conftest$ac_exeext conftest.$ac_ext
4126  if test -z "$CXXFLAGS"; then
4127    { 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
4128echo "$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;}
4129  fi
4130fi
4131
4132{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4133echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4134
4135
4136if test x"$MPICXX" = x; then :; else
4137  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4138echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4139  CXX="$MPICXX"
4140fi
4141
4142# correct the LD variable in a mingw build with MS or intel compiler
4143case "$CXX" in
4144  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4145    case $build in
4146  *-mingw*)
4147    if test "${LD+set}" = set; then :; else
4148      LD=link
4149    fi
4150    ;;
4151 esac
4152 case $enable_doscompile in
4153   msvc)
4154     if test "x${LD+set}" = xset; then :; else
4155       LD=link
4156     fi
4157     ;;
4158 esac
4159
4160    ;;
4161esac
4162
4163ac_ext=c
4164ac_cpp='$CPP $CPPFLAGS'
4165ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168
4169
4170
4171# Get the name of the C compiler and appropriate compiler options
4172
4173
4174ac_ext=c
4175ac_cpp='$CPP $CPPFLAGS'
4176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178ac_compiler_gnu=$ac_cv_c_compiler_gnu
4179
4180
4181# For consistency, we set the C compiler to the same value of the C++
4182# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
4183if test x"$CXX" != x; then
4184  case "$CXX" in
4185    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4186      if test x"$CC" = x; then
4187        CC="$CXX"
4188        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
4189echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
4190      fi
4191      ;;
4192  esac
4193fi
4194
4195# add automake conditional so we can recognize cl compiler in makefile
4196coin_cc_is_cl=false
4197if test x"$CXX" != x; then
4198  case "$CXX" in
4199    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4200      coin_cc_is_cl=true
4201      ;;
4202  esac
4203fi
4204
4205
4206if test $coin_cc_is_cl = true; then
4207  COIN_CC_IS_CL_TRUE=
4208  COIN_CC_IS_CL_FALSE='#'
4209else
4210  COIN_CC_IS_CL_TRUE='#'
4211  COIN_CC_IS_CL_FALSE=
4212fi
4213
4214
4215
4216
4217
4218
4219
4220coin_has_cc=yes
4221
4222save_cflags="$CFLAGS"
4223
4224# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
4225# Depending on the user's PATH, when Studio/Workshop cc is not present we may
4226# find /usr/ucb/cc, which is almost certainly not a good choice for the C
4227# compiler. In this case, put cc after gcc.
4228
4229case $build in
4230  *-cygwin* | *-mingw*)
4231             if test "$enable_doscompile" = msvc ; then
4232               comps="icl cl"
4233             else
4234               comps="gcc cl"
4235             fi ;;
4236  *-*-solaris*)
4237             # Extract the first word of "cc", so it can be a program name with args.
4238set dummy cc; ac_word=$2
4239echo "$as_me:$LINENO: checking for $ac_word" >&5
4240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4241if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
4242  echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244  if test -n "$sol_cc_compiler"; then
4245  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
4246else
4247  ac_prog_rejected=no
4248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249for as_dir in $PATH
4250do
4251  IFS=$as_save_IFS
4252  test -z "$as_dir" && as_dir=.
4253  for ac_exec_ext in '' $ac_executable_extensions; do
4254  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4255    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4256       ac_prog_rejected=yes
4257       continue
4258     fi
4259    ac_cv_prog_sol_cc_compiler="cc"
4260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261    break 2
4262  fi
4263done
4264done
4265
4266if test $ac_prog_rejected = yes; then
4267  # We found a bogon in the path, so make sure we never use it.
4268  set dummy $ac_cv_prog_sol_cc_compiler
4269  shift
4270  if test $# != 0; then
4271    # We chose a different compiler from the bogus one.
4272    # However, it has the same basename, so the bogon will be chosen
4273    # first if we set sol_cc_compiler to just the basename; use the full file name.
4274    shift
4275    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
4276  fi
4277fi
4278fi
4279fi
4280sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
4281if test -n "$sol_cc_compiler"; then
4282  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
4283echo "${ECHO_T}$sol_cc_compiler" >&6
4284else
4285  echo "$as_me:$LINENO: result: no" >&5
4286echo "${ECHO_T}no" >&6
4287fi
4288
4289             if test "$sol_cc_compiler" = "cc" ; then
4290               comps="cc xlc gcc pgcc icc"
4291             else
4292               comps="xlc gcc pgcc icc cc"
4293             fi
4294             ;;
4295  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
4296  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
4297  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
4298esac
4299
4300# We delete the cached value, since the test might not have been
4301# performed with our choice of compilers earlier
4302$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
4303# AC_MSG_NOTICE([C compiler candidates: $comps])
4304ac_ext=c
4305ac_cpp='$CPP $CPPFLAGS'
4306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309if test -n "$ac_tool_prefix"; then
4310  for ac_prog in $comps
4311  do
4312    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4313set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4314echo "$as_me:$LINENO: checking for $ac_word" >&5
4315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316if test "${ac_cv_prog_CC+set}" = set; then
4317  echo $ECHO_N "(cached) $ECHO_C" >&6
4318else
4319  if test -n "$CC"; then
4320  ac_cv_prog_CC="$CC" # Let the user override the test.
4321else
4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325  IFS=$as_save_IFS
4326  test -z "$as_dir" && as_dir=.
4327  for ac_exec_ext in '' $ac_executable_extensions; do
4328  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4330    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4331    break 2
4332  fi
4333done
4334done
4335
4336fi
4337fi
4338CC=$ac_cv_prog_CC
4339if test -n "$CC"; then
4340  echo "$as_me:$LINENO: result: $CC" >&5
4341echo "${ECHO_T}$CC" >&6
4342else
4343  echo "$as_me:$LINENO: result: no" >&5
4344echo "${ECHO_T}no" >&6
4345fi
4346
4347    test -n "$CC" && break
4348  done
4349fi
4350if test -z "$CC"; then
4351  ac_ct_CC=$CC
4352  for ac_prog in $comps
4353do
4354  # Extract the first word of "$ac_prog", so it can be a program name with args.
4355set dummy $ac_prog; ac_word=$2
4356echo "$as_me:$LINENO: checking for $ac_word" >&5
4357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4358if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4359  echo $ECHO_N "(cached) $ECHO_C" >&6
4360else
4361  if test -n "$ac_ct_CC"; then
4362  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4363else
4364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367  IFS=$as_save_IFS
4368  test -z "$as_dir" && as_dir=.
4369  for ac_exec_ext in '' $ac_executable_extensions; do
4370  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4371    ac_cv_prog_ac_ct_CC="$ac_prog"
4372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4373    break 2
4374  fi
4375done
4376done
4377
4378fi
4379fi
4380ac_ct_CC=$ac_cv_prog_ac_ct_CC
4381if test -n "$ac_ct_CC"; then
4382  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4383echo "${ECHO_T}$ac_ct_CC" >&6
4384else
4385  echo "$as_me:$LINENO: result: no" >&5
4386echo "${ECHO_T}no" >&6
4387fi
4388
4389  test -n "$ac_ct_CC" && break
4390done
4391
4392  CC=$ac_ct_CC
4393fi
4394
4395
4396test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4397See \`config.log' for more details." >&5
4398echo "$as_me: error: no acceptable C compiler found in \$PATH
4399See \`config.log' for more details." >&2;}
4400   { (exit 1); exit 1; }; }
4401
4402# Provide some information about the compiler.
4403echo "$as_me:$LINENO:" \
4404     "checking for C compiler version" >&5
4405ac_compiler=`set X $ac_compile; echo $2`
4406{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4407  (eval $ac_compiler --version </dev/null >&5) 2>&5
4408  ac_status=$?
4409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410  (exit $ac_status); }
4411{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4412  (eval $ac_compiler -v </dev/null >&5) 2>&5
4413  ac_status=$?
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); }
4416{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4417  (eval $ac_compiler -V </dev/null >&5) 2>&5
4418  ac_status=$?
4419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420  (exit $ac_status); }
4421
4422echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4423echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4424if test "${ac_cv_c_compiler_gnu+set}" = set; then
4425  echo $ECHO_N "(cached) $ECHO_C" >&6
4426else
4427  cat >conftest.$ac_ext <<_ACEOF
4428/* confdefs.h.  */
4429_ACEOF
4430cat confdefs.h >>conftest.$ac_ext
4431cat >>conftest.$ac_ext <<_ACEOF
4432/* end confdefs.h.  */
4433
4434int
4435main ()
4436{
4437#ifndef __GNUC__
4438       choke me
4439#endif
4440
4441  ;
4442  return 0;
4443}
4444_ACEOF
4445rm -f conftest.$ac_objext
4446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4447  (eval $ac_compile) 2>conftest.er1
4448  ac_status=$?
4449  grep -v '^ *+' conftest.er1 >conftest.err
4450  rm -f conftest.er1
4451  cat conftest.err >&5
4452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453  (exit $ac_status); } &&
4454         { ac_try='test -z "$ac_c_werror_flag"
4455                         || test ! -s conftest.err'
4456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4457  (eval $ac_try) 2>&5
4458  ac_status=$?
4459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460  (exit $ac_status); }; } &&
4461         { ac_try='test -s conftest.$ac_objext'
4462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4463  (eval $ac_try) 2>&5
4464  ac_status=$?
4465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466  (exit $ac_status); }; }; then
4467  ac_compiler_gnu=yes
4468else
4469  echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
4472ac_compiler_gnu=no
4473fi
4474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4475ac_cv_c_compiler_gnu=$ac_compiler_gnu
4476
4477fi
4478echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4479echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4480GCC=`test $ac_compiler_gnu = yes && echo yes`
4481ac_test_CFLAGS=${CFLAGS+set}
4482ac_save_CFLAGS=$CFLAGS
4483CFLAGS="-g"
4484echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4485echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4486if test "${ac_cv_prog_cc_g+set}" = set; then
4487  echo $ECHO_N "(cached) $ECHO_C" >&6
4488else
4489  cat >conftest.$ac_ext <<_ACEOF
4490/* confdefs.h.  */
4491_ACEOF
4492cat confdefs.h >>conftest.$ac_ext
4493cat >>conftest.$ac_ext <<_ACEOF
4494/* end confdefs.h.  */
4495
4496int
4497main ()
4498{
4499
4500  ;
4501  return 0;
4502}
4503_ACEOF
4504rm -f conftest.$ac_objext
4505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506  (eval $ac_compile) 2>conftest.er1
4507  ac_status=$?
4508  grep -v '^ *+' conftest.er1 >conftest.err
4509  rm -f conftest.er1
4510  cat conftest.err >&5
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); } &&
4513         { ac_try='test -z "$ac_c_werror_flag"
4514                         || test ! -s conftest.err'
4515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516  (eval $ac_try) 2>&5
4517  ac_status=$?
4518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519  (exit $ac_status); }; } &&
4520         { ac_try='test -s conftest.$ac_objext'
4521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522  (eval $ac_try) 2>&5
4523  ac_status=$?
4524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525  (exit $ac_status); }; }; then
4526  ac_cv_prog_cc_g=yes
4527else
4528  echo "$as_me: failed program was:" >&5
4529sed 's/^/| /' conftest.$ac_ext >&5
4530
4531ac_cv_prog_cc_g=no
4532fi
4533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4534fi
4535echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4536echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4537if test "$ac_test_CFLAGS" = set; then
4538  CFLAGS=$ac_save_CFLAGS
4539elif test $ac_cv_prog_cc_g = yes; then
4540  if test "$GCC" = yes; then
4541    CFLAGS="-g -O2"
4542  else
4543    CFLAGS="-g"
4544  fi
4545else
4546  if test "$GCC" = yes; then
4547    CFLAGS="-O2"
4548  else
4549    CFLAGS=
4550  fi
4551fi
4552echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4553echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4554if test "${ac_cv_prog_cc_stdc+set}" = set; then
4555  echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557  ac_cv_prog_cc_stdc=no
4558ac_save_CC=$CC
4559cat >conftest.$ac_ext <<_ACEOF
4560/* confdefs.h.  */
4561_ACEOF
4562cat confdefs.h >>conftest.$ac_ext
4563cat >>conftest.$ac_ext <<_ACEOF
4564/* end confdefs.h.  */
4565#include <stdarg.h>
4566#include <stdio.h>
4567#include <sys/types.h>
4568#include <sys/stat.h>
4569/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4570struct buf { int x; };
4571FILE * (*rcsopen) (struct buf *, struct stat *, int);
4572static char *e (p, i)
4573     char **p;
4574     int i;
4575{
4576  return p[i];
4577}
4578static char *f (char * (*g) (char **, int), char **p, ...)
4579{
4580  char *s;
4581  va_list v;
4582  va_start (v,p);
4583  s = g (p, va_arg (v,int));
4584  va_end (v);
4585  return s;
4586}
4587
4588/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4589   function prototypes and stuff, but not '\xHH' hex character constants.
4590   These don't provoke an error unfortunately, instead are silently treated
4591   as 'x'.  The following induces an error, until -std1 is added to get
4592   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4593   array size at least.  It's necessary to write '\x00'==0 to get something
4594   that's true only with -std1.  */
4595int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4596
4597int test (int i, double x);
4598struct s1 {int (*f) (int a);};
4599struct s2 {int (*f) (double a);};
4600int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4601int argc;
4602char **argv;
4603int
4604main ()
4605{
4606return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4607  ;
4608  return 0;
4609}
4610_ACEOF
4611# Don't try gcc -ansi; that turns off useful extensions and
4612# breaks some systems' header files.
4613# AIX                   -qlanglvl=ansi
4614# Ultrix and OSF/1      -std1
4615# HP-UX 10.20 and later -Ae
4616# HP-UX older versions  -Aa -D_HPUX_SOURCE
4617# SVR4                  -Xc -D__EXTENSIONS__
4618for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4619do
4620  CC="$ac_save_CC $ac_arg"
4621  rm -f conftest.$ac_objext
4622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4623  (eval $ac_compile) 2>conftest.er1
4624  ac_status=$?
4625  grep -v '^ *+' conftest.er1 >conftest.err
4626  rm -f conftest.er1
4627  cat conftest.err >&5
4628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629  (exit $ac_status); } &&
4630         { ac_try='test -z "$ac_c_werror_flag"
4631                         || test ! -s conftest.err'
4632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4633  (eval $ac_try) 2>&5
4634  ac_status=$?
4635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636  (exit $ac_status); }; } &&
4637         { ac_try='test -s conftest.$ac_objext'
4638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639  (eval $ac_try) 2>&5
4640  ac_status=$?
4641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642  (exit $ac_status); }; }; then
4643  ac_cv_prog_cc_stdc=$ac_arg
4644break
4645else
4646  echo "$as_me: failed program was:" >&5
4647sed 's/^/| /' conftest.$ac_ext >&5
4648
4649fi
4650rm -f conftest.err conftest.$ac_objext
4651done
4652rm -f conftest.$ac_ext conftest.$ac_objext
4653CC=$ac_save_CC
4654
4655fi
4656
4657case "x$ac_cv_prog_cc_stdc" in
4658  x|xno)
4659    echo "$as_me:$LINENO: result: none needed" >&5
4660echo "${ECHO_T}none needed" >&6 ;;
4661  *)
4662    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4663echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4664    CC="$CC $ac_cv_prog_cc_stdc" ;;
4665esac
4666
4667# Some people use a C++ compiler to compile C.  Since we use `exit',
4668# in C++ we need to declare it.  In case someone uses the same compiler
4669# for both compiling C and C++ we need to have the C++ compiler decide
4670# the declaration of exit, since it's the most demanding environment.
4671cat >conftest.$ac_ext <<_ACEOF
4672#ifndef __cplusplus
4673  choke me
4674#endif
4675_ACEOF
4676rm -f conftest.$ac_objext
4677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4678  (eval $ac_compile) 2>conftest.er1
4679  ac_status=$?
4680  grep -v '^ *+' conftest.er1 >conftest.err
4681  rm -f conftest.er1
4682  cat conftest.err >&5
4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684  (exit $ac_status); } &&
4685         { ac_try='test -z "$ac_c_werror_flag"
4686                         || test ! -s conftest.err'
4687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688  (eval $ac_try) 2>&5
4689  ac_status=$?
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); }; } &&
4692         { ac_try='test -s conftest.$ac_objext'
4693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694  (eval $ac_try) 2>&5
4695  ac_status=$?
4696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697  (exit $ac_status); }; }; then
4698  for ac_declaration in \
4699   '' \
4700   'extern "C" void std::exit (int) throw (); using std::exit;' \
4701   'extern "C" void std::exit (int); using std::exit;' \
4702   'extern "C" void exit (int) throw ();' \
4703   'extern "C" void exit (int);' \
4704   'void exit (int);'
4705do
4706  cat >conftest.$ac_ext <<_ACEOF
4707/* confdefs.h.  */
4708_ACEOF
4709cat confdefs.h >>conftest.$ac_ext
4710cat >>conftest.$ac_ext <<_ACEOF
4711/* end confdefs.h.  */
4712$ac_declaration
4713#include <stdlib.h>
4714int
4715main ()
4716{
4717exit (42);
4718  ;
4719  return 0;
4720}
4721_ACEOF
4722rm -f conftest.$ac_objext
4723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4724  (eval $ac_compile) 2>conftest.er1
4725  ac_status=$?
4726  grep -v '^ *+' conftest.er1 >conftest.err
4727  rm -f conftest.er1
4728  cat conftest.err >&5
4729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730  (exit $ac_status); } &&
4731         { ac_try='test -z "$ac_c_werror_flag"
4732                         || test ! -s conftest.err'
4733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734  (eval $ac_try) 2>&5
4735  ac_status=$?
4736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737  (exit $ac_status); }; } &&
4738         { ac_try='test -s conftest.$ac_objext'
4739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740  (eval $ac_try) 2>&5
4741  ac_status=$?
4742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743  (exit $ac_status); }; }; then
4744  :
4745else
4746  echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749continue
4750fi
4751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4752  cat >conftest.$ac_ext <<_ACEOF
4753/* confdefs.h.  */
4754_ACEOF
4755cat confdefs.h >>conftest.$ac_ext
4756cat >>conftest.$ac_ext <<_ACEOF
4757/* end confdefs.h.  */
4758$ac_declaration
4759int
4760main ()
4761{
4762exit (42);
4763  ;
4764  return 0;
4765}
4766_ACEOF
4767rm -f conftest.$ac_objext
4768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4769  (eval $ac_compile) 2>conftest.er1
4770  ac_status=$?
4771  grep -v '^ *+' conftest.er1 >conftest.err
4772  rm -f conftest.er1
4773  cat conftest.err >&5
4774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775  (exit $ac_status); } &&
4776         { ac_try='test -z "$ac_c_werror_flag"
4777                         || test ! -s conftest.err'
4778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779  (eval $ac_try) 2>&5
4780  ac_status=$?
4781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782  (exit $ac_status); }; } &&
4783         { ac_try='test -s conftest.$ac_objext'
4784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785  (eval $ac_try) 2>&5
4786  ac_status=$?
4787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788  (exit $ac_status); }; }; then
4789  break
4790else
4791  echo "$as_me: failed program was:" >&5
4792sed 's/^/| /' conftest.$ac_ext >&5
4793
4794fi
4795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4796done
4797rm -f conftest*
4798if test -n "$ac_declaration"; then
4799  echo '#ifdef __cplusplus' >>confdefs.h
4800  echo $ac_declaration      >>confdefs.h
4801  echo '#endif'             >>confdefs.h
4802fi
4803
4804else
4805  echo "$as_me: failed program was:" >&5
4806sed 's/^/| /' conftest.$ac_ext >&5
4807
4808fi
4809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810ac_ext=c
4811ac_cpp='$CPP $CPPFLAGS'
4812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815
4816if test -z "$CC" ; then
4817  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
4818echo "$as_me: error: Failed to find a C compiler!" >&2;}
4819   { (exit 1); exit 1; }; }
4820fi
4821# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
4822case "$CC" in
4823  cl* | */cl* | CL* | */CL* )
4824    if test "$ac_cv_prog_cc_g" = yes ; then
4825      ac_cv_prog_cc_g=no
4826      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
4827echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
4828    fi ;;
4829esac
4830CFLAGS="$save_cflags"
4831
4832# Check if a project specific CFLAGS variable has been set
4833if test x$COIN_PRJCT != x; then
4834  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
4835  if test x$coin_tmp = xset; then
4836    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
4837  fi
4838fi
4839
4840if test x"$CFLAGS" = x; then
4841
4842  coin_add_cflags=
4843  coin_opt_cflags=
4844  coin_dbg_cflags=
4845  coin_warn_cflags=
4846
4847  if test "$GCC" = "yes"; then
4848    case "$CC" in
4849      icc* | */icc*)
4850        ;;
4851      *)
4852        coin_opt_cflags="-O3"
4853        coin_add_cflags="-pipe"
4854        coin_dbg_cflags="-g"
4855        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
4856        case $build in
4857          *-darwin*)
4858            ;;
4859          *)
4860            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
4861            ;;
4862        esac
4863        case $enable_doscompile in
4864          mingw)
4865            CFLAGS="-mno-cygwin"
4866            cat >conftest.$ac_ext <<_ACEOF
4867/* confdefs.h.  */
4868_ACEOF
4869cat confdefs.h >>conftest.$ac_ext
4870cat >>conftest.$ac_ext <<_ACEOF
4871/* end confdefs.h.  */
4872
4873int
4874main ()
4875{
4876int i=0; i++;
4877  ;
4878  return 0;
4879}
4880_ACEOF
4881rm -f conftest.$ac_objext conftest$ac_exeext
4882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4883  (eval $ac_link) 2>conftest.er1
4884  ac_status=$?
4885  grep -v '^ *+' conftest.er1 >conftest.err
4886  rm -f conftest.er1
4887  cat conftest.err >&5
4888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889  (exit $ac_status); } &&
4890         { ac_try='test -z "$ac_c_werror_flag"
4891                         || test ! -s conftest.err'
4892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893  (eval $ac_try) 2>&5
4894  ac_status=$?
4895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896  (exit $ac_status); }; } &&
4897         { ac_try='test -s conftest$ac_exeext'
4898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4899  (eval $ac_try) 2>&5
4900  ac_status=$?
4901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902  (exit $ac_status); }; }; then
4903  coin_add_cflags="-mno-cygwin $coin_add_cflags"
4904else
4905  echo "$as_me: failed program was:" >&5
4906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908fi
4909rm -f conftest.err conftest.$ac_objext \
4910      conftest$ac_exeext conftest.$ac_ext
4911            CFLAGS=
4912          ;;
4913        esac
4914    esac
4915  fi
4916  if test -z "$coin_opt_cflags"; then
4917    case $build in
4918      *-cygwin* | *-mingw*)
4919        case "$CC" in
4920          cl* | */cl* | CL* | */CL*)
4921            coin_opt_cflags='-MT -O2'
4922            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
4923            coin_dbg_cflags='-MTd'
4924            ;;
4925          icl* | */icl* | ICL* | */ICL*)
4926            coin_opt_cflags='-MT -Ox'
4927            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
4928            coin_dbg_cflags='-MTd -debug'
4929            ;;
4930        esac
4931        ;;
4932      *-linux-*)
4933        case "$CC" in
4934          icc* | */icc*)
4935            coin_opt_cflags="-O3 -ip -mp1"
4936            coin_add_cflags=""
4937            coin_dbg_cflags="-g"
4938            # Check if -i_dynamic is necessary (for new glibc library)
4939            CFLAGS=
4940            cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h.  */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h.  */
4946
4947int
4948main ()
4949{
4950int i=0; i++;
4951  ;
4952  return 0;
4953}
4954_ACEOF
4955rm -f conftest.$ac_objext conftest$ac_exeext
4956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4957  (eval $ac_link) 2>conftest.er1
4958  ac_status=$?
4959  grep -v '^ *+' conftest.er1 >conftest.err
4960  rm -f conftest.er1
4961  cat conftest.err >&5
4962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963  (exit $ac_status); } &&
4964         { ac_try='test -z "$ac_c_werror_flag"
4965                         || test ! -s conftest.err'
4966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967  (eval $ac_try) 2>&5
4968  ac_status=$?
4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); }; } &&
4971         { ac_try='test -s conftest$ac_exeext'
4972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973  (eval $ac_try) 2>&5
4974  ac_status=$?
4975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976  (exit $ac_status); }; }; then
4977  :
4978else
4979  echo "$as_me: failed program was:" >&5
4980sed 's/^/| /' conftest.$ac_ext >&5
4981
4982coin_add_cflags="-i_dynamic $coin_add_cflags"
4983fi
4984rm -f conftest.err conftest.$ac_objext \
4985      conftest$ac_exeext conftest.$ac_ext
4986            ;;
4987          pgcc* | */pgcc*)
4988            coin_opt_cflags="-fast"
4989            coin_add_cflags="-Kieee -pc 64"
4990            coin_dbg_cflags="-g"
4991            ;;
4992        esac
4993        ;;
4994      *-ibm-*)
4995        case "$CC" in
4996          xlc* | */xlc* | mpxlc* | */mpxlc*)
4997            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4998            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4999            coin_dbg_cflags="-g"
5000          ;;
5001        esac
5002        ;;
5003      *-hp-*)
5004        coin_opt_cflags="-O"
5005        coin_add_cflags="-Ae"
5006        coin_dbg_cflags="-g"
5007        ;;
5008      *-*-solaris*)
5009        coin_opt_cflags="-xO4"
5010        coin_dbg_cflags="-g"
5011        ;;
5012      *-sgi-*)
5013        coin_opt_cflags="-O -OPT:Olimit=0"
5014        coin_dbg_cflags="-g"
5015        ;;
5016    esac
5017  fi
5018
5019  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
5020    coin_dbg_cflags="-g"
5021  fi
5022
5023  if test -z "$coin_opt_cflags"; then
5024    # Try if -O option works if nothing else is set
5025    CFLAGS="-O"
5026    cat >conftest.$ac_ext <<_ACEOF
5027/* confdefs.h.  */
5028_ACEOF
5029cat confdefs.h >>conftest.$ac_ext
5030cat >>conftest.$ac_ext <<_ACEOF
5031/* end confdefs.h.  */
5032
5033int
5034main ()
5035{
5036int i=0; i++;
5037  ;
5038  return 0;
5039}
5040_ACEOF
5041rm -f conftest.$ac_objext conftest$ac_exeext
5042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043  (eval $ac_link) 2>conftest.er1
5044  ac_status=$?
5045  grep -v '^ *+' conftest.er1 >conftest.err
5046  rm -f conftest.er1
5047  cat conftest.err >&5
5048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049  (exit $ac_status); } &&
5050         { ac_try='test -z "$ac_c_werror_flag"
5051                         || test ! -s conftest.err'
5052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5053  (eval $ac_try) 2>&5
5054  ac_status=$?
5055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5056  (exit $ac_status); }; } &&
5057         { ac_try='test -s conftest$ac_exeext'
5058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059  (eval $ac_try) 2>&5
5060  ac_status=$?
5061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062  (exit $ac_status); }; }; then
5063  coin_opt_cflags="-O"
5064else
5065  echo "$as_me: failed program was:" >&5
5066sed 's/^/| /' conftest.$ac_ext >&5
5067
5068fi
5069rm -f conftest.err conftest.$ac_objext \
5070      conftest$ac_exeext conftest.$ac_ext
5071  fi
5072
5073  # if PM doesn't want the warning messages, take them out
5074  if test x"$coin_skip_warn_cflags" = xyes; then
5075    coin_warn_cflags=
5076  fi
5077
5078  if test x${DBG_CFLAGS+set} != xset; then
5079    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
5080  fi
5081  if test x${OPT_CFLAGS+set} != xset; then
5082    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
5083  fi
5084
5085  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
5086  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
5087
5088  if test "$coin_debug_compile" = "true"; then
5089    CFLAGS="$DBG_CFLAGS"
5090  else
5091    CFLAGS="$OPT_CFLAGS"
5092  fi
5093else
5094  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
5095  if test x${DBG_CFLAGS+set} != xset; then
5096    DBG_CFLAGS="$CFLAGS"
5097  fi
5098  if test x${OPT_CFLAGS+set} != xset; then
5099    OPT_CFLAGS="$CFLAGS"
5100  fi
5101fi
5102
5103# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
5104
5105case "$CFLAGS" in
5106  *-mno-cygwin*)
5107    if test x${CPPFLAGS+set} != xset ; then
5108      CPPFLAGS="-mno-cygwin"
5109    else
5110      case "$CPPFLAGS" in
5111        *-mno-cygwin*)
5112          ;;
5113        *)
5114          CPPFLAGS="$CPPFLAGS -mno-cygwin"
5115          ;;
5116      esac
5117    fi ;;
5118esac
5119
5120# Try if CFLAGS works
5121save_CFLAGS="$CFLAGS"
5122cat >conftest.$ac_ext <<_ACEOF
5123/* confdefs.h.  */
5124_ACEOF
5125cat confdefs.h >>conftest.$ac_ext
5126cat >>conftest.$ac_ext <<_ACEOF
5127/* end confdefs.h.  */
5128
5129int
5130main ()
5131{
5132int i=0; i++;
5133  ;
5134  return 0;
5135}
5136_ACEOF
5137rm -f conftest.$ac_objext conftest$ac_exeext
5138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5139  (eval $ac_link) 2>conftest.er1
5140  ac_status=$?
5141  grep -v '^ *+' conftest.er1 >conftest.err
5142  rm -f conftest.er1
5143  cat conftest.err >&5
5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145  (exit $ac_status); } &&
5146         { ac_try='test -z "$ac_c_werror_flag"
5147                         || test ! -s conftest.err'
5148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5149  (eval $ac_try) 2>&5
5150  ac_status=$?
5151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5152  (exit $ac_status); }; } &&
5153         { ac_try='test -s conftest$ac_exeext'
5154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155  (eval $ac_try) 2>&5
5156  ac_status=$?
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); }; }; then
5159  :
5160else
5161  echo "$as_me: failed program was:" >&5
5162sed 's/^/| /' conftest.$ac_ext >&5
5163
5164CFLAGS=
5165fi
5166rm -f conftest.err conftest.$ac_objext \
5167      conftest$ac_exeext conftest.$ac_ext
5168if test -z "$CFLAGS"; then
5169  { 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
5170echo "$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;}
5171  CFLAGS='-O'
5172  cat >conftest.$ac_ext <<_ACEOF
5173/* confdefs.h.  */
5174_ACEOF
5175cat confdefs.h >>conftest.$ac_ext
5176cat >>conftest.$ac_ext <<_ACEOF
5177/* end confdefs.h.  */
5178
5179int
5180main ()
5181{
5182int i=0; i++;
5183  ;
5184  return 0;
5185}
5186_ACEOF
5187rm -f conftest.$ac_objext conftest$ac_exeext
5188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5189  (eval $ac_link) 2>conftest.er1
5190  ac_status=$?
5191  grep -v '^ *+' conftest.er1 >conftest.err
5192  rm -f conftest.er1
5193  cat conftest.err >&5
5194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195  (exit $ac_status); } &&
5196         { ac_try='test -z "$ac_c_werror_flag"
5197                         || test ! -s conftest.err'
5198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199  (eval $ac_try) 2>&5
5200  ac_status=$?
5201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202  (exit $ac_status); }; } &&
5203         { ac_try='test -s conftest$ac_exeext'
5204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205  (eval $ac_try) 2>&5
5206  ac_status=$?
5207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208  (exit $ac_status); }; }; then
5209  :
5210else
5211  echo "$as_me: failed program was:" >&5
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214CFLAGS=
5215fi
5216rm -f conftest.err conftest.$ac_objext \
5217      conftest$ac_exeext conftest.$ac_ext
5218  if test -z "$CFLAGS"; then
5219    { 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
5220echo "$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;}
5221  fi
5222fi
5223
5224{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
5225echo "$as_me: C compiler options are: $CFLAGS" >&6;}
5226
5227
5228if test x"$MPICC" = x; then :; else
5229  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
5230echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
5231  CC="$MPICC"
5232fi
5233
5234# Correct the LD variable if we are using the MS or Intel-windows compiler
5235case "$CC" in
5236  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5237    case $build in
5238  *-mingw*)
5239    if test "${LD+set}" = set; then :; else
5240      LD=link
5241    fi
5242    ;;
5243 esac
5244 case $enable_doscompile in
5245   msvc)
5246     if test "x${LD+set}" = xset; then :; else
5247       LD=link
5248     fi
5249     ;;
5250 esac
5251
5252    ;;
5253esac
5254
5255ac_ext=c
5256ac_cpp='$CPP $CPPFLAGS'
5257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5259ac_compiler_gnu=$ac_cv_c_compiler_gnu
5260
5261
5262
5263# Initialize automake and libtool
5264{
5265
5266
5267
5268# START
5269
5270# Test if force_shared has been set
5271if test "x" = xforce_shared; then
5272  if test x$enable_shared = xno; then
5273    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5274echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5275   { (exit 1); exit 1; }; }
5276  fi
5277  enable_shared=yes;
5278else
5279  # On Cygwin and AIX, building DLLs doesn't work
5280  case $build in
5281    *-cygwin*)
5282      coin_disable_shared=yes
5283      platform=Cygwin
5284    ;;
5285    *-aix*)
5286      coin_disable_shared=yes
5287      platform=AIX
5288    ;;
5289    *-mingw*)
5290      coin_disable_shared=yes
5291      platform="Msys"
5292#      case "$CXX" in
5293#        cl*)
5294#          coin_disable_shared=yes
5295#          platform="Msys with cl"
5296#      ;;
5297#      esac
5298    ;;
5299  esac
5300fi
5301if test x"$coin_disable_shared" = xyes; then
5302  if test x"$enable_shared" = xyes; then
5303    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5304echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5305  fi
5306  enable_shared=no
5307fi
5308# By default, we only want the shared objects to be compiled
5309# Check whether --enable-static or --disable-static was given.
5310if test "${enable_static+set}" = set; then
5311  enableval="$enable_static"
5312  p=${PACKAGE-default}
5313    case $enableval in
5314    yes) enable_static=yes ;;
5315    no) enable_static=no ;;
5316    *)
5317     enable_static=no
5318      # Look at the argument we got.  We use all the common list separators.
5319      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5320      for pkg in $enableval; do
5321        IFS="$lt_save_ifs"
5322        if test "X$pkg" = "X$p"; then
5323          enable_static=yes
5324        fi
5325      done
5326      IFS="$lt_save_ifs"
5327      ;;
5328    esac
5329else
5330  enable_static=no
5331fi;
5332
5333
5334
5335
5336# Initialize automake
5337echo "$as_me:$LINENO: checking for egrep" >&5
5338echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5339if test "${ac_cv_prog_egrep+set}" = set; then
5340  echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5343    then ac_cv_prog_egrep='grep -E'
5344    else ac_cv_prog_egrep='egrep'
5345    fi
5346fi
5347echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5348echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5349 EGREP=$ac_cv_prog_egrep
5350
5351
5352am__api_version="1.9"
5353# Find a good install program.  We prefer a C program (faster),
5354# so one script is as good as another.  But avoid the broken or
5355# incompatible versions:
5356# SysV /etc/install, /usr/sbin/install
5357# SunOS /usr/etc/install
5358# IRIX /sbin/install
5359# AIX /bin/install
5360# AmigaOS /C/install, which installs bootblocks on floppy discs
5361# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5362# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5363# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5364# OS/2's system install, which has a completely different semantic
5365# ./install, which can be erroneously created by make from ./install.sh.
5366echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5367echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5368if test -z "$INSTALL"; then
5369if test "${ac_cv_path_install+set}" = set; then
5370  echo $ECHO_N "(cached) $ECHO_C" >&6
5371else
5372  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH
5374do
5375  IFS=$as_save_IFS
5376  test -z "$as_dir" && as_dir=.
5377  # Account for people who put trailing slashes in PATH elements.
5378case $as_dir/ in
5379  ./ | .// | /cC/* | \
5380  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5381  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5382  /usr/ucb/* ) ;;
5383  *)
5384    # OSF1 and SCO ODT 3.0 have their own names for install.
5385    # Don't use installbsd from OSF since it installs stuff as root
5386    # by default.
5387    for ac_prog in ginstall scoinst install; do
5388      for ac_exec_ext in '' $ac_executable_extensions; do
5389        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5390          if test $ac_prog = install &&
5391            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5392            # AIX install.  It has an incompatible calling convention.
5393            :
5394          elif test $ac_prog = install &&
5395            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5396            # program-specific install script used by HP pwplus--don't use.
5397            :
5398          else
5399            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5400            break 3
5401          fi
5402        fi
5403      done
5404    done
5405    ;;
5406esac
5407done
5408
5409
5410fi
5411  if test "${ac_cv_path_install+set}" = set; then
5412    INSTALL=$ac_cv_path_install
5413  else
5414    # As a last resort, use the slow shell script.  We don't cache a
5415    # path for INSTALL within a source directory, because that will
5416    # break other packages using the cache if that directory is
5417    # removed, or if the path is relative.
5418    INSTALL=$ac_install_sh
5419  fi
5420fi
5421echo "$as_me:$LINENO: result: $INSTALL" >&5
5422echo "${ECHO_T}$INSTALL" >&6
5423
5424# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5425# It thinks the first close brace ends the variable substitution.
5426test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5427
5428test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5429
5430test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5431
5432echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5433echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5434# Just in case
5435sleep 1
5436echo timestamp > conftest.file
5437# Do `set' in a subshell so we don't clobber the current shell's
5438# arguments.  Must try -L first in case configure is actually a
5439# symlink; some systems play weird games with the mod time of symlinks
5440# (eg FreeBSD returns the mod time of the symlink's containing
5441# directory).
5442if (
5443   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5444   if test "$*" = "X"; then
5445      # -L didn't work.
5446      set X `ls -t $srcdir/configure conftest.file`
5447   fi
5448   rm -f conftest.file
5449   if test "$*" != "X $srcdir/configure conftest.file" \
5450      && test "$*" != "X conftest.file $srcdir/configure"; then
5451
5452      # If neither matched, then we have a broken ls.  This can happen
5453      # if, for instance, CONFIG_SHELL is bash and it inherits a
5454      # broken ls alias from the environment.  This has actually
5455      # happened.  Such a system could not be considered "sane".
5456      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5457alias in your environment" >&5
5458echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5459alias in your environment" >&2;}
5460   { (exit 1); exit 1; }; }
5461   fi
5462
5463   test "$2" = conftest.file
5464   )
5465then
5466   # Ok.
5467   :
5468else
5469   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5470Check your system clock" >&5
5471echo "$as_me: error: newly created file is older than distributed files!
5472Check your system clock" >&2;}
5473   { (exit 1); exit 1; }; }
5474fi
5475echo "$as_me:$LINENO: result: yes" >&5
5476echo "${ECHO_T}yes" >&6
5477test "$program_prefix" != NONE &&
5478  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5479# Use a double $ so make ignores it.
5480test "$program_suffix" != NONE &&
5481  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5482# Double any \ or $.  echo might interpret backslashes.
5483# By default was `s,x,x', remove it if useless.
5484cat <<\_ACEOF >conftest.sed
5485s/[\\$]/&&/g;s/;s,x,x,$//
5486_ACEOF
5487program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5488rm conftest.sed
5489
5490# expand $ac_aux_dir to an absolute path
5491am_aux_dir=`cd $ac_aux_dir && pwd`
5492
5493test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5494# Use eval to expand $SHELL
5495if eval "$MISSING --run true"; then
5496  am_missing_run="$MISSING --run "
5497else
5498  am_missing_run=
5499  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5500echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5501fi
5502
5503if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5504  # We used to keeping the `.' as first argument, in order to
5505  # allow $(mkdir_p) to be used without argument.  As in
5506  #   $(mkdir_p) $(somedir)
5507  # where $(somedir) is conditionally defined.  However this is wrong
5508  # for two reasons:
5509  #  1. if the package is installed by a user who cannot write `.'
5510  #     make install will fail,
5511  #  2. the above comment should most certainly read
5512  #     $(mkdir_p) $(DESTDIR)$(somedir)
5513  #     so it does not work when $(somedir) is undefined and
5514  #     $(DESTDIR) is not.
5515  #  To support the latter case, we have to write
5516  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5517  #  so the `.' trick is pointless.
5518  mkdir_p='mkdir -p --'
5519else
5520  # On NextStep and OpenStep, the `mkdir' command does not
5521  # recognize any option.  It will interpret all options as
5522  # directories to create, and then abort because `.' already
5523  # exists.
5524  for d in ./-p ./--version;
5525  do
5526    test -d $d && rmdir $d
5527  done
5528  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5529  if test -f "$ac_aux_dir/mkinstalldirs"; then
5530    mkdir_p='$(mkinstalldirs)'
5531  else
5532    mkdir_p='$(install_sh) -d'
5533  fi
5534fi
5535
5536for ac_prog in gawk mawk nawk awk
5537do
5538  # Extract the first word of "$ac_prog", so it can be a program name with args.
5539set dummy $ac_prog; ac_word=$2
5540echo "$as_me:$LINENO: checking for $ac_word" >&5
5541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5542if test "${ac_cv_prog_AWK+set}" = set; then
5543  echo $ECHO_N "(cached) $ECHO_C" >&6
5544else
5545  if test -n "$AWK"; then
5546  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5547else
5548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549for as_dir in $PATH
5550do
5551  IFS=$as_save_IFS
5552  test -z "$as_dir" && as_dir=.
5553  for ac_exec_ext in '' $ac_executable_extensions; do
5554  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555    ac_cv_prog_AWK="$ac_prog"
5556    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5557    break 2
5558  fi
5559done
5560done
5561
5562fi
5563fi
5564AWK=$ac_cv_prog_AWK
5565if test -n "$AWK"; then
5566  echo "$as_me:$LINENO: result: $AWK" >&5
5567echo "${ECHO_T}$AWK" >&6
5568else
5569  echo "$as_me:$LINENO: result: no" >&5
5570echo "${ECHO_T}no" >&6
5571fi
5572
5573  test -n "$AWK" && break
5574done
5575
5576echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5577echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5578set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5579if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5580  echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582  cat >conftest.make <<\_ACEOF
5583all:
5584        @echo 'ac_maketemp="$(MAKE)"'
5585_ACEOF
5586# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5587eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5588if test -n "$ac_maketemp"; then
5589  eval ac_cv_prog_make_${ac_make}_set=yes
5590else
5591  eval ac_cv_prog_make_${ac_make}_set=no
5592fi
5593rm -f conftest.make
5594fi
5595if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5596  echo "$as_me:$LINENO: result: yes" >&5
5597echo "${ECHO_T}yes" >&6
5598  SET_MAKE=
5599else
5600  echo "$as_me:$LINENO: result: no" >&5
5601echo "${ECHO_T}no" >&6
5602  SET_MAKE="MAKE=${MAKE-make}"
5603fi
5604
5605rm -rf .tst 2>/dev/null
5606mkdir .tst 2>/dev/null
5607if test -d .tst; then
5608  am__leading_dot=.
5609else
5610  am__leading_dot=_
5611fi
5612rmdir .tst 2>/dev/null
5613
5614DEPDIR="${am__leading_dot}deps"
5615
5616          ac_config_commands="$ac_config_commands depfiles"
5617
5618
5619am_make=${MAKE-make}
5620cat > confinc << 'END'
5621am__doit:
5622        @echo done
5623.PHONY: am__doit
5624END
5625# If we don't find an include directive, just comment out the code.
5626echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5627echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5628am__include="#"
5629am__quote=
5630_am_result=none
5631# First try GNU make style include.
5632echo "include confinc" > confmf
5633# We grep out `Entering directory' and `Leaving directory'
5634# messages which can occur if `w' ends up in MAKEFLAGS.
5635# In particular we don't look at `^make:' because GNU make might
5636# be invoked under some other name (usually "gmake"), in which
5637# case it prints its new name instead of `make'.
5638if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5639   am__include=include
5640   am__quote=
5641   _am_result=GNU
5642fi
5643# Now try BSD make style include.
5644if test "$am__include" = "#"; then
5645   echo '.include "confinc"' > confmf
5646   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5647      am__include=.include
5648      am__quote="\""
5649      _am_result=BSD
5650   fi
5651fi
5652
5653
5654echo "$as_me:$LINENO: result: $_am_result" >&5
5655echo "${ECHO_T}$_am_result" >&6
5656rm -f confinc confmf
5657
5658# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5659if test "${enable_dependency_tracking+set}" = set; then
5660  enableval="$enable_dependency_tracking"
5661
5662fi;
5663if test "x$enable_dependency_tracking" != xno; then
5664  am_depcomp="$ac_aux_dir/depcomp"
5665  AMDEPBACKSLASH='\'
5666fi
5667
5668
5669if test "x$enable_dependency_tracking" != xno; then
5670  AMDEP_TRUE=
5671  AMDEP_FALSE='#'
5672else
5673  AMDEP_TRUE='#'
5674  AMDEP_FALSE=
5675fi
5676
5677
5678
5679
5680
5681# AC_MSG_NOTICE([Beginning automake initialisation.])
5682# Stuff for automake
5683# test to see if srcdir already configured
5684if test "`cd $srcdir && pwd`" != "`pwd`" &&
5685   test -f $srcdir/config.status; then
5686  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5687echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5688   { (exit 1); exit 1; }; }
5689fi
5690
5691# test whether we have cygpath
5692if test -z "$CYGPATH_W"; then
5693  if (cygpath --version) >/dev/null 2>/dev/null; then
5694    CYGPATH_W='cygpath -w'
5695  else
5696    CYGPATH_W=echo
5697  fi
5698fi
5699
5700
5701# Define the identity of the package.
5702 PACKAGE='couenne'
5703 VERSION='trunk'
5704
5705
5706cat >>confdefs.h <<_ACEOF
5707#define PACKAGE "$PACKAGE"
5708_ACEOF
5709
5710
5711cat >>confdefs.h <<_ACEOF
5712#define VERSION "$VERSION"
5713_ACEOF
5714
5715# Some tools Automake needs.
5716
5717ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5718
5719
5720AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5721
5722
5723AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5724
5725
5726AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5727
5728
5729MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5730
5731install_sh=${install_sh-"$am_aux_dir/install-sh"}
5732
5733# Installed binaries are usually stripped using `strip' when the user
5734# run `make install-strip'.  However `strip' might not be the right
5735# tool to use in cross-compilation environments, therefore Automake
5736# will honor the `STRIP' environment variable to overrule this program.
5737if test "$cross_compiling" != no; then
5738  if test -n "$ac_tool_prefix"; then
5739  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5740set dummy ${ac_tool_prefix}strip; ac_word=$2
5741echo "$as_me:$LINENO: checking for $ac_word" >&5
5742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743if test "${ac_cv_prog_STRIP+set}" = set; then
5744  echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746  if test -n "$STRIP"; then
5747  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5748else
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752  IFS=$as_save_IFS
5753  test -z "$as_dir" && as_dir=.
5754  for ac_exec_ext in '' $ac_executable_extensions; do
5755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758    break 2
5759  fi
5760done
5761done
5762
5763fi
5764fi
5765STRIP=$ac_cv_prog_STRIP
5766if test -n "$STRIP"; then
5767  echo "$as_me:$LINENO: result: $STRIP" >&5
5768echo "${ECHO_T}$STRIP" >&6
5769else
5770  echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6
5772fi
5773
5774fi
5775if test -z "$ac_cv_prog_STRIP"; then
5776  ac_ct_STRIP=$STRIP
5777  # Extract the first word of "strip", so it can be a program name with args.
5778set dummy strip; ac_word=$2
5779echo "$as_me:$LINENO: checking for $ac_word" >&5
5780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5781if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5782  echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784  if test -n "$ac_ct_STRIP"; then
5785  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5786else
5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788for as_dir in $PATH
5789do
5790  IFS=$as_save_IFS
5791  test -z "$as_dir" && as_dir=.
5792  for ac_exec_ext in '' $ac_executable_extensions; do
5793  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794    ac_cv_prog_ac_ct_STRIP="strip"
5795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796    break 2
5797  fi
5798done
5799done
5800
5801  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5802fi
5803fi
5804ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5805if test -n "$ac_ct_STRIP"; then
5806  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5807echo "${ECHO_T}$ac_ct_STRIP" >&6
5808else
5809  echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811fi
5812
5813  STRIP=$ac_ct_STRIP
5814else
5815  STRIP="$ac_cv_prog_STRIP"
5816fi
5817
5818fi
5819INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5820
5821# We need awk for the "check" target.  The system "awk" is bad on
5822# some platforms.
5823# Always define AMTAR for backward compatibility.
5824
5825AMTAR=${AMTAR-"${am_missing_run}tar"}
5826
5827am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5828
5829
5830
5831
5832depcc="$CC"   am_compiler_list=
5833
5834echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5835echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5836if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5837  echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5840  # We make a subdir and do the tests there.  Otherwise we can end up
5841  # making bogus files that we don't know about and never remove.  For
5842  # instance it was reported that on HP-UX the gcc test will end up
5843  # making a dummy file named `D' -- because `-MD' means `put the output
5844  # in D'.
5845  mkdir conftest.dir
5846  # Copy depcomp to subdir because otherwise we won't find it if we're
5847  # using a relative directory.
5848  cp "$am_depcomp" conftest.dir
5849  cd conftest.dir
5850  # We will build objects and dependencies in a subdirectory because
5851  # it helps to detect inapplicable dependency modes.  For instance
5852  # both Tru64's cc and ICC support -MD to output dependencies as a
5853  # side effect of compilation, but ICC will put the dependencies in
5854  # the current directory while Tru64 will put them in the object
5855  # directory.
5856  mkdir sub
5857
5858  am_cv_CC_dependencies_compiler_type=none
5859  if test "$am_compiler_list" = ""; then
5860     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5861  fi
5862  for depmode in $am_compiler_list; do
5863    # Setup a source with many dependencies, because some compilers
5864    # like to wrap large dependency lists on column 80 (with \), and
5865    # we should not choose a depcomp mode which is confused by this.
5866    #
5867    # We need to recreate these files for each test, as the compiler may
5868    # overwrite some of them when testing with obscure command lines.
5869    # This happens at least with the AIX C compiler.
5870    : > sub/conftest.c
5871    for i in 1 2 3 4 5 6; do
5872      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5873      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5874      # Solaris 8's {/usr,}/bin/sh.
5875      touch sub/conftst$i.h
5876    done
5877    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5878
5879    case $depmode in
5880    nosideeffect)
5881      # after this tag, mechanisms are not by side-effect, so they'll
5882      # only be used when explicitly requested
5883      if test "x$enable_dependency_tracking" = xyes; then
5884        continue
5885      else
5886        break
5887      fi
5888      ;;
5889    none) break ;;
5890    esac
5891    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5892    # mode.  It turns out that the SunPro C++ compiler does not properly
5893    # handle `-M -o', and we need to detect this.
5894    if depmode=$depmode \
5895       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5896       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5897       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5898         >/dev/null 2>conftest.err &&
5899       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5900       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5901       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5902      # icc doesn't choke on unknown options, it will just issue warnings
5903      # or remarks (even with -Werror).  So we grep stderr for any message
5904      # that says an option was ignored or not supported.
5905      # When given -MP, icc 7.0 and 7.1 complain thusly:
5906      #   icc: Command line warning: ignoring option '-M'; no argument required
5907      # The diagnosis changed in icc 8.0:
5908      #   icc: Command line remark: option '-MP' not supported
5909      if (grep 'ignoring option' conftest.err ||
5910          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5911        am_cv_CC_dependencies_compiler_type=$depmode
5912        break
5913      fi
5914    fi
5915  done
5916
5917  cd ..
5918  rm -rf conftest.dir
5919else
5920  am_cv_CC_dependencies_compiler_type=none
5921fi
5922
5923fi
5924echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5925echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5926CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5927
5928
5929
5930if
5931  test "x$enable_dependency_tracking" != xno \
5932  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5933  am__fastdepCC_TRUE=
5934  am__fastdepCC_FALSE='#'
5935else
5936  am__fastdepCC_TRUE='#'
5937  am__fastdepCC_FALSE=
5938fi
5939
5940
5941depcc="$CXX"  am_compiler_list=
5942
5943echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5944echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5945if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5946  echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5948  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5949  # We make a subdir and do the tests there.  Otherwise we can end up
5950  # making bogus files that we don't know about and never remove.  For
5951  # instance it was reported that on HP-UX the gcc test will end up
5952  # making a dummy file named `D' -- because `-MD' means `put the output
5953  # in D'.
5954  mkdir conftest.dir
5955  # Copy depcomp to subdir because otherwise we won't find it if we're
5956  # using a relative directory.
5957  cp "$am_depcomp" conftest.dir
5958  cd conftest.dir
5959  # We will build objects and dependencies in a subdirectory because
5960  # it helps to detect inapplicable dependency modes.  For instance
5961  # both Tru64's cc and ICC support -MD to output dependencies as a
5962  # side effect of compilation, but ICC will put the dependencies in
5963  # the current directory while Tru64 will put them in the object
5964  # directory.
5965  mkdir sub
5966
5967  am_cv_CXX_dependencies_compiler_type=none
5968  if test "$am_compiler_list" = ""; then
5969     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5970  fi
5971  for depmode in $am_compiler_list; do
5972    # Setup a source with many dependencies, because some compilers
5973    # like to wrap large dependency lists on column 80 (with \), and
5974    # we should not choose a depcomp mode which is confused by this.
5975    #
5976    # We need to recreate these files for each test, as the compiler may
5977    # overwrite some of them when testing with obscure command lines.
5978    # This happens at least with the AIX C compiler.
5979    : > sub/conftest.c
5980    for i in 1 2 3 4 5 6; do
5981      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5982      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5983      # Solaris 8's {/usr,}/bin/sh.
5984      touch sub/conftst$i.h
5985    done
5986    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5987
5988    case $depmode in
5989    nosideeffect)
5990      # after this tag, mechanisms are not by side-effect, so they'll
5991      # only be used when explicitly requested
5992      if test "x$enable_dependency_tracking" = xyes; then
5993        continue
5994      else
5995        break
5996      fi
5997      ;;
5998    none) break ;;
5999    esac
6000    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6001    # mode.  It turns out that the SunPro C++ compiler does not properly
6002    # handle `-M -o', and we need to detect this.
6003    if depmode=$depmode \
6004       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6005       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6006       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6007         >/dev/null 2>conftest.err &&
6008       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6009       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6010       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6011      # icc doesn't choke on unknown options, it will just issue warnings
6012      # or remarks (even with -Werror).  So we grep stderr for any message
6013      # that says an option was ignored or not supported.
6014      # When given -MP, icc 7.0 and 7.1 complain thusly:
6015      #   icc: Command line warning: ignoring option '-M'; no argument required
6016      # The diagnosis changed in icc 8.0:
6017      #   icc: Command line remark: option '-MP' not supported
6018      if (grep 'ignoring option' conftest.err ||
6019          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6020        am_cv_CXX_dependencies_compiler_type=$depmode
6021        break
6022      fi
6023    fi
6024  done
6025
6026  cd ..
6027  rm -rf conftest.dir
6028else
6029  am_cv_CXX_dependencies_compiler_type=none
6030fi
6031
6032fi
6033echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6034echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6035CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6036
6037
6038
6039if
6040  test "x$enable_dependency_tracking" != xno \
6041  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6042  am__fastdepCXX_TRUE=
6043  am__fastdepCXX_FALSE='#'
6044else
6045  am__fastdepCXX_TRUE='#'
6046  am__fastdepCXX_FALSE=
6047fi
6048
6049
6050
6051echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6052echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6053    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6054if test "${enable_maintainer_mode+set}" = set; then
6055  enableval="$enable_maintainer_mode"
6056  USE_MAINTAINER_MODE=$enableval
6057else
6058  USE_MAINTAINER_MODE=no
6059fi;
6060  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6061echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6062
6063
6064if test $USE_MAINTAINER_MODE = yes; then
6065  MAINTAINER_MODE_TRUE=
6066  MAINTAINER_MODE_FALSE='#'
6067else
6068  MAINTAINER_MODE_TRUE='#'
6069  MAINTAINER_MODE_FALSE=
6070fi
6071
6072  MAINT=$MAINTAINER_MODE_TRUE
6073
6074
6075
6076coin_have_externals=no
6077if test "$enable_maintainer_mode" = yes; then
6078
6079  # If maintainer mode is chosen, we make sure that the correct versions
6080  # of the tools are used, and that we know where libtool.m4 is (to
6081  # recreate acinclude.m4)
6082
6083
6084  LIBTOOLM4=
6085  # Normally, $HOME
6086  AUTOTOOLS_DFLT=$HOME
6087
6088  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6089echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6090if test "${ac_cv_use_correct_autotools+set}" = set; then
6091  echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093  ac_cv_use_correct_autotools=check
6094fi
6095echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6096echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6097
6098  if test $ac_cv_use_correct_autotools = check; then
6099    ac_cv_use_correct_autotools=yes
6100    # Check if we have autoconf
6101    # Extract the first word of "autoconf", so it can be a program name with args.
6102set dummy autoconf; ac_word=$2
6103echo "$as_me:$LINENO: checking for $ac_word" >&5
6104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6105if test "${ac_cv_prog_have_autoconf+set}" = set; then
6106  echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
6108  if test -n "$have_autoconf"; then
6109  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6110else
6111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114  IFS=$as_save_IFS
6115  test -z "$as_dir" && as_dir=.
6116  for ac_exec_ext in '' $ac_executable_extensions; do
6117  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6118    ac_cv_prog_have_autoconf="yes"
6119    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6120    break 2
6121  fi
6122done
6123done
6124
6125  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6126fi
6127fi
6128have_autoconf=$ac_cv_prog_have_autoconf
6129if test -n "$have_autoconf"; then
6130  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6131echo "${ECHO_T}$have_autoconf" >&6
6132else
6133  echo "$as_me:$LINENO: result: no" >&5
6134echo "${ECHO_T}no" >&6
6135fi
6136
6137    if test $have_autoconf = no; then
6138      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6139echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6140   { (exit 1); exit 1; }; }
6141    fi
6142
6143    # Check whether autoconf is the correct version
6144    correct_version='2.59'
6145    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6146    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6147echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6148    autoconf --version > confauto.out 2>&1
6149    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6150      echo "$as_me:$LINENO: result: yes" >&5
6151echo "${ECHO_T}yes" >&6
6152    else
6153      rm -f confauto.out
6154      echo "$as_me:$LINENO: result: no" >&5
6155echo "${ECHO_T}no" >&6
6156      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6157echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6158   { (exit 1); exit 1; }; }
6159    fi
6160    rm -f confauto.out
6161
6162    # Check if the executable autoconf is picked up from the correct location
6163    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6164echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6165    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6166    autoconf_dir=`cd $autoconf_dir; pwd`
6167    if test x$AUTOTOOLS_DIR = x; then
6168      want_dir=$AUTOTOOLS_DFLT/bin
6169    else
6170      want_dir=$AUTOTOOLS_DIR/bin
6171    fi
6172    if test $autoconf_dir = `cd $want_dir; pwd`; then
6173      echo "$as_me:$LINENO: result: yes" >&5
6174echo "${ECHO_T}yes" >&6
6175    else
6176      rm -f confauto.out
6177      echo "$as_me:$LINENO: result: no" >&5
6178echo "${ECHO_T}no" >&6
6179      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6180echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6181   { (exit 1); exit 1; }; }
6182    fi
6183
6184    # Check if we have automake
6185    # Extract the first word of "automake", so it can be a program name with args.
6186set dummy automake; ac_word=$2
6187echo "$as_me:$LINENO: checking for $ac_word" >&5
6188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6189if test "${ac_cv_prog_have_automake+set}" = set; then
6190  echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192  if test -n "$have_automake"; then
6193  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6194else
6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
6197do
6198  IFS=$as_save_IFS
6199  test -z "$as_dir" && as_dir=.
6200  for ac_exec_ext in '' $ac_executable_extensions; do
6201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6202    ac_cv_prog_have_automake="yes"
6203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204    break 2
6205  fi
6206done
6207done
6208
6209  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6210fi
6211fi
6212have_automake=$ac_cv_prog_have_automake
6213if test -n "$have_automake"; then
6214  echo "$as_me:$LINENO: result: $have_automake" >&5
6215echo "${ECHO_T}$have_automake" >&6
6216else
6217  echo "$as_me:$LINENO: result: no" >&5
6218echo "${ECHO_T}no" >&6
6219fi
6220
6221    if test $have_automake = no; then
6222      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6223echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6224   { (exit 1); exit 1; }; }
6225    fi
6226
6227    # Check whether automake is the correct version
6228    correct_version='1.9.6'
6229    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6230    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6231echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6232    automake --version > confauto.out 2>&1
6233    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6234      echo "$as_me:$LINENO: result: yes" >&5
6235echo "${ECHO_T}yes" >&6
6236    else
6237      rm -f confauto.out
6238      echo "$as_me:$LINENO: result: no" >&5
6239echo "${ECHO_T}no" >&6
6240      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6241echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6242   { (exit 1); exit 1; }; }
6243    fi
6244    rm -f confauto.out
6245
6246    # Check if the executable automake is picked up from the correct location
6247    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6248echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6249    automake_dir=`which automake | sed -e 's=/automake=='`
6250    automake_dir=`cd $automake_dir; pwd`
6251    if test x$AUTOTOOLS_DIR = x; then
6252      want_dir=$AUTOTOOLS_DFLT/bin
6253    else
6254      want_dir=$AUTOTOOLS_DIR/bin
6255    fi
6256    if test $automake_dir = `cd $want_dir; pwd`; then
6257      echo "$as_me:$LINENO: result: yes" >&5
6258echo "${ECHO_T}yes" >&6
6259    else
6260      rm -f confauto.out
6261      echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6
6263      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6264echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6265   { (exit 1); exit 1; }; }
6266    fi
6267
6268    # Check if this is the correct version of libtool (with escaped dots)
6269    if test x$AUTOTOOLS_DIR = x; then
6270      want_dir=$AUTOTOOLS_DFLT/share
6271    else
6272      want_dir=$AUTOTOOLS_DIR/share
6273    fi
6274    correct_version='1.5.22'
6275    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6276    if test -r $want_dir/libtool/ltmain.sh; then
6277  have_ltmain=yes
6278  :
6279else
6280  have_ltmain=no
6281  :
6282fi
6283
6284    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6285echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6286    if test $have_ltmain = yes; then
6287    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6288        echo "$as_me:$LINENO: result: yes" >&5
6289echo "${ECHO_T}yes" >&6
6290      else
6291        echo "$as_me:$LINENO: result: no" >&5
6292echo "${ECHO_T}no" >&6
6293        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6294echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6295   { (exit 1); exit 1; }; }
6296      fi
6297    else
6298      echo "$as_me:$LINENO: result: no" >&5
6299echo "${ECHO_T}no" >&6
6300      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6301echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6302   { (exit 1); exit 1; }; }
6303    fi
6304  fi
6305
6306  # Check if we can find the libtool file
6307  if test x$AUTOTOOLS_DIR = x; then
6308    want_dir=$AUTOTOOLS_DFLT/share
6309  else
6310    want_dir=$AUTOTOOLS_DIR/share
6311  fi
6312  if test -r $want_dir/aclocal/libtool.m4; then
6313  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6314  :
6315else
6316  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6317echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6318   { (exit 1); exit 1; }; }
6319  :
6320fi
6321
6322
6323  # Check if we have an Externals file
6324  if test -r $srcdir/Externals; then
6325    coin_have_externals=yes
6326  fi
6327  # Check if subversion is installed and understands https
6328  # Extract the first word of "svn", so it can be a program name with args.
6329set dummy svn; ac_word=$2
6330echo "$as_me:$LINENO: checking for $ac_word" >&5
6331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6332if test "${ac_cv_prog_have_svn+set}" = set; then
6333  echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335  if test -n "$have_svn"; then
6336  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6337else
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341  IFS=$as_save_IFS
6342  test -z "$as_dir" && as_dir=.
6343  for ac_exec_ext in '' $ac_executable_extensions; do
6344  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345    ac_cv_prog_have_svn="yes"
6346    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347    break 2
6348  fi
6349done
6350done
6351
6352  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6353fi
6354fi
6355have_svn=$ac_cv_prog_have_svn
6356if test -n "$have_svn"; then
6357  echo "$as_me:$LINENO: result: $have_svn" >&5
6358echo "${ECHO_T}$have_svn" >&6
6359else
6360  echo "$as_me:$LINENO: result: no" >&5
6361echo "${ECHO_T}no" >&6
6362fi
6363
6364  if test x$have_svn = xyes; then
6365    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6366echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6367if test "${ac_cv_svn_understands_https+set}" = set; then
6368  echo $ECHO_N "(cached) $ECHO_C" >&6
6369else
6370  svn --version > confauto.out 2>&1
6371                    if $EGREP https confauto.out >/dev/null 2>&1; then
6372                      ac_cv_svn_understands_https=yes
6373                    else
6374                      ac_cv_svn_understands_https=no
6375                      have_svn=no
6376                      ac_cv_prog_have_svn=no
6377                    fi
6378                    rm -f confauto.out
6379fi
6380echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6381echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6382  fi
6383
6384  # Find the location of the BuildTools directory
6385  BUILDTOOLSDIR=
6386  if test -r $srcdir/BuildTools/coin.m4; then
6387    BUILDTOOLSDIR=$srcdir/BuildTools
6388  else
6389    if test -r $srcdir/../BuildTools/coin.m4; then
6390      BUILDTOOLSDIR=$srcdir/../BuildTools
6391    else
6392      if test -r $srcdir/../../BuildTools/coin.m4; then
6393        BUILDTOOLSDIR=$srcdir/../../BuildTools
6394      else
6395        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6396echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6397   { (exit 1); exit 1; }; }
6398      fi
6399    fi
6400  fi
6401
6402
6403  # The following variable is set to the name of the directory where
6404  # the autotool scripts are located
6405
6406  AUX_DIR=$ac_aux_dir
6407fi
6408
6409# helpful variable for the base directory of this package
6410abs_source_dir=`cd $srcdir; pwd`
6411
6412
6413# Stuff for example Makefiles
6414if test x$prefix = xNONE; then
6415  full_prefix=$ac_default_prefix
6416else
6417  full_prefix=$prefix
6418fi
6419full_prefix=`cd $full_prefix ; pwd`
6420
6421abs_lib_dir=$full_prefix/lib
6422
6423abs_include_dir=$full_prefix/include
6424
6425abs_bin_dir=$full_prefix/bin
6426
6427
6428
6429if test $coin_have_externals = yes && test x$have_svn = xyes; then
6430  HAVE_EXTERNALS_TRUE=
6431  HAVE_EXTERNALS_FALSE='#'
6432else
6433  HAVE_EXTERNALS_TRUE='#'
6434  HAVE_EXTERNALS_FALSE=
6435fi
6436
6437
6438# AC_MSG_NOTICE([End automake initialisation.])
6439
6440
6441
6442LIBTOOL=
6443if test -r ../libtool; then
6444  coin_config_dir=..
6445  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6446fi
6447if test "x$LIBTOOL" = x; then
6448  if test -r ../../libtool; then
6449    coin_config_dir=../..
6450    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6451  fi
6452fi
6453
6454if test "x$LIBTOOL" = x; then
6455# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6456  # Stuff for libtool
6457  # Check whether --enable-shared or --disable-shared was given.
6458if test "${enable_shared+set}" = set; then
6459  enableval="$enable_shared"
6460  p=${PACKAGE-default}
6461    case $enableval in
6462    yes) enable_shared=yes ;;
6463    no) enable_shared=no ;;
6464    *)
6465      enable_shared=no
6466      # Look at the argument we got.  We use all the common list separators.
6467      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6468      for pkg in $enableval; do
6469        IFS="$lt_save_ifs"
6470        if test "X$pkg" = "X$p"; then
6471          enable_shared=yes
6472        fi
6473      done
6474      IFS="$lt_save_ifs"
6475      ;;
6476    esac
6477else
6478  enable_shared=yes
6479fi;
6480
6481# Check whether --enable-fast-install or --disable-fast-install was given.
6482if test "${enable_fast_install+set}" = set; then
6483  enableval="$enable_fast_install"
6484  p=${PACKAGE-default}
6485    case $enableval in
6486    yes) enable_fast_install=yes ;;
6487    no) enable_fast_install=no ;;
6488    *)
6489      enable_fast_install=no
6490      # Look at the argument we got.  We use all the common list separators.
6491      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6492      for pkg in $enableval; do
6493        IFS="$lt_save_ifs"
6494        if test "X$pkg" = "X$p"; then
6495          enable_fast_install=yes
6496        fi
6497      done
6498      IFS="$lt_save_ifs"
6499      ;;
6500    esac
6501else
6502  enable_fast_install=yes
6503fi;
6504
6505echo "$as_me:$LINENO: checking host system type" >&5
6506echo $ECHO_N "checking host system type... $ECHO_C" >&6
6507if test "${ac_cv_host+set}" = set; then
6508  echo $ECHO_N "(cached) $ECHO_C" >&6
6509else
6510  ac_cv_host_alias=$host_alias
6511test -z "$ac_cv_host_alias" &&
6512  ac_cv_host_alias=$ac_cv_build_alias
6513ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6514  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6515echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6516   { (exit 1); exit 1; }; }
6517
6518fi
6519echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6520echo "${ECHO_T}$ac_cv_host" >&6
6521host=$ac_cv_host
6522host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6523host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6524host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6525
6526
6527echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6528echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6529if test "${lt_cv_path_SED+set}" = set; then
6530  echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532  # Loop through the user's path and test for sed and gsed.
6533# Then use that list of sed's as ones to test for truncation.
6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535for as_dir in $PATH
6536do
6537  IFS=$as_save_IFS
6538  test -z "$as_dir" && as_dir=.
6539  for lt_ac_prog in sed gsed; do
6540    for ac_exec_ext in '' $ac_executable_extensions; do
6541      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6542        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6543      fi
6544    done
6545  done
6546done
6547lt_ac_max=0
6548lt_ac_count=0
6549# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6550# along with /bin/sed that truncates output.
6551for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6552  test ! -f $lt_ac_sed && continue
6553  cat /dev/null > conftest.in
6554  lt_ac_count=0
6555  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6556  # Check for GNU sed and select it if it is found.
6557  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6558    lt_cv_path_SED=$lt_ac_sed
6559    break
6560  fi
6561  while true; do
6562    cat conftest.in conftest.in >conftest.tmp
6563    mv conftest.tmp conftest.in
6564    cp conftest.in conftest.nl
6565    echo >>conftest.nl
6566    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6567    cmp -s conftest.out conftest.nl || break
6568    # 10000 chars as input seems more than enough
6569    test $lt_ac_count -gt 10 && break
6570    lt_ac_count=`expr $lt_ac_count + 1`
6571    if test $lt_ac_count -gt $lt_ac_max; then
6572      lt_ac_max=$lt_ac_count
6573      lt_cv_path_SED=$lt_ac_sed
6574    fi
6575  done
6576done
6577
6578fi
6579
6580SED=$lt_cv_path_SED
6581echo "$as_me:$LINENO: result: $SED" >&5
6582echo "${ECHO_T}$SED" >&6
6583
6584
6585# Check whether --with-gnu-ld or --without-gnu-ld was given.
6586if test "${with_gnu_ld+set}" = set; then
6587  withval="$with_gnu_ld"
6588  test "$withval" = no || with_gnu_ld=yes
6589else
6590  with_gnu_ld=no
6591fi;
6592ac_prog=ld
6593if test "$GCC" = yes; then
6594  # Check if gcc -print-prog-name=ld gives a path.
6595  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6596echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6597  case $host in
6598  *-*-mingw*)
6599    # gcc leaves a trailing carriage return which upsets mingw
6600    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6601  *)
6602    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6603  esac
6604  case $ac_prog in
6605    # Accept absolute paths.
6606    [\\/]* | ?:[\\/]*)
6607      re_direlt='/[^/][^/]*/\.\./'
6608      # Canonicalize the pathname of ld
6609      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6610      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6611        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6612      done
6613      test -z "$LD" && LD="$ac_prog"
6614      ;;
6615  "")
6616    # If it fails, then pretend we aren't using GCC.
6617    ac_prog=ld
6618    ;;
6619  *)
6620    # If it is relative, then search for the first ld in PATH.
6621    with_gnu_ld=unknown
6622    ;;
6623  esac
6624elif test "$with_gnu_ld" = yes; then
6625  echo "$as_me:$LINENO: checking for GNU ld" >&5
6626echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6627else
6628  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6629echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6630fi
6631if test "${lt_cv_path_LD+set}" = set; then
6632  echo $ECHO_N "(cached) $ECHO_C" >&6
6633else
6634  if test -z "$LD"; then
6635  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6636  for ac_dir in $PATH; do
6637    IFS="$lt_save_ifs"
6638    test -z "$ac_dir" && ac_dir=.
6639    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6640      lt_cv_path_LD="$ac_dir/$ac_prog"
6641      # Check to see if the program is GNU ld.  I'd rather use --version,
6642      # but apparently some variants of GNU ld only accept -v.
6643      # Break only if it was the GNU/non-GNU ld that we prefer.
6644      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6645      *GNU* | *'with BFD'*)
6646        test "$with_gnu_ld" != no && break
6647        ;;
6648      *)
6649        test "$with_gnu_ld" != yes && break
6650        ;;
6651      esac
6652    fi
6653  done
6654  IFS="$lt_save_ifs"
6655else
6656  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6657fi
6658fi
6659
6660LD="$lt_cv_path_LD"
6661if test -n "$LD"; then
6662  echo "$as_me:$LINENO: result: $LD" >&5
6663echo "${ECHO_T}$LD" >&6
6664else
6665  echo "$as_me:$LINENO: result: no" >&5
6666echo "${ECHO_T}no" >&6
6667fi
6668test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6669echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6670   { (exit 1); exit 1; }; }
6671echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6672echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6673if test "${lt_cv_prog_gnu_ld+set}" = set; then
6674  echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6677case `$LD -v 2>&1 </dev/null` in
6678*GNU* | *'with BFD'*)
6679  lt_cv_prog_gnu_ld=yes
6680  ;;
6681*)
6682  lt_cv_prog_gnu_ld=no
6683  ;;
6684esac
6685fi
6686echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6687echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6688with_gnu_ld=$lt_cv_prog_gnu_ld
6689
6690
6691echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6692echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6693if test "${lt_cv_ld_reload_flag+set}" = set; then
6694  echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696  lt_cv_ld_reload_flag='-r'
6697fi
6698echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6699echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6700reload_flag=$lt_cv_ld_reload_flag
6701case $reload_flag in
6702"" | " "*) ;;
6703*) reload_flag=" $reload_flag" ;;
6704esac
6705reload_cmds='$LD$reload_flag -o $output$reload_objs'
6706case $host_os in
6707  darwin*)
6708    if test "$GCC" = yes; then
6709      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6710    else
6711      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6712    fi
6713    ;;
6714esac
6715
6716echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6717echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6718if test "${lt_cv_path_NM+set}" = set; then
6719  echo $ECHO_N "(cached) $ECHO_C" >&6
6720else
6721  if test -n "$NM"; then
6722  # Let the user override the test.
6723  lt_cv_path_NM="$NM"
6724else
6725  lt_nm_to_check="${ac_tool_prefix}nm"
6726  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6727    lt_nm_to_check="$lt_nm_to_check nm"
6728  fi
6729  for lt_tmp_nm in $lt_nm_to_check; do
6730    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6731    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6732      IFS="$lt_save_ifs"
6733      test -z "$ac_dir" && ac_dir=.
6734      tmp_nm="$ac_dir/$lt_tmp_nm"
6735      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6736        # Check to see if the nm accepts a BSD-compat flag.
6737        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6738        #   nm: unknown option "B" ignored
6739        # Tru64's nm complains that /dev/null is an invalid object file
6740        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6741        */dev/null* | *'Invalid file or object type'*)
6742          lt_cv_path_NM="$tmp_nm -B"
6743          break
6744          ;;
6745        *)
6746          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6747          */dev/null*)
6748            lt_cv_path_NM="$tmp_nm -p"
6749            break
6750            ;;
6751          *)
6752            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6753            continue # so that we can try to find one that supports BSD flags
6754            ;;
6755          esac
6756          ;;
6757        esac
6758      fi
6759    done
6760    IFS="$lt_save_ifs"
6761  done
6762  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6763fi
6764fi
6765echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6766echo "${ECHO_T}$lt_cv_path_NM" >&6
6767NM="$lt_cv_path_NM"
6768
6769echo "$as_me:$LINENO: checking whether ln -s works" >&5
6770echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6771LN_S=$as_ln_s
6772if test "$LN_S" = "ln -s"; then
6773  echo "$as_me:$LINENO: result: yes" >&5
6774echo "${ECHO_T}yes" >&6
6775else
6776  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6777echo "${ECHO_T}no, using $LN_S" >&6
6778fi
6779
6780echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6781echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6782if test "${lt_cv_deplibs_check_method+set}" = set; then
6783  echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785  lt_cv_file_magic_cmd='$MAGIC_CMD'
6786lt_cv_file_magic_test_file=
6787lt_cv_deplibs_check_method='unknown'
6788# Need to set the preceding variable on all platforms that support
6789# interlibrary dependencies.
6790# 'none' -- dependencies not supported.
6791# `unknown' -- same as none, but documents that we really don't know.
6792# 'pass_all' -- all dependencies passed with no checks.
6793# 'test_compile' -- check by making test program.
6794# 'file_magic [[regex]]' -- check by looking for files in library path
6795# which responds to the $file_magic_cmd with a given extended regex.
6796# If you have `file' or equivalent on your system and you're not sure
6797# whether `pass_all' will *always* work, you probably want this one.
6798
6799case $host_os in
6800aix4* | aix5*)
6801  lt_cv_deplibs_check_method=pass_all
6802  ;;
6803
6804beos*)
6805  lt_cv_deplibs_check_method=pass_all
6806  ;;
6807
6808bsdi[45]*)
6809  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6810  lt_cv_file_magic_cmd='/usr/bin/file -L'
6811  lt_cv_file_magic_test_file=/shlib/libc.so
6812  ;;
6813
6814cygwin*)
6815  # func_win32_libid is a shell function defined in ltmain.sh
6816  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6817  lt_cv_file_magic_cmd='func_win32_libid'
6818  ;;
6819
6820mingw* | pw32*)
6821  # Base MSYS/MinGW do not provide the 'file' command needed by
6822  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6823  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6824  lt_cv_file_magic_cmd='$OBJDUMP -f'
6825  ;;
6826
6827darwin* | rhapsody*)
6828  lt_cv_deplibs_check_method=pass_all
6829  ;;
6830
6831freebsd* | kfreebsd*-gnu | dragonfly*)
6832  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6833    case $host_cpu in
6834    i*86 )
6835      # Not sure whether the presence of OpenBSD here was a mistake.
6836      # Let's accept both of them until this is cleared up.
6837      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6838      lt_cv_file_magic_cmd=/usr/bin/file
6839      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6840      ;;
6841    esac
6842  else
6843    lt_cv_deplibs_check_method=pass_all
6844  fi
6845  ;;
6846
6847gnu*)
6848  lt_cv_deplibs_check_method=pass_all
6849  ;;
6850
6851hpux10.20* | hpux11*)
6852  lt_cv_file_magic_cmd=/usr/bin/file
6853  case $host_cpu in
6854  ia64*)
6855    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6856    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6857    ;;
6858  hppa*64*)
6859    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]'
6860    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6861    ;;
6862  *)
6863    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6864    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6865    ;;
6866  esac
6867  ;;
6868
6869interix3*)
6870  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6871  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6872  ;;
6873
6874irix5* | irix6* | nonstopux*)
6875  case $LD in
6876  *-32|*"-32 ") libmagic=32-bit;;
6877  *-n32|*"-n32 ") libmagic=N32;;
6878  *-64|*"-64 ") libmagic=64-bit;;
6879  *) libmagic=never-match;;
6880  esac
6881  lt_cv_deplibs_check_method=pass_all
6882  ;;
6883
6884# This must be Linux ELF.
6885linux*)
6886  lt_cv_deplibs_check_method=pass_all
6887  ;;
6888
6889netbsd*)
6890  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6891    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6892  else
6893    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6894  fi
6895  ;;
6896
6897newos6*)
6898  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6899  lt_cv_file_magic_cmd=/usr/bin/file
6900  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6901  ;;
6902
6903nto-qnx*)
6904  lt_cv_deplibs_check_method=unknown
6905  ;;
6906
6907openbsd*)
6908  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6909    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6910  else
6911    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6912  fi
6913  ;;
6914
6915osf3* | osf4* | osf5*)
6916  lt_cv_deplibs_check_method=pass_all
6917  ;;
6918
6919solaris*)
6920  lt_cv_deplibs_check_method=pass_all
6921  ;;
6922
6923sysv4 | sysv4.3*)
6924  case $host_vendor in
6925  motorola)
6926    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]'
6927    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6928    ;;
6929  ncr)
6930    lt_cv_deplibs_check_method=pass_all
6931    ;;
6932  sequent)
6933    lt_cv_file_magic_cmd='/bin/file'
6934    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6935    ;;
6936  sni)
6937    lt_cv_file_magic_cmd='/bin/file'
6938    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6939    lt_cv_file_magic_test_file=/lib/libc.so
6940    ;;
6941  siemens)
6942    lt_cv_deplibs_check_method=pass_all
6943    ;;
6944  pc)
6945    lt_cv_deplibs_check_method=pass_all
6946    ;;
6947  esac
6948  ;;
6949
6950sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6951  lt_cv_deplibs_check_method=pass_all
6952  ;;
6953esac
6954
6955fi
6956echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6957echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6958file_magic_cmd=$lt_cv_file_magic_cmd
6959deplibs_check_method=$lt_cv_deplibs_check_method
6960test -z "$deplibs_check_method" && deplibs_check_method=unknown
6961
6962
6963
6964
6965# If no C compiler was specified, use CC.
6966LTCC=${LTCC-"$CC"}
6967
6968# If no C compiler flags were specified, use CFLAGS.
6969LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6970
6971# Allow CC to be a program name with arguments.
6972compiler=$CC
6973
6974# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6975if test "${enable_libtool_lock+set}" = set; then
6976  enableval="$enable_libtool_lock"
6977
6978fi;
6979test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6980
6981# Some flags need to be propagated to the compiler or linker for good
6982# libtool support.
6983case $host in
6984ia64-*-hpux*)
6985  # Find out which ABI we are using.
6986  echo 'int i;' > conftest.$ac_ext
6987  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6988  (eval $ac_compile) 2>&5
6989  ac_status=$?
6990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991  (exit $ac_status); }; then
6992    case `/usr/bin/file conftest.$ac_objext` in
6993    *ELF-32*)
6994      HPUX_IA64_MODE="32"
6995      ;;
6996    *ELF-64*)
6997      HPUX_IA64_MODE="64"
6998      ;;
6999    esac
7000  fi
7001  rm -rf conftest*
7002  ;;
7003*-*-irix6*)
7004  # Find out which ABI we are using.
7005  echo '#line 7005 "configure"' > conftest.$ac_ext
7006  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7007  (eval $ac_compile) 2>&5
7008  ac_status=$?
7009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010  (exit $ac_status); }; then
7011   if test "$lt_cv_prog_gnu_ld" = yes; then
7012    case `/usr/bin/file conftest.$ac_objext` in
7013    *32-bit*)
7014      LD="${LD-ld} -melf32bsmip"
7015      ;;
7016    *N32*)
7017      LD="${LD-ld} -melf32bmipn32"
7018      ;;
7019    *64-bit*)
7020      LD="${LD-ld} -melf64bmip"
7021      ;;
7022    esac
7023   else
7024    case `/usr/bin/file conftest.$ac_objext` in
7025    *32-bit*)
7026      LD="${LD-ld} -32"
7027      ;;
7028    *N32*)
7029      LD="${LD-ld} -n32"
7030      ;;
7031    *64-bit*)
7032      LD="${LD-ld} -64"
7033      ;;
7034    esac
7035   fi
7036  fi
7037  rm -rf conftest*
7038  ;;
7039
7040x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7041  # Find out which ABI we are using.
7042  echo 'int i;' > conftest.$ac_ext
7043  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7044  (eval $ac_compile) 2>&5
7045  ac_status=$?
7046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047  (exit $ac_status); }; then
7048    case `/usr/bin/file conftest.o` in
7049    *32-bit*)
7050      case $host in
7051        x86_64-*linux*)
7052          LD="${LD-ld} -m elf_i386"
7053          ;;
7054        ppc64-*linux*|powerpc64-*linux*)
7055          LD="${LD-ld} -m elf32ppclinux"
7056          ;;
7057        s390x-*linux*)
7058          LD="${LD-ld} -m elf_s390"
7059          ;;
7060        sparc64-*linux*)
7061          LD="${LD-ld} -m elf32_sparc"
7062          ;;
7063      esac
7064      ;;
7065    *64-bit*)
7066      case $host in
7067        x86_64-*linux*)
7068          LD="${LD-ld} -m elf_x86_64"
7069          ;;
7070        ppc*-*linux*|powerpc*-*linux*)
7071          LD="${LD-ld} -m elf64ppc"
7072          ;;
7073        s390*-*linux*)
7074          LD="${LD-ld} -m elf64_s390"
7075          ;;
7076        sparc*-*linux*)
7077          LD="${LD-ld} -m elf64_sparc"
7078          ;;
7079      esac
7080      ;;
7081    esac
7082  fi
7083  rm -rf conftest*
7084  ;;
7085
7086*-*-sco3.2v5*)
7087  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7088  SAVE_CFLAGS="$CFLAGS"
7089  CFLAGS="$CFLAGS -belf"
7090  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7091echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7092if test "${lt_cv_cc_needs_belf+set}" = set; then
7093  echo $ECHO_N "(cached) $ECHO_C" >&6
7094else
7095  ac_ext=c
7096ac_cpp='$CPP $CPPFLAGS'
7097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7099ac_compiler_gnu=$ac_cv_c_compiler_gnu
7100
7101     cat >conftest.$ac_ext <<_ACEOF
7102/* confdefs.h.  */
7103_ACEOF
7104cat confdefs.h >>conftest.$ac_ext
7105cat >>conftest.$ac_ext <<_ACEOF
7106/* end confdefs.h.  */
7107
7108int
7109main ()
7110{
7111
7112  ;
7113  return 0;
7114}
7115_ACEOF
7116rm -f conftest.$ac_objext conftest$ac_exeext
7117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118  (eval $ac_link) 2>conftest.er1
7119  ac_status=$?
7120  grep -v '^ *+' conftest.er1 >conftest.err
7121  rm -f conftest.er1
7122  cat conftest.err >&5
7123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124  (exit $ac_status); } &&
7125         { ac_try='test -z "$ac_c_werror_flag"
7126                         || test ! -s conftest.err'
7127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7128  (eval $ac_try) 2>&5
7129  ac_status=$?
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); }; } &&
7132         { ac_try='test -s conftest$ac_exeext'
7133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134  (eval $ac_try) 2>&5
7135  ac_status=$?
7136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137  (exit $ac_status); }; }; then
7138  lt_cv_cc_needs_belf=yes
7139else
7140  echo "$as_me: failed program was:" >&5
7141sed 's/^/| /' conftest.$ac_ext >&5
7142
7143lt_cv_cc_needs_belf=no
7144fi
7145rm -f conftest.err conftest.$ac_objext \
7146      conftest$ac_exeext conftest.$ac_ext
7147     ac_ext=c
7148ac_cpp='$CPP $CPPFLAGS'
7149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7151ac_compiler_gnu=$ac_cv_c_compiler_gnu
7152
7153fi
7154echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7155echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7156  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7157    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7158    CFLAGS="$SAVE_CFLAGS"
7159  fi
7160  ;;
7161sparc*-*solaris*)
7162  # Find out which ABI we are using.
7163  echo 'int i;' > conftest.$ac_ext
7164  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165  (eval $ac_compile) 2>&5
7166  ac_status=$?
7167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168  (exit $ac_status); }; then
7169    case `/usr/bin/file conftest.o` in
7170    *64-bit*)
7171      case $lt_cv_prog_gnu_ld in
7172      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7173      *)    LD="${LD-ld} -64" ;;
7174      esac
7175      ;;
7176    esac
7177  fi
7178  rm -rf conftest*
7179  ;;
7180
7181
7182esac
7183
7184need_locks="$enable_libtool_lock"
7185
7186
7187ac_ext=c
7188ac_cpp='$CPP $CPPFLAGS'
7189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191ac_compiler_gnu=$ac_cv_c_compiler_gnu
7192echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7193echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7194# On Suns, sometimes $CPP names a directory.
7195if test -n "$CPP" && test -d "$CPP"; then
7196  CPP=
7197fi
7198if test -z "$CPP"; then
7199  if test "${ac_cv_prog_CPP+set}" = set; then
7200  echo $ECHO_N "(cached) $ECHO_C" >&6
7201else
7202      # Double quotes because CPP needs to be expanded
7203    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7204    do
7205      ac_preproc_ok=false
7206for ac_c_preproc_warn_flag in '' yes
7207do
7208  # Use a header file that comes with gcc, so configuring glibc
7209  # with a fresh cross-compiler works.
7210  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7211  # <limits.h> exists even on freestanding compilers.
7212  # On the NeXT, cc -E runs the code through the compiler's parser,
7213  # not just through cpp. "Syntax error" is here to catch this case.
7214  cat >conftest.$ac_ext <<_ACEOF
7215/* confdefs.h.  */
7216_ACEOF
7217cat confdefs.h >>conftest.$ac_ext
7218cat >>conftest.$ac_ext <<_ACEOF
7219/* end confdefs.h.  */
7220#ifdef __STDC__
7221# include <limits.h>
7222#else
7223# include <assert.h>
7224#endif
7225                     Syntax error
7226_ACEOF
7227if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7228  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7229  ac_status=$?
7230  grep -v '^ *+' conftest.er1 >conftest.err
7231  rm -f conftest.er1
7232  cat conftest.err >&5
7233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234  (exit $ac_status); } >/dev/null; then
7235  if test -s conftest.err; then
7236    ac_cpp_err=$ac_c_preproc_warn_flag
7237    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7238  else
7239    ac_cpp_err=
7240  fi
7241else
7242  ac_cpp_err=yes
7243fi
7244if test -z "$ac_cpp_err"; then
7245  :
7246else
7247  echo "$as_me: failed program was:" >&5
7248sed 's/^/| /' conftest.$ac_ext >&5
7249
7250  # Broken: fails on valid input.
7251continue
7252fi
7253rm -f conftest.err conftest.$ac_ext
7254
7255  # OK, works on sane cases.  Now check whether non-existent headers
7256  # can be detected and how.
7257  cat >conftest.$ac_ext <<_ACEOF
7258/* confdefs.h.  */
7259_ACEOF
7260cat confdefs.h >>conftest.$ac_ext
7261cat >>conftest.$ac_ext <<_ACEOF
7262/* end confdefs.h.  */
7263#include <ac_nonexistent.h>
7264_ACEOF
7265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7266  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7267  ac_status=$?
7268  grep -v '^ *+' conftest.er1 >conftest.err
7269  rm -f conftest.er1
7270  cat conftest.err >&5
7271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272  (exit $ac_status); } >/dev/null; then
7273  if test -s conftest.err; then
7274    ac_cpp_err=$ac_c_preproc_warn_flag
7275    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7276  else
7277    ac_cpp_err=
7278  fi
7279else
7280  ac_cpp_err=yes
7281fi
7282if test -z "$ac_cpp_err"; then
7283  # Broken: success on invalid input.
7284continue
7285else
7286  echo "$as_me: failed program was:" >&5
7287sed 's/^/| /' conftest.$ac_ext >&5
7288
7289  # Passes both tests.
7290ac_preproc_ok=:
7291break
7292fi
7293rm -f conftest.err conftest.$ac_ext
7294
7295done
7296# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7297rm -f conftest.err conftest.$ac_ext
7298if $ac_preproc_ok; then
7299  break
7300fi
7301
7302    done
7303    ac_cv_prog_CPP=$CPP
7304
7305fi
7306  CPP=$ac_cv_prog_CPP
7307else
7308  ac_cv_prog_CPP=$CPP
7309fi
7310echo "$as_me:$LINENO: result: $CPP" >&5
7311echo "${ECHO_T}$CPP" >&6
7312ac_preproc_ok=false
7313for ac_c_preproc_warn_flag in '' yes
7314do
7315  # Use a header file that comes with gcc, so configuring glibc
7316  # with a fresh cross-compiler works.
7317  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7318  # <limits.h> exists even on freestanding compilers.
7319  # On the NeXT, cc -E runs the code through the compiler's parser,
7320  # not just through cpp. "Syntax error" is here to catch this case.
7321  cat >conftest.$ac_ext <<_ACEOF
7322/* confdefs.h.  */
7323_ACEOF
7324cat confdefs.h >>conftest.$ac_ext
7325cat >>conftest.$ac_ext <<_ACEOF
7326/* end confdefs.h.  */
7327#ifdef __STDC__
7328# include <limits.h>
7329#else
7330# include <assert.h>
7331#endif
7332                     Syntax error
7333_ACEOF
7334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7335  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7336  ac_status=$?
7337  grep -v '^ *+' conftest.er1 >conftest.err
7338  rm -f conftest.er1
7339  cat conftest.err >&5
7340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341  (exit $ac_status); } >/dev/null; then
7342  if test -s conftest.err; then
7343    ac_cpp_err=$ac_c_preproc_warn_flag
7344    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7345  else
7346    ac_cpp_err=
7347  fi
7348else
7349  ac_cpp_err=yes
7350fi
7351if test -z "$ac_cpp_err"; then
7352  :
7353else
7354  echo "$as_me: failed program was:" >&5
7355sed 's/^/| /' conftest.$ac_ext >&5
7356
7357  # Broken: fails on valid input.
7358continue
7359fi
7360rm -f conftest.err conftest.$ac_ext
7361
7362  # OK, works on sane cases.  Now check whether non-existent headers
7363  # can be detected and how.
7364  cat >conftest.$ac_ext <<_ACEOF
7365/* confdefs.h.  */
7366_ACEOF
7367cat confdefs.h >>conftest.$ac_ext
7368cat >>conftest.$ac_ext <<_ACEOF
7369/* end confdefs.h.  */
7370#include <ac_nonexistent.h>
7371_ACEOF
7372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7373  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7374  ac_status=$?
7375  grep -v '^ *+' conftest.er1 >conftest.err
7376  rm -f conftest.er1
7377  cat conftest.err >&5
7378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379  (exit $ac_status); } >/dev/null; then
7380  if test -s conftest.err; then
7381    ac_cpp_err=$ac_c_preproc_warn_flag
7382    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7383  else
7384    ac_cpp_err=
7385  fi
7386else
7387  ac_cpp_err=yes
7388fi
7389if test -z "$ac_cpp_err"; then
7390  # Broken: success on invalid input.
7391continue
7392else
7393  echo "$as_me: failed program was:" >&5
7394sed 's/^/| /' conftest.$ac_ext >&5
7395
7396  # Passes both tests.
7397ac_preproc_ok=:
7398break
7399fi
7400rm -f conftest.err conftest.$ac_ext
7401
7402done
7403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7404rm -f conftest.err conftest.$ac_ext
7405if $ac_preproc_ok; then
7406  :
7407else
7408  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7409See \`config.log' for more details." >&5
7410echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7411See \`config.log' for more details." >&2;}
7412   { (exit 1); exit 1; }; }
7413fi
7414
7415ac_ext=c
7416ac_cpp='$CPP $CPPFLAGS'
7417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419ac_compiler_gnu=$ac_cv_c_compiler_gnu
7420
7421
7422echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7423echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7424if test "${ac_cv_header_stdc+set}" = set; then
7425  echo $ECHO_N "(cached) $ECHO_C" >&6
7426else
7427  cat >conftest.$ac_ext <<_ACEOF
7428/* confdefs.h.  */
7429_ACEOF
7430cat confdefs.h >>conftest.$ac_ext
7431cat >>conftest.$ac_ext <<_ACEOF
7432/* end confdefs.h.  */
7433#include <stdlib.h>
7434#include <stdarg.h>
7435#include <string.h>
7436#include <float.h>
7437
7438int
7439main ()
7440{
7441
7442  ;
7443  return 0;
7444}
7445_ACEOF
7446rm -f conftest.$ac_objext
7447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7448  (eval $ac_compile) 2>conftest.er1
7449  ac_status=$?
7450  grep -v '^ *+' conftest.er1 >conftest.err
7451  rm -f conftest.er1
7452  cat conftest.err >&5
7453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454  (exit $ac_status); } &&
7455         { ac_try='test -z "$ac_c_werror_flag"
7456                         || test ! -s conftest.err'
7457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458  (eval $ac_try) 2>&5
7459  ac_status=$?
7460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461  (exit $ac_status); }; } &&
7462         { ac_try='test -s conftest.$ac_objext'
7463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464  (eval $ac_try) 2>&5
7465  ac_status=$?
7466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467  (exit $ac_status); }; }; then
7468  ac_cv_header_stdc=yes
7469else
7470  echo "$as_me: failed program was:" >&5
7471sed 's/^/| /' conftest.$ac_ext >&5
7472
7473ac_cv_header_stdc=no
7474fi
7475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7476
7477if test $ac_cv_header_stdc = yes; then
7478  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7479  cat >conftest.$ac_ext <<_ACEOF
7480/* confdefs.h.  */
7481_ACEOF
7482cat confdefs.h >>conftest.$ac_ext
7483cat >>conftest.$ac_ext <<_ACEOF
7484/* end confdefs.h.  */
7485#include <string.h>
7486
7487_ACEOF
7488if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7489  $EGREP "memchr" >/dev/null 2>&1; then
7490  :
7491else
7492  ac_cv_header_stdc=no
7493fi
7494rm -f conftest*
7495
7496fi
7497
7498if test $ac_cv_header_stdc = yes; then
7499  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7500  cat >conftest.$ac_ext <<_ACEOF
7501/* confdefs.h.  */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h.  */
7506#include <stdlib.h>
7507
7508_ACEOF
7509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7510  $EGREP "free" >/dev/null 2>&1; then
7511  :
7512else
7513  ac_cv_header_stdc=no
7514fi
7515rm -f conftest*
7516
7517fi
7518
7519if test $ac_cv_header_stdc = yes; then
7520  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7521  if test "$cross_compiling" = yes; then
7522  :
7523else
7524  cat >conftest.$ac_ext <<_ACEOF
7525/* confdefs.h.  */
7526_ACEOF
7527cat confdefs.h >>conftest.$ac_ext
7528cat >>conftest.$ac_ext <<_ACEOF
7529/* end confdefs.h.  */
7530#include <ctype.h>
7531#if ((' ' & 0x0FF) == 0x020)
7532# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7533# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7534#else
7535# define ISLOWER(c) \
7536                   (('a' <= (c) && (c) <= 'i') \
7537                     || ('j' <= (c) && (c) <= 'r') \
7538                     || ('s' <= (c) && (c) <= 'z'))
7539# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7540#endif
7541
7542#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7543int
7544main ()
7545{
7546  int i;
7547  for (i = 0; i < 256; i++)
7548    if (XOR (islower (i), ISLOWER (i))
7549        || toupper (i) != TOUPPER (i))
7550      exit(2);
7551  exit (0);
7552}
7553_ACEOF
7554rm -f conftest$ac_exeext
7555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556  (eval $ac_link) 2>&5
7557  ac_status=$?
7558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561  (eval $ac_try) 2>&5
7562  ac_status=$?
7563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564  (exit $ac_status); }; }; then
7565  :
7566else
7567  echo "$as_me: program exited with status $ac_status" >&5
7568echo "$as_me: failed program was:" >&5
7569sed 's/^/| /' conftest.$ac_ext >&5
7570
7571( exit $ac_status )
7572ac_cv_header_stdc=no
7573fi
7574rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7575fi
7576fi
7577fi
7578echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7579echo "${ECHO_T}$ac_cv_header_stdc" >&6
7580if test $ac_cv_header_stdc = yes; then
7581
7582cat >>confdefs.h <<\_ACEOF
7583#define STDC_HEADERS 1
7584_ACEOF
7585
7586fi
7587
7588# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7599                  inttypes.h stdint.h unistd.h
7600do
7601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7602echo "$as_me:$LINENO: checking for $ac_header" >&5
7603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7604if eval "test \"\${$as_ac_Header+set}\" = set"; then
7605  echo $ECHO_N "(cached) $ECHO_C" >&6
7606else
7607  cat >conftest.$ac_ext <<_ACEOF
7608/* confdefs.h.  */
7609_ACEOF
7610cat confdefs.h >>conftest.$ac_ext
7611cat >>conftest.$ac_ext <<_ACEOF
7612/* end confdefs.h.  */
7613$ac_includes_default
7614
7615#include <$ac_header>
7616_ACEOF
7617rm -f conftest.$ac_objext
7618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7619  (eval $ac_compile) 2>conftest.er1
7620  ac_status=$?
7621  grep -v '^ *+' conftest.er1 >conftest.err
7622  rm -f conftest.er1
7623  cat conftest.err >&5
7624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625  (exit $ac_status); } &&
7626         { ac_try='test -z "$ac_c_werror_flag"
7627                         || test ! -s conftest.err'
7628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7629  (eval $ac_try) 2>&5
7630  ac_status=$?
7631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632  (exit $ac_status); }; } &&
7633         { ac_try='test -s conftest.$ac_objext'
7634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635  (eval $ac_try) 2>&5
7636  ac_status=$?
7637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638  (exit $ac_status); }; }; then
7639  eval "$as_ac_Header=yes"
7640else
7641  echo "$as_me: failed program was:" >&5
7642sed 's/^/| /' conftest.$ac_ext >&5
7643
7644eval "$as_ac_Header=no"
7645fi
7646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7647fi
7648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7650if test `eval echo '${'$as_ac_Header'}'` = yes; then
7651  cat >>confdefs.h <<_ACEOF
7652#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7653_ACEOF
7654
7655fi
7656
7657done
7658
7659
7660
7661for ac_header in dlfcn.h
7662do
7663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7664if eval "test \"\${$as_ac_Header+set}\" = set"; then
7665  echo "$as_me:$LINENO: checking for $ac_header" >&5
7666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7667if eval "test \"\${$as_ac_Header+set}\" = set"; then
7668  echo $ECHO_N "(cached) $ECHO_C" >&6
7669fi
7670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7672else
7673  # Is the header compilable?
7674echo "$as_me:$LINENO: checking $ac_header usability" >&5
7675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7676cat >conftest.$ac_ext <<_ACEOF
7677/* confdefs.h.  */
7678_ACEOF
7679cat confdefs.h >>conftest.$ac_ext
7680cat >>conftest.$ac_ext <<_ACEOF
7681/* end confdefs.h.  */
7682$ac_includes_default
7683#include <$ac_header>
7684_ACEOF
7685rm -f conftest.$ac_objext
7686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7687  (eval $ac_compile) 2>conftest.er1
7688  ac_status=$?
7689  grep -v '^ *+' conftest.er1 >conftest.err
7690  rm -f conftest.er1
7691  cat conftest.err >&5
7692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693  (exit $ac_status); } &&
7694         { ac_try='test -z "$ac_c_werror_flag"
7695                         || test ! -s conftest.err'
7696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7697  (eval $ac_try) 2>&5
7698  ac_status=$?
7699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700  (exit $ac_status); }; } &&
7701         { ac_try='test -s conftest.$ac_objext'
7702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703  (eval $ac_try) 2>&5
7704  ac_status=$?
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); }; }; then
7707  ac_header_compiler=yes
7708else
7709  echo "$as_me: failed program was:" >&5
7710sed 's/^/| /' conftest.$ac_ext >&5
7711
7712ac_header_compiler=no
7713fi
7714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7716echo "${ECHO_T}$ac_header_compiler" >&6
7717
7718# Is the header present?
7719echo "$as_me:$LINENO: checking $ac_header presence" >&5
7720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7721cat >conftest.$ac_ext <<_ACEOF
7722/* confdefs.h.  */
7723_ACEOF
7724cat confdefs.h >>conftest.$ac_ext
7725cat >>conftest.$ac_ext <<_ACEOF
7726/* end confdefs.h.  */
7727#include <$ac_header>
7728_ACEOF
7729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7730  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7731  ac_status=$?
7732  grep -v '^ *+' conftest.er1 >conftest.err
7733  rm -f conftest.er1
7734  cat conftest.err >&5
7735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736  (exit $ac_status); } >/dev/null; then
7737  if test -s conftest.err; then
7738    ac_cpp_err=$ac_c_preproc_warn_flag
7739    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7740  else
7741    ac_cpp_err=
7742  fi
7743else
7744  ac_cpp_err=yes
7745fi
7746if test -z "$ac_cpp_err"; then
7747  ac_header_preproc=yes
7748else
7749  echo "$as_me: failed program was:" >&5
7750sed 's/^/| /' conftest.$ac_ext >&5
7751
7752  ac_header_preproc=no
7753fi
7754rm -f conftest.err conftest.$ac_ext
7755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7756echo "${ECHO_T}$ac_header_preproc" >&6
7757
7758# So?  What about this header?
7759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7760  yes:no: )
7761    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7763    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7764echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7765    ac_header_preproc=yes
7766    ;;
7767  no:yes:* )
7768    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7769echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7770    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7771echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7772    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7773echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7774    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7775echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7776    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7778    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7779echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7780    (
7781      cat <<\_ASBOX
7782## --------------------------------------- ##
7783## Report this to couenne@list.coin-or.org ##
7784## --------------------------------------- ##
7785_ASBOX
7786    ) |
7787      sed "s/^/$as_me: WARNING:     /" >&2
7788    ;;
7789esac
7790echo "$as_me:$LINENO: checking for $ac_header" >&5
7791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7792if eval "test \"\${$as_ac_Header+set}\" = set"; then
7793  echo $ECHO_N "(cached) $ECHO_C" >&6
7794else
7795  eval "$as_ac_Header=\$ac_header_preproc"
7796fi
7797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7799
7800fi
7801if test `eval echo '${'$as_ac_Header'}'` = yes; then
7802  cat >>confdefs.h <<_ACEOF
7803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7804_ACEOF
7805
7806fi
7807
7808done
7809
7810
7811
7812if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7813    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7814    (test "X$CXX" != "Xg++"))) ; then
7815  ac_ext=cc
7816ac_cpp='$CXXCPP $CPPFLAGS'
7817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7820echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7821echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7822if test -z "$CXXCPP"; then
7823  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7824  echo $ECHO_N "(cached) $ECHO_C" >&6
7825else
7826      # Double quotes because CXXCPP needs to be expanded
7827    for CXXCPP in "$CXX -E" "/lib/cpp"
7828    do
7829      ac_preproc_ok=false
7830for ac_cxx_preproc_warn_flag in '' yes
7831do
7832  # Use a header file that comes with gcc, so configuring glibc
7833  # with a fresh cross-compiler works.
7834  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7835  # <limits.h> exists even on freestanding compilers.
7836  # On the NeXT, cc -E runs the code through the compiler's parser,
7837  # not just through cpp. "Syntax error" is here to catch this case.
7838  cat >conftest.$ac_ext <<_ACEOF
7839/* confdefs.h.  */
7840_ACEOF
7841cat confdefs.h >>conftest.$ac_ext
7842cat >>conftest.$ac_ext <<_ACEOF
7843/* end confdefs.h.  */
7844#ifdef __STDC__
7845# include <limits.h>
7846#else
7847# include <assert.h>
7848#endif
7849                     Syntax error
7850_ACEOF
7851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7852  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7853  ac_status=$?
7854  grep -v '^ *+' conftest.er1 >conftest.err
7855  rm -f conftest.er1
7856  cat conftest.err >&5
7857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858  (exit $ac_status); } >/dev/null; then
7859  if test -s conftest.err; then
7860    ac_cpp_err=$ac_cxx_preproc_warn_flag
7861    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7862  else
7863    ac_cpp_err=
7864  fi
7865else
7866  ac_cpp_err=yes
7867fi
7868if test -z "$ac_cpp_err"; then
7869  :
7870else
7871  echo "$as_me: failed program was:" >&5
7872sed 's/^/| /' conftest.$ac_ext >&5
7873
7874  # Broken: fails on valid input.
7875continue
7876fi
7877rm -f conftest.err conftest.$ac_ext
7878
7879  # OK, works on sane cases.  Now check whether non-existent headers
7880  # can be detected and how.
7881  cat >conftest.$ac_ext <<_ACEOF
7882/* confdefs.h.  */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h.  */
7887#include <ac_nonexistent.h>
7888_ACEOF
7889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7890  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7891  ac_status=$?
7892  grep -v '^ *+' conftest.er1 >conftest.err
7893  rm -f conftest.er1
7894  cat conftest.err >&5
7895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896  (exit $ac_status); } >/dev/null; then
7897  if test -s conftest.err; then
7898    ac_cpp_err=$ac_cxx_preproc_warn_flag
7899    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7900  else
7901    ac_cpp_err=
7902  fi
7903else
7904  ac_cpp_err=yes
7905fi
7906if test -z "$ac_cpp_err"; then
7907  # Broken: success on invalid input.
7908continue
7909else
7910  echo "$as_me: failed program was:" >&5
7911sed 's/^/| /' conftest.$ac_ext >&5
7912
7913  # Passes both tests.
7914ac_preproc_ok=:
7915break
7916fi
7917rm -f conftest.err conftest.$ac_ext
7918
7919done
7920# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7921rm -f conftest.err conftest.$ac_ext
7922if $ac_preproc_ok; then
7923  break
7924fi
7925
7926    done
7927    ac_cv_prog_CXXCPP=$CXXCPP
7928
7929fi
7930  CXXCPP=$ac_cv_prog_CXXCPP
7931else
7932  ac_cv_prog_CXXCPP=$CXXCPP
7933fi
7934echo "$as_me:$LINENO: result: $CXXCPP" >&5
7935echo "${ECHO_T}$CXXCPP" >&6
7936ac_preproc_ok=false
7937for ac_cxx_preproc_warn_flag in '' yes
7938do
7939  # Use a header file that comes with gcc, so configuring glibc
7940  # with a fresh cross-compiler works.
7941  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7942  # <limits.h> exists even on freestanding compilers.
7943  # On the NeXT, cc -E runs the code through the compiler's parser,
7944  # not just through cpp. "Syntax error" is here to catch this case.
7945  cat >conftest.$ac_ext <<_ACEOF
7946/* confdefs.h.  */
7947_ACEOF
7948cat confdefs.h >>conftest.$ac_ext
7949cat >>conftest.$ac_ext <<_ACEOF
7950/* end confdefs.h.  */
7951#ifdef __STDC__
7952# include <limits.h>
7953#else
7954# include <assert.h>
7955#endif
7956                     Syntax error
7957_ACEOF
7958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7959  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7960  ac_status=$?
7961  grep -v '^ *+' conftest.er1 >conftest.err
7962  rm -f conftest.er1
7963  cat conftest.err >&5
7964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965  (exit $ac_status); } >/dev/null; then
7966  if test -s conftest.err; then
7967    ac_cpp_err=$ac_cxx_preproc_warn_flag
7968    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7969  else
7970    ac_cpp_err=
7971  fi
7972else
7973  ac_cpp_err=yes
7974fi
7975if test -z "$ac_cpp_err"; then
7976  :
7977else
7978  echo "$as_me: failed program was:" >&5
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
7981  # Broken: fails on valid input.
7982continue
7983fi
7984rm -f conftest.err conftest.$ac_ext
7985
7986  # OK, works on sane cases.  Now check whether non-existent headers
7987  # can be detected and how.
7988  cat >conftest.$ac_ext <<_ACEOF
7989/* confdefs.h.  */
7990_ACEOF
7991cat confdefs.h >>conftest.$ac_ext
7992cat >>conftest.$ac_ext <<_ACEOF
7993/* end confdefs.h.  */
7994#include <ac_nonexistent.h>
7995_ACEOF
7996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7997  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7998  ac_status=$?
7999  grep -v '^ *+' conftest.er1 >conftest.err
8000  rm -f conftest.er1
8001  cat conftest.err >&5
8002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003  (exit $ac_status); } >/dev/null; then
8004  if test -s conftest.err; then
8005    ac_cpp_err=$ac_cxx_preproc_warn_flag
8006    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8007  else
8008    ac_cpp_err=
8009  fi
8010else
8011  ac_cpp_err=yes
8012fi
8013if test -z "$ac_cpp_err"; then
8014  # Broken: success on invalid input.
8015continue
8016else
8017  echo "$as_me: failed program was:" >&5
8018sed 's/^/| /' conftest.$ac_ext >&5
8019
8020  # Passes both tests.
8021ac_preproc_ok=:
8022break
8023fi
8024rm -f conftest.err conftest.$ac_ext
8025
8026done
8027# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8028rm -f conftest.err conftest.$ac_ext
8029if $ac_preproc_ok; then
8030  :
8031else
8032  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8033See \`config.log' for more details." >&5
8034echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8035See \`config.log' for more details." >&2;}
8036   { (exit 1); exit 1; }; }
8037fi
8038
8039ac_ext=cc
8040ac_cpp='$CXXCPP $CPPFLAGS'
8041ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8042ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8043ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8044
8045fi
8046
8047ac_ext=f
8048ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8049ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8050ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8051if test -n "$ac_tool_prefix"; then
8052  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8053  do
8054    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8055set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8056echo "$as_me:$LINENO: checking for $ac_word" >&5
8057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8058if test "${ac_cv_prog_F77+set}" = set; then
8059  echo $ECHO_N "(cached) $ECHO_C" >&6
8060else
8061  if test -n "$F77"; then
8062  ac_cv_prog_F77="$F77" # Let the user override the test.
8063else
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067  IFS=$as_save_IFS
8068  test -z "$as_dir" && as_dir=.
8069  for ac_exec_ext in '' $ac_executable_extensions; do
8070  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073    break 2
8074  fi
8075done
8076done
8077
8078fi
8079fi
8080F77=$ac_cv_prog_F77
8081if test -n "$F77"; then
8082  echo "$as_me:$LINENO: result: $F77" >&5
8083echo "${ECHO_T}$F77" >&6
8084else
8085  echo "$as_me:$LINENO: result: no" >&5
8086echo "${ECHO_T}no" >&6
8087fi
8088
8089    test -n "$F77" && break
8090  done
8091fi
8092if test -z "$F77"; then
8093  ac_ct_F77=$F77
8094  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
8095do
8096  # Extract the first word of "$ac_prog", so it can be a program name with args.
8097set dummy $ac_prog; ac_word=$2
8098echo "$as_me:$LINENO: checking for $ac_word" >&5
8099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8100if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8101  echo $ECHO_N "(cached) $ECHO_C" >&6
8102else
8103  if test -n "$ac_ct_F77"; then
8104  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8105else
8106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109  IFS=$as_save_IFS
8110  test -z "$as_dir" && as_dir=.
8111  for ac_exec_ext in '' $ac_executable_extensions; do
8112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8113    ac_cv_prog_ac_ct_F77="$ac_prog"
8114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115    break 2
8116  fi
8117done
8118done
8119
8120fi
8121fi
8122ac_ct_F77=$ac_cv_prog_ac_ct_F77
8123if test -n "$ac_ct_F77"; then
8124  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8125echo "${ECHO_T}$ac_ct_F77" >&6
8126else
8127  echo "$as_me:$LINENO: result: no" >&5
8128echo "${ECHO_T}no" >&6
8129fi
8130
8131  test -n "$ac_ct_F77" && break
8132done
8133
8134  F77=$ac_ct_F77
8135fi
8136
8137
8138# Provide some information about the compiler.
8139echo "$as_me:8139:" \
8140     "checking for Fortran 77 compiler version" >&5
8141ac_compiler=`set X $ac_compile; echo $2`
8142{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8143  (eval $ac_compiler --version </dev/null >&5) 2>&5
8144  ac_status=$?
8145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146  (exit $ac_status); }
8147{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8148  (eval $ac_compiler -v </dev/null >&5) 2>&5
8149  ac_status=$?
8150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151  (exit $ac_status); }
8152{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8153  (eval $ac_compiler -V </dev/null >&5) 2>&5
8154  ac_status=$?
8155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156  (exit $ac_status); }
8157rm -f a.out
8158
8159# If we don't use `.F' as extension, the preprocessor is not run on the
8160# input file.  (Note that this only needs to work for GNU compilers.)
8161ac_save_ext=$ac_ext
8162ac_ext=F
8163echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8164echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
8165if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8166  echo $ECHO_N "(cached) $ECHO_C" >&6
8167else
8168  cat >conftest.$ac_ext <<_ACEOF
8169      program main
8170#ifndef __GNUC__
8171       choke me
8172#endif
8173
8174      end
8175_ACEOF
8176rm -f conftest.$ac_objext
8177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8178  (eval $ac_compile) 2>conftest.er1
8179  ac_status=$?
8180  grep -v '^ *+' conftest.er1 >conftest.err
8181  rm -f conftest.er1
8182  cat conftest.err >&5
8183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184  (exit $ac_status); } &&
8185         { ac_try='test -z "$ac_f77_werror_flag"
8186                         || test ! -s conftest.err'
8187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188  (eval $ac_try) 2>&5
8189  ac_status=$?
8190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191  (exit $ac_status); }; } &&
8192         { ac_try='test -s conftest.$ac_objext'
8193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194  (eval $ac_try) 2>&5
8195  ac_status=$?
8196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197  (exit $ac_status); }; }; then
8198  ac_compiler_gnu=yes
8199else
8200  echo "$as_me: failed program was:" >&5
8201sed 's/^/| /' conftest.$ac_ext >&5
8202
8203ac_compiler_gnu=no
8204fi
8205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8206ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8207
8208fi
8209echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8210echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
8211ac_ext=$ac_save_ext
8212ac_test_FFLAGS=${FFLAGS+set}
8213ac_save_FFLAGS=$FFLAGS
8214FFLAGS=
8215echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8216echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
8217if test "${ac_cv_prog_f77_g+set}" = set; then
8218  echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220  FFLAGS=-g
8221cat >conftest.$ac_ext <<_ACEOF
8222      program main
8223
8224      end
8225_ACEOF
8226rm -f conftest.$ac_objext
8227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8228  (eval $ac_compile) 2>conftest.er1
8229  ac_status=$?
8230  grep -v '^ *+' conftest.er1 >conftest.err
8231  rm -f conftest.er1
8232  cat conftest.err >&5
8233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234  (exit $ac_status); } &&
8235         { ac_try='test -z "$ac_f77_werror_flag"
8236                         || test ! -s conftest.err'
8237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238  (eval $ac_try) 2>&5
8239  ac_status=$?
8240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241  (exit $ac_status); }; } &&
8242         { ac_try='test -s conftest.$ac_objext'
8243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244  (eval $ac_try) 2>&5
8245  ac_status=$?
8246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247  (exit $ac_status); }; }; then
8248  ac_cv_prog_f77_g=yes
8249else
8250  echo "$as_me: failed program was:" >&5
8251sed 's/^/| /' conftest.$ac_ext >&5
8252
8253ac_cv_prog_f77_g=no
8254fi
8255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8256
8257fi
8258echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8259echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
8260if test "$ac_test_FFLAGS" = set; then
8261  FFLAGS=$ac_save_FFLAGS
8262elif test $ac_cv_prog_f77_g = yes; then
8263  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8264    FFLAGS="-g -O2"
8265  else
8266    FFLAGS="-g"
8267  fi
8268else
8269  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8270    FFLAGS="-O2"
8271  else
8272    FFLAGS=
8273  fi
8274fi
8275
8276G77=`test $ac_compiler_gnu = yes && echo yes`
8277ac_ext=c
8278ac_cpp='$CPP $CPPFLAGS'
8279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281ac_compiler_gnu=$ac_cv_c_compiler_gnu
8282
8283
8284
8285# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8286
8287# find the maximum length of command line arguments
8288echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8289echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8290if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8291  echo $ECHO_N "(cached) $ECHO_C" >&6
8292else
8293    i=0
8294  teststring="ABCD"
8295
8296  case $build_os in
8297  msdosdjgpp*)
8298    # On DJGPP, this test can blow up pretty badly due to problems in libc
8299    # (any single argument exceeding 2000 bytes causes a buffer overrun
8300    # during glob expansion).  Even if it were fixed, the result of this
8301    # check would be larger than it should be.
8302    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8303    ;;
8304
8305  gnu*)
8306    # Under GNU Hurd, this test is not required because there is
8307    # no limit to the length of command line arguments.
8308    # Libtool will interpret -1 as no limit whatsoever
8309    lt_cv_sys_max_cmd_len=-1;
8310    ;;
8311
8312  cygwin* | mingw*)
8313    # On Win9x/ME, this test blows up -- it succeeds, but takes
8314    # about 5 minutes as the teststring grows exponentially.
8315    # Worse, since 9x/ME are not pre-emptively multitasking,
8316    # you end up with a "frozen" computer, even though with patience
8317    # the test eventually succeeds (with a max line length of 256k).
8318    # Instead, let's just punt: use the minimum linelength reported by
8319    # all of the supported platforms: 8192 (on NT/2K/XP).
8320    lt_cv_sys_max_cmd_len=8192;
8321    ;;
8322
8323  amigaos*)
8324    # On AmigaOS with pdksh, this test takes hours, literally.
8325    # So we just punt and use a minimum line length of 8192.
8326    lt_cv_sys_max_cmd_len=8192;
8327    ;;
8328
8329  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8330    # This has been around since 386BSD, at least.  Likely further.
8331    if test -x /sbin/sysctl; then
8332      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8333    elif test -x /usr/sbin/sysctl; then
8334      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8335    else
8336      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8337    fi
8338    # And add a safety zone
8339    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8340    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8341    ;;
8342
8343  interix*)
8344    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8345    lt_cv_sys_max_cmd_len=196608
8346    ;;
8347
8348  osf*)
8349    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8350    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8351    # nice to cause kernel panics so lets avoid the loop below.
8352    # First set a reasonable default.
8353    lt_cv_sys_max_cmd_len=16384
8354    #
8355    if test -x /sbin/sysconfig; then
8356      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8357        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8358      esac
8359    fi
8360    ;;
8361  sco3.2v5*)
8362    lt_cv_sys_max_cmd_len=102400
8363    ;;
8364  sysv5* | sco5v6* | sysv4.2uw2*)
8365    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8366    if test -n "$kargmax"; then
8367      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8368    else
8369      lt_cv_sys_max_cmd_len=32768
8370    fi
8371    ;;
8372  *)
8373    # If test is not a shell built-in, we'll probably end up computing a
8374    # maximum length that is only half of the actual maximum length, but
8375    # we can't tell.
8376    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8377    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8378               = "XX$teststring") >/dev/null 2>&1 &&
8379            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8380            lt_cv_sys_max_cmd_len=$new_result &&
8381            test $i != 17 # 1/2 MB should be enough
8382    do
8383      i=`expr $i + 1`
8384      teststring=$teststring$teststring
8385    done
8386    teststring=
8387    # Add a significant safety factor because C++ compilers can tack on massive
8388    # amounts of additional arguments before passing them to the linker.
8389    # It appears as though 1/2 is a usable value.
8390    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8391    ;;
8392  esac
8393
8394fi
8395
8396if test -n $lt_cv_sys_max_cmd_len ; then
8397  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8398echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8399else
8400  echo "$as_me:$LINENO: result: none" >&5
8401echo "${ECHO_T}none" >&6
8402fi
8403
8404
8405
8406
8407# Check for command to grab the raw symbol name followed by C symbol from nm.
8408echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8409echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8410if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8411  echo $ECHO_N "(cached) $ECHO_C" >&6
8412else
8413
8414# These are sane defaults that work on at least a few old systems.
8415# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8416
8417# Character class describing NM global symbol codes.
8418symcode='[BCDEGRST]'
8419
8420# Regexp to match symbols that can be accessed directly from C.
8421sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8422
8423# Transform an extracted symbol line into a proper C declaration
8424lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8425
8426# Transform an extracted symbol line into symbol name and symbol address
8427lt_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'"
8428
8429# Define system-specific variables.
8430case $host_os in
8431aix*)
8432  symcode='[BCDT]'
8433  ;;
8434cygwin* | mingw* | pw32*)
8435  symcode='[ABCDGISTW]'
8436  ;;
8437hpux*) # Its linker distinguishes data from code symbols
8438  if test "$host_cpu" = ia64; then
8439    symcode='[ABCDEGRST]'
8440  fi
8441  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8442  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'"
8443  ;;
8444linux*)
8445  if test "$host_cpu" = ia64; then
8446    symcode='[ABCDGIRSTW]'
8447    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8448    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'"
8449  fi
8450  ;;
8451irix* | nonstopux*)
8452  symcode='[BCDEGRST]'
8453  ;;
8454osf*)
8455  symcode='[BCDEGQRST]'
8456  ;;
8457solaris*)
8458  symcode='[BDRT]'
8459  ;;
8460sco3.2v5*)
8461  symcode='[DT]'
8462  ;;
8463sysv4.2uw2*)
8464  symcode='[DT]'
8465  ;;
8466sysv5* | sco5v6* | unixware* | OpenUNIX*)
8467  symcode='[ABDT]'
8468  ;;
8469sysv4)
8470  symcode='[DFNSTU]'
8471  ;;
8472esac
8473
8474# Handle CRLF in mingw tool chain
8475opt_cr=
8476case $build_os in
8477mingw*)
8478  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8479  ;;
8480esac
8481
8482# If we're using GNU nm, then use its standard symbol codes.
8483case `$NM -V 2>&1` in
8484*GNU* | *'with BFD'*)
8485  symcode='[ABCDGIRSTW]' ;;
8486esac
8487
8488# Try without a prefix undercore, then with it.
8489for ac_symprfx in "" "_"; do
8490
8491  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8492  symxfrm="\\1 $ac_symprfx\\2 \\2"
8493
8494  # Write the raw and C identifiers.
8495  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8496
8497  # Check to see that the pipe works correctly.
8498  pipe_works=no
8499
8500  rm -f conftest*
8501  cat > conftest.$ac_ext <<EOF
8502#ifdef __cplusplus
8503extern "C" {
8504#endif
8505char nm_test_var;
8506void nm_test_func(){}
8507#ifdef __cplusplus
8508}
8509#endif
8510int main(){nm_test_var='a';nm_test_func();return(0);}
8511EOF
8512
8513  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514  (eval $ac_compile) 2>&5
8515  ac_status=$?
8516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517  (exit $ac_status); }; then
8518    # Now try to grab the symbols.
8519    nlist=conftest.nm
8520    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8521  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8522  ac_status=$?
8523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524  (exit $ac_status); } && test -s "$nlist"; then
8525      # Try sorting and uniquifying the output.
8526      if sort "$nlist" | uniq > "$nlist"T; then
8527        mv -f "$nlist"T "$nlist"
8528      else
8529        rm -f "$nlist"T
8530      fi
8531
8532      # Make sure that we snagged all the symbols we need.
8533      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8534        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8535          cat <<EOF > conftest.$ac_ext
8536#ifdef __cplusplus
8537extern "C" {
8538#endif
8539
8540EOF
8541          # Now generate the symbol file.
8542          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8543
8544          cat <<EOF >> conftest.$ac_ext
8545#if defined (__STDC__) && __STDC__
8546# define lt_ptr_t void *
8547#else
8548# define lt_ptr_t char *
8549# define const
8550#endif
8551
8552/* The mapping between symbol names and symbols. */
8553const struct {
8554  const char *name;
8555  lt_ptr_t address;
8556}
8557lt_preloaded_symbols[] =
8558{
8559EOF
8560          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8561          cat <<\EOF >> conftest.$ac_ext
8562  {0, (lt_ptr_t) 0}
8563};
8564
8565#ifdef __cplusplus
8566}
8567#endif
8568EOF
8569          # Now try linking the two files.
8570          mv conftest.$ac_objext conftstm.$ac_objext
8571          lt_save_LIBS="$LIBS"
8572          lt_save_CFLAGS="$CFLAGS"
8573          LIBS="conftstm.$ac_objext"
8574          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8575          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8576  (eval $ac_link) 2>&5
8577  ac_status=$?
8578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8580            pipe_works=yes
8581          fi
8582          LIBS="$lt_save_LIBS"
8583          CFLAGS="$lt_save_CFLAGS"
8584        else
8585          echo "cannot find nm_test_func in $nlist" >&5
8586        fi
8587      else
8588        echo "cannot find nm_test_var in $nlist" >&5
8589      fi
8590    else
8591      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8592    fi
8593  else
8594    echo "$progname: failed program was:" >&5
8595    cat conftest.$ac_ext >&5
8596  fi
8597  rm -f conftest* conftst*
8598
8599  # Do not use the global_symbol_pipe unless it works.
8600  if test "$pipe_works" = yes; then
8601    break
8602  else
8603    lt_cv_sys_global_symbol_pipe=
8604  fi
8605done
8606
8607fi
8608
8609if test -z "$lt_cv_sys_global_symbol_pipe"; then
8610  lt_cv_sys_global_symbol_to_cdecl=
8611fi
8612if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8613  echo "$as_me:$LINENO: result: failed" >&5
8614echo "${ECHO_T}failed" >&6
8615else
8616  echo "$as_me:$LINENO: result: ok" >&5
8617echo "${ECHO_T}ok" >&6
8618fi
8619
8620echo "$as_me:$LINENO: checking for objdir" >&5
8621echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8622if test "${lt_cv_objdir+set}" = set; then
8623  echo $ECHO_N "(cached) $ECHO_C" >&6
8624else
8625  rm -f .libs 2>/dev/null
8626mkdir .libs 2>/dev/null
8627if test -d .libs; then
8628  lt_cv_objdir=.libs
8629else
8630  # MS-DOS does not allow filenames that begin with a dot.
8631  lt_cv_objdir=_libs
8632fi
8633rmdir .libs 2>/dev/null
8634fi
8635echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8636echo "${ECHO_T}$lt_cv_objdir" >&6
8637objdir=$lt_cv_objdir
8638
8639
8640
8641
8642
8643case $host_os in
8644aix3*)
8645  # AIX sometimes has problems with the GCC collect2 program.  For some
8646  # reason, if we set the COLLECT_NAMES environment variable, the problems
8647  # vanish in a puff of smoke.
8648  if test "X${COLLECT_NAMES+set}" != Xset; then
8649    COLLECT_NAMES=
8650    export COLLECT_NAMES
8651  fi
8652  ;;
8653esac
8654
8655# Sed substitution that helps us do robust quoting.  It backslashifies
8656# metacharacters that are still active within double-quoted strings.
8657Xsed='sed -e 1s/^X//'
8658sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8659
8660# Same as above, but do not quote variable references.
8661double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8662
8663# Sed substitution to delay expansion of an escaped shell variable in a
8664# double_quote_subst'ed string.
8665delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8666
8667# Sed substitution to avoid accidental globbing in evaled expressions
8668no_glob_subst='s/\*/\\\*/g'
8669
8670# Constants:
8671rm="rm -f"
8672
8673# Global variables:
8674default_ofile=libtool
8675can_build_shared=yes
8676
8677# All known linkers require a `.a' archive for static linking (except MSVC,
8678# which needs '.lib').
8679libext=a
8680ltmain="$ac_aux_dir/ltmain.sh"
8681ofile="$default_ofile"
8682with_gnu_ld="$lt_cv_prog_gnu_ld"
8683
8684if test -n "$ac_tool_prefix"; then
8685  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8686set dummy ${ac_tool_prefix}ar; ac_word=$2
8687echo "$as_me:$LINENO: checking for $ac_word" >&5
8688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8689if test "${ac_cv_prog_AR+set}" = set; then
8690  echo $ECHO_N "(cached) $ECHO_C" >&6
8691else
8692  if test -n "$AR"; then
8693  ac_cv_prog_AR="$AR" # Let the user override the test.
8694else
8695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696for as_dir in $PATH
8697do
8698  IFS=$as_save_IFS
8699  test -z "$as_dir" && as_dir=.
8700  for ac_exec_ext in '' $ac_executable_extensions; do
8701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8702    ac_cv_prog_AR="${ac_tool_prefix}ar"
8703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8704    break 2
8705  fi
8706done
8707done
8708
8709fi
8710fi
8711AR=$ac_cv_prog_AR
8712if test -n "$AR"; then
8713  echo "$as_me:$LINENO: result: $AR" >&5
8714echo "${ECHO_T}$AR" >&6
8715else
8716  echo "$as_me:$LINENO: result: no" >&5
8717echo "${ECHO_T}no" >&6
8718fi
8719
8720fi
8721if test -z "$ac_cv_prog_AR"; then
8722  ac_ct_AR=$AR
8723  # Extract the first word of "ar", so it can be a program name with args.
8724set dummy ar; ac_word=$2
8725echo "$as_me:$LINENO: checking for $ac_word" >&5
8726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8727if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8728  echo $ECHO_N "(cached) $ECHO_C" >&6
8729else
8730  if test -n "$ac_ct_AR"; then
8731  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8732else
8733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734for as_dir in $PATH
8735do
8736  IFS=$as_save_IFS
8737  test -z "$as_dir" && as_dir=.
8738  for ac_exec_ext in '' $ac_executable_extensions; do
8739  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8740    ac_cv_prog_ac_ct_AR="ar"
8741    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8742    break 2
8743  fi
8744done
8745done
8746
8747  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8748fi
8749fi
8750ac_ct_AR=$ac_cv_prog_ac_ct_AR
8751if test -n "$ac_ct_AR"; then
8752  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8753echo "${ECHO_T}$ac_ct_AR" >&6
8754else
8755  echo "$as_me:$LINENO: result: no" >&5
8756echo "${ECHO_T}no" >&6
8757fi
8758
8759  AR=$ac_ct_AR
8760else
8761  AR="$ac_cv_prog_AR"
8762fi
8763
8764if test -n "$ac_tool_prefix"; then
8765  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8766set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8767echo "$as_me:$LINENO: checking for $ac_word" >&5
8768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8769if test "${ac_cv_prog_RANLIB+set}" = set; then
8770  echo $ECHO_N "(cached) $ECHO_C" >&6
8771else
8772  if test -n "$RANLIB"; then
8773  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8774else
8775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776for as_dir in $PATH
8777do
8778  IFS=$as_save_IFS
8779  test -z "$as_dir" && as_dir=.
8780  for ac_exec_ext in '' $ac_executable_extensions; do
8781  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8782    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8783    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8784    break 2
8785  fi
8786done
8787done
8788
8789fi
8790fi
8791RANLIB=$ac_cv_prog_RANLIB
8792if test -n "$RANLIB"; then
8793  echo "$as_me:$LINENO: result: $RANLIB" >&5
8794echo "${ECHO_T}$RANLIB" >&6
8795else
8796  echo "$as_me:$LINENO: result: no" >&5
8797echo "${ECHO_T}no" >&6
8798fi
8799
8800fi
8801if test -z "$ac_cv_prog_RANLIB"; then
8802  ac_ct_RANLIB=$RANLIB
8803  # Extract the first word of "ranlib", so it can be a program name with args.
8804set dummy ranlib; ac_word=$2
8805echo "$as_me:$LINENO: checking for $ac_word" >&5
8806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8807if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8808  echo $ECHO_N "(cached) $ECHO_C" >&6
8809else
8810  if test -n "$ac_ct_RANLIB"; then
8811  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8812else
8813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814for as_dir in $PATH
8815do
8816  IFS=$as_save_IFS
8817  test -z "$as_dir" && as_dir=.
8818  for ac_exec_ext in '' $ac_executable_extensions; do
8819  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820    ac_cv_prog_ac_ct_RANLIB="ranlib"
8821    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8822    break 2
8823  fi
8824done
8825done
8826
8827  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8828fi
8829fi
8830ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8831if test -n "$ac_ct_RANLIB"; then
8832  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8833echo "${ECHO_T}$ac_ct_RANLIB" >&6
8834else
8835  echo "$as_me:$LINENO: result: no" >&5
8836echo "${ECHO_T}no" >&6
8837fi
8838
8839  RANLIB=$ac_ct_RANLIB
8840else
8841  RANLIB="$ac_cv_prog_RANLIB"
8842fi
8843
8844if test -n "$ac_tool_prefix"; then
8845  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8846set dummy ${ac_tool_prefix}strip; ac_word=$2
8847echo "$as_me:$LINENO: checking for $ac_word" >&5
8848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8849if test "${ac_cv_prog_STRIP+set}" = set; then
8850  echo $ECHO_N "(cached) $ECHO_C" >&6
8851else
8852  if test -n "$STRIP"; then
8853  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8854else
8855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856for as_dir in $PATH
8857do
8858  IFS=$as_save_IFS
8859  test -z "$as_dir" && as_dir=.
8860  for ac_exec_ext in '' $ac_executable_extensions; do
8861  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8862    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8864    break 2
8865  fi
8866done
8867done
8868
8869fi
8870fi
8871STRIP=$ac_cv_prog_STRIP
8872if test -n "$STRIP"; then
8873  echo "$as_me:$LINENO: result: $STRIP" >&5
8874echo "${ECHO_T}$STRIP" >&6
8875else
8876  echo "$as_me:$LINENO: result: no" >&5
8877echo "${ECHO_T}no" >&6
8878fi
8879
8880fi
8881if test -z "$ac_cv_prog_STRIP"; then
8882  ac_ct_STRIP=$STRIP
8883  # Extract the first word of "strip", so it can be a program name with args.
8884set dummy strip; ac_word=$2
8885echo "$as_me:$LINENO: checking for $ac_word" >&5
8886echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8887if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8888  echo $ECHO_N "(cached) $ECHO_C" >&6
8889else
8890  if test -n "$ac_ct_STRIP"; then
8891  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8892else
8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894for as_dir in $PATH
8895do
8896  IFS=$as_save_IFS
8897  test -z "$as_dir" && as_dir=.
8898  for ac_exec_ext in '' $ac_executable_extensions; do
8899  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8900    ac_cv_prog_ac_ct_STRIP="strip"
8901    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8902    break 2
8903  fi
8904done
8905done
8906
8907  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8908fi
8909fi
8910ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8911if test -n "$ac_ct_STRIP"; then
8912  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8913echo "${ECHO_T}$ac_ct_STRIP" >&6
8914else
8915  echo "$as_me:$LINENO: result: no" >&5
8916echo "${ECHO_T}no" >&6
8917fi
8918
8919  STRIP=$ac_ct_STRIP
8920else
8921  STRIP="$ac_cv_prog_STRIP"
8922fi
8923
8924
8925old_CC="$CC"
8926old_CFLAGS="$CFLAGS"
8927
8928# Set sane defaults for various variables
8929test -z "$AR" && AR=ar
8930test -z "$AR_FLAGS" && AR_FLAGS=cru
8931test -z "$AS" && AS=as
8932test -z "$CC" && CC=cc
8933test -z "$LTCC" && LTCC=$CC
8934test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8935test -z "$DLLTOOL" && DLLTOOL=dlltool
8936test -z "$LD" && LD=ld
8937test -z "$LN_S" && LN_S="ln -s"
8938test -z "$MAGIC_CMD" && MAGIC_CMD=file
8939test -z "$NM" && NM=nm
8940test -z "$SED" && SED=sed
8941test -z "$OBJDUMP" && OBJDUMP=objdump
8942test -z "$RANLIB" && RANLIB=:
8943test -z "$STRIP" && STRIP=:
8944test -z "$ac_objext" && ac_objext=o
8945
8946# Determine commands to create old-style static archives.
8947old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8948old_postinstall_cmds='chmod 644 $oldlib'
8949old_postuninstall_cmds=
8950
8951if test -n "$RANLIB"; then
8952  case $host_os in
8953  openbsd*)
8954    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8955    ;;
8956  *)
8957    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8958    ;;
8959  esac
8960  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8961fi
8962
8963for cc_temp in $compiler""; do
8964  case $cc_temp in
8965    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8966    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8967    \-*) ;;
8968    *) break;;
8969  esac
8970done
8971cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8972
8973
8974# Only perform the check for file, if the check method requires it
8975case $deplibs_check_method in
8976file_magic*)
8977  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8978    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8979echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8980if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8981  echo $ECHO_N "(cached) $ECHO_C" >&6
8982else
8983  case $MAGIC_CMD in
8984[\\/*] |  ?:[\\/]*)
8985  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8986  ;;
8987*)
8988  lt_save_MAGIC_CMD="$MAGIC_CMD"
8989  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8990  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8991  for ac_dir in $ac_dummy; do
8992    IFS="$lt_save_ifs"
8993    test -z "$ac_dir" && ac_dir=.
8994    if test -f $ac_dir/${ac_tool_prefix}file; then
8995      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8996      if test -n "$file_magic_test_file"; then
8997        case $deplibs_check_method in
8998        "file_magic "*)
8999          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9000          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9001          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9002            $EGREP "$file_magic_regex" > /dev/null; then
9003            :
9004          else
9005            cat <<EOF 1>&2
9006
9007*** Warning: the command libtool uses to detect shared libraries,
9008*** $file_magic_cmd, produces output that libtool cannot recognize.
9009*** The result is that libtool may fail to recognize shared libraries
9010*** as such.  This will affect the creation of libtool libraries that
9011*** depend on shared libraries, but programs linked with such libtool
9012*** libraries will work regardless of this problem.  Nevertheless, you
9013*** may want to report the problem to your system manager and/or to
9014*** bug-libtool@gnu.org
9015
9016EOF
9017          fi ;;
9018        esac
9019      fi
9020      break
9021    fi
9022  done
9023  IFS="$lt_save_ifs"
9024  MAGIC_CMD="$lt_save_MAGIC_CMD"
9025  ;;
9026esac
9027fi
9028
9029MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9030if test -n "$MAGIC_CMD"; then
9031  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9032echo "${ECHO_T}$MAGIC_CMD" >&6
9033else
9034  echo "$as_me:$LINENO: result: no" >&5
9035echo "${ECHO_T}no" >&6
9036fi
9037
9038if test -z "$lt_cv_path_MAGIC_CMD"; then
9039  if test -n "$ac_tool_prefix"; then
9040    echo "$as_me:$LINENO: checking for file" >&5
9041echo $ECHO_N "checking for file... $ECHO_C" >&6
9042if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9043  echo $ECHO_N "(cached) $ECHO_C" >&6
9044else
9045  case $MAGIC_CMD in
9046[\\/*] |  ?:[\\/]*)
9047  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9048  ;;
9049*)
9050  lt_save_MAGIC_CMD="$MAGIC_CMD"
9051  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9052  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9053  for ac_dir in $ac_dummy; do
9054    IFS="$lt_save_ifs"
9055    test -z "$ac_dir" && ac_dir=.
9056    if test -f $ac_dir/file; then
9057      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9058      if test -n "$file_magic_test_file"; then
9059        case $deplibs_check_method in
9060        "file_magic "*)
9061          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9062          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9063          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9064            $EGREP "$file_magic_regex" > /dev/null; then
9065            :
9066          else
9067            cat <<EOF 1>&2
9068
9069*** Warning: the command libtool uses to detect shared libraries,
9070*** $file_magic_cmd, produces output that libtool cannot recognize.
9071*** The result is that libtool may fail to recognize shared libraries
9072*** as such.  This will affect the creation of libtool libraries that
9073*** depend on shared libraries, but programs linked with such libtool
9074*** libraries will work regardless of this problem.  Nevertheless, you
9075*** may want to report the problem to your system manager and/or to
9076*** bug-libtool@gnu.org
9077
9078EOF
9079          fi ;;
9080        esac
9081      fi
9082      break
9083    fi
9084  done
9085  IFS="$lt_save_ifs"
9086  MAGIC_CMD="$lt_save_MAGIC_CMD"
9087  ;;
9088esac
9089fi
9090
9091MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9092if test -n "$MAGIC_CMD"; then
9093  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9094echo "${ECHO_T}$MAGIC_CMD" >&6
9095else
9096  echo "$as_me:$LINENO: result: no" >&5
9097echo "${ECHO_T}no" >&6
9098fi
9099
9100  else
9101    MAGIC_CMD=:
9102  fi
9103fi
9104
9105  fi
9106  ;;
9107esac
9108
9109enable_dlopen=no
9110enable_win32_dll=no
9111
9112# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9113if test "${enable_libtool_lock+set}" = set; then
9114  enableval="$enable_libtool_lock"
9115
9116fi;
9117test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9118
9119
9120# Check whether --with-pic or --without-pic was given.
9121if test "${with_pic+set}" = set; then
9122  withval="$with_pic"
9123  pic_mode="$withval"
9124else
9125  pic_mode=default
9126fi;
9127test -z "$pic_mode" && pic_mode=default
9128
9129# Use C for the default configuration in the libtool script
9130tagname=
9131lt_save_CC="$CC"
9132ac_ext=c
9133ac_cpp='$CPP $CPPFLAGS'
9134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9136ac_compiler_gnu=$ac_cv_c_compiler_gnu
9137
9138
9139# Source file extension for C test sources.
9140ac_ext=c
9141
9142# Object file extension for compiled C test sources.
9143objext=o
9144objext=$objext
9145
9146# Code to be used in simple compile tests
9147lt_simple_compile_test_code="int some_variable = 0;\n"
9148
9149# Code to be used in simple link tests
9150lt_simple_link_test_code='int main(){return(0);}\n'
9151
9152
9153# If no C compiler was specified, use CC.
9154LTCC=${LTCC-"$CC"}
9155
9156# If no C compiler flags were specified, use CFLAGS.
9157LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9158
9159# Allow CC to be a program name with arguments.
9160compiler=$CC
9161
9162
9163# save warnings/boilerplate of simple test code
9164ac_outfile=conftest.$ac_objext
9165printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9166eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9167_lt_compiler_boilerplate=`cat conftest.err`
9168$rm conftest*
9169
9170ac_outfile=conftest.$ac_objext
9171printf "$lt_simple_link_test_code" >conftest.$ac_ext
9172eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9173_lt_linker_boilerplate=`cat conftest.err`
9174$rm conftest*
9175
9176
9177## CAVEAT EMPTOR:
9178## There is no encapsulation within the following macros, do not change
9179## the running order or otherwise move them around unless you know exactly
9180## what you are doing...
9181
9182lt_prog_compiler_no_builtin_flag=
9183
9184if test "$GCC" = yes; then
9185  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9186
9187
9188echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9189echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9190if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9191  echo $ECHO_N "(cached) $ECHO_C" >&6
9192else
9193  lt_cv_prog_compiler_rtti_exceptions=no
9194  ac_outfile=conftest.$ac_objext
9195   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9196   lt_compiler_flag="-fno-rtti -fno-exceptions"
9197   # Insert the option either (1) after the last *FLAGS variable, or
9198   # (2) before a word containing "conftest.", or (3) at the end.
9199   # Note that $ac_compile itself does not contain backslashes and begins
9200   # with a dollar sign (not a hyphen), so the echo should work correctly.
9201   # The option is referenced via a variable to avoid confusing sed.
9202   lt_compile=`echo "$ac_compile" | $SED \
9203   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9204   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9205   -e 's:$: $lt_compiler_flag:'`
9206   (eval echo "\"\$as_me:9206: $lt_compile\"" >&5)
9207   (eval "$lt_compile" 2>conftest.err)
9208   ac_status=$?
9209   cat conftest.err >&5
9210   echo "$as_me:9210: \$? = $ac_status" >&5
9211   if (exit $ac_status) && test -s "$ac_outfile"; then
9212     # The compiler can only warn and ignore the option if not recognized
9213     # So say no if there are warnings other than the usual output.
9214     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9215     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9216     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9217       lt_cv_prog_compiler_rtti_exceptions=yes
9218     fi
9219   fi
9220   $rm conftest*
9221
9222fi
9223echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9224echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9225
9226if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9227    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9228else
9229    :
9230fi
9231
9232fi
9233
9234lt_prog_compiler_wl=
9235lt_prog_compiler_pic=
9236lt_prog_compiler_static=
9237
9238echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9239echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9240
9241  if test "$GCC" = yes; then
9242    lt_prog_compiler_wl='-Wl,'
9243    lt_prog_compiler_static='-static'
9244
9245    case $host_os in
9246      aix*)
9247      # All AIX code is PIC.
9248      if test "$host_cpu" = ia64; then
9249        # AIX 5 now supports IA64 processor
9250        lt_prog_compiler_static='-Bstatic'
9251      fi
9252      ;;
9253
9254    amigaos*)
9255      # FIXME: we need at least 68020 code to build shared libraries, but
9256      # adding the `-m68020' flag to GCC prevents building anything better,
9257      # like `-m68040'.
9258      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9259      ;;
9260
9261    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9262      # PIC is the default for these OSes.
9263      ;;
9264
9265    mingw* | pw32* | os2*)
9266      # This hack is so that the source file can tell whether it is being
9267      # built for inclusion in a dll (and should export symbols for example).
9268      lt_prog_compiler_pic='-DDLL_EXPORT'
9269      ;;
9270
9271    darwin* | rhapsody*)
9272      # PIC is the default on this platform
9273      # Common symbols not allowed in MH_DYLIB files
9274      lt_prog_compiler_pic='-fno-common'
9275      ;;
9276
9277    interix3*)
9278      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9279      # Instead, we relocate shared libraries at runtime.
9280      ;;
9281
9282    msdosdjgpp*)
9283      # Just because we use GCC doesn't mean we suddenly get shared libraries
9284      # on systems that don't support them.
9285      lt_prog_compiler_can_build_shared=no
9286      enable_shared=no
9287      ;;
9288
9289    sysv4*MP*)
9290      if test -d /usr/nec; then
9291        lt_prog_compiler_pic=-Kconform_pic
9292      fi
9293      ;;
9294
9295    hpux*)
9296      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9297      # not for PA HP-UX.
9298      case $host_cpu in
9299      hppa*64*|ia64*)
9300        # +Z the default
9301        ;;
9302      *)
9303        lt_prog_compiler_pic='-fPIC'
9304        ;;
9305      esac
9306      ;;
9307
9308    *)
9309      lt_prog_compiler_pic='-fPIC'
9310      ;;
9311    esac
9312  else
9313    # PORTME Check for flag to pass linker flags through the system compiler.
9314    case $host_os in
9315    aix*)
9316      lt_prog_compiler_wl='-Wl,'
9317      if test "$host_cpu" = ia64; then
9318        # AIX 5 now supports IA64 processor
9319        lt_prog_compiler_static='-Bstatic'
9320      else
9321        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9322      fi
9323      ;;
9324      darwin*)
9325        # PIC is the default on this platform
9326        # Common symbols not allowed in MH_DYLIB files
9327       case $cc_basename in
9328         xlc*)
9329         lt_prog_compiler_pic='-qnocommon'
9330         lt_prog_compiler_wl='-Wl,'
9331         ;;
9332       esac
9333       ;;
9334
9335    mingw* | pw32* | os2*)
9336      # This hack is so that the source file can tell whether it is being
9337      # built for inclusion in a dll (and should export symbols for example).
9338      lt_prog_compiler_pic='-DDLL_EXPORT'
9339      ;;
9340
9341    hpux9* | hpux10* | hpux11*)
9342      lt_prog_compiler_wl='-Wl,'
9343      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9344      # not for PA HP-UX.
9345      case $host_cpu in
9346      hppa*64*|ia64*)
9347        # +Z the default
9348        ;;
9349      *)
9350        lt_prog_compiler_pic='+Z'
9351        ;;
9352      esac
9353      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9354      lt_prog_compiler_static='${wl}-a ${wl}archive'
9355      ;;
9356
9357    irix5* | irix6* | nonstopux*)
9358      lt_prog_compiler_wl='-Wl,'
9359      # PIC (with -KPIC) is the default.
9360      lt_prog_compiler_static='-non_shared'
9361      ;;
9362
9363    newsos6)
9364      lt_prog_compiler_pic='-KPIC'
9365      lt_prog_compiler_static='-Bstatic'
9366      ;;
9367
9368    linux*)
9369      case $cc_basename in
9370      icc* | ecc*)
9371        lt_prog_compiler_wl='-Wl,'
9372        lt_prog_compiler_pic='-KPIC'
9373        lt_prog_compiler_static='-static'
9374        ;;
9375      pgcc* | pgf77* | pgf90* | pgf95*)
9376        # Portland Group compilers (*not* the Pentium gcc compiler,
9377        # which looks to be a dead project)
9378        lt_prog_compiler_wl='-Wl,'
9379        lt_prog_compiler_pic='-fpic'
9380        lt_prog_compiler_static='-Bstatic'
9381        ;;
9382      ccc*)
9383        lt_prog_compiler_wl='-Wl,'
9384        # All Alpha code is PIC.
9385        lt_prog_compiler_static='-non_shared'
9386        ;;
9387      esac
9388      ;;
9389
9390    osf3* | osf4* | osf5*)
9391      lt_prog_compiler_wl='-Wl,'
9392      # All OSF/1 code is PIC.
9393      lt_prog_compiler_static='-non_shared'
9394      ;;
9395
9396    solaris*)
9397      lt_prog_compiler_pic='-KPIC'
9398      lt_prog_compiler_static='-Bstatic'
9399      case $cc_basename in
9400      f77* | f90* | f95*)
9401        lt_prog_compiler_wl='-Qoption ld ';;
9402      *)
9403        lt_prog_compiler_wl='-Wl,';;
9404      esac
9405      ;;
9406
9407    sunos4*)
9408      lt_prog_compiler_wl='-Qoption ld '
9409      lt_prog_compiler_pic='-PIC'
9410      lt_prog_compiler_static='-Bstatic'
9411      ;;
9412
9413    sysv4 | sysv4.2uw2* | sysv4.3*)
9414      lt_prog_compiler_wl='-Wl,'
9415      lt_prog_compiler_pic='-KPIC'
9416      lt_prog_compiler_static='-Bstatic'
9417      ;;
9418
9419    sysv4*MP*)
9420      if test -d /usr/nec ;then
9421        lt_prog_compiler_pic='-Kconform_pic'
9422        lt_prog_compiler_static='-Bstatic'
9423      fi
9424      ;;
9425
9426    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9427      lt_prog_compiler_wl='-Wl,'
9428      lt_prog_compiler_pic='-KPIC'
9429      lt_prog_compiler_static='-Bstatic'
9430      ;;
9431
9432    unicos*)
9433      lt_prog_compiler_wl='-Wl,'
9434      lt_prog_compiler_can_build_shared=no
9435      ;;
9436
9437    uts4*)
9438      lt_prog_compiler_pic='-pic'
9439      lt_prog_compiler_static='-Bstatic'
9440      ;;
9441
9442    *)
9443      lt_prog_compiler_can_build_shared=no
9444      ;;
9445    esac
9446  fi
9447
9448echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9449echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9450
9451#
9452# Check to make sure the PIC flag actually works.
9453#
9454if test -n "$lt_prog_compiler_pic"; then
9455
9456echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9457echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9458if test "${lt_prog_compiler_pic_works+set}" = set; then
9459  echo $ECHO_N "(cached) $ECHO_C" >&6
9460else
9461  lt_prog_compiler_pic_works=no
9462  ac_outfile=conftest.$ac_objext
9463   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9464   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9465   # Insert the option either (1) after the last *FLAGS variable, or
9466   # (2) before a word containing "conftest.", or (3) at the end.
9467   # Note that $ac_compile itself does not contain backslashes and begins
9468   # with a dollar sign (not a hyphen), so the echo should work correctly.
9469   # The option is referenced via a variable to avoid confusing sed.
9470   lt_compile=`echo "$ac_compile" | $SED \
9471   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9472   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9473   -e 's:$: $lt_compiler_flag:'`
9474   (eval echo "\"\$as_me:9474: $lt_compile\"" >&5)
9475   (eval "$lt_compile" 2>conftest.err)
9476   ac_status=$?
9477   cat conftest.err >&5
9478   echo "$as_me:9478: \$? = $ac_status" >&5
9479   if (exit $ac_status) && test -s "$ac_outfile"; then
9480     # The compiler can only warn and ignore the option if not recognized
9481     # So say no if there are warnings other than the usual output.
9482     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9483     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9484     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9485       lt_prog_compiler_pic_works=yes
9486     fi
9487   fi
9488   $rm conftest*
9489
9490fi
9491echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9492echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9493
9494if test x"$lt_prog_compiler_pic_works" = xyes; then
9495    case $lt_prog_compiler_pic in
9496     "" | " "*) ;;
9497     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9498     esac
9499else
9500    lt_prog_compiler_pic=
9501     lt_prog_compiler_can_build_shared=no
9502fi
9503
9504fi
9505case $host_os in
9506  # For platforms which do not support PIC, -DPIC is meaningless:
9507  *djgpp*)
9508    lt_prog_compiler_pic=
9509    ;;
9510  *)
9511    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9512    ;;
9513esac
9514
9515#
9516# Check to make sure the static flag actually works.
9517#
9518wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9519echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9520echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9521if test "${lt_prog_compiler_static_works+set}" = set; then
9522  echo $ECHO_N "(cached) $ECHO_C" >&6
9523else
9524  lt_prog_compiler_static_works=no
9525   save_LDFLAGS="$LDFLAGS"
9526   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9527   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9528   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9529     # The linker can only warn and ignore the option if not recognized
9530     # So say no if there are warnings
9531     if test -s conftest.err; then
9532       # Append any errors to the config.log.
9533       cat conftest.err 1>&5
9534       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9535       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9536       if diff conftest.exp conftest.er2 >/dev/null; then
9537         lt_prog_compiler_static_works=yes
9538       fi
9539     else
9540       lt_prog_compiler_static_works=yes
9541     fi
9542   fi
9543   $rm conftest*
9544   LDFLAGS="$save_LDFLAGS"
9545
9546fi
9547echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9548echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9549
9550if test x"$lt_prog_compiler_static_works" = xyes; then
9551    :
9552else
9553    lt_prog_compiler_static=
9554fi
9555
9556
9557echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9558echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9559if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9560  echo $ECHO_N "(cached) $ECHO_C" >&6
9561else
9562  lt_cv_prog_compiler_c_o=no
9563   $rm -r conftest 2>/dev/null
9564   mkdir conftest
9565   cd conftest
9566   mkdir out
9567   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9568
9569   lt_compiler_flag="-o out/conftest2.$ac_objext"
9570   # Insert the option either (1) after the last *FLAGS variable, or
9571   # (2) before a word containing "conftest.", or (3) at the end.
9572   # Note that $ac_compile itself does not contain backslashes and begins
9573   # with a dollar sign (not a hyphen), so the echo should work correctly.
9574   lt_compile=`echo "$ac_compile" | $SED \
9575   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9576   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9577   -e 's:$: $lt_compiler_flag:'`
9578   (eval echo "\"\$as_me:9578: $lt_compile\"" >&5)
9579   (eval "$lt_compile" 2>out/conftest.err)
9580   ac_status=$?
9581   cat out/conftest.err >&5
9582   echo "$as_me:9582: \$? = $ac_status" >&5
9583   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9584   then
9585     # The compiler can only warn and ignore the option if not recognized
9586     # So say no if there are warnings
9587     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9588     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9589     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9590       lt_cv_prog_compiler_c_o=yes
9591     fi
9592   fi
9593   chmod u+w . 2>&5
9594   $rm conftest*
9595   # SGI C++ compiler will create directory out/ii_files/ for
9596   # template instantiation
9597   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9598   $rm out/* && rmdir out
9599   cd ..
9600   rmdir conftest
9601   $rm conftest*
9602
9603fi
9604echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9605echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9606
9607
9608hard_links="nottested"
9609if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9610  # do not overwrite the value of need_locks provided by the user
9611  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9612echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9613  hard_links=yes
9614  $rm conftest*
9615  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9616  touch conftest.a
9617  ln conftest.a conftest.b 2>&5 || hard_links=no
9618  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9619  echo "$as_me:$LINENO: result: $hard_links" >&5
9620echo "${ECHO_T}$hard_links" >&6
9621  if test "$hard_links" = no; then
9622    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9623echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9624    need_locks=warn
9625  fi
9626else
9627  need_locks=no
9628fi
9629
9630echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9631echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9632
9633  runpath_var=
9634  allow_undefined_flag=
9635  enable_shared_with_static_runtimes=no
9636  archive_cmds=
9637  archive_expsym_cmds=
9638  old_archive_From_new_cmds=
9639  old_archive_from_expsyms_cmds=
9640  export_dynamic_flag_spec=
9641  whole_archive_flag_spec=
9642  thread_safe_flag_spec=
9643  hardcode_libdir_flag_spec=
9644  hardcode_libdir_flag_spec_ld=
9645  hardcode_libdir_separator=
9646  hardcode_direct=no
9647  hardcode_minus_L=no
9648  hardcode_shlibpath_var=unsupported
9649  link_all_deplibs=unknown
9650  hardcode_automatic=no
9651  module_cmds=
9652  module_expsym_cmds=
9653  always_export_symbols=no
9654  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9655  # include_expsyms should be a list of space-separated symbols to be *always*
9656  # included in the symbol list
9657  include_expsyms=
9658  # exclude_expsyms can be an extended regexp of symbols to exclude
9659  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9660  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9661  # as well as any symbol that contains `d'.
9662  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9663  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9664  # platforms (ab)use it in PIC code, but their linkers get confused if
9665  # the symbol is explicitly referenced.  Since portable code cannot
9666  # rely on this symbol name, it's probably fine to never include it in
9667  # preloaded symbol tables.
9668  extract_expsyms_cmds=
9669  # Just being paranoid about ensuring that cc_basename is set.
9670  for cc_temp in $compiler""; do
9671  case $cc_temp in
9672    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9673    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9674    \-*) ;;
9675    *) break;;
9676  esac
9677done
9678cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9679
9680  case $host_os in
9681  cygwin* | mingw* | pw32*)
9682    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9683    # When not using gcc, we currently assume that we are using
9684    # Microsoft Visual C++.
9685    if test "$GCC" != yes; then
9686      with_gnu_ld=no
9687    fi
9688    ;;
9689  interix*)
9690    # we just hope/assume this is gcc and not c89 (= MSVC++)
9691    with_gnu_ld=yes
9692    ;;
9693  openbsd*)
9694    with_gnu_ld=no
9695    ;;
9696  esac
9697
9698  ld_shlibs=yes
9699  if test "$with_gnu_ld" = yes; then
9700    # If archive_cmds runs LD, not CC, wlarc should be empty
9701    wlarc='${wl}'
9702
9703    # Set some defaults for GNU ld with shared library support. These
9704    # are reset later if shared libraries are not supported. Putting them
9705    # here allows them to be overridden if necessary.
9706    runpath_var=LD_RUN_PATH
9707    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9708    export_dynamic_flag_spec='${wl}--export-dynamic'
9709    # ancient GNU ld didn't support --whole-archive et. al.
9710    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9711        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9712      else
9713        whole_archive_flag_spec=
9714    fi
9715    supports_anon_versioning=no
9716    case `$LD -v 2>/dev/null` in
9717      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9718      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9719      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9720      *\ 2.11.*) ;; # other 2.11 versions
9721      *) supports_anon_versioning=yes ;;
9722    esac
9723
9724    # See if GNU ld supports shared libraries.
9725    case $host_os in
9726    aix3* | aix4* | aix5*)
9727      # On AIX/PPC, the GNU linker is very broken
9728      if test "$host_cpu" != ia64; then
9729        ld_shlibs=no
9730        cat <<EOF 1>&2
9731
9732*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9733*** to be unable to reliably create shared libraries on AIX.
9734*** Therefore, libtool is disabling shared libraries support.  If you
9735*** really care for shared libraries, you may want to modify your PATH
9736*** so that a non-GNU linker is found, and then restart.
9737
9738EOF
9739      fi
9740      ;;
9741
9742    amigaos*)
9743      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)'
9744      hardcode_libdir_flag_spec='-L$libdir'
9745      hardcode_minus_L=yes
9746
9747      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9748      # that the semantics of dynamic libraries on AmigaOS, at least up
9749      # to version 4, is to share data among multiple programs linked
9750      # with the same dynamic library.  Since this doesn't match the
9751      # behavior of shared libraries on other platforms, we can't use
9752      # them.
9753      ld_shlibs=no
9754      ;;
9755
9756    beos*)
9757      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9758        allow_undefined_flag=unsupported
9759        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9760        # support --undefined.  This deserves some investigation.  FIXME
9761        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9762      else
9763        ld_shlibs=no
9764      fi
9765      ;;
9766
9767    cygwin* | mingw* | pw32*)
9768      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9769      # as there is no search path for DLLs.
9770      hardcode_libdir_flag_spec='-L$libdir'
9771      allow_undefined_flag=unsupported
9772      always_export_symbols=no
9773      enable_shared_with_static_runtimes=yes
9774      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9775
9776      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9777        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9778        # If the export-symbols file already is a .def file (1st line
9779        # is EXPORTS), use it as is; otherwise, prepend...
9780        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9781          cp $export_symbols $output_objdir/$soname.def;
9782        else
9783          echo EXPORTS > $output_objdir/$soname.def;
9784          cat $export_symbols >> $output_objdir/$soname.def;
9785        fi~
9786        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9787      else
9788        ld_shlibs=no
9789      fi
9790      ;;
9791
9792    interix3*)
9793      hardcode_direct=no
9794      hardcode_shlibpath_var=no
9795      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9796      export_dynamic_flag_spec='${wl}-E'
9797      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9798      # Instead, shared libraries are loaded at an image base (0x10000000 by
9799      # default) and relocated if they conflict, which is a slow very memory
9800      # consuming and fragmenting process.  To avoid this, we pick a random,
9801      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9802      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9803      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9804      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'
9805      ;;
9806
9807    linux*)
9808      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9809        tmp_addflag=
9810        case $cc_basename,$host_cpu in
9811        pgcc*)                          # Portland Group C compiler
9812          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'
9813          tmp_addflag=' $pic_flag'
9814          ;;
9815        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9816          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'
9817          tmp_addflag=' $pic_flag -Mnomain' ;;
9818        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9819          tmp_addflag=' -i_dynamic' ;;
9820        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9821          tmp_addflag=' -i_dynamic -nofor_main' ;;
9822        ifc* | ifort*)                  # Intel Fortran compiler
9823          tmp_addflag=' -nofor_main' ;;
9824        esac
9825        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9826
9827        if test $supports_anon_versioning = yes; then
9828          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9829  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9830  $echo "local: *; };" >> $output_objdir/$libname.ver~
9831          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9832        fi
9833      else
9834        ld_shlibs=no
9835      fi
9836      ;;
9837
9838    netbsd*)
9839      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9840        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9841        wlarc=
9842      else
9843        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9844        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9845      fi
9846      ;;
9847
9848    solaris*)
9849      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9850        ld_shlibs=no
9851        cat <<EOF 1>&2
9852
9853*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9854*** create shared libraries on Solaris systems.  Therefore, libtool
9855*** is disabling shared libraries support.  We urge you to upgrade GNU
9856*** binutils to release 2.9.1 or newer.  Another option is to modify
9857*** your PATH or compiler configuration so that the native linker is
9858*** used, and then restart.
9859
9860EOF
9861      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9862        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9863        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9864      else
9865        ld_shlibs=no
9866      fi
9867      ;;
9868
9869    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9870      case `$LD -v 2>&1` in
9871        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9872        ld_shlibs=no
9873        cat <<_LT_EOF 1>&2
9874
9875*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9876*** reliably create shared libraries on SCO systems.  Therefore, libtool
9877*** is disabling shared libraries support.  We urge you to upgrade GNU
9878*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9879*** your PATH or compiler configuration so that the native linker is
9880*** used, and then restart.
9881
9882_LT_EOF
9883        ;;
9884        *)
9885          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9886            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9887            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9888            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9889          else
9890            ld_shlibs=no
9891          fi
9892        ;;
9893      esac
9894      ;;
9895
9896    sunos4*)
9897      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9898      wlarc=
9899      hardcode_direct=yes
9900      hardcode_shlibpath_var=no
9901      ;;
9902
9903    *)
9904      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9905        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9907      else
9908        ld_shlibs=no
9909      fi
9910      ;;
9911    esac
9912
9913    if test "$ld_shlibs" = no; then
9914      runpath_var=
9915      hardcode_libdir_flag_spec=
9916      export_dynamic_flag_spec=
9917      whole_archive_flag_spec=
9918    fi
9919  else
9920    # PORTME fill in a description of your system's linker (not GNU ld)
9921    case $host_os in
9922    aix3*)
9923      allow_undefined_flag=unsupported
9924      always_export_symbols=yes
9925      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'
9926      # Note: this linker hardcodes the directories in LIBPATH if there
9927      # are no directories specified by -L.
9928      hardcode_minus_L=yes
9929      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9930        # Neither direct hardcoding nor static linking is supported with a
9931        # broken collect2.
9932        hardcode_direct=unsupported
9933      fi
9934      ;;
9935
9936    aix4* | aix5*)
9937      if test "$host_cpu" = ia64; then
9938        # On IA64, the linker does run time linking by default, so we don't
9939        # have to do anything special.
9940        aix_use_runtimelinking=no
9941        exp_sym_flag='-Bexport'
9942        no_entry_flag=""
9943      else
9944        # If we're using GNU nm, then we don't want the "-C" option.
9945        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9946        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9947          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'
9948        else
9949          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'
9950        fi
9951        aix_use_runtimelinking=no
9952
9953        # Test if we are trying to use run time linking or normal
9954        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9955        # need to do runtime linking.
9956        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9957          for ld_flag in $LDFLAGS; do
9958          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9959            aix_use_runtimelinking=yes
9960            break
9961          fi
9962          done
9963          ;;
9964        esac
9965
9966        exp_sym_flag='-bexport'
9967        no_entry_flag='-bnoentry'
9968      fi
9969
9970      # When large executables or shared objects are built, AIX ld can
9971      # have problems creating the table of contents.  If linking a library
9972      # or program results in "error TOC overflow" add -mminimal-toc to
9973      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9974      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9975
9976      archive_cmds=''
9977      hardcode_direct=yes
9978      hardcode_libdir_separator=':'
9979      link_all_deplibs=yes
9980
9981      if test "$GCC" = yes; then
9982        case $host_os in aix4.[012]|aix4.[012].*)
9983        # We only want to do this on AIX 4.2 and lower, the check
9984        # below for broken collect2 doesn't work under 4.3+
9985          collect2name=`${CC} -print-prog-name=collect2`
9986          if test -f "$collect2name" && \
9987           strings "$collect2name" | grep resolve_lib_name >/dev/null
9988          then
9989          # We have reworked collect2
9990          hardcode_direct=yes
9991          else
9992          # We have old collect2
9993          hardcode_direct=unsupported
9994          # It fails to find uninstalled libraries when the uninstalled
9995          # path is not listed in the libpath.  Setting hardcode_minus_L
9996          # to unsupported forces relinking
9997          hardcode_minus_L=yes
9998          hardcode_libdir_flag_spec='-L$libdir'
9999          hardcode_libdir_separator=
10000          fi
10001          ;;
10002        esac
10003        shared_flag='-shared'
10004        if test "$aix_use_runtimelinking" = yes; then
10005          shared_flag="$shared_flag "'${wl}-G'
10006        fi
10007      else
10008        # not using gcc
10009        if test "$host_cpu" = ia64; then
10010        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10011        # chokes on -Wl,-G. The following line is correct:
10012          shared_flag='-G'
10013        else
10014          if test "$aix_use_runtimelinking" = yes; then
10015            shared_flag='${wl}-G'
10016          else
10017            shared_flag='${wl}-bM:SRE'
10018          fi
10019        fi
10020      fi
10021
10022      # It seems that -bexpall does not export symbols beginning with
10023      # underscore (_), so it is better to generate a list of symbols to export.
10024      always_export_symbols=yes
10025      if test "$aix_use_runtimelinking" = yes; then
10026        # Warning - without using the other runtime loading flags (-brtl),
10027        # -berok will link without error, but may produce a broken library.
10028        allow_undefined_flag='-berok'
10029       # Determine the default libpath from the value encoded in an empty executable.
10030       cat >conftest.$ac_ext <<_ACEOF
10031/* confdefs.h.  */
10032_ACEOF
10033cat confdefs.h >>conftest.$ac_ext
10034cat >>conftest.$ac_ext <<_ACEOF
10035/* end confdefs.h.  */
10036
10037int
10038main ()
10039{
10040
10041  ;
10042  return 0;
10043}
10044_ACEOF
10045rm -f conftest.$ac_objext conftest$ac_exeext
10046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10047  (eval $ac_link) 2>conftest.er1
10048  ac_status=$?
10049  grep -v '^ *+' conftest.er1 >conftest.err
10050  rm -f conftest.er1
10051  cat conftest.err >&5
10052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053  (exit $ac_status); } &&
10054         { ac_try='test -z "$ac_c_werror_flag"
10055                         || test ! -s conftest.err'
10056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057  (eval $ac_try) 2>&5
10058  ac_status=$?
10059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060  (exit $ac_status); }; } &&
10061         { ac_try='test -s conftest$ac_exeext'
10062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063  (eval $ac_try) 2>&5
10064  ac_status=$?
10065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066  (exit $ac_status); }; }; then
10067
10068aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10069}'`
10070# Check for a 64-bit object if we didn't find anything.
10071if 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; }
10072}'`; fi
10073else
10074  echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077fi
10078rm -f conftest.err conftest.$ac_objext \
10079      conftest$ac_exeext conftest.$ac_ext
10080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10081
10082       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10083        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"
10084       else
10085        if test "$host_cpu" = ia64; then
10086          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10087          allow_undefined_flag="-z nodefs"
10088          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"
10089        else
10090         # Determine the default libpath from the value encoded in an empty executable.
10091         cat >conftest.$ac_ext <<_ACEOF
10092/* confdefs.h.  */
10093_ACEOF
10094cat confdefs.h >>conftest.$ac_ext
10095cat >>conftest.$ac_ext <<_ACEOF
10096/* end confdefs.h.  */
10097
10098int
10099main ()
10100{
10101
10102  ;
10103  return 0;
10104}
10105_ACEOF
10106rm -f conftest.$ac_objext conftest$ac_exeext
10107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10108  (eval $ac_link) 2>conftest.er1
10109  ac_status=$?
10110  grep -v '^ *+' conftest.er1 >conftest.err
10111  rm -f conftest.er1
10112  cat conftest.err >&5
10113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114  (exit $ac_status); } &&
10115         { ac_try='test -z "$ac_c_werror_flag"
10116                         || test ! -s conftest.err'
10117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118  (eval $ac_try) 2>&5
10119  ac_status=$?
10120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121  (exit $ac_status); }; } &&
10122         { ac_try='test -s conftest$ac_exeext'
10123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124  (eval $ac_try) 2>&5
10125  ac_status=$?
10126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127  (exit $ac_status); }; }; then
10128
10129aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10130}'`
10131# Check for a 64-bit object if we didn't find anything.
10132if 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; }
10133}'`; fi
10134else
10135  echo "$as_me: failed program was:" >&5
10136sed 's/^/| /' conftest.$ac_ext >&5
10137
10138fi
10139rm -f conftest.err conftest.$ac_objext \
10140      conftest$ac_exeext conftest.$ac_ext
10141if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10142
10143         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10144          # Warning - without using the other run time loading flags,
10145          # -berok will link without error, but may produce a broken library.
10146          no_undefined_flag=' ${wl}-bernotok'
10147          allow_undefined_flag=' ${wl}-berok'
10148          # Exported symbols can be pulled into shared objects from archives
10149          whole_archive_flag_spec='$convenience'
10150          archive_cmds_need_lc=yes
10151          # This is similar to how AIX traditionally builds its shared libraries.
10152          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'
10153        fi
10154      fi
10155      ;;
10156
10157    amigaos*)
10158      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)'
10159      hardcode_libdir_flag_spec='-L$libdir'
10160      hardcode_minus_L=yes
10161      # see comment about different semantics on the GNU ld section
10162      ld_shlibs=no
10163      ;;
10164
10165    bsdi[45]*)
10166      export_dynamic_flag_spec=-rdynamic
10167      ;;
10168
10169    cygwin* | mingw* | pw32*)
10170      # When not using gcc, we currently assume that we are using
10171      # Microsoft Visual C++.
10172      # hardcode_libdir_flag_spec is actually meaningless, as there is
10173      # no search path for DLLs.
10174      hardcode_libdir_flag_spec=' '
10175      allow_undefined_flag=unsupported
10176      # Tell ltmain to make .lib files, not .a files.
10177      libext=lib
10178      # Tell ltmain to make .dll files, not .so files.
10179      shrext_cmds=".dll"
10180      # FIXME: Setting linknames here is a bad hack.
10181      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10182      # The linker will automatically build a .lib file if we build a DLL.
10183      old_archive_From_new_cmds='true'
10184      # FIXME: Should let the user specify the lib program.
10185      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10186      fix_srcfile_path='`cygpath -w "$srcfile"`'
10187      enable_shared_with_static_runtimes=yes
10188      ;;
10189
10190    darwin* | rhapsody*)
10191      case $host_os in
10192        rhapsody* | darwin1.[012])
10193         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10194         ;;
10195       *) # Darwin 1.3 on
10196         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10197           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10198         else
10199           case ${MACOSX_DEPLOYMENT_TARGET} in
10200             10.[012])
10201               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10202               ;;
10203             10.*)
10204               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10205               ;;
10206           esac
10207         fi
10208         ;;
10209      esac
10210      archive_cmds_need_lc=no
10211      hardcode_direct=no
10212      hardcode_automatic=yes
10213      hardcode_shlibpath_var=unsupported
10214      whole_archive_flag_spec=''
10215      link_all_deplibs=yes
10216    if test "$GCC" = yes ; then
10217        output_verbose_link_cmd='echo'
10218        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10219      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10220      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10221      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}'
10222      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}'
10223    else
10224      case $cc_basename in
10225        xlc*)
10226         output_verbose_link_cmd='echo'
10227         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10228         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10229          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10230         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}'
10231          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}'
10232          ;;
10233       *)
10234         ld_shlibs=no
10235          ;;
10236      esac
10237    fi
10238      ;;
10239
10240    dgux*)
10241      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10242      hardcode_libdir_flag_spec='-L$libdir'
10243      hardcode_shlibpath_var=no
10244      ;;
10245
10246    freebsd1*)
10247      ld_shlibs=no
10248      ;;
10249
10250    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10251    # support.  Future versions do this automatically, but an explicit c++rt0.o
10252    # does not break anything, and helps significantly (at the cost of a little
10253    # extra space).
10254    freebsd2.2*)
10255      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10256      hardcode_libdir_flag_spec='-R$libdir'
10257      hardcode_direct=yes
10258      hardcode_shlibpath_var=no
10259      ;;
10260
10261    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10262    freebsd2*)
10263      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10264      hardcode_direct=yes
10265      hardcode_minus_L=yes
10266      hardcode_shlibpath_var=no
10267      ;;
10268
10269    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10270    freebsd* | kfreebsd*-gnu | dragonfly*)
10271      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10272      hardcode_libdir_flag_spec='-R$libdir'
10273      hardcode_direct=yes
10274      hardcode_shlibpath_var=no
10275      ;;
10276
10277    hpux9*)
10278      if test "$GCC" = yes; then
10279        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'
10280      else
10281        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'
10282      fi
10283      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10284      hardcode_libdir_separator=:
10285      hardcode_direct=yes
10286
10287      # hardcode_minus_L: Not really in the search PATH,
10288      # but as the default location of the library.
10289      hardcode_minus_L=yes
10290      export_dynamic_flag_spec='${wl}-E'
10291      ;;
10292
10293    hpux10*)
10294      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10295        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10296      else
10297        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10298      fi
10299      if test "$with_gnu_ld" = no; then
10300        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10301        hardcode_libdir_separator=:
10302
10303        hardcode_direct=yes
10304        export_dynamic_flag_spec='${wl}-E'
10305
10306        # hardcode_minus_L: Not really in the search PATH,
10307        # but as the default location of the library.
10308        hardcode_minus_L=yes
10309      fi
10310      ;;
10311
10312    hpux11*)
10313      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10314        case $host_cpu in
10315        hppa*64*)
10316          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10317          ;;
10318        ia64*)
10319          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10320          ;;
10321        *)
10322          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10323          ;;
10324        esac
10325      else
10326        case $host_cpu in
10327        hppa*64*)
10328          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10329          ;;
10330        ia64*)
10331          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10332          ;;
10333        *)
10334          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10335          ;;
10336        esac
10337      fi
10338      if test "$with_gnu_ld" = no; then
10339        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10340        hardcode_libdir_separator=:
10341
10342        case $host_cpu in
10343        hppa*64*|ia64*)
10344          hardcode_libdir_flag_spec_ld='+b $libdir'
10345          hardcode_direct=no
10346          hardcode_shlibpath_var=no
10347          ;;
10348        *)
10349          hardcode_direct=yes
10350          export_dynamic_flag_spec='${wl}-E'
10351
10352          # hardcode_minus_L: Not really in the search PATH,
10353          # but as the default location of the library.
10354          hardcode_minus_L=yes
10355          ;;
10356        esac
10357      fi
10358      ;;
10359
10360    irix5* | irix6* | nonstopux*)
10361      if test "$GCC" = yes; then
10362        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'
10363      else
10364        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'
10365        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10366      fi
10367      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10368      hardcode_libdir_separator=:
10369      link_all_deplibs=yes
10370      ;;
10371
10372    netbsd*)
10373      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10374        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10375      else
10376        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10377      fi
10378      hardcode_libdir_flag_spec='-R$libdir'
10379      hardcode_direct=yes
10380      hardcode_shlibpath_var=no
10381      ;;
10382
10383    newsos6)
10384      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10385      hardcode_direct=yes
10386      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10387      hardcode_libdir_separator=:
10388      hardcode_shlibpath_var=no
10389      ;;
10390
10391    openbsd*)
10392      hardcode_direct=yes
10393      hardcode_shlibpath_var=no
10394      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10395        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10396        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10397        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10398        export_dynamic_flag_spec='${wl}-E'
10399      else
10400       case $host_os in
10401         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10402           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10403           hardcode_libdir_flag_spec='-R$libdir'
10404           ;;
10405         *)
10406           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10407           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10408           ;;
10409       esac
10410      fi
10411      ;;
10412
10413    os2*)
10414      hardcode_libdir_flag_spec='-L$libdir'
10415      hardcode_minus_L=yes
10416      allow_undefined_flag=unsupported
10417      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'
10418      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10419      ;;
10420
10421    osf3*)
10422      if test "$GCC" = yes; then
10423        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10424        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'
10425      else
10426        allow_undefined_flag=' -expect_unresolved \*'
10427        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'
10428      fi
10429      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10430      hardcode_libdir_separator=:
10431      ;;
10432
10433    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10434      if test "$GCC" = yes; then
10435        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10436        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'
10437        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10438      else
10439        allow_undefined_flag=' -expect_unresolved \*'
10440        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'
10441        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10442        $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'
10443
10444        # Both c and cxx compiler support -rpath directly
10445        hardcode_libdir_flag_spec='-rpath $libdir'
10446      fi
10447      hardcode_libdir_separator=:
10448      ;;
10449
10450    solaris*)
10451      no_undefined_flag=' -z text'
10452      if test "$GCC" = yes; then
10453        wlarc='${wl}'
10454        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10455        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10456          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10457      else
10458        wlarc=''
10459        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10460        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10461        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10462      fi
10463      hardcode_libdir_flag_spec='-R$libdir'
10464      hardcode_shlibpath_var=no
10465      case $host_os in
10466      solaris2.[0-5] | solaris2.[0-5].*) ;;
10467      *)
10468        # The compiler driver will combine linker options so we
10469        # cannot just pass the convience library names through
10470        # without $wl, iff we do not link with $LD.
10471        # Luckily, gcc supports the same syntax we need for Sun Studio.
10472        # Supported since Solaris 2.6 (maybe 2.5.1?)
10473        case $wlarc in
10474        '')
10475          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10476        *)
10477          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' ;;
10478        esac ;;
10479      esac
10480      link_all_deplibs=yes
10481      ;;
10482
10483    sunos4*)
10484      if test "x$host_vendor" = xsequent; then
10485        # Use $CC to link under sequent, because it throws in some extra .o
10486        # files that make .init and .fini sections work.
10487        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10488      else
10489        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10490      fi
10491      hardcode_libdir_flag_spec='-L$libdir'
10492      hardcode_direct=yes
10493      hardcode_minus_L=yes
10494      hardcode_shlibpath_var=no
10495      ;;
10496
10497    sysv4)
10498      case $host_vendor in
10499        sni)
10500          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10501          hardcode_direct=yes # is this really true???
10502        ;;
10503        siemens)
10504          ## LD is ld it makes a PLAMLIB
10505          ## CC just makes a GrossModule.
10506          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10507          reload_cmds='$CC -r -o $output$reload_objs'
10508          hardcode_direct=no
10509        ;;
10510        motorola)
10511          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10512          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10513        ;;
10514      esac
10515      runpath_var='LD_RUN_PATH'
10516      hardcode_shlibpath_var=no
10517      ;;
10518
10519    sysv4.3*)
10520      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10521      hardcode_shlibpath_var=no
10522      export_dynamic_flag_spec='-Bexport'
10523      ;;
10524
10525    sysv4*MP*)
10526      if test -d /usr/nec; then
10527        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10528        hardcode_shlibpath_var=no
10529        runpath_var=LD_RUN_PATH
10530        hardcode_runpath_var=yes
10531        ld_shlibs=yes
10532      fi
10533      ;;
10534
10535    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10536      no_undefined_flag='${wl}-z,text'
10537      archive_cmds_need_lc=no
10538      hardcode_shlibpath_var=no
10539      runpath_var='LD_RUN_PATH'
10540
10541      if test "$GCC" = yes; then
10542        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10543        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10544      else
10545        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10546        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10547      fi
10548      ;;
10549
10550    sysv5* | sco3.2v5* | sco5v6*)
10551      # Note: We can NOT use -z defs as we might desire, because we do not
10552      # link with -lc, and that would cause any symbols used from libc to
10553      # always be unresolved, which means just about no library would
10554      # ever link correctly.  If we're not using GNU ld we use -z text
10555      # though, which does catch some bad symbols but isn't as heavy-handed
10556      # as -z defs.
10557      no_undefined_flag='${wl}-z,text'
10558      allow_undefined_flag='${wl}-z,nodefs'
10559      archive_cmds_need_lc=no
10560      hardcode_shlibpath_var=no
10561      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10562      hardcode_libdir_separator=':'
10563      link_all_deplibs=yes
10564      export_dynamic_flag_spec='${wl}-Bexport'
10565      runpath_var='LD_RUN_PATH'
10566
10567      if test "$GCC" = yes; then
10568        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10569        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10570      else
10571        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10572        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10573      fi
10574      ;;
10575
10576    uts4*)
10577      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10578      hardcode_libdir_flag_spec='-L$libdir'
10579      hardcode_shlibpath_var=no
10580      ;;
10581
10582    *)
10583      ld_shlibs=no
10584      ;;
10585    esac
10586  fi
10587
10588echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10589echo "${ECHO_T}$ld_shlibs" >&6
10590test "$ld_shlibs" = no && can_build_shared=no
10591
10592#
10593# Do we need to explicitly link libc?
10594#
10595case "x$archive_cmds_need_lc" in
10596x|xyes)
10597  # Assume -lc should be added
10598  archive_cmds_need_lc=yes
10599
10600  if test "$enable_shared" = yes && test "$GCC" = yes; then
10601    case $archive_cmds in
10602    *'~'*)
10603      # FIXME: we may have to deal with multi-command sequences.
10604      ;;
10605    '$CC '*)
10606      # Test whether the compiler implicitly links with -lc since on some
10607      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10608      # to ld, don't add -lc before -lgcc.
10609      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10610echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10611      $rm conftest*
10612      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10613
10614      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10615  (eval $ac_compile) 2>&5
10616  ac_status=$?
10617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618  (exit $ac_status); } 2>conftest.err; then
10619        soname=conftest
10620        lib=conftest
10621        libobjs=conftest.$ac_objext
10622        deplibs=
10623        wl=$lt_prog_compiler_wl
10624        pic_flag=$lt_prog_compiler_pic
10625        compiler_flags=-v
10626        linker_flags=-v
10627        verstring=
10628        output_objdir=.
10629        libname=conftest
10630        lt_save_allow_undefined_flag=$allow_undefined_flag
10631        allow_undefined_flag=
10632        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10633  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10634  ac_status=$?
10635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636  (exit $ac_status); }
10637        then
10638          archive_cmds_need_lc=no
10639        else
10640          archive_cmds_need_lc=yes
10641        fi
10642        allow_undefined_flag=$lt_save_allow_undefined_flag
10643      else
10644        cat conftest.err 1>&5
10645      fi
10646      $rm conftest*
10647      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10648echo "${ECHO_T}$archive_cmds_need_lc" >&6
10649      ;;
10650    esac
10651  fi
10652  ;;
10653esac
10654
10655echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10656echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10657library_names_spec=
10658libname_spec='lib$name'
10659soname_spec=
10660shrext_cmds=".so"
10661postinstall_cmds=
10662postuninstall_cmds=
10663finish_cmds=
10664finish_eval=
10665shlibpath_var=
10666shlibpath_overrides_runpath=unknown
10667version_type=none
10668dynamic_linker="$host_os ld.so"
10669sys_lib_dlsearch_path_spec="/lib /usr/lib"
10670if test "$GCC" = yes; then
10671  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10672  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10673    # if the path contains ";" then we assume it to be the separator
10674    # otherwise default to the standard path separator (i.e. ":") - it is
10675    # assumed that no part of a normal pathname contains ";" but that should
10676    # okay in the real world where ";" in dirpaths is itself problematic.
10677    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10678  else
10679    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10680  fi
10681else
10682  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10683fi
10684need_lib_prefix=unknown
10685hardcode_into_libs=no
10686
10687# when you set need_version to no, make sure it does not cause -set_version
10688# flags to be left without arguments
10689need_version=unknown
10690
10691case $host_os in
10692aix3*)
10693  version_type=linux
10694  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10695  shlibpath_var=LIBPATH
10696
10697  # AIX 3 has no versioning support, so we append a major version to the name.
10698  soname_spec='${libname}${release}${shared_ext}$major'
10699  ;;
10700
10701aix4* | aix5*)
10702  version_type=linux
10703  need_lib_prefix=no
10704  need_version=no
10705  hardcode_into_libs=yes
10706  if test "$host_cpu" = ia64; then
10707    # AIX 5 supports IA64
10708    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10709    shlibpath_var=LD_LIBRARY_PATH
10710  else
10711    # With GCC up to 2.95.x, collect2 would create an import file
10712    # for dependence libraries.  The import file would start with
10713    # the line `#! .'.  This would cause the generated library to
10714    # depend on `.', always an invalid library.  This was fixed in
10715    # development snapshots of GCC prior to 3.0.
10716    case $host_os in
10717      aix4 | aix4.[01] | aix4.[01].*)
10718      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10719           echo ' yes '
10720           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10721        :
10722      else
10723        can_build_shared=no
10724      fi
10725      ;;
10726    esac
10727    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10728    # soname into executable. Probably we can add versioning support to
10729    # collect2, so additional links can be useful in future.
10730    if test "$aix_use_runtimelinking" = yes; then
10731      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10732      # instead of lib<name>.a to let people know that these are not
10733      # typical AIX shared libraries.
10734      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735    else
10736      # We preserve .a as extension for shared libraries through AIX4.2
10737      # and later when we are not doing run time linking.
10738      library_names_spec='${libname}${release}.a $libname.a'
10739      soname_spec='${libname}${release}${shared_ext}$major'
10740    fi
10741    shlibpath_var=LIBPATH
10742  fi
10743  ;;
10744
10745amigaos*)
10746  library_names_spec='$libname.ixlibrary $libname.a'
10747  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10748  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'
10749  ;;
10750
10751beos*)
10752  library_names_spec='${libname}${shared_ext}'
10753  dynamic_linker="$host_os ld.so"
10754  shlibpath_var=LIBRARY_PATH
10755  ;;
10756
10757bsdi[45]*)
10758  version_type=linux
10759  need_version=no
10760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10761  soname_spec='${libname}${release}${shared_ext}$major'
10762  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10763  shlibpath_var=LD_LIBRARY_PATH
10764  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10765  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10766  # the default ld.so.conf also contains /usr/contrib/lib and
10767  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10768  # libtool to hard-code these into programs
10769  ;;
10770
10771cygwin* | mingw* | pw32*)
10772  version_type=windows
10773  shrext_cmds=".dll"
10774  need_version=no
10775  need_lib_prefix=no
10776
10777  case $GCC,$host_os in
10778  yes,cygwin* | yes,mingw* | yes,pw32*)
10779    library_names_spec='$libname.dll.a'
10780    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10781    postinstall_cmds='base_file=`basename \${file}`~
10782      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10783      dldir=$destdir/`dirname \$dlpath`~
10784      test -d \$dldir || mkdir -p \$dldir~
10785      $install_prog $dir/$dlname \$dldir/$dlname~
10786      chmod a+x \$dldir/$dlname'
10787    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10788      dlpath=$dir/\$dldll~
10789       $rm \$dlpath'
10790    shlibpath_overrides_runpath=yes
10791
10792    case $host_os in
10793    cygwin*)
10794      # Cygwin DLLs use 'cyg' prefix rather than 'lib'