source: tags/trunk-on-27Jan2010/configure @ 2177

Last change on this file since 2177 was 1210, checked in by forrest, 10 years ago

out miplib

  • Property svn:executable set to *
File size: 734.7 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Cbc 0.1.
5#
6# Report bugs to <coin-cbc@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cbc'
432PACKAGE_TARNAME='cbc'
433PACKAGE_VERSION='0.1'
434PACKAGE_STRING='Cbc 0.1'
435PACKAGE_BUGREPORT='coin-cbc@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
480ac_subdirs_all="$ac_subdirs_all CoinUtils"
481ac_subdirs_all="$ac_subdirs_all Data/Sample"
482ac_subdirs_all="$ac_subdirs_all Clp"
483ac_subdirs_all="$ac_subdirs_all DyLP"
484ac_subdirs_all="$ac_subdirs_all Vol"
485ac_subdirs_all="$ac_subdirs_all Osi"
486ac_subdirs_all="$ac_subdirs_all Cgl"
487ac_subdirs_all="$ac_subdirs_all Cbc"
488ac_subdirs_all="$ac_subdirs_all SYMPHONY"
489ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 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 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
490ac_subst_files=''
491
492# Initialize some variables set by options.
493ac_init_help=
494ac_init_version=false
495# The variables have the same names as the options, with
496# dashes changed to underlines.
497cache_file=/dev/null
498exec_prefix=NONE
499no_create=
500no_recursion=
501prefix=NONE
502program_prefix=NONE
503program_suffix=NONE
504program_transform_name=s,x,x,
505silent=
506site=
507srcdir=
508verbose=
509x_includes=NONE
510x_libraries=NONE
511
512# Installation directory options.
513# These are left unexpanded so users can "make install exec_prefix=/foo"
514# and all the variables that are supposed to be based on exec_prefix
515# by default will actually change.
516# Use braces instead of parens because sh, perl, etc. also accept them.
517bindir='${exec_prefix}/bin'
518sbindir='${exec_prefix}/sbin'
519libexecdir='${exec_prefix}/libexec'
520datadir='${prefix}/share'
521sysconfdir='${prefix}/etc'
522sharedstatedir='${prefix}/com'
523localstatedir='${prefix}/var'
524libdir='${exec_prefix}/lib'
525includedir='${prefix}/include'
526oldincludedir='/usr/include'
527infodir='${prefix}/info'
528mandir='${prefix}/man'
529
530ac_prev=
531for ac_option
532do
533  # If the previous option needs an argument, assign it.
534  if test -n "$ac_prev"; then
535    eval "$ac_prev=\$ac_option"
536    ac_prev=
537    continue
538  fi
539
540  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
541
542  # Accept the important Cygnus configure options, so we can diagnose typos.
543
544  case $ac_option in
545
546  -bindir | --bindir | --bindi | --bind | --bin | --bi)
547    ac_prev=bindir ;;
548  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
549    bindir=$ac_optarg ;;
550
551  -build | --build | --buil | --bui | --bu)
552    ac_prev=build_alias ;;
553  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
554    build_alias=$ac_optarg ;;
555
556  -cache-file | --cache-file | --cache-fil | --cache-fi \
557  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
558    ac_prev=cache_file ;;
559  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
560  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
561    cache_file=$ac_optarg ;;
562
563  --config-cache | -C)
564    cache_file=config.cache ;;
565
566  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
567    ac_prev=datadir ;;
568  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
569  | --da=*)
570    datadir=$ac_optarg ;;
571
572  -disable-* | --disable-*)
573    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
574    # Reject names that are not valid shell variable names.
575    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577   { (exit 1); exit 1; }; }
578    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579    eval "enable_$ac_feature=no" ;;
580
581  -enable-* | --enable-*)
582    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
583    # Reject names that are not valid shell variable names.
584    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
585      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
586   { (exit 1); exit 1; }; }
587    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
588    case $ac_option in
589      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
590      *) ac_optarg=yes ;;
591    esac
592    eval "enable_$ac_feature='$ac_optarg'" ;;
593
594  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
595  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
596  | --exec | --exe | --ex)
597    ac_prev=exec_prefix ;;
598  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
599  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
600  | --exec=* | --exe=* | --ex=*)
601    exec_prefix=$ac_optarg ;;
602
603  -gas | --gas | --ga | --g)
604    # Obsolete; use --with-gas.
605    with_gas=yes ;;
606
607  -help | --help | --hel | --he | -h)
608    ac_init_help=long ;;
609  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
610    ac_init_help=recursive ;;
611  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
612    ac_init_help=short ;;
613
614  -host | --host | --hos | --ho)
615    ac_prev=host_alias ;;
616  -host=* | --host=* | --hos=* | --ho=*)
617    host_alias=$ac_optarg ;;
618
619  -includedir | --includedir | --includedi | --included | --include \
620  | --includ | --inclu | --incl | --inc)
621    ac_prev=includedir ;;
622  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
623  | --includ=* | --inclu=* | --incl=* | --inc=*)
624    includedir=$ac_optarg ;;
625
626  -infodir | --infodir | --infodi | --infod | --info | --inf)
627    ac_prev=infodir ;;
628  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
629    infodir=$ac_optarg ;;
630
631  -libdir | --libdir | --libdi | --libd)
632    ac_prev=libdir ;;
633  -libdir=* | --libdir=* | --libdi=* | --libd=*)
634    libdir=$ac_optarg ;;
635
636  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
637  | --libexe | --libex | --libe)
638    ac_prev=libexecdir ;;
639  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
640  | --libexe=* | --libex=* | --libe=*)
641    libexecdir=$ac_optarg ;;
642
643  -localstatedir | --localstatedir | --localstatedi | --localstated \
644  | --localstate | --localstat | --localsta | --localst \
645  | --locals | --local | --loca | --loc | --lo)
646    ac_prev=localstatedir ;;
647  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
648  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
649  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
650    localstatedir=$ac_optarg ;;
651
652  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
653    ac_prev=mandir ;;
654  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
655    mandir=$ac_optarg ;;
656
657  -nfp | --nfp | --nf)
658    # Obsolete; use --without-fp.
659    with_fp=no ;;
660
661  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
662  | --no-cr | --no-c | -n)
663    no_create=yes ;;
664
665  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
666  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
667    no_recursion=yes ;;
668
669  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
670  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
671  | --oldin | --oldi | --old | --ol | --o)
672    ac_prev=oldincludedir ;;
673  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
674  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
675  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
676    oldincludedir=$ac_optarg ;;
677
678  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
679    ac_prev=prefix ;;
680  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
681    prefix=$ac_optarg ;;
682
683  -program-prefix | --program-prefix | --program-prefi | --program-pref \
684  | --program-pre | --program-pr | --program-p)
685    ac_prev=program_prefix ;;
686  -program-prefix=* | --program-prefix=* | --program-prefi=* \
687  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
688    program_prefix=$ac_optarg ;;
689
690  -program-suffix | --program-suffix | --program-suffi | --program-suff \
691  | --program-suf | --program-su | --program-s)
692    ac_prev=program_suffix ;;
693  -program-suffix=* | --program-suffix=* | --program-suffi=* \
694  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
695    program_suffix=$ac_optarg ;;
696
697  -program-transform-name | --program-transform-name \
698  | --program-transform-nam | --program-transform-na \
699  | --program-transform-n | --program-transform- \
700  | --program-transform | --program-transfor \
701  | --program-transfo | --program-transf \
702  | --program-trans | --program-tran \
703  | --progr-tra | --program-tr | --program-t)
704    ac_prev=program_transform_name ;;
705  -program-transform-name=* | --program-transform-name=* \
706  | --program-transform-nam=* | --program-transform-na=* \
707  | --program-transform-n=* | --program-transform-=* \
708  | --program-transform=* | --program-transfor=* \
709  | --program-transfo=* | --program-transf=* \
710  | --program-trans=* | --program-tran=* \
711  | --progr-tra=* | --program-tr=* | --program-t=*)
712    program_transform_name=$ac_optarg ;;
713
714  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
715  | -silent | --silent | --silen | --sile | --sil)
716    silent=yes ;;
717
718  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
719    ac_prev=sbindir ;;
720  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
721  | --sbi=* | --sb=*)
722    sbindir=$ac_optarg ;;
723
724  -sharedstatedir | --sharedstatedir | --sharedstatedi \
725  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
726  | --sharedst | --shareds | --shared | --share | --shar \
727  | --sha | --sh)
728    ac_prev=sharedstatedir ;;
729  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
730  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
731  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
732  | --sha=* | --sh=*)
733    sharedstatedir=$ac_optarg ;;
734
735  -site | --site | --sit)
736    ac_prev=site ;;
737  -site=* | --site=* | --sit=*)
738    site=$ac_optarg ;;
739
740  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
741    ac_prev=srcdir ;;
742  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
743    srcdir=$ac_optarg ;;
744
745  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
746  | --syscon | --sysco | --sysc | --sys | --sy)
747    ac_prev=sysconfdir ;;
748  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
749  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
750    sysconfdir=$ac_optarg ;;
751
752  -target | --target | --targe | --targ | --tar | --ta | --t)
753    ac_prev=target_alias ;;
754  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
755    target_alias=$ac_optarg ;;
756
757  -v | -verbose | --verbose | --verbos | --verbo | --verb)
758    verbose=yes ;;
759
760  -version | --version | --versio | --versi | --vers | -V)
761    ac_init_version=: ;;
762
763  -with-* | --with-*)
764    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
765    # Reject names that are not valid shell variable names.
766    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767      { echo "$as_me: error: invalid package name: $ac_package" >&2
768   { (exit 1); exit 1; }; }
769    ac_package=`echo $ac_package| sed 's/-/_/g'`
770    case $ac_option in
771      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
772      *) ac_optarg=yes ;;
773    esac
774    eval "with_$ac_package='$ac_optarg'" ;;
775
776  -without-* | --without-*)
777    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
778    # Reject names that are not valid shell variable names.
779    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
780      { echo "$as_me: error: invalid package name: $ac_package" >&2
781   { (exit 1); exit 1; }; }
782    ac_package=`echo $ac_package | sed 's/-/_/g'`
783    eval "with_$ac_package=no" ;;
784
785  --x)
786    # Obsolete; use --with-x.
787    with_x=yes ;;
788
789  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
790  | --x-incl | --x-inc | --x-in | --x-i)
791    ac_prev=x_includes ;;
792  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
793  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
794    x_includes=$ac_optarg ;;
795
796  -x-libraries | --x-libraries | --x-librarie | --x-librari \
797  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
798    ac_prev=x_libraries ;;
799  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
800  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
801    x_libraries=$ac_optarg ;;
802
803  -*) { echo "$as_me: error: unrecognized option: $ac_option
804Try \`$0 --help' for more information." >&2
805   { (exit 1); exit 1; }; }
806    ;;
807
808  *=*)
809    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
810    # Reject names that are not valid shell variable names.
811    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
812      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
813   { (exit 1); exit 1; }; }
814    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
815    eval "$ac_envvar='$ac_optarg'"
816    export $ac_envvar ;;
817
818  *)
819    # FIXME: should be removed in autoconf 3.0.
820    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
821    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
822      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
823    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
824    ;;
825
826  esac
827done
828
829if test -n "$ac_prev"; then
830  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
831  { echo "$as_me: error: missing argument to $ac_option" >&2
832   { (exit 1); exit 1; }; }
833fi
834
835# Be sure to have absolute paths.
836for ac_var in exec_prefix prefix
837do
838  eval ac_val=$`echo $ac_var`
839  case $ac_val in
840    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
841    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842   { (exit 1); exit 1; }; };;
843  esac
844done
845
846# Be sure to have absolute paths.
847for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
848              localstatedir libdir includedir oldincludedir infodir mandir
849do
850  eval ac_val=$`echo $ac_var`
851  case $ac_val in
852    [\\/$]* | ?:[\\/]* ) ;;
853    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
854   { (exit 1); exit 1; }; };;
855  esac
856done
857
858# There might be people who depend on the old broken behavior: `$host'
859# used to hold the argument of --host etc.
860# FIXME: To remove some day.
861build=$build_alias
862host=$host_alias
863target=$target_alias
864
865# FIXME: To remove some day.
866if test "x$host_alias" != x; then
867  if test "x$build_alias" = x; then
868    cross_compiling=maybe
869    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
870    If a cross compiler is detected then cross compile mode will be used." >&2
871  elif test "x$build_alias" != "x$host_alias"; then
872    cross_compiling=yes
873  fi
874fi
875
876ac_tool_prefix=
877test -n "$host_alias" && ac_tool_prefix=$host_alias-
878
879test "$silent" = yes && exec 6>/dev/null
880
881
882# Find the source files, if location was not specified.
883if test -z "$srcdir"; then
884  ac_srcdir_defaulted=yes
885  # Try the directory containing this script, then its parent.
886  ac_confdir=`(dirname "$0") 2>/dev/null ||
887$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
888         X"$0" : 'X\(//\)[^/]' \| \
889         X"$0" : 'X\(//\)$' \| \
890         X"$0" : 'X\(/\)' \| \
891         .     : '\(.\)' 2>/dev/null ||
892echo X"$0" |
893    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
894          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
895          /^X\(\/\/\)$/{ s//\1/; q; }
896          /^X\(\/\).*/{ s//\1/; q; }
897          s/.*/./; q'`
898  srcdir=$ac_confdir
899  if test ! -r $srcdir/$ac_unique_file; then
900    srcdir=..
901  fi
902else
903  ac_srcdir_defaulted=no
904fi
905if test ! -r $srcdir/$ac_unique_file; then
906  if test "$ac_srcdir_defaulted" = yes; then
907    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
908   { (exit 1); exit 1; }; }
909  else
910    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
911   { (exit 1); exit 1; }; }
912  fi
913fi
914(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
915  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
916   { (exit 1); exit 1; }; }
917srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
918ac_env_build_alias_set=${build_alias+set}
919ac_env_build_alias_value=$build_alias
920ac_cv_env_build_alias_set=${build_alias+set}
921ac_cv_env_build_alias_value=$build_alias
922ac_env_host_alias_set=${host_alias+set}
923ac_env_host_alias_value=$host_alias
924ac_cv_env_host_alias_set=${host_alias+set}
925ac_cv_env_host_alias_value=$host_alias
926ac_env_target_alias_set=${target_alias+set}
927ac_env_target_alias_value=$target_alias
928ac_cv_env_target_alias_set=${target_alias+set}
929ac_cv_env_target_alias_value=$target_alias
930ac_env_CDEFS_set=${CDEFS+set}
931ac_env_CDEFS_value=$CDEFS
932ac_cv_env_CDEFS_set=${CDEFS+set}
933ac_cv_env_CDEFS_value=$CDEFS
934ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
935ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
936ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
937ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
938ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
939ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
940ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
941ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
942ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
943ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
944ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
945ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
946ac_env_CC_set=${CC+set}
947ac_env_CC_value=$CC
948ac_cv_env_CC_set=${CC+set}
949ac_cv_env_CC_value=$CC
950ac_env_CFLAGS_set=${CFLAGS+set}
951ac_env_CFLAGS_value=$CFLAGS
952ac_cv_env_CFLAGS_set=${CFLAGS+set}
953ac_cv_env_CFLAGS_value=$CFLAGS
954ac_env_LDFLAGS_set=${LDFLAGS+set}
955ac_env_LDFLAGS_value=$LDFLAGS
956ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
957ac_cv_env_LDFLAGS_value=$LDFLAGS
958ac_env_CPPFLAGS_set=${CPPFLAGS+set}
959ac_env_CPPFLAGS_value=$CPPFLAGS
960ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
961ac_cv_env_CPPFLAGS_value=$CPPFLAGS
962ac_env_MPICC_set=${MPICC+set}
963ac_env_MPICC_value=$MPICC
964ac_cv_env_MPICC_set=${MPICC+set}
965ac_cv_env_MPICC_value=$MPICC
966ac_env_CXXDEFS_set=${CXXDEFS+set}
967ac_env_CXXDEFS_value=$CXXDEFS
968ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
969ac_cv_env_CXXDEFS_value=$CXXDEFS
970ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
971ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
972ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
973ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
974ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
975ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
976ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
977ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
978ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
979ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
980ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
981ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
982ac_env_CXX_set=${CXX+set}
983ac_env_CXX_value=$CXX
984ac_cv_env_CXX_set=${CXX+set}
985ac_cv_env_CXX_value=$CXX
986ac_env_CXXFLAGS_set=${CXXFLAGS+set}
987ac_env_CXXFLAGS_value=$CXXFLAGS
988ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
989ac_cv_env_CXXFLAGS_value=$CXXFLAGS
990ac_env_MPICXX_set=${MPICXX+set}
991ac_env_MPICXX_value=$MPICXX
992ac_cv_env_MPICXX_set=${MPICXX+set}
993ac_cv_env_MPICXX_value=$MPICXX
994ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
995ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
996ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
997ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
998ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
999ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1000ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1001ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1002ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1003ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1004ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1005ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1006ac_env_F77_set=${F77+set}
1007ac_env_F77_value=$F77
1008ac_cv_env_F77_set=${F77+set}
1009ac_cv_env_F77_value=$F77
1010ac_env_FFLAGS_set=${FFLAGS+set}
1011ac_env_FFLAGS_value=$FFLAGS
1012ac_cv_env_FFLAGS_set=${FFLAGS+set}
1013ac_cv_env_FFLAGS_value=$FFLAGS
1014ac_env_MPIF77_set=${MPIF77+set}
1015ac_env_MPIF77_value=$MPIF77
1016ac_cv_env_MPIF77_set=${MPIF77+set}
1017ac_cv_env_MPIF77_value=$MPIF77
1018ac_env_CPP_set=${CPP+set}
1019ac_env_CPP_value=$CPP
1020ac_cv_env_CPP_set=${CPP+set}
1021ac_cv_env_CPP_value=$CPP
1022ac_env_CXXCPP_set=${CXXCPP+set}
1023ac_env_CXXCPP_value=$CXXCPP
1024ac_cv_env_CXXCPP_set=${CXXCPP+set}
1025ac_cv_env_CXXCPP_value=$CXXCPP
1026ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1027ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1028ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1029ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1030
1031#
1032# Report the --help message.
1033#
1034if test "$ac_init_help" = "long"; then
1035  # Omit some internal or obsolete options to make the list less imposing.
1036  # This message is too long to be a string in the A/UX 3.1 sh.
1037  cat <<_ACEOF
1038\`configure' configures Cbc 0.1 to adapt to many kinds of systems.
1039
1040Usage: $0 [OPTION]... [VAR=VALUE]...
1041
1042To assign environment variables (e.g., CC, CFLAGS...), specify them as
1043VAR=VALUE.  See below for descriptions of some of the useful variables.
1044
1045Defaults for the options are specified in brackets.
1046
1047Configuration:
1048  -h, --help              display this help and exit
1049      --help=short        display options specific to this package
1050      --help=recursive    display the short help of all the included packages
1051  -V, --version           display version information and exit
1052  -q, --quiet, --silent   do not print \`checking...' messages
1053      --cache-file=FILE   cache test results in FILE [disabled]
1054  -C, --config-cache      alias for \`--cache-file=config.cache'
1055  -n, --no-create         do not create output files
1056      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1057
1058_ACEOF
1059
1060  cat <<_ACEOF
1061Installation directories:
1062  --prefix=PREFIX         install architecture-independent files in PREFIX
1063                          [$ac_default_prefix]
1064  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1065                          [PREFIX]
1066
1067By default, \`make install' will install all the files in
1068\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1069an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1070for instance \`--prefix=\$HOME'.
1071
1072For better control, use the options below.
1073
1074Fine tuning of the installation directories:
1075  --bindir=DIR           user executables [EPREFIX/bin]
1076  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1077  --libexecdir=DIR       program executables [EPREFIX/libexec]
1078  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1079  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1080  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1081  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1082  --libdir=DIR           object code libraries [EPREFIX/lib]
1083  --includedir=DIR       C header files [PREFIX/include]
1084  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1085  --infodir=DIR          info documentation [PREFIX/info]
1086  --mandir=DIR           man documentation [PREFIX/man]
1087_ACEOF
1088
1089  cat <<\_ACEOF
1090
1091Program names:
1092  --program-prefix=PREFIX            prepend PREFIX to installed program names
1093  --program-suffix=SUFFIX            append SUFFIX to installed program names
1094  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1095
1096System types:
1097  --build=BUILD     configure for building on BUILD [guessed]
1098  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1099_ACEOF
1100fi
1101
1102if test -n "$ac_init_help"; then
1103  case $ac_init_help in
1104     short | recursive ) echo "Configuration of Cbc 0.1:";;
1105   esac
1106  cat <<\_ACEOF
1107
1108Optional Features:
1109  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1110  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1111  --enable-debug          compile all projects with debug options tests
1112  --enable-doscompile     Under Cygwin, compile so that executables run under
1113                          DOS. Set to mingw to use gcc/g++/ld with
1114                          -mno-cygwin. Set to msvc to use cl/link (or
1115                          icl/link). Default when mentioned: mingw. Default
1116                          when not mentioned: disabled.
1117  --enable-static[=PKGS]
1118                          build static libraries [default=no]
1119  --disable-dependency-tracking  speeds up one-time build
1120  --enable-dependency-tracking   do not reject slow dependency extractors
1121  --enable-maintainer-mode  enable make rules and dependencies not useful
1122                          (and sometimes confusing) to the casual installer
1123  --enable-shared[=PKGS]
1124                          build shared libraries [default=yes]
1125  --enable-fast-install[=PKGS]
1126                          optimize for fast installation [default=yes]
1127  --disable-libtool-lock  avoid locking (might break parallel builds)
1128
1129Optional Packages:
1130  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1131  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1132  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1133  --with-pic              try to use only PIC/non-PIC objects [default=use
1134                          both]
1135  --with-tags[=TAGS]
1136                          include additional configurations [automatic]
1137
1138Some influential environment variables:
1139  CDEFS       Additional -D flags to be used when compiling C code.
1140  ADD_CFLAGS  Additional C compiler options
1141  DBG_CFLAGS  Debug C compiler options
1142  OPT_CFLAGS  Optimize C compiler options
1143  CC          C compiler command
1144  CFLAGS      C compiler flags
1145  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1146              nonstandard directory <lib dir>
1147  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1148              headers in a nonstandard directory <include dir>
1149  MPICC       C MPI Compiler
1150  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1151  ADD_CXXFLAGS
1152              Additional C++ compiler options
1153  DBG_CXXFLAGS
1154              Debug C++ compiler options
1155  OPT_CXXFLAGS
1156              Optimize C++ compiler options
1157  CXX         C++ compiler command
1158  CXXFLAGS    C++ compiler flags
1159  MPICXX      C++ MPI Compiler
1160  ADD_FFLAGS  Additional Fortran compiler options
1161  DBG_FFLAGS  Debug Fortran compiler options
1162  OPT_FFLAGS  Optimize Fortran compiler options
1163  F77         Fortran 77 compiler command
1164  FFLAGS      Fortran 77 compiler flags
1165  MPIF77      Fortran MPI Compiler
1166  CPP         C preprocessor
1167  CXXCPP      C++ preprocessor
1168  COIN_SKIP_PROJECTS
1169              Set to the subdirectories of projects that should be skipped in
1170              the configuration
1171
1172Use these variables to override the choices made by `configure' or to help
1173it to find libraries and programs with nonstandard names/locations.
1174
1175Report bugs to <coin-cbc@lists.coin-or.org>.
1176_ACEOF
1177fi
1178
1179if test "$ac_init_help" = "recursive"; then
1180  # If there are subdirs, report their specific --help.
1181  ac_popdir=`pwd`
1182  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1183    test -d $ac_dir || continue
1184    ac_builddir=.
1185
1186if test "$ac_dir" != .; then
1187  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1188  # A "../" for each directory in $ac_dir_suffix.
1189  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1190else
1191  ac_dir_suffix= ac_top_builddir=
1192fi
1193
1194case $srcdir in
1195  .)  # No --srcdir option.  We are building in place.
1196    ac_srcdir=.
1197    if test -z "$ac_top_builddir"; then
1198       ac_top_srcdir=.
1199    else
1200       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1201    fi ;;
1202  [\\/]* | ?:[\\/]* )  # Absolute path.
1203    ac_srcdir=$srcdir$ac_dir_suffix;
1204    ac_top_srcdir=$srcdir ;;
1205  *) # Relative path.
1206    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1207    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1208esac
1209
1210# Do not use `cd foo && pwd` to compute absolute paths, because
1211# the directories may not exist.
1212case `pwd` in
1213.) ac_abs_builddir="$ac_dir";;
1214*)
1215  case "$ac_dir" in
1216  .) ac_abs_builddir=`pwd`;;
1217  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1218  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1219  esac;;
1220esac
1221case $ac_abs_builddir in
1222.) ac_abs_top_builddir=${ac_top_builddir}.;;
1223*)
1224  case ${ac_top_builddir}. in
1225  .) ac_abs_top_builddir=$ac_abs_builddir;;
1226  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1227  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1228  esac;;
1229esac
1230case $ac_abs_builddir in
1231.) ac_abs_srcdir=$ac_srcdir;;
1232*)
1233  case $ac_srcdir in
1234  .) ac_abs_srcdir=$ac_abs_builddir;;
1235  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1236  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1237  esac;;
1238esac
1239case $ac_abs_builddir in
1240.) ac_abs_top_srcdir=$ac_top_srcdir;;
1241*)
1242  case $ac_top_srcdir in
1243  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1244  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1245  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1246  esac;;
1247esac
1248
1249    cd $ac_dir
1250    # Check for guested configure; otherwise get Cygnus style configure.
1251    if test -f $ac_srcdir/configure.gnu; then
1252      echo
1253      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1254    elif test -f $ac_srcdir/configure; then
1255      echo
1256      $SHELL $ac_srcdir/configure  --help=recursive
1257    elif test -f $ac_srcdir/configure.ac ||
1258           test -f $ac_srcdir/configure.in; then
1259      echo
1260      $ac_configure --help
1261    else
1262      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1263    fi
1264    cd $ac_popdir
1265  done
1266fi
1267
1268test -n "$ac_init_help" && exit 0
1269if $ac_init_version; then
1270  cat <<\_ACEOF
1271Cbc configure 0.1
1272generated by GNU Autoconf 2.59
1273
1274Copyright (C) 2003 Free Software Foundation, Inc.
1275This configure script is free software; the Free Software Foundation
1276gives unlimited permission to copy, distribute and modify it.
1277
1278
1279Copyright 2006 International Business Machines and others.
1280All Rights Reserved.
1281This file is part of the open source package Coin which is distributed
1282under the Common Public License.
1283_ACEOF
1284  exit 0
1285fi
1286exec 5>config.log
1287cat >&5 <<_ACEOF
1288This file contains any messages produced by compilers while
1289running configure, to aid debugging if configure makes a mistake.
1290
1291It was created by Cbc $as_me 0.1, which was
1292generated by GNU Autoconf 2.59.  Invocation command line was
1293
1294  $ $0 $@
1295
1296_ACEOF
1297{
1298cat <<_ASUNAME
1299## --------- ##
1300## Platform. ##
1301## --------- ##
1302
1303hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1304uname -m = `(uname -m) 2>/dev/null || echo unknown`
1305uname -r = `(uname -r) 2>/dev/null || echo unknown`
1306uname -s = `(uname -s) 2>/dev/null || echo unknown`
1307uname -v = `(uname -v) 2>/dev/null || echo unknown`
1308
1309/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1310/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1311
1312/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1313/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1314/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1315hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1316/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1317/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1318/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1319
1320_ASUNAME
1321
1322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1323for as_dir in $PATH
1324do
1325  IFS=$as_save_IFS
1326  test -z "$as_dir" && as_dir=.
1327  echo "PATH: $as_dir"
1328done
1329
1330} >&5
1331
1332cat >&5 <<_ACEOF
1333
1334
1335## ----------- ##
1336## Core tests. ##
1337## ----------- ##
1338
1339_ACEOF
1340
1341
1342# Keep a trace of the command line.
1343# Strip out --no-create and --no-recursion so they do not pile up.
1344# Strip out --silent because we don't want to record it for future runs.
1345# Also quote any args containing shell meta-characters.
1346# Make two passes to allow for proper duplicate-argument suppression.
1347ac_configure_args=
1348ac_configure_args0=
1349ac_configure_args1=
1350ac_sep=
1351ac_must_keep_next=false
1352for ac_pass in 1 2
1353do
1354  for ac_arg
1355  do
1356    case $ac_arg in
1357    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1358    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1359    | -silent | --silent | --silen | --sile | --sil)
1360      continue ;;
1361    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1362      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1363    esac
1364    case $ac_pass in
1365    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1366    2)
1367      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1368      if test $ac_must_keep_next = true; then
1369        ac_must_keep_next=false # Got value, back to normal.
1370      else
1371        case $ac_arg in
1372          *=* | --config-cache | -C | -disable-* | --disable-* \
1373          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1374          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1375          | -with-* | --with-* | -without-* | --without-* | --x)
1376            case "$ac_configure_args0 " in
1377              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1378            esac
1379            ;;
1380          -* ) ac_must_keep_next=true ;;
1381        esac
1382      fi
1383      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1384      # Get rid of the leading space.
1385      ac_sep=" "
1386      ;;
1387    esac
1388  done
1389done
1390$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1391$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1392
1393# When interrupted or exit'd, cleanup temporary files, and complete
1394# config.log.  We remove comments because anyway the quotes in there
1395# would cause problems or look ugly.
1396# WARNING: Be sure not to use single quotes in there, as some shells,
1397# such as our DU 5.0 friend, will then `close' the trap.
1398trap 'exit_status=$?
1399  # Save into config.log some information that might help in debugging.
1400  {
1401    echo
1402
1403    cat <<\_ASBOX
1404## ---------------- ##
1405## Cache variables. ##
1406## ---------------- ##
1407_ASBOX
1408    echo
1409    # The following way of writing the cache mishandles newlines in values,
1410{
1411  (set) 2>&1 |
1412    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1413    *ac_space=\ *)
1414      sed -n \
1415        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1416          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1417      ;;
1418    *)
1419      sed -n \
1420        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1421      ;;
1422    esac;
1423}
1424    echo
1425
1426    cat <<\_ASBOX
1427## ----------------- ##
1428## Output variables. ##
1429## ----------------- ##
1430_ASBOX
1431    echo
1432    for ac_var in $ac_subst_vars
1433    do
1434      eval ac_val=$`echo $ac_var`
1435      echo "$ac_var='"'"'$ac_val'"'"'"
1436    done | sort
1437    echo
1438
1439    if test -n "$ac_subst_files"; then
1440      cat <<\_ASBOX
1441## ------------- ##
1442## Output files. ##
1443## ------------- ##
1444_ASBOX
1445      echo
1446      for ac_var in $ac_subst_files
1447      do
1448        eval ac_val=$`echo $ac_var`
1449        echo "$ac_var='"'"'$ac_val'"'"'"
1450      done | sort
1451      echo
1452    fi
1453
1454    if test -s confdefs.h; then
1455      cat <<\_ASBOX
1456## ----------- ##
1457## confdefs.h. ##
1458## ----------- ##
1459_ASBOX
1460      echo
1461      sed "/^$/d" confdefs.h | sort
1462      echo
1463    fi
1464    test "$ac_signal" != 0 &&
1465      echo "$as_me: caught signal $ac_signal"
1466    echo "$as_me: exit $exit_status"
1467  } >&5
1468  rm -f core *.core &&
1469  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1470    exit $exit_status
1471     ' 0
1472for ac_signal in 1 2 13 15; do
1473  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1474done
1475ac_signal=0
1476
1477# confdefs.h avoids OS command line length limits that DEFS can exceed.
1478rm -rf conftest* confdefs.h
1479# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1480echo >confdefs.h
1481
1482# Predefined preprocessor variables.
1483
1484cat >>confdefs.h <<_ACEOF
1485#define PACKAGE_NAME "$PACKAGE_NAME"
1486_ACEOF
1487
1488
1489cat >>confdefs.h <<_ACEOF
1490#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1491_ACEOF
1492
1493
1494cat >>confdefs.h <<_ACEOF
1495#define PACKAGE_VERSION "$PACKAGE_VERSION"
1496_ACEOF
1497
1498
1499cat >>confdefs.h <<_ACEOF
1500#define PACKAGE_STRING "$PACKAGE_STRING"
1501_ACEOF
1502
1503
1504cat >>confdefs.h <<_ACEOF
1505#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1506_ACEOF
1507
1508
1509# Let the site file select an alternate cache file if it wants to.
1510# Prefer explicitly selected file to automatically selected ones.
1511if test -z "$CONFIG_SITE"; then
1512  if test "x$prefix" != xNONE; then
1513    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1514  else
1515    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1516  fi
1517fi
1518for ac_site_file in $CONFIG_SITE; do
1519  if test -r "$ac_site_file"; then
1520    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1521echo "$as_me: loading site script $ac_site_file" >&6;}
1522    sed 's/^/| /' "$ac_site_file" >&5
1523    . "$ac_site_file"
1524  fi
1525done
1526
1527if test -r "$cache_file"; then
1528  # Some versions of bash will fail to source /dev/null (special
1529  # files actually), so we avoid doing that.
1530  if test -f "$cache_file"; then
1531    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1532echo "$as_me: loading cache $cache_file" >&6;}
1533    case $cache_file in
1534      [\\/]* | ?:[\\/]* ) . $cache_file;;
1535      *)                      . ./$cache_file;;
1536    esac
1537  fi
1538else
1539  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1540echo "$as_me: creating cache $cache_file" >&6;}
1541  >$cache_file
1542fi
1543
1544# Check that the precious variables saved in the cache have kept the same
1545# value.
1546ac_cache_corrupted=false
1547for ac_var in `(set) 2>&1 |
1548               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1549  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1550  eval ac_new_set=\$ac_env_${ac_var}_set
1551  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1552  eval ac_new_val="\$ac_env_${ac_var}_value"
1553  case $ac_old_set,$ac_new_set in
1554    set,)
1555      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1556echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1557      ac_cache_corrupted=: ;;
1558    ,set)
1559      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1560echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1561      ac_cache_corrupted=: ;;
1562    ,);;
1563    *)
1564      if test "x$ac_old_val" != "x$ac_new_val"; then
1565        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1566echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1567        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1568echo "$as_me:   former value:  $ac_old_val" >&2;}
1569        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1570echo "$as_me:   current value: $ac_new_val" >&2;}
1571        ac_cache_corrupted=:
1572      fi;;
1573  esac
1574  # Pass precious variables to config.status.
1575  if test "$ac_new_set" = set; then
1576    case $ac_new_val in
1577    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1578      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1579    *) ac_arg=$ac_var=$ac_new_val ;;
1580    esac
1581    case " $ac_configure_args " in
1582      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1583      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1584    esac
1585  fi
1586done
1587if $ac_cache_corrupted; then
1588  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1589echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1590  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1591echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1592   { (exit 1); exit 1; }; }
1593fi
1594
1595ac_ext=c
1596ac_cpp='$CPP $CPPFLAGS'
1597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1599ac_compiler_gnu=$ac_cv_c_compiler_gnu
1600
1601
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#  Do the tests necessary to configure compilers and initialise autotools   #
1644#############################################################################
1645
1646ac_aux_dir=
1647for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1648  if test -f $ac_dir/install-sh; then
1649    ac_aux_dir=$ac_dir
1650    ac_install_sh="$ac_aux_dir/install-sh -c"
1651    break
1652  elif test -f $ac_dir/install.sh; then
1653    ac_aux_dir=$ac_dir
1654    ac_install_sh="$ac_aux_dir/install.sh -c"
1655    break
1656  elif test -f $ac_dir/shtool; then
1657    ac_aux_dir=$ac_dir
1658    ac_install_sh="$ac_aux_dir/shtool install -c"
1659    break
1660  fi
1661done
1662if test -z "$ac_aux_dir"; then
1663  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1664echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1665   { (exit 1); exit 1; }; }
1666fi
1667ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1668ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1669ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1670
1671# Make sure we can run config.sub.
1672$ac_config_sub sun4 >/dev/null 2>&1 ||
1673  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1674echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1675   { (exit 1); exit 1; }; }
1676
1677echo "$as_me:$LINENO: checking build system type" >&5
1678echo $ECHO_N "checking build system type... $ECHO_C" >&6
1679if test "${ac_cv_build+set}" = set; then
1680  echo $ECHO_N "(cached) $ECHO_C" >&6
1681else
1682  ac_cv_build_alias=$build_alias
1683test -z "$ac_cv_build_alias" &&
1684  ac_cv_build_alias=`$ac_config_guess`
1685test -z "$ac_cv_build_alias" &&
1686  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1687echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1688   { (exit 1); exit 1; }; }
1689ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1690  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1691echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1692   { (exit 1); exit 1; }; }
1693
1694fi
1695echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1696echo "${ECHO_T}$ac_cv_build" >&6
1697build=$ac_cv_build
1698build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1701
1702
1703
1704# Check if user wants to produce debugging code
1705
1706echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1707echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1708
1709# Check whether --enable-debug or --disable-debug was given.
1710if test "${enable_debug+set}" = set; then
1711  enableval="$enable_debug"
1712  case "${enableval}" in
1713   yes) coin_debug_compile=true
1714        if test "${enable_shared+set}" = set; then :; else
1715          enable_shared=no
1716        fi
1717        ;;
1718   no)  coin_debug_compile=false
1719        ;;
1720   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1721echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1722   { (exit 1); exit 1; }; }
1723        ;;
1724esac
1725else
1726  coin_debug_compile=false
1727fi;
1728
1729 # m4_ifvaln([],
1730
1731if test $coin_debug_compile = true; then
1732  echo "$as_me:$LINENO: result: yes" >&5
1733echo "${ECHO_T}yes" >&6
1734else
1735  echo "$as_me:$LINENO: result: no" >&5
1736echo "${ECHO_T}no" >&6
1737fi
1738
1739 # m4_ifvaln([],
1740
1741
1742
1743# Get the name of the C compiler and appropriate compiler options
1744case $build in
1745  *-mingw*)
1746    if test "${LD+set}" = set; then :; else
1747      LD=link
1748    fi
1749    ;;
1750 esac
1751 case $enable_doscompile in
1752   msvc)
1753     if test "x${LD+set}" = xset; then :; else
1754       LD=link
1755     fi
1756     ;;
1757 esac
1758
1759
1760 # Check whether --enable-doscompile or --disable-doscompile was given.
1761if test "${enable_doscompile+set}" = set; then
1762  enableval="$enable_doscompile"
1763  if test "$enable_doscompile" != no; then
1764     case $build in
1765       *-cygwin* | *-mingw*) ;;
1766       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1767echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1768   { (exit 1); exit 1; }; } ;;
1769     esac
1770   fi
1771else
1772  enable_doscompile=no
1773fi;
1774 case "$enable_doscompile" in
1775   mingw)
1776     case $build in
1777       *-mingw*) enable_doscompile=no ;;
1778     esac
1779     ;;
1780   msvc|no) ;;
1781   yes) enable_doscompile=mingw ;;
1782   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1783                    Try configure --help=recursive." >&5
1784echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1785                    Try configure --help=recursive." >&2;}
1786   { (exit 1); exit 1; }; }
1787      ;;
1788  esac
1789  if test "$enable_doscompile" != no ; then
1790    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1791echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1792  fi
1793
1794
1795
1796
1797ac_ext=c
1798ac_cpp='$CPP $CPPFLAGS'
1799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1801ac_compiler_gnu=$ac_cv_c_compiler_gnu
1802
1803
1804# For consistency, we set the C compiler to the same value of the C++
1805# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1806if test x"$CXX" != x; then
1807  case "$CXX" in
1808    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1809      if test x"$CC" = x; then
1810        CC="$CXX"
1811        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1812echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1813      fi
1814      ;;
1815  esac
1816fi
1817
1818
1819
1820
1821
1822
1823coin_has_cc=yes
1824
1825save_cflags="$CFLAGS"
1826
1827# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1828# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1829# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1830# compiler. In this case, put cc after gcc.
1831
1832case $build in
1833  *-cygwin* | *-mingw*)
1834             if test "$enable_doscompile" = msvc ; then
1835               comps="icl cl"
1836             else
1837               comps="gcc cl"
1838             fi ;;
1839  *-*-solaris*)
1840             # Extract the first word of "cc", so it can be a program name with args.
1841set dummy cc; ac_word=$2
1842echo "$as_me:$LINENO: checking for $ac_word" >&5
1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1844if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1845  echo $ECHO_N "(cached) $ECHO_C" >&6
1846else
1847  if test -n "$sol_cc_compiler"; then
1848  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1849else
1850  ac_prog_rejected=no
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854  IFS=$as_save_IFS
1855  test -z "$as_dir" && as_dir=.
1856  for ac_exec_ext in '' $ac_executable_extensions; do
1857  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1858    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1859       ac_prog_rejected=yes
1860       continue
1861     fi
1862    ac_cv_prog_sol_cc_compiler="cc"
1863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864    break 2
1865  fi
1866done
1867done
1868
1869if test $ac_prog_rejected = yes; then
1870  # We found a bogon in the path, so make sure we never use it.
1871  set dummy $ac_cv_prog_sol_cc_compiler
1872  shift
1873  if test $# != 0; then
1874    # We chose a different compiler from the bogus one.
1875    # However, it has the same basename, so the bogon will be chosen
1876    # first if we set sol_cc_compiler to just the basename; use the full file name.
1877    shift
1878    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1879  fi
1880fi
1881fi
1882fi
1883sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1884if test -n "$sol_cc_compiler"; then
1885  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1886echo "${ECHO_T}$sol_cc_compiler" >&6
1887else
1888  echo "$as_me:$LINENO: result: no" >&5
1889echo "${ECHO_T}no" >&6
1890fi
1891
1892             if test "$sol_cc_compiler" = "cc" ; then
1893               comps="cc xlc gcc pgcc icc"
1894             else
1895               comps="xlc gcc pgcc icc cc"
1896             fi
1897             ;;
1898  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1899  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1900esac
1901
1902# We delete the cached value, since the test might not have been
1903# performed with our choice of compilers earlier
1904$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1905# AC_MSG_NOTICE([C compiler candidates: $comps])
1906ac_ext=c
1907ac_cpp='$CPP $CPPFLAGS'
1908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911if test -n "$ac_tool_prefix"; then
1912  for ac_prog in $comps
1913  do
1914    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1915set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1916echo "$as_me:$LINENO: checking for $ac_word" >&5
1917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918if test "${ac_cv_prog_CC+set}" = set; then
1919  echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921  if test -n "$CC"; then
1922  ac_cv_prog_CC="$CC" # Let the user override the test.
1923else
1924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925for as_dir in $PATH
1926do
1927  IFS=$as_save_IFS
1928  test -z "$as_dir" && as_dir=.
1929  for ac_exec_ext in '' $ac_executable_extensions; do
1930  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1931    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1932    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933    break 2
1934  fi
1935done
1936done
1937
1938fi
1939fi
1940CC=$ac_cv_prog_CC
1941if test -n "$CC"; then
1942  echo "$as_me:$LINENO: result: $CC" >&5
1943echo "${ECHO_T}$CC" >&6
1944else
1945  echo "$as_me:$LINENO: result: no" >&5
1946echo "${ECHO_T}no" >&6
1947fi
1948
1949    test -n "$CC" && break
1950  done
1951fi
1952if test -z "$CC"; then
1953  ac_ct_CC=$CC
1954  for ac_prog in $comps
1955do
1956  # Extract the first word of "$ac_prog", so it can be a program name with args.
1957set dummy $ac_prog; ac_word=$2
1958echo "$as_me:$LINENO: checking for $ac_word" >&5
1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1960if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1961  echo $ECHO_N "(cached) $ECHO_C" >&6
1962else
1963  if test -n "$ac_ct_CC"; then
1964  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1965else
1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967for as_dir in $PATH
1968do
1969  IFS=$as_save_IFS
1970  test -z "$as_dir" && as_dir=.
1971  for ac_exec_ext in '' $ac_executable_extensions; do
1972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973    ac_cv_prog_ac_ct_CC="$ac_prog"
1974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975    break 2
1976  fi
1977done
1978done
1979
1980fi
1981fi
1982ac_ct_CC=$ac_cv_prog_ac_ct_CC
1983if test -n "$ac_ct_CC"; then
1984  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1985echo "${ECHO_T}$ac_ct_CC" >&6
1986else
1987  echo "$as_me:$LINENO: result: no" >&5
1988echo "${ECHO_T}no" >&6
1989fi
1990
1991  test -n "$ac_ct_CC" && break
1992done
1993
1994  CC=$ac_ct_CC
1995fi
1996
1997
1998test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1999See \`config.log' for more details." >&5
2000echo "$as_me: error: no acceptable C compiler found in \$PATH
2001See \`config.log' for more details." >&2;}
2002   { (exit 1); exit 1; }; }
2003
2004# Provide some information about the compiler.
2005echo "$as_me:$LINENO:" \
2006     "checking for C compiler version" >&5
2007ac_compiler=`set X $ac_compile; echo $2`
2008{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2009  (eval $ac_compiler --version </dev/null >&5) 2>&5
2010  ac_status=$?
2011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012  (exit $ac_status); }
2013{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2014  (eval $ac_compiler -v </dev/null >&5) 2>&5
2015  ac_status=$?
2016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017  (exit $ac_status); }
2018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2019  (eval $ac_compiler -V </dev/null >&5) 2>&5
2020  ac_status=$?
2021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022  (exit $ac_status); }
2023
2024cat >conftest.$ac_ext <<_ACEOF
2025/* confdefs.h.  */
2026_ACEOF
2027cat confdefs.h >>conftest.$ac_ext
2028cat >>conftest.$ac_ext <<_ACEOF
2029/* end confdefs.h.  */
2030
2031int
2032main ()
2033{
2034
2035  ;
2036  return 0;
2037}
2038_ACEOF
2039ac_clean_files_save=$ac_clean_files
2040ac_clean_files="$ac_clean_files a.out a.exe b.out"
2041# Try to create an executable without -o first, disregard a.out.
2042# It will help us diagnose broken compilers, and finding out an intuition
2043# of exeext.
2044echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2045echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2046ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2047if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2048  (eval $ac_link_default) 2>&5
2049  ac_status=$?
2050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051  (exit $ac_status); }; then
2052  # Find the output, starting from the most likely.  This scheme is
2053# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2054# resort.
2055
2056# Be careful to initialize this variable, since it used to be cached.
2057# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2058ac_cv_exeext=
2059# b.out is created by i960 compilers.
2060for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2061do
2062  test -f "$ac_file" || continue
2063  case $ac_file in
2064    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2065        ;;
2066    conftest.$ac_ext )
2067        # This is the source file.
2068        ;;
2069    [ab].out )
2070        # We found the default executable, but exeext='' is most
2071        # certainly right.
2072        break;;
2073    *.* )
2074        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2075        # FIXME: I believe we export ac_cv_exeext for Libtool,
2076        # but it would be cool to find out if it's true.  Does anybody
2077        # maintain Libtool? --akim.
2078        export ac_cv_exeext
2079        break;;
2080    * )
2081        break;;
2082  esac
2083done
2084else
2085  echo "$as_me: failed program was:" >&5
2086sed 's/^/| /' conftest.$ac_ext >&5
2087
2088{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2089See \`config.log' for more details." >&5
2090echo "$as_me: error: C compiler cannot create executables
2091See \`config.log' for more details." >&2;}
2092   { (exit 77); exit 77; }; }
2093fi
2094
2095ac_exeext=$ac_cv_exeext
2096echo "$as_me:$LINENO: result: $ac_file" >&5
2097echo "${ECHO_T}$ac_file" >&6
2098
2099# Check the compiler produces executables we can run.  If not, either
2100# the compiler is broken, or we cross compile.
2101echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2102echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2103# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2104# If not cross compiling, check that we can run a simple program.
2105if test "$cross_compiling" != yes; then
2106  if { ac_try='./$ac_file'
2107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108  (eval $ac_try) 2>&5
2109  ac_status=$?
2110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111  (exit $ac_status); }; }; then
2112    cross_compiling=no
2113  else
2114    if test "$cross_compiling" = maybe; then
2115        cross_compiling=yes
2116    else
2117        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2118If you meant to cross compile, use \`--host'.
2119See \`config.log' for more details." >&5
2120echo "$as_me: error: cannot run C compiled programs.
2121If you meant to cross compile, use \`--host'.
2122See \`config.log' for more details." >&2;}
2123   { (exit 1); exit 1; }; }
2124    fi
2125  fi
2126fi
2127echo "$as_me:$LINENO: result: yes" >&5
2128echo "${ECHO_T}yes" >&6
2129
2130rm -f a.out a.exe conftest$ac_cv_exeext b.out
2131ac_clean_files=$ac_clean_files_save
2132# Check the compiler produces executables we can run.  If not, either
2133# the compiler is broken, or we cross compile.
2134echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2135echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2136echo "$as_me:$LINENO: result: $cross_compiling" >&5
2137echo "${ECHO_T}$cross_compiling" >&6
2138
2139echo "$as_me:$LINENO: checking for suffix of executables" >&5
2140echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2142  (eval $ac_link) 2>&5
2143  ac_status=$?
2144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145  (exit $ac_status); }; then
2146  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2147# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2148# work properly (i.e., refer to `conftest.exe'), while it won't with
2149# `rm'.
2150for ac_file in conftest.exe conftest conftest.*; do
2151  test -f "$ac_file" || continue
2152  case $ac_file in
2153    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2154    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2155          export ac_cv_exeext
2156          break;;
2157    * ) break;;
2158  esac
2159done
2160else
2161  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2162See \`config.log' for more details." >&5
2163echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2164See \`config.log' for more details." >&2;}
2165   { (exit 1); exit 1; }; }
2166fi
2167
2168rm -f conftest$ac_cv_exeext
2169echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2170echo "${ECHO_T}$ac_cv_exeext" >&6
2171
2172rm -f conftest.$ac_ext
2173EXEEXT=$ac_cv_exeext
2174ac_exeext=$EXEEXT
2175echo "$as_me:$LINENO: checking for suffix of object files" >&5
2176echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2177if test "${ac_cv_objext+set}" = set; then
2178  echo $ECHO_N "(cached) $ECHO_C" >&6
2179else
2180  cat >conftest.$ac_ext <<_ACEOF
2181/* confdefs.h.  */
2182_ACEOF
2183cat confdefs.h >>conftest.$ac_ext
2184cat >>conftest.$ac_ext <<_ACEOF
2185/* end confdefs.h.  */
2186
2187int
2188main ()
2189{
2190
2191  ;
2192  return 0;
2193}
2194_ACEOF
2195rm -f conftest.o conftest.obj
2196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197  (eval $ac_compile) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }; then
2201  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2202  case $ac_file in
2203    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2204    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2205       break;;
2206  esac
2207done
2208else
2209  echo "$as_me: failed program was:" >&5
2210sed 's/^/| /' conftest.$ac_ext >&5
2211
2212{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: cannot compute suffix of object files: cannot compile
2215See \`config.log' for more details." >&2;}
2216   { (exit 1); exit 1; }; }
2217fi
2218
2219rm -f conftest.$ac_cv_objext conftest.$ac_ext
2220fi
2221echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2222echo "${ECHO_T}$ac_cv_objext" >&6
2223OBJEXT=$ac_cv_objext
2224ac_objext=$OBJEXT
2225echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2226echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2227if test "${ac_cv_c_compiler_gnu+set}" = set; then
2228  echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230  cat >conftest.$ac_ext <<_ACEOF
2231/* confdefs.h.  */
2232_ACEOF
2233cat confdefs.h >>conftest.$ac_ext
2234cat >>conftest.$ac_ext <<_ACEOF
2235/* end confdefs.h.  */
2236
2237int
2238main ()
2239{
2240#ifndef __GNUC__
2241       choke me
2242#endif
2243
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248rm -f conftest.$ac_objext
2249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2250  (eval $ac_compile) 2>conftest.er1
2251  ac_status=$?
2252  grep -v '^ *+' conftest.er1 >conftest.err
2253  rm -f conftest.er1
2254  cat conftest.err >&5
2255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256  (exit $ac_status); } &&
2257         { ac_try='test -z "$ac_c_werror_flag"
2258                         || test ! -s conftest.err'
2259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260  (eval $ac_try) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; } &&
2264         { ac_try='test -s conftest.$ac_objext'
2265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266  (eval $ac_try) 2>&5
2267  ac_status=$?
2268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269  (exit $ac_status); }; }; then
2270  ac_compiler_gnu=yes
2271else
2272  echo "$as_me: failed program was:" >&5
2273sed 's/^/| /' conftest.$ac_ext >&5
2274
2275ac_compiler_gnu=no
2276fi
2277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278ac_cv_c_compiler_gnu=$ac_compiler_gnu
2279
2280fi
2281echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2282echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2283GCC=`test $ac_compiler_gnu = yes && echo yes`
2284ac_test_CFLAGS=${CFLAGS+set}
2285ac_save_CFLAGS=$CFLAGS
2286CFLAGS="-g"
2287echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2288echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2289if test "${ac_cv_prog_cc_g+set}" = set; then
2290  echo $ECHO_N "(cached) $ECHO_C" >&6
2291else
2292  cat >conftest.$ac_ext <<_ACEOF
2293/* confdefs.h.  */
2294_ACEOF
2295cat confdefs.h >>conftest.$ac_ext
2296cat >>conftest.$ac_ext <<_ACEOF
2297/* end confdefs.h.  */
2298
2299int
2300main ()
2301{
2302
2303  ;
2304  return 0;
2305}
2306_ACEOF
2307rm -f conftest.$ac_objext
2308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2309  (eval $ac_compile) 2>conftest.er1
2310  ac_status=$?
2311  grep -v '^ *+' conftest.er1 >conftest.err
2312  rm -f conftest.er1
2313  cat conftest.err >&5
2314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2315  (exit $ac_status); } &&
2316         { ac_try='test -z "$ac_c_werror_flag"
2317                         || test ! -s conftest.err'
2318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319  (eval $ac_try) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; } &&
2323         { ac_try='test -s conftest.$ac_objext'
2324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325  (eval $ac_try) 2>&5
2326  ac_status=$?
2327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328  (exit $ac_status); }; }; then
2329  ac_cv_prog_cc_g=yes
2330else
2331  echo "$as_me: failed program was:" >&5
2332sed 's/^/| /' conftest.$ac_ext >&5
2333
2334ac_cv_prog_cc_g=no
2335fi
2336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2337fi
2338echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2339echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2340if test "$ac_test_CFLAGS" = set; then
2341  CFLAGS=$ac_save_CFLAGS
2342elif test $ac_cv_prog_cc_g = yes; then
2343  if test "$GCC" = yes; then
2344    CFLAGS="-g -O2"
2345  else
2346    CFLAGS="-g"
2347  fi
2348else
2349  if test "$GCC" = yes; then
2350    CFLAGS="-O2"
2351  else
2352    CFLAGS=
2353  fi
2354fi
2355echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2356echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2357if test "${ac_cv_prog_cc_stdc+set}" = set; then
2358  echo $ECHO_N "(cached) $ECHO_C" >&6
2359else
2360  ac_cv_prog_cc_stdc=no
2361ac_save_CC=$CC
2362cat >conftest.$ac_ext <<_ACEOF
2363/* confdefs.h.  */
2364_ACEOF
2365cat confdefs.h >>conftest.$ac_ext
2366cat >>conftest.$ac_ext <<_ACEOF
2367/* end confdefs.h.  */
2368#include <stdarg.h>
2369#include <stdio.h>
2370#include <sys/types.h>
2371#include <sys/stat.h>
2372/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2373struct buf { int x; };
2374FILE * (*rcsopen) (struct buf *, struct stat *, int);
2375static char *e (p, i)
2376     char **p;
2377     int i;
2378{
2379  return p[i];
2380}
2381static char *f (char * (*g) (char **, int), char **p, ...)
2382{
2383  char *s;
2384  va_list v;
2385  va_start (v,p);
2386  s = g (p, va_arg (v,int));
2387  va_end (v);
2388  return s;
2389}
2390
2391/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2392   function prototypes and stuff, but not '\xHH' hex character constants.
2393   These don't provoke an error unfortunately, instead are silently treated
2394   as 'x'.  The following induces an error, until -std1 is added to get
2395   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2396   array size at least.  It's necessary to write '\x00'==0 to get something
2397   that's true only with -std1.  */
2398int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2399
2400int test (int i, double x);
2401struct s1 {int (*f) (int a);};
2402struct s2 {int (*f) (double a);};
2403int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2404int argc;
2405char **argv;
2406int
2407main ()
2408{
2409return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2410  ;
2411  return 0;
2412}
2413_ACEOF
2414# Don't try gcc -ansi; that turns off useful extensions and
2415# breaks some systems' header files.
2416# AIX                   -qlanglvl=ansi
2417# Ultrix and OSF/1      -std1
2418# HP-UX 10.20 and later -Ae
2419# HP-UX older versions  -Aa -D_HPUX_SOURCE
2420# SVR4                  -Xc -D__EXTENSIONS__
2421for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2422do
2423  CC="$ac_save_CC $ac_arg"
2424  rm -f conftest.$ac_objext
2425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2426  (eval $ac_compile) 2>conftest.er1
2427  ac_status=$?
2428  grep -v '^ *+' conftest.er1 >conftest.err
2429  rm -f conftest.er1
2430  cat conftest.err >&5
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); } &&
2433         { ac_try='test -z "$ac_c_werror_flag"
2434                         || test ! -s conftest.err'
2435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436  (eval $ac_try) 2>&5
2437  ac_status=$?
2438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439  (exit $ac_status); }; } &&
2440         { ac_try='test -s conftest.$ac_objext'
2441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442  (eval $ac_try) 2>&5
2443  ac_status=$?
2444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445  (exit $ac_status); }; }; then
2446  ac_cv_prog_cc_stdc=$ac_arg
2447break
2448else
2449  echo "$as_me: failed program was:" >&5
2450sed 's/^/| /' conftest.$ac_ext >&5
2451
2452fi
2453rm -f conftest.err conftest.$ac_objext
2454done
2455rm -f conftest.$ac_ext conftest.$ac_objext
2456CC=$ac_save_CC
2457
2458fi
2459
2460case "x$ac_cv_prog_cc_stdc" in
2461  x|xno)
2462    echo "$as_me:$LINENO: result: none needed" >&5
2463echo "${ECHO_T}none needed" >&6 ;;
2464  *)
2465    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2466echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2467    CC="$CC $ac_cv_prog_cc_stdc" ;;
2468esac
2469
2470# Some people use a C++ compiler to compile C.  Since we use `exit',
2471# in C++ we need to declare it.  In case someone uses the same compiler
2472# for both compiling C and C++ we need to have the C++ compiler decide
2473# the declaration of exit, since it's the most demanding environment.
2474cat >conftest.$ac_ext <<_ACEOF
2475#ifndef __cplusplus
2476  choke me
2477#endif
2478_ACEOF
2479rm -f conftest.$ac_objext
2480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2481  (eval $ac_compile) 2>conftest.er1
2482  ac_status=$?
2483  grep -v '^ *+' conftest.er1 >conftest.err
2484  rm -f conftest.er1
2485  cat conftest.err >&5
2486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487  (exit $ac_status); } &&
2488         { ac_try='test -z "$ac_c_werror_flag"
2489                         || test ! -s conftest.err'
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); }; } &&
2495         { ac_try='test -s conftest.$ac_objext'
2496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497  (eval $ac_try) 2>&5
2498  ac_status=$?
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); }; }; then
2501  for ac_declaration in \
2502   '' \
2503   'extern "C" void std::exit (int) throw (); using std::exit;' \
2504   'extern "C" void std::exit (int); using std::exit;' \
2505   'extern "C" void exit (int) throw ();' \
2506   'extern "C" void exit (int);' \
2507   'void exit (int);'
2508do
2509  cat >conftest.$ac_ext <<_ACEOF
2510/* confdefs.h.  */
2511_ACEOF
2512cat confdefs.h >>conftest.$ac_ext
2513cat >>conftest.$ac_ext <<_ACEOF
2514/* end confdefs.h.  */
2515$ac_declaration
2516#include <stdlib.h>
2517int
2518main ()
2519{
2520exit (42);
2521  ;
2522  return 0;
2523}
2524_ACEOF
2525rm -f conftest.$ac_objext
2526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527  (eval $ac_compile) 2>conftest.er1
2528  ac_status=$?
2529  grep -v '^ *+' conftest.er1 >conftest.err
2530  rm -f conftest.er1
2531  cat conftest.err >&5
2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533  (exit $ac_status); } &&
2534         { ac_try='test -z "$ac_c_werror_flag"
2535                         || test ! -s conftest.err'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; } &&
2541         { ac_try='test -s conftest.$ac_objext'
2542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2543  (eval $ac_try) 2>&5
2544  ac_status=$?
2545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546  (exit $ac_status); }; }; then
2547  :
2548else
2549  echo "$as_me: failed program was:" >&5
2550sed 's/^/| /' conftest.$ac_ext >&5
2551
2552continue
2553fi
2554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2555  cat >conftest.$ac_ext <<_ACEOF
2556/* confdefs.h.  */
2557_ACEOF
2558cat confdefs.h >>conftest.$ac_ext
2559cat >>conftest.$ac_ext <<_ACEOF
2560/* end confdefs.h.  */
2561$ac_declaration
2562int
2563main ()
2564{
2565exit (42);
2566  ;
2567  return 0;
2568}
2569_ACEOF
2570rm -f conftest.$ac_objext
2571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572  (eval $ac_compile) 2>conftest.er1
2573  ac_status=$?
2574  grep -v '^ *+' conftest.er1 >conftest.err
2575  rm -f conftest.er1
2576  cat conftest.err >&5
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); } &&
2579         { ac_try='test -z "$ac_c_werror_flag"
2580                         || test ! -s conftest.err'
2581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582  (eval $ac_try) 2>&5
2583  ac_status=$?
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); }; } &&
2586         { ac_try='test -s conftest.$ac_objext'
2587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588  (eval $ac_try) 2>&5
2589  ac_status=$?
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); }; }; then
2592  break
2593else
2594  echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597fi
2598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599done
2600rm -f conftest*
2601if test -n "$ac_declaration"; then
2602  echo '#ifdef __cplusplus' >>confdefs.h
2603  echo $ac_declaration      >>confdefs.h
2604  echo '#endif'             >>confdefs.h
2605fi
2606
2607else
2608  echo "$as_me: failed program was:" >&5
2609sed 's/^/| /' conftest.$ac_ext >&5
2610
2611fi
2612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613ac_ext=c
2614ac_cpp='$CPP $CPPFLAGS'
2615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618
2619if test -z "$CC" ; then
2620  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2621echo "$as_me: error: Failed to find a C compiler!" >&2;}
2622   { (exit 1); exit 1; }; }
2623fi
2624# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2625case "$CC" in
2626  cl* | */cl* | CL* | */CL* )
2627    if test "$ac_cv_prog_cc_g" = yes ; then
2628      ac_cv_prog_cc_g=no
2629      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2630echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2631    fi ;;
2632esac
2633CFLAGS="$save_cflags"
2634
2635# Check if a project specific CFLAGS variable has been set
2636if test x$COIN_PRJCT != x; then
2637  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2638  if test x$coin_tmp = xset; then
2639    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2640  fi
2641fi
2642
2643if test x"$CFLAGS" = x; then
2644
2645  coin_add_cflags=
2646  coin_opt_cflags=
2647  coin_dbg_cflags=
2648  coin_warn_cflags=
2649
2650  if test "$GCC" = "yes"; then
2651    case "$CC" in
2652      icc* | */icc*)
2653        ;;
2654      *)
2655        coin_opt_cflags="-O3 -fomit-frame-pointer"
2656        coin_add_cflags="-pipe"
2657        coin_dbg_cflags="-g"
2658        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2659        case $build in
2660          *-darwin*)
2661            ;;
2662          *)
2663            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2664            ;;
2665        esac
2666        case $enable_doscompile in
2667          mingw)
2668            CFLAGS="-mno-cygwin"
2669            cat >conftest.$ac_ext <<_ACEOF
2670/* confdefs.h.  */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h.  */
2675
2676int
2677main ()
2678{
2679int i=0; i++;
2680  ;
2681  return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext conftest$ac_exeext
2685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2686  (eval $ac_link) 2>conftest.er1
2687  ac_status=$?
2688  grep -v '^ *+' conftest.er1 >conftest.err
2689  rm -f conftest.er1
2690  cat conftest.err >&5
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); } &&
2693         { ac_try='test -z "$ac_c_werror_flag"
2694                         || test ! -s conftest.err'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; } &&
2700         { ac_try='test -s conftest$ac_exeext'
2701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702  (eval $ac_try) 2>&5
2703  ac_status=$?
2704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705  (exit $ac_status); }; }; then
2706  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2707else
2708  echo "$as_me: failed program was:" >&5
2709sed 's/^/| /' conftest.$ac_ext >&5
2710
2711fi
2712rm -f conftest.err conftest.$ac_objext \
2713      conftest$ac_exeext conftest.$ac_ext
2714            CFLAGS=
2715          ;;
2716        esac
2717    esac
2718  fi
2719  if test -z "$coin_opt_cflags"; then
2720    case $build in
2721      *-cygwin* | *-mingw*)
2722        case "$CC" in
2723          cl* | */cl* | CL* | */CL*)
2724            coin_opt_cflags='-MT -O2'
2725            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2726            coin_dbg_cflags='-MTd'
2727            ;;
2728          icl* | */icl* | ICL* | */ICL*)
2729            coin_opt_cflags='-MT -Ox'
2730            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2731            coin_dbg_cflags='-MTd -debug'
2732            ;;
2733        esac
2734        ;;
2735      *-linux-*)
2736        case "$CC" in
2737          icc* | */icc*)
2738            coin_opt_cflags="-O3 -ip -mp1"
2739            coin_add_cflags=""
2740            coin_dbg_cflags="-g"
2741            # Check if -i_dynamic is necessary (for new glibc library)
2742            CFLAGS=
2743            cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h.  */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h.  */
2749
2750int
2751main ()
2752{
2753int i=0; i++;
2754  ;
2755  return 0;
2756}
2757_ACEOF
2758rm -f conftest.$ac_objext conftest$ac_exeext
2759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2760  (eval $ac_link) 2>conftest.er1
2761  ac_status=$?
2762  grep -v '^ *+' conftest.er1 >conftest.err
2763  rm -f conftest.er1
2764  cat conftest.err >&5
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); } &&
2767         { ac_try='test -z "$ac_c_werror_flag"
2768                         || test ! -s conftest.err'
2769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770  (eval $ac_try) 2>&5
2771  ac_status=$?
2772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773  (exit $ac_status); }; } &&
2774         { ac_try='test -s conftest$ac_exeext'
2775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776  (eval $ac_try) 2>&5
2777  ac_status=$?
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); }; }; then
2780  :
2781else
2782  echo "$as_me: failed program was:" >&5
2783sed 's/^/| /' conftest.$ac_ext >&5
2784
2785coin_add_cflags="-i_dynamic $coin_add_cflags"
2786fi
2787rm -f conftest.err conftest.$ac_objext \
2788      conftest$ac_exeext conftest.$ac_ext
2789            ;;
2790          pgcc* | */pgcc*)
2791            coin_opt_cflags="-fast"
2792            coin_add_cflags="-Kieee -pc 64"
2793            coin_dbg_cflags="-g"
2794            ;;
2795        esac
2796        ;;
2797      *-ibm-*)
2798        case "$CC" in
2799          xlc* | */xlc* | mpxlc* | */mpxlc*)
2800            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2801            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2802            coin_dbg_cflags="-g"
2803          ;;
2804        esac
2805        ;;
2806      *-hp-*)
2807        coin_opt_cflags="-O"
2808        coin_add_cflags="-Ae"
2809        coin_dbg_cflags="-g"
2810        ;;
2811      *-*-solaris*)
2812        coin_opt_cflags="-xO4"
2813        coin_dbg_cflags="-g"
2814        ;;
2815      *-sgi-*)
2816        coin_opt_cflags="-O -OPT:Olimit=0"
2817        coin_dbg_cflags="-g"
2818        ;;
2819    esac
2820  fi
2821
2822  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2823    coin_dbg_cflags="-g"
2824  fi
2825
2826  if test -z "$coin_opt_cflags"; then
2827    # Try if -O option works if nothing else is set
2828    CFLAGS="-O"
2829    cat >conftest.$ac_ext <<_ACEOF
2830/* confdefs.h.  */
2831_ACEOF
2832cat confdefs.h >>conftest.$ac_ext
2833cat >>conftest.$ac_ext <<_ACEOF
2834/* end confdefs.h.  */
2835
2836int
2837main ()
2838{
2839int i=0; i++;
2840  ;
2841  return 0;
2842}
2843_ACEOF
2844rm -f conftest.$ac_objext conftest$ac_exeext
2845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2846  (eval $ac_link) 2>conftest.er1
2847  ac_status=$?
2848  grep -v '^ *+' conftest.er1 >conftest.err
2849  rm -f conftest.er1
2850  cat conftest.err >&5
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); } &&
2853         { ac_try='test -z "$ac_c_werror_flag"
2854                         || test ! -s conftest.err'
2855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856  (eval $ac_try) 2>&5
2857  ac_status=$?
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); }; } &&
2860         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
2866  coin_opt_cflags="-O"
2867else
2868  echo "$as_me: failed program was:" >&5
2869sed 's/^/| /' conftest.$ac_ext >&5
2870
2871fi
2872rm -f conftest.err conftest.$ac_objext \
2873      conftest$ac_exeext conftest.$ac_ext
2874  fi
2875
2876  # if PM doesn't want the warning messages, take them out
2877  if test x"$coin_skip_warn_cflags" = xyes; then
2878    coin_warn_cflags=
2879  fi
2880
2881  if test x${DBG_CFLAGS+set} != xset; then
2882    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2883  fi
2884  if test x${OPT_CFLAGS+set} != xset; then
2885    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2886  fi
2887
2888  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2889  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2890
2891  if test "$coin_debug_compile" = "true"; then
2892    CFLAGS="$DBG_CFLAGS"
2893  else
2894    CFLAGS="$OPT_CFLAGS"
2895  fi
2896else
2897  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2898  if test x${DBG_CFLAGS+set} != xset; then
2899    DBG_CFLAGS="$CFLAGS"
2900  fi
2901  if test x${OPT_CFLAGS+set} != xset; then
2902    OPT_CFLAGS="$CFLAGS"
2903  fi
2904fi
2905
2906# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2907
2908case "$CFLAGS" in
2909  *-mno-cygwin*)
2910    if test x${CPPFLAGS+set} != xset ; then
2911      CPPFLAGS="-mno-cygwin"
2912    else
2913      case "$CPPFLAGS" in
2914        *-mno-cygwin*)
2915          ;;
2916        *)
2917          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2918          ;;
2919      esac
2920    fi ;;
2921esac
2922
2923# Try if CFLAGS works
2924save_CFLAGS="$CFLAGS"
2925cat >conftest.$ac_ext <<_ACEOF
2926/* confdefs.h.  */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h.  */
2931
2932int
2933main ()
2934{
2935int i=0; i++;
2936  ;
2937  return 0;
2938}
2939_ACEOF
2940rm -f conftest.$ac_objext conftest$ac_exeext
2941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2942  (eval $ac_link) 2>conftest.er1
2943  ac_status=$?
2944  grep -v '^ *+' conftest.er1 >conftest.err
2945  rm -f conftest.er1
2946  cat conftest.err >&5
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); } &&
2949         { ac_try='test -z "$ac_c_werror_flag"
2950                         || test ! -s conftest.err'
2951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952  (eval $ac_try) 2>&5
2953  ac_status=$?
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); }; } &&
2956         { ac_try='test -s conftest$ac_exeext'
2957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958  (eval $ac_try) 2>&5
2959  ac_status=$?
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }; }; then
2962  :
2963else
2964  echo "$as_me: failed program was:" >&5
2965sed 's/^/| /' conftest.$ac_ext >&5
2966
2967CFLAGS=
2968fi
2969rm -f conftest.err conftest.$ac_objext \
2970      conftest$ac_exeext conftest.$ac_ext
2971if test -z "$CFLAGS"; then
2972  { 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
2973echo "$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;}
2974  CFLAGS='-O'
2975  cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h.  */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h.  */
2981
2982int
2983main ()
2984{
2985int i=0; i++;
2986  ;
2987  return 0;
2988}
2989_ACEOF
2990rm -f conftest.$ac_objext conftest$ac_exeext
2991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2992  (eval $ac_link) 2>conftest.er1
2993  ac_status=$?
2994  grep -v '^ *+' conftest.er1 >conftest.err
2995  rm -f conftest.er1
2996  cat conftest.err >&5
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); } &&
2999         { ac_try='test -z "$ac_c_werror_flag"
3000                         || test ! -s conftest.err'
3001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002  (eval $ac_try) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }; } &&
3006         { ac_try='test -s conftest$ac_exeext'
3007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008  (eval $ac_try) 2>&5
3009  ac_status=$?
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); }; }; then
3012  :
3013else
3014  echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017CFLAGS=
3018fi
3019rm -f conftest.err conftest.$ac_objext \
3020      conftest$ac_exeext conftest.$ac_ext
3021  if test -z "$CFLAGS"; then
3022    { 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
3023echo "$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;}
3024  fi
3025fi
3026
3027{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3028echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3029
3030
3031if test x"$MPICC" = x; then :; else
3032  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3033echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3034  CC="$MPICC"
3035fi
3036
3037# Correct ADDLIBS initialization if we are using the MS compiler
3038case "$CC" in
3039  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3040    ADDLIBS=
3041    case $build in
3042  *-mingw*)
3043    if test "${LD+set}" = set; then :; else
3044      LD=link
3045    fi
3046    ;;
3047 esac
3048 case $enable_doscompile in
3049   msvc)
3050     if test "x${LD+set}" = xset; then :; else
3051       LD=link
3052     fi
3053     ;;
3054 esac
3055
3056    ;;
3057esac
3058
3059ac_ext=c
3060ac_cpp='$CPP $CPPFLAGS'
3061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064
3065
3066
3067# Get the name of the C++ compiler and appropriate compiler options
3068
3069 #Let's try if that overcomes configuration problem with VC++ 6.0
3070
3071ac_ext=cc
3072ac_cpp='$CXXCPP $CPPFLAGS'
3073ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3074ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3075ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3076
3077
3078
3079
3080
3081
3082
3083coin_has_cxx=yes
3084
3085save_cxxflags="$CXXFLAGS"
3086# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3087case $build in
3088  *-cygwin* | *-mingw*)
3089             if test "$enable_doscompile" = msvc ; then
3090               comps="icl cl"
3091             else
3092               comps="g++ cl"
3093             fi ;;
3094  *-*-solaris*)
3095             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3096  *-darwin*) comps="g++ c++ CC" ;;
3097          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3098esac
3099
3100# We delete the cached value, since the test might not have been
3101# performed with our choice of compilers earlier
3102$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3103# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3104ac_ext=cc
3105ac_cpp='$CXXCPP $CPPFLAGS'
3106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3109if test -n "$ac_tool_prefix"; then
3110  for ac_prog in $CCC $comps
3111  do
3112    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3114echo "$as_me:$LINENO: checking for $ac_word" >&5
3115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3116if test "${ac_cv_prog_CXX+set}" = set; then
3117  echo $ECHO_N "(cached) $ECHO_C" >&6
3118else
3119  if test -n "$CXX"; then
3120  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125  IFS=$as_save_IFS
3126  test -z "$as_dir" && as_dir=.
3127  for ac_exec_ext in '' $ac_executable_extensions; do
3128  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131    break 2
3132  fi
3133done
3134done
3135
3136fi
3137fi
3138CXX=$ac_cv_prog_CXX
3139if test -n "$CXX"; then
3140  echo "$as_me:$LINENO: result: $CXX" >&5
3141echo "${ECHO_T}$CXX" >&6
3142else
3143  echo "$as_me:$LINENO: result: no" >&5
3144echo "${ECHO_T}no" >&6
3145fi
3146
3147    test -n "$CXX" && break
3148  done
3149fi
3150if test -z "$CXX"; then
3151  ac_ct_CXX=$CXX
3152  for ac_prog in $CCC $comps
3153do
3154  # Extract the first word of "$ac_prog", so it can be a program name with args.
3155set dummy $ac_prog; ac_word=$2
3156echo "$as_me:$LINENO: checking for $ac_word" >&5
3157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3158if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3159  echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161  if test -n "$ac_ct_CXX"; then
3162  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3163else
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167  IFS=$as_save_IFS
3168  test -z "$as_dir" && as_dir=.
3169  for ac_exec_ext in '' $ac_executable_extensions; do
3170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171    ac_cv_prog_ac_ct_CXX="$ac_prog"
3172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3173    break 2
3174  fi
3175done
3176done
3177
3178fi
3179fi
3180ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3181if test -n "$ac_ct_CXX"; then
3182  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3183echo "${ECHO_T}$ac_ct_CXX" >&6
3184else
3185  echo "$as_me:$LINENO: result: no" >&5
3186echo "${ECHO_T}no" >&6
3187fi
3188
3189  test -n "$ac_ct_CXX" && break
3190done
3191test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3192
3193  CXX=$ac_ct_CXX
3194fi
3195
3196
3197# Provide some information about the compiler.
3198echo "$as_me:$LINENO:" \
3199     "checking for C++ compiler version" >&5
3200ac_compiler=`set X $ac_compile; echo $2`
3201{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3202  (eval $ac_compiler --version </dev/null >&5) 2>&5
3203  ac_status=$?
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }
3206{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3207  (eval $ac_compiler -v </dev/null >&5) 2>&5
3208  ac_status=$?
3209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); }
3211{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3212  (eval $ac_compiler -V </dev/null >&5) 2>&5
3213  ac_status=$?
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); }
3216
3217echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3218echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3219if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3220  echo $ECHO_N "(cached) $ECHO_C" >&6
3221else
3222  cat >conftest.$ac_ext <<_ACEOF
3223/* confdefs.h.  */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h.  */
3228
3229int
3230main ()
3231{
3232#ifndef __GNUC__
3233       choke me
3234#endif
3235
3236  ;
3237  return 0;
3238}
3239_ACEOF
3240rm -f conftest.$ac_objext
3241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3242  (eval $ac_compile) 2>conftest.er1
3243  ac_status=$?
3244  grep -v '^ *+' conftest.er1 >conftest.err
3245  rm -f conftest.er1
3246  cat conftest.err >&5
3247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248  (exit $ac_status); } &&
3249         { ac_try='test -z "$ac_cxx_werror_flag"
3250                         || test ! -s conftest.err'
3251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252  (eval $ac_try) 2>&5
3253  ac_status=$?
3254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255  (exit $ac_status); }; } &&
3256         { ac_try='test -s conftest.$ac_objext'
3257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258  (eval $ac_try) 2>&5
3259  ac_status=$?
3260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261  (exit $ac_status); }; }; then
3262  ac_compiler_gnu=yes
3263else
3264  echo "$as_me: failed program was:" >&5
3265sed 's/^/| /' conftest.$ac_ext >&5
3266
3267ac_compiler_gnu=no
3268fi
3269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3270ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3271
3272fi
3273echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3274echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3275GXX=`test $ac_compiler_gnu = yes && echo yes`
3276ac_test_CXXFLAGS=${CXXFLAGS+set}
3277ac_save_CXXFLAGS=$CXXFLAGS
3278CXXFLAGS="-g"
3279echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3280echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3281if test "${ac_cv_prog_cxx_g+set}" = set; then
3282  echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284  cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h.  */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h.  */
3290
3291int
3292main ()
3293{
3294
3295  ;
3296  return 0;
3297}
3298_ACEOF
3299rm -f conftest.$ac_objext
3300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3301  (eval $ac_compile) 2>conftest.er1
3302  ac_status=$?
3303  grep -v '^ *+' conftest.er1 >conftest.err
3304  rm -f conftest.er1
3305  cat conftest.err >&5
3306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307  (exit $ac_status); } &&
3308         { ac_try='test -z "$ac_cxx_werror_flag"
3309                         || test ! -s conftest.err'
3310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311  (eval $ac_try) 2>&5
3312  ac_status=$?
3313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314  (exit $ac_status); }; } &&
3315         { ac_try='test -s conftest.$ac_objext'
3316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317  (eval $ac_try) 2>&5
3318  ac_status=$?
3319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320  (exit $ac_status); }; }; then
3321  ac_cv_prog_cxx_g=yes
3322else
3323  echo "$as_me: failed program was:" >&5
3324sed 's/^/| /' conftest.$ac_ext >&5
3325
3326ac_cv_prog_cxx_g=no
3327fi
3328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3329fi
3330echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3331echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3332if test "$ac_test_CXXFLAGS" = set; then
3333  CXXFLAGS=$ac_save_CXXFLAGS
3334elif test $ac_cv_prog_cxx_g = yes; then
3335  if test "$GXX" = yes; then
3336    CXXFLAGS="-g -O2"
3337  else
3338    CXXFLAGS="-g"
3339  fi
3340else
3341  if test "$GXX" = yes; then
3342    CXXFLAGS="-O2"
3343  else
3344    CXXFLAGS=
3345  fi
3346fi
3347for ac_declaration in \
3348   '' \
3349   'extern "C" void std::exit (int) throw (); using std::exit;' \
3350   'extern "C" void std::exit (int); using std::exit;' \
3351   'extern "C" void exit (int) throw ();' \
3352   'extern "C" void exit (int);' \
3353   'void exit (int);'
3354do
3355  cat >conftest.$ac_ext <<_ACEOF
3356/* confdefs.h.  */
3357_ACEOF
3358cat confdefs.h >>conftest.$ac_ext
3359cat >>conftest.$ac_ext <<_ACEOF
3360/* end confdefs.h.  */
3361$ac_declaration
3362#include <stdlib.h>
3363int
3364main ()
3365{
3366exit (42);
3367  ;
3368  return 0;
3369}
3370_ACEOF
3371rm -f conftest.$ac_objext
3372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3373  (eval $ac_compile) 2>conftest.er1
3374  ac_status=$?
3375  grep -v '^ *+' conftest.er1 >conftest.err
3376  rm -f conftest.er1
3377  cat conftest.err >&5
3378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379  (exit $ac_status); } &&
3380         { ac_try='test -z "$ac_cxx_werror_flag"
3381                         || test ! -s conftest.err'
3382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383  (eval $ac_try) 2>&5
3384  ac_status=$?
3385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386  (exit $ac_status); }; } &&
3387         { ac_try='test -s conftest.$ac_objext'
3388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3389  (eval $ac_try) 2>&5
3390  ac_status=$?
3391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392  (exit $ac_status); }; }; then
3393  :
3394else
3395  echo "$as_me: failed program was:" >&5
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
3398continue
3399fi
3400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3401  cat >conftest.$ac_ext <<_ACEOF
3402/* confdefs.h.  */
3403_ACEOF
3404cat confdefs.h >>conftest.$ac_ext
3405cat >>conftest.$ac_ext <<_ACEOF
3406/* end confdefs.h.  */
3407$ac_declaration
3408int
3409main ()
3410{
3411exit (42);
3412  ;
3413  return 0;
3414}
3415_ACEOF
3416rm -f conftest.$ac_objext
3417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3418  (eval $ac_compile) 2>conftest.er1
3419  ac_status=$?
3420  grep -v '^ *+' conftest.er1 >conftest.err
3421  rm -f conftest.er1
3422  cat conftest.err >&5
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); } &&
3425         { ac_try='test -z "$ac_cxx_werror_flag"
3426                         || test ! -s conftest.err'
3427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428  (eval $ac_try) 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }; } &&
3432         { ac_try='test -s conftest.$ac_objext'
3433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434  (eval $ac_try) 2>&5
3435  ac_status=$?
3436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); }; }; then
3438  break
3439else
3440  echo "$as_me: failed program was:" >&5
3441sed 's/^/| /' conftest.$ac_ext >&5
3442
3443fi
3444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445done
3446rm -f conftest*
3447if test -n "$ac_declaration"; then
3448  echo '#ifdef __cplusplus' >>confdefs.h
3449  echo $ac_declaration      >>confdefs.h
3450  echo '#endif'             >>confdefs.h
3451fi
3452
3453ac_ext=cc
3454ac_cpp='$CXXCPP $CPPFLAGS'
3455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3458
3459
3460#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3461#thus, we test here whether $CXX is actually working
3462ac_ext=cc
3463ac_cpp='$CXXCPP $CPPFLAGS'
3464ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3465ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3466ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3467
3468echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3469echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3470cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h.  */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h.  */
3476
3477int
3478main ()
3479{
3480int i=0;
3481  ;
3482  return 0;
3483}
3484_ACEOF
3485rm -f conftest.$ac_objext
3486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3487  (eval $ac_compile) 2>conftest.er1
3488  ac_status=$?
3489  grep -v '^ *+' conftest.er1 >conftest.err
3490  rm -f conftest.er1
3491  cat conftest.err >&5
3492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493  (exit $ac_status); } &&
3494         { ac_try='test -z "$ac_cxx_werror_flag"
3495                         || test ! -s conftest.err'
3496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497  (eval $ac_try) 2>&5
3498  ac_status=$?
3499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500  (exit $ac_status); }; } &&
3501         { ac_try='test -s conftest.$ac_objext'
3502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3503  (eval $ac_try) 2>&5
3504  ac_status=$?
3505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); }; }; then
3507  echo "$as_me:$LINENO: result: yes" >&5
3508echo "${ECHO_T}yes" >&6
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513echo "$as_me:$LINENO: result: no" >&5
3514echo "${ECHO_T}no" >&6
3515   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3516echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3517   { (exit 1); exit 1; }; }
3518
3519fi
3520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3521ac_ext=cc
3522ac_cpp='$CXXCPP $CPPFLAGS'
3523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3526
3527
3528# It seems that we need to cleanup something here for the Windows
3529case "$CXX" in
3530  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3531    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3532    mv confdefs.hh confdefs.h
3533    ;;
3534esac
3535
3536# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3537case "$CXX" in
3538  cl* | */cl* | CL* | */CL* )
3539    if test "$ac_cv_prog_cxx_g" = yes ; then
3540      ac_cv_prog_cxx_g=no
3541      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3542echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3543    fi ;;
3544esac
3545CXXFLAGS="$save_cxxflags"
3546
3547# Check if a project specific CXXFLAGS variable has been set
3548if test x$COIN_PRJCT != x; then
3549  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3550  if test x$coin_tmp = xset; then
3551    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3552  fi
3553fi
3554
3555if test x"$CXXFLAGS" = x; then
3556
3557# ToDo decide whether we want -DNDEBUG for optimization
3558  coin_add_cxxflags=
3559  coin_opt_cxxflags=
3560  coin_dbg_cxxflags=
3561  coin_warn_cxxflags=
3562
3563  if test "$GXX" = "yes"; then
3564    case "$CXX" in
3565      icpc* | */icpc*)
3566        ;;
3567      *)
3568# ToDo decide about unroll-loops
3569        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3570        coin_add_cxxflags="-pipe"
3571        coin_dbg_cxxflags="-g"
3572        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3573        case $build in
3574          *-darwin*)
3575            ;;
3576          *)
3577            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3578            ;;
3579        esac
3580
3581        case $enable_doscompile in
3582          mingw)
3583            CXXFLAGS="-mno-cygwin"
3584            cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h.  */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h.  */
3590
3591int
3592main ()
3593{
3594int i=0; i++;
3595  ;
3596  return 0;
3597}
3598_ACEOF
3599rm -f conftest.$ac_objext conftest$ac_exeext
3600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3601  (eval $ac_link) 2>conftest.er1
3602  ac_status=$?
3603  grep -v '^ *+' conftest.er1 >conftest.err
3604  rm -f conftest.er1
3605  cat conftest.err >&5
3606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607  (exit $ac_status); } &&
3608         { ac_try='test -z "$ac_cxx_werror_flag"
3609                         || test ! -s conftest.err'
3610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3611  (eval $ac_try) 2>&5
3612  ac_status=$?
3613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); }; } &&
3615         { ac_try='test -s conftest$ac_exeext'
3616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617  (eval $ac_try) 2>&5
3618  ac_status=$?
3619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620  (exit $ac_status); }; }; then
3621  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3622else
3623  echo "$as_me: failed program was:" >&5
3624sed 's/^/| /' conftest.$ac_ext >&5
3625
3626fi
3627rm -f conftest.err conftest.$ac_objext \
3628      conftest$ac_exeext conftest.$ac_ext
3629            CXXFLAGS=
3630          ;;
3631        esac
3632    esac
3633  fi
3634
3635# Note that we do not need to cover GCC in the following tests.
3636
3637  if test -z "$coin_opt_cxxflags"; then
3638    case $build in
3639      *-cygwin* | *-mingw*)
3640        case "$CXX" in
3641          cl* | */cl* | CL* | */CL*)
3642            # The MT and MTd options are mutually exclusive
3643            coin_opt_cxxflags='-MT -O2'
3644            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3645            coin_dbg_cxxflags='-MTd'
3646            ;;
3647          icl* | */icl* | ICL* | */ICL*)
3648            # The MT and MTd options are mutually exclusive
3649            coin_opt_cxxflags='-MT -Ox'
3650            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3651            coin_dbg_cxxflags='-MTd -debug'
3652            ;;
3653        esac
3654        ;;
3655      *-linux-*)
3656        case "$CXX" in
3657          icpc* | */icpc*)
3658            coin_opt_cxxflags="-O3 -ip -mp1"
3659            coin_add_cxxflags=""
3660            coin_dbg_cxxflags="-g"
3661            # Check if -i_dynamic is necessary (for new glibc library)
3662            CXXFLAGS=
3663            cat >conftest.$ac_ext <<_ACEOF
3664/* confdefs.h.  */
3665_ACEOF
3666cat confdefs.h >>conftest.$ac_ext
3667cat >>conftest.$ac_ext <<_ACEOF
3668/* end confdefs.h.  */
3669
3670int
3671main ()
3672{
3673int i=0; i++;
3674  ;
3675  return 0;
3676}
3677_ACEOF
3678rm -f conftest.$ac_objext conftest$ac_exeext
3679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3680  (eval $ac_link) 2>conftest.er1
3681  ac_status=$?
3682  grep -v '^ *+' conftest.er1 >conftest.err
3683  rm -f conftest.er1
3684  cat conftest.err >&5
3685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686  (exit $ac_status); } &&
3687         { ac_try='test -z "$ac_cxx_werror_flag"
3688                         || test ! -s conftest.err'
3689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690  (eval $ac_try) 2>&5
3691  ac_status=$?
3692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693  (exit $ac_status); }; } &&
3694         { ac_try='test -s conftest$ac_exeext'
3695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696  (eval $ac_try) 2>&5
3697  ac_status=$?
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); }; }; then
3700  :
3701else
3702  echo "$as_me: failed program was:" >&5
3703sed 's/^/| /' conftest.$ac_ext >&5
3704
3705coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3706fi
3707rm -f conftest.err conftest.$ac_objext \
3708      conftest$ac_exeext conftest.$ac_ext
3709            ;;
3710          pgCC* | */pgCC*)
3711            coin_opt_cxxflags="-fast"
3712            coin_add_cxxflags="-Kieee -pc 64"
3713            coin_dbg_cxxflags="-g"
3714            ;;
3715        esac
3716        ;;
3717      *-ibm-*)
3718        case "$CXX" in
3719          xlC* | */xlC* | mpxlC* | */mpxlC*)
3720            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3721            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3722            coin_dbg_cxxflags="-g"
3723            ;;
3724        esac
3725        ;;
3726      *-hp-*)
3727        case "$CXX" in
3728          aCC* | */aCC* )
3729            coin_opt_cxxflags="-O"
3730            coin_add_cxxflags="-AA"
3731            coin_dbg_cxxflags="-g"
3732            ;;
3733        esac
3734        ;;
3735      *-*-solaris*)
3736          coin_opt_cxxflags="-O4"
3737          coin_dbg_cxxflags="-g"
3738        ;;
3739    esac
3740  fi
3741
3742# Generic flag settings. If these don't work, add a case above.
3743
3744  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3745    coin_dbg_cxxflags="-g"
3746  fi
3747
3748  if test -z "$coin_opt_cxxflags"; then
3749    # Try if -O option works if nothing else is set
3750    CXXFLAGS=-O
3751    cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h.  */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h.  */
3757
3758int
3759main ()
3760{
3761int i=0; i++;
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766rm -f conftest.$ac_objext conftest$ac_exeext
3767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3768  (eval $ac_link) 2>conftest.er1
3769  ac_status=$?
3770  grep -v '^ *+' conftest.er1 >conftest.err
3771  rm -f conftest.er1
3772  cat conftest.err >&5
3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); } &&
3775         { ac_try='test -z "$ac_cxx_werror_flag"
3776                         || test ! -s conftest.err'
3777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778  (eval $ac_try) 2>&5
3779  ac_status=$?
3780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781  (exit $ac_status); }; } &&
3782         { ac_try='test -s conftest$ac_exeext'
3783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784  (eval $ac_try) 2>&5
3785  ac_status=$?
3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787  (exit $ac_status); }; }; then
3788  coin_opt_cxxflags="-O"
3789else
3790  echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793fi
3794rm -f conftest.err conftest.$ac_objext \
3795      conftest$ac_exeext conftest.$ac_ext
3796  fi
3797
3798  # if PM doesn't want the warning messages, take them out
3799  if test x"$coin_skip_warn_cxxflags" = xyes; then
3800    coin_warn_cxxflags=
3801  fi
3802
3803# Do final setup of flags based on values determined above.
3804
3805  if test x${DBG_CXXFLAGS+set} != xset; then
3806    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3807  fi
3808  if test x${OPT_CXXFLAGS+set} != xset; then
3809    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3810  fi
3811
3812  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3813  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3814
3815  if test "$coin_debug_compile" = "true"; then
3816    CXXFLAGS="$DBG_CXXFLAGS"
3817  else
3818    CXXFLAGS="$OPT_CXXFLAGS"
3819  fi
3820
3821# Handle the case where CXXFLAGS was set externally.
3822else
3823  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3824  if test x${DBG_CXXFLAGS+set} != xset; then
3825    DBG_CXXFLAGS="$CXXFLAGS"
3826  fi
3827  if test x${OPT_CXXFLAGS+set} != xset; then
3828    OPT_CXXFLAGS="$CXXFLAGS"
3829  fi
3830fi
3831
3832# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3833
3834case "$CXXFLAGS" in
3835  *-mno-cygwin*)
3836    if test x${CPPFLAGS+set} != xset ; then
3837      CPPFLAGS="-mno-cygwin"
3838    else
3839      case "$CPPFLAGS" in
3840        *-mno-cygwin*)
3841          ;;
3842        *)
3843          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3844          ;;
3845      esac
3846    fi ;;
3847esac
3848
3849# Try if CXXFLAGS works
3850save_CXXFLAGS="$CXXFLAGS"
3851cat >conftest.$ac_ext <<_ACEOF
3852/* confdefs.h.  */
3853_ACEOF
3854cat confdefs.h >>conftest.$ac_ext
3855cat >>conftest.$ac_ext <<_ACEOF
3856/* end confdefs.h.  */
3857
3858int
3859main ()
3860{
3861int i=0; i++;
3862  ;
3863  return 0;
3864}
3865_ACEOF
3866rm -f conftest.$ac_objext conftest$ac_exeext
3867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3868  (eval $ac_link) 2>conftest.er1
3869  ac_status=$?
3870  grep -v '^ *+' conftest.er1 >conftest.err
3871  rm -f conftest.er1
3872  cat conftest.err >&5
3873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874  (exit $ac_status); } &&
3875         { ac_try='test -z "$ac_cxx_werror_flag"
3876                         || test ! -s conftest.err'
3877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3878  (eval $ac_try) 2>&5
3879  ac_status=$?
3880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881  (exit $ac_status); }; } &&
3882         { ac_try='test -s conftest$ac_exeext'
3883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884  (eval $ac_try) 2>&5
3885  ac_status=$?
3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887  (exit $ac_status); }; }; then
3888  :
3889else
3890  echo "$as_me: failed program was:" >&5
3891sed 's/^/| /' conftest.$ac_ext >&5
3892
3893CXXFLAGS=
3894fi
3895rm -f conftest.err conftest.$ac_objext \
3896      conftest$ac_exeext conftest.$ac_ext
3897if test -z "$CXXFLAGS"; then
3898  { 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
3899echo "$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;}
3900  CXXFLAGS='-O'
3901  cat >conftest.$ac_ext <<_ACEOF
3902/* confdefs.h.  */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h.  */
3907
3908int
3909main ()
3910{
3911int i=0; i++;
3912  ;
3913  return 0;
3914}
3915_ACEOF
3916rm -f conftest.$ac_objext conftest$ac_exeext
3917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3918  (eval $ac_link) 2>conftest.er1
3919  ac_status=$?
3920  grep -v '^ *+' conftest.er1 >conftest.err
3921  rm -f conftest.er1
3922  cat conftest.err >&5
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); } &&
3925         { ac_try='test -z "$ac_cxx_werror_flag"
3926                         || test ! -s conftest.err'
3927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928  (eval $ac_try) 2>&5
3929  ac_status=$?
3930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931  (exit $ac_status); }; } &&
3932         { ac_try='test -s conftest$ac_exeext'
3933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934  (eval $ac_try) 2>&5
3935  ac_status=$?
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); }; }; then
3938  :
3939else
3940  echo "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
3942
3943CXXFLAGS=
3944fi
3945rm -f conftest.err conftest.$ac_objext \
3946      conftest$ac_exeext conftest.$ac_ext
3947  if test -z "$CXXFLAGS"; then
3948    { 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
3949echo "$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;}
3950  fi
3951fi
3952
3953{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3954echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3955
3956
3957if test x"$MPICXX" = x; then :; else
3958  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3959echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3960  CXX="$MPICXX"
3961fi
3962
3963case "$CXX" in
3964  cl* | */cl* | CL* | */CL* )
3965    case $build in
3966  *-mingw*)
3967    if test "${LD+set}" = set; then :; else
3968      LD=link
3969    fi
3970    ;;
3971 esac
3972 case $enable_doscompile in
3973   msvc)
3974     if test "x${LD+set}" = xset; then :; else
3975       LD=link
3976     fi
3977     ;;
3978 esac
3979
3980    ;;
3981esac
3982
3983ac_ext=c
3984ac_cpp='$CPP $CPPFLAGS'
3985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3987ac_compiler_gnu=$ac_cv_c_compiler_gnu
3988
3989
3990
3991# Get the name of the Fortran compiler and appropriate compiler options
3992case $build in
3993  *-cygwin* | *-mingw*)
3994     if test "$enable_doscompile" = msvc ; then
3995       coin_f77_comps="ifort fl32 compile_f2c"
3996     else
3997       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3998     fi ;;
3999  *-*-solaris*)
4000     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4001  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
4002 esac
4003
4004
4005
4006
4007
4008
4009ac_ext=f
4010ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4011ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4012ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4013
4014
4015
4016
4017
4018
4019coin_has_f77=yes
4020
4021save_fflags="$FFLAGS"
4022
4023# We delete the cached value, since the test might not have been
4024# performed with our choice of compilers earlier
4025$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4026
4027# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4028# coin_f77_comps to see if there's a program that matches one of the names.
4029# If there's no such program, F77 = unavailable. If we match the name,
4030# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4031# compiler.
4032# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4033
4034
4035{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4036echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4037for ac_prog in $coin_f77_comps
4038do
4039  # Extract the first word of "$ac_prog", so it can be a program name with args.
4040set dummy $ac_prog; ac_word=$2
4041echo "$as_me:$LINENO: checking for $ac_word" >&5
4042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4043if test "${ac_cv_prog_F77+set}" = set; then
4044  echo $ECHO_N "(cached) $ECHO_C" >&6
4045else
4046  if test -n "$F77"; then
4047  ac_cv_prog_F77="$F77" # Let the user override the test.
4048else
4049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050for as_dir in $PATH
4051do
4052  IFS=$as_save_IFS
4053  test -z "$as_dir" && as_dir=.
4054  for ac_exec_ext in '' $ac_executable_extensions; do
4055  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4056    ac_cv_prog_F77="$ac_prog"
4057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4058    break 2
4059  fi
4060done
4061done
4062
4063fi
4064fi
4065F77=$ac_cv_prog_F77
4066if test -n "$F77"; then
4067  echo "$as_me:$LINENO: result: $F77" >&5
4068echo "${ECHO_T}$F77" >&6
4069else
4070  echo "$as_me:$LINENO: result: no" >&5
4071echo "${ECHO_T}no" >&6
4072fi
4073
4074  test -n "$F77" && break
4075done
4076test -n "$F77" || F77="unavailable"
4077
4078
4079if test "$F77" != "unavailable" ; then
4080  ac_ext=f
4081ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4082ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4084if test -n "$ac_tool_prefix"; then
4085  for ac_prog in $coin_f77_comps
4086  do
4087    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4089echo "$as_me:$LINENO: checking for $ac_word" >&5
4090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091if test "${ac_cv_prog_F77+set}" = set; then
4092  echo $ECHO_N "(cached) $ECHO_C" >&6
4093else
4094  if test -n "$F77"; then
4095  ac_cv_prog_F77="$F77" # Let the user override the test.
4096else
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100  IFS=$as_save_IFS
4101  test -z "$as_dir" && as_dir=.
4102  for ac_exec_ext in '' $ac_executable_extensions; do
4103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106    break 2
4107  fi
4108done
4109done
4110
4111fi
4112fi
4113F77=$ac_cv_prog_F77
4114if test -n "$F77"; then
4115  echo "$as_me:$LINENO: result: $F77" >&5
4116echo "${ECHO_T}$F77" >&6
4117else
4118  echo "$as_me:$LINENO: result: no" >&5
4119echo "${ECHO_T}no" >&6
4120fi
4121
4122    test -n "$F77" && break
4123  done
4124fi
4125if test -z "$F77"; then
4126  ac_ct_F77=$F77
4127  for ac_prog in $coin_f77_comps
4128do
4129  # Extract the first word of "$ac_prog", so it can be a program name with args.
4130set dummy $ac_prog; ac_word=$2
4131echo "$as_me:$LINENO: checking for $ac_word" >&5
4132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4133if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4134  echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136  if test -n "$ac_ct_F77"; then
4137  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4138else
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142  IFS=$as_save_IFS
4143  test -z "$as_dir" && as_dir=.
4144  for ac_exec_ext in '' $ac_executable_extensions; do
4145  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4146    ac_cv_prog_ac_ct_F77="$ac_prog"
4147    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4148    break 2
4149  fi
4150done
4151done
4152
4153fi
4154fi
4155ac_ct_F77=$ac_cv_prog_ac_ct_F77
4156if test -n "$ac_ct_F77"; then
4157  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4158echo "${ECHO_T}$ac_ct_F77" >&6
4159else
4160  echo "$as_me:$LINENO: result: no" >&5
4161echo "${ECHO_T}no" >&6
4162fi
4163
4164  test -n "$ac_ct_F77" && break
4165done
4166
4167  F77=$ac_ct_F77
4168fi
4169
4170
4171# Provide some information about the compiler.
4172echo "$as_me:4172:" \
4173     "checking for Fortran 77 compiler version" >&5
4174ac_compiler=`set X $ac_compile; echo $2`
4175{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4176  (eval $ac_compiler --version </dev/null >&5) 2>&5
4177  ac_status=$?
4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179  (exit $ac_status); }
4180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4181  (eval $ac_compiler -v </dev/null >&5) 2>&5
4182  ac_status=$?
4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184  (exit $ac_status); }
4185{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4186  (eval $ac_compiler -V </dev/null >&5) 2>&5
4187  ac_status=$?
4188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189  (exit $ac_status); }
4190rm -f a.out
4191
4192# If we don't use `.F' as extension, the preprocessor is not run on the
4193# input file.  (Note that this only needs to work for GNU compilers.)
4194ac_save_ext=$ac_ext
4195ac_ext=F
4196echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4197echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4198if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4199  echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201  cat >conftest.$ac_ext <<_ACEOF
4202      program main
4203#ifndef __GNUC__
4204       choke me
4205#endif
4206
4207      end
4208_ACEOF
4209rm -f conftest.$ac_objext
4210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4211  (eval $ac_compile) 2>conftest.er1
4212  ac_status=$?
4213  grep -v '^ *+' conftest.er1 >conftest.err
4214  rm -f conftest.er1
4215  cat conftest.err >&5
4216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217  (exit $ac_status); } &&
4218         { ac_try='test -z "$ac_f77_werror_flag"
4219                         || test ! -s conftest.err'
4220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221  (eval $ac_try) 2>&5
4222  ac_status=$?
4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224  (exit $ac_status); }; } &&
4225         { ac_try='test -s conftest.$ac_objext'
4226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227  (eval $ac_try) 2>&5
4228  ac_status=$?
4229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230  (exit $ac_status); }; }; then
4231  ac_compiler_gnu=yes
4232else
4233  echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
4236ac_compiler_gnu=no
4237fi
4238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4239ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4240
4241fi
4242echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4243echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4244ac_ext=$ac_save_ext
4245ac_test_FFLAGS=${FFLAGS+set}
4246ac_save_FFLAGS=$FFLAGS
4247FFLAGS=
4248echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4249echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4250if test "${ac_cv_prog_f77_g+set}" = set; then
4251  echo $ECHO_N "(cached) $ECHO_C" >&6
4252else
4253  FFLAGS=-g
4254cat >conftest.$ac_ext <<_ACEOF
4255      program main
4256
4257      end
4258_ACEOF
4259rm -f conftest.$ac_objext
4260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4261  (eval $ac_compile) 2>conftest.er1
4262  ac_status=$?
4263  grep -v '^ *+' conftest.er1 >conftest.err
4264  rm -f conftest.er1
4265  cat conftest.err >&5
4266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267  (exit $ac_status); } &&
4268         { ac_try='test -z "$ac_f77_werror_flag"
4269                         || test ! -s conftest.err'
4270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271  (eval $ac_try) 2>&5
4272  ac_status=$?
4273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274  (exit $ac_status); }; } &&
4275         { ac_try='test -s conftest.$ac_objext'
4276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277  (eval $ac_try) 2>&5
4278  ac_status=$?
4279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280  (exit $ac_status); }; }; then
4281  ac_cv_prog_f77_g=yes
4282else
4283  echo "$as_me: failed program was:" >&5
4284sed 's/^/| /' conftest.$ac_ext >&5
4285
4286ac_cv_prog_f77_g=no
4287fi
4288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4289
4290fi
4291echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4292echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4293if test "$ac_test_FFLAGS" = set; then
4294  FFLAGS=$ac_save_FFLAGS
4295elif test $ac_cv_prog_f77_g = yes; then
4296  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4297    FFLAGS="-g -O2"
4298  else
4299    FFLAGS="-g"
4300  fi
4301else
4302  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4303    FFLAGS="-O2"
4304  else
4305    FFLAGS=
4306  fi
4307fi
4308
4309G77=`test $ac_compiler_gnu = yes && echo yes`
4310ac_ext=f
4311ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4312ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4314
4315else
4316  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4317echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4318fi
4319
4320FFLAGS="$save_fflags"
4321
4322# Check if a project specific FFLAGS variable has been set
4323if test x$COIN_PRJCT != x; then
4324  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4325  if test x$coin_tmp = xset; then
4326    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4327  fi
4328fi
4329
4330if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4331
4332  coin_add_fflags=
4333  coin_opt_fflags=
4334  coin_dbg_fflags=
4335  coin_warn_fflags=
4336
4337  if test "$G77" = "yes"; then
4338    coin_opt_fflags="-O3 -fomit-frame-pointer"
4339    coin_add_fflags="-pipe"
4340    coin_dbg_fflags="-g"
4341    case $enable_doscompile in
4342      mingw)
4343        FFLAGS="-mno-cygwin"
4344        cat >conftest.$ac_ext <<_ACEOF
4345      program main
4346      write(*,*) 'Hello world'
4347      end
4348_ACEOF
4349rm -f conftest.$ac_objext conftest$ac_exeext
4350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4351  (eval $ac_link) 2>conftest.er1
4352  ac_status=$?
4353  grep -v '^ *+' conftest.er1 >conftest.err
4354  rm -f conftest.er1
4355  cat conftest.err >&5
4356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357  (exit $ac_status); } &&
4358         { ac_try='test -z "$ac_f77_werror_flag"
4359                         || test ! -s conftest.err'
4360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361  (eval $ac_try) 2>&5
4362  ac_status=$?
4363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364  (exit $ac_status); }; } &&
4365         { ac_try='test -s conftest$ac_exeext'
4366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367  (eval $ac_try) 2>&5
4368  ac_status=$?
4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370  (exit $ac_status); }; }; then
4371  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4372else
4373  echo "$as_me: failed program was:" >&5
4374sed 's/^/| /' conftest.$ac_ext >&5
4375
4376fi
4377rm -f conftest.err conftest.$ac_objext \
4378      conftest$ac_exeext conftest.$ac_ext
4379        FFLAGS=
4380      ;;
4381    esac
4382  else
4383    case $build in
4384      *-cygwin* | *-mingw*)
4385        case $F77 in
4386          ifort* | */ifort* | IFORT* | */IFORT* )
4387            coin_opt_fflags='-MT -O3'
4388            coin_add_fflags='-fpp -nologo'
4389            coin_dbg_fflags='-MTd -debug'
4390          ;;
4391          compile_f2c*)
4392            coin_opt_fflags='-MT -O2'
4393            coin_add_fflags='-nologo -wd4996'
4394            coin_dbg_fflags='-MTd'
4395          ;;
4396        esac
4397        ;;
4398      *-linux-*)
4399        case $F77 in
4400          ifc* | */ifc* | ifort* | */ifort*)
4401            coin_opt_fflags="-O3 -ip"
4402            coin_add_fflags="-cm -w90 -w95"
4403            coin_dbg_fflags="-g -CA -CB -CS"
4404            # Check if -i_dynamic is necessary (for new glibc library)
4405            FFLAGS=
4406            cat >conftest.$ac_ext <<_ACEOF
4407      program main
4408      write(*,*) 'Hello world'
4409      end
4410_ACEOF
4411rm -f conftest.$ac_objext conftest$ac_exeext
4412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4413  (eval $ac_link) 2>conftest.er1
4414  ac_status=$?
4415  grep -v '^ *+' conftest.er1 >conftest.err
4416  rm -f conftest.er1
4417  cat conftest.err >&5
4418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419  (exit $ac_status); } &&
4420         { ac_try='test -z "$ac_f77_werror_flag"
4421                         || test ! -s conftest.err'
4422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423  (eval $ac_try) 2>&5
4424  ac_status=$?
4425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426  (exit $ac_status); }; } &&
4427         { ac_try='test -s conftest$ac_exeext'
4428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4429  (eval $ac_try) 2>&5
4430  ac_status=$?
4431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432  (exit $ac_status); }; }; then
4433  :
4434else
4435  echo "$as_me: failed program was:" >&5
4436sed 's/^/| /' conftest.$ac_ext >&5
4437
4438coin_add_fflags="-i_dynamic $coin_add_fflags"
4439fi
4440rm -f conftest.err conftest.$ac_objext \
4441      conftest$ac_exeext conftest.$ac_ext
4442            ;;
4443          pgf77* | */pgf77* | pgf90* | */pgf90*)
4444            coin_opt_fflags="-fast"
4445            coin_add_fflags="-Kieee -pc 64"
4446            coin_dbg_fflags="-g"
4447          ;;
4448        esac
4449        ;;
4450      *-ibm-*)
4451        case "$F77" in
4452          xlf* | */xlf* | mpxlf* | */mpxlf* )
4453            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4454            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4455            coin_dbg_fflags="-g -C"
4456            ;;
4457        esac
4458        ;;
4459      *-hp-*)
4460        coin_opt_fflags="+O3"
4461        coin_add_fflags="+U77"
4462        coin_dbg_fflags="-C -g"
4463        ;;
4464      *-*-solaris*)
4465        coin_opt_fflags="-O4"
4466        coin_dbg_fflags="-g"
4467        ;;
4468      *-sgi-*)
4469        coin_opt_fflags="-O5 -OPT:Olimit=0"
4470        coin_dbg_fflags="-g"
4471        ;;
4472    esac
4473  fi
4474
4475  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4476    coin_dbg_fflags="-g"
4477  fi
4478
4479  if test -z "$coin_opt_fflags"; then
4480    # Try if -O option works if nothing else is set
4481    FFLAGS=-O
4482    cat >conftest.$ac_ext <<_ACEOF
4483      program main
4484      integer i
4485      end
4486_ACEOF
4487rm -f conftest.$ac_objext conftest$ac_exeext
4488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4489  (eval $ac_link) 2>conftest.er1
4490  ac_status=$?
4491  grep -v '^ *+' conftest.er1 >conftest.err
4492  rm -f conftest.er1
4493  cat conftest.err >&5
4494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495  (exit $ac_status); } &&
4496         { ac_try='test -z "$ac_f77_werror_flag"
4497                         || test ! -s conftest.err'
4498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499  (eval $ac_try) 2>&5
4500  ac_status=$?
4501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502  (exit $ac_status); }; } &&
4503         { ac_try='test -s conftest$ac_exeext'
4504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505  (eval $ac_try) 2>&5
4506  ac_status=$?
4507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508  (exit $ac_status); }; }; then
4509  coin_opt_fflags="-O"
4510else
4511  echo "$as_me: failed program was:" >&5
4512sed 's/^/| /' conftest.$ac_ext >&5
4513
4514fi
4515rm -f conftest.err conftest.$ac_objext \
4516      conftest$ac_exeext conftest.$ac_ext
4517  fi
4518
4519  # if PM doesn't want the warning messages, take them out
4520  if test x"$coin_skip_warn_fflags" = xyes; then
4521    coin_warn_fflags=
4522  fi
4523
4524  if test x${DBG_FFLAGS+set} != xset; then
4525    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4526  fi
4527  if test x${OPT_FFLAGS+set} != xset; then
4528    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4529  fi
4530
4531  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4532  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4533
4534  if test "$coin_debug_compile" = "true"; then
4535    FFLAGS="$DBG_FFLAGS"
4536  else
4537    FFLAGS="$OPT_FFLAGS"
4538  fi
4539else
4540  FFLAGS="$FFLAGS $ADD_FFLAGS"
4541  if test x${DBG_FFLAGS+set} != xset; then
4542    DBG_FFLAGS="$FFLAGS"
4543  fi
4544  if test x${OPT_FFLAGS+set} != xset; then
4545    OPT_FFLAGS="$FFLAGS"
4546  fi
4547fi
4548
4549# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4550case "$FFLAGS" in
4551  *-mno-cygwin*)
4552    if test x${CPPFLAGS+set} != xset ; then
4553      CPPFLAGS="-mno-cygwin"
4554    else
4555      case "$CPPFLAGS" in
4556        *-mno-cygwin*)
4557          ;;
4558        *)
4559          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4560          ;;
4561      esac
4562    fi ;;
4563esac
4564
4565# Try if FFLAGS works
4566if test "$F77" != "unavailable" ; then
4567  cat >conftest.$ac_ext <<_ACEOF
4568      program main
4569      integer i
4570      end
4571_ACEOF
4572rm -f conftest.$ac_objext conftest$ac_exeext
4573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4574  (eval $ac_link) 2>conftest.er1
4575  ac_status=$?
4576  grep -v '^ *+' conftest.er1 >conftest.err
4577  rm -f conftest.er1
4578  cat conftest.err >&5
4579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580  (exit $ac_status); } &&
4581         { ac_try='test -z "$ac_f77_werror_flag"
4582                         || test ! -s conftest.err'
4583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4584  (eval $ac_try) 2>&5
4585  ac_status=$?
4586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587  (exit $ac_status); }; } &&
4588         { ac_try='test -s conftest$ac_exeext'
4589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590  (eval $ac_try) 2>&5
4591  ac_status=$?
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); }; }; then
4594  :
4595else
4596  echo "$as_me: failed program was:" >&5
4597sed 's/^/| /' conftest.$ac_ext >&5
4598
4599FFLAGS=
4600fi
4601rm -f conftest.err conftest.$ac_objext \
4602      conftest$ac_exeext conftest.$ac_ext
4603  if test -z "$FFLAGS"; then
4604    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4605echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4606    FFLAGS='-O'
4607    cat >conftest.$ac_ext <<_ACEOF
4608      program main
4609      integer i
4610      end
4611_ACEOF
4612rm -f conftest.$ac_objext conftest$ac_exeext
4613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4614  (eval $ac_link) 2>conftest.er1
4615  ac_status=$?
4616  grep -v '^ *+' conftest.er1 >conftest.err
4617  rm -f conftest.er1
4618  cat conftest.err >&5
4619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620  (exit $ac_status); } &&
4621         { ac_try='test -z "$ac_f77_werror_flag"
4622                         || test ! -s conftest.err'
4623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4624  (eval $ac_try) 2>&5
4625  ac_status=$?
4626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627  (exit $ac_status); }; } &&
4628         { ac_try='test -s conftest$ac_exeext'
4629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4630  (eval $ac_try) 2>&5
4631  ac_status=$?
4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); }; }; then
4634  :
4635else
4636  echo "$as_me: failed program was:" >&5
4637sed 's/^/| /' conftest.$ac_ext >&5
4638
4639FFLAGS=
4640fi
4641rm -f conftest.err conftest.$ac_objext \
4642      conftest$ac_exeext conftest.$ac_ext
4643    if test -z "$FFLAGS"; then
4644      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4645echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4646    fi
4647  fi
4648fi
4649
4650{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4651echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4652
4653
4654if test x"$MPIF77" = x; then :; else
4655  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4656echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4657  F77="$MPIF77"
4658fi
4659
4660case "$F77" in
4661  ifort* | */ifort* | IFORT* | */IFORT*)
4662    case $build in
4663  *-mingw*)
4664    if test "${LD+set}" = set; then :; else
4665      LD=link
4666    fi
4667    ;;
4668 esac
4669 case $enable_doscompile in
4670   msvc)
4671     if test "x${LD+set}" = xset; then :; else
4672       LD=link
4673     fi
4674     ;;
4675 esac
4676
4677    ;;
4678esac
4679
4680ac_ext=c
4681ac_cpp='$CPP $CPPFLAGS'
4682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4684ac_compiler_gnu=$ac_cv_c_compiler_gnu
4685
4686
4687
4688# Initialize automake and libtool
4689# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4690{
4691
4692
4693
4694# START
4695
4696# Test if force_shared has been set
4697if test "x" = xforce_shared; then
4698  if test x$enable_shared = xno; then
4699    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4700echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4701   { (exit 1); exit 1; }; }
4702  fi
4703  enable_shared=yes;
4704else
4705  # On Cygwin and AIX, building DLLs doesn't work
4706  case $build in
4707    *-cygwin*)
4708      coin_disable_shared=yes
4709      platform=Cygwin
4710    ;;
4711    *-aix*)
4712      coin_disable_shared=yes
4713      platform=AIX
4714    ;;
4715    *-mingw*)
4716      coin_disable_shared=yes
4717      platform="Msys"
4718#      case "$CXX" in
4719#        cl*)
4720#          coin_disable_shared=yes
4721#          platform="Msys with cl"
4722#      ;;
4723#      esac
4724    ;;
4725  esac
4726fi
4727if test x"$coin_disable_shared" = xyes; then
4728  if test x"$enable_shared" = xyes; then
4729    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4730echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4731  fi
4732  enable_shared=no
4733fi
4734# By default, we only want the shared objects to be compiled
4735# Check whether --enable-static or --disable-static was given.
4736if test "${enable_static+set}" = set; then
4737  enableval="$enable_static"
4738  p=${PACKAGE-default}
4739    case $enableval in
4740    yes) enable_static=yes ;;
4741    no) enable_static=no ;;
4742    *)
4743     enable_static=no
4744      # Look at the argument we got.  We use all the common list separators.
4745      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4746      for pkg in $enableval; do
4747        IFS="$lt_save_ifs"
4748        if test "X$pkg" = "X$p"; then
4749          enable_static=yes
4750        fi
4751      done
4752      IFS="$lt_save_ifs"
4753      ;;
4754    esac
4755else
4756  enable_static=no
4757fi;
4758
4759
4760
4761
4762# Initialize automake
4763echo "$as_me:$LINENO: checking for egrep" >&5
4764echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4765if test "${ac_cv_prog_egrep+set}" = set; then
4766  echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4769    then ac_cv_prog_egrep='grep -E'
4770    else ac_cv_prog_egrep='egrep'
4771    fi
4772fi
4773echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4774echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4775 EGREP=$ac_cv_prog_egrep
4776
4777
4778am__api_version="1.9"
4779# Find a good install program.  We prefer a C program (faster),
4780# so one script is as good as another.  But avoid the broken or
4781# incompatible versions:
4782# SysV /etc/install, /usr/sbin/install
4783# SunOS /usr/etc/install
4784# IRIX /sbin/install
4785# AIX /bin/install
4786# AmigaOS /C/install, which installs bootblocks on floppy discs
4787# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4788# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4789# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4790# OS/2's system install, which has a completely different semantic
4791# ./install, which can be erroneously created by make from ./install.sh.
4792echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4793echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4794if test -z "$INSTALL"; then
4795if test "${ac_cv_path_install+set}" = set; then
4796  echo $ECHO_N "(cached) $ECHO_C" >&6
4797else
4798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801  IFS=$as_save_IFS
4802  test -z "$as_dir" && as_dir=.
4803  # Account for people who put trailing slashes in PATH elements.
4804case $as_dir/ in
4805  ./ | .// | /cC/* | \
4806  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4807  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4808  /usr/ucb/* ) ;;
4809  *)
4810    # OSF1 and SCO ODT 3.0 have their own names for install.
4811    # Don't use installbsd from OSF since it installs stuff as root
4812    # by default.
4813    for ac_prog in ginstall scoinst install; do
4814      for ac_exec_ext in '' $ac_executable_extensions; do
4815        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4816          if test $ac_prog = install &&
4817            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4818            # AIX install.  It has an incompatible calling convention.
4819            :
4820          elif test $ac_prog = install &&
4821            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4822            # program-specific install script used by HP pwplus--don't use.
4823            :
4824          else
4825            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4826            break 3
4827          fi
4828        fi
4829      done
4830    done
4831    ;;
4832esac
4833done
4834
4835
4836fi
4837  if test "${ac_cv_path_install+set}" = set; then
4838    INSTALL=$ac_cv_path_install
4839  else
4840    # As a last resort, use the slow shell script.  We don't cache a
4841    # path for INSTALL within a source directory, because that will
4842    # break other packages using the cache if that directory is
4843    # removed, or if the path is relative.
4844    INSTALL=$ac_install_sh
4845  fi
4846fi
4847echo "$as_me:$LINENO: result: $INSTALL" >&5
4848echo "${ECHO_T}$INSTALL" >&6
4849
4850# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4851# It thinks the first close brace ends the variable substitution.
4852test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4853
4854test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4855
4856test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4857
4858echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4859echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4860# Just in case
4861sleep 1
4862echo timestamp > conftest.file
4863# Do `set' in a subshell so we don't clobber the current shell's
4864# arguments.  Must try -L first in case configure is actually a
4865# symlink; some systems play weird games with the mod time of symlinks
4866# (eg FreeBSD returns the mod time of the symlink's containing
4867# directory).
4868if (
4869   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4870   if test "$*" = "X"; then
4871      # -L didn't work.
4872      set X `ls -t $srcdir/configure conftest.file`
4873   fi
4874   rm -f conftest.file
4875   if test "$*" != "X $srcdir/configure conftest.file" \
4876      && test "$*" != "X conftest.file $srcdir/configure"; then
4877
4878      # If neither matched, then we have a broken ls.  This can happen
4879      # if, for instance, CONFIG_SHELL is bash and it inherits a
4880      # broken ls alias from the environment.  This has actually
4881      # happened.  Such a system could not be considered "sane".
4882      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4883alias in your environment" >&5
4884echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4885alias in your environment" >&2;}
4886   { (exit 1); exit 1; }; }
4887   fi
4888
4889   test "$2" = conftest.file
4890   )
4891then
4892   # Ok.
4893   :
4894else
4895   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4896Check your system clock" >&5
4897echo "$as_me: error: newly created file is older than distributed files!
4898Check your system clock" >&2;}
4899   { (exit 1); exit 1; }; }
4900fi
4901echo "$as_me:$LINENO: result: yes" >&5
4902echo "${ECHO_T}yes" >&6
4903test "$program_prefix" != NONE &&
4904  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4905# Use a double $ so make ignores it.
4906test "$program_suffix" != NONE &&
4907  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4908# Double any \ or $.  echo might interpret backslashes.
4909# By default was `s,x,x', remove it if useless.
4910cat <<\_ACEOF >conftest.sed
4911s/[\\$]/&&/g;s/;s,x,x,$//
4912_ACEOF
4913program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4914rm conftest.sed
4915
4916# expand $ac_aux_dir to an absolute path
4917am_aux_dir=`cd $ac_aux_dir && pwd`
4918
4919test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4920# Use eval to expand $SHELL
4921if eval "$MISSING --run true"; then
4922  am_missing_run="$MISSING --run "
4923else
4924  am_missing_run=
4925  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4926echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4927fi
4928
4929if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4930  # We used to keeping the `.' as first argument, in order to
4931  # allow $(mkdir_p) to be used without argument.  As in
4932  #   $(mkdir_p) $(somedir)
4933  # where $(somedir) is conditionally defined.  However this is wrong
4934  # for two reasons:
4935  #  1. if the package is installed by a user who cannot write `.'
4936  #     make install will fail,
4937  #  2. the above comment should most certainly read
4938  #     $(mkdir_p) $(DESTDIR)$(somedir)
4939  #     so it does not work when $(somedir) is undefined and
4940  #     $(DESTDIR) is not.
4941  #  To support the latter case, we have to write
4942  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4943  #  so the `.' trick is pointless.
4944  mkdir_p='mkdir -p --'
4945else
4946  # On NextStep and OpenStep, the `mkdir' command does not
4947  # recognize any option.  It will interpret all options as
4948  # directories to create, and then abort because `.' already
4949  # exists.
4950  for d in ./-p ./--version;
4951  do
4952    test -d $d && rmdir $d
4953  done
4954  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4955  if test -f "$ac_aux_dir/mkinstalldirs"; then
4956    mkdir_p='$(mkinstalldirs)'
4957  else
4958    mkdir_p='$(install_sh) -d'
4959  fi
4960fi
4961
4962for ac_prog in gawk mawk nawk awk
4963do
4964  # Extract the first word of "$ac_prog", so it can be a program name with args.
4965set dummy $ac_prog; ac_word=$2
4966echo "$as_me:$LINENO: checking for $ac_word" >&5
4967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4968if test "${ac_cv_prog_AWK+set}" = set; then
4969  echo $ECHO_N "(cached) $ECHO_C" >&6
4970else
4971  if test -n "$AWK"; then
4972  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4973else
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977  IFS=$as_save_IFS
4978  test -z "$as_dir" && as_dir=.
4979  for ac_exec_ext in '' $ac_executable_extensions; do
4980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981    ac_cv_prog_AWK="$ac_prog"
4982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983    break 2
4984  fi
4985done
4986done
4987
4988fi
4989fi
4990AWK=$ac_cv_prog_AWK
4991if test -n "$AWK"; then
4992  echo "$as_me:$LINENO: result: $AWK" >&5
4993echo "${ECHO_T}$AWK" >&6
4994else
4995  echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6
4997fi
4998
4999  test -n "$AWK" && break
5000done
5001
5002echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5003echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5004set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5005if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5006  echo $ECHO_N "(cached) $ECHO_C" >&6
5007else
5008  cat >conftest.make <<\_ACEOF
5009all:
5010        @echo 'ac_maketemp="$(MAKE)"'
5011_ACEOF
5012# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5013eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5014if test -n "$ac_maketemp"; then
5015  eval ac_cv_prog_make_${ac_make}_set=yes
5016else
5017  eval ac_cv_prog_make_${ac_make}_set=no
5018fi
5019rm -f conftest.make
5020fi
5021if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5022  echo "$as_me:$LINENO: result: yes" >&5
5023echo "${ECHO_T}yes" >&6
5024  SET_MAKE=
5025else
5026  echo "$as_me:$LINENO: result: no" >&5
5027echo "${ECHO_T}no" >&6
5028  SET_MAKE="MAKE=${MAKE-make}"
5029fi
5030
5031rm -rf .tst 2>/dev/null
5032mkdir .tst 2>/dev/null
5033if test -d .tst; then
5034  am__leading_dot=.
5035else
5036  am__leading_dot=_
5037fi
5038rmdir .tst 2>/dev/null
5039
5040DEPDIR="${am__leading_dot}deps"
5041
5042          ac_config_commands="$ac_config_commands depfiles"
5043
5044
5045am_make=${MAKE-make}
5046cat > confinc << 'END'
5047am__doit:
5048        @echo done
5049.PHONY: am__doit
5050END
5051# If we don't find an include directive, just comment out the code.
5052echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5053echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5054am__include="#"
5055am__quote=
5056_am_result=none
5057# First try GNU make style include.
5058echo "include confinc" > confmf
5059# We grep out `Entering directory' and `Leaving directory'
5060# messages which can occur if `w' ends up in MAKEFLAGS.
5061# In particular we don't look at `^make:' because GNU make might
5062# be invoked under some other name (usually "gmake"), in which
5063# case it prints its new name instead of `make'.
5064if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5065   am__include=include
5066   am__quote=
5067   _am_result=GNU
5068fi
5069# Now try BSD make style include.
5070if test "$am__include" = "#"; then
5071   echo '.include "confinc"' > confmf
5072   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5073      am__include=.include
5074      am__quote="\""
5075      _am_result=BSD
5076   fi
5077fi
5078
5079
5080echo "$as_me:$LINENO: result: $_am_result" >&5
5081echo "${ECHO_T}$_am_result" >&6
5082rm -f confinc confmf
5083
5084# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5085if test "${enable_dependency_tracking+set}" = set; then
5086  enableval="$enable_dependency_tracking"
5087
5088fi;
5089if test "x$enable_dependency_tracking" != xno; then
5090  am_depcomp="$ac_aux_dir/depcomp"
5091  AMDEPBACKSLASH='\'
5092fi
5093
5094
5095if test "x$enable_dependency_tracking" != xno; then
5096  AMDEP_TRUE=
5097  AMDEP_FALSE='#'
5098else
5099  AMDEP_TRUE='#'
5100  AMDEP_FALSE=
5101fi
5102
5103
5104
5105
5106
5107# AC_MSG_NOTICE([Beginning automake initialisation.])
5108# Stuff for automake
5109# test to see if srcdir already configured
5110if test "`cd $srcdir && pwd`" != "`pwd`" &&
5111   test -f $srcdir/config.status; then
5112  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5113echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5114   { (exit 1); exit 1; }; }
5115fi
5116
5117# test whether we have cygpath
5118if test -z "$CYGPATH_W"; then
5119  if (cygpath --version) >/dev/null 2>/dev/null; then
5120    CYGPATH_W='cygpath -w'
5121  else
5122    CYGPATH_W=echo
5123  fi
5124fi
5125
5126
5127# Define the identity of the package.
5128 PACKAGE='cbc'
5129 VERSION='0.1'
5130
5131
5132cat >>confdefs.h <<_ACEOF
5133#define PACKAGE "$PACKAGE"
5134_ACEOF
5135
5136
5137cat >>confdefs.h <<_ACEOF
5138#define VERSION "$VERSION"
5139_ACEOF
5140
5141# Some tools Automake needs.
5142
5143ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5144
5145
5146AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5147
5148
5149AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5150
5151
5152AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5153
5154
5155MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5156
5157install_sh=${install_sh-"$am_aux_dir/install-sh"}
5158
5159# Installed binaries are usually stripped using `strip' when the user
5160# run `make install-strip'.  However `strip' might not be the right
5161# tool to use in cross-compilation environments, therefore Automake
5162# will honor the `STRIP' environment variable to overrule this program.
5163if test "$cross_compiling" != no; then
5164  if test -n "$ac_tool_prefix"; then
5165  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5166set dummy ${ac_tool_prefix}strip; ac_word=$2
5167echo "$as_me:$LINENO: checking for $ac_word" >&5
5168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5169if test "${ac_cv_prog_STRIP+set}" = set; then
5170  echo $ECHO_N "(cached) $ECHO_C" >&6
5171else
5172  if test -n "$STRIP"; then
5173  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5174else
5175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176for as_dir in $PATH
5177do
5178  IFS=$as_save_IFS
5179  test -z "$as_dir" && as_dir=.
5180  for ac_exec_ext in '' $ac_executable_extensions; do
5181  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5182    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184    break 2
5185  fi
5186done
5187done
5188
5189fi
5190fi
5191STRIP=$ac_cv_prog_STRIP
5192if test -n "$STRIP"; then
5193  echo "$as_me:$LINENO: result: $STRIP" >&5
5194echo "${ECHO_T}$STRIP" >&6
5195else
5196  echo "$as_me:$LINENO: result: no" >&5
5197echo "${ECHO_T}no" >&6
5198fi
5199
5200fi
5201if test -z "$ac_cv_prog_STRIP"; then
5202  ac_ct_STRIP=$STRIP
5203  # Extract the first word of "strip", so it can be a program name with args.
5204set dummy strip; ac_word=$2
5205echo "$as_me:$LINENO: checking for $ac_word" >&5
5206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5208  echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
5210  if test -n "$ac_ct_STRIP"; then
5211  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5212else
5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH
5215do
5216  IFS=$as_save_IFS
5217  test -z "$as_dir" && as_dir=.
5218  for ac_exec_ext in '' $ac_executable_extensions; do
5219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220    ac_cv_prog_ac_ct_STRIP="strip"
5221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222    break 2
5223  fi
5224done
5225done
5226
5227  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5228fi
5229fi
5230ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5231if test -n "$ac_ct_STRIP"; then
5232  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5233echo "${ECHO_T}$ac_ct_STRIP" >&6
5234else
5235  echo "$as_me:$LINENO: result: no" >&5
5236echo "${ECHO_T}no" >&6
5237fi
5238
5239  STRIP=$ac_ct_STRIP
5240else
5241  STRIP="$ac_cv_prog_STRIP"
5242fi
5243
5244fi
5245INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5246
5247# We need awk for the "check" target.  The system "awk" is bad on
5248# some platforms.
5249# Always define AMTAR for backward compatibility.
5250
5251AMTAR=${AMTAR-"${am_missing_run}tar"}
5252
5253am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5254
5255
5256
5257
5258depcc="$CC"   am_compiler_list=
5259
5260echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5261echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5262if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5263  echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5266  # We make a subdir and do the tests there.  Otherwise we can end up
5267  # making bogus files that we don't know about and never remove.  For
5268  # instance it was reported that on HP-UX the gcc test will end up
5269  # making a dummy file named `D' -- because `-MD' means `put the output
5270  # in D'.
5271  mkdir conftest.dir
5272  # Copy depcomp to subdir because otherwise we won't find it if we're
5273  # using a relative directory.
5274  cp "$am_depcomp" conftest.dir
5275  cd conftest.dir
5276  # We will build objects and dependencies in a subdirectory because
5277  # it helps to detect inapplicable dependency modes.  For instance
5278  # both Tru64's cc and ICC support -MD to output dependencies as a
5279  # side effect of compilation, but ICC will put the dependencies in
5280  # the current directory while Tru64 will put them in the object
5281  # directory.
5282  mkdir sub
5283
5284  am_cv_CC_dependencies_compiler_type=none
5285  if test "$am_compiler_list" = ""; then
5286     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5287  fi
5288  for depmode in $am_compiler_list; do
5289    # Setup a source with many dependencies, because some compilers
5290    # like to wrap large dependency lists on column 80 (with \), and
5291    # we should not choose a depcomp mode which is confused by this.
5292    #
5293    # We need to recreate these files for each test, as the compiler may
5294    # overwrite some of them when testing with obscure command lines.
5295    # This happens at least with the AIX C compiler.
5296    : > sub/conftest.c
5297    for i in 1 2 3 4 5 6; do
5298      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5299      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5300      # Solaris 8's {/usr,}/bin/sh.
5301      touch sub/conftst$i.h
5302    done
5303    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5304
5305    case $depmode in
5306    nosideeffect)
5307      # after this tag, mechanisms are not by side-effect, so they'll
5308      # only be used when explicitly requested
5309      if test "x$enable_dependency_tracking" = xyes; then
5310        continue
5311      else
5312        break
5313      fi
5314      ;;
5315    none) break ;;
5316    esac
5317    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5318    # mode.  It turns out that the SunPro C++ compiler does not properly
5319    # handle `-M -o', and we need to detect this.
5320    if depmode=$depmode \
5321       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5322       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5323       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5324         >/dev/null 2>conftest.err &&
5325       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5326       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5327       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5328      # icc doesn't choke on unknown options, it will just issue warnings
5329      # or remarks (even with -Werror).  So we grep stderr for any message
5330      # that says an option was ignored or not supported.
5331      # When given -MP, icc 7.0 and 7.1 complain thusly:
5332      #   icc: Command line warning: ignoring option '-M'; no argument required
5333      # The diagnosis changed in icc 8.0:
5334      #   icc: Command line remark: option '-MP' not supported
5335      if (grep 'ignoring option' conftest.err ||
5336          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5337        am_cv_CC_dependencies_compiler_type=$depmode
5338        break
5339      fi
5340    fi
5341  done
5342
5343  cd ..
5344  rm -rf conftest.dir
5345else
5346  am_cv_CC_dependencies_compiler_type=none
5347fi
5348
5349fi
5350echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5351echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5352CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5353
5354
5355
5356if
5357  test "x$enable_dependency_tracking" != xno \
5358  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5359  am__fastdepCC_TRUE=
5360  am__fastdepCC_FALSE='#'
5361else
5362  am__fastdepCC_TRUE='#'
5363  am__fastdepCC_FALSE=
5364fi
5365
5366
5367depcc="$CXX"  am_compiler_list=
5368
5369echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5370echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5371if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5372  echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5375  # We make a subdir and do the tests there.  Otherwise we can end up
5376  # making bogus files that we don't know about and never remove.  For
5377  # instance it was reported that on HP-UX the gcc test will end up
5378  # making a dummy file named `D' -- because `-MD' means `put the output
5379  # in D'.
5380  mkdir conftest.dir
5381  # Copy depcomp to subdir because otherwise we won't find it if we're
5382  # using a relative directory.
5383  cp "$am_depcomp" conftest.dir
5384  cd conftest.dir
5385  # We will build objects and dependencies in a subdirectory because
5386  # it helps to detect inapplicable dependency modes.  For instance
5387  # both Tru64's cc and ICC support -MD to output dependencies as a
5388  # side effect of compilation, but ICC will put the dependencies in
5389  # the current directory while Tru64 will put them in the object
5390  # directory.
5391  mkdir sub
5392
5393  am_cv_CXX_dependencies_compiler_type=none
5394  if test "$am_compiler_list" = ""; then
5395     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5396  fi
5397  for depmode in $am_compiler_list; do
5398    # Setup a source with many dependencies, because some compilers
5399    # like to wrap large dependency lists on column 80 (with \), and
5400    # we should not choose a depcomp mode which is confused by this.
5401    #
5402    # We need to recreate these files for each test, as the compiler may
5403    # overwrite some of them when testing with obscure command lines.
5404    # This happens at least with the AIX C compiler.
5405    : > sub/conftest.c
5406    for i in 1 2 3 4 5 6; do
5407      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5408      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5409      # Solaris 8's {/usr,}/bin/sh.
5410      touch sub/conftst$i.h
5411    done
5412    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5413
5414    case $depmode in
5415    nosideeffect)
5416      # after this tag, mechanisms are not by side-effect, so they'll
5417      # only be used when explicitly requested
5418      if test "x$enable_dependency_tracking" = xyes; then
5419        continue
5420      else
5421        break
5422      fi
5423      ;;
5424    none) break ;;
5425    esac
5426    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5427    # mode.  It turns out that the SunPro C++ compiler does not properly
5428    # handle `-M -o', and we need to detect this.
5429    if depmode=$depmode \
5430       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5431       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5432       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5433         >/dev/null 2>conftest.err &&
5434       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5435       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5436       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5437      # icc doesn't choke on unknown options, it will just issue warnings
5438      # or remarks (even with -Werror).  So we grep stderr for any message
5439      # that says an option was ignored or not supported.
5440      # When given -MP, icc 7.0 and 7.1 complain thusly:
5441      #   icc: Command line warning: ignoring option '-M'; no argument required
5442      # The diagnosis changed in icc 8.0:
5443      #   icc: Command line remark: option '-MP' not supported
5444      if (grep 'ignoring option' conftest.err ||
5445          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5446        am_cv_CXX_dependencies_compiler_type=$depmode
5447        break
5448      fi
5449    fi
5450  done
5451
5452  cd ..
5453  rm -rf conftest.dir
5454else
5455  am_cv_CXX_dependencies_compiler_type=none
5456fi
5457
5458fi
5459echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5460echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5461CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5462
5463
5464
5465if
5466  test "x$enable_dependency_tracking" != xno \
5467  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5468  am__fastdepCXX_TRUE=
5469  am__fastdepCXX_FALSE='#'
5470else
5471  am__fastdepCXX_TRUE='#'
5472  am__fastdepCXX_FALSE=
5473fi
5474
5475
5476
5477echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5478echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5479    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5480if test "${enable_maintainer_mode+set}" = set; then
5481  enableval="$enable_maintainer_mode"
5482  USE_MAINTAINER_MODE=$enableval
5483else
5484  USE_MAINTAINER_MODE=no
5485fi;
5486  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5487echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5488
5489
5490if test $USE_MAINTAINER_MODE = yes; then
5491  MAINTAINER_MODE_TRUE=
5492  MAINTAINER_MODE_FALSE='#'
5493else
5494  MAINTAINER_MODE_TRUE='#'
5495  MAINTAINER_MODE_FALSE=
5496fi
5497
5498  MAINT=$MAINTAINER_MODE_TRUE
5499
5500
5501
5502coin_have_externals=no
5503if test "$enable_maintainer_mode" = yes; then
5504
5505  # If maintainer mode is chosen, we make sure that the correct versions
5506  # of the tools are used, and that we know where libtool.m4 is (to
5507  # recreate acinclude.m4)
5508
5509
5510  LIBTOOLM4=
5511  # Normally, $HOME
5512  AUTOTOOLS_DFLT=$HOME
5513
5514  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5515echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5516if test "${ac_cv_use_correct_autotools+set}" = set; then
5517  echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519  ac_cv_use_correct_autotools=check
5520fi
5521echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5522echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5523
5524  if test $ac_cv_use_correct_autotools = check; then
5525    ac_cv_use_correct_autotools=yes
5526    # Check if we have autoconf
5527    # Extract the first word of "autoconf", so it can be a program name with args.
5528set dummy autoconf; ac_word=$2
5529echo "$as_me:$LINENO: checking for $ac_word" >&5
5530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5531if test "${ac_cv_prog_have_autoconf+set}" = set; then
5532  echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534  if test -n "$have_autoconf"; then
5535  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5536else
5537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538for as_dir in $PATH
5539do
5540  IFS=$as_save_IFS
5541  test -z "$as_dir" && as_dir=.
5542  for ac_exec_ext in '' $ac_executable_extensions; do
5543  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544    ac_cv_prog_have_autoconf="yes"
5545    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546    break 2
5547  fi
5548done
5549done
5550
5551  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5552fi
5553fi
5554have_autoconf=$ac_cv_prog_have_autoconf
5555if test -n "$have_autoconf"; then
5556  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5557echo "${ECHO_T}$have_autoconf" >&6
5558else
5559  echo "$as_me:$LINENO: result: no" >&5
5560echo "${ECHO_T}no" >&6
5561fi
5562
5563    if test $have_autoconf = no; then
5564      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5565echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5566   { (exit 1); exit 1; }; }
5567    fi
5568
5569    # Check whether autoconf is the correct version
5570    correct_version='2.59'
5571    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5572    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5573echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5574    autoconf --version > confauto.out 2>&1
5575    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5576      echo "$as_me:$LINENO: result: yes" >&5
5577echo "${ECHO_T}yes" >&6
5578    else
5579      rm -f confauto.out
5580      echo "$as_me:$LINENO: result: no" >&5
5581echo "${ECHO_T}no" >&6
5582      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5583echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5584   { (exit 1); exit 1; }; }
5585    fi
5586    rm -f confauto.out
5587
5588    # Check if the executable autoconf is picked up from the correct location
5589    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5590echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5591    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5592    autoconf_dir=`cd $autoconf_dir; pwd`
5593    if test x$AUTOTOOLS_DIR = x; then
5594      want_dir=$AUTOTOOLS_DFLT/bin
5595    else
5596      want_dir=$AUTOTOOLS_DIR/bin
5597    fi
5598    if test $autoconf_dir = `cd $want_dir; pwd`; then
5599      echo "$as_me:$LINENO: result: yes" >&5
5600echo "${ECHO_T}yes" >&6
5601    else
5602      rm -f confauto.out
5603      echo "$as_me:$LINENO: result: no" >&5
5604echo "${ECHO_T}no" >&6
5605      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5606echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5607   { (exit 1); exit 1; }; }
5608    fi
5609
5610    # Check if we have automake
5611    # Extract the first word of "automake", so it can be a program name with args.
5612set dummy automake; ac_word=$2
5613echo "$as_me:$LINENO: checking for $ac_word" >&5
5614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5615if test "${ac_cv_prog_have_automake+set}" = set; then
5616  echo $ECHO_N "(cached) $ECHO_C" >&6
5617else
5618  if test -n "$have_automake"; then
5619  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5620else
5621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622for as_dir in $PATH
5623do
5624  IFS=$as_save_IFS
5625  test -z "$as_dir" && as_dir=.
5626  for ac_exec_ext in '' $ac_executable_extensions; do
5627  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5628    ac_cv_prog_have_automake="yes"
5629    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5630    break 2
5631  fi
5632done
5633done
5634
5635  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5636fi
5637fi
5638have_automake=$ac_cv_prog_have_automake
5639if test -n "$have_automake"; then
5640  echo "$as_me:$LINENO: result: $have_automake" >&5
5641echo "${ECHO_T}$have_automake" >&6
5642else
5643  echo "$as_me:$LINENO: result: no" >&5
5644echo "${ECHO_T}no" >&6
5645fi
5646
5647    if test $have_automake = no; then
5648      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5649echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5650   { (exit 1); exit 1; }; }
5651    fi
5652
5653    # Check whether automake is the correct version
5654    correct_version='1.9.6'
5655    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5656    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5657echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5658    automake --version > confauto.out 2>&1
5659    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5660      echo "$as_me:$LINENO: result: yes" >&5
5661echo "${ECHO_T}yes" >&6
5662    else
5663      rm -f confauto.out
5664      echo "$as_me:$LINENO: result: no" >&5
5665echo "${ECHO_T}no" >&6
5666      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5667echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5668   { (exit 1); exit 1; }; }
5669    fi
5670    rm -f confauto.out
5671
5672    # Check if the executable automake is picked up from the correct location
5673    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5674echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5675    automake_dir=`which automake | sed -e 's=/automake=='`
5676    automake_dir=`cd $automake_dir; pwd`
5677    if test x$AUTOTOOLS_DIR = x; then
5678      want_dir=$AUTOTOOLS_DFLT/bin
5679    else
5680      want_dir=$AUTOTOOLS_DIR/bin
5681    fi
5682    if test $automake_dir = `cd $want_dir; pwd`; then
5683      echo "$as_me:$LINENO: result: yes" >&5
5684echo "${ECHO_T}yes" >&6
5685    else
5686      rm -f confauto.out
5687      echo "$as_me:$LINENO: result: no" >&5
5688echo "${ECHO_T}no" >&6
5689      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5690echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5691   { (exit 1); exit 1; }; }
5692    fi
5693
5694    # Check if this is the correct version of libtool (with escaped dots)
5695    if test x$AUTOTOOLS_DIR = x; then
5696      want_dir=$AUTOTOOLS_DFLT/share
5697    else
5698      want_dir=$AUTOTOOLS_DIR/share
5699    fi
5700    correct_version='1.5.22'
5701    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5702    if test -r $want_dir/libtool/ltmain.sh; then
5703  have_ltmain=yes
5704  :
5705else
5706  have_ltmain=no
5707  :
5708fi
5709
5710    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5711echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5712    if test $have_ltmain = yes; then
5713    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5714        echo "$as_me:$LINENO: result: yes" >&5
5715echo "${ECHO_T}yes" >&6
5716      else
5717        echo "$as_me:$LINENO: result: no" >&5
5718echo "${ECHO_T}no" >&6
5719        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5720echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5721   { (exit 1); exit 1; }; }
5722      fi
5723    else
5724      echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6
5726      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5727echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5728   { (exit 1); exit 1; }; }
5729    fi
5730  fi
5731
5732  # Check if we can find the libtool file
5733  if test x$AUTOTOOLS_DIR = x; then
5734    want_dir=$AUTOTOOLS_DFLT/share
5735  else
5736    want_dir=$AUTOTOOLS_DIR/share
5737  fi
5738  if test -r $want_dir/aclocal/libtool.m4; then
5739  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5740  :
5741else
5742  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5743echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5744   { (exit 1); exit 1; }; }
5745  :
5746fi
5747
5748
5749  # Check if we have an Externals file
5750  if test -r $srcdir/Externals; then
5751    coin_have_externals=yes
5752  fi
5753  # Check if subversion is installed and understands https
5754  # Extract the first word of "svn", so it can be a program name with args.
5755set dummy svn; ac_word=$2
5756echo "$as_me:$LINENO: checking for $ac_word" >&5
5757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758if test "${ac_cv_prog_have_svn+set}" = set; then
5759  echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761  if test -n "$have_svn"; then
5762  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5763else
5764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765for as_dir in $PATH
5766do
5767  IFS=$as_save_IFS
5768  test -z "$as_dir" && as_dir=.
5769  for ac_exec_ext in '' $ac_executable_extensions; do
5770  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771    ac_cv_prog_have_svn="yes"
5772    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5773    break 2
5774  fi
5775done
5776done
5777
5778  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5779fi
5780fi
5781have_svn=$ac_cv_prog_have_svn
5782if test -n "$have_svn"; then
5783  echo "$as_me:$LINENO: result: $have_svn" >&5
5784echo "${ECHO_T}$have_svn" >&6
5785else
5786  echo "$as_me:$LINENO: result: no" >&5
5787echo "${ECHO_T}no" >&6
5788fi
5789
5790  if test x$have_svn = xyes; then
5791    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5792echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5793if test "${ac_cv_svn_understands_https+set}" = set; then
5794  echo $ECHO_N "(cached) $ECHO_C" >&6
5795else
5796  svn --version > confauto.out 2>&1
5797                    if $EGREP https confauto.out >/dev/null 2>&1; then
5798                      ac_cv_svn_understands_https=yes
5799                    else
5800                      ac_cv_svn_understands_https=no
5801                      have_svn=no
5802                      ac_cv_prog_have_svn=no
5803                    fi
5804                    rm -f confauto.out
5805fi
5806echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5807echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5808  fi
5809
5810  # Find the location of the BuildTools directory
5811  BUILDTOOLSDIR=
5812  if test -r $srcdir/BuildTools/coin.m4; then
5813    BUILDTOOLSDIR=$srcdir/BuildTools
5814  else
5815    if test -r $srcdir/../BuildTools/coin.m4; then
5816      BUILDTOOLSDIR=$srcdir/../BuildTools
5817    else
5818      if test -r $srcdir/../../BuildTools/coin.m4; then
5819        BUILDTOOLSDIR=$srcdir/../../BuildTools
5820      else
5821        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5822echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5823   { (exit 1); exit 1; }; }
5824      fi
5825    fi
5826  fi
5827
5828
5829  # The following variable is set to the name of the directory where
5830  # the autotool scripts are located
5831
5832  AUX_DIR=$ac_aux_dir
5833fi
5834
5835# helpful variable for the base directory of this package
5836abs_source_dir=`cd $srcdir; pwd`
5837
5838
5839# Stuff for example Makefiles
5840if test x$prefix = xNONE; then
5841  full_prefix=$ac_default_prefix
5842else
5843  full_prefix=$prefix
5844fi
5845full_prefix=`cd $full_prefix ; pwd`
5846
5847abs_lib_dir=$full_prefix/lib
5848
5849abs_include_dir=$full_prefix/include
5850
5851abs_bin_dir=$full_prefix/bin
5852
5853
5854
5855if test $coin_have_externals = yes && test x$have_svn = xyes; then
5856  HAVE_EXTERNALS_TRUE=
5857  HAVE_EXTERNALS_FALSE='#'
5858else
5859  HAVE_EXTERNALS_TRUE='#'
5860  HAVE_EXTERNALS_FALSE=
5861fi
5862
5863
5864# AC_MSG_NOTICE([End automake initialisation.])
5865
5866
5867
5868LIBTOOL=
5869if test -r ../libtool; then
5870  coin_config_dir=..
5871  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5872fi
5873if test "x$LIBTOOL" = x; then
5874  if test -r ../../libtool; then
5875    coin_config_dir=../..
5876    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5877  fi
5878fi
5879
5880if test "x$LIBTOOL" = x; then
5881# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5882  # Stuff for libtool
5883  # Check whether --enable-shared or --disable-shared was given.
5884if test "${enable_shared+set}" = set; then
5885  enableval="$enable_shared"
5886  p=${PACKAGE-default}
5887    case $enableval in
5888    yes) enable_shared=yes ;;
5889    no) enable_shared=no ;;
5890    *)
5891      enable_shared=no
5892      # Look at the argument we got.  We use all the common list separators.
5893      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5894      for pkg in $enableval; do
5895        IFS="$lt_save_ifs"
5896        if test "X$pkg" = "X$p"; then
5897          enable_shared=yes
5898        fi
5899      done
5900      IFS="$lt_save_ifs"
5901      ;;
5902    esac
5903else
5904  enable_shared=yes
5905fi;
5906
5907# Check whether --enable-fast-install or --disable-fast-install was given.
5908if test "${enable_fast_install+set}" = set; then
5909  enableval="$enable_fast_install"
5910  p=${PACKAGE-default}
5911    case $enableval in
5912    yes) enable_fast_install=yes ;;
5913    no) enable_fast_install=no ;;
5914    *)
5915      enable_fast_install=no
5916      # Look at the argument we got.  We use all the common list separators.
5917      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5918      for pkg in $enableval; do
5919        IFS="$lt_save_ifs"
5920        if test "X$pkg" = "X$p"; then
5921          enable_fast_install=yes
5922        fi
5923      done
5924      IFS="$lt_save_ifs"
5925      ;;
5926    esac
5927else
5928  enable_fast_install=yes
5929fi;
5930
5931echo "$as_me:$LINENO: checking host system type" >&5
5932echo $ECHO_N "checking host system type... $ECHO_C" >&6
5933if test "${ac_cv_host+set}" = set; then
5934  echo $ECHO_N "(cached) $ECHO_C" >&6
5935else
5936  ac_cv_host_alias=$host_alias
5937test -z "$ac_cv_host_alias" &&
5938  ac_cv_host_alias=$ac_cv_build_alias
5939ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5940  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5941echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5942   { (exit 1); exit 1; }; }
5943
5944fi
5945echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5946echo "${ECHO_T}$ac_cv_host" >&6
5947host=$ac_cv_host
5948host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5949host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5950host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5951
5952
5953echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5954echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5955if test "${lt_cv_path_SED+set}" = set; then
5956  echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958  # Loop through the user's path and test for sed and gsed.
5959# Then use that list of sed's as ones to test for truncation.
5960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961for as_dir in $PATH
5962do
5963  IFS=$as_save_IFS
5964  test -z "$as_dir" && as_dir=.
5965  for lt_ac_prog in sed gsed; do
5966    for ac_exec_ext in '' $ac_executable_extensions; do
5967      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5968        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5969      fi
5970    done
5971  done
5972done
5973lt_ac_max=0
5974lt_ac_count=0
5975# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5976# along with /bin/sed that truncates output.
5977for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5978  test ! -f $lt_ac_sed && continue
5979  cat /dev/null > conftest.in
5980  lt_ac_count=0
5981  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5982  # Check for GNU sed and select it if it is found.
5983  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5984    lt_cv_path_SED=$lt_ac_sed
5985    break
5986  fi
5987  while true; do
5988    cat conftest.in conftest.in >conftest.tmp
5989    mv conftest.tmp conftest.in
5990    cp conftest.in conftest.nl
5991    echo >>conftest.nl
5992    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5993    cmp -s conftest.out conftest.nl || break
5994    # 10000 chars as input seems more than enough
5995    test $lt_ac_count -gt 10 && break
5996    lt_ac_count=`expr $lt_ac_count + 1`
5997    if test $lt_ac_count -gt $lt_ac_max; then
5998      lt_ac_max=$lt_ac_count
5999      lt_cv_path_SED=$lt_ac_sed
6000    fi
6001  done
6002done
6003
6004fi
6005
6006SED=$lt_cv_path_SED
6007echo "$as_me:$LINENO: result: $SED" >&5
6008echo "${ECHO_T}$SED" >&6
6009
6010
6011# Check whether --with-gnu-ld or --without-gnu-ld was given.
6012if test "${with_gnu_ld+set}" = set; then
6013  withval="$with_gnu_ld"
6014  test "$withval" = no || with_gnu_ld=yes
6015else
6016  with_gnu_ld=no
6017fi;
6018ac_prog=ld
6019if test "$GCC" = yes; then
6020  # Check if gcc -print-prog-name=ld gives a path.
6021  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6022echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6023  case $host in
6024  *-*-mingw*)
6025    # gcc leaves a trailing carriage return which upsets mingw
6026    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6027  *)
6028    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6029  esac
6030  case $ac_prog in
6031    # Accept absolute paths.
6032    [\\/]* | ?:[\\/]*)
6033      re_direlt='/[^/][^/]*/\.\./'
6034      # Canonicalize the pathname of ld
6035      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6036      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6037        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6038      done
6039      test -z "$LD" && LD="$ac_prog"
6040      ;;
6041  "")
6042    # If it fails, then pretend we aren't using GCC.
6043    ac_prog=ld
6044    ;;
6045  *)
6046    # If it is relative, then search for the first ld in PATH.
6047    with_gnu_ld=unknown
6048    ;;
6049  esac
6050elif test "$with_gnu_ld" = yes; then
6051  echo "$as_me:$LINENO: checking for GNU ld" >&5
6052echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6053else
6054  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6055echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6056fi
6057if test "${lt_cv_path_LD+set}" = set; then
6058  echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060  if test -z "$LD"; then
6061  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6062  for ac_dir in $PATH; do
6063    IFS="$lt_save_ifs"
6064    test -z "$ac_dir" && ac_dir=.
6065    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6066      lt_cv_path_LD="$ac_dir/$ac_prog"
6067      # Check to see if the program is GNU ld.  I'd rather use --version,
6068      # but apparently some variants of GNU ld only accept -v.
6069      # Break only if it was the GNU/non-GNU ld that we prefer.
6070      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6071      *GNU* | *'with BFD'*)
6072        test "$with_gnu_ld" != no && break
6073        ;;
6074      *)
6075        test "$with_gnu_ld" != yes && break
6076        ;;
6077      esac
6078    fi
6079  done
6080  IFS="$lt_save_ifs"
6081else
6082  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6083fi
6084fi
6085
6086LD="$lt_cv_path_LD"
6087if test -n "$LD"; then
6088  echo "$as_me:$LINENO: result: $LD" >&5
6089echo "${ECHO_T}$LD" >&6
6090else
6091  echo "$as_me:$LINENO: result: no" >&5
6092echo "${ECHO_T}no" >&6
6093fi
6094test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6095echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6096   { (exit 1); exit 1; }; }
6097echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6098echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6099if test "${lt_cv_prog_gnu_ld+set}" = set; then
6100  echo $ECHO_N "(cached) $ECHO_C" >&6
6101else
6102  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6103case `$LD -v 2>&1 </dev/null` in
6104*GNU* | *'with BFD'*)
6105  lt_cv_prog_gnu_ld=yes
6106  ;;
6107*)
6108  lt_cv_prog_gnu_ld=no
6109  ;;
6110esac
6111fi
6112echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6113echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6114with_gnu_ld=$lt_cv_prog_gnu_ld
6115
6116
6117echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6118echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6119if test "${lt_cv_ld_reload_flag+set}" = set; then
6120  echo $ECHO_N "(cached) $ECHO_C" >&6
6121else
6122  lt_cv_ld_reload_flag='-r'
6123fi
6124echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6125echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6126reload_flag=$lt_cv_ld_reload_flag
6127case $reload_flag in
6128"" | " "*) ;;
6129*) reload_flag=" $reload_flag" ;;
6130esac
6131reload_cmds='$LD$reload_flag -o $output$reload_objs'
6132case $host_os in
6133  darwin*)
6134    if test "$GCC" = yes; then
6135      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6136    else
6137      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6138    fi
6139    ;;
6140esac
6141
6142echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6143echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6144if test "${lt_cv_path_NM+set}" = set; then
6145  echo $ECHO_N "(cached) $ECHO_C" >&6
6146else
6147  if test -n "$NM"; then
6148  # Let the user override the test.
6149  lt_cv_path_NM="$NM"
6150else
6151  lt_nm_to_check="${ac_tool_prefix}nm"
6152  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6153    lt_nm_to_check="$lt_nm_to_check nm"
6154  fi
6155  for lt_tmp_nm in $lt_nm_to_check; do
6156    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6157    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6158      IFS="$lt_save_ifs"
6159      test -z "$ac_dir" && ac_dir=.
6160      tmp_nm="$ac_dir/$lt_tmp_nm"
6161      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6162        # Check to see if the nm accepts a BSD-compat flag.
6163        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6164        #   nm: unknown option "B" ignored
6165        # Tru64's nm complains that /dev/null is an invalid object file
6166        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6167        */dev/null* | *'Invalid file or object type'*)
6168          lt_cv_path_NM="$tmp_nm -B"
6169          break
6170          ;;
6171        *)
6172          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6173          */dev/null*)
6174            lt_cv_path_NM="$tmp_nm -p"
6175            break
6176            ;;
6177          *)
6178            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6179            continue # so that we can try to find one that supports BSD flags
6180            ;;
6181          esac
6182          ;;
6183        esac
6184      fi
6185    done
6186    IFS="$lt_save_ifs"
6187  done
6188  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6189fi
6190fi
6191echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6192echo "${ECHO_T}$lt_cv_path_NM" >&6
6193NM="$lt_cv_path_NM"
6194
6195echo "$as_me:$LINENO: checking whether ln -s works" >&5
6196echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6197LN_S=$as_ln_s
6198if test "$LN_S" = "ln -s"; then
6199  echo "$as_me:$LINENO: result: yes" >&5
6200echo "${ECHO_T}yes" >&6
6201else
6202  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6203echo "${ECHO_T}no, using $LN_S" >&6
6204fi
6205
6206echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6207echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6208if test "${lt_cv_deplibs_check_method+set}" = set; then
6209  echo $ECHO_N "(cached) $ECHO_C" >&6
6210else
6211  lt_cv_file_magic_cmd='$MAGIC_CMD'
6212lt_cv_file_magic_test_file=
6213lt_cv_deplibs_check_method='unknown'
6214# Need to set the preceding variable on all platforms that support
6215# interlibrary dependencies.
6216# 'none' -- dependencies not supported.
6217# `unknown' -- same as none, but documents that we really don't know.
6218# 'pass_all' -- all dependencies passed with no checks.
6219# 'test_compile' -- check by making test program.
6220# 'file_magic [[regex]]' -- check by looking for files in library path
6221# which responds to the $file_magic_cmd with a given extended regex.
6222# If you have `file' or equivalent on your system and you're not sure
6223# whether `pass_all' will *always* work, you probably want this one.
6224
6225case $host_os in
6226aix4* | aix5*)
6227  lt_cv_deplibs_check_method=pass_all
6228  ;;
6229
6230beos*)
6231  lt_cv_deplibs_check_method=pass_all
6232  ;;
6233
6234bsdi[45]*)
6235  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6236  lt_cv_file_magic_cmd='/usr/bin/file -L'
6237  lt_cv_file_magic_test_file=/shlib/libc.so
6238  ;;
6239
6240cygwin*)
6241  # func_win32_libid is a shell function defined in ltmain.sh
6242  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6243  lt_cv_file_magic_cmd='func_win32_libid'
6244  ;;
6245
6246mingw* | pw32*)
6247  # Base MSYS/MinGW do not provide the 'file' command needed by
6248  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6249  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6250  lt_cv_file_magic_cmd='$OBJDUMP -f'
6251  ;;
6252
6253darwin* | rhapsody*)
6254  lt_cv_deplibs_check_method=pass_all
6255  ;;
6256
6257freebsd* | kfreebsd*-gnu | dragonfly*)
6258  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6259    case $host_cpu in
6260    i*86 )
6261      # Not sure whether the presence of OpenBSD here was a mistake.
6262      # Let's accept both of them until this is cleared up.
6263      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6264      lt_cv_file_magic_cmd=/usr/bin/file
6265      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6266      ;;
6267    esac
6268  else
6269    lt_cv_deplibs_check_method=pass_all
6270  fi
6271  ;;
6272
6273gnu*)
6274  lt_cv_deplibs_check_method=pass_all
6275  ;;
6276
6277hpux10.20* | hpux11*)
6278  lt_cv_file_magic_cmd=/usr/bin/file
6279  case $host_cpu in
6280  ia64*)
6281    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6282    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6283    ;;
6284  hppa*64*)
6285    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]'
6286    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6287    ;;
6288  *)
6289    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6290    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6291    ;;
6292  esac
6293  ;;
6294
6295interix3*)
6296  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6297  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6298  ;;
6299
6300irix5* | irix6* | nonstopux*)
6301  case $LD in
6302  *-32|*"-32 ") libmagic=32-bit;;
6303  *-n32|*"-n32 ") libmagic=N32;;
6304  *-64|*"-64 ") libmagic=64-bit;;
6305  *) libmagic=never-match;;
6306  esac
6307  lt_cv_deplibs_check_method=pass_all
6308  ;;
6309
6310# This must be Linux ELF.
6311linux*)
6312  lt_cv_deplibs_check_method=pass_all
6313  ;;
6314
6315netbsd*)
6316  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6317    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6318  else
6319    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6320  fi
6321  ;;
6322
6323newos6*)
6324  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6325  lt_cv_file_magic_cmd=/usr/bin/file
6326  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6327  ;;
6328
6329nto-qnx*)
6330  lt_cv_deplibs_check_method=unknown
6331  ;;
6332
6333openbsd*)
6334  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6335    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6336  else
6337    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6338  fi
6339  ;;
6340
6341osf3* | osf4* | osf5*)
6342  lt_cv_deplibs_check_method=pass_all
6343  ;;
6344
6345solaris*)
6346  lt_cv_deplibs_check_method=pass_all
6347  ;;
6348
6349sysv4 | sysv4.3*)
6350  case $host_vendor in
6351  motorola)
6352    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]'
6353    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6354    ;;
6355  ncr)
6356    lt_cv_deplibs_check_method=pass_all
6357    ;;
6358  sequent)
6359    lt_cv_file_magic_cmd='/bin/file'
6360    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6361    ;;
6362  sni)
6363    lt_cv_file_magic_cmd='/bin/file'
6364    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6365    lt_cv_file_magic_test_file=/lib/libc.so
6366    ;;
6367  siemens)
6368    lt_cv_deplibs_check_method=pass_all
6369    ;;
6370  pc)
6371    lt_cv_deplibs_check_method=pass_all
6372    ;;
6373  esac
6374  ;;
6375
6376sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6377  lt_cv_deplibs_check_method=pass_all
6378  ;;
6379esac
6380
6381fi
6382echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6383echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6384file_magic_cmd=$lt_cv_file_magic_cmd
6385deplibs_check_method=$lt_cv_deplibs_check_method
6386test -z "$deplibs_check_method" && deplibs_check_method=unknown
6387
6388
6389
6390
6391# If no C compiler was specified, use CC.
6392LTCC=${LTCC-"$CC"}
6393
6394# If no C compiler flags were specified, use CFLAGS.
6395LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6396
6397# Allow CC to be a program name with arguments.
6398compiler=$CC
6399
6400# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6401if test "${enable_libtool_lock+set}" = set; then
6402  enableval="$enable_libtool_lock"
6403
6404fi;
6405test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6406
6407# Some flags need to be propagated to the compiler or linker for good
6408# libtool support.
6409case $host in
6410ia64-*-hpux*)
6411  # Find out which ABI we are using.
6412  echo 'int i;' > conftest.$ac_ext
6413  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6414  (eval $ac_compile) 2>&5
6415  ac_status=$?
6416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417  (exit $ac_status); }; then
6418    case `/usr/bin/file conftest.$ac_objext` in
6419    *ELF-32*)
6420      HPUX_IA64_MODE="32"
6421      ;;
6422    *ELF-64*)
6423      HPUX_IA64_MODE="64"
6424      ;;
6425    esac
6426  fi
6427  rm -rf conftest*
6428  ;;
6429*-*-irix6*)
6430  # Find out which ABI we are using.
6431  echo '#line 6431 "configure"' > conftest.$ac_ext
6432  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433  (eval $ac_compile) 2>&5
6434  ac_status=$?
6435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436  (exit $ac_status); }; then
6437   if test "$lt_cv_prog_gnu_ld" = yes; then
6438    case `/usr/bin/file conftest.$ac_objext` in
6439    *32-bit*)
6440      LD="${LD-ld} -melf32bsmip"
6441      ;;
6442    *N32*)
6443      LD="${LD-ld} -melf32bmipn32"
6444      ;;
6445    *64-bit*)
6446      LD="${LD-ld} -melf64bmip"
6447      ;;
6448    esac
6449   else
6450    case `/usr/bin/file conftest.$ac_objext` in
6451    *32-bit*)
6452      LD="${LD-ld} -32"
6453      ;;
6454    *N32*)
6455      LD="${LD-ld} -n32"
6456      ;;
6457    *64-bit*)
6458      LD="${LD-ld} -64"
6459      ;;
6460    esac
6461   fi
6462  fi
6463  rm -rf conftest*
6464  ;;
6465
6466x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6467  # Find out which ABI we are using.
6468  echo 'int i;' > conftest.$ac_ext
6469  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6470  (eval $ac_compile) 2>&5
6471  ac_status=$?
6472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473  (exit $ac_status); }; then
6474    case `/usr/bin/file conftest.o` in
6475    *32-bit*)
6476      case $host in
6477        x86_64-*linux*)
6478          LD="${LD-ld} -m elf_i386"
6479          ;;
6480        ppc64-*linux*|powerpc64-*linux*)
6481          LD="${LD-ld} -m elf32ppclinux"
6482          ;;
6483        s390x-*linux*)
6484          LD="${LD-ld} -m elf_s390"
6485          ;;
6486        sparc64-*linux*)
6487          LD="${LD-ld} -m elf32_sparc"
6488          ;;
6489      esac
6490      ;;
6491    *64-bit*)
6492      case $host in
6493        x86_64-*linux*)
6494          LD="${LD-ld} -m elf_x86_64"
6495          ;;
6496        ppc*-*linux*|powerpc*-*linux*)
6497          LD="${LD-ld} -m elf64ppc"
6498          ;;
6499        s390*-*linux*)
6500          LD="${LD-ld} -m elf64_s390"
6501          ;;
6502        sparc*-*linux*)
6503          LD="${LD-ld} -m elf64_sparc"
6504          ;;
6505      esac
6506      ;;
6507    esac
6508  fi
6509  rm -rf conftest*
6510  ;;
6511
6512*-*-sco3.2v5*)
6513  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6514  SAVE_CFLAGS="$CFLAGS"
6515  CFLAGS="$CFLAGS -belf"
6516  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6517echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6518if test "${lt_cv_cc_needs_belf+set}" = set; then
6519  echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521  ac_ext=c
6522ac_cpp='$CPP $CPPFLAGS'
6523ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525ac_compiler_gnu=$ac_cv_c_compiler_gnu
6526
6527     cat >conftest.$ac_ext <<_ACEOF
6528/* confdefs.h.  */
6529_ACEOF
6530cat confdefs.h >>conftest.$ac_ext
6531cat >>conftest.$ac_ext <<_ACEOF
6532/* end confdefs.h.  */
6533
6534int
6535main ()
6536{
6537
6538  ;
6539  return 0;
6540}
6541_ACEOF
6542rm -f conftest.$ac_objext conftest$ac_exeext
6543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6544  (eval $ac_link) 2>conftest.er1
6545  ac_status=$?
6546  grep -v '^ *+' conftest.er1 >conftest.err
6547  rm -f conftest.er1
6548  cat conftest.err >&5
6549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); } &&
6551         { ac_try='test -z "$ac_c_werror_flag"
6552                         || test ! -s conftest.err'
6553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6554  (eval $ac_try) 2>&5
6555  ac_status=$?
6556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557  (exit $ac_status); }; } &&
6558         { ac_try='test -s conftest$ac_exeext'
6559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6560  (eval $ac_try) 2>&5
6561  ac_status=$?
6562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563  (exit $ac_status); }; }; then
6564  lt_cv_cc_needs_belf=yes
6565else
6566  echo "$as_me: failed program was:" >&5
6567sed 's/^/| /' conftest.$ac_ext >&5
6568
6569lt_cv_cc_needs_belf=no
6570fi
6571rm -f conftest.err conftest.$ac_objext \
6572      conftest$ac_exeext conftest.$ac_ext
6573     ac_ext=c
6574ac_cpp='$CPP $CPPFLAGS'
6575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6577ac_compiler_gnu=$ac_cv_c_compiler_gnu
6578
6579fi
6580echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6581echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6582  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6583    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6584    CFLAGS="$SAVE_CFLAGS"
6585  fi
6586  ;;
6587sparc*-*solaris*)
6588  # Find out which ABI we are using.
6589  echo 'int i;' > conftest.$ac_ext
6590  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6591  (eval $ac_compile) 2>&5
6592  ac_status=$?
6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594  (exit $ac_status); }; then
6595    case `/usr/bin/file conftest.o` in
6596    *64-bit*)
6597      case $lt_cv_prog_gnu_ld in
6598      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6599      *)    LD="${LD-ld} -64" ;;
6600      esac
6601      ;;
6602    esac
6603  fi
6604  rm -rf conftest*
6605  ;;
6606
6607
6608esac
6609
6610need_locks="$enable_libtool_lock"
6611
6612
6613ac_ext=c
6614ac_cpp='$CPP $CPPFLAGS'
6615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6617ac_compiler_gnu=$ac_cv_c_compiler_gnu
6618echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6619echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6620# On Suns, sometimes $CPP names a directory.
6621if test -n "$CPP" && test -d "$CPP"; then
6622  CPP=
6623fi
6624if test -z "$CPP"; then
6625  if test "${ac_cv_prog_CPP+set}" = set; then
6626  echo $ECHO_N "(cached) $ECHO_C" >&6
6627else
6628      # Double quotes because CPP needs to be expanded
6629    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6630    do
6631      ac_preproc_ok=false
6632for ac_c_preproc_warn_flag in '' yes
6633do
6634  # Use a header file that comes with gcc, so configuring glibc
6635  # with a fresh cross-compiler works.
6636  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6637  # <limits.h> exists even on freestanding compilers.
6638  # On the NeXT, cc -E runs the code through the compiler's parser,
6639  # not just through cpp. "Syntax error" is here to catch this case.
6640  cat >conftest.$ac_ext <<_ACEOF
6641/* confdefs.h.  */
6642_ACEOF
6643cat confdefs.h >>conftest.$ac_ext
6644cat >>conftest.$ac_ext <<_ACEOF
6645/* end confdefs.h.  */
6646#ifdef __STDC__
6647# include <limits.h>
6648#else
6649# include <assert.h>
6650#endif
6651                     Syntax error
6652_ACEOF
6653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6654  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6655  ac_status=$?
6656  grep -v '^ *+' conftest.er1 >conftest.err
6657  rm -f conftest.er1
6658  cat conftest.err >&5
6659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660  (exit $ac_status); } >/dev/null; then
6661  if test -s conftest.err; then
6662    ac_cpp_err=$ac_c_preproc_warn_flag
6663    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6664  else
6665    ac_cpp_err=
6666  fi
6667else
6668  ac_cpp_err=yes
6669fi
6670if test -z "$ac_cpp_err"; then
6671  :
6672else
6673  echo "$as_me: failed program was:" >&5
6674sed 's/^/| /' conftest.$ac_ext >&5
6675
6676  # Broken: fails on valid input.
6677continue
6678fi
6679rm -f conftest.err conftest.$ac_ext
6680
6681  # OK, works on sane cases.  Now check whether non-existent headers
6682  # can be detected and how.
6683  cat >conftest.$ac_ext <<_ACEOF
6684/* confdefs.h.  */
6685_ACEOF
6686cat confdefs.h >>conftest.$ac_ext
6687cat >>conftest.$ac_ext <<_ACEOF
6688/* end confdefs.h.  */
6689#include <ac_nonexistent.h>
6690_ACEOF
6691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6692  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6693  ac_status=$?
6694  grep -v '^ *+' conftest.er1 >conftest.err
6695  rm -f conftest.er1
6696  cat conftest.err >&5
6697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698  (exit $ac_status); } >/dev/null; then
6699  if test -s conftest.err; then
6700    ac_cpp_err=$ac_c_preproc_warn_flag
6701    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6702  else
6703    ac_cpp_err=
6704  fi
6705else
6706  ac_cpp_err=yes
6707fi
6708if test -z "$ac_cpp_err"; then
6709  # Broken: success on invalid input.
6710continue
6711else
6712  echo "$as_me: failed program was:" >&5
6713sed 's/^/| /' conftest.$ac_ext >&5
6714
6715  # Passes both tests.
6716ac_preproc_ok=:
6717break
6718fi
6719rm -f conftest.err conftest.$ac_ext
6720
6721done
6722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6723rm -f conftest.err conftest.$ac_ext
6724if $ac_preproc_ok; then
6725  break
6726fi
6727
6728    done
6729    ac_cv_prog_CPP=$CPP
6730
6731fi
6732  CPP=$ac_cv_prog_CPP
6733else
6734  ac_cv_prog_CPP=$CPP
6735fi
6736echo "$as_me:$LINENO: result: $CPP" >&5
6737echo "${ECHO_T}$CPP" >&6
6738ac_preproc_ok=false
6739for ac_c_preproc_warn_flag in '' yes
6740do
6741  # Use a header file that comes with gcc, so configuring glibc
6742  # with a fresh cross-compiler works.
6743  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6744  # <limits.h> exists even on freestanding compilers.
6745  # On the NeXT, cc -E runs the code through the compiler's parser,
6746  # not just through cpp. "Syntax error" is here to catch this case.
6747  cat >conftest.$ac_ext <<_ACEOF
6748/* confdefs.h.  */
6749_ACEOF
6750cat confdefs.h >>conftest.$ac_ext
6751cat >>conftest.$ac_ext <<_ACEOF
6752/* end confdefs.h.  */
6753#ifdef __STDC__
6754# include <limits.h>
6755#else
6756# include <assert.h>
6757#endif
6758                     Syntax error
6759_ACEOF
6760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6761  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6762  ac_status=$?
6763  grep -v '^ *+' conftest.er1 >conftest.err
6764  rm -f conftest.er1
6765  cat conftest.err >&5
6766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767  (exit $ac_status); } >/dev/null; then
6768  if test -s conftest.err; then
6769    ac_cpp_err=$ac_c_preproc_warn_flag
6770    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6771  else
6772    ac_cpp_err=
6773  fi
6774else
6775  ac_cpp_err=yes
6776fi
6777if test -z "$ac_cpp_err"; then
6778  :
6779else
6780  echo "$as_me: failed program was:" >&5
6781sed 's/^/| /' conftest.$ac_ext >&5
6782
6783  # Broken: fails on valid input.
6784continue
6785fi
6786rm -f conftest.err conftest.$ac_ext
6787
6788  # OK, works on sane cases.  Now check whether non-existent headers
6789  # can be detected and how.
6790  cat >conftest.$ac_ext <<_ACEOF
6791/* confdefs.h.  */
6792_ACEOF
6793cat confdefs.h >>conftest.$ac_ext
6794cat >>conftest.$ac_ext <<_ACEOF
6795/* end confdefs.h.  */
6796#include <ac_nonexistent.h>
6797_ACEOF
6798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6799  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6800  ac_status=$?
6801  grep -v '^ *+' conftest.er1 >conftest.err
6802  rm -f conftest.er1
6803  cat conftest.err >&5
6804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805  (exit $ac_status); } >/dev/null; then
6806  if test -s conftest.err; then
6807    ac_cpp_err=$ac_c_preproc_warn_flag
6808    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6809  else
6810    ac_cpp_err=
6811  fi
6812else
6813  ac_cpp_err=yes
6814fi
6815if test -z "$ac_cpp_err"; then
6816  # Broken: success on invalid input.
6817continue
6818else
6819  echo "$as_me: failed program was:" >&5
6820sed 's/^/| /' conftest.$ac_ext >&5
6821
6822  # Passes both tests.
6823ac_preproc_ok=:
6824break
6825fi
6826rm -f conftest.err conftest.$ac_ext
6827
6828done
6829# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6830rm -f conftest.err conftest.$ac_ext
6831if $ac_preproc_ok; then
6832  :
6833else
6834  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6835See \`config.log' for more details." >&5
6836echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6837See \`config.log' for more details." >&2;}
6838   { (exit 1); exit 1; }; }
6839fi
6840
6841ac_ext=c
6842ac_cpp='$CPP $CPPFLAGS'
6843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846
6847
6848echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6849echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6850if test "${ac_cv_header_stdc+set}" = set; then
6851  echo $ECHO_N "(cached) $ECHO_C" >&6
6852else
6853  cat >conftest.$ac_ext <<_ACEOF
6854/* confdefs.h.  */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h.  */
6859#include <stdlib.h>
6860#include <stdarg.h>
6861#include <string.h>
6862#include <float.h>
6863
6864int
6865main ()
6866{
6867
6868  ;
6869  return 0;
6870}
6871_ACEOF
6872rm -f conftest.$ac_objext
6873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6874  (eval $ac_compile) 2>conftest.er1
6875  ac_status=$?
6876  grep -v '^ *+' conftest.er1 >conftest.err
6877  rm -f conftest.er1
6878  cat conftest.err >&5
6879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880  (exit $ac_status); } &&
6881         { ac_try='test -z "$ac_c_werror_flag"
6882                         || test ! -s conftest.err'
6883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884  (eval $ac_try) 2>&5
6885  ac_status=$?
6886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887  (exit $ac_status); }; } &&
6888         { ac_try='test -s conftest.$ac_objext'
6889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890  (eval $ac_try) 2>&5
6891  ac_status=$?
6892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893  (exit $ac_status); }; }; then
6894  ac_cv_header_stdc=yes
6895else
6896  echo "$as_me: failed program was:" >&5
6897sed 's/^/| /' conftest.$ac_ext >&5
6898
6899ac_cv_header_stdc=no
6900fi
6901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6902
6903if test $ac_cv_header_stdc = yes; then
6904  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6905  cat >conftest.$ac_ext <<_ACEOF
6906/* confdefs.h.  */
6907_ACEOF
6908cat confdefs.h >>conftest.$ac_ext
6909cat >>conftest.$ac_ext <<_ACEOF
6910/* end confdefs.h.  */
6911#include <string.h>
6912
6913_ACEOF
6914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915  $EGREP "memchr" >/dev/null 2>&1; then
6916  :
6917else
6918  ac_cv_header_stdc=no
6919fi
6920rm -f conftest*
6921
6922fi
6923
6924if test $ac_cv_header_stdc = yes; then
6925  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6926  cat >conftest.$ac_ext <<_ACEOF
6927/* confdefs.h.  */
6928_ACEOF
6929cat confdefs.h >>conftest.$ac_ext
6930cat >>conftest.$ac_ext <<_ACEOF
6931/* end confdefs.h.  */
6932#include <stdlib.h>
6933
6934_ACEOF
6935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6936  $EGREP "free" >/dev/null 2>&1; then
6937  :
6938else
6939  ac_cv_header_stdc=no
6940fi
6941rm -f conftest*
6942
6943fi
6944
6945if test $ac_cv_header_stdc = yes; then
6946  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6947  if test "$cross_compiling" = yes; then
6948  :
6949else
6950  cat >conftest.$ac_ext <<_ACEOF
6951/* confdefs.h.  */
6952_ACEOF
6953cat confdefs.h >>conftest.$ac_ext
6954cat >>conftest.$ac_ext <<_ACEOF
6955/* end confdefs.h.  */
6956#include <ctype.h>
6957#if ((' ' & 0x0FF) == 0x020)
6958# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6959# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6960#else
6961# define ISLOWER(c) \
6962                   (('a' <= (c) && (c) <= 'i') \
6963                     || ('j' <= (c) && (c) <= 'r') \
6964                     || ('s' <= (c) && (c) <= 'z'))
6965# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6966#endif
6967
6968#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6969int
6970main ()
6971{
6972  int i;
6973  for (i = 0; i < 256; i++)
6974    if (XOR (islower (i), ISLOWER (i))
6975        || toupper (i) != TOUPPER (i))
6976      exit(2);
6977  exit (0);
6978}
6979_ACEOF
6980rm -f conftest$ac_exeext
6981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6982  (eval $ac_link) 2>&5
6983  ac_status=$?
6984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987  (eval $ac_try) 2>&5
6988  ac_status=$?
6989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990  (exit $ac_status); }; }; then
6991  :
6992else
6993  echo "$as_me: program exited with status $ac_status" >&5
6994echo "$as_me: failed program was:" >&5
6995sed 's/^/| /' conftest.$ac_ext >&5
6996
6997( exit $ac_status )
6998ac_cv_header_stdc=no
6999fi
7000rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7001fi
7002fi
7003fi
7004echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7005echo "${ECHO_T}$ac_cv_header_stdc" >&6
7006if test $ac_cv_header_stdc = yes; then
7007
7008cat >>confdefs.h <<\_ACEOF
7009#define STDC_HEADERS 1
7010_ACEOF
7011
7012fi
7013
7014# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7025                  inttypes.h stdint.h unistd.h
7026do
7027as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7028echo "$as_me:$LINENO: checking for $ac_header" >&5
7029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7030if eval "test \"\${$as_ac_Header+set}\" = set"; then
7031  echo $ECHO_N "(cached) $ECHO_C" >&6
7032else
7033  cat >conftest.$ac_ext <<_ACEOF
7034/* confdefs.h.  */
7035_ACEOF
7036cat confdefs.h >>conftest.$ac_ext
7037cat >>conftest.$ac_ext <<_ACEOF
7038/* end confdefs.h.  */
7039$ac_includes_default
7040
7041#include <$ac_header>
7042_ACEOF
7043rm -f conftest.$ac_objext
7044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7045  (eval $ac_compile) 2>conftest.er1
7046  ac_status=$?
7047  grep -v '^ *+' conftest.er1 >conftest.err
7048  rm -f conftest.er1
7049  cat conftest.err >&5
7050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051  (exit $ac_status); } &&
7052         { ac_try='test -z "$ac_c_werror_flag"
7053                         || test ! -s conftest.err'
7054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055  (eval $ac_try) 2>&5
7056  ac_status=$?
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); }; } &&
7059         { ac_try='test -s conftest.$ac_objext'
7060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061  (eval $ac_try) 2>&5
7062  ac_status=$?
7063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064  (exit $ac_status); }; }; then
7065  eval "$as_ac_Header=yes"
7066else
7067  echo "$as_me: failed program was:" >&5
7068sed 's/^/| /' conftest.$ac_ext >&5
7069
7070eval "$as_ac_Header=no"
7071fi
7072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7073fi
7074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7076if test `eval echo '${'$as_ac_Header'}'` = yes; then
7077  cat >>confdefs.h <<_ACEOF
7078#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7079_ACEOF
7080
7081fi
7082
7083done
7084
7085
7086
7087for ac_header in dlfcn.h
7088do
7089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7090if eval "test \"\${$as_ac_Header+set}\" = set"; then
7091  echo "$as_me:$LINENO: checking for $ac_header" >&5
7092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7093if eval "test \"\${$as_ac_Header+set}\" = set"; then
7094  echo $ECHO_N "(cached) $ECHO_C" >&6
7095fi
7096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7098else
7099  # Is the header compilable?
7100echo "$as_me:$LINENO: checking $ac_header usability" >&5
7101echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7102cat >conftest.$ac_ext <<_ACEOF
7103/* confdefs.h.  */
7104_ACEOF
7105cat confdefs.h >>conftest.$ac_ext
7106cat >>conftest.$ac_ext <<_ACEOF
7107/* end confdefs.h.  */
7108$ac_includes_default
7109#include <$ac_header>
7110_ACEOF
7111rm -f conftest.$ac_objext
7112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7113  (eval $ac_compile) 2>conftest.er1
7114  ac_status=$?
7115  grep -v '^ *+' conftest.er1 >conftest.err
7116  rm -f conftest.er1
7117  cat conftest.err >&5
7118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119  (exit $ac_status); } &&
7120         { ac_try='test -z "$ac_c_werror_flag"
7121                         || test ! -s conftest.err'
7122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123  (eval $ac_try) 2>&5
7124  ac_status=$?
7125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126  (exit $ac_status); }; } &&
7127         { ac_try='test -s conftest.$ac_objext'
7128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129  (eval $ac_try) 2>&5
7130  ac_status=$?
7131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132  (exit $ac_status); }; }; then
7133  ac_header_compiler=yes
7134else
7135  echo "$as_me: failed program was:" >&5
7136sed 's/^/| /' conftest.$ac_ext >&5
7137
7138ac_header_compiler=no
7139fi
7140rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7141echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7142echo "${ECHO_T}$ac_header_compiler" >&6
7143
7144# Is the header present?
7145echo "$as_me:$LINENO: checking $ac_header presence" >&5
7146echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7147cat >conftest.$ac_ext <<_ACEOF
7148/* confdefs.h.  */
7149_ACEOF
7150cat confdefs.h >>conftest.$ac_ext
7151cat >>conftest.$ac_ext <<_ACEOF
7152/* end confdefs.h.  */
7153#include <$ac_header>
7154_ACEOF
7155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7156  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7157  ac_status=$?
7158  grep -v '^ *+' conftest.er1 >conftest.err
7159  rm -f conftest.er1
7160  cat conftest.err >&5
7161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162  (exit $ac_status); } >/dev/null; then
7163  if test -s conftest.err; then
7164    ac_cpp_err=$ac_c_preproc_warn_flag
7165    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7166  else
7167    ac_cpp_err=
7168  fi
7169else
7170  ac_cpp_err=yes
7171fi
7172if test -z "$ac_cpp_err"; then
7173  ac_header_preproc=yes
7174else
7175  echo "$as_me: failed program was:" >&5
7176sed 's/^/| /' conftest.$ac_ext >&5
7177
7178  ac_header_preproc=no
7179fi
7180rm -f conftest.err conftest.$ac_ext
7181echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7182echo "${ECHO_T}$ac_header_preproc" >&6
7183
7184# So?  What about this header?
7185case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7186  yes:no: )
7187    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7188echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7189    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7190echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7191    ac_header_preproc=yes
7192    ;;
7193  no:yes:* )
7194    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7195echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7196    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7197echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7198    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7199echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7200    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7201echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7202    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7203echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7204    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7205echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7206    (
7207      cat <<\_ASBOX
7208## ----------------------------------------- ##
7209## Report this to coin-cbc@lists.coin-or.org ##
7210## ----------------------------------------- ##
7211_ASBOX
7212    ) |
7213      sed "s/^/$as_me: WARNING:     /" >&2
7214    ;;
7215esac
7216echo "$as_me:$LINENO: checking for $ac_header" >&5
7217echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7218if eval "test \"\${$as_ac_Header+set}\" = set"; then
7219  echo $ECHO_N "(cached) $ECHO_C" >&6
7220else
7221  eval "$as_ac_Header=\$ac_header_preproc"
7222fi
7223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7225
7226fi
7227if test `eval echo '${'$as_ac_Header'}'` = yes; then
7228  cat >>confdefs.h <<_ACEOF
7229#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7230_ACEOF
7231
7232fi
7233
7234done
7235
7236
7237
7238if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7239    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7240    (test "X$CXX" != "Xg++"))) ; then
7241  ac_ext=cc
7242ac_cpp='$CXXCPP $CPPFLAGS'
7243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7246echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7247echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7248if test -z "$CXXCPP"; then
7249  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7250  echo $ECHO_N "(cached) $ECHO_C" >&6
7251else
7252      # Double quotes because CXXCPP needs to be expanded
7253    for CXXCPP in "$CXX -E" "/lib/cpp"
7254    do
7255      ac_preproc_ok=false
7256for ac_cxx_preproc_warn_flag in '' yes
7257do
7258  # Use a header file that comes with gcc, so configuring glibc
7259  # with a fresh cross-compiler works.
7260  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7261  # <limits.h> exists even on freestanding compilers.
7262  # On the NeXT, cc -E runs the code through the compiler's parser,
7263  # not just through cpp. "Syntax error" is here to catch this case.
7264  cat >conftest.$ac_ext <<_ACEOF
7265/* confdefs.h.  */
7266_ACEOF
7267cat confdefs.h >>conftest.$ac_ext
7268cat >>conftest.$ac_ext <<_ACEOF
7269/* end confdefs.h.  */
7270#ifdef __STDC__
7271# include <limits.h>
7272#else
7273# include <assert.h>
7274#endif
7275                     Syntax error
7276_ACEOF
7277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7278  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7279  ac_status=$?
7280  grep -v '^ *+' conftest.er1 >conftest.err
7281  rm -f conftest.er1
7282  cat conftest.err >&5
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); } >/dev/null; then
7285  if test -s conftest.err; then
7286    ac_cpp_err=$ac_cxx_preproc_warn_flag
7287    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7288  else
7289    ac_cpp_err=
7290  fi
7291else
7292  ac_cpp_err=yes
7293fi
7294if test -z "$ac_cpp_err"; then
7295  :
7296else
7297  echo "$as_me: failed program was:" >&5
7298sed 's/^/| /' conftest.$ac_ext >&5
7299
7300  # Broken: fails on valid input.
7301continue
7302fi
7303rm -f conftest.err conftest.$ac_ext
7304
7305  # OK, works on sane cases.  Now check whether non-existent headers
7306  # can be detected and how.
7307  cat >conftest.$ac_ext <<_ACEOF
7308/* confdefs.h.  */
7309_ACEOF
7310cat confdefs.h >>conftest.$ac_ext
7311cat >>conftest.$ac_ext <<_ACEOF
7312/* end confdefs.h.  */
7313#include <ac_nonexistent.h>
7314_ACEOF
7315if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7316  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7317  ac_status=$?
7318  grep -v '^ *+' conftest.er1 >conftest.err
7319  rm -f conftest.er1
7320  cat conftest.err >&5
7321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322  (exit $ac_status); } >/dev/null; then
7323  if test -s conftest.err; then
7324    ac_cpp_err=$ac_cxx_preproc_warn_flag
7325    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7326  else
7327    ac_cpp_err=
7328  fi
7329else
7330  ac_cpp_err=yes
7331fi
7332if test -z "$ac_cpp_err"; then
7333  # Broken: success on invalid input.
7334continue
7335else
7336  echo "$as_me: failed program was:" >&5
7337sed 's/^/| /' conftest.$ac_ext >&5
7338
7339  # Passes both tests.
7340ac_preproc_ok=:
7341break
7342fi
7343rm -f conftest.err conftest.$ac_ext
7344
7345done
7346# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7347rm -f conftest.err conftest.$ac_ext
7348if $ac_preproc_ok; then
7349  break
7350fi
7351
7352    done
7353    ac_cv_prog_CXXCPP=$CXXCPP
7354
7355fi
7356  CXXCPP=$ac_cv_prog_CXXCPP
7357else
7358  ac_cv_prog_CXXCPP=$CXXCPP
7359fi
7360echo "$as_me:$LINENO: result: $CXXCPP" >&5
7361echo "${ECHO_T}$CXXCPP" >&6
7362ac_preproc_ok=false
7363for ac_cxx_preproc_warn_flag in '' yes
7364do
7365  # Use a header file that comes with gcc, so configuring glibc
7366  # with a fresh cross-compiler works.
7367  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7368  # <limits.h> exists even on freestanding compilers.
7369  # On the NeXT, cc -E runs the code through the compiler's parser,
7370  # not just through cpp. "Syntax error" is here to catch this case.
7371  cat >conftest.$ac_ext <<_ACEOF
7372/* confdefs.h.  */
7373_ACEOF
7374cat confdefs.h >>conftest.$ac_ext
7375cat >>conftest.$ac_ext <<_ACEOF
7376/* end confdefs.h.  */
7377#ifdef __STDC__
7378# include <limits.h>
7379#else
7380# include <assert.h>
7381#endif
7382                     Syntax error
7383_ACEOF
7384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7385  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7386  ac_status=$?
7387  grep -v '^ *+' conftest.er1 >conftest.err
7388  rm -f conftest.er1
7389  cat conftest.err >&5
7390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391  (exit $ac_status); } >/dev/null; then
7392  if test -s conftest.err; then
7393    ac_cpp_err=$ac_cxx_preproc_warn_flag
7394    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7395  else
7396    ac_cpp_err=
7397  fi
7398else
7399  ac_cpp_err=yes
7400fi
7401if test -z "$ac_cpp_err"; then
7402  :
7403else
7404  echo "$as_me: failed program was:" >&5
7405sed 's/^/| /' conftest.$ac_ext >&5
7406
7407  # Broken: fails on valid input.
7408continue
7409fi
7410rm -f conftest.err conftest.$ac_ext
7411
7412  # OK, works on sane cases.  Now check whether non-existent headers
7413  # can be detected and how.
7414  cat >conftest.$ac_ext <<_ACEOF
7415/* confdefs.h.  */
7416_ACEOF
7417cat confdefs.h >>conftest.$ac_ext
7418cat >>conftest.$ac_ext <<_ACEOF
7419/* end confdefs.h.  */
7420#include <ac_nonexistent.h>
7421_ACEOF
7422if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7423  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7424  ac_status=$?
7425  grep -v '^ *+' conftest.er1 >conftest.err
7426  rm -f conftest.er1
7427  cat conftest.err >&5
7428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429  (exit $ac_status); } >/dev/null; then
7430  if test -s conftest.err; then
7431    ac_cpp_err=$ac_cxx_preproc_warn_flag
7432    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7433  else
7434    ac_cpp_err=
7435  fi
7436else
7437  ac_cpp_err=yes
7438fi
7439if test -z "$ac_cpp_err"; then
7440  # Broken: success on invalid input.
7441continue
7442else
7443  echo "$as_me: failed program was:" >&5
7444sed 's/^/| /' conftest.$ac_ext >&5
7445
7446  # Passes both tests.
7447ac_preproc_ok=:
7448break
7449fi
7450rm -f conftest.err conftest.$ac_ext
7451
7452done
7453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7454rm -f conftest.err conftest.$ac_ext
7455if $ac_preproc_ok; then
7456  :
7457else
7458  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7459See \`config.log' for more details." >&5
7460echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7461See \`config.log' for more details." >&2;}
7462   { (exit 1); exit 1; }; }
7463fi
7464
7465ac_ext=cc
7466ac_cpp='$CXXCPP $CPPFLAGS'
7467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7470
7471fi
7472
7473
7474# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7475
7476# find the maximum length of command line arguments
7477echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7478echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7479if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7480  echo $ECHO_N "(cached) $ECHO_C" >&6
7481else
7482    i=0
7483  teststring="ABCD"
7484
7485  case $build_os in
7486  msdosdjgpp*)
7487    # On DJGPP, this test can blow up pretty badly due to problems in libc
7488    # (any single argument exceeding 2000 bytes causes a buffer overrun
7489    # during glob expansion).  Even if it were fixed, the result of this
7490    # check would be larger than it should be.
7491    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7492    ;;
7493
7494  gnu*)
7495    # Under GNU Hurd, this test is not required because there is
7496    # no limit to the length of command line arguments.
7497    # Libtool will interpret -1 as no limit whatsoever
7498    lt_cv_sys_max_cmd_len=-1;
7499    ;;
7500
7501  cygwin* | mingw*)
7502    # On Win9x/ME, this test blows up -- it succeeds, but takes
7503    # about 5 minutes as the teststring grows exponentially.
7504    # Worse, since 9x/ME are not pre-emptively multitasking,
7505    # you end up with a "frozen" computer, even though with patience
7506    # the test eventually succeeds (with a max line length of 256k).
7507    # Instead, let's just punt: use the minimum linelength reported by
7508    # all of the supported platforms: 8192 (on NT/2K/XP).
7509    lt_cv_sys_max_cmd_len=8192;
7510    ;;
7511
7512  amigaos*)
7513    # On AmigaOS with pdksh, this test takes hours, literally.
7514    # So we just punt and use a minimum line length of 8192.
7515    lt_cv_sys_max_cmd_len=8192;
7516    ;;
7517
7518  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7519    # This has been around since 386BSD, at least.  Likely further.
7520    if test -x /sbin/sysctl; then
7521      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7522    elif test -x /usr/sbin/sysctl; then
7523      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7524    else
7525      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7526    fi
7527    # And add a safety zone
7528    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7529    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7530    ;;
7531
7532  interix*)
7533    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7534    lt_cv_sys_max_cmd_len=196608
7535    ;;
7536
7537  osf*)
7538    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7539    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7540    # nice to cause kernel panics so lets avoid the loop below.
7541    # First set a reasonable default.
7542    lt_cv_sys_max_cmd_len=16384
7543    #
7544    if test -x /sbin/sysconfig; then
7545      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7546        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7547      esac
7548    fi
7549    ;;
7550  sco3.2v5*)
7551    lt_cv_sys_max_cmd_len=102400
7552    ;;
7553  sysv5* | sco5v6* | sysv4.2uw2*)
7554    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7555    if test -n "$kargmax"; then
7556      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7557    else
7558      lt_cv_sys_max_cmd_len=32768
7559    fi
7560    ;;
7561  *)
7562    # If test is not a shell built-in, we'll probably end up computing a
7563    # maximum length that is only half of the actual maximum length, but
7564    # we can't tell.
7565    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7566    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7567               = "XX$teststring") >/dev/null 2>&1 &&
7568            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7569            lt_cv_sys_max_cmd_len=$new_result &&
7570            test $i != 17 # 1/2 MB should be enough
7571    do
7572      i=`expr $i + 1`
7573      teststring=$teststring$teststring
7574    done
7575    teststring=
7576    # Add a significant safety factor because C++ compilers can tack on massive
7577    # amounts of additional arguments before passing them to the linker.
7578    # It appears as though 1/2 is a usable value.
7579    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7580    ;;
7581  esac
7582
7583fi
7584
7585if test -n $lt_cv_sys_max_cmd_len ; then
7586  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7587echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7588else
7589  echo "$as_me:$LINENO: result: none" >&5
7590echo "${ECHO_T}none" >&6
7591fi
7592
7593
7594
7595
7596# Check for command to grab the raw symbol name followed by C symbol from nm.
7597echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7598echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7599if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7600  echo $ECHO_N "(cached) $ECHO_C" >&6
7601else
7602
7603# These are sane defaults that work on at least a few old systems.
7604# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7605
7606# Character class describing NM global symbol codes.
7607symcode='[BCDEGRST]'
7608
7609# Regexp to match symbols that can be accessed directly from C.
7610sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7611
7612# Transform an extracted symbol line into a proper C declaration
7613lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7614
7615# Transform an extracted symbol line into symbol name and symbol address
7616lt_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'"
7617
7618# Define system-specific variables.
7619case $host_os in
7620aix*)
7621  symcode='[BCDT]'
7622  ;;
7623cygwin* | mingw* | pw32*)
7624  symcode='[ABCDGISTW]'
7625  ;;
7626hpux*) # Its linker distinguishes data from code symbols
7627  if test "$host_cpu" = ia64; then
7628    symcode='[ABCDEGRST]'
7629  fi
7630  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7631  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'"
7632  ;;
7633linux*)
7634  if test "$host_cpu" = ia64; then
7635    symcode='[ABCDGIRSTW]'
7636    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7637    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'"
7638  fi
7639  ;;
7640irix* | nonstopux*)
7641  symcode='[BCDEGRST]'
7642  ;;
7643osf*)
7644  symcode='[BCDEGQRST]'
7645  ;;
7646solaris*)
7647  symcode='[BDRT]'
7648  ;;
7649sco3.2v5*)
7650  symcode='[DT]'
7651  ;;
7652sysv4.2uw2*)
7653  symcode='[DT]'
7654  ;;
7655sysv5* | sco5v6* | unixware* | OpenUNIX*)
7656  symcode='[ABDT]'
7657  ;;
7658sysv4)
7659  symcode='[DFNSTU]'
7660  ;;
7661esac
7662
7663# Handle CRLF in mingw tool chain
7664opt_cr=
7665case $build_os in
7666mingw*)
7667  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7668  ;;
7669esac
7670
7671# If we're using GNU nm, then use its standard symbol codes.
7672case `$NM -V 2>&1` in
7673*GNU* | *'with BFD'*)
7674  symcode='[ABCDGIRSTW]' ;;
7675esac
7676
7677# Try without a prefix undercore, then with it.
7678for ac_symprfx in "" "_"; do
7679
7680  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7681  symxfrm="\\1 $ac_symprfx\\2 \\2"
7682
7683  # Write the raw and C identifiers.
7684  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7685
7686  # Check to see that the pipe works correctly.
7687  pipe_works=no
7688
7689  rm -f conftest*
7690  cat > conftest.$ac_ext <<EOF
7691#ifdef __cplusplus
7692extern "C" {
7693#endif
7694char nm_test_var;
7695void nm_test_func(){}
7696#ifdef __cplusplus
7697}
7698#endif
7699int main(){nm_test_var='a';nm_test_func();return(0);}
7700EOF
7701
7702  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7703  (eval $ac_compile) 2>&5
7704  ac_status=$?
7705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706  (exit $ac_status); }; then
7707    # Now try to grab the symbols.
7708    nlist=conftest.nm
7709    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7710  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7711  ac_status=$?
7712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713  (exit $ac_status); } && test -s "$nlist"; then
7714      # Try sorting and uniquifying the output.
7715      if sort "$nlist" | uniq > "$nlist"T; then
7716        mv -f "$nlist"T "$nlist"
7717      else
7718        rm -f "$nlist"T
7719      fi
7720
7721      # Make sure that we snagged all the symbols we need.
7722      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7723        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7724          cat <<EOF > conftest.$ac_ext
7725#ifdef __cplusplus
7726extern "C" {
7727#endif
7728
7729EOF
7730          # Now generate the symbol file.
7731          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7732
7733          cat <<EOF >> conftest.$ac_ext
7734#if defined (__STDC__) && __STDC__
7735# define lt_ptr_t void *
7736#else
7737# define lt_ptr_t char *
7738# define const
7739#endif
7740
7741/* The mapping between symbol names and symbols. */
7742const struct {
7743  const char *name;
7744  lt_ptr_t address;
7745}
7746lt_preloaded_symbols[] =
7747{
7748EOF
7749          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7750          cat <<\EOF >> conftest.$ac_ext
7751  {0, (lt_ptr_t) 0}
7752};
7753
7754#ifdef __cplusplus
7755}
7756#endif
7757EOF
7758          # Now try linking the two files.
7759          mv conftest.$ac_objext conftstm.$ac_objext
7760          lt_save_LIBS="$LIBS"
7761          lt_save_CFLAGS="$CFLAGS"
7762          LIBS="conftstm.$ac_objext"
7763          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7764          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765  (eval $ac_link) 2>&5
7766  ac_status=$?
7767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7769            pipe_works=yes
7770          fi
7771          LIBS="$lt_save_LIBS"
7772          CFLAGS="$lt_save_CFLAGS"
7773        else
7774          echo "cannot find nm_test_func in $nlist" >&5
7775        fi
7776      else
7777        echo "cannot find nm_test_var in $nlist" >&5
7778      fi
7779    else
7780      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7781    fi
7782  else
7783    echo "$progname: failed program was:" >&5
7784    cat conftest.$ac_ext >&5
7785  fi
7786  rm -f conftest* conftst*
7787
7788  # Do not use the global_symbol_pipe unless it works.
7789  if test "$pipe_works" = yes; then
7790    break
7791  else
7792    lt_cv_sys_global_symbol_pipe=
7793  fi
7794done
7795
7796fi
7797
7798if test -z "$lt_cv_sys_global_symbol_pipe"; then
7799  lt_cv_sys_global_symbol_to_cdecl=
7800fi
7801if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7802  echo "$as_me:$LINENO: result: failed" >&5
7803echo "${ECHO_T}failed" >&6
7804else
7805  echo "$as_me:$LINENO: result: ok" >&5
7806echo "${ECHO_T}ok" >&6
7807fi
7808
7809echo "$as_me:$LINENO: checking for objdir" >&5
7810echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7811if test "${lt_cv_objdir+set}" = set; then
7812  echo $ECHO_N "(cached) $ECHO_C" >&6
7813else
7814  rm -f .libs 2>/dev/null
7815mkdir .libs 2>/dev/null
7816if test -d .libs; then
7817  lt_cv_objdir=.libs
7818else
7819  # MS-DOS does not allow filenames that begin with a dot.
7820  lt_cv_objdir=_libs
7821fi
7822rmdir .libs 2>/dev/null
7823fi
7824echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7825echo "${ECHO_T}$lt_cv_objdir" >&6
7826objdir=$lt_cv_objdir
7827
7828
7829
7830
7831
7832case $host_os in
7833aix3*)
7834  # AIX sometimes has problems with the GCC collect2 program.  For some
7835  # reason, if we set the COLLECT_NAMES environment variable, the problems
7836  # vanish in a puff of smoke.
7837  if test "X${COLLECT_NAMES+set}" != Xset; then
7838    COLLECT_NAMES=
7839    export COLLECT_NAMES
7840  fi
7841  ;;
7842esac
7843
7844# Sed substitution that helps us do robust quoting.  It backslashifies
7845# metacharacters that are still active within double-quoted strings.
7846Xsed='sed -e 1s/^X//'
7847sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7848
7849# Same as above, but do not quote variable references.
7850double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7851
7852# Sed substitution to delay expansion of an escaped shell variable in a
7853# double_quote_subst'ed string.
7854delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7855
7856# Sed substitution to avoid accidental globbing in evaled expressions
7857no_glob_subst='s/\*/\\\*/g'
7858
7859# Constants:
7860rm="rm -f"
7861
7862# Global variables:
7863default_ofile=libtool
7864can_build_shared=yes
7865
7866# All known linkers require a `.a' archive for static linking (except MSVC,
7867# which needs '.lib').
7868libext=a
7869ltmain="$ac_aux_dir/ltmain.sh"
7870ofile="$default_ofile"
7871with_gnu_ld="$lt_cv_prog_gnu_ld"
7872
7873if test -n "$ac_tool_prefix"; then
7874  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7875set dummy ${ac_tool_prefix}ar; ac_word=$2
7876echo "$as_me:$LINENO: checking for $ac_word" >&5
7877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7878if test "${ac_cv_prog_AR+set}" = set; then
7879  echo $ECHO_N "(cached) $ECHO_C" >&6
7880else
7881  if test -n "$AR"; then
7882  ac_cv_prog_AR="$AR" # Let the user override the test.
7883else
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887  IFS=$as_save_IFS
7888  test -z "$as_dir" && as_dir=.
7889  for ac_exec_ext in '' $ac_executable_extensions; do
7890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7891    ac_cv_prog_AR="${ac_tool_prefix}ar"
7892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7893    break 2
7894  fi
7895done
7896done
7897
7898fi
7899fi
7900AR=$ac_cv_prog_AR
7901if test -n "$AR"; then
7902  echo "$as_me:$LINENO: result: $AR" >&5
7903echo "${ECHO_T}$AR" >&6
7904else
7905  echo "$as_me:$LINENO: result: no" >&5
7906echo "${ECHO_T}no" >&6
7907fi
7908
7909fi
7910if test -z "$ac_cv_prog_AR"; then
7911  ac_ct_AR=$AR
7912  # Extract the first word of "ar", so it can be a program name with args.
7913set dummy ar; ac_word=$2
7914echo "$as_me:$LINENO: checking for $ac_word" >&5
7915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7916if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7917  echo $ECHO_N "(cached) $ECHO_C" >&6
7918else
7919  if test -n "$ac_ct_AR"; then
7920  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925  IFS=$as_save_IFS
7926  test -z "$as_dir" && as_dir=.
7927  for ac_exec_ext in '' $ac_executable_extensions; do
7928  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929    ac_cv_prog_ac_ct_AR="ar"
7930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7931    break 2
7932  fi
7933done
7934done
7935
7936  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7937fi
7938fi
7939ac_ct_AR=$ac_cv_prog_ac_ct_AR
7940if test -n "$ac_ct_AR"; then
7941  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7942echo "${ECHO_T}$ac_ct_AR" >&6
7943else
7944  echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
7946fi
7947
7948  AR=$ac_ct_AR
7949else
7950  AR="$ac_cv_prog_AR"
7951fi
7952
7953if test -n "$ac_tool_prefix"; then
7954  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7955set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7956echo "$as_me:$LINENO: checking for $ac_word" >&5
7957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7958if test "${ac_cv_prog_RANLIB+set}" = set; then
7959  echo $ECHO_N "(cached) $ECHO_C" >&6
7960else
7961  if test -n "$RANLIB"; then
7962  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7963else
7964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965for as_dir in $PATH
7966do
7967  IFS=$as_save_IFS
7968  test -z "$as_dir" && as_dir=.
7969  for ac_exec_ext in '' $ac_executable_extensions; do
7970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7971    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7973    break 2
7974  fi
7975done
7976done
7977
7978fi
7979fi
7980RANLIB=$ac_cv_prog_RANLIB
7981if test -n "$RANLIB"; then
7982  echo "$as_me:$LINENO: result: $RANLIB" >&5
7983echo "${ECHO_T}$RANLIB" >&6
7984else
7985  echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6
7987fi
7988
7989fi
7990if test -z "$ac_cv_prog_RANLIB"; then
7991  ac_ct_RANLIB=$RANLIB
7992  # Extract the first word of "ranlib", so it can be a program name with args.
7993set dummy ranlib; ac_word=$2
7994echo "$as_me:$LINENO: checking for $ac_word" >&5
7995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7996if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7997  echo $ECHO_N "(cached) $ECHO_C" >&6
7998else
7999  if test -n "$ac_ct_RANLIB"; then
8000  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8001else
8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005  IFS=$as_save_IFS
8006  test -z "$as_dir" && as_dir=.
8007  for ac_exec_ext in '' $ac_executable_extensions; do
8008  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8009    ac_cv_prog_ac_ct_RANLIB="ranlib"
8010    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011    break 2
8012  fi
8013done
8014done
8015
8016  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8017fi
8018fi
8019ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8020if test -n "$ac_ct_RANLIB"; then
8021  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8022echo "${ECHO_T}$ac_ct_RANLIB" >&6
8023else
8024  echo "$as_me:$LINENO: result: no" >&5
8025echo "${ECHO_T}no" >&6
8026fi
8027
8028  RANLIB=$ac_ct_RANLIB
8029else
8030  RANLIB="$ac_cv_prog_RANLIB"
8031fi
8032
8033if test -n "$ac_tool_prefix"; then
8034  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8035set dummy ${ac_tool_prefix}strip; ac_word=$2
8036echo "$as_me:$LINENO: checking for $ac_word" >&5
8037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8038if test "${ac_cv_prog_STRIP+set}" = set; then
8039  echo $ECHO_N "(cached) $ECHO_C" >&6
8040else
8041  if test -n "$STRIP"; then
8042  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8043else
8044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8045for as_dir in $PATH
8046do
8047  IFS=$as_save_IFS
8048  test -z "$as_dir" && as_dir=.
8049  for ac_exec_ext in '' $ac_executable_extensions; do
8050  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8051    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8052    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8053    break 2
8054  fi
8055done
8056done
8057
8058fi
8059fi
8060STRIP=$ac_cv_prog_STRIP
8061if test -n "$STRIP"; then
8062  echo "$as_me:$LINENO: result: $STRIP" >&5
8063echo "${ECHO_T}$STRIP" >&6
8064else
8065  echo "$as_me:$LINENO: result: no" >&5
8066echo "${ECHO_T}no" >&6
8067fi
8068
8069fi
8070if test -z "$ac_cv_prog_STRIP"; then
8071  ac_ct_STRIP=$STRIP
8072  # Extract the first word of "strip", so it can be a program name with args.
8073set dummy strip; ac_word=$2
8074echo "$as_me:$LINENO: checking for $ac_word" >&5
8075echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8076if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8077  echo $ECHO_N "(cached) $ECHO_C" >&6
8078else
8079  if test -n "$ac_ct_STRIP"; then
8080  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8081else
8082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8083for as_dir in $PATH
8084do
8085  IFS=$as_save_IFS
8086  test -z "$as_dir" && as_dir=.
8087  for ac_exec_ext in '' $ac_executable_extensions; do
8088  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8089    ac_cv_prog_ac_ct_STRIP="strip"
8090    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8091    break 2
8092  fi
8093done
8094done
8095
8096  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8097fi
8098fi
8099ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8100if test -n "$ac_ct_STRIP"; then
8101  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8102echo "${ECHO_T}$ac_ct_STRIP" >&6
8103else
8104  echo "$as_me:$LINENO: result: no" >&5
8105echo "${ECHO_T}no" >&6
8106fi
8107
8108  STRIP=$ac_ct_STRIP
8109else
8110  STRIP="$ac_cv_prog_STRIP"
8111fi
8112
8113
8114old_CC="$CC"
8115old_CFLAGS="$CFLAGS"
8116
8117# Set sane defaults for various variables
8118test -z "$AR" && AR=ar
8119test -z "$AR_FLAGS" && AR_FLAGS=cru
8120test -z "$AS" && AS=as
8121test -z "$CC" && CC=cc
8122test -z "$LTCC" && LTCC=$CC
8123test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8124test -z "$DLLTOOL" && DLLTOOL=dlltool
8125test -z "$LD" && LD=ld
8126test -z "$LN_S" && LN_S="ln -s"
8127test -z "$MAGIC_CMD" && MAGIC_CMD=file
8128test -z "$NM" && NM=nm
8129test -z "$SED" && SED=sed
8130test -z "$OBJDUMP" && OBJDUMP=objdump
8131test -z "$RANLIB" && RANLIB=:
8132test -z "$STRIP" && STRIP=:
8133test -z "$ac_objext" && ac_objext=o
8134
8135# Determine commands to create old-style static archives.
8136old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8137old_postinstall_cmds='chmod 644 $oldlib'
8138old_postuninstall_cmds=
8139
8140if test -n "$RANLIB"; then
8141  case $host_os in
8142  openbsd*)
8143    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8144    ;;
8145  *)
8146    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8147    ;;
8148  esac
8149  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8150fi
8151
8152for cc_temp in $compiler""; do
8153  case $cc_temp in
8154    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8155    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8156    \-*) ;;
8157    *) break;;
8158  esac
8159done
8160cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8161
8162
8163# Only perform the check for file, if the check method requires it
8164case $deplibs_check_method in
8165file_magic*)
8166  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8167    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8168echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8169if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8170  echo $ECHO_N "(cached) $ECHO_C" >&6
8171else
8172  case $MAGIC_CMD in
8173[\\/*] |  ?:[\\/]*)
8174  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8175  ;;
8176*)
8177  lt_save_MAGIC_CMD="$MAGIC_CMD"
8178  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8179  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8180  for ac_dir in $ac_dummy; do
8181    IFS="$lt_save_ifs"
8182    test -z "$ac_dir" && ac_dir=.
8183    if test -f $ac_dir/${ac_tool_prefix}file; then
8184      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8185      if test -n "$file_magic_test_file"; then
8186        case $deplibs_check_method in
8187        "file_magic "*)
8188          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8189          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8190          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8191            $EGREP "$file_magic_regex" > /dev/null; then
8192            :
8193          else
8194            cat <<EOF 1>&2
8195
8196*** Warning: the command libtool uses to detect shared libraries,
8197*** $file_magic_cmd, produces output that libtool cannot recognize.
8198*** The result is that libtool may fail to recognize shared libraries
8199*** as such.  This will affect the creation of libtool libraries that
8200*** depend on shared libraries, but programs linked with such libtool
8201*** libraries will work regardless of this problem.  Nevertheless, you
8202*** may want to report the problem to your system manager and/or to
8203*** bug-libtool@gnu.org
8204
8205EOF
8206          fi ;;
8207        esac
8208      fi
8209      break
8210    fi
8211  done
8212  IFS="$lt_save_ifs"
8213  MAGIC_CMD="$lt_save_MAGIC_CMD"
8214  ;;
8215esac
8216fi
8217
8218MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8219if test -n "$MAGIC_CMD"; then
8220  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8221echo "${ECHO_T}$MAGIC_CMD" >&6
8222else
8223  echo "$as_me:$LINENO: result: no" >&5
8224echo "${ECHO_T}no" >&6
8225fi
8226
8227if test -z "$lt_cv_path_MAGIC_CMD"; then
8228  if test -n "$ac_tool_prefix"; then
8229    echo "$as_me:$LINENO: checking for file" >&5
8230echo $ECHO_N "checking for file... $ECHO_C" >&6
8231if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8232  echo $ECHO_N "(cached) $ECHO_C" >&6
8233else
8234  case $MAGIC_CMD in
8235[\\/*] |  ?:[\\/]*)
8236  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8237  ;;
8238*)
8239  lt_save_MAGIC_CMD="$MAGIC_CMD"
8240  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8241  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8242  for ac_dir in $ac_dummy; do
8243    IFS="$lt_save_ifs"
8244    test -z "$ac_dir" && ac_dir=.
8245    if test -f $ac_dir/file; then
8246      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8247      if test -n "$file_magic_test_file"; then
8248        case $deplibs_check_method in
8249        "file_magic "*)
8250          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8251          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8252          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8253            $EGREP "$file_magic_regex" > /dev/null; then
8254            :
8255          else
8256            cat <<EOF 1>&2
8257
8258*** Warning: the command libtool uses to detect shared libraries,
8259*** $file_magic_cmd, produces output that libtool cannot recognize.
8260*** The result is that libtool may fail to recognize shared libraries
8261*** as such.  This will affect the creation of libtool libraries that
8262*** depend on shared libraries, but programs linked with such libtool
8263*** libraries will work regardless of this problem.  Nevertheless, you
8264*** may want to report the problem to your system manager and/or to
8265*** bug-libtool@gnu.org
8266
8267EOF
8268          fi ;;
8269        esac
8270      fi
8271      break
8272    fi
8273  done
8274  IFS="$lt_save_ifs"
8275  MAGIC_CMD="$lt_save_MAGIC_CMD"
8276  ;;
8277esac
8278fi
8279
8280MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8281if test -n "$MAGIC_CMD"; then
8282  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8283echo "${ECHO_T}$MAGIC_CMD" >&6
8284else
8285  echo "$as_me:$LINENO: result: no" >&5
8286echo "${ECHO_T}no" >&6
8287fi
8288
8289  else
8290    MAGIC_CMD=:
8291  fi
8292fi
8293
8294  fi
8295  ;;
8296esac
8297
8298enable_dlopen=no
8299enable_win32_dll=no
8300
8301# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8302if test "${enable_libtool_lock+set}" = set; then
8303  enableval="$enable_libtool_lock"
8304
8305fi;
8306test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8307
8308
8309# Check whether --with-pic or --without-pic was given.
8310if test "${with_pic+set}" = set; then
8311  withval="$with_pic"
8312  pic_mode="$withval"
8313else
8314  pic_mode=default
8315fi;
8316test -z "$pic_mode" && pic_mode=default
8317
8318# Use C for the default configuration in the libtool script
8319tagname=
8320lt_save_CC="$CC"
8321ac_ext=c
8322ac_cpp='$CPP $CPPFLAGS'
8323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8325ac_compiler_gnu=$ac_cv_c_compiler_gnu
8326
8327
8328# Source file extension for C test sources.
8329ac_ext=c
8330
8331# Object file extension for compiled C test sources.
8332objext=o
8333objext=$objext
8334
8335# Code to be used in simple compile tests
8336lt_simple_compile_test_code="int some_variable = 0;\n"
8337
8338# Code to be used in simple link tests
8339lt_simple_link_test_code='int main(){return(0);}\n'
8340
8341
8342# If no C compiler was specified, use CC.
8343LTCC=${LTCC-"$CC"}
8344
8345# If no C compiler flags were specified, use CFLAGS.
8346LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8347
8348# Allow CC to be a program name with arguments.
8349compiler=$CC
8350
8351
8352# save warnings/boilerplate of simple test code
8353ac_outfile=conftest.$ac_objext
8354printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8355eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8356_lt_compiler_boilerplate=`cat conftest.err`
8357$rm conftest*
8358
8359ac_outfile=conftest.$ac_objext
8360printf "$lt_simple_link_test_code" >conftest.$ac_ext
8361eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8362_lt_linker_boilerplate=`cat conftest.err`
8363$rm conftest*
8364
8365
8366## CAVEAT EMPTOR:
8367## There is no encapsulation within the following macros, do not change
8368## the running order or otherwise move them around unless you know exactly
8369## what you are doing...
8370
8371lt_prog_compiler_no_builtin_flag=
8372
8373if test "$GCC" = yes; then
8374  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8375
8376
8377echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8378echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8379if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8380  echo $ECHO_N "(cached) $ECHO_C" >&6
8381else
8382  lt_cv_prog_compiler_rtti_exceptions=no
8383  ac_outfile=conftest.$ac_objext
8384   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8385   lt_compiler_flag="-fno-rtti -fno-exceptions"
8386   # Insert the option either (1) after the last *FLAGS variable, or
8387   # (2) before a word containing "conftest.", or (3) at the end.
8388   # Note that $ac_compile itself does not contain backslashes and begins
8389   # with a dollar sign (not a hyphen), so the echo should work correctly.
8390   # The option is referenced via a variable to avoid confusing sed.
8391   lt_compile=`echo "$ac_compile" | $SED \
8392   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8393   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8394   -e 's:$: $lt_compiler_flag:'`
8395   (eval echo "\"\$as_me:8395: $lt_compile\"" >&5)
8396   (eval "$lt_compile" 2>conftest.err)
8397   ac_status=$?
8398   cat conftest.err >&5
8399   echo "$as_me:8399: \$? = $ac_status" >&5
8400   if (exit $ac_status) && test -s "$ac_outfile"; then
8401     # The compiler can only warn and ignore the option if not recognized
8402     # So say no if there are warnings other than the usual output.
8403     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8404     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8405     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8406       lt_cv_prog_compiler_rtti_exceptions=yes
8407     fi
8408   fi
8409   $rm conftest*
8410
8411fi
8412echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8413echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8414
8415if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8416    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8417else
8418    :
8419fi
8420
8421fi
8422
8423lt_prog_compiler_wl=
8424lt_prog_compiler_pic=
8425lt_prog_compiler_static=
8426
8427echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8428echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8429
8430  if test "$GCC" = yes; then
8431    lt_prog_compiler_wl='-Wl,'
8432    lt_prog_compiler_static='-static'
8433
8434    case $host_os in
8435      aix*)
8436      # All AIX code is PIC.
8437      if test "$host_cpu" = ia64; then
8438        # AIX 5 now supports IA64 processor
8439        lt_prog_compiler_static='-Bstatic'
8440      fi
8441      ;;
8442
8443    amigaos*)
8444      # FIXME: we need at least 68020 code to build shared libraries, but
8445      # adding the `-m68020' flag to GCC prevents building anything better,
8446      # like `-m68040'.
8447      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8448      ;;
8449
8450    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8451      # PIC is the default for these OSes.
8452      ;;
8453
8454    mingw* | pw32* | os2*)
8455      # This hack is so that the source file can tell whether it is being
8456      # built for inclusion in a dll (and should export symbols for example).
8457      lt_prog_compiler_pic='-DDLL_EXPORT'
8458      ;;
8459
8460    darwin* | rhapsody*)
8461      # PIC is the default on this platform
8462      # Common symbols not allowed in MH_DYLIB files
8463      lt_prog_compiler_pic='-fno-common'
8464      ;;
8465
8466    interix3*)
8467      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8468      # Instead, we relocate shared libraries at runtime.
8469      ;;
8470
8471    msdosdjgpp*)
8472      # Just because we use GCC doesn't mean we suddenly get shared libraries
8473      # on systems that don't support them.
8474      lt_prog_compiler_can_build_shared=no
8475      enable_shared=no
8476      ;;
8477
8478    sysv4*MP*)
8479      if test -d /usr/nec; then
8480        lt_prog_compiler_pic=-Kconform_pic
8481      fi
8482      ;;
8483
8484    hpux*)
8485      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8486      # not for PA HP-UX.
8487      case $host_cpu in
8488      hppa*64*|ia64*)
8489        # +Z the default
8490        ;;
8491      *)
8492        lt_prog_compiler_pic='-fPIC'
8493        ;;
8494      esac
8495      ;;
8496
8497    *)
8498      lt_prog_compiler_pic='-fPIC'
8499      ;;
8500    esac
8501  else
8502    # PORTME Check for flag to pass linker flags through the system compiler.
8503    case $host_os in
8504    aix*)
8505      lt_prog_compiler_wl='-Wl,'
8506      if test "$host_cpu" = ia64; then
8507        # AIX 5 now supports IA64 processor
8508        lt_prog_compiler_static='-Bstatic'
8509      else
8510        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8511      fi
8512      ;;
8513      darwin*)
8514        # PIC is the default on this platform
8515        # Common symbols not allowed in MH_DYLIB files
8516       case $cc_basename in
8517         xlc*)
8518         lt_prog_compiler_pic='-qnocommon'
8519         lt_prog_compiler_wl='-Wl,'
8520         ;;
8521       esac
8522       ;;
8523
8524    mingw* | pw32* | os2*)
8525      # This hack is so that the source file can tell whether it is being
8526      # built for inclusion in a dll (and should export symbols for example).
8527      lt_prog_compiler_pic='-DDLL_EXPORT'
8528      ;;
8529
8530    hpux9* | hpux10* | hpux11*)
8531      lt_prog_compiler_wl='-Wl,'
8532      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8533      # not for PA HP-UX.
8534      case $host_cpu in
8535      hppa*64*|ia64*)
8536        # +Z the default
8537        ;;
8538      *)
8539        lt_prog_compiler_pic='+Z'
8540        ;;
8541      esac
8542      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8543      lt_prog_compiler_static='${wl}-a ${wl}archive'
8544      ;;
8545
8546    irix5* | irix6* | nonstopux*)
8547      lt_prog_compiler_wl='-Wl,'
8548      # PIC (with -KPIC) is the default.
8549      lt_prog_compiler_static='-non_shared'
8550      ;;
8551
8552    newsos6)
8553      lt_prog_compiler_pic='-KPIC'
8554      lt_prog_compiler_static='-Bstatic'
8555      ;;
8556
8557    linux*)
8558      case $cc_basename in
8559      icc* | ecc*)
8560        lt_prog_compiler_wl='-Wl,'
8561        lt_prog_compiler_pic='-KPIC'
8562        lt_prog_compiler_static='-static'
8563        ;;
8564      pgcc* | pgf77* | pgf90* | pgf95*)
8565        # Portland Group compilers (*not* the Pentium gcc compiler,
8566        # which looks to be a dead project)
8567        lt_prog_compiler_wl='-Wl,'
8568        lt_prog_compiler_pic='-fpic'
8569        lt_prog_compiler_static='-Bstatic'
8570        ;;
8571      ccc*)
8572        lt_prog_compiler_wl='-Wl,'
8573        # All Alpha code is PIC.
8574        lt_prog_compiler_static='-non_shared'
8575        ;;
8576      esac
8577      ;;
8578
8579    osf3* | osf4* | osf5*)
8580      lt_prog_compiler_wl='-Wl,'
8581      # All OSF/1 code is PIC.
8582      lt_prog_compiler_static='-non_shared'
8583      ;;
8584
8585    solaris*)
8586      lt_prog_compiler_pic='-KPIC'
8587      lt_prog_compiler_static='-Bstatic'
8588      case $cc_basename in
8589      f77* | f90* | f95*)
8590        lt_prog_compiler_wl='-Qoption ld ';;
8591      *)
8592        lt_prog_compiler_wl='-Wl,';;
8593      esac
8594      ;;
8595
8596    sunos4*)
8597      lt_prog_compiler_wl='-Qoption ld '
8598      lt_prog_compiler_pic='-PIC'
8599      lt_prog_compiler_static='-Bstatic'
8600      ;;
8601
8602    sysv4 | sysv4.2uw2* | sysv4.3*)
8603      lt_prog_compiler_wl='-Wl,'
8604      lt_prog_compiler_pic='-KPIC'
8605      lt_prog_compiler_static='-Bstatic'
8606      ;;
8607
8608    sysv4*MP*)
8609      if test -d /usr/nec ;then
8610        lt_prog_compiler_pic='-Kconform_pic'
8611        lt_prog_compiler_static='-Bstatic'
8612      fi
8613      ;;
8614
8615    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8616      lt_prog_compiler_wl='-Wl,'
8617      lt_prog_compiler_pic='-KPIC'
8618      lt_prog_compiler_static='-Bstatic'
8619      ;;
8620
8621    unicos*)
8622      lt_prog_compiler_wl='-Wl,'
8623      lt_prog_compiler_can_build_shared=no
8624      ;;
8625
8626    uts4*)
8627      lt_prog_compiler_pic='-pic'
8628      lt_prog_compiler_static='-Bstatic'
8629      ;;
8630
8631    *)
8632      lt_prog_compiler_can_build_shared=no
8633      ;;
8634    esac
8635  fi
8636
8637echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8638echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8639
8640#
8641# Check to make sure the PIC flag actually works.
8642#
8643if test -n "$lt_prog_compiler_pic"; then
8644
8645echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8646echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8647if test "${lt_prog_compiler_pic_works+set}" = set; then
8648  echo $ECHO_N "(cached) $ECHO_C" >&6
8649else
8650  lt_prog_compiler_pic_works=no
8651  ac_outfile=conftest.$ac_objext
8652   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8653   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8654   # Insert the option either (1) after the last *FLAGS variable, or
8655   # (2) before a word containing "conftest.", or (3) at the end.
8656   # Note that $ac_compile itself does not contain backslashes and begins
8657   # with a dollar sign (not a hyphen), so the echo should work correctly.
8658   # The option is referenced via a variable to avoid confusing sed.
8659   lt_compile=`echo "$ac_compile" | $SED \
8660   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8661   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8662   -e 's:$: $lt_compiler_flag:'`
8663   (eval echo "\"\$as_me:8663: $lt_compile\"" >&5)
8664   (eval "$lt_compile" 2>conftest.err)
8665   ac_status=$?
8666   cat conftest.err >&5
8667   echo "$as_me:8667: \$? = $ac_status" >&5
8668   if (exit $ac_status) && test -s "$ac_outfile"; then
8669     # The compiler can only warn and ignore the option if not recognized
8670     # So say no if there are warnings other than the usual output.
8671     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8672     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8673     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8674       lt_prog_compiler_pic_works=yes
8675     fi
8676   fi
8677   $rm conftest*
8678
8679fi
8680echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8681echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8682
8683if test x"$lt_prog_compiler_pic_works" = xyes; then
8684    case $lt_prog_compiler_pic in
8685     "" | " "*) ;;
8686     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8687     esac
8688else
8689    lt_prog_compiler_pic=
8690     lt_prog_compiler_can_build_shared=no
8691fi
8692
8693fi
8694case $host_os in
8695  # For platforms which do not support PIC, -DPIC is meaningless:
8696  *djgpp*)
8697    lt_prog_compiler_pic=
8698    ;;
8699  *)
8700    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8701    ;;
8702esac
8703
8704#
8705# Check to make sure the static flag actually works.
8706#
8707wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8708echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8709echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8710if test "${lt_prog_compiler_static_works+set}" = set; then
8711  echo $ECHO_N "(cached) $ECHO_C" >&6
8712else
8713  lt_prog_compiler_static_works=no
8714   save_LDFLAGS="$LDFLAGS"
8715   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8716   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8717   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8718     # The linker can only warn and ignore the option if not recognized
8719     # So say no if there are warnings
8720     if test -s conftest.err; then
8721       # Append any errors to the config.log.
8722       cat conftest.err 1>&5
8723       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8724       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8725       if diff conftest.exp conftest.er2 >/dev/null; then
8726         lt_prog_compiler_static_works=yes
8727       fi
8728     else
8729       lt_prog_compiler_static_works=yes
8730     fi
8731   fi
8732   $rm conftest*
8733   LDFLAGS="$save_LDFLAGS"
8734
8735fi
8736echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8737echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8738
8739if test x"$lt_prog_compiler_static_works" = xyes; then
8740    :
8741else
8742    lt_prog_compiler_static=
8743fi
8744
8745
8746echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8747echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8748if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8749  echo $ECHO_N "(cached) $ECHO_C" >&6
8750else
8751  lt_cv_prog_compiler_c_o=no
8752   $rm -r conftest 2>/dev/null
8753   mkdir conftest
8754   cd conftest
8755   mkdir out
8756   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8757
8758   lt_compiler_flag="-o out/conftest2.$ac_objext"
8759   # Insert the option either (1) after the last *FLAGS variable, or
8760   # (2) before a word containing "conftest.", or (3) at the end.
8761   # Note that $ac_compile itself does not contain backslashes and begins
8762   # with a dollar sign (not a hyphen), so the echo should work correctly.
8763   lt_compile=`echo "$ac_compile" | $SED \
8764   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8765   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8766   -e 's:$: $lt_compiler_flag:'`
8767   (eval echo "\"\$as_me:8767: $lt_compile\"" >&5)
8768   (eval "$lt_compile" 2>out/conftest.err)
8769   ac_status=$?
8770   cat out/conftest.err >&5
8771   echo "$as_me:8771: \$? = $ac_status" >&5
8772   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8773   then
8774     # The compiler can only warn and ignore the option if not recognized
8775     # So say no if there are warnings
8776     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8777     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8778     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8779       lt_cv_prog_compiler_c_o=yes
8780     fi
8781   fi
8782   chmod u+w . 2>&5
8783   $rm conftest*
8784   # SGI C++ compiler will create directory out/ii_files/ for
8785   # template instantiation
8786   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8787   $rm out/* && rmdir out
8788   cd ..
8789   rmdir conftest
8790   $rm conftest*
8791
8792fi
8793echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8794echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8795
8796
8797hard_links="nottested"
8798if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8799  # do not overwrite the value of need_locks provided by the user
8800  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8801echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8802  hard_links=yes
8803  $rm conftest*
8804  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8805  touch conftest.a
8806  ln conftest.a conftest.b 2>&5 || hard_links=no
8807  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8808  echo "$as_me:$LINENO: result: $hard_links" >&5
8809echo "${ECHO_T}$hard_links" >&6
8810  if test "$hard_links" = no; then
8811    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8812echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8813    need_locks=warn
8814  fi
8815else
8816  need_locks=no
8817fi
8818
8819echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8820echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8821
8822  runpath_var=
8823  allow_undefined_flag=
8824  enable_shared_with_static_runtimes=no
8825  archive_cmds=
8826  archive_expsym_cmds=
8827  old_archive_From_new_cmds=
8828  old_archive_from_expsyms_cmds=
8829  export_dynamic_flag_spec=
8830  whole_archive_flag_spec=
8831  thread_safe_flag_spec=
8832  hardcode_libdir_flag_spec=
8833  hardcode_libdir_flag_spec_ld=
8834  hardcode_libdir_separator=
8835  hardcode_direct=no
8836  hardcode_minus_L=no
8837  hardcode_shlibpath_var=unsupported
8838  link_all_deplibs=unknown
8839  hardcode_automatic=no
8840  module_cmds=
8841  module_expsym_cmds=
8842  always_export_symbols=no
8843  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8844  # include_expsyms should be a list of space-separated symbols to be *always*
8845  # included in the symbol list
8846  include_expsyms=
8847  # exclude_expsyms can be an extended regexp of symbols to exclude
8848  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8849  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8850  # as well as any symbol that contains `d'.
8851  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8852  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8853  # platforms (ab)use it in PIC code, but their linkers get confused if
8854  # the symbol is explicitly referenced.  Since portable code cannot
8855  # rely on this symbol name, it's probably fine to never include it in
8856  # preloaded symbol tables.
8857  extract_expsyms_cmds=
8858  # Just being paranoid about ensuring that cc_basename is set.
8859  for cc_temp in $compiler""; do
8860  case $cc_temp in
8861    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8862    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8863    \-*) ;;
8864    *) break;;
8865  esac
8866done
8867cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8868
8869  case $host_os in
8870  cygwin* | mingw* | pw32*)
8871    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8872    # When not using gcc, we currently assume that we are using
8873    # Microsoft Visual C++.
8874    if test "$GCC" != yes; then
8875      with_gnu_ld=no
8876    fi
8877    ;;
8878  interix*)
8879    # we just hope/assume this is gcc and not c89 (= MSVC++)
8880    with_gnu_ld=yes
8881    ;;
8882  openbsd*)
8883    with_gnu_ld=no
8884    ;;
8885  esac
8886
8887  ld_shlibs=yes
8888  if test "$with_gnu_ld" = yes; then
8889    # If archive_cmds runs LD, not CC, wlarc should be empty
8890    wlarc='${wl}'
8891
8892    # Set some defaults for GNU ld with shared library support. These
8893    # are reset later if shared libraries are not supported. Putting them
8894    # here allows them to be overridden if necessary.
8895    runpath_var=LD_RUN_PATH
8896    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8897    export_dynamic_flag_spec='${wl}--export-dynamic'
8898    # ancient GNU ld didn't support --whole-archive et. al.
8899    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8900        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8901      else
8902        whole_archive_flag_spec=
8903    fi
8904    supports_anon_versioning=no
8905    case `$LD -v 2>/dev/null` in
8906      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8907      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8908      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8909      *\ 2.11.*) ;; # other 2.11 versions
8910      *) supports_anon_versioning=yes ;;
8911    esac
8912
8913    # See if GNU ld supports shared libraries.
8914    case $host_os in
8915    aix3* | aix4* | aix5*)
8916      # On AIX/PPC, the GNU linker is very broken
8917      if test "$host_cpu" != ia64; then
8918        ld_shlibs=no
8919        cat <<EOF 1>&2
8920
8921*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8922*** to be unable to reliably create shared libraries on AIX.
8923*** Therefore, libtool is disabling shared libraries support.  If you
8924*** really care for shared libraries, you may want to modify your PATH
8925*** so that a non-GNU linker is found, and then restart.
8926
8927EOF
8928      fi
8929      ;;
8930
8931    amigaos*)
8932      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)'
8933      hardcode_libdir_flag_spec='-L$libdir'
8934      hardcode_minus_L=yes
8935
8936      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8937      # that the semantics of dynamic libraries on AmigaOS, at least up
8938      # to version 4, is to share data among multiple programs linked
8939      # with the same dynamic library.  Since this doesn't match the
8940      # behavior of shared libraries on other platforms, we can't use
8941      # them.
8942      ld_shlibs=no
8943      ;;
8944
8945    beos*)
8946      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8947        allow_undefined_flag=unsupported
8948        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8949        # support --undefined.  This deserves some investigation.  FIXME
8950        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8951      else
8952        ld_shlibs=no
8953      fi
8954      ;;
8955
8956    cygwin* | mingw* | pw32*)
8957      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8958      # as there is no search path for DLLs.
8959      hardcode_libdir_flag_spec='-L$libdir'
8960      allow_undefined_flag=unsupported
8961      always_export_symbols=no
8962      enable_shared_with_static_runtimes=yes
8963      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8964
8965      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8966        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8967        # If the export-symbols file already is a .def file (1st line
8968        # is EXPORTS), use it as is; otherwise, prepend...
8969        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8970          cp $export_symbols $output_objdir/$soname.def;
8971        else
8972          echo EXPORTS > $output_objdir/$soname.def;
8973          cat $export_symbols >> $output_objdir/$soname.def;
8974        fi~
8975        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8976      else
8977        ld_shlibs=no
8978      fi
8979      ;;
8980
8981    interix3*)
8982      hardcode_direct=no
8983      hardcode_shlibpath_var=no
8984      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8985      export_dynamic_flag_spec='${wl}-E'
8986      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8987      # Instead, shared libraries are loaded at an image base (0x10000000 by
8988      # default) and relocated if they conflict, which is a slow very memory
8989      # consuming and fragmenting process.  To avoid this, we pick a random,
8990      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8991      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8992      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8993      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'
8994      ;;
8995
8996    linux*)
8997      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8998        tmp_addflag=
8999        case $cc_basename,$host_cpu in
9000        pgcc*)                          # Portland Group C compiler
9001          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'
9002          tmp_addflag=' $pic_flag'
9003          ;;
9004        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9005          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'
9006          tmp_addflag=' $pic_flag -Mnomain' ;;
9007        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9008          tmp_addflag=' -i_dynamic' ;;
9009        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9010          tmp_addflag=' -i_dynamic -nofor_main' ;;
9011        ifc* | ifort*)                  # Intel Fortran compiler
9012          tmp_addflag=' -nofor_main' ;;
9013        esac
9014        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9015
9016        if test $supports_anon_versioning = yes; then
9017          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9018  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9019  $echo "local: *; };" >> $output_objdir/$libname.ver~
9020          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9021        fi
9022      else
9023        ld_shlibs=no
9024      fi
9025      ;;
9026
9027    netbsd*)
9028      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9029        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9030        wlarc=
9031      else
9032        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9034      fi
9035      ;;
9036
9037    solaris*)
9038      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9039        ld_shlibs=no
9040        cat <<EOF 1>&2
9041
9042*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9043*** create shared libraries on Solaris systems.  Therefore, libtool
9044*** is disabling shared libraries support.  We urge you to upgrade GNU
9045*** binutils to release 2.9.1 or newer.  Another option is to modify
9046*** your PATH or compiler configuration so that the native linker is
9047*** used, and then restart.
9048
9049EOF
9050      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9051        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9053      else
9054        ld_shlibs=no
9055      fi
9056      ;;
9057
9058    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9059      case `$LD -v 2>&1` in
9060        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9061        ld_shlibs=no
9062        cat <<_LT_EOF 1>&2
9063
9064*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9065*** reliably create shared libraries on SCO systems.  Therefore, libtool
9066*** is disabling shared libraries support.  We urge you to upgrade GNU
9067*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9068*** your PATH or compiler configuration so that the native linker is
9069*** used, and then restart.
9070
9071_LT_EOF
9072        ;;
9073        *)
9074          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9075            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9076            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9077            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9078          else
9079            ld_shlibs=no
9080          fi
9081        ;;
9082      esac
9083      ;;
9084
9085    sunos4*)
9086      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9087      wlarc=
9088      hardcode_direct=yes
9089      hardcode_shlibpath_var=no
9090      ;;
9091
9092    *)
9093      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9094        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9095        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9096      else
9097        ld_shlibs=no
9098      fi
9099      ;;
9100    esac
9101
9102    if test "$ld_shlibs" = no; then
9103      runpath_var=
9104      hardcode_libdir_flag_spec=
9105      export_dynamic_flag_spec=
9106      whole_archive_flag_spec=
9107    fi
9108  else
9109    # PORTME fill in a description of your system's linker (not GNU ld)
9110    case $host_os in
9111    aix3*)
9112      allow_undefined_flag=unsupported
9113      always_export_symbols=yes
9114      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'
9115      # Note: this linker hardcodes the directories in LIBPATH if there
9116      # are no directories specified by -L.
9117      hardcode_minus_L=yes
9118      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9119        # Neither direct hardcoding nor static linking is supported with a
9120        # broken collect2.
9121        hardcode_direct=unsupported
9122      fi
9123      ;;
9124
9125    aix4* | aix5*)
9126      if test "$host_cpu" = ia64; then
9127        # On IA64, the linker does run time linking by default, so we don't
9128        # have to do anything special.
9129        aix_use_runtimelinking=no
9130        exp_sym_flag='-Bexport'
9131        no_entry_flag=""
9132      else
9133        # If we're using GNU nm, then we don't want the "-C" option.
9134        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9135        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9136          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'
9137        else
9138          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'
9139        fi
9140        aix_use_runtimelinking=no
9141
9142        # Test if we are trying to use run time linking or normal
9143        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9144        # need to do runtime linking.
9145        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9146          for ld_flag in $LDFLAGS; do
9147          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9148            aix_use_runtimelinking=yes
9149            break
9150          fi
9151          done
9152          ;;
9153        esac
9154
9155        exp_sym_flag='-bexport'
9156        no_entry_flag='-bnoentry'
9157      fi
9158
9159      # When large executables or shared objects are built, AIX ld can
9160      # have problems creating the table of contents.  If linking a library
9161      # or program results in "error TOC overflow" add -mminimal-toc to
9162      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9163      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9164
9165      archive_cmds=''
9166      hardcode_direct=yes
9167      hardcode_libdir_separator=':'
9168      link_all_deplibs=yes
9169
9170      if test "$GCC" = yes; then
9171        case $host_os in aix4.[012]|aix4.[012].*)
9172        # We only want to do this on AIX 4.2 and lower, the check
9173        # below for broken collect2 doesn't work under 4.3+
9174          collect2name=`${CC} -print-prog-name=collect2`
9175          if test -f "$collect2name" && \
9176           strings "$collect2name" | grep resolve_lib_name >/dev/null
9177          then
9178          # We have reworked collect2
9179          hardcode_direct=yes
9180          else
9181          # We have old collect2
9182          hardcode_direct=unsupported
9183          # It fails to find uninstalled libraries when the uninstalled
9184          # path is not listed in the libpath.  Setting hardcode_minus_L
9185          # to unsupported forces relinking
9186          hardcode_minus_L=yes
9187          hardcode_libdir_flag_spec='-L$libdir'
9188          hardcode_libdir_separator=
9189          fi
9190          ;;
9191        esac
9192        shared_flag='-shared'
9193        if test "$aix_use_runtimelinking" = yes; then
9194          shared_flag="$shared_flag "'${wl}-G'
9195        fi
9196      else
9197        # not using gcc
9198        if test "$host_cpu" = ia64; then
9199        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9200        # chokes on -Wl,-G. The following line is correct:
9201          shared_flag='-G'
9202        else
9203          if test "$aix_use_runtimelinking" = yes; then
9204            shared_flag='${wl}-G'
9205          else
9206            shared_flag='${wl}-bM:SRE'
9207          fi
9208        fi
9209      fi
9210
9211      # It seems that -bexpall does not export symbols beginning with
9212      # underscore (_), so it is better to generate a list of symbols to export.
9213      always_export_symbols=yes
9214      if test "$aix_use_runtimelinking" = yes; then
9215        # Warning - without using the other runtime loading flags (-brtl),
9216        # -berok will link without error, but may produce a broken library.
9217        allow_undefined_flag='-berok'
9218       # Determine the default libpath from the value encoded in an empty executable.
9219       cat >conftest.$ac_ext <<_ACEOF
9220/* confdefs.h.  */
9221_ACEOF
9222cat confdefs.h >>conftest.$ac_ext
9223cat >>conftest.$ac_ext <<_ACEOF
9224/* end confdefs.h.  */
9225
9226int
9227main ()
9228{
9229
9230  ;
9231  return 0;
9232}
9233_ACEOF
9234rm -f conftest.$ac_objext conftest$ac_exeext
9235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236  (eval $ac_link) 2>conftest.er1
9237  ac_status=$?
9238  grep -v '^ *+' conftest.er1 >conftest.err
9239  rm -f conftest.er1
9240  cat conftest.err >&5
9241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242  (exit $ac_status); } &&
9243         { ac_try='test -z "$ac_c_werror_flag"
9244                         || test ! -s conftest.err'
9245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246  (eval $ac_try) 2>&5
9247  ac_status=$?
9248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249  (exit $ac_status); }; } &&
9250         { ac_try='test -s conftest$ac_exeext'
9251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252  (eval $ac_try) 2>&5
9253  ac_status=$?
9254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255  (exit $ac_status); }; }; then
9256
9257aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9258}'`
9259# Check for a 64-bit object if we didn't find anything.
9260if 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; }
9261}'`; fi
9262else
9263  echo "$as_me: failed program was:" >&5
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
9266fi
9267rm -f conftest.err conftest.$ac_objext \
9268      conftest$ac_exeext conftest.$ac_ext
9269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9270
9271       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9272        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"
9273       else
9274        if test "$host_cpu" = ia64; then
9275          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9276          allow_undefined_flag="-z nodefs"
9277          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"
9278        else
9279         # Determine the default libpath from the value encoded in an empty executable.
9280         cat >conftest.$ac_ext <<_ACEOF
9281/* confdefs.h.  */
9282_ACEOF
9283cat confdefs.h >>conftest.$ac_ext
9284cat >>conftest.$ac_ext <<_ACEOF
9285/* end confdefs.h.  */
9286
9287int
9288main ()
9289{
9290
9291  ;
9292  return 0;
9293}
9294_ACEOF
9295rm -f conftest.$ac_objext conftest$ac_exeext
9296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297  (eval $ac_link) 2>conftest.er1
9298  ac_status=$?
9299  grep -v '^ *+' conftest.er1 >conftest.err
9300  rm -f conftest.er1
9301  cat conftest.err >&5
9302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303  (exit $ac_status); } &&
9304         { ac_try='test -z "$ac_c_werror_flag"
9305                         || test ! -s conftest.err'
9306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307  (eval $ac_try) 2>&5
9308  ac_status=$?
9309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310  (exit $ac_status); }; } &&
9311         { ac_try='test -s conftest$ac_exeext'
9312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9313  (eval $ac_try) 2>&5
9314  ac_status=$?
9315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316  (exit $ac_status); }; }; then
9317
9318aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9319}'`
9320# Check for a 64-bit object if we didn't find anything.
9321if 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; }
9322}'`; fi
9323else
9324  echo "$as_me: failed program was:" >&5
9325sed 's/^/| /' conftest.$ac_ext >&5
9326
9327fi
9328rm -f conftest.err conftest.$ac_objext \
9329      conftest$ac_exeext conftest.$ac_ext
9330if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9331
9332         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9333          # Warning - without using the other run time loading flags,
9334          # -berok will link without error, but may produce a broken library.
9335          no_undefined_flag=' ${wl}-bernotok'
9336          allow_undefined_flag=' ${wl}-berok'
9337          # Exported symbols can be pulled into shared objects from archives
9338          whole_archive_flag_spec='$convenience'
9339          archive_cmds_need_lc=yes
9340          # This is similar to how AIX traditionally builds its shared libraries.
9341          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'
9342        fi
9343      fi
9344      ;;
9345
9346    amigaos*)
9347      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)'
9348      hardcode_libdir_flag_spec='-L$libdir'
9349      hardcode_minus_L=yes
9350      # see comment about different semantics on the GNU ld section
9351      ld_shlibs=no
9352      ;;
9353
9354    bsdi[45]*)
9355      export_dynamic_flag_spec=-rdynamic
9356      ;;
9357
9358    cygwin* | mingw* | pw32*)
9359      # When not using gcc, we currently assume that we are using
9360      # Microsoft Visual C++.
9361      # hardcode_libdir_flag_spec is actually meaningless, as there is
9362      # no search path for DLLs.
9363      hardcode_libdir_flag_spec=' '
9364      allow_undefined_flag=unsupported
9365      # Tell ltmain to make .lib files, not .a files.
9366      libext=lib
9367      # Tell ltmain to make .dll files, not .so files.
9368      shrext_cmds=".dll"
9369      # FIXME: Setting linknames here is a bad hack.
9370      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9371      # The linker will automatically build a .lib file if we build a DLL.
9372      old_archive_From_new_cmds='true'
9373      # FIXME: Should let the user specify the lib program.
9374      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9375      fix_srcfile_path='`cygpath -w "$srcfile"`'
9376      enable_shared_with_static_runtimes=yes
9377      ;;
9378
9379    darwin* | rhapsody*)
9380      case $host_os in
9381        rhapsody* | darwin1.[012])
9382         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9383         ;;
9384       *) # Darwin 1.3 on
9385         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9386           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9387         else
9388           case ${MACOSX_DEPLOYMENT_TARGET} in
9389             10.[012])
9390               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9391               ;;
9392             10.*)
9393               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9394               ;;
9395           esac
9396         fi
9397         ;;
9398      esac
9399      archive_cmds_need_lc=no
9400      hardcode_direct=no
9401      hardcode_automatic=yes
9402      hardcode_shlibpath_var=unsupported
9403      whole_archive_flag_spec=''
9404      link_all_deplibs=yes
9405    if test "$GCC" = yes ; then
9406        output_verbose_link_cmd='echo'
9407        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9408      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9409      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9410      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}'
9411      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}'
9412    else
9413      case $cc_basename in
9414        xlc*)
9415         output_verbose_link_cmd='echo'
9416         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9417         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9418          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9419         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}'
9420          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}'
9421          ;;
9422       *)
9423         ld_shlibs=no
9424          ;;
9425      esac
9426    fi
9427      ;;
9428
9429    dgux*)
9430      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9431      hardcode_libdir_flag_spec='-L$libdir'
9432      hardcode_shlibpath_var=no
9433      ;;
9434
9435    freebsd1*)
9436      ld_shlibs=no
9437      ;;
9438
9439    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9440    # support.  Future versions do this automatically, but an explicit c++rt0.o
9441    # does not break anything, and helps significantly (at the cost of a little
9442    # extra space).
9443    freebsd2.2*)
9444      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9445      hardcode_libdir_flag_spec='-R$libdir'
9446      hardcode_direct=yes
9447      hardcode_shlibpath_var=no
9448      ;;
9449
9450    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9451    freebsd2*)
9452      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9453      hardcode_direct=yes
9454      hardcode_minus_L=yes
9455      hardcode_shlibpath_var=no
9456      ;;
9457
9458    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9459    freebsd* | kfreebsd*-gnu | dragonfly*)
9460      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9461      hardcode_libdir_flag_spec='-R$libdir'
9462      hardcode_direct=yes
9463      hardcode_shlibpath_var=no
9464      ;;
9465
9466    hpux9*)
9467      if test "$GCC" = yes; then
9468        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'
9469      else
9470        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'
9471      fi
9472      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9473      hardcode_libdir_separator=:
9474      hardcode_direct=yes
9475
9476      # hardcode_minus_L: Not really in the search PATH,
9477      # but as the default location of the library.
9478      hardcode_minus_L=yes
9479      export_dynamic_flag_spec='${wl}-E'
9480      ;;
9481
9482    hpux10*)
9483      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9484        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9485      else
9486        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9487      fi
9488      if test "$with_gnu_ld" = no; then
9489        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9490        hardcode_libdir_separator=:
9491
9492        hardcode_direct=yes
9493        export_dynamic_flag_spec='${wl}-E'
9494
9495        # hardcode_minus_L: Not really in the search PATH,
9496        # but as the default location of the library.
9497        hardcode_minus_L=yes
9498      fi
9499      ;;
9500
9501    hpux11*)
9502      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9503        case $host_cpu in
9504        hppa*64*)
9505          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9506          ;;
9507        ia64*)
9508          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9509          ;;
9510        *)
9511          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9512          ;;
9513        esac
9514      else
9515        case $host_cpu in
9516        hppa*64*)
9517          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9518          ;;
9519        ia64*)
9520          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9521          ;;
9522        *)
9523          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9524          ;;
9525        esac
9526      fi
9527      if test "$with_gnu_ld" = no; then
9528        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9529        hardcode_libdir_separator=:
9530
9531        case $host_cpu in
9532        hppa*64*|ia64*)
9533          hardcode_libdir_flag_spec_ld='+b $libdir'
9534          hardcode_direct=no
9535          hardcode_shlibpath_var=no
9536          ;;
9537        *)
9538          hardcode_direct=yes
9539          export_dynamic_flag_spec='${wl}-E'
9540
9541          # hardcode_minus_L: Not really in the search PATH,
9542          # but as the default location of the library.
9543          hardcode_minus_L=yes
9544          ;;
9545        esac
9546      fi
9547      ;;
9548
9549    irix5* | irix6* | nonstopux*)
9550      if test "$GCC" = yes; then
9551        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'
9552      else
9553        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'
9554        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9555      fi
9556      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557      hardcode_libdir_separator=:
9558      link_all_deplibs=yes
9559      ;;
9560
9561    netbsd*)
9562      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9563        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9564      else
9565        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9566      fi
9567      hardcode_libdir_flag_spec='-R$libdir'
9568      hardcode_direct=yes
9569      hardcode_shlibpath_var=no
9570      ;;
9571
9572    newsos6)
9573      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9574      hardcode_direct=yes
9575      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576      hardcode_libdir_separator=:
9577      hardcode_shlibpath_var=no
9578      ;;
9579
9580    openbsd*)
9581      hardcode_direct=yes
9582      hardcode_shlibpath_var=no
9583      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9584        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9586        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587        export_dynamic_flag_spec='${wl}-E'
9588      else
9589       case $host_os in
9590         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9591           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592           hardcode_libdir_flag_spec='-R$libdir'
9593           ;;
9594         *)
9595           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9597           ;;
9598       esac
9599      fi
9600      ;;
9601
9602    os2*)
9603      hardcode_libdir_flag_spec='-L$libdir'
9604      hardcode_minus_L=yes
9605      allow_undefined_flag=unsupported
9606      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'
9607      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9608      ;;
9609
9610    osf3*)
9611      if test "$GCC" = yes; then
9612        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9613        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'
9614      else
9615        allow_undefined_flag=' -expect_unresolved \*'
9616        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'
9617      fi
9618      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619      hardcode_libdir_separator=:
9620      ;;
9621
9622    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9623      if test "$GCC" = yes; then
9624        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9625        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'
9626        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9627      else
9628        allow_undefined_flag=' -expect_unresolved \*'
9629        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'
9630        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9631        $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'
9632
9633        # Both c and cxx compiler support -rpath directly
9634        hardcode_libdir_flag_spec='-rpath $libdir'
9635      fi
9636      hardcode_libdir_separator=:
9637      ;;
9638
9639    solaris*)
9640      no_undefined_flag=' -z text'
9641      if test "$GCC" = yes; then
9642        wlarc='${wl}'
9643        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9644        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9645          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9646      else
9647        wlarc=''
9648        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9650        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9651      fi
9652      hardcode_libdir_flag_spec='-R$libdir'
9653      hardcode_shlibpath_var=no
9654      case $host_os in
9655      solaris2.[0-5] | solaris2.[0-5].*) ;;
9656      *)
9657        # The compiler driver will combine linker options so we
9658        # cannot just pass the convience library names through
9659        # without $wl, iff we do not link with $LD.
9660        # Luckily, gcc supports the same syntax we need for Sun Studio.
9661        # Supported since Solaris 2.6 (maybe 2.5.1?)
9662        case $wlarc in
9663        '')
9664          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9665        *)
9666          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' ;;
9667        esac ;;
9668      esac
9669      link_all_deplibs=yes
9670      ;;
9671
9672    sunos4*)
9673      if test "x$host_vendor" = xsequent; then
9674        # Use $CC to link under sequent, because it throws in some extra .o
9675        # files that make .init and .fini sections work.
9676        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9677      else
9678        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9679      fi
9680      hardcode_libdir_flag_spec='-L$libdir'
9681      hardcode_direct=yes
9682      hardcode_minus_L=yes
9683      hardcode_shlibpath_var=no
9684      ;;
9685
9686    sysv4)
9687      case $host_vendor in
9688        sni)
9689          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690          hardcode_direct=yes # is this really true???
9691        ;;
9692        siemens)
9693          ## LD is ld it makes a PLAMLIB
9694          ## CC just makes a GrossModule.
9695          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9696          reload_cmds='$CC -r -o $output$reload_objs'
9697          hardcode_direct=no
9698        ;;
9699        motorola)
9700          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9702        ;;
9703      esac
9704      runpath_var='LD_RUN_PATH'
9705      hardcode_shlibpath_var=no
9706      ;;
9707
9708    sysv4.3*)
9709      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9710      hardcode_shlibpath_var=no
9711      export_dynamic_flag_spec='-Bexport'
9712      ;;
9713
9714    sysv4*MP*)
9715      if test -d /usr/nec; then
9716        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9717        hardcode_shlibpath_var=no
9718        runpath_var=LD_RUN_PATH
9719        hardcode_runpath_var=yes
9720        ld_shlibs=yes
9721      fi
9722      ;;
9723
9724    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9725      no_undefined_flag='${wl}-z,text'
9726      archive_cmds_need_lc=no
9727      hardcode_shlibpath_var=no
9728      runpath_var='LD_RUN_PATH'
9729
9730      if test "$GCC" = yes; then
9731        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9732        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9733      else
9734        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9735        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9736      fi
9737      ;;
9738
9739    sysv5* | sco3.2v5* | sco5v6*)
9740      # Note: We can NOT use -z defs as we might desire, because we do not
9741      # link with -lc, and that would cause any symbols used from libc to
9742      # always be unresolved, which means just about no library would
9743      # ever link correctly.  If we're not using GNU ld we use -z text
9744      # though, which does catch some bad symbols but isn't as heavy-handed
9745      # as -z defs.
9746      no_undefined_flag='${wl}-z,text'
9747      allow_undefined_flag='${wl}-z,nodefs'
9748      archive_cmds_need_lc=no
9749      hardcode_shlibpath_var=no
9750      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9751      hardcode_libdir_separator=':'
9752      link_all_deplibs=yes
9753      export_dynamic_flag_spec='${wl}-Bexport'
9754      runpath_var='LD_RUN_PATH'
9755
9756      if test "$GCC" = yes; then
9757        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9758        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9759      else
9760        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9761        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9762      fi
9763      ;;
9764
9765    uts4*)
9766      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9767      hardcode_libdir_flag_spec='-L$libdir'
9768      hardcode_shlibpath_var=no
9769      ;;
9770
9771    *)
9772      ld_shlibs=no
9773      ;;
9774    esac
9775  fi
9776
9777echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9778echo "${ECHO_T}$ld_shlibs" >&6
9779test "$ld_shlibs" = no && can_build_shared=no
9780
9781#
9782# Do we need to explicitly link libc?
9783#
9784case "x$archive_cmds_need_lc" in
9785x|xyes)
9786  # Assume -lc should be added
9787  archive_cmds_need_lc=yes
9788
9789  if test "$enable_shared" = yes && test "$GCC" = yes; then
9790    case $archive_cmds in
9791    *'~'*)
9792      # FIXME: we may have to deal with multi-command sequences.
9793      ;;
9794    '$CC '*)
9795      # Test whether the compiler implicitly links with -lc since on some
9796      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9797      # to ld, don't add -lc before -lgcc.
9798      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9799echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9800      $rm conftest*
9801      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9802
9803      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9804  (eval $ac_compile) 2>&5
9805  ac_status=$?
9806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807  (exit $ac_status); } 2>conftest.err; then
9808        soname=conftest
9809        lib=conftest
9810        libobjs=conftest.$ac_objext
9811        deplibs=
9812        wl=$lt_prog_compiler_wl
9813        pic_flag=$lt_prog_compiler_pic
9814        compiler_flags=-v
9815        linker_flags=-v
9816        verstring=
9817        output_objdir=.
9818        libname=conftest
9819        lt_save_allow_undefined_flag=$allow_undefined_flag
9820        allow_undefined_flag=
9821        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9822  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9823  ac_status=$?
9824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825  (exit $ac_status); }
9826        then
9827          archive_cmds_need_lc=no
9828        else
9829          archive_cmds_need_lc=yes
9830        fi
9831        allow_undefined_flag=$lt_save_allow_undefined_flag
9832      else
9833        cat conftest.err 1>&5
9834      fi
9835      $rm conftest*
9836      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9837echo "${ECHO_T}$archive_cmds_need_lc" >&6
9838      ;;
9839    esac
9840  fi
9841  ;;
9842esac
9843
9844echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9845echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9846library_names_spec=
9847libname_spec='lib$name'
9848soname_spec=
9849shrext_cmds=".so"
9850postinstall_cmds=
9851postuninstall_cmds=
9852finish_cmds=
9853finish_eval=
9854shlibpath_var=
9855shlibpath_overrides_runpath=unknown
9856version_type=none
9857dynamic_linker="$host_os ld.so"
9858sys_lib_dlsearch_path_spec="/lib /usr/lib"
9859if test "$GCC" = yes; then
9860  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9861  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9862    # if the path contains ";" then we assume it to be the separator
9863    # otherwise default to the standard path separator (i.e. ":") - it is
9864    # assumed that no part of a normal pathname contains ";" but that should
9865    # okay in the real world where ";" in dirpaths is itself problematic.
9866    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9867  else
9868    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9869  fi
9870else
9871  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9872fi
9873need_lib_prefix=unknown
9874hardcode_into_libs=no
9875
9876# when you set need_version to no, make sure it does not cause -set_version
9877# flags to be left without arguments
9878need_version=unknown
9879
9880case $host_os in
9881aix3*)
9882  version_type=linux
9883  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9884  shlibpath_var=LIBPATH
9885
9886  # AIX 3 has no versioning support, so we append a major version to the name.
9887  soname_spec='${libname}${release}${shared_ext}$major'
9888  ;;
9889
9890aix4* | aix5*)
9891  version_type=linux
9892  need_lib_prefix=no
9893  need_version=no
9894  hardcode_into_libs=yes
9895  if test "$host_cpu" = ia64; then
9896    # AIX 5 supports IA64
9897    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9898    shlibpath_var=LD_LIBRARY_PATH
9899  else
9900    # With GCC up to 2.95.x, collect2 would create an import file
9901    # for dependence libraries.  The import file would start with
9902    # the line `#! .'.  This would cause the generated library to
9903    # depend on `.', always an invalid library.  This was fixed in
9904    # development snapshots of GCC prior to 3.0.
9905    case $host_os in
9906      aix4 | aix4.[01] | aix4.[01].*)
9907      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9908           echo ' yes '
9909           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9910        :
9911      else
9912        can_build_shared=no
9913      fi
9914      ;;
9915    esac
9916    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9917    # soname into executable. Probably we can add versioning support to
9918    # collect2, so additional links can be useful in future.
9919    if test "$aix_use_runtimelinking" = yes; then
9920      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9921      # instead of lib<name>.a to let people know that these are not
9922      # typical AIX shared libraries.
9923      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9924    else
9925      # We preserve .a as extension for shared libraries through AIX4.2
9926      # and later when we are not doing run time linking.
9927      library_names_spec='${libname}${release}.a $libname.a'
9928      soname_spec='${libname}${release}${shared_ext}$major'
9929    fi
9930    shlibpath_var=LIBPATH
9931  fi
9932  ;;
9933
9934amigaos*)
9935  library_names_spec='$libname.ixlibrary $libname.a'
9936  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9937  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'
9938  ;;
9939
9940beos*)
9941  library_names_spec='${libname}${shared_ext}'
9942  dynamic_linker="$host_os ld.so"
9943  shlibpath_var=LIBRARY_PATH
9944  ;;
9945
9946bsdi[45]*)
9947  version_type=linux
9948  need_version=no
9949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9950  soname_spec='${libname}${release}${shared_ext}$major'
9951  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9952  shlibpath_var=LD_LIBRARY_PATH
9953  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9954  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9955  # the default ld.so.conf also contains /usr/contrib/lib and
9956  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9957  # libtool to hard-code these into programs
9958  ;;
9959
9960cygwin* | mingw* | pw32*)
9961  version_type=windows
9962  shrext_cmds=".dll"
9963  need_version=no
9964  need_lib_prefix=no
9965
9966  case $GCC,$host_os in
9967  yes,cygwin* | yes,mingw* | yes,pw32*)
9968    library_names_spec='$libname.dll.a'
9969    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9970    postinstall_cmds='base_file=`basename \${file}`~
9971      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9972      dldir=$destdir/`dirname \$dlpath`~
9973      test -d \$dldir || mkdir -p \$dldir~
9974      $install_prog $dir/$dlname \$dldir/$dlname~
9975      chmod a+x \$dldir/$dlname'
9976    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9977      dlpath=$dir/\$dldll~
9978       $rm \$dlpath'
9979    shlibpath_overrides_runpath=yes
9980
9981    case $host_os in
9982    cygwin*)
9983      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9984      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9985      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9986      ;;
9987    mingw*)
9988      # MinGW DLLs use traditional 'lib' prefix
9989      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9990      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9991      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9992        # It is most probably a Windows format PATH printed by
9993        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9994        # path with ; separators, and with drive letters. We can handle the
9995        # drive letters (cygwin fileutils understands them), so leave them,
9996        # especially as we might pass files found there to a mingw objdump,
9997        # which wouldn't understand a cygwinified path. Ahh.
9998        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9999      else
10000        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10001      fi
10002      ;;
10003    pw32*)
10004      # pw32 DLLs use 'pw' prefix rather than 'lib'
10005      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10006      ;;
10007    esac
10008    ;;
10009
10010  *)
10011    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10012    ;;
10013  esac
10014  dynamic_linker='Win32 ld.exe'
10015  # FIXME: first we should search . and the directory the executable is in
10016  shlibpath_var=PATH
10017  ;;
10018
10019darwin* | rhapsody*)
10020  dynamic_linker="$host_os dyld"
10021  version_type=darwin
10022  need_lib_prefix=no
10023  need_version=no
10024  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10025  soname_spec='${libname}${release}${major}$shared_ext'
10026  shlibpath_overrides_runpath=yes
10027  shlibpath_var=DYLD_LIBRARY_PATH
10028  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10029  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10030  if test "$GCC" = yes; then
10031    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
10032  else
10033    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10034  fi
10035  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10036  ;;
10037
10038dgux*)
10039  version_type=linux
10040  need_lib_prefix=no
10041  need_version=no
10042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10043  soname_spec='${libname}${release}${shared_ext}$major'
10044  shlibpath_var=LD_LIBRARY_PATH
10045  ;;
10046
10047freebsd1*)
10048  dynamic_linker=no
10049  ;;
10050
10051kfreebsd*-gnu)
10052  version_type=linux
10053  need_lib_prefix=no
10054  need_version=no
10055  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10056  soname_spec='${libname}${release}${shared_ext}$major'
10057  shlibpath_var=LD_LIBRARY_PATH
10058  shlibpath_overrides_runpath=no
10059  hardcode_into_libs=yes
10060  dynamic_linker='GNU ld.so'
10061  ;;
10062
10063freebsd* | dragonfly*)
10064  # DragonFly does not have aout.  When/if they implement a new
10065  # versioning mechanism, adjust this.
10066  if test -x /usr/bin/objformat; then
10067    objformat=`/usr/bin/objformat`
10068  else
10069    case $host_os in
10070    freebsd[123]*) objformat=aout ;;
10071    *) objformat=elf ;;
10072    esac
10073  fi
10074  version_type=freebsd-$objformat
10075  case $version_type in
10076    freebsd-elf*)
10077      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10078      need_version=no
10079      need_lib_prefix=no
10080      ;;
10081    freebsd-*)
10082      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10083      need_version=yes
10084      ;;
10085  esac
10086  shlibpath_var=LD_LIBRARY_PATH
10087  case $host_os in
10088  freebsd2*)
10089    shlibpath_overrides_runpath=yes
10090    ;;
10091  freebsd3.[01]* | freebsdelf3.[01]*)
10092    shlibpath_overrides_runpath=yes
10093    hardcode_into_libs=yes
10094    ;;
10095  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10096  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10097    shlibpath_overrides_runpath=no
10098    hardcode_into_libs=yes
10099    ;;
10100  freebsd*) # from 4.6 on
10101    shlibpath_overrides_runpath=yes
10102    hardcode_into_libs=yes
10103    ;;
10104  esac
10105  ;;
10106
10107gnu*)
10108  version_type=linux
10109  need_lib_prefix=no
10110  need_version=no
10111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10112  soname_spec='${libname}${release}${shared_ext}$major'
10113  shlibpath_var=LD_LIBRARY_PATH
10114  hardcode_into_libs=yes
10115  ;;
10116
10117hpux9* | hpux10* | hpux11*)
10118  # Give a soname corresponding to the major version so that dld.sl refuses to
10119  # link against other versions.
10120  version_type=sunos
10121  need_lib_prefix=no
10122  need_version=no
10123  case $host_cpu in
10124  ia64*)
10125    shrext_cmds='.so'
10126    hardcode_into_libs=yes
10127    dynamic_linker="$host_os dld.so"
10128    shlibpath_var=LD_LIBRARY_PATH
10129    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10130    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131    soname_spec='${libname}${release}${shared_ext}$major'
10132    if test "X$HPUX_IA64_MODE" = X32; then
10133      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10134    else
10135      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10136    fi
10137    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10138    ;;
10139   hppa*64*)
10140     shrext_cmds='.sl'
10141     hardcode_into_libs=yes
10142     dynamic_linker="$host_os dld.sl"
10143     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10144     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146     soname_spec='${libname}${release}${shared_ext}$major'
10147     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10148     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10149     ;;
10150   *)
10151    shrext_cmds='.sl'
10152    dynamic_linker="$host_os dld.sl"
10153    shlibpath_var=SHLIB_PATH
10154    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10155    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10156    soname_spec='${libname}${release}${shared_ext}$major'
10157    ;;
10158  esac
10159  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10160  postinstall_cmds='chmod 555 $lib'
10161  ;;
10162
10163interix3*)
10164  version_type=linux
10165  need_lib_prefix=no
10166  need_version=no
10167  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10168  soname_spec='${libname}${release}${shared_ext}$major'
10169  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10170  shlibpath_var=LD_LIBRARY_PATH
10171  shlibpath_overrides_runpath=no
10172  hardcode_into_libs=yes
10173  ;;
10174
10175irix5* | irix6* | nonstopux*)
10176  case $host_os in
10177    nonstopux*) version_type=nonstopux ;;
10178    *)
10179        if test "$lt_cv_prog_gnu_ld" = yes; then
10180                version_type=linux
10181        else
10182                version_type=irix
10183        fi ;;
10184  esac
10185  need_lib_prefix=no
10186  need_version=no
10187  soname_spec='${libname}${release}${shared_ext}$major'
10188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10189  case $host_os in
10190  irix5* | nonstopux*)
10191    libsuff= shlibsuff=
10192    ;;
10193  *)
10194    case $LD in # libtool.m4 will add one of these switches to LD
10195    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10196      libsuff= shlibsuff= libmagic=32-bit;;
10197    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10198      libsuff=32 shlibsuff=N32 libmagic=N32;;
10199    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10200      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10201    *) libsuff= shlibsuff= libmagic=never-match;;
10202    esac
10203    ;;
10204  esac
10205  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10206  shlibpath_overrides_runpath=no
10207  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10208  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10209  hardcode_into_libs=yes
10210  ;;
10211
10212# No shared lib support for Linux oldld, aout, or coff.
10213linux*oldld* | linux*aout* | linux*coff*)
10214  dynamic_linker=no
10215  ;;
10216
10217# This must be Linux ELF.
10218linux*)
10219  version_type=linux
10220  need_lib_prefix=no
10221  need_version=no
10222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223  soname_spec='${libname}${release}${shared_ext}$major'
10224  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10225  shlibpath_var=LD_LIBRARY_PATH
10226  shlibpath_overrides_runpath=no
10227  # This implies no fast_install, which is unacceptable.
10228  # Some rework will be needed to allow for fast_install
10229  # before this can be enabled.
10230  hardcode_into_libs=yes
10231
10232  # Append ld.so.conf contents to the search path
10233  if test -f /etc/ld.so.conf; then
10234    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10235    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10236  fi
10237
10238  # We used to test for /lib/ld.so.1 and disable shared libraries on
10239  # powerpc, because MkLinux only supported shared libraries with the
10240  # GNU dynamic linker.  Since this was broken with cross compilers,
10241  # most powerpc-linux boxes support dynamic linking these days and
10242  # people can always --disable-shared, the test was removed, and we
10243  # assume the GNU/Linux dynamic linker is in use.
10244  dynamic_linker='GNU/Linux ld.so'
10245  ;;
10246
10247knetbsd*-gnu)
10248  version_type=linux
10249  need_lib_prefix=no
10250  need_version=no
10251  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10252  soname_spec='${libname}${release}${shared_ext}$major'
10253  shlibpath_var=LD_LIBRARY_PATH
10254  shlibpath_overrides_runpath=no
10255  hardcode_into_libs=yes
10256  dynamic_linker='GNU ld.so'
10257  ;;
10258
10259netbsd*)
10260  version_type=sunos
10261  need_lib_prefix=no
10262  need_version=no
10263  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10264    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10265    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10266    dynamic_linker='NetBSD (a.out) ld.so'
10267  else
10268    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10269    soname_spec='${libname}${release}${shared_ext}$major'
10270    dynamic_linker='NetBSD ld.elf_so'
10271  fi
10272  shlibpath_var=LD_LIBRARY_PATH
10273  shlibpath_overrides_runpath=yes
10274  hardcode_into_libs=yes
10275  ;;
10276
10277newsos6)
10278  version_type=linux
10279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10280  shlibpath_var=LD_LIBRARY_PATH
10281  shlibpath_overrides_runpath=yes
10282  ;;
10283
10284nto-qnx*)
10285  version_type=linux
10286  need_lib_prefix=no
10287  need_version=no
10288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289  soname_spec='${libname}${release}${shared_ext}$major'
10290  shlibpath_var=LD_LIBRARY_PATH
10291  shlibpath_overrides_runpath=yes
10292  ;;
10293
10294openbsd*)
10295  version_type=sunos
10296  sys_lib_dlsearch_path_spec="/usr/lib"
10297  need_lib_prefix=no
10298  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10299  case $host_os in
10300    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10301    *)                         need_version=no  ;;
10302  esac
10303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10304  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10305  shlibpath_var=LD_LIBRARY_PATH
10306  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10307    case $host_os in
10308      openbsd2.[89] | openbsd2.[89].*)
10309        shlibpath_overrides_runpath=no
10310        ;;
10311      *)
10312        shlibpath_overrides_runpath=yes
10313        ;;
10314      esac
10315  else
10316    shlibpath_overrides_runpath=yes
10317  fi
10318  ;;
10319
10320os2*)
10321  libname_spec='$name'
10322  shrext_cmds=".dll"
10323  need_lib_prefix=no
10324  library_names_spec='$libname${shared_ext} $libname.a'
10325  dynamic_linker='OS/2 ld.exe'
10326  shlibpath_var=LIBPATH
10327  ;;
10328
10329osf3* | osf4* | osf5*)
10330  version_type=osf
10331  need_lib_prefix=no
10332  need_version=no
10333  soname_spec='${libname}${release}${shared_ext}$major'
10334  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335  shlibpath_var=LD_LIBRARY_PATH
10336  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10337  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10338  ;;
10339
10340solaris*)
10341  version_type=linux
10342  need_lib_prefix=no
10343  need_version=no
10344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10345  soname_spec='${libname}${release}${shared_ext}$major'
10346  shlibpath_var=LD_LIBRARY_PATH
10347  shlibpath_overrides_runpath=yes
10348  hardcode_into_libs=yes
10349  # ldd complains unless libraries are executable
10350  postinstall_cmds='chmod +x $lib'
10351  ;;
10352
10353sunos4*)
10354  version_type=sunos
10355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10356  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10357  shlibpath_var=LD_LIBRARY_PATH
10358  shlibpath_overrides_runpath=yes
10359  if test "$with_gnu_ld" = yes; then
10360    need_lib_prefix=no
10361  fi
10362  need_version=yes
10363  ;;
10364
10365sysv4 | sysv4.3*)
10366  version_type=linux
10367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368  soname_spec='${libname}${release}${shared_ext}$major'
10369  shlibpath_var=LD_LIBRARY_PATH
10370  case $host_vendor in
10371    sni)
10372      shlibpath_overrides_runpath=no
10373      need_lib_prefix=no
10374      export_dynamic_flag_spec='${wl}-Blargedynsym'
10375      runpath_var=LD_RUN_PATH
10376      ;;
10377    siemens)
10378      need_lib_prefix=no
10379      ;;
10380    motorola)
10381      need_lib_prefix=no
10382      need_version=no
10383      shlibpath_overrides_runpath=no
10384      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10385      ;;
10386  esac
10387  ;;
10388
10389sysv4*MP*)
10390  if test -d /usr/nec ;then
10391    version_type=linux
10392    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10393    soname_spec='$libname${shared_ext}.$major'
10394    shlibpath_var=LD_LIBRARY_PATH
10395  fi
10396  ;;
10397
10398sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10399  version_type=freebsd-elf
10400  need_lib_prefix=no
10401  need_version=no
10402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10403  soname_spec='${libname}${release}${shared_ext}$major'
10404  shlibpath_var=LD_LIBRARY_PATH
10405  hardcode_into_libs=yes
10406  if test "$with_gnu_ld" = yes; then
10407    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10408    shlibpath_overrides_runpath=no
10409  else
10410    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10411    shlibpath_overrides_runpath=yes
10412    case $host_os in
10413      sco3.2v5*)
10414        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10415        ;;
10416    esac
10417  fi
10418  sys_lib_dlsearch_path_spec='/usr/lib'
10419  ;;
10420
10421uts4*)
10422  version_type=linux
10423  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10424  soname_spec='${libname}${release}${shared_ext}$major'
10425  shlibpath_var=LD_LIBRARY_PATH
10426  ;;
10427
10428*)
10429  dynamic_linker=no
10430  ;;
10431esac
10432echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10433echo "${ECHO_T}$dynamic_linker" >&6
10434test "$dynamic_linker" = no && can_build_shared=no
10435
10436variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10437if test "$GCC" = yes; then
10438  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10439fi
10440
10441echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10442echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10443hardcode_action=
10444if test -n "$hardcode_libdir_flag_spec" || \
10445   test -n "$runpath_var" || \
10446   test "X$hardcode_automatic" = "Xyes" ; then
10447
10448  # We can hardcode non-existant directories.
10449  if test "$hardcode_direct" != no &&
10450     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10451     # have to relink, otherwise we might link with an installed library
10452     # when we should be linking with a yet-to-be-installed one
10453     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10454     test "$hardcode_minus_L" != no; then
10455    # Linking always hardcodes the temporary library directory.
10456    hardcode_action=relink
10457  else
10458    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10459    hardcode_action=immediate
10460  fi
10461else
10462  # We cannot hardcode anything, or else we can only hardcode existing
10463  # directories.
10464  hardcode_action=unsupported
10465fi
10466echo "$as_me:$LINENO: result: $hardcode_action" >&5
10467echo "${ECHO_T}$hardcode_action" >&6
10468
10469if test "$hardcode_action" = relink; then
10470  # Fast installation is not supported
10471  enable_fast_install=no
10472elif test "$shlibpath_overrides_runpath" = yes ||
10473     test "$enable_shared" = no; then
10474  # Fast installation is not necessary
10475  enable_fast_install=needless
10476fi
10477
10478striplib=
10479old_striplib=
10480echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10481echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10482if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10483  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10484  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10485  echo "$as_me:$LINENO: result: yes" >&5
10486echo "${ECHO_T}yes" >&6
10487else
10488# FIXME - insert some real tests, host_os isn't really good enough
10489  case $host_os in
10490   darwin*)
10491       if test -n "$STRIP" ; then
10492         striplib="$STRIP -x"
10493         echo "$as_me:$LINENO: result: yes" >&5
10494echo "${ECHO_T}yes" >&6
10495       else
10496  echo "$as_me:$LINENO: result: no" >&5
10497echo "${ECHO_T}no" >&6
10498fi
10499       ;;
10500   *)
10501  echo "$as_me:$LINENO: result: no" >&5
10502echo "${ECHO_T}no" >&6
10503    ;;
10504  esac
10505fi
10506
10507if test "x$enable_dlopen" != xyes; then
10508  enable_dlopen=unknown
10509  enable_dlopen_self=unknown
10510  enable_dlopen_self_static=unknown
10511else
10512  lt_cv_dlopen=no
10513  lt_cv_dlopen_libs=
10514
10515  case $host_os in
10516  beos*)
10517    lt_cv_dlopen="load_add_on"
10518    lt_cv_dlopen_libs=
10519    lt_cv_dlopen_self=yes
10520    ;;
10521
10522  mingw* | pw32*)
10523    lt_cv_dlopen="LoadLibrary"
10524    lt_cv_dlopen_libs=
10525   ;;
10526
10527  cygwin*)
10528    lt_cv_dlopen="dlopen"
10529    lt_cv_dlopen_libs=
10530   ;;
10531
10532  darwin*)
10533  # if libdl is installed we need to link against it
10534    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10535echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10536if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10537  echo $ECHO_N "(cached) $ECHO_C" >&6
10538else
10539  ac_check_lib_save_LIBS=$LIBS
10540LIBS="-ldl  $LIBS"
10541cat >conftest.$ac_ext <<_ACEOF
10542/* confdefs.h.  */
10543_ACEOF
10544cat confdefs.h >>conftest.$ac_ext
10545cat >>conftest.$ac_ext <<_ACEOF
10546/* end confdefs.h.  */
10547
10548/* Override any gcc2 internal prototype to avoid an error.  */
10549#ifdef __cplusplus
10550extern "C"
10551#endif
10552/* We use char because int might match the return type of a gcc2
10553   builtin and then its argument prototype would still apply.  */
10554char dlopen ();
10555int
10556main ()
10557{
10558dlopen ();
10559  ;
10560  return 0;
10561}
10562_ACEOF
10563rm -f conftest.$ac_objext conftest$ac_exeext
10564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565  (eval $ac_link) 2>conftest.er1
10566  ac_status=$?
10567  grep -v '^ *+' conftest.er1 >conftest.err
10568  rm -f conftest.er1
10569  cat conftest.err >&5
10570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571  (exit $ac_status); } &&
10572         { ac_try='test -z "$ac_c_werror_flag"
10573                         || test ! -s conftest.err'
10574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575  (eval $ac_try) 2>&5
10576  ac_status=$?
10577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578  (exit $ac_status); }; } &&
10579         { ac_try='test -s conftest$ac_exeext'
10580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581  (eval $ac_try) 2>&5
10582  ac_status=$?
10583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584  (exit $ac_status); }; }; then
10585  ac_cv_lib_dl_dlopen=yes
10586else
10587  echo "$as_me: failed program was:" >&5
10588sed 's/^/| /' conftest.$ac_ext >&5
10589
10590ac_cv_lib_dl_dlopen=no
10591fi
10592rm -f conftest.err conftest.$ac_objext \
10593      conftest$ac_exeext conftest.$ac_ext
10594LIBS=$ac_check_lib_save_LIBS
10595fi
10596echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10597echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10598if test $ac_cv_lib_dl_dlopen = yes; then
10599  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10600else
10601
10602    lt_cv_dlopen="dyld"
10603    lt_cv_dlopen_libs=
10604    lt_cv_dlopen_self=yes
10605
10606fi
10607
10608   ;;
10609
10610  *)
10611    echo "$as_me:$LINENO: checking for shl_load" >&5
10612echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10613if test "${ac_cv_func_shl_load+set}" = set; then
10614  echo $ECHO_N "(cached) $ECHO_C" >&6
10615else
10616  cat >conftest.$ac_ext <<_ACEOF
10617/* confdefs.h.  */
10618_ACEOF
10619cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF
10621/* end confdefs.h.  */
10622/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10623   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10624#define shl_load innocuous_shl_load
10625
10626/* System header to define __stub macros and hopefully few prototypes,
10627    which can conflict with char shl_load (); below.
10628    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10629    <limits.h> exists even on freestanding compilers.  */
10630
10631#ifdef __STDC__
10632# include <limits.h>
10633#else
10634# include <assert.h>
10635#endif
10636
10637#undef shl_load
10638
10639/* Override any gcc2 internal prototype to avoid an error.  */
10640#ifdef __cplusplus
10641extern "C"
10642{
10643#endif
10644/* We use char because int might match the return type of a gcc2
10645   builtin and then its argument prototype would still apply.  */
10646char shl_load ();
10647/* The GNU C library defines this for functions which it implements
10648    to always fail with ENOSYS.  Some functions are actually named
10649    something starting with __ and the normal name is an alias.  */
10650#if defined (__stub_shl_load) || defined (__stub___shl_load)
10651choke me
10652#else
10653char (*f) () = shl_load;
10654#endif
10655#ifdef __cplusplus
10656}
10657#endif
10658
10659int
10660main ()
10661{
10662return f != shl_load;
10663  ;
10664  return 0;
10665}
10666_ACEOF
10667rm -f conftest.$ac_objext conftest$ac_exeext
10668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10669  (eval $ac_link) 2>conftest.er1
10670  ac_status=$?
10671  grep -v '^ *+' conftest.er1 >conftest.err
10672  rm -f conftest.er1
10673  cat conftest.err >&5
10674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675  (exit $ac_status); } &&
10676         { ac_try='test -z "$ac_c_werror_flag"
10677                         || test ! -s conftest.err'
10678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679  (eval $ac_try) 2>&5
10680  ac_status=$?
10681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682  (exit $ac_status); }; } &&
10683         { ac_try='test -s conftest$ac_exeext'
10684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685  (eval $ac_try) 2>&5
10686  ac_status=$?
10687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688  (exit $ac_status); }; }; then
10689  ac_cv_func_shl_load=yes
10690else
10691  echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
10694ac_cv_func_shl_load=no
10695fi
10696rm -f conftest.err conftest.$ac_objext \
10697      conftest$ac_exeext conftest.$ac_ext
10698fi
10699echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10700echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10701if test $ac_cv_func_shl_load = yes; then
10702  lt_cv_dlopen="shl_load"
10703else
10704  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10705echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10706if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10707  echo $ECHO_N "(cached) $ECHO_C" >&6
10708else
10709  ac_check_lib_save_LIBS=$LIBS
10710LIBS="-ldld  $LIBS"
10711cat >conftest.$ac_ext <<_ACEOF
10712/* confdefs.h.  */
10713_ACEOF
10714cat confdefs.h >>conftest.$ac_ext
10715cat >>conftest.$ac_ext <<_ACEOF
10716/* end confdefs.h.  */
10717
10718/* Override any gcc2 internal prototype to avoid an error.  */
10719#ifdef __cplusplus
10720extern "C"
10721#endif
10722/* We use char because int might match the return type of a gcc2
10723   builtin and then its argument prototype would still apply.  */
10724char shl_load ();
10725int
10726main ()
10727{
10728shl_load ();
10729  ;
10730  return 0;
10731}
10732_ACEOF
10733rm -f conftest.$ac_objext conftest$ac_exeext
10734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10735  (eval $ac_link) 2>conftest.er1
10736  ac_status=$?
10737  grep -v '^ *+' conftest.er1 >conftest.err
10738  rm -f conftest.er1
10739  cat conftest.err >&5
10740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741  (exit $ac_status); } &&
10742         { ac_try='test -z "$ac_c_werror_flag"
10743                         || test ! -s conftest.err'
10744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745  (eval $ac_try) 2>&5
10746  ac_status=$?
10747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748  (exit $ac_status); }; } &&
10749         { ac_try='test -s conftest$ac_exeext'
10750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10751  (eval $ac_try) 2>&5
10752  ac_status=$?
10753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754  (exit $ac_status); }; }; then
10755  ac_cv_lib_dld_shl_load=yes
10756else
10757  echo "$as_me: failed program was:" >&5
10758sed 's/^/| /' conftest.$ac_ext >&5
10759
10760ac_cv_lib_dld_shl_load=no
10761fi
10762rm -f conftest.err conftest.$ac_objext \
10763      conftest$ac_exeext conftest.$ac_ext
10764LIBS=$ac_check_lib_save_LIBS
10765fi
10766echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10767echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10768if test $ac_cv_lib_dld_shl_load = yes; then
10769  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10770else
10771  echo "$as_me:$LINENO: checking for dlo