source: stable/0.60/configure @ 1455

Last change on this file since 1455 was 1455, checked in by stefan, 3 months ago

restoring Cgl/stable/0.60

  • Property svn:executable set to *
File size: 757.6 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 Cgl 0.60.
5#
6# Report bugs to <cgl@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cgl'
432PACKAGE_TARNAME='cgl'
433PACKAGE_VERSION='0.60'
434PACKAGE_STRING='Cgl 0.60'
435PACKAGE_BUGREPORT='cgl@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 Data/Sample"
477ac_subdirs_all="$ac_subdirs_all CoinUtils"
478ac_subdirs_all="$ac_subdirs_all Osi"
479ac_subdirs_all="$ac_subdirs_all Clp"
480ac_subdirs_all="$ac_subdirs_all Vol"
481ac_subdirs_all="$ac_subdirs_all DyLP"
482ac_subdirs_all="$ac_subdirs_all Cgl"
483ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
484ac_subst_files=''
485
486# Initialize some variables set by options.
487ac_init_help=
488ac_init_version=false
489# The variables have the same names as the options, with
490# dashes changed to underlines.
491cache_file=/dev/null
492exec_prefix=NONE
493no_create=
494no_recursion=
495prefix=NONE
496program_prefix=NONE
497program_suffix=NONE
498program_transform_name=s,x,x,
499silent=
500site=
501srcdir=
502verbose=
503x_includes=NONE
504x_libraries=NONE
505
506# Installation directory options.
507# These are left unexpanded so users can "make install exec_prefix=/foo"
508# and all the variables that are supposed to be based on exec_prefix
509# by default will actually change.
510# Use braces instead of parens because sh, perl, etc. also accept them.
511bindir='${exec_prefix}/bin'
512sbindir='${exec_prefix}/sbin'
513libexecdir='${exec_prefix}/libexec'
514datadir='${prefix}/share'
515sysconfdir='${prefix}/etc'
516sharedstatedir='${prefix}/com'
517localstatedir='${prefix}/var'
518libdir='${exec_prefix}/lib'
519includedir='${prefix}/include'
520oldincludedir='/usr/include'
521infodir='${prefix}/info'
522mandir='${prefix}/man'
523
524ac_prev=
525for ac_option
526do
527  # If the previous option needs an argument, assign it.
528  if test -n "$ac_prev"; then
529    eval "$ac_prev=\$ac_option"
530    ac_prev=
531    continue
532  fi
533
534  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
535
536  # Accept the important Cygnus configure options, so we can diagnose typos.
537
538  case $ac_option in
539
540  -bindir | --bindir | --bindi | --bind | --bin | --bi)
541    ac_prev=bindir ;;
542  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
543    bindir=$ac_optarg ;;
544
545  -build | --build | --buil | --bui | --bu)
546    ac_prev=build_alias ;;
547  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
548    build_alias=$ac_optarg ;;
549
550  -cache-file | --cache-file | --cache-fil | --cache-fi \
551  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
552    ac_prev=cache_file ;;
553  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
554  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
555    cache_file=$ac_optarg ;;
556
557  --config-cache | -C)
558    cache_file=config.cache ;;
559
560  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
561    ac_prev=datadir ;;
562  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
563  | --da=*)
564    datadir=$ac_optarg ;;
565
566  -disable-* | --disable-*)
567    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
568    # Reject names that are not valid shell variable names.
569    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
570      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
571   { (exit 1); exit 1; }; }
572    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573    eval "enable_$ac_feature=no" ;;
574
575  -enable-* | --enable-*)
576    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
577    # Reject names that are not valid shell variable names.
578    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580   { (exit 1); exit 1; }; }
581    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582    case $ac_option in
583      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
584      *) ac_optarg=yes ;;
585    esac
586    eval "enable_$ac_feature='$ac_optarg'" ;;
587
588  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
589  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
590  | --exec | --exe | --ex)
591    ac_prev=exec_prefix ;;
592  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
593  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
594  | --exec=* | --exe=* | --ex=*)
595    exec_prefix=$ac_optarg ;;
596
597  -gas | --gas | --ga | --g)
598    # Obsolete; use --with-gas.
599    with_gas=yes ;;
600
601  -help | --help | --hel | --he | -h)
602    ac_init_help=long ;;
603  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
604    ac_init_help=recursive ;;
605  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
606    ac_init_help=short ;;
607
608  -host | --host | --hos | --ho)
609    ac_prev=host_alias ;;
610  -host=* | --host=* | --hos=* | --ho=*)
611    host_alias=$ac_optarg ;;
612
613  -includedir | --includedir | --includedi | --included | --include \
614  | --includ | --inclu | --incl | --inc)
615    ac_prev=includedir ;;
616  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
617  | --includ=* | --inclu=* | --incl=* | --inc=*)
618    includedir=$ac_optarg ;;
619
620  -infodir | --infodir | --infodi | --infod | --info | --inf)
621    ac_prev=infodir ;;
622  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
623    infodir=$ac_optarg ;;
624
625  -libdir | --libdir | --libdi | --libd)
626    ac_prev=libdir ;;
627  -libdir=* | --libdir=* | --libdi=* | --libd=*)
628    libdir=$ac_optarg ;;
629
630  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
631  | --libexe | --libex | --libe)
632    ac_prev=libexecdir ;;
633  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
634  | --libexe=* | --libex=* | --libe=*)
635    libexecdir=$ac_optarg ;;
636
637  -localstatedir | --localstatedir | --localstatedi | --localstated \
638  | --localstate | --localstat | --localsta | --localst \
639  | --locals | --local | --loca | --loc | --lo)
640    ac_prev=localstatedir ;;
641  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
642  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
643  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
644    localstatedir=$ac_optarg ;;
645
646  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
647    ac_prev=mandir ;;
648  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
649    mandir=$ac_optarg ;;
650
651  -nfp | --nfp | --nf)
652    # Obsolete; use --without-fp.
653    with_fp=no ;;
654
655  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
656  | --no-cr | --no-c | -n)
657    no_create=yes ;;
658
659  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
660  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
661    no_recursion=yes ;;
662
663  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
664  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
665  | --oldin | --oldi | --old | --ol | --o)
666    ac_prev=oldincludedir ;;
667  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
668  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
669  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
670    oldincludedir=$ac_optarg ;;
671
672  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
673    ac_prev=prefix ;;
674  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
675    prefix=$ac_optarg ;;
676
677  -program-prefix | --program-prefix | --program-prefi | --program-pref \
678  | --program-pre | --program-pr | --program-p)
679    ac_prev=program_prefix ;;
680  -program-prefix=* | --program-prefix=* | --program-prefi=* \
681  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
682    program_prefix=$ac_optarg ;;
683
684  -program-suffix | --program-suffix | --program-suffi | --program-suff \
685  | --program-suf | --program-su | --program-s)
686    ac_prev=program_suffix ;;
687  -program-suffix=* | --program-suffix=* | --program-suffi=* \
688  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
689    program_suffix=$ac_optarg ;;
690
691  -program-transform-name | --program-transform-name \
692  | --program-transform-nam | --program-transform-na \
693  | --program-transform-n | --program-transform- \
694  | --program-transform | --program-transfor \
695  | --program-transfo | --program-transf \
696  | --program-trans | --program-tran \
697  | --progr-tra | --program-tr | --program-t)
698    ac_prev=program_transform_name ;;
699  -program-transform-name=* | --program-transform-name=* \
700  | --program-transform-nam=* | --program-transform-na=* \
701  | --program-transform-n=* | --program-transform-=* \
702  | --program-transform=* | --program-transfor=* \
703  | --program-transfo=* | --program-transf=* \
704  | --program-trans=* | --program-tran=* \
705  | --progr-tra=* | --program-tr=* | --program-t=*)
706    program_transform_name=$ac_optarg ;;
707
708  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
709  | -silent | --silent | --silen | --sile | --sil)
710    silent=yes ;;
711
712  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
713    ac_prev=sbindir ;;
714  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
715  | --sbi=* | --sb=*)
716    sbindir=$ac_optarg ;;
717
718  -sharedstatedir | --sharedstatedir | --sharedstatedi \
719  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
720  | --sharedst | --shareds | --shared | --share | --shar \
721  | --sha | --sh)
722    ac_prev=sharedstatedir ;;
723  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
724  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
725  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
726  | --sha=* | --sh=*)
727    sharedstatedir=$ac_optarg ;;
728
729  -site | --site | --sit)
730    ac_prev=site ;;
731  -site=* | --site=* | --sit=*)
732    site=$ac_optarg ;;
733
734  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
735    ac_prev=srcdir ;;
736  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
737    srcdir=$ac_optarg ;;
738
739  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
740  | --syscon | --sysco | --sysc | --sys | --sy)
741    ac_prev=sysconfdir ;;
742  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
743  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
744    sysconfdir=$ac_optarg ;;
745
746  -target | --target | --targe | --targ | --tar | --ta | --t)
747    ac_prev=target_alias ;;
748  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
749    target_alias=$ac_optarg ;;
750
751  -v | -verbose | --verbose | --verbos | --verbo | --verb)
752    verbose=yes ;;
753
754  -version | --version | --versio | --versi | --vers | -V)
755    ac_init_version=: ;;
756
757  -with-* | --with-*)
758    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
759    # Reject names that are not valid shell variable names.
760    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761      { echo "$as_me: error: invalid package name: $ac_package" >&2
762   { (exit 1); exit 1; }; }
763    ac_package=`echo $ac_package| sed 's/-/_/g'`
764    case $ac_option in
765      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
766      *) ac_optarg=yes ;;
767    esac
768    eval "with_$ac_package='$ac_optarg'" ;;
769
770  -without-* | --without-*)
771    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
772    # Reject names that are not valid shell variable names.
773    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
774      { echo "$as_me: error: invalid package name: $ac_package" >&2
775   { (exit 1); exit 1; }; }
776    ac_package=`echo $ac_package | sed 's/-/_/g'`
777    eval "with_$ac_package=no" ;;
778
779  --x)
780    # Obsolete; use --with-x.
781    with_x=yes ;;
782
783  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
784  | --x-incl | --x-inc | --x-in | --x-i)
785    ac_prev=x_includes ;;
786  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
787  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
788    x_includes=$ac_optarg ;;
789
790  -x-libraries | --x-libraries | --x-librarie | --x-librari \
791  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
792    ac_prev=x_libraries ;;
793  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
794  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
795    x_libraries=$ac_optarg ;;
796
797  -*) { echo "$as_me: error: unrecognized option: $ac_option
798Try \`$0 --help' for more information." >&2
799   { (exit 1); exit 1; }; }
800    ;;
801
802  *=*)
803    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
804    # Reject names that are not valid shell variable names.
805    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
806      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
807   { (exit 1); exit 1; }; }
808    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
809    eval "$ac_envvar='$ac_optarg'"
810    export $ac_envvar ;;
811
812  *)
813    # FIXME: should be removed in autoconf 3.0.
814    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
815    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
816      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
817    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
818    ;;
819
820  esac
821done
822
823if test -n "$ac_prev"; then
824  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
825  { echo "$as_me: error: missing argument to $ac_option" >&2
826   { (exit 1); exit 1; }; }
827fi
828
829# Be sure to have absolute paths.
830for ac_var in exec_prefix prefix
831do
832  eval ac_val=$`echo $ac_var`
833  case $ac_val in
834    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
835    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836   { (exit 1); exit 1; }; };;
837  esac
838done
839
840# Be sure to have absolute paths.
841for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
842              localstatedir libdir includedir oldincludedir infodir mandir
843do
844  eval ac_val=$`echo $ac_var`
845  case $ac_val in
846    [\\/$]* | ?:[\\/]* ) ;;
847    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
848   { (exit 1); exit 1; }; };;
849  esac
850done
851
852# There might be people who depend on the old broken behavior: `$host'
853# used to hold the argument of --host etc.
854# FIXME: To remove some day.
855build=$build_alias
856host=$host_alias
857target=$target_alias
858
859# FIXME: To remove some day.
860if test "x$host_alias" != x; then
861  if test "x$build_alias" = x; then
862    cross_compiling=maybe
863    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
864    If a cross compiler is detected then cross compile mode will be used." >&2
865  elif test "x$build_alias" != "x$host_alias"; then
866    cross_compiling=yes
867  fi
868fi
869
870ac_tool_prefix=
871test -n "$host_alias" && ac_tool_prefix=$host_alias-
872
873test "$silent" = yes && exec 6>/dev/null
874
875
876# Find the source files, if location was not specified.
877if test -z "$srcdir"; then
878  ac_srcdir_defaulted=yes
879  # Try the directory containing this script, then its parent.
880  ac_confdir=`(dirname "$0") 2>/dev/null ||
881$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
882         X"$0" : 'X\(//\)[^/]' \| \
883         X"$0" : 'X\(//\)$' \| \
884         X"$0" : 'X\(/\)' \| \
885         .     : '\(.\)' 2>/dev/null ||
886echo X"$0" |
887    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
888          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
889          /^X\(\/\/\)$/{ s//\1/; q; }
890          /^X\(\/\).*/{ s//\1/; q; }
891          s/.*/./; q'`
892  srcdir=$ac_confdir
893  if test ! -r $srcdir/$ac_unique_file; then
894    srcdir=..
895  fi
896else
897  ac_srcdir_defaulted=no
898fi
899if test ! -r $srcdir/$ac_unique_file; then
900  if test "$ac_srcdir_defaulted" = yes; then
901    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
902   { (exit 1); exit 1; }; }
903  else
904    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
905   { (exit 1); exit 1; }; }
906  fi
907fi
908(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
909  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
910   { (exit 1); exit 1; }; }
911srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
912ac_env_build_alias_set=${build_alias+set}
913ac_env_build_alias_value=$build_alias
914ac_cv_env_build_alias_set=${build_alias+set}
915ac_cv_env_build_alias_value=$build_alias
916ac_env_host_alias_set=${host_alias+set}
917ac_env_host_alias_value=$host_alias
918ac_cv_env_host_alias_set=${host_alias+set}
919ac_cv_env_host_alias_value=$host_alias
920ac_env_target_alias_set=${target_alias+set}
921ac_env_target_alias_value=$target_alias
922ac_cv_env_target_alias_set=${target_alias+set}
923ac_cv_env_target_alias_value=$target_alias
924ac_env_CDEFS_set=${CDEFS+set}
925ac_env_CDEFS_value=$CDEFS
926ac_cv_env_CDEFS_set=${CDEFS+set}
927ac_cv_env_CDEFS_value=$CDEFS
928ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
929ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
930ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
931ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
932ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
933ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
934ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
935ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
936ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
937ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
938ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
939ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
940ac_env_CC_set=${CC+set}
941ac_env_CC_value=$CC
942ac_cv_env_CC_set=${CC+set}
943ac_cv_env_CC_value=$CC
944ac_env_CFLAGS_set=${CFLAGS+set}
945ac_env_CFLAGS_value=$CFLAGS
946ac_cv_env_CFLAGS_set=${CFLAGS+set}
947ac_cv_env_CFLAGS_value=$CFLAGS
948ac_env_LDFLAGS_set=${LDFLAGS+set}
949ac_env_LDFLAGS_value=$LDFLAGS
950ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
951ac_cv_env_LDFLAGS_value=$LDFLAGS
952ac_env_CPPFLAGS_set=${CPPFLAGS+set}
953ac_env_CPPFLAGS_value=$CPPFLAGS
954ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
955ac_cv_env_CPPFLAGS_value=$CPPFLAGS
956ac_env_MPICC_set=${MPICC+set}
957ac_env_MPICC_value=$MPICC
958ac_cv_env_MPICC_set=${MPICC+set}
959ac_cv_env_MPICC_value=$MPICC
960ac_env_CXXDEFS_set=${CXXDEFS+set}
961ac_env_CXXDEFS_value=$CXXDEFS
962ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
963ac_cv_env_CXXDEFS_value=$CXXDEFS
964ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
965ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
966ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
967ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
968ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
969ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
970ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
971ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
972ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
973ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
974ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
975ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
976ac_env_CXX_set=${CXX+set}
977ac_env_CXX_value=$CXX
978ac_cv_env_CXX_set=${CXX+set}
979ac_cv_env_CXX_value=$CXX
980ac_env_CXXFLAGS_set=${CXXFLAGS+set}
981ac_env_CXXFLAGS_value=$CXXFLAGS
982ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
983ac_cv_env_CXXFLAGS_value=$CXXFLAGS
984ac_env_MPICXX_set=${MPICXX+set}
985ac_env_MPICXX_value=$MPICXX
986ac_cv_env_MPICXX_set=${MPICXX+set}
987ac_cv_env_MPICXX_value=$MPICXX
988ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
989ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
990ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
991ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
992ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
993ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
994ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
995ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
996ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
997ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
998ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
999ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1000ac_env_F77_set=${F77+set}
1001ac_env_F77_value=$F77
1002ac_cv_env_F77_set=${F77+set}
1003ac_cv_env_F77_value=$F77
1004ac_env_FFLAGS_set=${FFLAGS+set}
1005ac_env_FFLAGS_value=$FFLAGS
1006ac_cv_env_FFLAGS_set=${FFLAGS+set}
1007ac_cv_env_FFLAGS_value=$FFLAGS
1008ac_env_MPIF77_set=${MPIF77+set}
1009ac_env_MPIF77_value=$MPIF77
1010ac_cv_env_MPIF77_set=${MPIF77+set}
1011ac_cv_env_MPIF77_value=$MPIF77
1012ac_env_CPP_set=${CPP+set}
1013ac_env_CPP_value=$CPP
1014ac_cv_env_CPP_set=${CPP+set}
1015ac_cv_env_CPP_value=$CPP
1016ac_env_CXXCPP_set=${CXXCPP+set}
1017ac_env_CXXCPP_value=$CXXCPP
1018ac_cv_env_CXXCPP_set=${CXXCPP+set}
1019ac_cv_env_CXXCPP_value=$CXXCPP
1020ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1021ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1022ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1023ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1024
1025#
1026# Report the --help message.
1027#
1028if test "$ac_init_help" = "long"; then
1029  # Omit some internal or obsolete options to make the list less imposing.
1030  # This message is too long to be a string in the A/UX 3.1 sh.
1031  cat <<_ACEOF
1032\`configure' configures Cgl 0.60 to adapt to many kinds of systems.
1033
1034Usage: $0 [OPTION]... [VAR=VALUE]...
1035
1036To assign environment variables (e.g., CC, CFLAGS...), specify them as
1037VAR=VALUE.  See below for descriptions of some of the useful variables.
1038
1039Defaults for the options are specified in brackets.
1040
1041Configuration:
1042  -h, --help              display this help and exit
1043      --help=short        display options specific to this package
1044      --help=recursive    display the short help of all the included packages
1045  -V, --version           display version information and exit
1046  -q, --quiet, --silent   do not print \`checking...' messages
1047      --cache-file=FILE   cache test results in FILE [disabled]
1048  -C, --config-cache      alias for \`--cache-file=config.cache'
1049  -n, --no-create         do not create output files
1050      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1051
1052_ACEOF
1053
1054  cat <<_ACEOF
1055Installation directories:
1056  --prefix=PREFIX         install architecture-independent files in PREFIX
1057                          [$ac_default_prefix]
1058  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1059                          [PREFIX]
1060
1061By default, \`make install' will install all the files in
1062\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1063an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1064for instance \`--prefix=\$HOME'.
1065
1066For better control, use the options below.
1067
1068Fine tuning of the installation directories:
1069  --bindir=DIR           user executables [EPREFIX/bin]
1070  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1071  --libexecdir=DIR       program executables [EPREFIX/libexec]
1072  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1073  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1074  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1075  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1076  --libdir=DIR           object code libraries [EPREFIX/lib]
1077  --includedir=DIR       C header files [PREFIX/include]
1078  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1079  --infodir=DIR          info documentation [PREFIX/info]
1080  --mandir=DIR           man documentation [PREFIX/man]
1081_ACEOF
1082
1083  cat <<\_ACEOF
1084
1085Program names:
1086  --program-prefix=PREFIX            prepend PREFIX to installed program names
1087  --program-suffix=SUFFIX            append SUFFIX to installed program names
1088  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1089
1090System types:
1091  --build=BUILD     configure for building on BUILD [guessed]
1092  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1093_ACEOF
1094fi
1095
1096if test -n "$ac_init_help"; then
1097  case $ac_init_help in
1098     short | recursive ) echo "Configuration of Cgl 0.60:";;
1099   esac
1100  cat <<\_ACEOF
1101
1102Optional Features:
1103  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1104  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1105  --enable-debug          compile all projects with debug options tests
1106                          (implies --disable-shared)
1107
1108  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1109  --enable-static[=PKGS]
1110                          build static libraries [default=no]
1111  --disable-dependency-tracking  speeds up one-time build
1112  --enable-dependency-tracking   do not reject slow dependency extractors
1113  --enable-maintainer-mode  enable make rules and dependencies not useful
1114                          (and sometimes confusing) to the casual installer
1115  --enable-shared[=PKGS]
1116                          build shared libraries [default=yes]
1117  --enable-fast-install[=PKGS]
1118                          optimize for fast installation [default=yes]
1119  --disable-libtool-lock  avoid locking (might break parallel builds)
1120  --disable-dependency-linking
1121                          disable linking library dependencies into shared
1122                          libraries
1123
1124Optional Packages:
1125  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1126  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1127  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1128  --with-pic              try to use only PIC/non-PIC objects [default=use
1129                          both]
1130  --with-tags[=TAGS]
1131                          include additional configurations [automatic]
1132
1133  --with-sample-lib linker flags for using project Sample
1134  --with-sample-incdir directory with header files for using project Sample
1135  --with-sample-datadir directory with data files for using project Sample
1136  --with-coinutils-lib linker flags for using project CoinUtils
1137  --with-coinutils-incdir directory with header files for using project
1138                          CoinUtils
1139  --with-coinutils-datadir
1140                          directory with data files for using project
1141                          CoinUtils
1142  --with-osi-lib linker flags for using project Osi
1143  --with-osi-incdir directory with header files for using project Osi
1144  --with-osi-datadir directory with data files for using project Osi
1145  --with-clp-lib linker flags for using project Clp
1146  --with-clp-incdir directory with header files for using project Clp
1147  --with-clp-datadir directory with data files for using project Clp
1148  --with-vol-lib linker flags for using project Vol
1149  --with-vol-incdir directory with header files for using project Vol
1150  --with-vol-datadir directory with data files for using project Vol
1151  --with-dylp-lib linker flags for using project DyLP
1152  --with-dylp-incdir directory with header files for using project DyLP
1153  --with-dylp-datadir directory with data files for using project DyLP
1154  --with-cgl-lib linker flags for using project Cgl
1155  --with-cgl-incdir directory with header files for using project Cgl
1156  --with-cgl-datadir directory with data files for using project Cgl
1157  --with-dot              use dot (from graphviz) when creating documentation
1158                          with doxygen if available; --without-dot to disable
1159
1160Some influential environment variables:
1161  CDEFS       Additional -D flags to be used when compiling C code.
1162  ADD_CFLAGS  Additional C compiler options
1163  DBG_CFLAGS  Debug C compiler options
1164  OPT_CFLAGS  Optimize C compiler options
1165  CC          C compiler command
1166  CFLAGS      C compiler flags
1167  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1168              nonstandard directory <lib dir>
1169  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1170              headers in a nonstandard directory <include dir>
1171  MPICC       C MPI Compiler
1172  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1173  ADD_CXXFLAGS
1174              Additional C++ compiler options
1175  DBG_CXXFLAGS
1176              Debug C++ compiler options
1177  OPT_CXXFLAGS
1178              Optimize C++ compiler options
1179  CXX         C++ compiler command
1180  CXXFLAGS    C++ compiler flags
1181  MPICXX      C++ MPI Compiler
1182  ADD_FFLAGS  Additional Fortran compiler options
1183  DBG_FFLAGS  Debug Fortran compiler options
1184  OPT_FFLAGS  Optimize Fortran compiler options
1185  F77         Fortran 77 compiler command
1186  FFLAGS      Fortran 77 compiler flags
1187  MPIF77      Fortran MPI Compiler
1188  CPP         C preprocessor
1189  CXXCPP      C++ preprocessor
1190  COIN_SKIP_PROJECTS
1191              Set to the subdirectories of projects that should be skipped in
1192              the configuration
1193
1194Use these variables to override the choices made by `configure' or to help
1195it to find libraries and programs with nonstandard names/locations.
1196
1197Report bugs to <cgl@lists.coin-or.org>.
1198_ACEOF
1199fi
1200
1201if test "$ac_init_help" = "recursive"; then
1202  # If there are subdirs, report their specific --help.
1203  ac_popdir=`pwd`
1204  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1205    test -d $ac_dir || continue
1206    ac_builddir=.
1207
1208if test "$ac_dir" != .; then
1209  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1210  # A "../" for each directory in $ac_dir_suffix.
1211  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1212else
1213  ac_dir_suffix= ac_top_builddir=
1214fi
1215
1216case $srcdir in
1217  .)  # No --srcdir option.  We are building in place.
1218    ac_srcdir=.
1219    if test -z "$ac_top_builddir"; then
1220       ac_top_srcdir=.
1221    else
1222       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1223    fi ;;
1224  [\\/]* | ?:[\\/]* )  # Absolute path.
1225    ac_srcdir=$srcdir$ac_dir_suffix;
1226    ac_top_srcdir=$srcdir ;;
1227  *) # Relative path.
1228    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1229    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1230esac
1231
1232# Do not use `cd foo && pwd` to compute absolute paths, because
1233# the directories may not exist.
1234case `pwd` in
1235.) ac_abs_builddir="$ac_dir";;
1236*)
1237  case "$ac_dir" in
1238  .) ac_abs_builddir=`pwd`;;
1239  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1240  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1241  esac;;
1242esac
1243case $ac_abs_builddir in
1244.) ac_abs_top_builddir=${ac_top_builddir}.;;
1245*)
1246  case ${ac_top_builddir}. in
1247  .) ac_abs_top_builddir=$ac_abs_builddir;;
1248  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1249  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1250  esac;;
1251esac
1252case $ac_abs_builddir in
1253.) ac_abs_srcdir=$ac_srcdir;;
1254*)
1255  case $ac_srcdir in
1256  .) ac_abs_srcdir=$ac_abs_builddir;;
1257  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1258  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1259  esac;;
1260esac
1261case $ac_abs_builddir in
1262.) ac_abs_top_srcdir=$ac_top_srcdir;;
1263*)
1264  case $ac_top_srcdir in
1265  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1266  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1267  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1268  esac;;
1269esac
1270
1271    cd $ac_dir
1272    # Check for guested configure; otherwise get Cygnus style configure.
1273    if test -f $ac_srcdir/configure.gnu; then
1274      echo
1275      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1276    elif test -f $ac_srcdir/configure; then
1277      echo
1278      $SHELL $ac_srcdir/configure  --help=recursive
1279    elif test -f $ac_srcdir/configure.ac ||
1280           test -f $ac_srcdir/configure.in; then
1281      echo
1282      $ac_configure --help
1283    else
1284      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1285    fi
1286    cd $ac_popdir
1287  done
1288fi
1289
1290test -n "$ac_init_help" && exit 0
1291if $ac_init_version; then
1292  cat <<\_ACEOF
1293Cgl configure 0.60
1294generated by GNU Autoconf 2.59
1295
1296Copyright (C) 2003 Free Software Foundation, Inc.
1297This configure script is free software; the Free Software Foundation
1298gives unlimited permission to copy, distribute and modify it.
1299
1300
1301Copyright 2006 International Business Machines and others.
1302All Rights Reserved.
1303This file is part of the open source package Coin which is distributed
1304under the Eclipse Public License.
1305_ACEOF
1306  exit 0
1307fi
1308exec 5>config.log
1309cat >&5 <<_ACEOF
1310This file contains any messages produced by compilers while
1311running configure, to aid debugging if configure makes a mistake.
1312
1313It was created by Cgl $as_me 0.60, which was
1314generated by GNU Autoconf 2.59.  Invocation command line was
1315
1316  $ $0 $@
1317
1318_ACEOF
1319{
1320cat <<_ASUNAME
1321## --------- ##
1322## Platform. ##
1323## --------- ##
1324
1325hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1326uname -m = `(uname -m) 2>/dev/null || echo unknown`
1327uname -r = `(uname -r) 2>/dev/null || echo unknown`
1328uname -s = `(uname -s) 2>/dev/null || echo unknown`
1329uname -v = `(uname -v) 2>/dev/null || echo unknown`
1330
1331/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1332/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1333
1334/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1335/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1336/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1337hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1338/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1339/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1340/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1341
1342_ASUNAME
1343
1344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1345for as_dir in $PATH
1346do
1347  IFS=$as_save_IFS
1348  test -z "$as_dir" && as_dir=.
1349  echo "PATH: $as_dir"
1350done
1351
1352} >&5
1353
1354cat >&5 <<_ACEOF
1355
1356
1357## ----------- ##
1358## Core tests. ##
1359## ----------- ##
1360
1361_ACEOF
1362
1363
1364# Keep a trace of the command line.
1365# Strip out --no-create and --no-recursion so they do not pile up.
1366# Strip out --silent because we don't want to record it for future runs.
1367# Also quote any args containing shell meta-characters.
1368# Make two passes to allow for proper duplicate-argument suppression.
1369ac_configure_args=
1370ac_configure_args0=
1371ac_configure_args1=
1372ac_sep=
1373ac_must_keep_next=false
1374for ac_pass in 1 2
1375do
1376  for ac_arg
1377  do
1378    case $ac_arg in
1379    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1380    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1381    | -silent | --silent | --silen | --sile | --sil)
1382      continue ;;
1383    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1384      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1385    esac
1386    case $ac_pass in
1387    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1388    2)
1389      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1390      if test $ac_must_keep_next = true; then
1391        ac_must_keep_next=false # Got value, back to normal.
1392      else
1393        case $ac_arg in
1394          *=* | --config-cache | -C | -disable-* | --disable-* \
1395          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1396          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1397          | -with-* | --with-* | -without-* | --without-* | --x)
1398            case "$ac_configure_args0 " in
1399              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1400            esac
1401            ;;
1402          -* ) ac_must_keep_next=true ;;
1403        esac
1404      fi
1405      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1406      # Get rid of the leading space.
1407      ac_sep=" "
1408      ;;
1409    esac
1410  done
1411done
1412$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1413$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1414
1415# When interrupted or exit'd, cleanup temporary files, and complete
1416# config.log.  We remove comments because anyway the quotes in there
1417# would cause problems or look ugly.
1418# WARNING: Be sure not to use single quotes in there, as some shells,
1419# such as our DU 5.0 friend, will then `close' the trap.
1420trap 'exit_status=$?
1421  # Save into config.log some information that might help in debugging.
1422  {
1423    echo
1424
1425    cat <<\_ASBOX
1426## ---------------- ##
1427## Cache variables. ##
1428## ---------------- ##
1429_ASBOX
1430    echo
1431    # The following way of writing the cache mishandles newlines in values,
1432{
1433  (set) 2>&1 |
1434    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1435    *ac_space=\ *)
1436      sed -n \
1437        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1438          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1439      ;;
1440    *)
1441      sed -n \
1442        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1443      ;;
1444    esac;
1445}
1446    echo
1447
1448    cat <<\_ASBOX
1449## ----------------- ##
1450## Output variables. ##
1451## ----------------- ##
1452_ASBOX
1453    echo
1454    for ac_var in $ac_subst_vars
1455    do
1456      eval ac_val=$`echo $ac_var`
1457      echo "$ac_var='"'"'$ac_val'"'"'"
1458    done | sort
1459    echo
1460
1461    if test -n "$ac_subst_files"; then
1462      cat <<\_ASBOX
1463## ------------- ##
1464## Output files. ##
1465## ------------- ##
1466_ASBOX
1467      echo
1468      for ac_var in $ac_subst_files
1469      do
1470        eval ac_val=$`echo $ac_var`
1471        echo "$ac_var='"'"'$ac_val'"'"'"
1472      done | sort
1473      echo
1474    fi
1475
1476    if test -s confdefs.h; then
1477      cat <<\_ASBOX
1478## ----------- ##
1479## confdefs.h. ##
1480## ----------- ##
1481_ASBOX
1482      echo
1483      sed "/^$/d" confdefs.h | sort
1484      echo
1485    fi
1486    test "$ac_signal" != 0 &&
1487      echo "$as_me: caught signal $ac_signal"
1488    echo "$as_me: exit $exit_status"
1489  } >&5
1490  rm -f core *.core &&
1491  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1492    exit $exit_status
1493     ' 0
1494for ac_signal in 1 2 13 15; do
1495  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1496done
1497ac_signal=0
1498
1499# confdefs.h avoids OS command line length limits that DEFS can exceed.
1500rm -rf conftest* confdefs.h
1501# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1502echo >confdefs.h
1503
1504# Predefined preprocessor variables.
1505
1506cat >>confdefs.h <<_ACEOF
1507#define PACKAGE_NAME "$PACKAGE_NAME"
1508_ACEOF
1509
1510
1511cat >>confdefs.h <<_ACEOF
1512#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1513_ACEOF
1514
1515
1516cat >>confdefs.h <<_ACEOF
1517#define PACKAGE_VERSION "$PACKAGE_VERSION"
1518_ACEOF
1519
1520
1521cat >>confdefs.h <<_ACEOF
1522#define PACKAGE_STRING "$PACKAGE_STRING"
1523_ACEOF
1524
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1528_ACEOF
1529
1530
1531# Let the site file select an alternate cache file if it wants to.
1532# Prefer explicitly selected file to automatically selected ones.
1533if test -z "$CONFIG_SITE"; then
1534  if test "x$prefix" != xNONE; then
1535    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1536  else
1537    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1538  fi
1539fi
1540for ac_site_file in $CONFIG_SITE; do
1541  if test -r "$ac_site_file"; then
1542    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1543echo "$as_me: loading site script $ac_site_file" >&6;}
1544    sed 's/^/| /' "$ac_site_file" >&5
1545    . "$ac_site_file"
1546  fi
1547done
1548
1549if test -r "$cache_file"; then
1550  # Some versions of bash will fail to source /dev/null (special
1551  # files actually), so we avoid doing that.
1552  if test -f "$cache_file"; then
1553    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1554echo "$as_me: loading cache $cache_file" >&6;}
1555    case $cache_file in
1556      [\\/]* | ?:[\\/]* ) . $cache_file;;
1557      *)                      . ./$cache_file;;
1558    esac
1559  fi
1560else
1561  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1562echo "$as_me: creating cache $cache_file" >&6;}
1563  >$cache_file
1564fi
1565
1566# Check that the precious variables saved in the cache have kept the same
1567# value.
1568ac_cache_corrupted=false
1569for ac_var in `(set) 2>&1 |
1570               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1571  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1572  eval ac_new_set=\$ac_env_${ac_var}_set
1573  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1574  eval ac_new_val="\$ac_env_${ac_var}_value"
1575  case $ac_old_set,$ac_new_set in
1576    set,)
1577      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1578echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1579      ac_cache_corrupted=: ;;
1580    ,set)
1581      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1582echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1583      ac_cache_corrupted=: ;;
1584    ,);;
1585    *)
1586      if test "x$ac_old_val" != "x$ac_new_val"; then
1587        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1588echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1589        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1590echo "$as_me:   former value:  $ac_old_val" >&2;}
1591        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1592echo "$as_me:   current value: $ac_new_val" >&2;}
1593        ac_cache_corrupted=:
1594      fi;;
1595  esac
1596  # Pass precious variables to config.status.
1597  if test "$ac_new_set" = set; then
1598    case $ac_new_val in
1599    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1600      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1601    *) ac_arg=$ac_var=$ac_new_val ;;
1602    esac
1603    case " $ac_configure_args " in
1604      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1605      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1606    esac
1607  fi
1608done
1609if $ac_cache_corrupted; then
1610  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1611echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1612  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1613echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1614   { (exit 1); exit 1; }; }
1615fi
1616
1617ac_ext=c
1618ac_cpp='$CPP $CPPFLAGS'
1619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1621ac_compiler_gnu=$ac_cv_c_compiler_gnu
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654# List one file in the package so that the configure script can test
1655# whether the package is actually there
1656
1657
1658# Where should everything be installed by default?  Here, we want it
1659# to be installed directly in 'bin', 'lib', 'include' subdirectories
1660# of the directory where configure is run.  The default would be
1661# /usr/local.
1662
1663
1664#############################################################################
1665#              Create the libtool script for the subdirectories             #
1666#############################################################################
1667
1668ac_aux_dir=
1669for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1670  if test -f $ac_dir/install-sh; then
1671    ac_aux_dir=$ac_dir
1672    ac_install_sh="$ac_aux_dir/install-sh -c"
1673    break
1674  elif test -f $ac_dir/install.sh; then
1675    ac_aux_dir=$ac_dir
1676    ac_install_sh="$ac_aux_dir/install.sh -c"
1677    break
1678  elif test -f $ac_dir/shtool; then
1679    ac_aux_dir=$ac_dir
1680    ac_install_sh="$ac_aux_dir/shtool install -c"
1681    break
1682  fi
1683done
1684if test -z "$ac_aux_dir"; then
1685  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1686echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1687   { (exit 1); exit 1; }; }
1688fi
1689ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1690ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1691ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1692
1693# Make sure we can run config.sub.
1694$ac_config_sub sun4 >/dev/null 2>&1 ||
1695  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1696echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1697   { (exit 1); exit 1; }; }
1698
1699echo "$as_me:$LINENO: checking build system type" >&5
1700echo $ECHO_N "checking build system type... $ECHO_C" >&6
1701if test "${ac_cv_build+set}" = set; then
1702  echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704  ac_cv_build_alias=$build_alias
1705test -z "$ac_cv_build_alias" &&
1706  ac_cv_build_alias=`$ac_config_guess`
1707test -z "$ac_cv_build_alias" &&
1708  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1709echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1710   { (exit 1); exit 1; }; }
1711ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1712  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1713echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1714   { (exit 1); exit 1; }; }
1715
1716fi
1717echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1718echo "${ECHO_T}$ac_cv_build" >&6
1719build=$ac_cv_build
1720build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1721build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1722build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1723
1724
1725
1726# Check if user wants to produce debugging code
1727
1728echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1729echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1730
1731# Check whether --enable-debug or --disable-debug was given.
1732if test "${enable_debug+set}" = set; then
1733  enableval="$enable_debug"
1734  case "${enableval}" in
1735   yes) coin_debug_compile=true
1736        if test "${enable_shared+set}" = set; then :; else
1737          enable_shared=no
1738        fi
1739        ;;
1740   no)  coin_debug_compile=false
1741        ;;
1742   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1743echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1744   { (exit 1); exit 1; }; }
1745        ;;
1746esac
1747else
1748  coin_debug_compile=false
1749fi;
1750
1751 # m4_ifvaln([],
1752
1753if test $coin_debug_compile = true; then
1754  echo "$as_me:$LINENO: result: yes" >&5
1755echo "${ECHO_T}yes" >&6
1756else
1757  echo "$as_me:$LINENO: result: no" >&5
1758echo "${ECHO_T}no" >&6
1759fi
1760
1761 # m4_ifvaln([],
1762
1763
1764
1765# Get the name of the C compiler and appropriate compiler options
1766
1767
1768  # for backward compatibility
1769  # Check whether --enable-doscompile or --disable-doscompile was given.
1770if test "${enable_doscompile+set}" = set; then
1771  enableval="$enable_doscompile"
1772  enable_doscompile=$enableval
1773else
1774  enable_doscompile=no
1775fi;
1776
1777  # Check whether --enable-msvc or --disable-msvc was given.
1778if test "${enable_msvc+set}" = set; then
1779  enableval="$enable_msvc"
1780  enable_msvc=$enableval
1781else
1782  enable_msvc=no
1783     if test "$enable_doscompile" = msvc ; then
1784       enable_msvc=yes
1785     elif test "$enable_doscompile" != no ; then
1786       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1787echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1788   { (exit 1); exit 1; }; }
1789     fi
1790
1791fi;
1792
1793  if test "$enable_msvc" = MD; then
1794    enable_shared=yes
1795    enable_msvc=yes
1796  fi
1797
1798  if test "$enable_msvc" = yes; then
1799    case $build in
1800      *-cygwin* | *-mingw*) ;;
1801      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1802echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1803   { (exit 1); exit 1; }; } ;;
1804    esac
1805  fi
1806
1807
1808
1809ac_ext=c
1810ac_cpp='$CPP $CPPFLAGS'
1811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1813ac_compiler_gnu=$ac_cv_c_compiler_gnu
1814
1815
1816# For consistency, we set the C compiler to the same value of the C++
1817# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1818if test x"$CXX" != x; then
1819  case "$CXX" in
1820    clang* ) ;;
1821    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1822      if test x"$CC" = x; then
1823        CC="$CXX"
1824        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1825echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1826      fi
1827      ;;
1828  esac
1829fi
1830
1831
1832
1833
1834
1835
1836coin_has_cc=yes
1837
1838save_cflags="$CFLAGS"
1839
1840# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1841# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1842# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1843# compiler. In this case, put cc after gcc.
1844
1845case $build in
1846  *-cygwin* | *-mingw*)
1847             if test "$enable_msvc" = yes ; then
1848               comps="icl cl gcc"
1849             else
1850               comps="gcc icl cl"
1851             fi ;;
1852  *-*-solaris*)
1853             # Extract the first word of "cc", so it can be a program name with args.
1854set dummy cc; ac_word=$2
1855echo "$as_me:$LINENO: checking for $ac_word" >&5
1856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1858  echo $ECHO_N "(cached) $ECHO_C" >&6
1859else
1860  if test -n "$sol_cc_compiler"; then
1861  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1862else
1863  ac_prog_rejected=no
1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865for as_dir in $PATH
1866do
1867  IFS=$as_save_IFS
1868  test -z "$as_dir" && as_dir=.
1869  for ac_exec_ext in '' $ac_executable_extensions; do
1870  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1872       ac_prog_rejected=yes
1873       continue
1874     fi
1875    ac_cv_prog_sol_cc_compiler="cc"
1876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877    break 2
1878  fi
1879done
1880done
1881
1882if test $ac_prog_rejected = yes; then
1883  # We found a bogon in the path, so make sure we never use it.
1884  set dummy $ac_cv_prog_sol_cc_compiler
1885  shift
1886  if test $# != 0; then
1887    # We chose a different compiler from the bogus one.
1888    # However, it has the same basename, so the bogon will be chosen
1889    # first if we set sol_cc_compiler to just the basename; use the full file name.
1890    shift
1891    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1892  fi
1893fi
1894fi
1895fi
1896sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1897if test -n "$sol_cc_compiler"; then
1898  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1899echo "${ECHO_T}$sol_cc_compiler" >&6
1900else
1901  echo "$as_me:$LINENO: result: no" >&5
1902echo "${ECHO_T}no" >&6
1903fi
1904
1905             if test "$sol_cc_compiler" = "cc" ; then
1906               comps="cc xlc gcc pgcc icc"
1907             else
1908               comps="xlc gcc pgcc icc cc"
1909             fi
1910             ;;
1911  *-*-darwin*) comps="clang gcc cc" ;;
1912  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1913  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1914  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1915esac
1916
1917# We delete the cached value, since the test might not have been
1918# performed with our choice of compilers earlier
1919$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1920# AC_MSG_NOTICE([C compiler candidates: $comps])
1921ac_ext=c
1922ac_cpp='$CPP $CPPFLAGS'
1923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1925ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926if test -n "$ac_tool_prefix"; then
1927  for ac_prog in $comps
1928  do
1929    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1930set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1931echo "$as_me:$LINENO: checking for $ac_word" >&5
1932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933if test "${ac_cv_prog_CC+set}" = set; then
1934  echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936  if test -n "$CC"; then
1937  ac_cv_prog_CC="$CC" # Let the user override the test.
1938else
1939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940for as_dir in $PATH
1941do
1942  IFS=$as_save_IFS
1943  test -z "$as_dir" && as_dir=.
1944  for ac_exec_ext in '' $ac_executable_extensions; do
1945  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1947    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948    break 2
1949  fi
1950done
1951done
1952
1953fi
1954fi
1955CC=$ac_cv_prog_CC
1956if test -n "$CC"; then
1957  echo "$as_me:$LINENO: result: $CC" >&5
1958echo "${ECHO_T}$CC" >&6
1959else
1960  echo "$as_me:$LINENO: result: no" >&5
1961echo "${ECHO_T}no" >&6
1962fi
1963
1964    test -n "$CC" && break
1965  done
1966fi
1967if test -z "$CC"; then
1968  ac_ct_CC=$CC
1969  for ac_prog in $comps
1970do
1971  # Extract the first word of "$ac_prog", so it can be a program name with args.
1972set dummy $ac_prog; ac_word=$2
1973echo "$as_me:$LINENO: checking for $ac_word" >&5
1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1976  echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
1978  if test -n "$ac_ct_CC"; then
1979  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1980else
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984  IFS=$as_save_IFS
1985  test -z "$as_dir" && as_dir=.
1986  for ac_exec_ext in '' $ac_executable_extensions; do
1987  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988    ac_cv_prog_ac_ct_CC="$ac_prog"
1989    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990    break 2
1991  fi
1992done
1993done
1994
1995fi
1996fi
1997ac_ct_CC=$ac_cv_prog_ac_ct_CC
1998if test -n "$ac_ct_CC"; then
1999  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2000echo "${ECHO_T}$ac_ct_CC" >&6
2001else
2002  echo "$as_me:$LINENO: result: no" >&5
2003echo "${ECHO_T}no" >&6
2004fi
2005
2006  test -n "$ac_ct_CC" && break
2007done
2008
2009  CC=$ac_ct_CC
2010fi
2011
2012
2013test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2014See \`config.log' for more details." >&5
2015echo "$as_me: error: no acceptable C compiler found in \$PATH
2016See \`config.log' for more details." >&2;}
2017   { (exit 1); exit 1; }; }
2018
2019# Provide some information about the compiler.
2020echo "$as_me:$LINENO:" \
2021     "checking for C compiler version" >&5
2022ac_compiler=`set X $ac_compile; echo $2`
2023{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2024  (eval $ac_compiler --version </dev/null >&5) 2>&5
2025  ac_status=$?
2026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027  (exit $ac_status); }
2028{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2029  (eval $ac_compiler -v </dev/null >&5) 2>&5
2030  ac_status=$?
2031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032  (exit $ac_status); }
2033{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2034  (eval $ac_compiler -V </dev/null >&5) 2>&5
2035  ac_status=$?
2036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037  (exit $ac_status); }
2038
2039cat >conftest.$ac_ext <<_ACEOF
2040/* confdefs.h.  */
2041_ACEOF
2042cat confdefs.h >>conftest.$ac_ext
2043cat >>conftest.$ac_ext <<_ACEOF
2044/* end confdefs.h.  */
2045
2046int
2047main ()
2048{
2049
2050  ;
2051  return 0;
2052}
2053_ACEOF
2054ac_clean_files_save=$ac_clean_files
2055ac_clean_files="$ac_clean_files a.out a.exe b.out"
2056# Try to create an executable without -o first, disregard a.out.
2057# It will help us diagnose broken compilers, and finding out an intuition
2058# of exeext.
2059echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2060echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2061ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2062if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2063  (eval $ac_link_default) 2>&5
2064  ac_status=$?
2065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066  (exit $ac_status); }; then
2067  # Find the output, starting from the most likely.  This scheme is
2068# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2069# resort.
2070
2071# Be careful to initialize this variable, since it used to be cached.
2072# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2073ac_cv_exeext=
2074# b.out is created by i960 compilers.
2075for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2076do
2077  test -f "$ac_file" || continue
2078  case $ac_file in
2079    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2080        ;;
2081    conftest.$ac_ext )
2082        # This is the source file.
2083        ;;
2084    [ab].out )
2085        # We found the default executable, but exeext='' is most
2086        # certainly right.
2087        break;;
2088    *.* )
2089        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2090        # FIXME: I believe we export ac_cv_exeext for Libtool,
2091        # but it would be cool to find out if it's true.  Does anybody
2092        # maintain Libtool? --akim.
2093        export ac_cv_exeext
2094        break;;
2095    * )
2096        break;;
2097  esac
2098done
2099else
2100  echo "$as_me: failed program was:" >&5
2101sed 's/^/| /' conftest.$ac_ext >&5
2102
2103{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2104See \`config.log' for more details." >&5
2105echo "$as_me: error: C compiler cannot create executables
2106See \`config.log' for more details." >&2;}
2107   { (exit 77); exit 77; }; }
2108fi
2109
2110ac_exeext=$ac_cv_exeext
2111echo "$as_me:$LINENO: result: $ac_file" >&5
2112echo "${ECHO_T}$ac_file" >&6
2113
2114# Check the compiler produces executables we can run.  If not, either
2115# the compiler is broken, or we cross compile.
2116echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2117echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2118# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2119# If not cross compiling, check that we can run a simple program.
2120if test "$cross_compiling" != yes; then
2121  if { ac_try='./$ac_file'
2122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123  (eval $ac_try) 2>&5
2124  ac_status=$?
2125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126  (exit $ac_status); }; }; then
2127    cross_compiling=no
2128  else
2129    if test "$cross_compiling" = maybe; then
2130        cross_compiling=yes
2131    else
2132        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2133If you meant to cross compile, use \`--host'.
2134See \`config.log' for more details." >&5
2135echo "$as_me: error: cannot run C compiled programs.
2136If you meant to cross compile, use \`--host'.
2137See \`config.log' for more details." >&2;}
2138   { (exit 1); exit 1; }; }
2139    fi
2140  fi
2141fi
2142echo "$as_me:$LINENO: result: yes" >&5
2143echo "${ECHO_T}yes" >&6
2144
2145rm -f a.out a.exe conftest$ac_cv_exeext b.out
2146ac_clean_files=$ac_clean_files_save
2147# Check the compiler produces executables we can run.  If not, either
2148# the compiler is broken, or we cross compile.
2149echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2150echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2151echo "$as_me:$LINENO: result: $cross_compiling" >&5
2152echo "${ECHO_T}$cross_compiling" >&6
2153
2154echo "$as_me:$LINENO: checking for suffix of executables" >&5
2155echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2157  (eval $ac_link) 2>&5
2158  ac_status=$?
2159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160  (exit $ac_status); }; then
2161  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2162# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2163# work properly (i.e., refer to `conftest.exe'), while it won't with
2164# `rm'.
2165for ac_file in conftest.exe conftest conftest.*; do
2166  test -f "$ac_file" || continue
2167  case $ac_file in
2168    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2169    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2170          export ac_cv_exeext
2171          break;;
2172    * ) break;;
2173  esac
2174done
2175else
2176  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2177See \`config.log' for more details." >&5
2178echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2179See \`config.log' for more details." >&2;}
2180   { (exit 1); exit 1; }; }
2181fi
2182
2183rm -f conftest$ac_cv_exeext
2184echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2185echo "${ECHO_T}$ac_cv_exeext" >&6
2186
2187rm -f conftest.$ac_ext
2188EXEEXT=$ac_cv_exeext
2189ac_exeext=$EXEEXT
2190echo "$as_me:$LINENO: checking for suffix of object files" >&5
2191echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2192if test "${ac_cv_objext+set}" = set; then
2193  echo $ECHO_N "(cached) $ECHO_C" >&6
2194else
2195  cat >conftest.$ac_ext <<_ACEOF
2196/* confdefs.h.  */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h.  */
2201
2202int
2203main ()
2204{
2205
2206  ;
2207  return 0;
2208}
2209_ACEOF
2210rm -f conftest.o conftest.obj
2211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2212  (eval $ac_compile) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; then
2216  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2217  case $ac_file in
2218    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2219    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2220       break;;
2221  esac
2222done
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2228See \`config.log' for more details." >&5
2229echo "$as_me: error: cannot compute suffix of object files: cannot compile
2230See \`config.log' for more details." >&2;}
2231   { (exit 1); exit 1; }; }
2232fi
2233
2234rm -f conftest.$ac_cv_objext conftest.$ac_ext
2235fi
2236echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2237echo "${ECHO_T}$ac_cv_objext" >&6
2238OBJEXT=$ac_cv_objext
2239ac_objext=$OBJEXT
2240echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2241echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2242if test "${ac_cv_c_compiler_gnu+set}" = set; then
2243  echo $ECHO_N "(cached) $ECHO_C" >&6
2244else
2245  cat >conftest.$ac_ext <<_ACEOF
2246/* confdefs.h.  */
2247_ACEOF
2248cat confdefs.h >>conftest.$ac_ext
2249cat >>conftest.$ac_ext <<_ACEOF
2250/* end confdefs.h.  */
2251
2252int
2253main ()
2254{
2255#ifndef __GNUC__
2256       choke me
2257#endif
2258
2259  ;
2260  return 0;
2261}
2262_ACEOF
2263rm -f conftest.$ac_objext
2264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2265  (eval $ac_compile) 2>conftest.er1
2266  ac_status=$?
2267  grep -v '^ *+' conftest.er1 >conftest.err
2268  rm -f conftest.er1
2269  cat conftest.err >&5
2270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271  (exit $ac_status); } &&
2272         { ac_try='test -z "$ac_c_werror_flag"
2273                         || test ! -s conftest.err'
2274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275  (eval $ac_try) 2>&5
2276  ac_status=$?
2277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278  (exit $ac_status); }; } &&
2279         { ac_try='test -s conftest.$ac_objext'
2280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281  (eval $ac_try) 2>&5
2282  ac_status=$?
2283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284  (exit $ac_status); }; }; then
2285  ac_compiler_gnu=yes
2286else
2287  echo "$as_me: failed program was:" >&5
2288sed 's/^/| /' conftest.$ac_ext >&5
2289
2290ac_compiler_gnu=no
2291fi
2292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2293ac_cv_c_compiler_gnu=$ac_compiler_gnu
2294
2295fi
2296echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2297echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2298GCC=`test $ac_compiler_gnu = yes && echo yes`
2299ac_test_CFLAGS=${CFLAGS+set}
2300ac_save_CFLAGS=$CFLAGS
2301CFLAGS="-g"
2302echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2303echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2304if test "${ac_cv_prog_cc_g+set}" = set; then
2305  echo $ECHO_N "(cached) $ECHO_C" >&6
2306else
2307  cat >conftest.$ac_ext <<_ACEOF
2308/* confdefs.h.  */
2309_ACEOF
2310cat confdefs.h >>conftest.$ac_ext
2311cat >>conftest.$ac_ext <<_ACEOF
2312/* end confdefs.h.  */
2313
2314int
2315main ()
2316{
2317
2318  ;
2319  return 0;
2320}
2321_ACEOF
2322rm -f conftest.$ac_objext
2323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324  (eval $ac_compile) 2>conftest.er1
2325  ac_status=$?
2326  grep -v '^ *+' conftest.er1 >conftest.err
2327  rm -f conftest.er1
2328  cat conftest.err >&5
2329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330  (exit $ac_status); } &&
2331         { ac_try='test -z "$ac_c_werror_flag"
2332                         || test ! -s conftest.err'
2333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334  (eval $ac_try) 2>&5
2335  ac_status=$?
2336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337  (exit $ac_status); }; } &&
2338         { ac_try='test -s conftest.$ac_objext'
2339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340  (eval $ac_try) 2>&5
2341  ac_status=$?
2342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343  (exit $ac_status); }; }; then
2344  ac_cv_prog_cc_g=yes
2345else
2346  echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349ac_cv_prog_cc_g=no
2350fi
2351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352fi
2353echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2354echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2355if test "$ac_test_CFLAGS" = set; then
2356  CFLAGS=$ac_save_CFLAGS
2357elif test $ac_cv_prog_cc_g = yes; then
2358  if test "$GCC" = yes; then
2359    CFLAGS="-g -O2"
2360  else
2361    CFLAGS="-g"
2362  fi
2363else
2364  if test "$GCC" = yes; then
2365    CFLAGS="-O2"
2366  else
2367    CFLAGS=
2368  fi
2369fi
2370echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2371echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2372if test "${ac_cv_prog_cc_stdc+set}" = set; then
2373  echo $ECHO_N "(cached) $ECHO_C" >&6
2374else
2375  ac_cv_prog_cc_stdc=no
2376ac_save_CC=$CC
2377cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h.  */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h.  */
2383#include <stdarg.h>
2384#include <stdio.h>
2385#include <sys/types.h>
2386#include <sys/stat.h>
2387/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2388struct buf { int x; };
2389FILE * (*rcsopen) (struct buf *, struct stat *, int);
2390static char *e (p, i)
2391     char **p;
2392     int i;
2393{
2394  return p[i];
2395}
2396static char *f (char * (*g) (char **, int), char **p, ...)
2397{
2398  char *s;
2399  va_list v;
2400  va_start (v,p);
2401  s = g (p, va_arg (v,int));
2402  va_end (v);
2403  return s;
2404}
2405
2406/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2407   function prototypes and stuff, but not '\xHH' hex character constants.
2408   These don't provoke an error unfortunately, instead are silently treated
2409   as 'x'.  The following induces an error, until -std1 is added to get
2410   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2411   array size at least.  It's necessary to write '\x00'==0 to get something
2412   that's true only with -std1.  */
2413int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2414
2415int test (int i, double x);
2416struct s1 {int (*f) (int a);};
2417struct s2 {int (*f) (double a);};
2418int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2419int argc;
2420char **argv;
2421int
2422main ()
2423{
2424return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2425  ;
2426  return 0;
2427}
2428_ACEOF
2429# Don't try gcc -ansi; that turns off useful extensions and
2430# breaks some systems' header files.
2431# AIX                   -qlanglvl=ansi
2432# Ultrix and OSF/1      -std1
2433# HP-UX 10.20 and later -Ae
2434# HP-UX older versions  -Aa -D_HPUX_SOURCE
2435# SVR4                  -Xc -D__EXTENSIONS__
2436for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2437do
2438  CC="$ac_save_CC $ac_arg"
2439  rm -f conftest.$ac_objext
2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441  (eval $ac_compile) 2>conftest.er1
2442  ac_status=$?
2443  grep -v '^ *+' conftest.er1 >conftest.err
2444  rm -f conftest.er1
2445  cat conftest.err >&5
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); } &&
2448         { ac_try='test -z "$ac_c_werror_flag"
2449                         || test ! -s conftest.err'
2450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451  (eval $ac_try) 2>&5
2452  ac_status=$?
2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454  (exit $ac_status); }; } &&
2455         { ac_try='test -s conftest.$ac_objext'
2456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457  (eval $ac_try) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }; }; then
2461  ac_cv_prog_cc_stdc=$ac_arg
2462break
2463else
2464  echo "$as_me: failed program was:" >&5
2465sed 's/^/| /' conftest.$ac_ext >&5
2466
2467fi
2468rm -f conftest.err conftest.$ac_objext
2469done
2470rm -f conftest.$ac_ext conftest.$ac_objext
2471CC=$ac_save_CC
2472
2473fi
2474
2475case "x$ac_cv_prog_cc_stdc" in
2476  x|xno)
2477    echo "$as_me:$LINENO: result: none needed" >&5
2478echo "${ECHO_T}none needed" >&6 ;;
2479  *)
2480    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2481echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2482    CC="$CC $ac_cv_prog_cc_stdc" ;;
2483esac
2484
2485# Some people use a C++ compiler to compile C.  Since we use `exit',
2486# in C++ we need to declare it.  In case someone uses the same compiler
2487# for both compiling C and C++ we need to have the C++ compiler decide
2488# the declaration of exit, since it's the most demanding environment.
2489cat >conftest.$ac_ext <<_ACEOF
2490#ifndef __cplusplus
2491  choke me
2492#endif
2493_ACEOF
2494rm -f conftest.$ac_objext
2495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496  (eval $ac_compile) 2>conftest.er1
2497  ac_status=$?
2498  grep -v '^ *+' conftest.er1 >conftest.err
2499  rm -f conftest.er1
2500  cat conftest.err >&5
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); } &&
2503         { ac_try='test -z "$ac_c_werror_flag"
2504                         || test ! -s conftest.err'
2505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506  (eval $ac_try) 2>&5
2507  ac_status=$?
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); }; } &&
2510         { ac_try='test -s conftest.$ac_objext'
2511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2512  (eval $ac_try) 2>&5
2513  ac_status=$?
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); }; }; then
2516  for ac_declaration in \
2517   '' \
2518   'extern "C" void std::exit (int) throw (); using std::exit;' \
2519   'extern "C" void std::exit (int); using std::exit;' \
2520   'extern "C" void exit (int) throw ();' \
2521   'extern "C" void exit (int);' \
2522   'void exit (int);'
2523do
2524  cat >conftest.$ac_ext <<_ACEOF
2525/* confdefs.h.  */
2526_ACEOF
2527cat confdefs.h >>conftest.$ac_ext
2528cat >>conftest.$ac_ext <<_ACEOF
2529/* end confdefs.h.  */
2530$ac_declaration
2531#include <stdlib.h>
2532int
2533main ()
2534{
2535exit (42);
2536  ;
2537  return 0;
2538}
2539_ACEOF
2540rm -f conftest.$ac_objext
2541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542  (eval $ac_compile) 2>conftest.er1
2543  ac_status=$?
2544  grep -v '^ *+' conftest.er1 >conftest.err
2545  rm -f conftest.er1
2546  cat conftest.err >&5
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); } &&
2549         { ac_try='test -z "$ac_c_werror_flag"
2550                         || test ! -s conftest.err'
2551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552  (eval $ac_try) 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; } &&
2556         { ac_try='test -s conftest.$ac_objext'
2557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558  (eval $ac_try) 2>&5
2559  ac_status=$?
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); }; }; then
2562  :
2563else
2564  echo "$as_me: failed program was:" >&5
2565sed 's/^/| /' conftest.$ac_ext >&5
2566
2567continue
2568fi
2569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2570  cat >conftest.$ac_ext <<_ACEOF
2571/* confdefs.h.  */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
2575/* end confdefs.h.  */
2576$ac_declaration
2577int
2578main ()
2579{
2580exit (42);
2581  ;
2582  return 0;
2583}
2584_ACEOF
2585rm -f conftest.$ac_objext
2586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587  (eval $ac_compile) 2>conftest.er1
2588  ac_status=$?
2589  grep -v '^ *+' conftest.er1 >conftest.err
2590  rm -f conftest.er1
2591  cat conftest.err >&5
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); } &&
2594         { ac_try='test -z "$ac_c_werror_flag"
2595                         || test ! -s conftest.err'
2596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; } &&
2601         { ac_try='test -s conftest.$ac_objext'
2602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603  (eval $ac_try) 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }; }; then
2607  break
2608else
2609  echo "$as_me: failed program was:" >&5
2610sed 's/^/| /' conftest.$ac_ext >&5
2611
2612fi
2613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2614done
2615rm -f conftest*
2616if test -n "$ac_declaration"; then
2617  echo '#ifdef __cplusplus' >>confdefs.h
2618  echo $ac_declaration      >>confdefs.h
2619  echo '#endif'             >>confdefs.h
2620fi
2621
2622else
2623  echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626fi
2627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628ac_ext=c
2629ac_cpp='$CPP $CPPFLAGS'
2630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633
2634if test -z "$CC" ; then
2635  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2636echo "$as_me: error: Failed to find a C compiler!" >&2;}
2637   { (exit 1); exit 1; }; }
2638fi
2639# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2640case "$CC" in
2641  clang* ) ;;
2642  cl* | */cl* | CL* | */CL* )
2643    if test "$ac_cv_prog_cc_g" = yes ; then
2644      ac_cv_prog_cc_g=no
2645      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2646echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2647    fi ;;
2648  * )
2649    if test x"$CYGPATH_W" = x ; then
2650      CYGPATH_W=echo
2651    fi
2652    ;;
2653esac
2654CFLAGS="$save_cflags"
2655
2656# add automake conditional so we can recognize cl compiler in makefile
2657coin_cc_is_cl=false
2658case "$CC" in
2659  clang* ) ;;
2660  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2661    coin_cc_is_cl=true
2662    ;;
2663esac
2664
2665
2666if test $coin_cc_is_cl = true; then
2667  COIN_CC_IS_CL_TRUE=
2668  COIN_CC_IS_CL_FALSE='#'
2669else
2670  COIN_CC_IS_CL_TRUE='#'
2671  COIN_CC_IS_CL_FALSE=
2672fi
2673
2674
2675# Check if a project specific CFLAGS variable has been set
2676if test x$COIN_PRJCT != x; then
2677  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2678  if test x$coin_tmp = xset; then
2679    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2680  fi
2681fi
2682
2683if test x"$CFLAGS" = x; then
2684
2685  coin_add_cflags=
2686  coin_opt_cflags=
2687  coin_dbg_cflags=
2688  coin_warn_cflags=
2689
2690  if test "$GCC" = "yes"; then
2691    case "$CC" in
2692      icc* | */icc*)
2693        ;;
2694      *)
2695        coin_opt_cflags="-O3"
2696        coin_add_cflags="-pipe"
2697        coin_dbg_cflags="-g -O0"
2698        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2699    esac
2700  fi
2701  if test -z "$coin_opt_cflags"; then
2702    case $build in
2703      *-cygwin* | *-mingw*)
2704        case "$CC" in
2705          clang* ) ;;
2706          cl* | */cl* | CL* | */CL*)
2707            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2708              coin_opt_cflags='-MD -O2'
2709              coin_dbg_cflags='-MDd'
2710            else
2711              coin_opt_cflags='-MT -O2'
2712              coin_dbg_cflags='-MTd'
2713            fi
2714            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2715            ;;
2716          icl* | */icl* | ICL* | */ICL*)
2717            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2718              coin_opt_cflags='-MD -Ox'
2719              coin_dbg_cflags='-MDd -debug'
2720            else
2721              coin_opt_cflags='-MT -Ox'
2722              coin_dbg_cflags='-MTd -debug'
2723            fi
2724            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2725            ;;
2726        esac
2727        ;;
2728      *-linux-*)
2729        case "$CC" in
2730          icc* | */icc*)
2731            coin_opt_cflags="-O3 -ip -mp1"
2732            coin_add_cflags=""
2733            coin_dbg_cflags="-g"
2734            # Check if -i_dynamic is necessary (for new glibc library)
2735            CFLAGS=
2736            cat >conftest.$ac_ext <<_ACEOF
2737/* confdefs.h.  */
2738_ACEOF
2739cat confdefs.h >>conftest.$ac_ext
2740cat >>conftest.$ac_ext <<_ACEOF
2741/* end confdefs.h.  */
2742
2743int
2744main ()
2745{
2746int i=0; i++;
2747  ;
2748  return 0;
2749}
2750_ACEOF
2751rm -f conftest.$ac_objext conftest$ac_exeext
2752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2753  (eval $ac_link) 2>conftest.er1
2754  ac_status=$?
2755  grep -v '^ *+' conftest.er1 >conftest.err
2756  rm -f conftest.er1
2757  cat conftest.err >&5
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); } &&
2760         { ac_try='test -z "$ac_c_werror_flag"
2761                         || test ! -s conftest.err'
2762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763  (eval $ac_try) 2>&5
2764  ac_status=$?
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); }; } &&
2767         { ac_try='test -s conftest$ac_exeext'
2768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769  (eval $ac_try) 2>&5
2770  ac_status=$?
2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772  (exit $ac_status); }; }; then
2773  :
2774else
2775  echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778coin_add_cflags="-i_dynamic $coin_add_cflags"
2779fi
2780rm -f conftest.err conftest.$ac_objext \
2781      conftest$ac_exeext conftest.$ac_ext
2782            ;;
2783          pgcc* | */pgcc*)
2784            coin_opt_cflags="-fast"
2785            coin_add_cflags="-Kieee -pc 64"
2786            coin_dbg_cflags="-g"
2787            ;;
2788        esac
2789        ;;
2790      *-ibm-*)
2791        case "$CC" in
2792          xlc* | */xlc* | mpxlc* | */mpxlc*)
2793            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2794            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2795            coin_dbg_cflags="-g"
2796          ;;
2797        esac
2798        ;;
2799      *-hp-*)
2800        coin_opt_cflags="-O"
2801        coin_add_cflags="-Ae"
2802        coin_dbg_cflags="-g"
2803        ;;
2804      *-*-solaris*)
2805        coin_opt_cflags="-xO4"
2806        coin_dbg_cflags="-g"
2807        ;;
2808      *-sgi-*)
2809        coin_opt_cflags="-O -OPT:Olimit=0"
2810        coin_dbg_cflags="-g"
2811        ;;
2812    esac
2813  fi
2814
2815  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2816    coin_dbg_cflags="-g"
2817  fi
2818
2819  if test -z "$coin_opt_cflags"; then
2820    # Try if -O option works if nothing else is set
2821    CFLAGS="-O"
2822    cat >conftest.$ac_ext <<_ACEOF
2823/* confdefs.h.  */
2824_ACEOF
2825cat confdefs.h >>conftest.$ac_ext
2826cat >>conftest.$ac_ext <<_ACEOF
2827/* end confdefs.h.  */
2828
2829int
2830main ()
2831{
2832int i=0; i++;
2833  ;
2834  return 0;
2835}
2836_ACEOF
2837rm -f conftest.$ac_objext conftest$ac_exeext
2838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2839  (eval $ac_link) 2>conftest.er1
2840  ac_status=$?
2841  grep -v '^ *+' conftest.er1 >conftest.err
2842  rm -f conftest.er1
2843  cat conftest.err >&5
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); } &&
2846         { ac_try='test -z "$ac_c_werror_flag"
2847                         || test ! -s conftest.err'
2848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849  (eval $ac_try) 2>&5
2850  ac_status=$?
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); }; } &&
2853         { ac_try='test -s conftest$ac_exeext'
2854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855  (eval $ac_try) 2>&5
2856  ac_status=$?
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); }; }; then
2859  coin_opt_cflags="-O"
2860else
2861  echo "$as_me: failed program was:" >&5
2862sed 's/^/| /' conftest.$ac_ext >&5
2863
2864fi
2865rm -f conftest.err conftest.$ac_objext \
2866      conftest$ac_exeext conftest.$ac_ext
2867  fi
2868
2869  # if PM doesn't want the warning messages, take them out
2870  if test x"$coin_skip_warn_cflags" = xyes; then
2871    coin_warn_cflags=
2872  fi
2873
2874  if test x${DBG_CFLAGS+set} != xset; then
2875    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2876  fi
2877  if test x${OPT_CFLAGS+set} != xset; then
2878    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2879  fi
2880
2881  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2882  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2883
2884  if test "$coin_debug_compile" = "true"; then
2885    CFLAGS="$DBG_CFLAGS"
2886  else
2887    CFLAGS="$OPT_CFLAGS"
2888  fi
2889else
2890  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2891  if test x${DBG_CFLAGS+set} != xset; then
2892    DBG_CFLAGS="$CFLAGS"
2893  fi
2894  if test x${OPT_CFLAGS+set} != xset; then
2895    OPT_CFLAGS="$CFLAGS"
2896  fi
2897fi
2898
2899# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
2900if test x$COIN_PRJCT != x; then
2901  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
2902fi
2903
2904# Try if CFLAGS works
2905save_CFLAGS="$CFLAGS"
2906cat >conftest.$ac_ext <<_ACEOF
2907/* confdefs.h.  */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h.  */
2912
2913int
2914main ()
2915{
2916int i=0; i++;
2917  ;
2918  return 0;
2919}
2920_ACEOF
2921rm -f conftest.$ac_objext conftest$ac_exeext
2922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2923  (eval $ac_link) 2>conftest.er1
2924  ac_status=$?
2925  grep -v '^ *+' conftest.er1 >conftest.err
2926  rm -f conftest.er1
2927  cat conftest.err >&5
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); } &&
2930         { ac_try='test -z "$ac_c_werror_flag"
2931                         || test ! -s conftest.err'
2932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933  (eval $ac_try) 2>&5
2934  ac_status=$?
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); }; } &&
2937         { ac_try='test -s conftest$ac_exeext'
2938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939  (eval $ac_try) 2>&5
2940  ac_status=$?
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); }; }; then
2943  :
2944else
2945  echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948CFLAGS=
2949fi
2950rm -f conftest.err conftest.$ac_objext \
2951      conftest$ac_exeext conftest.$ac_ext
2952if test -z "$CFLAGS"; then
2953  { 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
2954echo "$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;}
2955  CFLAGS='-O'
2956  cat >conftest.$ac_ext <<_ACEOF
2957/* confdefs.h.  */
2958_ACEOF
2959cat confdefs.h >>conftest.$ac_ext
2960cat >>conftest.$ac_ext <<_ACEOF
2961/* end confdefs.h.  */
2962
2963int
2964main ()
2965{
2966int i=0; i++;
2967  ;
2968  return 0;
2969}
2970_ACEOF
2971rm -f conftest.$ac_objext conftest$ac_exeext
2972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2973  (eval $ac_link) 2>conftest.er1
2974  ac_status=$?
2975  grep -v '^ *+' conftest.er1 >conftest.err
2976  rm -f conftest.er1
2977  cat conftest.err >&5
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); } &&
2980         { ac_try='test -z "$ac_c_werror_flag"
2981                         || test ! -s conftest.err'
2982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983  (eval $ac_try) 2>&5
2984  ac_status=$?
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); }; } &&
2987         { ac_try='test -s conftest$ac_exeext'
2988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989  (eval $ac_try) 2>&5
2990  ac_status=$?
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); }; }; then
2993  :
2994else
2995  echo "$as_me: failed program was:" >&5
2996sed 's/^/| /' conftest.$ac_ext >&5
2997
2998CFLAGS=
2999fi
3000rm -f conftest.err conftest.$ac_objext \
3001      conftest$ac_exeext conftest.$ac_ext
3002  if test -z "$CFLAGS"; then
3003    { 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
3004echo "$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;}
3005  fi
3006fi
3007
3008{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3009echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3010
3011
3012if test x"$MPICC" = x; then :; else
3013  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3014echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3015  CC="$MPICC"
3016fi
3017
3018# Correct the LD variable if we are using the MS or Intel-windows compiler
3019case "$CC" in
3020  clang* ) ;;
3021  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3022    LD=link
3023    ;;
3024esac
3025
3026ac_ext=c
3027ac_cpp='$CPP $CPPFLAGS'
3028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031
3032
3033
3034# Get the name of the C++ compiler and appropriate compiler options
3035
3036 #Let's try if that overcomes configuration problem with VC++ 6.0
3037
3038ac_ext=cc
3039ac_cpp='$CXXCPP $CPPFLAGS'
3040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3043
3044
3045
3046
3047
3048
3049
3050coin_has_cxx=yes
3051
3052save_cxxflags="$CXXFLAGS"
3053# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3054case $build in
3055  *-cygwin* | *-mingw*)
3056      if test "$enable_msvc" = yes ; then
3057         comps="icl cl g++"
3058      else
3059         comps="g++ icl cl"
3060      fi ;;
3061  *-*-solaris*)
3062             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3063  *-darwin*) comps="clang++ g++ c++ CC" ;;
3064  *-linux-gnu*)
3065             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3066          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3067esac
3068
3069# We delete the cached value, since the test might not have been
3070# performed with our choice of compilers earlier
3071$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3072# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3073ac_ext=cc
3074ac_cpp='$CXXCPP $CPPFLAGS'
3075ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3078if test -n "$ac_tool_prefix"; then
3079  for ac_prog in $CCC $comps
3080  do
3081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3083echo "$as_me:$LINENO: checking for $ac_word" >&5
3084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085if test "${ac_cv_prog_CXX+set}" = set; then
3086  echo $ECHO_N "(cached) $ECHO_C" >&6
3087else
3088  if test -n "$CXX"; then
3089  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3090else
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094  IFS=$as_save_IFS
3095  test -z "$as_dir" && as_dir=.
3096  for ac_exec_ext in '' $ac_executable_extensions; do
3097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100    break 2
3101  fi
3102done
3103done
3104
3105fi
3106fi
3107CXX=$ac_cv_prog_CXX
3108if test -n "$CXX"; then
3109  echo "$as_me:$LINENO: result: $CXX" >&5
3110echo "${ECHO_T}$CXX" >&6
3111else
3112  echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
3114fi
3115
3116    test -n "$CXX" && break
3117  done
3118fi
3119if test -z "$CXX"; then
3120  ac_ct_CXX=$CXX
3121  for ac_prog in $CCC $comps
3122do
3123  # Extract the first word of "$ac_prog", so it can be a program name with args.
3124set dummy $ac_prog; ac_word=$2
3125echo "$as_me:$LINENO: checking for $ac_word" >&5
3126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3127if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3128  echo $ECHO_N "(cached) $ECHO_C" >&6
3129else
3130  if test -n "$ac_ct_CXX"; then
3131  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3132else
3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134for as_dir in $PATH
3135do
3136  IFS=$as_save_IFS
3137  test -z "$as_dir" && as_dir=.
3138  for ac_exec_ext in '' $ac_executable_extensions; do
3139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3140    ac_cv_prog_ac_ct_CXX="$ac_prog"
3141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3142    break 2
3143  fi
3144done
3145done
3146
3147fi
3148fi
3149ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3150if test -n "$ac_ct_CXX"; then
3151  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3152echo "${ECHO_T}$ac_ct_CXX" >&6
3153else
3154  echo "$as_me:$LINENO: result: no" >&5
3155echo "${ECHO_T}no" >&6
3156fi
3157
3158  test -n "$ac_ct_CXX" && break
3159done
3160test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3161
3162  CXX=$ac_ct_CXX
3163fi
3164
3165
3166# Provide some information about the compiler.
3167echo "$as_me:$LINENO:" \
3168     "checking for C++ compiler version" >&5
3169ac_compiler=`set X $ac_compile; echo $2`
3170{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3171  (eval $ac_compiler --version </dev/null >&5) 2>&5
3172  ac_status=$?
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }
3175{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3176  (eval $ac_compiler -v </dev/null >&5) 2>&5
3177  ac_status=$?
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); }
3180{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3181  (eval $ac_compiler -V </dev/null >&5) 2>&5
3182  ac_status=$?
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); }
3185
3186echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3187echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3188if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3189  echo $ECHO_N "(cached) $ECHO_C" >&6
3190else
3191  cat >conftest.$ac_ext <<_ACEOF
3192/* confdefs.h.  */
3193_ACEOF
3194cat confdefs.h >>conftest.$ac_ext
3195cat >>conftest.$ac_ext <<_ACEOF
3196/* end confdefs.h.  */
3197
3198int
3199main ()
3200{
3201#ifndef __GNUC__
3202       choke me
3203#endif
3204
3205  ;
3206  return 0;
3207}
3208_ACEOF
3209rm -f conftest.$ac_objext
3210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211  (eval $ac_compile) 2>conftest.er1
3212  ac_status=$?
3213  grep -v '^ *+' conftest.er1 >conftest.err
3214  rm -f conftest.er1
3215  cat conftest.err >&5
3216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } &&
3218         { ac_try='test -z "$ac_cxx_werror_flag"
3219                         || test ! -s conftest.err'
3220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221  (eval $ac_try) 2>&5
3222  ac_status=$?
3223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224  (exit $ac_status); }; } &&
3225         { ac_try='test -s conftest.$ac_objext'
3226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227  (eval $ac_try) 2>&5
3228  ac_status=$?
3229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230  (exit $ac_status); }; }; then
3231  ac_compiler_gnu=yes
3232else
3233  echo "$as_me: failed program was:" >&5
3234sed 's/^/| /' conftest.$ac_ext >&5
3235
3236ac_compiler_gnu=no
3237fi
3238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3239ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3240
3241fi
3242echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3243echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3244GXX=`test $ac_compiler_gnu = yes && echo yes`
3245ac_test_CXXFLAGS=${CXXFLAGS+set}
3246ac_save_CXXFLAGS=$CXXFLAGS
3247CXXFLAGS="-g"
3248echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3249echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3250if test "${ac_cv_prog_cxx_g+set}" = set; then
3251  echo $ECHO_N "(cached) $ECHO_C" >&6
3252else
3253  cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h.  */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h.  */
3259
3260int
3261main ()
3262{
3263
3264  ;
3265  return 0;
3266}
3267_ACEOF
3268rm -f conftest.$ac_objext
3269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270  (eval $ac_compile) 2>conftest.er1
3271  ac_status=$?
3272  grep -v '^ *+' conftest.er1 >conftest.err
3273  rm -f conftest.er1
3274  cat conftest.err >&5
3275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276  (exit $ac_status); } &&
3277         { ac_try='test -z "$ac_cxx_werror_flag"
3278                         || test ! -s conftest.err'
3279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3280  (eval $ac_try) 2>&5
3281  ac_status=$?
3282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283  (exit $ac_status); }; } &&
3284         { ac_try='test -s conftest.$ac_objext'
3285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3286  (eval $ac_try) 2>&5
3287  ac_status=$?
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); }; }; then
3290  ac_cv_prog_cxx_g=yes
3291else
3292  echo "$as_me: failed program was:" >&5
3293sed 's/^/| /' conftest.$ac_ext >&5
3294
3295ac_cv_prog_cxx_g=no
3296fi
3297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3298fi
3299echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3300echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3301if test "$ac_test_CXXFLAGS" = set; then
3302  CXXFLAGS=$ac_save_CXXFLAGS
3303elif test $ac_cv_prog_cxx_g = yes; then
3304  if test "$GXX" = yes; then
3305    CXXFLAGS="-g -O2"
3306  else
3307    CXXFLAGS="-g"
3308  fi
3309else
3310  if test "$GXX" = yes; then
3311    CXXFLAGS="-O2"
3312  else
3313    CXXFLAGS=
3314  fi
3315fi
3316for ac_declaration in \
3317   '' \
3318   'extern "C" void std::exit (int) throw (); using std::exit;' \
3319   'extern "C" void std::exit (int); using std::exit;' \
3320   'extern "C" void exit (int) throw ();' \
3321   'extern "C" void exit (int);' \
3322   'void exit (int);'
3323do
3324  cat >conftest.$ac_ext <<_ACEOF
3325/* confdefs.h.  */
3326_ACEOF
3327cat confdefs.h >>conftest.$ac_ext
3328cat >>conftest.$ac_ext <<_ACEOF
3329/* end confdefs.h.  */
3330$ac_declaration
3331#include <stdlib.h>
3332int
3333main ()
3334{
3335exit (42);
3336  ;
3337  return 0;
3338}
3339_ACEOF
3340rm -f conftest.$ac_objext
3341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342  (eval $ac_compile) 2>conftest.er1
3343  ac_status=$?
3344  grep -v '^ *+' conftest.er1 >conftest.err
3345  rm -f conftest.er1
3346  cat conftest.err >&5
3347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348  (exit $ac_status); } &&
3349         { ac_try='test -z "$ac_cxx_werror_flag"
3350                         || test ! -s conftest.err'
3351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352  (eval $ac_try) 2>&5
3353  ac_status=$?
3354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355  (exit $ac_status); }; } &&
3356         { ac_try='test -s conftest.$ac_objext'
3357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358  (eval $ac_try) 2>&5
3359  ac_status=$?
3360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361  (exit $ac_status); }; }; then
3362  :
3363else
3364  echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
3367continue
3368fi
3369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3370  cat >conftest.$ac_ext <<_ACEOF
3371/* confdefs.h.  */
3372_ACEOF
3373cat confdefs.h >>conftest.$ac_ext
3374cat >>conftest.$ac_ext <<_ACEOF
3375/* end confdefs.h.  */
3376$ac_declaration
3377int
3378main ()
3379{
3380exit (42);
3381  ;
3382  return 0;
3383}
3384_ACEOF
3385rm -f conftest.$ac_objext
3386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3387  (eval $ac_compile) 2>conftest.er1
3388  ac_status=$?
3389  grep -v '^ *+' conftest.er1 >conftest.err
3390  rm -f conftest.er1
3391  cat conftest.err >&5
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); } &&
3394         { ac_try='test -z "$ac_cxx_werror_flag"
3395                         || test ! -s conftest.err'
3396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397  (eval $ac_try) 2>&5
3398  ac_status=$?
3399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400  (exit $ac_status); }; } &&
3401         { ac_try='test -s conftest.$ac_objext'
3402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3403  (eval $ac_try) 2>&5
3404  ac_status=$?
3405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406  (exit $ac_status); }; }; then
3407  break
3408else
3409  echo "$as_me: failed program was:" >&5
3410sed 's/^/| /' conftest.$ac_ext >&5
3411
3412fi
3413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414done
3415rm -f conftest*
3416if test -n "$ac_declaration"; then
3417  echo '#ifdef __cplusplus' >>confdefs.h
3418  echo $ac_declaration      >>confdefs.h
3419  echo '#endif'             >>confdefs.h
3420fi
3421
3422ac_ext=cc
3423ac_cpp='$CXXCPP $CPPFLAGS'
3424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3427
3428
3429#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3430#thus, we test here whether $CXX is actually working
3431ac_ext=cc
3432ac_cpp='$CXXCPP $CPPFLAGS'
3433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3436
3437echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3438echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3439cat >conftest.$ac_ext <<_ACEOF
3440/* confdefs.h.  */
3441_ACEOF
3442cat confdefs.h >>conftest.$ac_ext
3443cat >>conftest.$ac_ext <<_ACEOF
3444/* end confdefs.h.  */
3445
3446int
3447main ()
3448{
3449int i=0;
3450  ;
3451  return 0;
3452}
3453_ACEOF
3454rm -f conftest.$ac_objext
3455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3456  (eval $ac_compile) 2>conftest.er1
3457  ac_status=$?
3458  grep -v '^ *+' conftest.er1 >conftest.err
3459  rm -f conftest.er1
3460  cat conftest.err >&5
3461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462  (exit $ac_status); } &&
3463         { ac_try='test -z "$ac_cxx_werror_flag"
3464                         || test ! -s conftest.err'
3465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466  (eval $ac_try) 2>&5
3467  ac_status=$?
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); }; } &&
3470         { ac_try='test -s conftest.$ac_objext'
3471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3472  (eval $ac_try) 2>&5
3473  ac_status=$?
3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475  (exit $ac_status); }; }; then
3476  echo "$as_me:$LINENO: result: yes" >&5
3477echo "${ECHO_T}yes" >&6
3478else
3479  echo "$as_me: failed program was:" >&5
3480sed 's/^/| /' conftest.$ac_ext >&5
3481
3482echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
3484   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3485echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3486   { (exit 1); exit 1; }; }
3487
3488fi
3489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3490ac_ext=cc
3491ac_cpp='$CXXCPP $CPPFLAGS'
3492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3495
3496
3497coin_cxx_is_cl=false
3498# It seems that we need to cleanup something here for the Windows
3499case "$CXX" in
3500  clang* | */clang*) ;;
3501  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3502    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3503    mv confdefs.hh confdefs.h
3504    coin_cxx_is_cl=true
3505    ;;
3506esac
3507
3508# add automake conditional so we can recognize cl compiler in makefile
3509
3510
3511if test $coin_cxx_is_cl = true; then
3512  COIN_CXX_IS_CL_TRUE=
3513  COIN_CXX_IS_CL_FALSE='#'
3514else
3515  COIN_CXX_IS_CL_TRUE='#'
3516  COIN_CXX_IS_CL_FALSE=
3517fi
3518
3519
3520# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3521case "$CXX" in
3522  clang* ) ;;
3523  cl* | */cl* | CL* | */CL* )
3524    if test "$ac_cv_prog_cxx_g" = yes ; then
3525      ac_cv_prog_cxx_g=no
3526      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3527echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3528    fi ;;
3529  * )
3530    if test x"$CYGPATH_W" = x ; then
3531      CYGPATH_W=echo
3532    fi
3533    ;;
3534esac
3535CXXFLAGS="$save_cxxflags"
3536
3537# Check if a project specific CXXFLAGS variable has been set
3538if test x$COIN_PRJCT != x; then
3539  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3540  if test x$coin_tmp = xset; then
3541    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3542  fi
3543fi
3544
3545if test x"$CXXFLAGS" = x; then
3546
3547# ToDo decide whether we want -DNDEBUG for optimization
3548  coin_add_cxxflags=
3549  coin_opt_cxxflags=
3550  coin_dbg_cxxflags=
3551  coin_warn_cxxflags=
3552
3553  if test "$GXX" = "yes"; then
3554    case "$CXX" in
3555      icpc* | */icpc*)
3556        ;;
3557      *)
3558# ToDo decide about unroll-loops
3559        coin_opt_cxxflags="-O3"
3560        coin_add_cxxflags="-pipe"
3561        coin_dbg_cxxflags="-g -O0"
3562        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3563    esac
3564  fi
3565
3566# Note that we do not need to cover GCC in the following tests.
3567
3568  if test -z "$coin_opt_cxxflags"; then
3569    case $build in
3570      *-cygwin* | *-mingw*)
3571        case "$CXX" in
3572          clang* ) ;;
3573          cl* | */cl* | CL* | */CL*)
3574            # The MT and MTd options are mutually exclusive
3575            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3576               coin_opt_cxxflags='-MD -O2'
3577               coin_dbg_cxxflags='-MDd'
3578            else
3579               coin_opt_cxxflags='-MT -O2'
3580               coin_dbg_cxxflags='-MTd'
3581            fi
3582            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3583            ;;
3584          icl* | */icl* | ICL* | */ICL*)
3585          # The MT and MTd options are mutually exclusive
3586            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3587              coin_opt_cxxflags='-MD -Ox'
3588              coin_dbg_cxxflags='-MDd -debug'
3589            else
3590              coin_opt_cxxflags='-MT -Ox'
3591              coin_dbg_cxxflags='-MTd -debug'
3592            fi
3593            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3594            ;;
3595        esac
3596        ;;
3597      *-linux-*)
3598        case "$CXX" in
3599          icpc* | */icpc*)
3600            coin_opt_cxxflags="-O3 -ip -mp1"
3601            coin_add_cxxflags=""
3602            coin_dbg_cxxflags="-g"
3603            # Check if -i_dynamic is necessary (for new glibc library)
3604            CXXFLAGS=
3605            cat >conftest.$ac_ext <<_ACEOF
3606/* confdefs.h.  */
3607_ACEOF
3608cat confdefs.h >>conftest.$ac_ext
3609cat >>conftest.$ac_ext <<_ACEOF
3610/* end confdefs.h.  */
3611
3612int
3613main ()
3614{
3615int i=0; i++;
3616  ;
3617  return 0;
3618}
3619_ACEOF
3620rm -f conftest.$ac_objext conftest$ac_exeext
3621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3622  (eval $ac_link) 2>conftest.er1
3623  ac_status=$?
3624  grep -v '^ *+' conftest.er1 >conftest.err
3625  rm -f conftest.er1
3626  cat conftest.err >&5
3627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628  (exit $ac_status); } &&
3629         { ac_try='test -z "$ac_cxx_werror_flag"
3630                         || test ! -s conftest.err'
3631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632  (eval $ac_try) 2>&5
3633  ac_status=$?
3634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635  (exit $ac_status); }; } &&
3636         { ac_try='test -s conftest$ac_exeext'
3637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638  (eval $ac_try) 2>&5
3639  ac_status=$?
3640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641  (exit $ac_status); }; }; then
3642  :
3643else
3644  echo "$as_me: failed program was:" >&5
3645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3648fi
3649rm -f conftest.err conftest.$ac_objext \
3650      conftest$ac_exeext conftest.$ac_ext
3651            ;;
3652          pgCC* | */pgCC*)
3653            coin_opt_cxxflags="-fast"
3654            coin_add_cxxflags="-Kieee -pc 64"
3655            coin_dbg_cxxflags="-g"
3656            ;;
3657        esac
3658        ;;
3659      *-ibm-*)
3660        case "$CXX" in
3661          xlC* | */xlC* | mpxlC* | */mpxlC*)
3662            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3663            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3664            coin_dbg_cxxflags="-g"
3665            ;;
3666        esac
3667        ;;
3668      *-hp-*)
3669        case "$CXX" in
3670          aCC* | */aCC* )
3671            coin_opt_cxxflags="-O"
3672            coin_add_cxxflags="-AA"
3673            coin_dbg_cxxflags="-g"
3674            ;;
3675        esac
3676        ;;
3677      *-*-solaris*)
3678          coin_opt_cxxflags="-O4"
3679          coin_dbg_cxxflags="-g"
3680        ;;
3681    esac
3682  fi
3683
3684# Generic flag settings. If these don't work, add a case above.
3685
3686  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3687    coin_dbg_cxxflags="-g"
3688  fi
3689
3690  if test -z "$coin_opt_cxxflags"; then
3691    # Try if -O option works if nothing else is set
3692    CXXFLAGS=-O
3693    cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h.  */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h.  */
3699
3700int
3701main ()
3702{
3703int i=0; i++;
3704  ;
3705  return 0;
3706}
3707_ACEOF
3708rm -f conftest.$ac_objext conftest$ac_exeext
3709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710  (eval $ac_link) 2>conftest.er1
3711  ac_status=$?
3712  grep -v '^ *+' conftest.er1 >conftest.err
3713  rm -f conftest.er1
3714  cat conftest.err >&5
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); } &&
3717         { ac_try='test -z "$ac_cxx_werror_flag"
3718                         || test ! -s conftest.err'
3719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720  (eval $ac_try) 2>&5
3721  ac_status=$?
3722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723  (exit $ac_status); }; } &&
3724         { ac_try='test -s conftest$ac_exeext'
3725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726  (eval $ac_try) 2>&5
3727  ac_status=$?
3728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729  (exit $ac_status); }; }; then
3730  coin_opt_cxxflags="-O"
3731else
3732  echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735fi
3736rm -f conftest.err conftest.$ac_objext \
3737      conftest$ac_exeext conftest.$ac_ext
3738  fi
3739
3740  # if PM doesn't want the warning messages, take them out
3741  if test x"$coin_skip_warn_cxxflags" = xyes; then
3742    coin_warn_cxxflags=
3743  fi
3744
3745# Do final setup of flags based on values determined above.
3746
3747  if test x${DBG_CXXFLAGS+set} != xset; then
3748    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3749  fi
3750  if test x${OPT_CXXFLAGS+set} != xset; then
3751    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3752  fi
3753
3754  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3755  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3756
3757  if test "$coin_debug_compile" = "true"; then
3758    CXXFLAGS="$DBG_CXXFLAGS"
3759  else
3760    CXXFLAGS="$OPT_CXXFLAGS"
3761  fi
3762
3763# Handle the case where CXXFLAGS was set externally.
3764else
3765  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3766  if test x${DBG_CXXFLAGS+set} != xset; then
3767    DBG_CXXFLAGS="$CXXFLAGS"
3768  fi
3769  if test x${OPT_CXXFLAGS+set} != xset; then
3770    OPT_CXXFLAGS="$CXXFLAGS"
3771  fi
3772fi
3773
3774# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3775if test x$COIN_PRJCT != x; then
3776  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3777fi
3778
3779# Try if CXXFLAGS works
3780save_CXXFLAGS="$CXXFLAGS"
3781cat >conftest.$ac_ext <<_ACEOF
3782/* confdefs.h.  */
3783_ACEOF
3784cat confdefs.h >>conftest.$ac_ext
3785cat >>conftest.$ac_ext <<_ACEOF
3786/* end confdefs.h.  */
3787
3788int
3789main ()
3790{
3791int i=0; i++;
3792  ;
3793  return 0;
3794}
3795_ACEOF
3796rm -f conftest.$ac_objext conftest$ac_exeext
3797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3798  (eval $ac_link) 2>conftest.er1
3799  ac_status=$?
3800  grep -v '^ *+' conftest.er1 >conftest.err
3801  rm -f conftest.er1
3802  cat conftest.err >&5
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); } &&
3805         { ac_try='test -z "$ac_cxx_werror_flag"
3806                         || test ! -s conftest.err'
3807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3808  (eval $ac_try) 2>&5
3809  ac_status=$?
3810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811  (exit $ac_status); }; } &&
3812         { ac_try='test -s conftest$ac_exeext'
3813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814  (eval $ac_try) 2>&5
3815  ac_status=$?
3816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817  (exit $ac_status); }; }; then
3818  :
3819else
3820  echo "$as_me: failed program was:" >&5
3821sed 's/^/| /' conftest.$ac_ext >&5
3822
3823CXXFLAGS=
3824fi
3825rm -f conftest.err conftest.$ac_objext \
3826      conftest$ac_exeext conftest.$ac_ext
3827if test -z "$CXXFLAGS"; then
3828  { 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
3829echo "$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;}
3830  CXXFLAGS='-O'
3831  cat >conftest.$ac_ext <<_ACEOF
3832/* confdefs.h.  */
3833_ACEOF
3834cat confdefs.h >>conftest.$ac_ext
3835cat >>conftest.$ac_ext <<_ACEOF
3836/* end confdefs.h.  */
3837
3838int
3839main ()
3840{
3841int i=0; i++;
3842  ;
3843  return 0;
3844}
3845_ACEOF
3846rm -f conftest.$ac_objext conftest$ac_exeext
3847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3848  (eval $ac_link) 2>conftest.er1
3849  ac_status=$?
3850  grep -v '^ *+' conftest.er1 >conftest.err
3851  rm -f conftest.er1
3852  cat conftest.err >&5
3853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854  (exit $ac_status); } &&
3855         { ac_try='test -z "$ac_cxx_werror_flag"
3856                         || test ! -s conftest.err'
3857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858  (eval $ac_try) 2>&5
3859  ac_status=$?
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); }; } &&
3862         { ac_try='test -s conftest$ac_exeext'
3863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864  (eval $ac_try) 2>&5
3865  ac_status=$?
3866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867  (exit $ac_status); }; }; then
3868  :
3869else
3870  echo "$as_me: failed program was:" >&5
3871sed 's/^/| /' conftest.$ac_ext >&5
3872
3873CXXFLAGS=
3874fi
3875rm -f conftest.err conftest.$ac_objext \
3876      conftest$ac_exeext conftest.$ac_ext
3877  if test -z "$CXXFLAGS"; then
3878    { 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
3879echo "$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;}
3880  fi
3881fi
3882
3883{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3884echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3885
3886
3887if test x"$MPICXX" = x; then :; else
3888  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3889echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3890  CXX="$MPICXX"
3891fi
3892
3893# correct the LD variable in a build with MS or Intel-windows compiler
3894case "$CXX" in
3895  clang* ) ;;
3896  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3897    LD=link
3898    ;;
3899esac
3900
3901ac_ext=c
3902ac_cpp='$CPP $CPPFLAGS'
3903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906
3907
3908
3909# Get the name of the Fortran compiler and appropriate compiler options
3910case $build in
3911  *-cygwin* | *-mingw*)
3912     if test "$enable_msvc" = yes ; then
3913       coin_f77_comps="ifort fl32 compile_f2c"
3914     else
3915       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
3916     fi ;;
3917  *-*-solaris*)
3918     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3919  *-linux-gnu*)
3920     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
3921  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
3922 esac
3923
3924
3925
3926
3927
3928ac_ext=f
3929ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3930ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3932
3933
3934
3935
3936
3937
3938coin_has_f77=yes
3939
3940save_fflags="$FFLAGS"
3941
3942# We delete the cached value, since the test might not have been
3943# performed with our choice of compilers earlier
3944$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3945
3946# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3947# coin_f77_comps to see if there's a program that matches one of the names.
3948# If there's no such program, F77 = unavailable. If we match the name,
3949# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3950# compiler.
3951# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3952
3953
3954{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3955echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3956if test -n "$ac_tool_prefix"; then
3957  for ac_prog in $coin_f77_comps
3958  do
3959    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3961echo "$as_me:$LINENO: checking for $ac_word" >&5
3962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963if test "${ac_cv_prog_F77+set}" = set; then
3964  echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966  if test -n "$F77"; then
3967  ac_cv_prog_F77="$F77" # Let the user override the test.
3968else
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH
3971do
3972  IFS=$as_save_IFS
3973  test -z "$as_dir" && as_dir=.
3974  for ac_exec_ext in '' $ac_executable_extensions; do
3975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3976    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3978    break 2
3979  fi
3980done
3981done
3982
3983fi
3984fi
3985F77=$ac_cv_prog_F77
3986if test -n "$F77"; then
3987  echo "$as_me:$LINENO: result: $F77" >&5
3988echo "${ECHO_T}$F77" >&6
3989else
3990  echo "$as_me:$LINENO: result: no" >&5
3991echo "${ECHO_T}no" >&6
3992fi
3993
3994    test -n "$F77" && break
3995  done
3996fi
3997if test -z "$F77"; then
3998  ac_ct_F77=$F77
3999  for ac_prog in $coin_f77_comps
4000do
4001  # Extract the first word of "$ac_prog", so it can be a program name with args.
4002set dummy $ac_prog; ac_word=$2
4003echo "$as_me:$LINENO: checking for $ac_word" >&5
4004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4006  echo $ECHO_N "(cached) $ECHO_C" >&6
4007else
4008  if test -n "$ac_ct_F77"; then
4009  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4010else
4011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012for as_dir in $PATH
4013do
4014  IFS=$as_save_IFS
4015  test -z "$as_dir" && as_dir=.
4016  for ac_exec_ext in '' $ac_executable_extensions; do
4017  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4018    ac_cv_prog_ac_ct_F77="$ac_prog"
4019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4020    break 2
4021  fi
4022done
4023done
4024
4025fi
4026fi
4027ac_ct_F77=$ac_cv_prog_ac_ct_F77
4028if test -n "$ac_ct_F77"; then
4029  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4030echo "${ECHO_T}$ac_ct_F77" >&6
4031else
4032  echo "$as_me:$LINENO: result: no" >&5
4033echo "${ECHO_T}no" >&6
4034fi
4035
4036  test -n "$ac_ct_F77" && break
4037done
4038test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4039
4040  F77=$ac_ct_F77
4041fi
4042
4043
4044if test "$F77" != "unavailable" ; then
4045  ac_ext=f
4046ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4047ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4049if test -n "$ac_tool_prefix"; then
4050  for ac_prog in $coin_f77_comps
4051  do
4052    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4053set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4054echo "$as_me:$LINENO: checking for $ac_word" >&5
4055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4056if test "${ac_cv_prog_F77+set}" = set; then
4057  echo $ECHO_N "(cached) $ECHO_C" >&6
4058else
4059  if test -n "$F77"; then
4060  ac_cv_prog_F77="$F77" # Let the user override the test.
4061else
4062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063for as_dir in $PATH
4064do
4065  IFS=$as_save_IFS
4066  test -z "$as_dir" && as_dir=.
4067  for ac_exec_ext in '' $ac_executable_extensions; do
4068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4069    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071    break 2
4072  fi
4073done
4074done
4075
4076fi
4077fi
4078F77=$ac_cv_prog_F77
4079if test -n "$F77"; then
4080  echo "$as_me:$LINENO: result: $F77" >&5
4081echo "${ECHO_T}$F77" >&6
4082else
4083  echo "$as_me:$LINENO: result: no" >&5
4084echo "${ECHO_T}no" >&6
4085fi
4086
4087    test -n "$F77" && break
4088  done
4089fi
4090if test -z "$F77"; then
4091  ac_ct_F77=$F77
4092  for ac_prog in $coin_f77_comps
4093do
4094  # Extract the first word of "$ac_prog", so it can be a program name with args.
4095set dummy $ac_prog; ac_word=$2
4096echo "$as_me:$LINENO: checking for $ac_word" >&5
4097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4099  echo $ECHO_N "(cached) $ECHO_C" >&6
4100else
4101  if test -n "$ac_ct_F77"; then
4102  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4103else
4104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
4106do
4107  IFS=$as_save_IFS
4108  test -z "$as_dir" && as_dir=.
4109  for ac_exec_ext in '' $ac_executable_extensions; do
4110  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111    ac_cv_prog_ac_ct_F77="$ac_prog"
4112    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113    break 2
4114  fi
4115done
4116done
4117
4118fi
4119fi
4120ac_ct_F77=$ac_cv_prog_ac_ct_F77
4121if test -n "$ac_ct_F77"; then
4122  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4123echo "${ECHO_T}$ac_ct_F77" >&6
4124else
4125  echo "$as_me:$LINENO: result: no" >&5
4126echo "${ECHO_T}no" >&6
4127fi
4128
4129  test -n "$ac_ct_F77" && break
4130done
4131
4132  F77=$ac_ct_F77
4133fi
4134
4135
4136# Provide some information about the compiler.
4137echo "$as_me:4137:" \
4138     "checking for Fortran 77 compiler version" >&5
4139ac_compiler=`set X $ac_compile; echo $2`
4140{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4141  (eval $ac_compiler --version </dev/null >&5) 2>&5
4142  ac_status=$?
4143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144  (exit $ac_status); }
4145{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4146  (eval $ac_compiler -v </dev/null >&5) 2>&5
4147  ac_status=$?
4148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149  (exit $ac_status); }
4150{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4151  (eval $ac_compiler -V </dev/null >&5) 2>&5
4152  ac_status=$?
4153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154  (exit $ac_status); }
4155rm -f a.out
4156
4157# If we don't use `.F' as extension, the preprocessor is not run on the
4158# input file.  (Note that this only needs to work for GNU compilers.)
4159ac_save_ext=$ac_ext
4160ac_ext=F
4161echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4162echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4163if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4164  echo $ECHO_N "(cached) $ECHO_C" >&6
4165else
4166  cat >conftest.$ac_ext <<_ACEOF
4167      program main
4168#ifndef __GNUC__
4169       choke me
4170#endif
4171
4172      end
4173_ACEOF
4174rm -f conftest.$ac_objext
4175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176  (eval $ac_compile) 2>conftest.er1
4177  ac_status=$?
4178  grep -v '^ *+' conftest.er1 >conftest.err
4179  rm -f conftest.er1
4180  cat conftest.err >&5
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); } &&
4183         { ac_try='test -z "$ac_f77_werror_flag"
4184                         || test ! -s conftest.err'
4185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186  (eval $ac_try) 2>&5
4187  ac_status=$?
4188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189  (exit $ac_status); }; } &&
4190         { ac_try='test -s conftest.$ac_objext'
4191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192  (eval $ac_try) 2>&5
4193  ac_status=$?
4194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195  (exit $ac_status); }; }; then
4196  ac_compiler_gnu=yes
4197else
4198  echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
4201ac_compiler_gnu=no
4202fi
4203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4205
4206fi
4207echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4208echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4209ac_ext=$ac_save_ext
4210ac_test_FFLAGS=${FFLAGS+set}
4211ac_save_FFLAGS=$FFLAGS
4212FFLAGS=
4213echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4214echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4215if test "${ac_cv_prog_f77_g+set}" = set; then
4216  echo $ECHO_N "(cached) $ECHO_C" >&6
4217else
4218  FFLAGS=-g
4219cat >conftest.$ac_ext <<_ACEOF
4220      program main
4221
4222      end
4223_ACEOF
4224rm -f conftest.$ac_objext
4225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4226  (eval $ac_compile) 2>conftest.er1
4227  ac_status=$?
4228  grep -v '^ *+' conftest.er1 >conftest.err
4229  rm -f conftest.er1
4230  cat conftest.err >&5
4231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232  (exit $ac_status); } &&
4233         { ac_try='test -z "$ac_f77_werror_flag"
4234                         || test ! -s conftest.err'
4235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236  (eval $ac_try) 2>&5
4237  ac_status=$?
4238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239  (exit $ac_status); }; } &&
4240         { ac_try='test -s conftest.$ac_objext'
4241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4242  (eval $ac_try) 2>&5
4243  ac_status=$?
4244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245  (exit $ac_status); }; }; then
4246  ac_cv_prog_f77_g=yes
4247else
4248  echo "$as_me: failed program was:" >&5
4249sed 's/^/| /' conftest.$ac_ext >&5
4250
4251ac_cv_prog_f77_g=no
4252fi
4253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4254
4255fi
4256echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4257echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4258if test "$ac_test_FFLAGS" = set; then
4259  FFLAGS=$ac_save_FFLAGS
4260elif test $ac_cv_prog_f77_g = yes; then
4261  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4262    FFLAGS="-g -O2"
4263  else
4264    FFLAGS="-g"
4265  fi
4266else
4267  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4268    FFLAGS="-O2"
4269  else
4270    FFLAGS=
4271  fi
4272fi
4273
4274G77=`test $ac_compiler_gnu = yes && echo yes`
4275ac_ext=f
4276ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4277ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4278ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4279
4280else
4281  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4282echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4283fi
4284
4285FFLAGS="$save_fflags"
4286
4287# Check if a project specific FFLAGS variable has been set
4288if test x$COIN_PRJCT != x; then
4289  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4290  if test x$coin_tmp = xset; then
4291    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4292  fi
4293fi
4294
4295if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4296
4297  coin_add_fflags=
4298  coin_opt_fflags=
4299  coin_dbg_fflags=
4300  coin_warn_fflags=
4301
4302  if test "$G77" = "yes"; then
4303    coin_opt_fflags="-O3"
4304    coin_add_fflags="-pipe"
4305    coin_dbg_fflags="-g -O0"
4306  else
4307    case $build in
4308      *-cygwin* | *-mingw*)
4309        case $F77 in
4310          ifort* | */ifort* | IFORT* | */IFORT* )
4311            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4312              coin_opt_fflags='-MD -O3'
4313              coin_dbg_fflags='-MDd -debug'
4314            else
4315              coin_opt_fflags='-MT -O3'
4316              coin_dbg_fflags='-MTd -debug'
4317            fi
4318            coin_add_fflags='-fpp -nologo'
4319          ;;
4320          compile_f2c*)
4321            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4322              coin_opt_fflags='-MD -O2'
4323              coin_dbg_fflags='-MDd'
4324            else
4325              coin_opt_fflags='-MT -O2'
4326              coin_dbg_fflags='-MTd'
4327            fi
4328            coin_add_fflags='-nologo -wd4996'
4329          ;;
4330        esac
4331        ;;
4332      *-linux-*)
4333        case $F77 in
4334          ifc* | */ifc* | ifort* | */ifort*)
4335            coin_opt_fflags="-O3 -ip"
4336            coin_add_fflags="-cm -w90 -w95"
4337            coin_dbg_fflags="-g -CA -CB -CS"
4338            # Check if -i_dynamic is necessary (for new glibc library)
4339            FFLAGS=
4340            cat >conftest.$ac_ext <<_ACEOF
4341      program main
4342      write(*,*) 'Hello world'
4343      end
4344_ACEOF
4345rm -f conftest.$ac_objext conftest$ac_exeext
4346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4347  (eval $ac_link) 2>conftest.er1
4348  ac_status=$?
4349  grep -v '^ *+' conftest.er1 >conftest.err
4350  rm -f conftest.er1
4351  cat conftest.err >&5
4352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353  (exit $ac_status); } &&
4354         { ac_try='test -z "$ac_f77_werror_flag"
4355                         || test ! -s conftest.err'
4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357  (eval $ac_try) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); }; } &&
4361         { ac_try='test -s conftest$ac_exeext'
4362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363  (eval $ac_try) 2>&5
4364  ac_status=$?
4365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366  (exit $ac_status); }; }; then
4367  :
4368else
4369  echo "$as_me: failed program was:" >&5
4370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372coin_add_fflags="-i_dynamic $coin_add_fflags"
4373fi
4374rm -f conftest.err conftest.$ac_objext \
4375      conftest$ac_exeext conftest.$ac_ext
4376            ;;
4377          pgf77* | */pgf77* | pgf90* | */pgf90*)
4378            coin_opt_fflags="-fast"
4379            coin_add_fflags="-Kieee -pc 64"
4380            coin_dbg_fflags="-g"
4381          ;;
4382        esac
4383        ;;
4384      *-ibm-*)
4385        case "$F77" in
4386          xlf* | */xlf* | mpxlf* | */mpxlf* )
4387            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4388            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4389            coin_dbg_fflags="-g -C"
4390            ;;
4391        esac
4392        ;;
4393      *-hp-*)
4394        coin_opt_fflags="+O3"
4395        coin_add_fflags="+U77"
4396        coin_dbg_fflags="-C -g"
4397        ;;
4398      *-*-solaris*)
4399        coin_opt_fflags="-O4"
4400        coin_dbg_fflags="-g"
4401        ;;
4402      *-sgi-*)
4403        coin_opt_fflags="-O5 -OPT:Olimit=0"
4404        coin_dbg_fflags="-g"
4405        ;;
4406    esac
4407  fi
4408
4409  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4410    coin_dbg_fflags="-g"
4411  fi
4412
4413  if test -z "$coin_opt_fflags"; then
4414    # Try if -O option works if nothing else is set
4415    FFLAGS=-O
4416    cat >conftest.$ac_ext <<_ACEOF
4417      program main
4418      integer i
4419      end
4420_ACEOF
4421rm -f conftest.$ac_objext conftest$ac_exeext
4422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4423  (eval $ac_link) 2>conftest.er1
4424  ac_status=$?
4425  grep -v '^ *+' conftest.er1 >conftest.err
4426  rm -f conftest.er1
4427  cat conftest.err >&5
4428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429  (exit $ac_status); } &&
4430         { ac_try='test -z "$ac_f77_werror_flag"
4431                         || test ! -s conftest.err'
4432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433  (eval $ac_try) 2>&5
4434  ac_status=$?
4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); }; } &&
4437         { ac_try='test -s conftest$ac_exeext'
4438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439  (eval $ac_try) 2>&5
4440  ac_status=$?
4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442  (exit $ac_status); }; }; then
4443  coin_opt_fflags="-O"
4444else
4445  echo "$as_me: failed program was:" >&5
4446sed 's/^/| /' conftest.$ac_ext >&5
4447
4448fi
4449rm -f conftest.err conftest.$ac_objext \
4450      conftest$ac_exeext conftest.$ac_ext
4451  fi
4452
4453  # if PM doesn't want the warning messages, take them out
4454  if test x"$coin_skip_warn_fflags" = xyes; then
4455    coin_warn_fflags=
4456  fi
4457
4458  if test x${DBG_FFLAGS+set} != xset; then
4459    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4460  fi
4461  if test x${OPT_FFLAGS+set} != xset; then
4462    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4463  fi
4464
4465  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4466  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4467
4468  if test "$coin_debug_compile" = "true"; then
4469    FFLAGS="$DBG_FFLAGS"
4470  else
4471    FFLAGS="$OPT_FFLAGS"
4472  fi
4473else
4474  FFLAGS="$FFLAGS $ADD_FFLAGS"
4475  if test x${DBG_FFLAGS+set} != xset; then
4476    DBG_FFLAGS="$FFLAGS"
4477  fi
4478  if test x${OPT_FFLAGS+set} != xset; then
4479    OPT_FFLAGS="$FFLAGS"
4480  fi
4481fi
4482
4483# Try if FFLAGS works
4484if test "$F77" != "unavailable" ; then
4485  cat >conftest.$ac_ext <<_ACEOF
4486      program main
4487      integer i
4488      end
4489_ACEOF
4490rm -f conftest.$ac_objext conftest$ac_exeext
4491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492  (eval $ac_link) 2>conftest.er1
4493  ac_status=$?
4494  grep -v '^ *+' conftest.er1 >conftest.err
4495  rm -f conftest.er1
4496  cat conftest.err >&5
4497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498  (exit $ac_status); } &&
4499         { ac_try='test -z "$ac_f77_werror_flag"
4500                         || test ! -s conftest.err'
4501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4502  (eval $ac_try) 2>&5
4503  ac_status=$?
4504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505  (exit $ac_status); }; } &&
4506         { ac_try='test -s conftest$ac_exeext'
4507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508  (eval $ac_try) 2>&5
4509  ac_status=$?
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; }; then
4512  :
4513else
4514  echo "$as_me: failed program was:" >&5
4515sed 's/^/| /' conftest.$ac_ext >&5
4516
4517FFLAGS=
4518fi
4519rm -f conftest.err conftest.$ac_objext \
4520      conftest$ac_exeext conftest.$ac_ext
4521  if test -z "$FFLAGS"; then
4522    { 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
4523echo "$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;}
4524    FFLAGS='-O'
4525    cat >conftest.$ac_ext <<_ACEOF
4526      program main
4527      integer i
4528      end
4529_ACEOF
4530rm -f conftest.$ac_objext conftest$ac_exeext
4531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4532  (eval $ac_link) 2>conftest.er1
4533  ac_status=$?
4534  grep -v '^ *+' conftest.er1 >conftest.err
4535  rm -f conftest.er1
4536  cat conftest.err >&5
4537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538  (exit $ac_status); } &&
4539         { ac_try='test -z "$ac_f77_werror_flag"
4540                         || test ! -s conftest.err'
4541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542  (eval $ac_try) 2>&5
4543  ac_status=$?
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); }; } &&
4546         { ac_try='test -s conftest$ac_exeext'
4547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548  (eval $ac_try) 2>&5
4549  ac_status=$?
4550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551  (exit $ac_status); }; }; then
4552  :
4553else
4554  echo "$as_me: failed program was:" >&5
4555sed 's/^/| /' conftest.$ac_ext >&5
4556
4557FFLAGS=
4558fi
4559rm -f conftest.err conftest.$ac_objext \
4560      conftest$ac_exeext conftest.$ac_ext
4561    if test -z "$FFLAGS"; then
4562      { 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
4563echo "$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;}
4564    fi
4565  fi
4566fi
4567
4568{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4569echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4570
4571
4572if test x"$MPIF77" = x; then :; else
4573  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4574echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4575  F77="$MPIF77"
4576fi
4577
4578# correct the LD variable if we use the intel fortran compiler in windows
4579case $build in
4580  *-cygwin* | *-mingw*)
4581    case "$F77" in
4582      ifort* | */ifort* | IFORT* | */IFORT*)
4583        LD=link
4584      ;;
4585    esac
4586  ;;
4587esac
4588
4589ac_ext=c
4590ac_cpp='$CPP $CPPFLAGS'
4591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_c_compiler_gnu
4594
4595
4596
4597# Initialize automake and libtool
4598# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4599{
4600
4601
4602
4603# START
4604
4605coin_disable_shared=no
4606# Test if force_shared has been set
4607if test "x" = xforce_shared; then
4608  if test x$enable_shared = xno; then
4609    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4610echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4611   { (exit 1); exit 1; }; }
4612  fi
4613  enable_shared=yes;
4614else
4615  case $build in
4616    *-cygwin* | *-mingw*)
4617      coin_disable_shared=yes
4618      if test x"$enable_shared" = xyes; then
4619        case "$CC" in
4620          clang* )
4621            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4622echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4623            ;;
4624          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4625            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4626echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4627            ;;
4628          *gcc*)
4629            if test x"$enable_dependency_linking" = xyes; then
4630              coin_disable_shared=no
4631            else
4632              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4633echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4634            fi
4635            ;;
4636          *)
4637            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4638echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4639            ;;
4640        esac
4641      fi
4642    ;;
4643    *-aix*)
4644      coin_disable_shared=yes
4645      platform=AIX
4646      if test x"$enable_shared" = xyes; then
4647        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4648echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4649      fi
4650    ;;
4651  esac
4652fi
4653if test x"$coin_disable_shared" = xyes; then
4654  if test x"$enable_shared" = xyes; then
4655    :
4656  else
4657    # we don't disable shared, because it was not selected anyway
4658    coin_disable_shared=no
4659  fi
4660  enable_shared=no
4661fi
4662# By default, we only want the shared objects to be compiled
4663# Check whether --enable-static or --disable-static was given.
4664if test "${enable_static+set}" = set; then
4665  enableval="$enable_static"
4666  p=${PACKAGE-default}
4667    case $enableval in
4668    yes) enable_static=yes ;;
4669    no) enable_static=no ;;
4670    *)
4671     enable_static=no
4672      # Look at the argument we got.  We use all the common list separators.
4673      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4674      for pkg in $enableval; do
4675        IFS="$lt_save_ifs"
4676        if test "X$pkg" = "X$p"; then
4677          enable_static=yes
4678        fi
4679      done
4680      IFS="$lt_save_ifs"
4681      ;;
4682    esac
4683else
4684  enable_static=no
4685fi;
4686
4687
4688
4689
4690# Initialize automake
4691echo "$as_me:$LINENO: checking for egrep" >&5
4692echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4693if test "${ac_cv_prog_egrep+set}" = set; then
4694  echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4697    then ac_cv_prog_egrep='grep -E'
4698    else ac_cv_prog_egrep='egrep'
4699    fi
4700fi
4701echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4702echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4703 EGREP=$ac_cv_prog_egrep
4704
4705
4706echo "$as_me:$LINENO: checking whether ln -s works" >&5
4707echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4708LN_S=$as_ln_s
4709if test "$LN_S" = "ln -s"; then
4710  echo "$as_me:$LINENO: result: yes" >&5
4711echo "${ECHO_T}yes" >&6
4712else
4713  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4714echo "${ECHO_T}no, using $LN_S" >&6
4715fi
4716
4717am__api_version="1.9"
4718# Find a good install program.  We prefer a C program (faster),
4719# so one script is as good as another.  But avoid the broken or
4720# incompatible versions:
4721# SysV /etc/install, /usr/sbin/install
4722# SunOS /usr/etc/install
4723# IRIX /sbin/install
4724# AIX /bin/install
4725# AmigaOS /C/install, which installs bootblocks on floppy discs
4726# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4727# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4728# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4729# OS/2's system install, which has a completely different semantic
4730# ./install, which can be erroneously created by make from ./install.sh.
4731echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4732echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4733if test -z "$INSTALL"; then
4734if test "${ac_cv_path_install+set}" = set; then
4735  echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738for as_dir in $PATH
4739do
4740  IFS=$as_save_IFS
4741  test -z "$as_dir" && as_dir=.
4742  # Account for people who put trailing slashes in PATH elements.
4743case $as_dir/ in
4744  ./ | .// | /cC/* | \
4745  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4746  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4747  /usr/ucb/* ) ;;
4748  *)
4749    # OSF1 and SCO ODT 3.0 have their own names for install.
4750    # Don't use installbsd from OSF since it installs stuff as root
4751    # by default.
4752    for ac_prog in ginstall scoinst install; do
4753      for ac_exec_ext in '' $ac_executable_extensions; do
4754        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4755          if test $ac_prog = install &&
4756            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4757            # AIX install.  It has an incompatible calling convention.
4758            :
4759          elif test $ac_prog = install &&
4760            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4761            # program-specific install script used by HP pwplus--don't use.
4762            :
4763          else
4764            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4765            break 3
4766          fi
4767        fi
4768      done
4769    done
4770    ;;
4771esac
4772done
4773
4774
4775fi
4776  if test "${ac_cv_path_install+set}" = set; then
4777    INSTALL=$ac_cv_path_install
4778  else
4779    # As a last resort, use the slow shell script.  We don't cache a
4780    # path for INSTALL within a source directory, because that will
4781    # break other packages using the cache if that directory is
4782    # removed, or if the path is relative.
4783    INSTALL=$ac_install_sh
4784  fi
4785fi
4786echo "$as_me:$LINENO: result: $INSTALL" >&5
4787echo "${ECHO_T}$INSTALL" >&6
4788
4789# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4790# It thinks the first close brace ends the variable substitution.
4791test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4792
4793test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4794
4795test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4796
4797echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4798echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4799# Just in case
4800sleep 1
4801echo timestamp > conftest.file
4802# Do `set' in a subshell so we don't clobber the current shell's
4803# arguments.  Must try -L first in case configure is actually a
4804# symlink; some systems play weird games with the mod time of symlinks
4805# (eg FreeBSD returns the mod time of the symlink's containing
4806# directory).
4807if (
4808   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4809   if test "$*" = "X"; then
4810      # -L didn't work.
4811      set X `ls -t $srcdir/configure conftest.file`
4812   fi
4813   rm -f conftest.file
4814   if test "$*" != "X $srcdir/configure conftest.file" \
4815      && test "$*" != "X conftest.file $srcdir/configure"; then
4816
4817      # If neither matched, then we have a broken ls.  This can happen
4818      # if, for instance, CONFIG_SHELL is bash and it inherits a
4819      # broken ls alias from the environment.  This has actually
4820      # happened.  Such a system could not be considered "sane".
4821      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4822alias in your environment" >&5
4823echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4824alias in your environment" >&2;}
4825   { (exit 1); exit 1; }; }
4826   fi
4827
4828   test "$2" = conftest.file
4829   )
4830then
4831   # Ok.
4832   :
4833else
4834   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4835Check your system clock" >&5
4836echo "$as_me: error: newly created file is older than distributed files!
4837Check your system clock" >&2;}
4838   { (exit 1); exit 1; }; }
4839fi
4840echo "$as_me:$LINENO: result: yes" >&5
4841echo "${ECHO_T}yes" >&6
4842test "$program_prefix" != NONE &&
4843  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4844# Use a double $ so make ignores it.
4845test "$program_suffix" != NONE &&
4846  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4847# Double any \ or $.  echo might interpret backslashes.
4848# By default was `s,x,x', remove it if useless.
4849cat <<\_ACEOF >conftest.sed
4850s/[\\$]/&&/g;s/;s,x,x,$//
4851_ACEOF
4852program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4853rm conftest.sed
4854
4855# expand $ac_aux_dir to an absolute path
4856am_aux_dir=`cd $ac_aux_dir && pwd`
4857
4858test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4859# Use eval to expand $SHELL
4860if eval "$MISSING --run true"; then
4861  am_missing_run="$MISSING --run "
4862else
4863  am_missing_run=
4864  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4865echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4866fi
4867
4868if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4869  # We used to keeping the `.' as first argument, in order to
4870  # allow $(mkdir_p) to be used without argument.  As in
4871  #   $(mkdir_p) $(somedir)
4872  # where $(somedir) is conditionally defined.  However this is wrong
4873  # for two reasons:
4874  #  1. if the package is installed by a user who cannot write `.'
4875  #     make install will fail,
4876  #  2. the above comment should most certainly read
4877  #     $(mkdir_p) $(DESTDIR)$(somedir)
4878  #     so it does not work when $(somedir) is undefined and
4879  #     $(DESTDIR) is not.
4880  #  To support the latter case, we have to write
4881  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4882  #  so the `.' trick is pointless.
4883  mkdir_p='mkdir -p --'
4884else
4885  # On NextStep and OpenStep, the `mkdir' command does not
4886  # recognize any option.  It will interpret all options as
4887  # directories to create, and then abort because `.' already
4888  # exists.
4889  for d in ./-p ./--version;
4890  do
4891    test -d $d && rmdir $d
4892  done
4893  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4894  if test -f "$ac_aux_dir/mkinstalldirs"; then
4895    mkdir_p='$(mkinstalldirs)'
4896  else
4897    mkdir_p='$(install_sh) -d'
4898  fi
4899fi
4900
4901for ac_prog in gawk mawk nawk awk
4902do
4903  # Extract the first word of "$ac_prog", so it can be a program name with args.
4904set dummy $ac_prog; ac_word=$2
4905echo "$as_me:$LINENO: checking for $ac_word" >&5
4906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4907if test "${ac_cv_prog_AWK+set}" = set; then
4908  echo $ECHO_N "(cached) $ECHO_C" >&6
4909else
4910  if test -n "$AWK"; then
4911  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4912else
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916  IFS=$as_save_IFS
4917  test -z "$as_dir" && as_dir=.
4918  for ac_exec_ext in '' $ac_executable_extensions; do
4919  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920    ac_cv_prog_AWK="$ac_prog"
4921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922    break 2
4923  fi
4924done
4925done
4926
4927fi
4928fi
4929AWK=$ac_cv_prog_AWK
4930if test -n "$AWK"; then
4931  echo "$as_me:$LINENO: result: $AWK" >&5
4932echo "${ECHO_T}$AWK" >&6
4933else
4934  echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936fi
4937
4938  test -n "$AWK" && break
4939done
4940
4941echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4942echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4943set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4944if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4945  echo $ECHO_N "(cached) $ECHO_C" >&6
4946else
4947  cat >conftest.make <<\_ACEOF
4948all:
4949        @echo 'ac_maketemp="$(MAKE)"'
4950_ACEOF
4951# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4952eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4953if test -n "$ac_maketemp"; then
4954  eval ac_cv_prog_make_${ac_make}_set=yes
4955else
4956  eval ac_cv_prog_make_${ac_make}_set=no
4957fi
4958rm -f conftest.make
4959fi
4960if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4961  echo "$as_me:$LINENO: result: yes" >&5
4962echo "${ECHO_T}yes" >&6
4963  SET_MAKE=
4964else
4965  echo "$as_me:$LINENO: result: no" >&5
4966echo "${ECHO_T}no" >&6
4967  SET_MAKE="MAKE=${MAKE-make}"
4968fi
4969
4970rm -rf .tst 2>/dev/null
4971mkdir .tst 2>/dev/null
4972if test -d .tst; then
4973  am__leading_dot=.
4974else
4975  am__leading_dot=_
4976fi
4977rmdir .tst 2>/dev/null
4978
4979DEPDIR="${am__leading_dot}deps"
4980
4981          ac_config_commands="$ac_config_commands depfiles"
4982
4983
4984am_make=${MAKE-make}
4985cat > confinc << 'END'
4986am__doit:
4987        @echo done
4988.PHONY: am__doit
4989END
4990# If we don't find an include directive, just comment out the code.
4991echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4992echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4993am__include="#"
4994am__quote=
4995_am_result=none
4996# First try GNU make style include.
4997echo "include confinc" > confmf
4998# We grep out `Entering directory' and `Leaving directory'
4999# messages which can occur if `w' ends up in MAKEFLAGS.
5000# In particular we don't look at `^make:' because GNU make might
5001# be invoked under some other name (usually "gmake"), in which
5002# case it prints its new name instead of `make'.
5003if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5004   am__include=include
5005   am__quote=
5006   _am_result=GNU
5007fi
5008# Now try BSD make style include.
5009if test "$am__include" = "#"; then
5010   echo '.include "confinc"' > confmf
5011   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5012      am__include=.include
5013      am__quote="\""
5014      _am_result=BSD
5015   fi
5016fi
5017
5018
5019echo "$as_me:$LINENO: result: $_am_result" >&5
5020echo "${ECHO_T}$_am_result" >&6
5021rm -f confinc confmf
5022
5023# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5024if test "${enable_dependency_tracking+set}" = set; then
5025  enableval="$enable_dependency_tracking"
5026
5027fi;
5028if test "x$enable_dependency_tracking" != xno; then
5029  am_depcomp="$ac_aux_dir/depcomp"
5030  AMDEPBACKSLASH='\'
5031fi
5032
5033
5034if test "x$enable_dependency_tracking" != xno; then
5035  AMDEP_TRUE=
5036  AMDEP_FALSE='#'
5037else
5038  AMDEP_TRUE='#'
5039  AMDEP_FALSE=
5040fi
5041
5042
5043
5044
5045
5046
5047# AC_MSG_NOTICE([Beginning automake initialisation.])
5048# Stuff for automake
5049# test to see if srcdir already configured
5050if test "`cd $srcdir && pwd`" != "`pwd`" &&
5051   test -f $srcdir/config.status; then
5052  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5053echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5054   { (exit 1); exit 1; }; }
5055fi
5056
5057# test whether we have cygpath
5058if test -z "$CYGPATH_W"; then
5059  if (cygpath --version) >/dev/null 2>/dev/null; then
5060    CYGPATH_W='cygpath -w'
5061  else
5062    CYGPATH_W=echo
5063  fi
5064fi
5065
5066
5067# Define the identity of the package.
5068 PACKAGE='cgl'
5069 VERSION='0.60'
5070
5071
5072cat >>confdefs.h <<_ACEOF
5073#define PACKAGE "$PACKAGE"
5074_ACEOF
5075
5076
5077cat >>confdefs.h <<_ACEOF
5078#define VERSION "$VERSION"
5079_ACEOF
5080
5081# Some tools Automake needs.
5082
5083ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5084
5085
5086AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5087
5088
5089AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5090
5091
5092AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5093
5094
5095MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5096
5097install_sh=${install_sh-"$am_aux_dir/install-sh"}
5098
5099# Installed binaries are usually stripped using `strip' when the user
5100# run `make install-strip'.  However `strip' might not be the right
5101# tool to use in cross-compilation environments, therefore Automake
5102# will honor the `STRIP' environment variable to overrule this program.
5103if test "$cross_compiling" != no; then
5104  if test -n "$ac_tool_prefix"; then
5105  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5106set dummy ${ac_tool_prefix}strip; ac_word=$2
5107echo "$as_me:$LINENO: checking for $ac_word" >&5
5108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109if test "${ac_cv_prog_STRIP+set}" = set; then
5110  echo $ECHO_N "(cached) $ECHO_C" >&6
5111else
5112  if test -n "$STRIP"; then
5113  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5114else
5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118  IFS=$as_save_IFS
5119  test -z "$as_dir" && as_dir=.
5120  for ac_exec_ext in '' $ac_executable_extensions; do
5121  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124    break 2
5125  fi
5126done
5127done
5128
5129fi
5130fi
5131STRIP=$ac_cv_prog_STRIP
5132if test -n "$STRIP"; then
5133  echo "$as_me:$LINENO: result: $STRIP" >&5
5134echo "${ECHO_T}$STRIP" >&6
5135else
5136  echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6
5138fi
5139
5140fi
5141if test -z "$ac_cv_prog_STRIP"; then
5142  ac_ct_STRIP=$STRIP
5143  # Extract the first word of "strip", so it can be a program name with args.
5144set dummy strip; ac_word=$2
5145echo "$as_me:$LINENO: checking for $ac_word" >&5
5146echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5147if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5148  echo $ECHO_N "(cached) $ECHO_C" >&6
5149else
5150  if test -n "$ac_ct_STRIP"; then
5151  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5152else
5153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154for as_dir in $PATH
5155do
5156  IFS=$as_save_IFS
5157  test -z "$as_dir" && as_dir=.
5158  for ac_exec_ext in '' $ac_executable_extensions; do
5159  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160    ac_cv_prog_ac_ct_STRIP="strip"
5161    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162    break 2
5163  fi
5164done
5165done
5166
5167  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5168fi
5169fi
5170ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5171if test -n "$ac_ct_STRIP"; then
5172  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5173echo "${ECHO_T}$ac_ct_STRIP" >&6
5174else
5175  echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
5177fi
5178
5179  STRIP=$ac_ct_STRIP
5180else
5181  STRIP="$ac_cv_prog_STRIP"
5182fi
5183
5184fi
5185INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5186
5187# We need awk for the "check" target.  The system "awk" is bad on
5188# some platforms.
5189# Always define AMTAR for backward compatibility.
5190
5191AMTAR=${AMTAR-"${am_missing_run}tar"}
5192
5193am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5194
5195
5196
5197
5198depcc="$CC"   am_compiler_list=
5199
5200echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5201echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5202if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5203  echo $ECHO_N "(cached) $ECHO_C" >&6
5204else
5205  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5206  # We make a subdir and do the tests there.  Otherwise we can end up
5207  # making bogus files that we don't know about and never remove.  For
5208  # instance it was reported that on HP-UX the gcc test will end up
5209  # making a dummy file named `D' -- because `-MD' means `put the output
5210  # in D'.
5211  mkdir conftest.dir
5212  # Copy depcomp to subdir because otherwise we won't find it if we're
5213  # using a relative directory.
5214  cp "$am_depcomp" conftest.dir
5215  cd conftest.dir
5216  # We will build objects and dependencies in a subdirectory because
5217  # it helps to detect inapplicable dependency modes.  For instance
5218  # both Tru64's cc and ICC support -MD to output dependencies as a
5219  # side effect of compilation, but ICC will put the dependencies in
5220  # the current directory while Tru64 will put them in the object
5221  # directory.
5222  mkdir sub
5223
5224  am_cv_CC_dependencies_compiler_type=none
5225  if test "$am_compiler_list" = ""; then
5226     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5227  fi
5228  for depmode in $am_compiler_list; do
5229    # Setup a source with many dependencies, because some compilers
5230    # like to wrap large dependency lists on column 80 (with \), and
5231    # we should not choose a depcomp mode which is confused by this.
5232    #
5233    # We need to recreate these files for each test, as the compiler may
5234    # overwrite some of them when testing with obscure command lines.
5235    # This happens at least with the AIX C compiler.
5236    : > sub/conftest.c
5237    for i in 1 2 3 4 5 6; do
5238      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5239      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5240      # Solaris 8's {/usr,}/bin/sh.
5241      touch sub/conftst$i.h
5242    done
5243    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5244
5245    case $depmode in
5246    nosideeffect)
5247      # after this tag, mechanisms are not by side-effect, so they'll
5248      # only be used when explicitly requested
5249      if test "x$enable_dependency_tracking" = xyes; then
5250        continue
5251      else
5252        break
5253      fi
5254      ;;
5255    none) break ;;
5256    esac
5257    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5258    # mode.  It turns out that the SunPro C++ compiler does not properly
5259    # handle `-M -o', and we need to detect this.
5260    if depmode=$depmode \
5261       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5262       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5263       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5264         >/dev/null 2>conftest.err &&
5265       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5266       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5267       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5268      # icc doesn't choke on unknown options, it will just issue warnings
5269      # or remarks (even with -Werror).  So we grep stderr for any message
5270      # that says an option was ignored or not supported.
5271      # When given -MP, icc 7.0 and 7.1 complain thusly:
5272      #   icc: Command line warning: ignoring option '-M'; no argument required
5273      # The diagnosis changed in icc 8.0:
5274      #   icc: Command line remark: option '-MP' not supported
5275      if (grep 'ignoring option' conftest.err ||
5276          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5277        am_cv_CC_dependencies_compiler_type=$depmode
5278        break
5279      fi
5280    fi
5281  done
5282
5283  cd ..
5284  rm -rf conftest.dir
5285else
5286  am_cv_CC_dependencies_compiler_type=none
5287fi
5288
5289fi
5290echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5291echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5292CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5293
5294
5295
5296if
5297  test "x$enable_dependency_tracking" != xno \
5298  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5299  am__fastdepCC_TRUE=
5300  am__fastdepCC_FALSE='#'
5301else
5302  am__fastdepCC_TRUE='#'
5303  am__fastdepCC_FALSE=
5304fi
5305
5306
5307depcc="$CXX"  am_compiler_list=
5308
5309echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5310echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5311if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5312  echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5315  # We make a subdir and do the tests there.  Otherwise we can end up
5316  # making bogus files that we don't know about and never remove.  For
5317  # instance it was reported that on HP-UX the gcc test will end up
5318  # making a dummy file named `D' -- because `-MD' means `put the output
5319  # in D'.
5320  mkdir conftest.dir
5321  # Copy depcomp to subdir because otherwise we won't find it if we're
5322  # using a relative directory.
5323  cp "$am_depcomp" conftest.dir
5324  cd conftest.dir
5325  # We will build objects and dependencies in a subdirectory because
5326  # it helps to detect inapplicable dependency modes.  For instance
5327  # both Tru64's cc and ICC support -MD to output dependencies as a
5328  # side effect of compilation, but ICC will put the dependencies in
5329  # the current directory while Tru64 will put them in the object
5330  # directory.
5331  mkdir sub
5332
5333  am_cv_CXX_dependencies_compiler_type=none
5334  if test "$am_compiler_list" = ""; then
5335     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5336  fi
5337  for depmode in $am_compiler_list; do
5338    # Setup a source with many dependencies, because some compilers
5339    # like to wrap large dependency lists on column 80 (with \), and
5340    # we should not choose a depcomp mode which is confused by this.
5341    #
5342    # We need to recreate these files for each test, as the compiler may
5343    # overwrite some of them when testing with obscure command lines.
5344    # This happens at least with the AIX C compiler.
5345    : > sub/conftest.c
5346    for i in 1 2 3 4 5 6; do
5347      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5348      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5349      # Solaris 8's {/usr,}/bin/sh.
5350      touch sub/conftst$i.h
5351    done
5352    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5353
5354    case $depmode in
5355    nosideeffect)
5356      # after this tag, mechanisms are not by side-effect, so they'll
5357      # only be used when explicitly requested
5358      if test "x$enable_dependency_tracking" = xyes; then
5359        continue
5360      else
5361        break
5362      fi
5363      ;;
5364    none) break ;;
5365    esac
5366    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5367    # mode.  It turns out that the SunPro C++ compiler does not properly
5368    # handle `-M -o', and we need to detect this.
5369    if depmode=$depmode \
5370       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5371       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5372       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5373         >/dev/null 2>conftest.err &&
5374       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5375       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5376       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5377      # icc doesn't choke on unknown options, it will just issue warnings
5378      # or remarks (even with -Werror).  So we grep stderr for any message
5379      # that says an option was ignored or not supported.
5380      # When given -MP, icc 7.0 and 7.1 complain thusly:
5381      #   icc: Command line warning: ignoring option '-M'; no argument required
5382      # The diagnosis changed in icc 8.0:
5383      #   icc: Command line remark: option '-MP' not supported
5384      if (grep 'ignoring option' conftest.err ||
5385          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5386        am_cv_CXX_dependencies_compiler_type=$depmode
5387        break
5388      fi
5389    fi
5390  done
5391
5392  cd ..
5393  rm -rf conftest.dir
5394else
5395  am_cv_CXX_dependencies_compiler_type=none
5396fi
5397
5398fi
5399echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5400echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5401CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5402
5403
5404
5405if
5406  test "x$enable_dependency_tracking" != xno \
5407  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5408  am__fastdepCXX_TRUE=
5409  am__fastdepCXX_FALSE='#'
5410else
5411  am__fastdepCXX_TRUE='#'
5412  am__fastdepCXX_FALSE=
5413fi
5414
5415
5416
5417echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5418echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5419    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5420if test "${enable_maintainer_mode+set}" = set; then
5421  enableval="$enable_maintainer_mode"
5422  USE_MAINTAINER_MODE=$enableval
5423else
5424  USE_MAINTAINER_MODE=no
5425fi;
5426  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5427echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5428
5429
5430if test $USE_MAINTAINER_MODE = yes; then
5431  MAINTAINER_MODE_TRUE=
5432  MAINTAINER_MODE_FALSE='#'
5433else
5434  MAINTAINER_MODE_TRUE='#'
5435  MAINTAINER_MODE_FALSE=
5436fi
5437
5438  MAINT=$MAINTAINER_MODE_TRUE
5439
5440
5441
5442coin_have_externals=no
5443if test "$enable_maintainer_mode" = yes; then
5444
5445  # If maintainer mode is chosen, we make sure that the correct versions
5446  # of the tools are used, and that we know where libtool.m4 is (to
5447  # recreate acinclude.m4)
5448
5449
5450  LIBTOOLM4=
5451  # Normally, $HOME
5452  AUTOTOOLS_DFLT=$HOME
5453
5454  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5455echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5456if test "${ac_cv_use_correct_autotools+set}" = set; then
5457  echo $ECHO_N "(cached) $ECHO_C" >&6
5458else
5459  ac_cv_use_correct_autotools=check
5460fi
5461echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5462echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5463
5464  if test $ac_cv_use_correct_autotools = check; then
5465    ac_cv_use_correct_autotools=yes
5466    # Check if we have autoconf
5467    # Extract the first word of "autoconf", so it can be a program name with args.
5468set dummy autoconf; ac_word=$2
5469echo "$as_me:$LINENO: checking for $ac_word" >&5
5470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5471if test "${ac_cv_prog_have_autoconf+set}" = set; then
5472  echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474  if test -n "$have_autoconf"; then
5475  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5476else
5477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478for as_dir in $PATH
5479do
5480  IFS=$as_save_IFS
5481  test -z "$as_dir" && as_dir=.
5482  for ac_exec_ext in '' $ac_executable_extensions; do
5483  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484    ac_cv_prog_have_autoconf="yes"
5485    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5486    break 2
5487  fi
5488done
5489done
5490
5491  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5492fi
5493fi
5494have_autoconf=$ac_cv_prog_have_autoconf
5495if test -n "$have_autoconf"; then
5496  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5497echo "${ECHO_T}$have_autoconf" >&6
5498else
5499  echo "$as_me:$LINENO: result: no" >&5
5500echo "${ECHO_T}no" >&6
5501fi
5502
5503    if test $have_autoconf = no; then
5504      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5505echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5506   { (exit 1); exit 1; }; }
5507    fi
5508
5509    # Check whether autoconf is the correct version
5510    correct_version='2.59'
5511    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5512    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5513echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5514    autoconf --version > confauto.out 2>&1
5515    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5516      echo "$as_me:$LINENO: result: yes" >&5
5517echo "${ECHO_T}yes" >&6
5518    else
5519      rm -f confauto.out
5520      echo "$as_me:$LINENO: result: no" >&5
5521echo "${ECHO_T}no" >&6
5522      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5523echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5524   { (exit 1); exit 1; }; }
5525    fi
5526    rm -f confauto.out
5527
5528    # Check if the executable autoconf is picked up from the correct location
5529    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5530echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5531    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5532    autoconf_dir=`cd $autoconf_dir; pwd`
5533    if test x$AUTOTOOLS_DIR = x; then
5534      want_dir=$AUTOTOOLS_DFLT/bin
5535    else
5536      want_dir=$AUTOTOOLS_DIR/bin
5537    fi
5538    if test $autoconf_dir = `cd $want_dir; pwd`; then
5539      echo "$as_me:$LINENO: result: yes" >&5
5540echo "${ECHO_T}yes" >&6
5541    else
5542      rm -f confauto.out
5543      echo "$as_me:$LINENO: result: no" >&5
5544echo "${ECHO_T}no" >&6
5545      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5546echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5547   { (exit 1); exit 1; }; }
5548    fi
5549
5550    # Check if we have automake
5551    # Extract the first word of "automake", so it can be a program name with args.
5552set dummy automake; ac_word=$2
5553echo "$as_me:$LINENO: checking for $ac_word" >&5
5554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5555if test "${ac_cv_prog_have_automake+set}" = set; then
5556  echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558  if test -n "$have_automake"; then
5559  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5560else
5561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH
5563do
5564  IFS=$as_save_IFS
5565  test -z "$as_dir" && as_dir=.
5566  for ac_exec_ext in '' $ac_executable_extensions; do
5567  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568    ac_cv_prog_have_automake="yes"
5569    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5570    break 2
5571  fi
5572done
5573done
5574
5575  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5576fi
5577fi
5578have_automake=$ac_cv_prog_have_automake
5579if test -n "$have_automake"; then
5580  echo "$as_me:$LINENO: result: $have_automake" >&5
5581echo "${ECHO_T}$have_automake" >&6
5582else
5583  echo "$as_me:$LINENO: result: no" >&5
5584echo "${ECHO_T}no" >&6
5585fi
5586
5587    if test $have_automake = no; then
5588      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5589echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5590   { (exit 1); exit 1; }; }
5591    fi
5592
5593    # Check whether automake is the correct version
5594    correct_version='1.9.6'
5595    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5596    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5597echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5598    automake --version > confauto.out 2>&1
5599    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5600      echo "$as_me:$LINENO: result: yes" >&5
5601echo "${ECHO_T}yes" >&6
5602    else
5603      rm -f confauto.out
5604      echo "$as_me:$LINENO: result: no" >&5
5605echo "${ECHO_T}no" >&6
5606      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5607echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5608   { (exit 1); exit 1; }; }
5609    fi
5610    rm -f confauto.out
5611
5612    # Check if the executable automake is picked up from the correct location
5613    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5614echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5615    automake_dir=`which automake | sed -e 's=/automake=='`
5616    automake_dir=`cd $automake_dir; pwd`
5617    if test x$AUTOTOOLS_DIR = x; then
5618      want_dir=$AUTOTOOLS_DFLT/bin
5619    else
5620      want_dir=$AUTOTOOLS_DIR/bin
5621    fi
5622    if test $automake_dir = `cd $want_dir; pwd`; then
5623      echo "$as_me:$LINENO: result: yes" >&5
5624echo "${ECHO_T}yes" >&6
5625    else
5626      rm -f confauto.out
5627      echo "$as_me:$LINENO: result: no" >&5
5628echo "${ECHO_T}no" >&6
5629      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5630echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5631   { (exit 1); exit 1; }; }
5632    fi
5633
5634    # Check if this is the correct version of libtool (with escaped dots)
5635    if test x$AUTOTOOLS_DIR = x; then
5636      want_dir=$AUTOTOOLS_DFLT/share
5637    else
5638      want_dir=$AUTOTOOLS_DIR/share
5639    fi
5640    correct_version='1.5.22'
5641    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5642    if test -r $want_dir/libtool/ltmain.sh; then
5643  have_ltmain=yes
5644  :
5645else
5646  have_ltmain=no
5647  :
5648fi
5649
5650    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5651echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5652    if test $have_ltmain = yes; then
5653    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5654        echo "$as_me:$LINENO: result: yes" >&5
5655echo "${ECHO_T}yes" >&6
5656      else
5657        echo "$as_me:$LINENO: result: no" >&5
5658echo "${ECHO_T}no" >&6
5659        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5660echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5661   { (exit 1); exit 1; }; }
5662      fi
5663    else
5664      echo "$as_me:$LINENO: result: no" >&5
5665echo "${ECHO_T}no" >&6
5666      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5667echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5668   { (exit 1); exit 1; }; }
5669    fi
5670  fi
5671
5672  # Check if we can find the libtool file
5673  if test x$AUTOTOOLS_DIR = x; then
5674    want_dir=$AUTOTOOLS_DFLT/share
5675  else
5676    want_dir=$AUTOTOOLS_DIR/share
5677  fi
5678  if test -r $want_dir/aclocal/libtool.m4; then
5679  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5680  :
5681else
5682  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5683echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5684   { (exit 1); exit 1; }; }
5685  :
5686fi
5687
5688
5689  # Check if we have an Dependencies file
5690  if test -r $srcdir/Dependencies; then
5691    coin_have_externals=yes
5692  fi
5693  # Check if subversion is installed and understands https
5694  # Extract the first word of "svn", so it can be a program name with args.
5695set dummy svn; ac_word=$2
5696echo "$as_me:$LINENO: checking for $ac_word" >&5
5697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5698if test "${ac_cv_prog_have_svn+set}" = set; then
5699  echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701  if test -n "$have_svn"; then
5702  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5703else
5704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705for as_dir in $PATH
5706do
5707  IFS=$as_save_IFS
5708  test -z "$as_dir" && as_dir=.
5709  for ac_exec_ext in '' $ac_executable_extensions; do
5710  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5711    ac_cv_prog_have_svn="yes"
5712    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713    break 2
5714  fi
5715done
5716done
5717
5718  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5719fi
5720fi
5721have_svn=$ac_cv_prog_have_svn
5722if test -n "$have_svn"; then
5723  echo "$as_me:$LINENO: result: $have_svn" >&5
5724echo "${ECHO_T}$have_svn" >&6
5725else
5726  echo "$as_me:$LINENO: result: no" >&5
5727echo "${ECHO_T}no" >&6
5728fi
5729
5730  if test x$have_svn = xyes; then
5731    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5732echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5733if test "${ac_cv_svn_understands_https+set}" = set; then
5734  echo $ECHO_N "(cached) $ECHO_C" >&6
5735else
5736  svn --version > confauto.out 2>&1
5737                    if $EGREP https confauto.out >/dev/null 2>&1; then
5738                      ac_cv_svn_understands_https=yes
5739                    else
5740                      ac_cv_svn_understands_https=no
5741                      have_svn=no
5742                      ac_cv_prog_have_svn=no
5743                    fi
5744                    rm -f confauto.out
5745fi
5746echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5747echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5748  fi
5749
5750  # Find the location of the BuildTools directory
5751  BUILDTOOLSDIR=
5752  if test -r $srcdir/BuildTools/coin.m4; then
5753    BUILDTOOLSDIR=$srcdir/BuildTools
5754  else
5755    if test -r $srcdir/../BuildTools/coin.m4; then
5756      BUILDTOOLSDIR=$srcdir/../BuildTools
5757    else
5758      if test -r $srcdir/../../BuildTools/coin.m4; then
5759        BUILDTOOLSDIR=$srcdir/../../BuildTools
5760      else
5761        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5762echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5763   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5764      fi
5765    fi
5766  fi
5767
5768
5769  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5770  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5771    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5772  fi
5773
5774  # The following variable is set to the name of the directory where
5775  # the autotool scripts are located
5776
5777  AUX_DIR=$ac_aux_dir
5778fi
5779
5780# helpful variable for the base directory of this package
5781abs_source_dir=`cd $srcdir; pwd`
5782
5783
5784# Stuff for example Makefiles
5785if test x$prefix = xNONE; then
5786  full_prefix=$ac_default_prefix
5787else
5788  full_prefix=$prefix
5789fi
5790full_prefix=`cd $full_prefix ; pwd`
5791
5792abs_lib_dir=$full_prefix/lib
5793
5794abs_include_dir=$full_prefix/include
5795
5796abs_bin_dir=$full_prefix/bin
5797
5798
5799
5800if test $coin_have_externals = yes && test x$have_svn = xyes; then
5801  HAVE_EXTERNALS_TRUE=
5802  HAVE_EXTERNALS_FALSE='#'
5803else
5804  HAVE_EXTERNALS_TRUE='#'
5805  HAVE_EXTERNALS_FALSE=
5806fi
5807
5808
5809# AC_MSG_NOTICE([End automake initialisation.])
5810
5811
5812
5813LIBTOOL=
5814if test -f ../libtool; then
5815  coin_config_dir=..
5816  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5817fi
5818if test "x$LIBTOOL" = x; then
5819  if test -f ../../libtool; then
5820    coin_config_dir=../..
5821    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5822  fi
5823fi
5824
5825if test "x$LIBTOOL" = x; then
5826# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5827  # Stuff for libtool
5828  # Check whether --enable-shared or --disable-shared was given.
5829if test "${enable_shared+set}" = set; then
5830  enableval="$enable_shared"
5831  p=${PACKAGE-default}
5832    case $enableval in
5833    yes) enable_shared=yes ;;
5834    no) enable_shared=no ;;
5835    *)
5836      enable_shared=no
5837      # Look at the argument we got.  We use all the common list separators.
5838      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5839      for pkg in $enableval; do
5840        IFS="$lt_save_ifs"
5841        if test "X$pkg" = "X$p"; then
5842          enable_shared=yes
5843        fi
5844      done
5845      IFS="$lt_save_ifs"
5846      ;;
5847    esac
5848else
5849  enable_shared=yes
5850fi;
5851
5852# Check whether --enable-fast-install or --disable-fast-install was given.
5853if test "${enable_fast_install+set}" = set; then
5854  enableval="$enable_fast_install"
5855  p=${PACKAGE-default}
5856    case $enableval in
5857    yes) enable_fast_install=yes ;;
5858    no) enable_fast_install=no ;;
5859    *)
5860      enable_fast_install=no
5861      # Look at the argument we got.  We use all the common list separators.
5862      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5863      for pkg in $enableval; do
5864        IFS="$lt_save_ifs"
5865        if test "X$pkg" = "X$p"; then
5866          enable_fast_install=yes
5867        fi
5868      done
5869      IFS="$lt_save_ifs"
5870      ;;
5871    esac
5872else
5873  enable_fast_install=yes
5874fi;
5875
5876echo "$as_me:$LINENO: checking host system type" >&5
5877echo $ECHO_N "checking host system type... $ECHO_C" >&6
5878if test "${ac_cv_host+set}" = set; then
5879  echo $ECHO_N "(cached) $ECHO_C" >&6
5880else
5881  ac_cv_host_alias=$host_alias
5882test -z "$ac_cv_host_alias" &&
5883  ac_cv_host_alias=$ac_cv_build_alias
5884ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5885  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5886echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5887   { (exit 1); exit 1; }; }
5888
5889fi
5890echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5891echo "${ECHO_T}$ac_cv_host" >&6
5892host=$ac_cv_host
5893host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5894host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5895host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5896
5897
5898echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5899echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5900if test "${lt_cv_path_SED+set}" = set; then
5901  echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903  # Loop through the user's path and test for sed and gsed.
5904# Then use that list of sed's as ones to test for truncation.
5905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906for as_dir in $PATH
5907do
5908  IFS=$as_save_IFS
5909  test -z "$as_dir" && as_dir=.
5910  for lt_ac_prog in sed gsed; do
5911    for ac_exec_ext in '' $ac_executable_extensions; do
5912      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5913        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5914      fi
5915    done
5916  done
5917done
5918lt_ac_max=0
5919lt_ac_count=0
5920# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5921# along with /bin/sed that truncates output.
5922for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5923  test ! -f $lt_ac_sed && continue
5924  cat /dev/null > conftest.in
5925  lt_ac_count=0
5926  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5927  # Check for GNU sed and select it if it is found.
5928  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5929    lt_cv_path_SED=$lt_ac_sed
5930    break
5931  fi
5932  while true; do
5933    cat conftest.in conftest.in >conftest.tmp
5934    mv conftest.tmp conftest.in
5935    cp conftest.in conftest.nl
5936    echo >>conftest.nl
5937    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5938    cmp -s conftest.out conftest.nl || break
5939    # 10000 chars as input seems more than enough
5940    test $lt_ac_count -gt 10 && break
5941    lt_ac_count=`expr $lt_ac_count + 1`
5942    if test $lt_ac_count -gt $lt_ac_max; then
5943      lt_ac_max=$lt_ac_count
5944      lt_cv_path_SED=$lt_ac_sed
5945    fi
5946  done
5947done
5948
5949fi
5950
5951SED=$lt_cv_path_SED
5952echo "$as_me:$LINENO: result: $SED" >&5
5953echo "${ECHO_T}$SED" >&6
5954
5955
5956# Check whether --with-gnu-ld or --without-gnu-ld was given.
5957if test "${with_gnu_ld+set}" = set; then
5958  withval="$with_gnu_ld"
5959  test "$withval" = no || with_gnu_ld=yes
5960else
5961  with_gnu_ld=no
5962fi;
5963ac_prog=ld
5964if test "$GCC" = yes; then
5965  # Check if gcc -print-prog-name=ld gives a path.
5966  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5967echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5968  case $host in
5969  *-*-mingw*)
5970    # gcc leaves a trailing carriage return which upsets mingw
5971    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5972  *)
5973    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5974  esac
5975  case $ac_prog in
5976    # Accept absolute paths.
5977    [\\/]* | ?:[\\/]*)
5978      re_direlt='/[^/][^/]*/\.\./'
5979      # Canonicalize the pathname of ld
5980      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5981      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5982        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5983      done
5984      test -z "$LD" && LD="$ac_prog"
5985      ;;
5986  "")
5987    # If it fails, then pretend we aren't using GCC.
5988    ac_prog=ld
5989    ;;
5990  *)
5991    # If it is relative, then search for the first ld in PATH.
5992    with_gnu_ld=unknown
5993    ;;
5994  esac
5995elif test "$with_gnu_ld" = yes; then
5996  echo "$as_me:$LINENO: checking for GNU ld" >&5
5997echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5998else
5999  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6000echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6001fi
6002if test "${lt_cv_path_LD+set}" = set; then
6003  echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005  if test -z "$LD"; then
6006  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6007  for ac_dir in $PATH; do
6008    IFS="$lt_save_ifs"
6009    test -z "$ac_dir" && ac_dir=.
6010    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6011      lt_cv_path_LD="$ac_dir/$ac_prog"
6012      # Check to see if the program is GNU ld.  I'd rather use --version,
6013      # but apparently some variants of GNU ld only accept -v.
6014      # Break only if it was the GNU/non-GNU ld that we prefer.
6015      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6016      *GNU* | *'with BFD'*)
6017        test "$with_gnu_ld" != no && break
6018        ;;
6019      *)
6020        test "$with_gnu_ld" != yes && break
6021        ;;
6022      esac
6023    fi
6024  done
6025  IFS="$lt_save_ifs"
6026else
6027  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6028fi
6029fi
6030
6031LD="$lt_cv_path_LD"
6032if test -n "$LD"; then
6033  echo "$as_me:$LINENO: result: $LD" >&5
6034echo "${ECHO_T}$LD" >&6
6035else
6036  echo "$as_me:$LINENO: result: no" >&5
6037echo "${ECHO_T}no" >&6
6038fi
6039test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6040echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6041   { (exit 1); exit 1; }; }
6042echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6043echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6044if test "${lt_cv_prog_gnu_ld+set}" = set; then
6045  echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6048case `$LD -v 2>&1 </dev/null` in
6049*GNU* | *'with BFD'*)
6050  lt_cv_prog_gnu_ld=yes
6051  ;;
6052*)
6053  lt_cv_prog_gnu_ld=no
6054  ;;
6055esac
6056fi
6057echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6058echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6059with_gnu_ld=$lt_cv_prog_gnu_ld
6060
6061
6062echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6063echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6064if test "${lt_cv_ld_reload_flag+set}" = set; then
6065  echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067  lt_cv_ld_reload_flag='-r'
6068fi
6069echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6070echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6071reload_flag=$lt_cv_ld_reload_flag
6072case $reload_flag in
6073"" | " "*) ;;
6074*) reload_flag=" $reload_flag" ;;
6075esac
6076reload_cmds='$LD$reload_flag -o $output$reload_objs'
6077case $host_os in
6078  darwin*)
6079    if test "$GCC" = yes; then
6080      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6081    else
6082      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6083    fi
6084    ;;
6085esac
6086
6087echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6088echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6089if test "${lt_cv_path_NM+set}" = set; then
6090  echo $ECHO_N "(cached) $ECHO_C" >&6
6091else
6092  if test -n "$NM"; then
6093  # Let the user override the test.
6094  lt_cv_path_NM="$NM"
6095else
6096  lt_nm_to_check="${ac_tool_prefix}nm"
6097  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6098    lt_nm_to_check="$lt_nm_to_check nm"
6099  fi
6100  for lt_tmp_nm in $lt_nm_to_check; do
6101    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6102    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6103      IFS="$lt_save_ifs"
6104      test -z "$ac_dir" && ac_dir=.
6105      tmp_nm="$ac_dir/$lt_tmp_nm"
6106      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6107        # Check to see if the nm accepts a BSD-compat flag.
6108        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6109        #   nm: unknown option "B" ignored
6110        # Tru64's nm complains that /dev/null is an invalid object file
6111        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6112        */dev/null* | *'Invalid file or object type'*)
6113          lt_cv_path_NM="$tmp_nm -B"
6114          break
6115          ;;
6116        *)
6117          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6118          */dev/null*)
6119            lt_cv_path_NM="$tmp_nm -p"
6120            break
6121            ;;
6122          *)
6123            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6124            continue # so that we can try to find one that supports BSD flags
6125            ;;
6126          esac
6127          ;;
6128        esac
6129      fi
6130    done
6131    IFS="$lt_save_ifs"
6132  done
6133  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6134fi
6135fi
6136echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6137echo "${ECHO_T}$lt_cv_path_NM" >&6
6138NM="$lt_cv_path_NM"
6139
6140echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6141echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6142if test "${lt_cv_deplibs_check_method+set}" = set; then
6143  echo $ECHO_N "(cached) $ECHO_C" >&6
6144else
6145  lt_cv_file_magic_cmd='$MAGIC_CMD'
6146lt_cv_file_magic_test_file=
6147lt_cv_deplibs_check_method='unknown'
6148# Need to set the preceding variable on all platforms that support
6149# interlibrary dependencies.
6150# 'none' -- dependencies not supported.
6151# `unknown' -- same as none, but documents that we really don't know.
6152# 'pass_all' -- all dependencies passed with no checks.
6153# 'test_compile' -- check by making test program.
6154# 'file_magic [[regex]]' -- check by looking for files in library path
6155# which responds to the $file_magic_cmd with a given extended regex.
6156# If you have `file' or equivalent on your system and you're not sure
6157# whether `pass_all' will *always* work, you probably want this one.
6158
6159case $host_os in
6160aix4* | aix5*)
6161  lt_cv_deplibs_check_method=pass_all
6162  ;;
6163
6164beos*)
6165  lt_cv_deplibs_check_method=pass_all
6166  ;;
6167
6168bsdi[45]*)
6169  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6170  lt_cv_file_magic_cmd='/usr/bin/file -L'
6171  lt_cv_file_magic_test_file=/shlib/libc.so
6172  ;;
6173
6174cygwin*)
6175  # func_win32_libid is a shell function defined in ltmain.sh
6176  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6177  lt_cv_file_magic_cmd='func_win32_libid'
6178  ;;
6179
6180mingw* | pw32*)
6181  # Base MSYS/MinGW do not provide the 'file' command needed by
6182  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6183  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6184  lt_cv_file_magic_cmd='$OBJDUMP -f'
6185  ;;
6186
6187darwin* | rhapsody*)
6188  lt_cv_deplibs_check_method=pass_all
6189  ;;
6190
6191freebsd* | kfreebsd*-gnu | dragonfly*)
6192  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6193    case $host_cpu in
6194    i*86 )
6195      # Not sure whether the presence of OpenBSD here was a mistake.
6196      # Let's accept both of them until this is cleared up.
6197      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6198      lt_cv_file_magic_cmd=/usr/bin/file
6199      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6200      ;;
6201    esac
6202  else
6203    lt_cv_deplibs_check_method=pass_all
6204  fi
6205  ;;
6206
6207gnu*)
6208  lt_cv_deplibs_check_method=pass_all
6209  ;;
6210
6211hpux10.20* | hpux11*)
6212  lt_cv_file_magic_cmd=/usr/bin/file
6213  case $host_cpu in
6214  ia64*)
6215    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6216    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6217    ;;
6218  hppa*64*)
6219    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]'
6220    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6221    ;;
6222  *)
6223    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6224    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6225    ;;
6226  esac
6227  ;;
6228
6229interix3*)
6230  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6231  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6232  ;;
6233
6234irix5* | irix6* | nonstopux*)
6235  case $LD in
6236  *-32|*"-32 ") libmagic=32-bit;;
6237  *-n32|*"-n32 ") libmagic=N32;;
6238  *-64|*"-64 ") libmagic=64-bit;;
6239  *) libmagic=never-match;;
6240  esac
6241  lt_cv_deplibs_check_method=pass_all
6242  ;;
6243
6244# This must be Linux ELF.
6245linux*)
6246  lt_cv_deplibs_check_method=pass_all
6247  ;;
6248
6249netbsd*)
6250  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6251    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6252  else
6253    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6254  fi
6255  ;;
6256
6257newos6*)
6258  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6259  lt_cv_file_magic_cmd=/usr/bin/file
6260  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6261  ;;
6262
6263nto-qnx*)
6264  lt_cv_deplibs_check_method=unknown
6265  ;;
6266
6267openbsd*)
6268  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6269    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6270  else
6271    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6272  fi
6273  ;;
6274
6275osf3* | osf4* | osf5*)
6276  lt_cv_deplibs_check_method=pass_all
6277  ;;
6278
6279solaris*)
6280  lt_cv_deplibs_check_method=pass_all
6281  ;;
6282
6283sysv4 | sysv4.3*)
6284  case $host_vendor in
6285  motorola)
6286    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]'
6287    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6288    ;;
6289  ncr)
6290    lt_cv_deplibs_check_method=pass_all
6291    ;;
6292  sequent)
6293    lt_cv_file_magic_cmd='/bin/file'
6294    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6295    ;;
6296  sni)
6297    lt_cv_file_magic_cmd='/bin/file'
6298    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6299    lt_cv_file_magic_test_file=/lib/libc.so
6300    ;;
6301  siemens)
6302    lt_cv_deplibs_check_method=pass_all
6303    ;;
6304  pc)
6305    lt_cv_deplibs_check_method=pass_all
6306    ;;
6307  esac
6308  ;;
6309
6310sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6311  lt_cv_deplibs_check_method=pass_all
6312  ;;
6313esac
6314
6315fi
6316echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6317echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6318file_magic_cmd=$lt_cv_file_magic_cmd
6319deplibs_check_method=$lt_cv_deplibs_check_method
6320test -z "$deplibs_check_method" && deplibs_check_method=unknown
6321
6322
6323
6324
6325# If no C compiler was specified, use CC.
6326LTCC=${LTCC-"$CC"}
6327
6328# If no C compiler flags were specified, use CFLAGS.
6329LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6330
6331# Allow CC to be a program name with arguments.
6332compiler=$CC
6333
6334# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6335if test "${enable_libtool_lock+set}" = set; then
6336  enableval="$enable_libtool_lock"
6337
6338fi;
6339test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6340
6341# Some flags need to be propagated to the compiler or linker for good
6342# libtool support.
6343case $host in
6344ia64-*-hpux*)
6345  # Find out which ABI we are using.
6346  echo 'int i;' > conftest.$ac_ext
6347  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6348  (eval $ac_compile) 2>&5
6349  ac_status=$?
6350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351  (exit $ac_status); }; then
6352    case `/usr/bin/file conftest.$ac_objext` in
6353    *ELF-32*)
6354      HPUX_IA64_MODE="32"
6355      ;;
6356    *ELF-64*)
6357      HPUX_IA64_MODE="64"
6358      ;;
6359    esac
6360  fi
6361  rm -rf conftest*
6362  ;;
6363*-*-irix6*)
6364  # Find out which ABI we are using.
6365  echo '#line 6365 "configure"' > conftest.$ac_ext
6366  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6367  (eval $ac_compile) 2>&5
6368  ac_status=$?
6369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370  (exit $ac_status); }; then
6371   if test "$lt_cv_prog_gnu_ld" = yes; then
6372    case `/usr/bin/file conftest.$ac_objext` in
6373    *32-bit*)
6374      LD="${LD-ld} -melf32bsmip"
6375      ;;
6376    *N32*)
6377      LD="${LD-ld} -melf32bmipn32"
6378      ;;
6379    *64-bit*)
6380      LD="${LD-ld} -melf64bmip"
6381      ;;
6382    esac
6383   else
6384    case `/usr/bin/file conftest.$ac_objext` in
6385    *32-bit*)
6386      LD="${LD-ld} -32"
6387      ;;
6388    *N32*)
6389      LD="${LD-ld} -n32"
6390      ;;
6391    *64-bit*)
6392      LD="${LD-ld} -64"
6393      ;;
6394    esac
6395   fi
6396  fi
6397  rm -rf conftest*
6398  ;;
6399
6400x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6401  # Find out which ABI we are using.
6402  echo 'int i;' > conftest.$ac_ext
6403  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6404  (eval $ac_compile) 2>&5
6405  ac_status=$?
6406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407  (exit $ac_status); }; then
6408    case `/usr/bin/file conftest.o` in
6409    *32-bit*)
6410      case $host in
6411        x86_64-*linux*)
6412          LD="${LD-ld} -m elf_i386"
6413          ;;
6414        ppc64-*linux*|powerpc64-*linux*)
6415          LD="${LD-ld} -m elf32ppclinux"
6416          ;;
6417        s390x-*linux*)
6418          LD="${LD-ld} -m elf_s390"
6419          ;;
6420        sparc64-*linux*)
6421          LD="${LD-ld} -m elf32_sparc"
6422          ;;
6423      esac
6424      ;;
6425    *64-bit*)
6426      case $host in
6427        x86_64-*linux*)
6428          LD="${LD-ld} -m elf_x86_64"
6429          ;;
6430        ppc*-*linux*|powerpc*-*linux*)
6431          LD="${LD-ld} -m elf64ppc"
6432          ;;
6433        s390*-*linux*)
6434          LD="${LD-ld} -m elf64_s390"
6435          ;;
6436        sparc*-*linux*)
6437          LD="${LD-ld} -m elf64_sparc"
6438          ;;
6439      esac
6440      ;;
6441    esac
6442  fi
6443  rm -rf conftest*
6444  ;;
6445
6446*-*-sco3.2v5*)
6447  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6448  SAVE_CFLAGS="$CFLAGS"
6449  CFLAGS="$CFLAGS -belf"
6450  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6451echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6452if test "${lt_cv_cc_needs_belf+set}" = set; then
6453  echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
6455  ac_ext=c
6456ac_cpp='$CPP $CPPFLAGS'
6457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6459ac_compiler_gnu=$ac_cv_c_compiler_gnu
6460
6461     cat >conftest.$ac_ext <<_ACEOF
6462/* confdefs.h.  */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h.  */
6467
6468int
6469main ()
6470{
6471
6472  ;
6473  return 0;
6474}
6475_ACEOF
6476rm -f conftest.$ac_objext conftest$ac_exeext
6477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6478  (eval $ac_link) 2>conftest.er1
6479  ac_status=$?
6480  grep -v '^ *+' conftest.er1 >conftest.err
6481  rm -f conftest.er1
6482  cat conftest.err >&5
6483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484  (exit $ac_status); } &&
6485         { ac_try='test -z "$ac_c_werror_flag"
6486                         || test ! -s conftest.err'
6487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488  (eval $ac_try) 2>&5
6489  ac_status=$?
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); }; } &&
6492         { ac_try='test -s conftest$ac_exeext'
6493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494  (eval $ac_try) 2>&5
6495  ac_status=$?
6496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497  (exit $ac_status); }; }; then
6498  lt_cv_cc_needs_belf=yes
6499else
6500  echo "$as_me: failed program was:" >&5
6501sed 's/^/| /' conftest.$ac_ext >&5
6502
6503lt_cv_cc_needs_belf=no
6504fi
6505rm -f conftest.err conftest.$ac_objext \
6506      conftest$ac_exeext conftest.$ac_ext
6507     ac_ext=c
6508ac_cpp='$CPP $CPPFLAGS'
6509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6511ac_compiler_gnu=$ac_cv_c_compiler_gnu
6512
6513fi
6514echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6515echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6516  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6517    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6518    CFLAGS="$SAVE_CFLAGS"
6519  fi
6520  ;;
6521sparc*-*solaris*)
6522  # Find out which ABI we are using.
6523  echo 'int i;' > conftest.$ac_ext
6524  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6525  (eval $ac_compile) 2>&5
6526  ac_status=$?
6527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528  (exit $ac_status); }; then
6529    case `/usr/bin/file conftest.o` in
6530    *64-bit*)
6531      case $lt_cv_prog_gnu_ld in
6532      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6533      *)    LD="${LD-ld} -64" ;;
6534      esac
6535      ;;
6536    esac
6537  fi
6538  rm -rf conftest*
6539  ;;
6540
6541
6542esac
6543
6544need_locks="$enable_libtool_lock"
6545
6546
6547ac_ext=c
6548ac_cpp='$CPP $CPPFLAGS'
6549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6551ac_compiler_gnu=$ac_cv_c_compiler_gnu
6552echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6553echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6554# On Suns, sometimes $CPP names a directory.
6555if test -n "$CPP" && test -d "$CPP"; then
6556  CPP=
6557fi
6558if test -z "$CPP"; then
6559  if test "${ac_cv_prog_CPP+set}" = set; then
6560  echo $ECHO_N "(cached) $ECHO_C" >&6
6561else
6562      # Double quotes because CPP needs to be expanded
6563    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6564    do
6565      ac_preproc_ok=false
6566for ac_c_preproc_warn_flag in '' yes
6567do
6568  # Use a header file that comes with gcc, so configuring glibc
6569  # with a fresh cross-compiler works.
6570  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6571  # <limits.h> exists even on freestanding compilers.
6572  # On the NeXT, cc -E runs the code through the compiler's parser,
6573  # not just through cpp. "Syntax error" is here to catch this case.
6574  cat >conftest.$ac_ext <<_ACEOF
6575/* confdefs.h.  */
6576_ACEOF
6577cat confdefs.h >>conftest.$ac_ext
6578cat >>conftest.$ac_ext <<_ACEOF
6579/* end confdefs.h.  */
6580#ifdef __STDC__
6581# include <limits.h>
6582#else
6583# include <assert.h>
6584#endif
6585                     Syntax error
6586_ACEOF
6587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6588  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6589  ac_status=$?
6590  grep -v '^ *+' conftest.er1 >conftest.err
6591  rm -f conftest.er1
6592  cat conftest.err >&5
6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594  (exit $ac_status); } >/dev/null; then
6595  if test -s conftest.err; then
6596    ac_cpp_err=$ac_c_preproc_warn_flag
6597    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6598  else
6599    ac_cpp_err=
6600  fi
6601else
6602  ac_cpp_err=yes
6603fi
6604if test -z "$ac_cpp_err"; then
6605  :
6606else
6607  echo "$as_me: failed program was:" >&5
6608sed 's/^/| /' conftest.$ac_ext >&5
6609
6610  # Broken: fails on valid input.
6611continue
6612fi
6613rm -f conftest.err conftest.$ac_ext
6614
6615  # OK, works on sane cases.  Now check whether non-existent headers
6616  # can be detected and how.
6617  cat >conftest.$ac_ext <<_ACEOF
6618/* confdefs.h.  */
6619_ACEOF
6620cat confdefs.h >>conftest.$ac_ext
6621cat >>conftest.$ac_ext <<_ACEOF
6622/* end confdefs.h.  */
6623#include <ac_nonexistent.h>
6624_ACEOF
6625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6626  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6627  ac_status=$?
6628  grep -v '^ *+' conftest.er1 >conftest.err
6629  rm -f conftest.er1
6630  cat conftest.err >&5
6631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632  (exit $ac_status); } >/dev/null; then
6633  if test -s conftest.err; then
6634    ac_cpp_err=$ac_c_preproc_warn_flag
6635    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6636  else
6637    ac_cpp_err=
6638  fi
6639else
6640  ac_cpp_err=yes
6641fi
6642if test -z "$ac_cpp_err"; then
6643  # Broken: success on invalid input.
6644continue
6645else
6646  echo "$as_me: failed program was:" >&5
6647sed 's/^/| /' conftest.$ac_ext >&5
6648
6649  # Passes both tests.
6650ac_preproc_ok=:
6651break
6652fi
6653rm -f conftest.err conftest.$ac_ext
6654
6655done
6656# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6657rm -f conftest.err conftest.$ac_ext
6658if $ac_preproc_ok; then
6659  break
6660fi
6661
6662    done
6663    ac_cv_prog_CPP=$CPP
6664
6665fi
6666  CPP=$ac_cv_prog_CPP
6667else
6668  ac_cv_prog_CPP=$CPP
6669fi
6670echo "$as_me:$LINENO: result: $CPP" >&5
6671echo "${ECHO_T}$CPP" >&6
6672ac_preproc_ok=false
6673for ac_c_preproc_warn_flag in '' yes
6674do
6675  # Use a header file that comes with gcc, so configuring glibc
6676  # with a fresh cross-compiler works.
6677  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678  # <limits.h> exists even on freestanding compilers.
6679  # On the NeXT, cc -E runs the code through the compiler's parser,
6680  # not just through cpp. "Syntax error" is here to catch this case.
6681  cat >conftest.$ac_ext <<_ACEOF
6682/* confdefs.h.  */
6683_ACEOF
6684cat confdefs.h >>conftest.$ac_ext
6685cat >>conftest.$ac_ext <<_ACEOF
6686/* end confdefs.h.  */
6687#ifdef __STDC__
6688# include <limits.h>
6689#else
6690# include <assert.h>
6691#endif
6692                     Syntax error
6693_ACEOF
6694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6695  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6696  ac_status=$?
6697  grep -v '^ *+' conftest.er1 >conftest.err
6698  rm -f conftest.er1
6699  cat conftest.err >&5
6700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701  (exit $ac_status); } >/dev/null; then
6702  if test -s conftest.err; then
6703    ac_cpp_err=$ac_c_preproc_warn_flag
6704    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6705  else
6706    ac_cpp_err=
6707  fi
6708else
6709  ac_cpp_err=yes
6710fi
6711if test -z "$ac_cpp_err"; then
6712  :
6713else
6714  echo "$as_me: failed program was:" >&5
6715sed 's/^/| /' conftest.$ac_ext >&5
6716
6717  # Broken: fails on valid input.
6718continue
6719fi
6720rm -f conftest.err conftest.$ac_ext
6721
6722  # OK, works on sane cases.  Now check whether non-existent headers
6723  # can be detected and how.
6724  cat >conftest.$ac_ext <<_ACEOF
6725/* confdefs.h.  */
6726_ACEOF
6727cat confdefs.h >>conftest.$ac_ext
6728cat >>conftest.$ac_ext <<_ACEOF
6729/* end confdefs.h.  */
6730#include <ac_nonexistent.h>
6731_ACEOF
6732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6733  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6734  ac_status=$?
6735  grep -v '^ *+' conftest.er1 >conftest.err
6736  rm -f conftest.er1
6737  cat conftest.err >&5
6738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739  (exit $ac_status); } >/dev/null; then
6740  if test -s conftest.err; then
6741    ac_cpp_err=$ac_c_preproc_warn_flag
6742    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6743  else
6744    ac_cpp_err=
6745  fi
6746else
6747  ac_cpp_err=yes
6748fi
6749if test -z "$ac_cpp_err"; then
6750  # Broken: success on invalid input.
6751continue
6752else
6753  echo "$as_me: failed program was:" >&5
6754sed 's/^/| /' conftest.$ac_ext >&5
6755
6756  # Passes both tests.
6757ac_preproc_ok=:
6758break
6759fi
6760rm -f conftest.err conftest.$ac_ext
6761
6762done
6763# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6764rm -f conftest.err conftest.$ac_ext
6765if $ac_preproc_ok; then
6766  :
6767else
6768  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6769See \`config.log' for more details." >&5
6770echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6771See \`config.log' for more details." >&2;}
6772   { (exit 1); exit 1; }; }
6773fi
6774
6775ac_ext=c
6776ac_cpp='$CPP $CPPFLAGS'
6777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6779ac_compiler_gnu=$ac_cv_c_compiler_gnu
6780
6781
6782echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6783echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6784if test "${ac_cv_header_stdc+set}" = set; then
6785  echo $ECHO_N "(cached) $ECHO_C" >&6
6786else
6787  cat >conftest.$ac_ext <<_ACEOF
6788/* confdefs.h.  */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h.  */
6793#include <stdlib.h>
6794#include <stdarg.h>
6795#include <string.h>
6796#include <float.h>
6797
6798int
6799main ()
6800{
6801
6802  ;
6803  return 0;
6804}
6805_ACEOF
6806rm -f conftest.$ac_objext
6807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6808  (eval $ac_compile) 2>conftest.er1
6809  ac_status=$?
6810  grep -v '^ *+' conftest.er1 >conftest.err
6811  rm -f conftest.er1
6812  cat conftest.err >&5
6813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814  (exit $ac_status); } &&
6815         { ac_try='test -z "$ac_c_werror_flag"
6816                         || test ! -s conftest.err'
6817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818  (eval $ac_try) 2>&5
6819  ac_status=$?
6820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821  (exit $ac_status); }; } &&
6822         { ac_try='test -s conftest.$ac_objext'
6823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824  (eval $ac_try) 2>&5
6825  ac_status=$?
6826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827  (exit $ac_status); }; }; then
6828  ac_cv_header_stdc=yes
6829else
6830  echo "$as_me: failed program was:" >&5
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
6833ac_cv_header_stdc=no
6834fi
6835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6836
6837if test $ac_cv_header_stdc = yes; then
6838  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6839  cat >conftest.$ac_ext <<_ACEOF
6840/* confdefs.h.  */
6841_ACEOF
6842cat confdefs.h >>conftest.$ac_ext
6843cat >>conftest.$ac_ext <<_ACEOF
6844/* end confdefs.h.  */
6845#include <string.h>
6846
6847_ACEOF
6848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6849  $EGREP "memchr" >/dev/null 2>&1; then
6850  :
6851else
6852  ac_cv_header_stdc=no
6853fi
6854rm -f conftest*
6855
6856fi
6857
6858if test $ac_cv_header_stdc = yes; then
6859  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6860  cat >conftest.$ac_ext <<_ACEOF
6861/* confdefs.h.  */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h.  */
6866#include <stdlib.h>
6867
6868_ACEOF
6869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6870  $EGREP "free" >/dev/null 2>&1; then
6871  :
6872else
6873  ac_cv_header_stdc=no
6874fi
6875rm -f conftest*
6876
6877fi
6878
6879if test $ac_cv_header_stdc = yes; then
6880  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6881  if test "$cross_compiling" = yes; then
6882  :
6883else
6884  cat >conftest.$ac_ext <<_ACEOF
6885/* confdefs.h.  */
6886_ACEOF
6887cat confdefs.h >>conftest.$ac_ext
6888cat >>conftest.$ac_ext <<_ACEOF
6889/* end confdefs.h.  */
6890#include <ctype.h>
6891#if ((' ' & 0x0FF) == 0x020)
6892# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6893# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6894#else
6895# define ISLOWER(c) \
6896                   (('a' <= (c) && (c) <= 'i') \
6897                     || ('j' <= (c) && (c) <= 'r') \
6898                     || ('s' <= (c) && (c) <= 'z'))
6899# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6900#endif
6901
6902#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6903int
6904main ()
6905{
6906  int i;
6907  for (i = 0; i < 256; i++)
6908    if (XOR (islower (i), ISLOWER (i))
6909        || toupper (i) != TOUPPER (i))
6910      exit(2);
6911  exit (0);
6912}
6913_ACEOF
6914rm -f conftest$ac_exeext
6915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6916  (eval $ac_link) 2>&5
6917  ac_status=$?
6918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921  (eval $ac_try) 2>&5
6922  ac_status=$?
6923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924  (exit $ac_status); }; }; then
6925  :
6926else
6927  echo "$as_me: program exited with status $ac_status" >&5
6928echo "$as_me: failed program was:" >&5
6929sed 's/^/| /' conftest.$ac_ext >&5
6930
6931( exit $ac_status )
6932ac_cv_header_stdc=no
6933fi
6934rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6935fi
6936fi
6937fi
6938echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6939echo "${ECHO_T}$ac_cv_header_stdc" >&6
6940if test $ac_cv_header_stdc = yes; then
6941
6942cat >>confdefs.h <<\_ACEOF
6943#define STDC_HEADERS 1
6944_ACEOF
6945
6946fi
6947
6948# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6959                  inttypes.h stdint.h unistd.h
6960do
6961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6962echo "$as_me:$LINENO: checking for $ac_header" >&5
6963echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6964if eval "test \"\${$as_ac_Header+set}\" = set"; then
6965  echo $ECHO_N "(cached) $ECHO_C" >&6
6966else
6967  cat >conftest.$ac_ext <<_ACEOF
6968/* confdefs.h.  */
6969_ACEOF
6970cat confdefs.h >>conftest.$ac_ext
6971cat >>conftest.$ac_ext <<_ACEOF
6972/* end confdefs.h.  */
6973$ac_includes_default
6974
6975#include <$ac_header>
6976_ACEOF
6977rm -f conftest.$ac_objext
6978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6979  (eval $ac_compile) 2>conftest.er1
6980  ac_status=$?
6981  grep -v '^ *+' conftest.er1 >conftest.err
6982  rm -f conftest.er1
6983  cat conftest.err >&5
6984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985  (exit $ac_status); } &&
6986         { ac_try='test -z "$ac_c_werror_flag"
6987                         || test ! -s conftest.err'
6988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989  (eval $ac_try) 2>&5
6990  ac_status=$?
6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); }; } &&
6993         { ac_try='test -s conftest.$ac_objext'
6994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995  (eval $ac_try) 2>&5
6996  ac_status=$?
6997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998  (exit $ac_status); }; }; then
6999  eval "$as_ac_Header=yes"
7000else
7001  echo "$as_me: failed program was:" >&5
7002sed 's/^/| /' conftest.$ac_ext >&5
7003
7004eval "$as_ac_Header=no"
7005fi
7006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7007fi
7008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7010if test `eval echo '${'$as_ac_Header'}'` = yes; then
7011  cat >>confdefs.h <<_ACEOF
7012#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7013_ACEOF
7014
7015fi
7016
7017done
7018
7019
7020
7021for ac_header in dlfcn.h
7022do
7023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7024if eval "test \"\${$as_ac_Header+set}\" = set"; then
7025  echo "$as_me:$LINENO: checking for $ac_header" >&5
7026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7027if eval "test \"\${$as_ac_Header+set}\" = set"; then
7028  echo $ECHO_N "(cached) $ECHO_C" >&6
7029fi
7030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7032else
7033  # Is the header compilable?
7034echo "$as_me:$LINENO: checking $ac_header usability" >&5
7035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7036cat >conftest.$ac_ext <<_ACEOF
7037/* confdefs.h.  */
7038_ACEOF
7039cat confdefs.h >>conftest.$ac_ext
7040cat >>conftest.$ac_ext <<_ACEOF
7041/* end confdefs.h.  */
7042$ac_includes_default
7043#include <$ac_header>
7044_ACEOF
7045rm -f conftest.$ac_objext
7046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047  (eval $ac_compile) 2>conftest.er1
7048  ac_status=$?
7049  grep -v '^ *+' conftest.er1 >conftest.err
7050  rm -f conftest.er1
7051  cat conftest.err >&5
7052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053  (exit $ac_status); } &&
7054         { ac_try='test -z "$ac_c_werror_flag"
7055                         || test ! -s conftest.err'
7056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057  (eval $ac_try) 2>&5
7058  ac_status=$?
7059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060  (exit $ac_status); }; } &&
7061         { ac_try='test -s conftest.$ac_objext'
7062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063  (eval $ac_try) 2>&5
7064  ac_status=$?
7065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066  (exit $ac_status); }; }; then
7067  ac_header_compiler=yes
7068else
7069  echo "$as_me: failed program was:" >&5
7070sed 's/^/| /' conftest.$ac_ext >&5
7071
7072ac_header_compiler=no
7073fi
7074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7076echo "${ECHO_T}$ac_header_compiler" >&6
7077
7078# Is the header present?
7079echo "$as_me:$LINENO: checking $ac_header presence" >&5
7080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7081cat >conftest.$ac_ext <<_ACEOF
7082/* confdefs.h.  */
7083_ACEOF
7084cat confdefs.h >>conftest.$ac_ext
7085cat >>conftest.$ac_ext <<_ACEOF
7086/* end confdefs.h.  */
7087#include <$ac_header>
7088_ACEOF
7089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7090  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7091  ac_status=$?
7092  grep -v '^ *+' conftest.er1 >conftest.err
7093  rm -f conftest.er1
7094  cat conftest.err >&5
7095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096  (exit $ac_status); } >/dev/null; then
7097  if test -s conftest.err; then
7098    ac_cpp_err=$ac_c_preproc_warn_flag
7099    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7100  else
7101    ac_cpp_err=
7102  fi
7103else
7104  ac_cpp_err=yes
7105fi
7106if test -z "$ac_cpp_err"; then
7107  ac_header_preproc=yes
7108else
7109  echo "$as_me: failed program was:" >&5
7110sed 's/^/| /' conftest.$ac_ext >&5
7111
7112  ac_header_preproc=no
7113fi
7114rm -f conftest.err conftest.$ac_ext
7115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7116echo "${ECHO_T}$ac_header_preproc" >&6
7117
7118# So?  What about this header?
7119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7120  yes:no: )
7121    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7123    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7125    ac_header_preproc=yes
7126    ;;
7127  no:yes:* )
7128    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7130    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7131echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7132    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7134    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7135echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7136    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7138    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7140    (
7141      cat <<\_ASBOX
7142## ------------------------------------ ##
7143## Report this to cgl@lists.coin-or.org ##
7144## ------------------------------------ ##
7145_ASBOX
7146    ) |
7147      sed "s/^/$as_me: WARNING:     /" >&2
7148    ;;
7149esac
7150echo "$as_me:$LINENO: checking for $ac_header" >&5
7151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7152if eval "test \"\${$as_ac_Header+set}\" = set"; then
7153  echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155  eval "$as_ac_Header=\$ac_header_preproc"
7156fi
7157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7159
7160fi
7161if test `eval echo '${'$as_ac_Header'}'` = yes; then
7162  cat >>confdefs.h <<_ACEOF
7163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7164_ACEOF
7165
7166fi
7167
7168done
7169
7170
7171
7172if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7173    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7174    (test "X$CXX" != "Xg++"))) ; then
7175  ac_ext=cc
7176ac_cpp='$CXXCPP $CPPFLAGS'
7177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7180echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7181echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7182if test -z "$CXXCPP"; then
7183  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7184  echo $ECHO_N "(cached) $ECHO_C" >&6
7185else
7186      # Double quotes because CXXCPP needs to be expanded
7187    for CXXCPP in "$CXX -E" "/lib/cpp"
7188    do
7189      ac_preproc_ok=false
7190for ac_cxx_preproc_warn_flag in '' yes
7191do
7192  # Use a header file that comes with gcc, so configuring glibc
7193  # with a fresh cross-compiler works.
7194  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7195  # <limits.h> exists even on freestanding compilers.
7196  # On the NeXT, cc -E runs the code through the compiler's parser,
7197  # not just through cpp. "Syntax error" is here to catch this case.
7198  cat >conftest.$ac_ext <<_ACEOF
7199/* confdefs.h.  */
7200_ACEOF
7201cat confdefs.h >>conftest.$ac_ext
7202cat >>conftest.$ac_ext <<_ACEOF
7203/* end confdefs.h.  */
7204#ifdef __STDC__
7205# include <limits.h>
7206#else
7207# include <assert.h>
7208#endif
7209                     Syntax error
7210_ACEOF
7211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7212  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7213  ac_status=$?
7214  grep -v '^ *+' conftest.er1 >conftest.err
7215  rm -f conftest.er1
7216  cat conftest.err >&5
7217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218  (exit $ac_status); } >/dev/null; then
7219  if test -s conftest.err; then
7220    ac_cpp_err=$ac_cxx_preproc_warn_flag
7221    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7222  else
7223    ac_cpp_err=
7224  fi
7225else
7226  ac_cpp_err=yes
7227fi
7228if test -z "$ac_cpp_err"; then
7229  :
7230else
7231  echo "$as_me: failed program was:" >&5
7232sed 's/^/| /' conftest.$ac_ext >&5
7233
7234  # Broken: fails on valid input.
7235continue
7236fi
7237rm -f conftest.err conftest.$ac_ext
7238
7239  # OK, works on sane cases.  Now check whether non-existent headers
7240  # can be detected and how.
7241  cat >conftest.$ac_ext <<_ACEOF
7242/* confdefs.h.  */
7243_ACEOF
7244cat confdefs.h >>conftest.$ac_ext
7245cat >>conftest.$ac_ext <<_ACEOF
7246/* end confdefs.h.  */
7247#include <ac_nonexistent.h>
7248_ACEOF
7249if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7250  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7251  ac_status=$?
7252  grep -v '^ *+' conftest.er1 >conftest.err
7253  rm -f conftest.er1
7254  cat conftest.err >&5
7255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256  (exit $ac_status); } >/dev/null; then
7257  if test -s conftest.err; then
7258    ac_cpp_err=$ac_cxx_preproc_warn_flag
7259    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7260  else
7261    ac_cpp_err=
7262  fi
7263else
7264  ac_cpp_err=yes
7265fi
7266if test -z "$ac_cpp_err"; then
7267  # Broken: success on invalid input.
7268continue
7269else
7270  echo "$as_me: failed program was:" >&5
7271sed 's/^/| /' conftest.$ac_ext >&5
7272
7273  # Passes both tests.
7274ac_preproc_ok=:
7275break
7276fi
7277rm -f conftest.err conftest.$ac_ext
7278
7279done
7280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7281rm -f conftest.err conftest.$ac_ext
7282if $ac_preproc_ok; then
7283  break
7284fi
7285
7286    done
7287    ac_cv_prog_CXXCPP=$CXXCPP
7288
7289fi
7290  CXXCPP=$ac_cv_prog_CXXCPP
7291else
7292  ac_cv_prog_CXXCPP=$CXXCPP
7293fi
7294echo "$as_me:$LINENO: result: $CXXCPP" >&5
7295echo "${ECHO_T}$CXXCPP" >&6
7296ac_preproc_ok=false
7297for ac_cxx_preproc_warn_flag in '' yes
7298do
7299  # Use a header file that comes with gcc, so configuring glibc
7300  # with a fresh cross-compiler works.
7301  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7302  # <limits.h> exists even on freestanding compilers.
7303  # On the NeXT, cc -E runs the code through the compiler's parser,
7304  # not just through cpp. "Syntax error" is here to catch this case.
7305  cat >conftest.$ac_ext <<_ACEOF
7306/* confdefs.h.  */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h.  */
7311#ifdef __STDC__
7312# include <limits.h>
7313#else
7314# include <assert.h>
7315#endif
7316                     Syntax error
7317_ACEOF
7318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7319  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7320  ac_status=$?
7321  grep -v '^ *+' conftest.er1 >conftest.err
7322  rm -f conftest.er1
7323  cat conftest.err >&5
7324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325  (exit $ac_status); } >/dev/null; then
7326  if test -s conftest.err; then
7327    ac_cpp_err=$ac_cxx_preproc_warn_flag
7328    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7329  else
7330    ac_cpp_err=
7331  fi
7332else
7333  ac_cpp_err=yes
7334fi
7335if test -z "$ac_cpp_err"; then
7336  :
7337else
7338  echo "$as_me: failed program was:" >&5
7339sed 's/^/| /' conftest.$ac_ext >&5
7340
7341  # Broken: fails on valid input.
7342continue
7343fi
7344rm -f conftest.err conftest.$ac_ext
7345
7346  # OK, works on sane cases.  Now check whether non-existent headers
7347  # can be detected and how.
7348  cat >conftest.$ac_ext <<_ACEOF
7349/* confdefs.h.  */
7350_ACEOF
7351cat confdefs.h >>conftest.$ac_ext
7352cat >>conftest.$ac_ext <<_ACEOF
7353/* end confdefs.h.  */
7354#include <ac_nonexistent.h>
7355_ACEOF
7356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7357  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7358  ac_status=$?
7359  grep -v '^ *+' conftest.er1 >conftest.err
7360  rm -f conftest.er1
7361  cat conftest.err >&5
7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363  (exit $ac_status); } >/dev/null; then
7364  if test -s conftest.err; then
7365    ac_cpp_err=$ac_cxx_preproc_warn_flag
7366    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7367  else
7368    ac_cpp_err=
7369  fi
7370else
7371  ac_cpp_err=yes
7372fi
7373if test -z "$ac_cpp_err"; then
7374  # Broken: success on invalid input.
7375continue
7376else
7377  echo "$as_me: failed program was:" >&5
7378sed 's/^/| /' conftest.$ac_ext >&5
7379
7380  # Passes both tests.
7381ac_preproc_ok=:
7382break
7383fi
7384rm -f conftest.err conftest.$ac_ext
7385
7386done
7387# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7388rm -f conftest.err conftest.$ac_ext
7389if $ac_preproc_ok; then
7390  :
7391else
7392  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7393See \`config.log' for more details." >&5
7394echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7395See \`config.log' for more details." >&2;}
7396   { (exit 1); exit 1; }; }
7397fi
7398
7399ac_ext=cc
7400ac_cpp='$CXXCPP $CPPFLAGS'
7401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7404
7405fi
7406
7407
7408# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7409
7410# find the maximum length of command line arguments
7411echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7412echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7413if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7414  echo $ECHO_N "(cached) $ECHO_C" >&6
7415else
7416    i=0
7417  teststring="ABCD"
7418
7419  case $build_os in
7420  msdosdjgpp*)
7421    # On DJGPP, this test can blow up pretty badly due to problems in libc
7422    # (any single argument exceeding 2000 bytes causes a buffer overrun
7423    # during glob expansion).  Even if it were fixed, the result of this
7424    # check would be larger than it should be.
7425    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7426    ;;
7427
7428  gnu*)
7429    # Under GNU Hurd, this test is not required because there is
7430    # no limit to the length of command line arguments.
7431    # Libtool will interpret -1 as no limit whatsoever
7432    lt_cv_sys_max_cmd_len=-1;
7433    ;;
7434
7435  cygwin* | mingw*)
7436    # On Win9x/ME, this test blows up -- it succeeds, but takes
7437    # about 5 minutes as the teststring grows exponentially.
7438    # Worse, since 9x/ME are not pre-emptively multitasking,
7439    # you end up with a "frozen" computer, even though with patience
7440    # the test eventually succeeds (with a max line length of 256k).
7441    # Instead, let's just punt: use the minimum linelength reported by
7442    # all of the supported platforms: 8192 (on NT/2K/XP).
7443    lt_cv_sys_max_cmd_len=8192;
7444    ;;
7445
7446  amigaos*)
7447    # On AmigaOS with pdksh, this test takes hours, literally.
7448    # So we just punt and use a minimum line length of 8192.
7449    lt_cv_sys_max_cmd_len=8192;
7450    ;;
7451
7452  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7453    # This has been around since 386BSD, at least.  Likely further.
7454    if test -x /sbin/sysctl; then
7455      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7456    elif test -x /usr/sbin/sysctl; then
7457      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7458    else
7459      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7460    fi
7461    # And add a safety zone
7462    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7463    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7464    ;;
7465
7466  interix*)
7467    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7468    lt_cv_sys_max_cmd_len=196608
7469    ;;
7470
7471  osf*)
7472    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7473    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7474    # nice to cause kernel panics so lets avoid the loop below.
7475    # First set a reasonable default.
7476    lt_cv_sys_max_cmd_len=16384
7477    #
7478    if test -x /sbin/sysconfig; then
7479      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7480        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7481      esac
7482    fi
7483    ;;
7484  sco3.2v5*)
7485    lt_cv_sys_max_cmd_len=102400
7486    ;;
7487  sysv5* | sco5v6* | sysv4.2uw2*)
7488    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7489    if test -n "$kargmax"; then
7490      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7491    else
7492      lt_cv_sys_max_cmd_len=32768
7493    fi
7494    ;;
7495  *)
7496    # If test is not a shell built-in, we'll probably end up computing a
7497    # maximum length that is only half of the actual maximum length, but
7498    # we can't tell.
7499    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7500    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7501               = "XX$teststring") >/dev/null 2>&1 &&
7502            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7503            lt_cv_sys_max_cmd_len=$new_result &&
7504            test $i != 17 # 1/2 MB should be enough
7505    do
7506      i=`expr $i + 1`
7507      teststring=$teststring$teststring
7508    done
7509    teststring=
7510    # Add a significant safety factor because C++ compilers can tack on massive
7511    # amounts of additional arguments before passing them to the linker.
7512    # It appears as though 1/2 is a usable value.
7513    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7514    ;;
7515  esac
7516
7517fi
7518
7519if test -n $lt_cv_sys_max_cmd_len ; then
7520  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7521echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7522else
7523  echo "$as_me:$LINENO: result: none" >&5
7524echo "${ECHO_T}none" >&6
7525fi
7526
7527
7528
7529
7530# Check for command to grab the raw symbol name followed by C symbol from nm.
7531echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7532echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7533if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7534  echo $ECHO_N "(cached) $ECHO_C" >&6
7535else
7536
7537# These are sane defaults that work on at least a few old systems.
7538# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7539
7540# Character class describing NM global symbol codes.
7541symcode='[BCDEGRST]'
7542
7543# Regexp to match symbols that can be accessed directly from C.
7544sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7545
7546# Transform an extracted symbol line into a proper C declaration
7547lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7548
7549# Transform an extracted symbol line into symbol name and symbol address
7550lt_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'"
7551
7552# Define system-specific variables.
7553case $host_os in
7554aix*)
7555  symcode='[BCDT]'
7556  ;;
7557cygwin* | mingw* | pw32*)
7558  symcode='[ABCDGISTW]'
7559  ;;
7560hpux*) # Its linker distinguishes data from code symbols
7561  if test "$host_cpu" = ia64; then
7562    symcode='[ABCDEGRST]'
7563  fi
7564  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7565  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'"
7566  ;;
7567linux*)
7568  if test "$host_cpu" = ia64; then
7569    symcode='[ABCDGIRSTW]'
7570    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7571    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'"
7572  fi
7573  ;;
7574irix* | nonstopux*)
7575  symcode='[BCDEGRST]'
7576  ;;
7577osf*)
7578  symcode='[BCDEGQRST]'
7579  ;;
7580solaris*)
7581  symcode='[BDRT]'
7582  ;;
7583sco3.2v5*)
7584  symcode='[DT]'
7585  ;;
7586sysv4.2uw2*)
7587  symcode='[DT]'
7588  ;;
7589sysv5* | sco5v6* | unixware* | OpenUNIX*)
7590  symcode='[ABDT]'
7591  ;;
7592sysv4)
7593  symcode='[DFNSTU]'
7594  ;;
7595esac
7596
7597# Handle CRLF in mingw tool chain
7598opt_cr=
7599case $build_os in
7600mingw*)
7601  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7602  ;;
7603esac
7604
7605# If we're using GNU nm, then use its standard symbol codes.
7606case `$NM -V 2>&1` in
7607*GNU* | *'with BFD'*)
7608  symcode='[ABCDGIRSTW]' ;;
7609esac
7610
7611# Try without a prefix undercore, then with it.
7612for ac_symprfx in "" "_"; do
7613
7614  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7615  symxfrm="\\1 $ac_symprfx\\2 \\2"
7616
7617  # Write the raw and C identifiers.
7618  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7619
7620  # Check to see that the pipe works correctly.
7621  pipe_works=no
7622
7623  rm -f conftest*
7624  cat > conftest.$ac_ext <<EOF
7625#ifdef __cplusplus
7626extern "C" {
7627#endif
7628char nm_test_var;
7629void nm_test_func(){}
7630#ifdef __cplusplus
7631}
7632#endif
7633int main(){nm_test_var='a';nm_test_func();return(0);}
7634EOF
7635
7636  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7637  (eval $ac_compile) 2>&5
7638  ac_status=$?
7639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640  (exit $ac_status); }; then
7641    # Now try to grab the symbols.
7642    nlist=conftest.nm
7643    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7644  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7645  ac_status=$?
7646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647  (exit $ac_status); } && test -s "$nlist"; then
7648      # Try sorting and uniquifying the output.
7649      if sort "$nlist" | uniq > "$nlist"T; then
7650        mv -f "$nlist"T "$nlist"
7651      else
7652        rm -f "$nlist"T
7653      fi
7654
7655      # Make sure that we snagged all the symbols we need.
7656      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7657        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7658          cat <<EOF > conftest.$ac_ext
7659#ifdef __cplusplus
7660extern "C" {
7661#endif
7662
7663EOF
7664          # Now generate the symbol file.
7665          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7666
7667          cat <<EOF >> conftest.$ac_ext
7668#if defined (__STDC__) && __STDC__
7669# define lt_ptr_t void *
7670#else
7671# define lt_ptr_t char *
7672# define const
7673#endif
7674
7675/* The mapping between symbol names and symbols. */
7676const struct {
7677  const char *name;
7678  lt_ptr_t address;
7679}
7680lt_preloaded_symbols[] =
7681{
7682EOF
7683          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7684          cat <<\EOF >> conftest.$ac_ext
7685  {0, (lt_ptr_t) 0}
7686};
7687
7688#ifdef __cplusplus
7689}
7690#endif
7691EOF
7692          # Now try linking the two files.
7693          mv conftest.$ac_objext conftstm.$ac_objext
7694          lt_save_LIBS="$LIBS"
7695          lt_save_CFLAGS="$CFLAGS"
7696          LIBS="conftstm.$ac_objext"
7697          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7698          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7699  (eval $ac_link) 2>&5
7700  ac_status=$?
7701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7703            pipe_works=yes
7704          fi
7705          LIBS="$lt_save_LIBS"
7706          CFLAGS="$lt_save_CFLAGS"
7707        else
7708          echo "cannot find nm_test_func in $nlist" >&5
7709        fi
7710      else
7711        echo "cannot find nm_test_var in $nlist" >&5
7712      fi
7713    else
7714      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7715    fi
7716  else
7717    echo "$progname: failed program was:" >&5
7718    cat conftest.$ac_ext >&5
7719  fi
7720  rm -f conftest* conftst*
7721
7722  # Do not use the global_symbol_pipe unless it works.
7723  if test "$pipe_works" = yes; then
7724    break
7725  else
7726    lt_cv_sys_global_symbol_pipe=
7727  fi
7728done
7729
7730fi
7731
7732if test -z "$lt_cv_sys_global_symbol_pipe"; then
7733  lt_cv_sys_global_symbol_to_cdecl=
7734fi
7735if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7736  echo "$as_me:$LINENO: result: failed" >&5
7737echo "${ECHO_T}failed" >&6
7738else
7739  echo "$as_me:$LINENO: result: ok" >&5
7740echo "${ECHO_T}ok" >&6
7741fi
7742
7743echo "$as_me:$LINENO: checking for objdir" >&5
7744echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7745if test "${lt_cv_objdir+set}" = set; then
7746  echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748  rm -f .libs 2>/dev/null
7749mkdir .libs 2>/dev/null
7750if test -d .libs; then
7751  lt_cv_objdir=.libs
7752else
7753  # MS-DOS does not allow filenames that begin with a dot.
7754  lt_cv_objdir=_libs
7755fi
7756rmdir .libs 2>/dev/null
7757fi
7758echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7759echo "${ECHO_T}$lt_cv_objdir" >&6
7760objdir=$lt_cv_objdir
7761
7762
7763
7764
7765
7766case $host_os in
7767aix3*)
7768  # AIX sometimes has problems with the GCC collect2 program.  For some
7769  # reason, if we set the COLLECT_NAMES environment variable, the problems
7770  # vanish in a puff of smoke.
7771  if test "X${COLLECT_NAMES+set}" != Xset; then
7772    COLLECT_NAMES=
7773    export COLLECT_NAMES
7774  fi
7775  ;;
7776esac
7777
7778# Sed substitution that helps us do robust quoting.  It backslashifies
7779# metacharacters that are still active within double-quoted strings.
7780Xsed='sed -e 1s/^X//'
7781sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7782
7783# Same as above, but do not quote variable references.
7784double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7785
7786# Sed substitution to delay expansion of an escaped shell variable in a
7787# double_quote_subst'ed string.
7788delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7789
7790# Sed substitution to avoid accidental globbing in evaled expressions
7791no_glob_subst='s/\*/\\\*/g'
7792
7793# Constants:
7794rm="rm -f"
7795
7796# Global variables:
7797default_ofile=libtool
7798can_build_shared=yes
7799
7800# All known linkers require a `.a' archive for static linking (except MSVC,
7801# which needs '.lib').
7802libext=a
7803ltmain="$ac_aux_dir/ltmain.sh"
7804ofile="$default_ofile"
7805with_gnu_ld="$lt_cv_prog_gnu_ld"
7806
7807if test -n "$ac_tool_prefix"; then
7808  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7809set dummy ${ac_tool_prefix}ar; ac_word=$2
7810echo "$as_me:$LINENO: checking for $ac_word" >&5
7811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7812if test "${ac_cv_prog_AR+set}" = set; then
7813  echo $ECHO_N "(cached) $ECHO_C" >&6
7814else
7815  if test -n "$AR"; then
7816  ac_cv_prog_AR="$AR" # Let the user override the test.
7817else
7818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819for as_dir in $PATH
7820do
7821  IFS=$as_save_IFS
7822  test -z "$as_dir" && as_dir=.
7823  for ac_exec_ext in '' $ac_executable_extensions; do
7824  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7825    ac_cv_prog_AR="${ac_tool_prefix}ar"
7826    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7827    break 2
7828  fi
7829done
7830done
7831
7832fi
7833fi
7834AR=$ac_cv_prog_AR
7835if test -n "$AR"; then
7836  echo "$as_me:$LINENO: result: $AR" >&5
7837echo "${ECHO_T}$AR" >&6
7838else
7839  echo "$as_me:$LINENO: result: no" >&5
7840echo "${ECHO_T}no" >&6
7841fi
7842
7843fi
7844if test -z "$ac_cv_prog_AR"; then
7845  ac_ct_AR=$AR
7846  # Extract the first word of "ar", so it can be a program name with args.
7847set dummy ar; ac_word=$2
7848echo "$as_me:$LINENO: checking for $ac_word" >&5
7849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7850if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7851  echo $ECHO_N "(cached) $ECHO_C" >&6
7852else
7853  if test -n "$ac_ct_AR"; then
7854  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7855else
7856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857for as_dir in $PATH
7858do
7859  IFS=$as_save_IFS
7860  test -z "$as_dir" && as_dir=.
7861  for ac_exec_ext in '' $ac_executable_extensions; do
7862  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7863    ac_cv_prog_ac_ct_AR="ar"
7864    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7865    break 2
7866  fi
7867done
7868done
7869
7870  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7871fi
7872fi
7873ac_ct_AR=$ac_cv_prog_ac_ct_AR
7874if test -n "$ac_ct_AR"; then
7875  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7876echo "${ECHO_T}$ac_ct_AR" >&6
7877else
7878  echo "$as_me:$LINENO: result: no" >&5
7879echo "${ECHO_T}no" >&6
7880fi
7881
7882  AR=$ac_ct_AR
7883else
7884  AR="$ac_cv_prog_AR"
7885fi
7886
7887if test -n "$ac_tool_prefix"; then
7888  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7889set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7890echo "$as_me:$LINENO: checking for $ac_word" >&5
7891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7892if test "${ac_cv_prog_RANLIB+set}" = set; then
7893  echo $ECHO_N "(cached) $ECHO_C" >&6
7894else
7895  if test -n "$RANLIB"; then
7896  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7897else
7898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899for as_dir in $PATH
7900do
7901  IFS=$as_save_IFS
7902  test -z "$as_dir" && as_dir=.
7903  for ac_exec_ext in '' $ac_executable_extensions; do
7904  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7907    break 2
7908  fi
7909done
7910done
7911
7912fi
7913fi
7914RANLIB=$ac_cv_prog_RANLIB
7915if test -n "$RANLIB"; then
7916  echo "$as_me:$LINENO: result: $RANLIB" >&5
7917echo "${ECHO_T}$RANLIB" >&6
7918else
7919  echo "$as_me:$LINENO: result: no" >&5
7920echo "${ECHO_T}no" >&6
7921fi
7922
7923fi
7924if test -z "$ac_cv_prog_RANLIB"; then
7925  ac_ct_RANLIB=$RANLIB
7926  # Extract the first word of "ranlib", so it can be a program name with args.
7927set dummy ranlib; ac_word=$2
7928echo "$as_me:$LINENO: checking for $ac_word" >&5
7929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7930if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7931  echo $ECHO_N "(cached) $ECHO_C" >&6
7932else
7933  if test -n "$ac_ct_RANLIB"; then
7934  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7935else
7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939  IFS=$as_save_IFS
7940  test -z "$as_dir" && as_dir=.
7941  for ac_exec_ext in '' $ac_executable_extensions; do
7942  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7943    ac_cv_prog_ac_ct_RANLIB="ranlib"
7944    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7945    break 2
7946  fi
7947done
7948done
7949
7950  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7951fi
7952fi
7953ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7954if test -n "$ac_ct_RANLIB"; then
7955  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7956echo "${ECHO_T}$ac_ct_RANLIB" >&6
7957else
7958  echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6
7960fi
7961
7962  RANLIB=$ac_ct_RANLIB
7963else
7964  RANLIB="$ac_cv_prog_RANLIB"
7965fi
7966
7967if test -n "$ac_tool_prefix"; then
7968  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7969set dummy ${ac_tool_prefix}strip; ac_word=$2
7970echo "$as_me:$LINENO: checking for $ac_word" >&5
7971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7972if test "${ac_cv_prog_STRIP+set}" = set; then
7973  echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975  if test -n "$STRIP"; then
7976  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7977else
7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981  IFS=$as_save_IFS
7982  test -z "$as_dir" && as_dir=.
7983  for ac_exec_ext in '' $ac_executable_extensions; do
7984  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7985    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7987    break 2
7988  fi
7989done
7990done
7991
7992fi
7993fi
7994STRIP=$ac_cv_prog_STRIP
7995if test -n "$STRIP"; then
7996  echo "$as_me:$LINENO: result: $STRIP" >&5
7997echo "${ECHO_T}$STRIP" >&6
7998else
7999  echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6
8001fi
8002
8003fi
8004if test -z "$ac_cv_prog_STRIP"; then
8005  ac_ct_STRIP=$STRIP
8006  # Extract the first word of "strip", so it can be a program name with args.
8007set dummy strip; ac_word=$2
8008echo "$as_me:$LINENO: checking for $ac_word" >&5
8009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8010if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8011  echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013  if test -n "$ac_ct_STRIP"; then
8014  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8015else
8016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017for as_dir in $PATH
8018do
8019  IFS=$as_save_IFS
8020  test -z "$as_dir" && as_dir=.
8021  for ac_exec_ext in '' $ac_executable_extensions; do
8022  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8023    ac_cv_prog_ac_ct_STRIP="strip"
8024    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025    break 2
8026  fi
8027done
8028done
8029
8030  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8031fi
8032fi
8033ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8034if test -n "$ac_ct_STRIP"; then
8035  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8036echo "${ECHO_T}$ac_ct_STRIP" >&6
8037else
8038  echo "$as_me:$LINENO: result: no" >&5
8039echo "${ECHO_T}no" >&6
8040fi
8041
8042  STRIP=$ac_ct_STRIP
8043else
8044  STRIP="$ac_cv_prog_STRIP"
8045fi
8046
8047
8048old_CC="$CC"
8049old_CFLAGS="$CFLAGS"
8050
8051# Set sane defaults for various variables
8052test -z "$AR" && AR=ar
8053test -z "$AR_FLAGS" && AR_FLAGS=cru
8054test -z "$AS" && AS=as
8055test -z "$CC" && CC=cc
8056test -z "$LTCC" && LTCC=$CC
8057test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8058test -z "$DLLTOOL" && DLLTOOL=dlltool
8059test -z "$LD" && LD=ld
8060test -z "$LN_S" && LN_S="ln -s"
8061test -z "$MAGIC_CMD" && MAGIC_CMD=file
8062test -z "$NM" && NM=nm
8063test -z "$SED" && SED=sed
8064test -z "$OBJDUMP" && OBJDUMP=objdump
8065test -z "$RANLIB" && RANLIB=:
8066test -z "$STRIP" && STRIP=:
8067test -z "$ac_objext" && ac_objext=o
8068
8069# Determine commands to create old-style static archives.
8070old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8071old_postinstall_cmds='chmod 644 $oldlib'
8072old_postuninstall_cmds=
8073
8074if test -n "$RANLIB"; then
8075  case $host_os in
8076  openbsd*)
8077    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8078    ;;
8079  *)
8080    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8081    ;;
8082  esac
8083  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8084fi
8085
8086for cc_temp in $compiler""; do
8087  case $cc_temp in
8088    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8089    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8090    \-*) ;;
8091    *) break;;
8092  esac
8093done
8094cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8095
8096
8097# Only perform the check for file, if the check method requires it
8098case $deplibs_check_method in
8099file_magic*)
8100  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8101    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8102echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8103if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8104  echo $ECHO_N "(cached) $ECHO_C" >&6
8105else
8106  case $MAGIC_CMD in
8107[\\/*] |  ?:[\\/]*)
8108  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8109  ;;
8110*)
8111  lt_save_MAGIC_CMD="$MAGIC_CMD"
8112  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8113  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8114  for ac_dir in $ac_dummy; do
8115    IFS="$lt_save_ifs"
8116    test -z "$ac_dir" && ac_dir=.
8117    if test -f $ac_dir/${ac_tool_prefix}file; then
8118      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8119      if test -n "$file_magic_test_file"; then
8120        case $deplibs_check_method in
8121        "file_magic "*)
8122          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8123          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8124          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8125            $EGREP "$file_magic_regex" > /dev/null; then
8126            :
8127          else
8128            cat <<EOF 1>&2
8129
8130*** Warning: the command libtool uses to detect shared libraries,
8131*** $file_magic_cmd, produces output that libtool cannot recognize.
8132*** The result is that libtool may fail to recognize shared libraries
8133*** as such.  This will affect the creation of libtool libraries that
8134*** depend on shared libraries, but programs linked with such libtool
8135*** libraries will work regardless of this problem.  Nevertheless, you
8136*** may want to report the problem to your system manager and/or to
8137*** bug-libtool@gnu.org
8138
8139EOF
8140          fi ;;
8141        esac
8142      fi
8143      break
8144    fi
8145  done
8146  IFS="$lt_save_ifs"
8147  MAGIC_CMD="$lt_save_MAGIC_CMD"
8148  ;;
8149esac
8150fi
8151
8152MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8153if test -n "$MAGIC_CMD"; then
8154  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8155echo "${ECHO_T}$MAGIC_CMD" >&6
8156else
8157  echo "$as_me:$LINENO: result: no" >&5
8158echo "${ECHO_T}no" >&6
8159fi
8160
8161if test -z "$lt_cv_path_MAGIC_CMD"; then
8162  if test -n "$ac_tool_prefix"; then
8163    echo "$as_me:$LINENO: checking for file" >&5
8164echo $ECHO_N "checking for file... $ECHO_C" >&6
8165if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8166  echo $ECHO_N "(cached) $ECHO_C" >&6
8167else
8168  case $MAGIC_CMD in
8169[\\/*] |  ?:[\\/]*)
8170  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8171  ;;
8172*)
8173  lt_save_MAGIC_CMD="$MAGIC_CMD"
8174  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8175  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8176  for ac_dir in $ac_dummy; do
8177    IFS="$lt_save_ifs"
8178    test -z "$ac_dir" && ac_dir=.
8179    if test -f $ac_dir/file; then
8180      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8181      if test -n "$file_magic_test_file"; then
8182        case $deplibs_check_method in
8183        "file_magic "*)
8184          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8185          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8186          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8187            $EGREP "$file_magic_regex" > /dev/null; then
8188            :
8189          else
8190            cat <<EOF 1>&2
8191
8192*** Warning: the command libtool uses to detect shared libraries,
8193*** $file_magic_cmd, produces output that libtool cannot recognize.
8194*** The result is that libtool may fail to recognize shared libraries
8195*** as such.  This will affect the creation of libtool libraries that
8196*** depend on shared libraries, but programs linked with such libtool
8197*** libraries will work regardless of this problem.  Nevertheless, you
8198*** may want to report the problem to your system manager and/or to
8199*** bug-libtool@gnu.org
8200
8201EOF
8202          fi ;;
8203        esac
8204      fi
8205      break
8206    fi
8207  done
8208  IFS="$lt_save_ifs"
8209  MAGIC_CMD="$lt_save_MAGIC_CMD"
8210  ;;
8211esac
8212fi
8213
8214MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8215if test -n "$MAGIC_CMD"; then
8216  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8217echo "${ECHO_T}$MAGIC_CMD" >&6
8218else
8219  echo "$as_me:$LINENO: result: no" >&5
8220echo "${ECHO_T}no" >&6
8221fi
8222
8223  else
8224    MAGIC_CMD=:
8225  fi
8226fi
8227
8228  fi
8229  ;;
8230esac
8231
8232enable_dlopen=no
8233enable_win32_dll=no
8234
8235# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8236if test "${enable_libtool_lock+set}" = set; then
8237  enableval="$enable_libtool_lock"
8238
8239fi;
8240test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8241
8242
8243# Check whether --with-pic or --without-pic was given.
8244if test "${with_pic+set}" = set; then
8245  withval="$with_pic"
8246  pic_mode="$withval"
8247else
8248  pic_mode=default
8249fi;
8250test -z "$pic_mode" && pic_mode=default
8251
8252# Use C for the default configuration in the libtool script
8253tagname=
8254lt_save_CC="$CC"
8255ac_ext=c
8256ac_cpp='$CPP $CPPFLAGS'
8257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8259ac_compiler_gnu=$ac_cv_c_compiler_gnu
8260
8261
8262# Source file extension for C test sources.
8263ac_ext=c
8264
8265# Object file extension for compiled C test sources.
8266objext=o
8267objext=$objext
8268
8269# Code to be used in simple compile tests
8270lt_simple_compile_test_code="int some_variable = 0;\n"
8271
8272# Code to be used in simple link tests
8273lt_simple_link_test_code='int main(){return(0);}\n'
8274
8275
8276# If no C compiler was specified, use CC.
8277LTCC=${LTCC-"$CC"}
8278
8279# If no C compiler flags were specified, use CFLAGS.
8280LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8281
8282# Allow CC to be a program name with arguments.
8283compiler=$CC
8284
8285
8286# save warnings/boilerplate of simple test code
8287ac_outfile=conftest.$ac_objext
8288printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8289eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8290_lt_compiler_boilerplate=`cat conftest.err`
8291$rm conftest*
8292
8293ac_outfile=conftest.$ac_objext
8294printf "$lt_simple_link_test_code" >conftest.$ac_ext
8295eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8296_lt_linker_boilerplate=`cat conftest.err`
8297$rm conftest*
8298
8299
8300## CAVEAT EMPTOR:
8301## There is no encapsulation within the following macros, do not change
8302## the running order or otherwise move them around unless you know exactly
8303## what you are doing...
8304
8305lt_prog_compiler_no_builtin_flag=
8306
8307if test "$GCC" = yes; then
8308  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8309
8310
8311echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8312echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8313if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8314  echo $ECHO_N "(cached) $ECHO_C" >&6
8315else
8316  lt_cv_prog_compiler_rtti_exceptions=no
8317  ac_outfile=conftest.$ac_objext
8318   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8319   lt_compiler_flag="-fno-rtti -fno-exceptions"
8320   # Insert the option either (1) after the last *FLAGS variable, or
8321   # (2) before a word containing "conftest.", or (3) at the end.
8322   # Note that $ac_compile itself does not contain backslashes and begins
8323   # with a dollar sign (not a hyphen), so the echo should work correctly.
8324   # The option is referenced via a variable to avoid confusing sed.
8325   lt_compile=`echo "$ac_compile" | $SED \
8326   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328   -e 's:$: $lt_compiler_flag:'`
8329   (eval echo "\"\$as_me:8329: $lt_compile\"" >&5)
8330   (eval "$lt_compile" 2>conftest.err)
8331   ac_status=$?
8332   cat conftest.err >&5
8333   echo "$as_me:8333: \$? = $ac_status" >&5
8334   if (exit $ac_status) && test -s "$ac_outfile"; then
8335     # The compiler can only warn and ignore the option if not recognized
8336     # So say no if there are warnings other than the usual output.
8337     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8338     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8339     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8340       lt_cv_prog_compiler_rtti_exceptions=yes
8341     fi
8342   fi
8343   $rm conftest*
8344
8345fi
8346echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8347echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8348
8349if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8350    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8351else
8352    :
8353fi
8354
8355fi
8356
8357lt_prog_compiler_wl=
8358lt_prog_compiler_pic=
8359lt_prog_compiler_static=
8360
8361echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8362echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8363
8364  if test "$GCC" = yes; then
8365    lt_prog_compiler_wl='-Wl,'
8366    lt_prog_compiler_static='-static'
8367
8368    case $host_os in
8369      aix*)
8370      # All AIX code is PIC.
8371      if test "$host_cpu" = ia64; then
8372        # AIX 5 now supports IA64 processor
8373        lt_prog_compiler_static='-Bstatic'
8374      fi
8375      ;;
8376
8377    amigaos*)
8378      # FIXME: we need at least 68020 code to build shared libraries, but
8379      # adding the `-m68020' flag to GCC prevents building anything better,
8380      # like `-m68040'.
8381      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8382      ;;
8383
8384    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8385      # PIC is the default for these OSes.
8386      ;;
8387
8388    mingw* | pw32* | os2*)
8389      # This hack is so that the source file can tell whether it is being
8390      # built for inclusion in a dll (and should export symbols for example).
8391      lt_prog_compiler_pic='-DDLL_EXPORT'
8392      ;;
8393
8394    darwin* | rhapsody*)
8395      # PIC is the default on this platform
8396      # Common symbols not allowed in MH_DYLIB files
8397      lt_prog_compiler_pic='-fno-common'
8398      ;;
8399
8400    interix3*)
8401      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8402      # Instead, we relocate shared libraries at runtime.
8403      ;;
8404
8405    msdosdjgpp*)
8406      # Just because we use GCC doesn't mean we suddenly get shared libraries
8407      # on systems that don't support them.
8408      lt_prog_compiler_can_build_shared=no
8409      enable_shared=no
8410      ;;
8411
8412    sysv4*MP*)
8413      if test -d /usr/nec; then
8414        lt_prog_compiler_pic=-Kconform_pic
8415      fi
8416      ;;
8417
8418    hpux*)
8419      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8420      # not for PA HP-UX.
8421      case $host_cpu in
8422      hppa*64*|ia64*)
8423        # +Z the default
8424        ;;
8425      *)
8426        lt_prog_compiler_pic='-fPIC'
8427        ;;
8428      esac
8429      ;;
8430
8431    *)
8432      lt_prog_compiler_pic='-fPIC'
8433      ;;
8434    esac
8435  else
8436    # PORTME Check for flag to pass linker flags through the system compiler.
8437    case $host_os in
8438    aix*)
8439      lt_prog_compiler_wl='-Wl,'
8440      if test "$host_cpu" = ia64; then
8441        # AIX 5 now supports IA64 processor
8442        lt_prog_compiler_static='-Bstatic'
8443      else
8444        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8445      fi
8446      ;;
8447      darwin*)
8448        # PIC is the default on this platform
8449        # Common symbols not allowed in MH_DYLIB files
8450       case $cc_basename in
8451         xlc*)
8452         lt_prog_compiler_pic='-qnocommon'
8453         lt_prog_compiler_wl='-Wl,'
8454         ;;
8455       esac
8456       ;;
8457
8458    mingw* | pw32* | os2*)
8459      # This hack is so that the source file can tell whether it is being
8460      # built for inclusion in a dll (and should export symbols for example).
8461      lt_prog_compiler_pic='-DDLL_EXPORT'
8462      ;;
8463
8464    hpux9* | hpux10* | hpux11*)
8465      lt_prog_compiler_wl='-Wl,'
8466      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8467      # not for PA HP-UX.
8468      case $host_cpu in
8469      hppa*64*|ia64*)
8470        # +Z the default
8471        ;;
8472      *)
8473        lt_prog_compiler_pic='+Z'
8474        ;;
8475      esac
8476      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8477      lt_prog_compiler_static='${wl}-a ${wl}archive'
8478      ;;
8479
8480    irix5* | irix6* | nonstopux*)
8481      lt_prog_compiler_wl='-Wl,'
8482      # PIC (with -KPIC) is the default.
8483      lt_prog_compiler_static='-non_shared'
8484      ;;
8485
8486    newsos6)
8487      lt_prog_compiler_pic='-KPIC'
8488      lt_prog_compiler_static='-Bstatic'
8489      ;;
8490
8491    linux*)
8492      case $cc_basename in
8493      icc* | ecc*)
8494        lt_prog_compiler_wl='-Wl,'
8495        lt_prog_compiler_pic='-KPIC'
8496        lt_prog_compiler_static='-static'
8497        ;;
8498      pgcc* | pgf77* | pgf90* | pgf95*)
8499        # Portland Group compilers (*not* the Pentium gcc compiler,
8500        # which looks to be a dead project)
8501        lt_prog_compiler_wl='-Wl,'
8502        lt_prog_compiler_pic='-fpic'
8503        lt_prog_compiler_static='-Bstatic'
8504        ;;
8505      ccc*)
8506        lt_prog_compiler_wl='-Wl,'
8507        # All Alpha code is PIC.
8508        lt_prog_compiler_static='-non_shared'
8509        ;;
8510      esac
8511      ;;
8512
8513    osf3* | osf4* | osf5*)
8514      lt_prog_compiler_wl='-Wl,'
8515      # All OSF/1 code is PIC.
8516      lt_prog_compiler_static='-non_shared'
8517      ;;
8518
8519    solaris*)
8520      lt_prog_compiler_pic='-KPIC'
8521      lt_prog_compiler_static='-Bstatic'
8522      case $cc_basename in
8523      f77* | f90* | f95*)
8524        lt_prog_compiler_wl='-Qoption ld ';;
8525      *)
8526        lt_prog_compiler_wl='-Wl,';;
8527      esac
8528      ;;
8529
8530    sunos4*)
8531      lt_prog_compiler_wl='-Qoption ld '
8532      lt_prog_compiler_pic='-PIC'
8533      lt_prog_compiler_static='-Bstatic'
8534      ;;
8535
8536    sysv4 | sysv4.2uw2* | sysv4.3*)
8537      lt_prog_compiler_wl='-Wl,'
8538      lt_prog_compiler_pic='-KPIC'
8539      lt_prog_compiler_static='-Bstatic'
8540      ;;
8541
8542    sysv4*MP*)
8543      if test -d /usr/nec ;then
8544        lt_prog_compiler_pic='-Kconform_pic'
8545        lt_prog_compiler_static='-Bstatic'
8546      fi
8547      ;;
8548
8549    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8550      lt_prog_compiler_wl='-Wl,'
8551      lt_prog_compiler_pic='-KPIC'
8552      lt_prog_compiler_static='-Bstatic'
8553      ;;
8554
8555    unicos*)
8556      lt_prog_compiler_wl='-Wl,'
8557      lt_prog_compiler_can_build_shared=no
8558      ;;
8559
8560    uts4*)
8561      lt_prog_compiler_pic='-pic'
8562      lt_prog_compiler_static='-Bstatic'
8563      ;;
8564
8565    *)
8566      lt_prog_compiler_can_build_shared=no
8567      ;;
8568    esac
8569  fi
8570
8571echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8572echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8573
8574#
8575# Check to make sure the PIC flag actually works.
8576#
8577if test -n "$lt_prog_compiler_pic"; then
8578
8579echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8580echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8581if test "${lt_prog_compiler_pic_works+set}" = set; then
8582  echo $ECHO_N "(cached) $ECHO_C" >&6
8583else
8584  lt_prog_compiler_pic_works=no
8585  ac_outfile=conftest.$ac_objext
8586   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8587   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8588   # Insert the option either (1) after the last *FLAGS variable, or
8589   # (2) before a word containing "conftest.", or (3) at the end.
8590   # Note that $ac_compile itself does not contain backslashes and begins
8591   # with a dollar sign (not a hyphen), so the echo should work correctly.
8592   # The option is referenced via a variable to avoid confusing sed.
8593   lt_compile=`echo "$ac_compile" | $SED \
8594   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8595   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8596   -e 's:$: $lt_compiler_flag:'`
8597   (eval echo "\"\$as_me:8597: $lt_compile\"" >&5)
8598   (eval "$lt_compile" 2>conftest.err)
8599   ac_status=$?
8600   cat conftest.err >&5
8601   echo "$as_me:8601: \$? = $ac_status" >&5
8602   if (exit $ac_status) && test -s "$ac_outfile"; then
8603     # The compiler can only warn and ignore the option if not recognized
8604     # So say no if there are warnings other than the usual output.
8605     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8606     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8607     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8608       lt_prog_compiler_pic_works=yes
8609     fi
8610   fi
8611   $rm conftest*
8612
8613fi
8614echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8615echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8616
8617if test x"$lt_prog_compiler_pic_works" = xyes; then
8618    case $lt_prog_compiler_pic in
8619     "" | " "*) ;;
8620     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8621     esac
8622else
8623    lt_prog_compiler_pic=
8624     lt_prog_compiler_can_build_shared=no
8625fi
8626
8627fi
8628case $host_os in
8629  # For platforms which do not support PIC, -DPIC is meaningless:
8630  *djgpp*)
8631    lt_prog_compiler_pic=
8632    ;;
8633  *)
8634    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8635    ;;
8636esac
8637
8638#
8639# Check to make sure the static flag actually works.
8640#
8641wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8642echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8643echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8644if test "${lt_prog_compiler_static_works+set}" = set; then
8645  echo $ECHO_N "(cached) $ECHO_C" >&6
8646else
8647  lt_prog_compiler_static_works=no
8648   save_LDFLAGS="$LDFLAGS"
8649   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8650   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8651   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8652     # The linker can only warn and ignore the option if not recognized
8653     # So say no if there are warnings
8654     if test -s conftest.err; then
8655       # Append any errors to the config.log.
8656       cat conftest.err 1>&5
8657       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8658       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8659       if diff conftest.exp conftest.er2 >/dev/null; then
8660         lt_prog_compiler_static_works=yes
8661       fi
8662     else
8663       lt_prog_compiler_static_works=yes
8664     fi
8665   fi
8666   $rm conftest*
8667   LDFLAGS="$save_LDFLAGS"
8668
8669fi
8670echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8671echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8672
8673if test x"$lt_prog_compiler_static_works" = xyes; then
8674    :
8675else
8676    lt_prog_compiler_static=
8677fi
8678
8679
8680echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8681echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8682if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8683  echo $ECHO_N "(cached) $ECHO_C" >&6
8684else
8685  lt_cv_prog_compiler_c_o=no
8686   $rm -r conftest 2>/dev/null
8687   mkdir conftest
8688   cd conftest
8689   mkdir out
8690   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8691
8692   lt_compiler_flag="-o out/conftest2.$ac_objext"
8693   # Insert the option either (1) after the last *FLAGS variable, or
8694   # (2) before a word containing "conftest.", or (3) at the end.
8695   # Note that $ac_compile itself does not contain backslashes and begins
8696   # with a dollar sign (not a hyphen), so the echo should work correctly.
8697   lt_compile=`echo "$ac_compile" | $SED \
8698   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8699   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8700   -e 's:$: $lt_compiler_flag:'`
8701   (eval echo "\"\$as_me:8701: $lt_compile\"" >&5)
8702   (eval "$lt_compile" 2>out/conftest.err)
8703   ac_status=$?
8704   cat out/conftest.err >&5
8705   echo "$as_me:8705: \$? = $ac_status" >&5
8706   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8707   then
8708     # The compiler can only warn and ignore the option if not recognized
8709     # So say no if there are warnings
8710     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8711     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8712     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8713       lt_cv_prog_compiler_c_o=yes
8714     fi
8715   fi
8716   chmod u+w . 2>&5
8717   $rm conftest*
8718   # SGI C++ compiler will create directory out/ii_files/ for
8719   # template instantiation
8720   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8721   $rm out/* && rmdir out
8722   cd ..
8723   rmdir conftest
8724   $rm conftest*
8725
8726fi
8727echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8728echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8729
8730
8731hard_links="nottested"
8732if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8733  # do not overwrite the value of need_locks provided by the user
8734  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8735echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8736  hard_links=yes
8737  $rm conftest*
8738  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8739  touch conftest.a
8740  ln conftest.a conftest.b 2>&5 || hard_links=no
8741  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8742  echo "$as_me:$LINENO: result: $hard_links" >&5
8743echo "${ECHO_T}$hard_links" >&6
8744  if test "$hard_links" = no; then
8745    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8746echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8747    need_locks=warn
8748  fi
8749else
8750  need_locks=no
8751fi
8752
8753echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8754echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8755
8756  runpath_var=
8757  allow_undefined_flag=
8758  enable_shared_with_static_runtimes=no
8759  archive_cmds=
8760  archive_expsym_cmds=
8761  old_archive_From_new_cmds=
8762  old_archive_from_expsyms_cmds=
8763  export_dynamic_flag_spec=
8764  whole_archive_flag_spec=
8765  thread_safe_flag_spec=
8766  hardcode_libdir_flag_spec=
8767  hardcode_libdir_flag_spec_ld=
8768  hardcode_libdir_separator=
8769  hardcode_direct=no
8770  hardcode_minus_L=no
8771  hardcode_shlibpath_var=unsupported
8772  link_all_deplibs=unknown
8773  hardcode_automatic=no
8774  module_cmds=
8775  module_expsym_cmds=
8776  always_export_symbols=no
8777  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8778  # include_expsyms should be a list of space-separated symbols to be *always*
8779  # included in the symbol list
8780  include_expsyms=
8781  # exclude_expsyms can be an extended regexp of symbols to exclude
8782  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8783  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8784  # as well as any symbol that contains `d'.
8785  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8786  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8787  # platforms (ab)use it in PIC code, but their linkers get confused if
8788  # the symbol is explicitly referenced.  Since portable code cannot
8789  # rely on this symbol name, it's probably fine to never include it in
8790  # preloaded symbol tables.
8791  extract_expsyms_cmds=
8792  # Just being paranoid about ensuring that cc_basename is set.
8793  for cc_temp in $compiler""; do
8794  case $cc_temp in
8795    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8796    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8797    \-*) ;;
8798    *) break;;
8799  esac
8800done
8801cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8802
8803  case $host_os in
8804  cygwin* | mingw* | pw32*)
8805    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8806    # When not using gcc, we currently assume that we are using
8807    # Microsoft Visual C++.
8808    if test "$GCC" != yes; then
8809      with_gnu_ld=no
8810    fi
8811    ;;
8812  interix*)
8813    # we just hope/assume this is gcc and not c89 (= MSVC++)
8814    with_gnu_ld=yes
8815    ;;
8816  openbsd*)
8817    with_gnu_ld=no
8818    ;;
8819  esac
8820
8821  ld_shlibs=yes
8822  if test "$with_gnu_ld" = yes; then
8823    # If archive_cmds runs LD, not CC, wlarc should be empty
8824    wlarc='${wl}'
8825
8826    # Set some defaults for GNU ld with shared library support. These
8827    # are reset later if shared libraries are not supported. Putting them
8828    # here allows them to be overridden if necessary.
8829    runpath_var=LD_RUN_PATH
8830    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8831    export_dynamic_flag_spec='${wl}--export-dynamic'
8832    # ancient GNU ld didn't support --whole-archive et. al.
8833    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8834        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8835      else
8836        whole_archive_flag_spec=
8837    fi
8838    supports_anon_versioning=no
8839    case `$LD -v 2>/dev/null` in
8840      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8841      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8842      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8843      *\ 2.11.*) ;; # other 2.11 versions
8844      *) supports_anon_versioning=yes ;;
8845    esac
8846
8847    # See if GNU ld supports shared libraries.
8848    case $host_os in
8849    aix3* | aix4* | aix5*)
8850      # On AIX/PPC, the GNU linker is very broken
8851      if test "$host_cpu" != ia64; then
8852        ld_shlibs=no
8853        cat <<EOF 1>&2
8854
8855*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8856*** to be unable to reliably create shared libraries on AIX.
8857*** Therefore, libtool is disabling shared libraries support.  If you
8858*** really care for shared libraries, you may want to modify your PATH
8859*** so that a non-GNU linker is found, and then restart.
8860
8861EOF
8862      fi
8863      ;;
8864
8865    amigaos*)
8866      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)'
8867      hardcode_libdir_flag_spec='-L$libdir'
8868      hardcode_minus_L=yes
8869
8870      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8871      # that the semantics of dynamic libraries on AmigaOS, at least up
8872      # to version 4, is to share data among multiple programs linked
8873      # with the same dynamic library.  Since this doesn't match the
8874      # behavior of shared libraries on other platforms, we can't use
8875      # them.
8876      ld_shlibs=no
8877      ;;
8878
8879    beos*)
8880      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8881        allow_undefined_flag=unsupported
8882        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8883        # support --undefined.  This deserves some investigation.  FIXME
8884        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885      else
8886        ld_shlibs=no
8887      fi
8888      ;;
8889
8890    cygwin* | mingw* | pw32*)
8891      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8892      # as there is no search path for DLLs.
8893      hardcode_libdir_flag_spec='-L$libdir'
8894      allow_undefined_flag=unsupported
8895      always_export_symbols=no
8896      enable_shared_with_static_runtimes=yes
8897      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8898
8899      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8900        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8901        # If the export-symbols file already is a .def file (1st line
8902        # is EXPORTS), use it as is; otherwise, prepend...
8903        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8904          cp $export_symbols $output_objdir/$soname.def;
8905        else
8906          echo EXPORTS > $output_objdir/$soname.def;
8907          cat $export_symbols >> $output_objdir/$soname.def;
8908        fi~
8909        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8910      else
8911        ld_shlibs=no
8912      fi
8913      ;;
8914
8915    interix3*)
8916      hardcode_direct=no
8917      hardcode_shlibpath_var=no
8918      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8919      export_dynamic_flag_spec='${wl}-E'
8920      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8921      # Instead, shared libraries are loaded at an image base (0x10000000 by
8922      # default) and relocated if they conflict, which is a slow very memory
8923      # consuming and fragmenting process.  To avoid this, we pick a random,
8924      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8925      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8926      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8927      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'
8928      ;;
8929
8930    linux*)
8931      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8932        tmp_addflag=
8933        case $cc_basename,$host_cpu in
8934        pgcc*)                          # Portland Group C compiler
8935          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'
8936          tmp_addflag=' $pic_flag'
8937          ;;
8938        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8939          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'
8940          tmp_addflag=' $pic_flag -Mnomain' ;;
8941        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8942          tmp_addflag=' -i_dynamic' ;;
8943        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8944          tmp_addflag=' -i_dynamic -nofor_main' ;;
8945        ifc* | ifort*)                  # Intel Fortran compiler
8946          tmp_addflag=' -nofor_main' ;;
8947        esac
8948        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8949
8950        if test $supports_anon_versioning = yes; then
8951          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8952  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8953  $echo "local: *; };" >> $output_objdir/$libname.ver~
8954          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8955        fi
8956      else
8957        ld_shlibs=no
8958      fi
8959      ;;
8960
8961    netbsd*)
8962      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8963        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8964        wlarc=
8965      else
8966        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8967        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8968      fi
8969      ;;
8970
8971    solaris*)
8972      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8973        ld_shlibs=no
8974        cat <<EOF 1>&2
8975
8976*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8977*** create shared libraries on Solaris systems.  Therefore, libtool
8978*** is disabling shared libraries support.  We urge you to upgrade GNU
8979*** binutils to release 2.9.1 or newer.  Another option is to modify
8980*** your PATH or compiler configuration so that the native linker is
8981*** used, and then restart.
8982
8983EOF
8984      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8985        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8986        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8987      else
8988        ld_shlibs=no
8989      fi
8990      ;;
8991
8992    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8993      case `$LD -v 2>&1` in
8994        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8995        ld_shlibs=no
8996        cat <<_LT_EOF 1>&2
8997
8998*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8999*** reliably create shared libraries on SCO systems.  Therefore, libtool
9000*** is disabling shared libraries support.  We urge you to upgrade GNU
9001*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9002*** your PATH or compiler configuration so that the native linker is
9003*** used, and then restart.
9004
9005_LT_EOF
9006        ;;
9007        *)
9008          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9009            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9010            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9011            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9012          else
9013            ld_shlibs=no
9014          fi
9015        ;;
9016      esac
9017      ;;
9018
9019    sunos4*)
9020      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9021      wlarc=
9022      hardcode_direct=yes
9023      hardcode_shlibpath_var=no
9024      ;;
9025
9026    *)
9027      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9028        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9030      else
9031        ld_shlibs=no
9032      fi
9033      ;;
9034    esac
9035
9036    if test "$ld_shlibs" = no; then
9037      runpath_var=
9038      hardcode_libdir_flag_spec=
9039      export_dynamic_flag_spec=
9040      whole_archive_flag_spec=
9041    fi
9042  else
9043    # PORTME fill in a description of your system's linker (not GNU ld)
9044    case $host_os in
9045    aix3*)
9046      allow_undefined_flag=unsupported
9047      always_export_symbols=yes
9048      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'
9049      # Note: this linker hardcodes the directories in LIBPATH if there
9050      # are no directories specified by -L.
9051      hardcode_minus_L=yes
9052      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9053        # Neither direct hardcoding nor static linking is supported with a
9054        # broken collect2.
9055        hardcode_direct=unsupported
9056      fi
9057      ;;
9058
9059    aix4* | aix5*)
9060      if test "$host_cpu" = ia64; then
9061        # On IA64, the linker does run time linking by default, so we don't
9062        # have to do anything special.
9063        aix_use_runtimelinking=no
9064        exp_sym_flag='-Bexport'
9065        no_entry_flag=""
9066      else
9067        # If we're using GNU nm, then we don't want the "-C" option.
9068        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9069        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9070          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'
9071        else
9072          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'
9073        fi
9074        aix_use_runtimelinking=no
9075
9076        # Test if we are trying to use run time linking or normal
9077        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9078        # need to do runtime linking.
9079        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9080          for ld_flag in $LDFLAGS; do
9081          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9082            aix_use_runtimelinking=yes
9083            break
9084          fi
9085          done
9086          ;;
9087        esac
9088
9089        exp_sym_flag='-bexport'
9090        no_entry_flag='-bnoentry'
9091      fi
9092
9093      # When large executables or shared objects are built, AIX ld can
9094      # have problems creating the table of contents.  If linking a library
9095      # or program results in "error TOC overflow" add -mminimal-toc to
9096      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9097      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9098
9099      archive_cmds=''
9100      hardcode_direct=yes
9101      hardcode_libdir_separator=':'
9102      link_all_deplibs=yes
9103
9104      if test "$GCC" = yes; then
9105        case $host_os in aix4.[012]|aix4.[012].*)
9106        # We only want to do this on AIX 4.2 and lower, the check
9107        # below for broken collect2 doesn't work under 4.3+
9108          collect2name=`${CC} -print-prog-name=collect2`
9109          if test -f "$collect2name" && \
9110           strings "$collect2name" | grep resolve_lib_name >/dev/null
9111          then
9112          # We have reworked collect2
9113          hardcode_direct=yes
9114          else
9115          # We have old collect2
9116          hardcode_direct=unsupported
9117          # It fails to find uninstalled libraries when the uninstalled
9118          # path is not listed in the libpath.  Setting hardcode_minus_L
9119          # to unsupported forces relinking
9120          hardcode_minus_L=yes
9121          hardcode_libdir_flag_spec='-L$libdir'
9122          hardcode_libdir_separator=
9123          fi
9124          ;;
9125        esac
9126        shared_flag='-shared'
9127        if test "$aix_use_runtimelinking" = yes; then
9128          shared_flag="$shared_flag "'${wl}-G'
9129        fi
9130      else
9131        # not using gcc
9132        if test "$host_cpu" = ia64; then
9133        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9134        # chokes on -Wl,-G. The following line is correct:
9135          shared_flag='-G'
9136        else
9137          if test "$aix_use_runtimelinking" = yes; then
9138            shared_flag='${wl}-G'
9139          else
9140            shared_flag='${wl}-bM:SRE'
9141          fi
9142        fi
9143      fi
9144
9145      # It seems that -bexpall does not export symbols beginning with
9146      # underscore (_), so it is better to generate a list of symbols to export.
9147      always_export_symbols=yes
9148      if test "$aix_use_runtimelinking" = yes; then
9149        # Warning - without using the other runtime loading flags (-brtl),
9150        # -berok will link without error, but may produce a broken library.
9151        allow_undefined_flag='-berok'
9152       # Determine the default libpath from the value encoded in an empty executable.
9153       cat >conftest.$ac_ext <<_ACEOF
9154/* confdefs.h.  */
9155_ACEOF
9156cat confdefs.h >>conftest.$ac_ext
9157cat >>conftest.$ac_ext <<_ACEOF
9158/* end confdefs.h.  */
9159
9160int
9161main ()
9162{
9163
9164  ;
9165  return 0;
9166}
9167_ACEOF
9168rm -f conftest.$ac_objext conftest$ac_exeext
9169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9170  (eval $ac_link) 2>conftest.er1
9171  ac_status=$?
9172  grep -v '^ *+' conftest.er1 >conftest.err
9173  rm -f conftest.er1
9174  cat conftest.err >&5
9175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176  (exit $ac_status); } &&
9177         { ac_try='test -z "$ac_c_werror_flag"
9178                         || test ! -s conftest.err'
9179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180  (eval $ac_try) 2>&5
9181  ac_status=$?
9182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183  (exit $ac_status); }; } &&
9184         { ac_try='test -s conftest$ac_exeext'
9185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9186  (eval $ac_try) 2>&5
9187  ac_status=$?
9188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189  (exit $ac_status); }; }; then
9190
9191aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9192}'`
9193# Check for a 64-bit object if we didn't find anything.
9194if 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; }
9195}'`; fi
9196else
9197  echo "$as_me: failed program was:" >&5
9198sed 's/^/| /' conftest.$ac_ext >&5
9199
9200fi
9201rm -f conftest.err conftest.$ac_objext \
9202      conftest$ac_exeext conftest.$ac_ext
9203if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9204
9205       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9206        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"
9207       else
9208        if test "$host_cpu" = ia64; then
9209          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9210          allow_undefined_flag="-z nodefs"
9211          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"
9212        else
9213         # Determine the default libpath from the value encoded in an empty executable.
9214         cat >conftest.$ac_ext <<_ACEOF
9215/* confdefs.h.  */
9216_ACEOF
9217cat confdefs.h >>conftest.$ac_ext
9218cat >>conftest.$ac_ext <<_ACEOF
9219/* end confdefs.h.  */
9220
9221int
9222main ()
9223{
9224
9225  ;
9226  return 0;
9227}
9228_ACEOF
9229rm -f conftest.$ac_objext conftest$ac_exeext
9230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9231  (eval $ac_link) 2>conftest.er1
9232  ac_status=$?
9233  grep -v '^ *+' conftest.er1 >conftest.err
9234  rm -f conftest.er1
9235  cat conftest.err >&5
9236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237  (exit $ac_status); } &&
9238         { ac_try='test -z "$ac_c_werror_flag"
9239                         || test ! -s conftest.err'
9240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241  (eval $ac_try) 2>&5
9242  ac_status=$?
9243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244  (exit $ac_status); }; } &&
9245         { ac_try='test -s conftest$ac_exeext'
9246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247  (eval $ac_try) 2>&5
9248  ac_status=$?
9249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250  (exit $ac_status); }; }; then
9251
9252aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9253}'`
9254# Check for a 64-bit object if we didn't find anything.
9255if 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; }
9256}'`; fi
9257else
9258  echo "$as_me: failed program was:" >&5
9259sed 's/^/| /' conftest.$ac_ext >&5
9260
9261fi
9262rm -f conftest.err conftest.$ac_objext \
9263      conftest$ac_exeext conftest.$ac_ext
9264if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9265
9266         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9267          # Warning - without using the other run time loading flags,
9268          # -berok will link without error, but may produce a broken library.
9269          no_undefined_flag=' ${wl}-bernotok'
9270          allow_undefined_flag=' ${wl}-berok'
9271          # Exported symbols can be pulled into shared objects from archives
9272          whole_archive_flag_spec='$convenience'
9273          archive_cmds_need_lc=yes
9274          # This is similar to how AIX traditionally builds its shared libraries.
9275          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'
9276        fi
9277      fi
9278      ;;
9279
9280    amigaos*)
9281      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)'
9282      hardcode_libdir_flag_spec='-L$libdir'
9283      hardcode_minus_L=yes
9284      # see comment about different semantics on the GNU ld section
9285      ld_shlibs=no
9286      ;;
9287
9288    bsdi[45]*)
9289      export_dynamic_flag_spec=-rdynamic
9290      ;;
9291
9292    cygwin* | mingw* | pw32*)
9293      # When not using gcc, we currently assume that we are using
9294      # Microsoft Visual C++.
9295      # hardcode_libdir_flag_spec is actually meaningless, as there is
9296      # no search path for DLLs.
9297      hardcode_libdir_flag_spec=' '
9298      allow_undefined_flag=unsupported
9299      # Tell ltmain to make .lib files, not .a files.
9300      libext=lib
9301      # Tell ltmain to make .dll files, not .so files.
9302      shrext_cmds=".dll"
9303      # FIXME: Setting linknames here is a bad hack.
9304      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9305      # The linker will automatically build a .lib file if we build a DLL.
9306      old_archive_From_new_cmds='true'
9307      # FIXME: Should let the user specify the lib program.
9308      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9309      fix_srcfile_path='`cygpath -w "$srcfile"`'
9310      enable_shared_with_static_runtimes=yes
9311      ;;
9312
9313    darwin* | rhapsody*)
9314      case $host_os in
9315        rhapsody* | darwin1.[012])
9316         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9317         ;;
9318       *) # Darwin 1.3 on
9319         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9320           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9321         else
9322           case ${MACOSX_DEPLOYMENT_TARGET} in
9323             10.[012])
9324               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9325               ;;
9326             10.*)
9327               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9328               ;;
9329           esac
9330         fi
9331         ;;
9332      esac
9333      archive_cmds_need_lc=no
9334      hardcode_direct=no
9335      hardcode_automatic=yes
9336      hardcode_shlibpath_var=unsupported
9337      whole_archive_flag_spec=''
9338      link_all_deplibs=yes
9339    if test "$GCC" = yes ; then
9340        output_verbose_link_cmd='echo'
9341        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9342      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9343      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9344      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}'
9345      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}'
9346    else
9347      case $cc_basename in
9348        xlc*)
9349         output_verbose_link_cmd='echo'
9350         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9351         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9352          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9353         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}'
9354          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}'
9355          ;;
9356       *)
9357         ld_shlibs=no
9358          ;;
9359      esac
9360    fi
9361      ;;
9362
9363    dgux*)
9364      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9365      hardcode_libdir_flag_spec='-L$libdir'
9366      hardcode_shlibpath_var=no
9367      ;;
9368
9369    freebsd1*)
9370      ld_shlibs=no
9371      ;;
9372
9373    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9374    # support.  Future versions do this automatically, but an explicit c++rt0.o
9375    # does not break anything, and helps significantly (at the cost of a little
9376    # extra space).
9377    freebsd2.2*)
9378      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9379      hardcode_libdir_flag_spec='-R$libdir'
9380      hardcode_direct=yes
9381      hardcode_shlibpath_var=no
9382      ;;
9383
9384    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9385    freebsd2*)
9386      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9387      hardcode_direct=yes
9388      hardcode_minus_L=yes
9389      hardcode_shlibpath_var=no
9390      ;;
9391
9392    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9393    freebsd* | kfreebsd*-gnu | dragonfly*)
9394      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9395      hardcode_libdir_flag_spec='-R$libdir'
9396      hardcode_direct=yes
9397      hardcode_shlibpath_var=no
9398      ;;
9399
9400    hpux9*)
9401      if test "$GCC" = yes; then
9402        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'
9403      else
9404        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'
9405      fi
9406      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9407      hardcode_libdir_separator=:
9408      hardcode_direct=yes
9409
9410      # hardcode_minus_L: Not really in the search PATH,
9411      # but as the default location of the library.
9412      hardcode_minus_L=yes
9413      export_dynamic_flag_spec='${wl}-E'
9414      ;;
9415
9416    hpux10*)
9417      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9418        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9419      else
9420        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9421      fi
9422      if test "$with_gnu_ld" = no; then
9423        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9424        hardcode_libdir_separator=:
9425
9426        hardcode_direct=yes
9427        export_dynamic_flag_spec='${wl}-E'
9428
9429        # hardcode_minus_L: Not really in the search PATH,
9430        # but as the default location of the library.
9431        hardcode_minus_L=yes
9432      fi
9433      ;;
9434
9435    hpux11*)
9436      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9437        case $host_cpu in
9438        hppa*64*)
9439          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440          ;;
9441        ia64*)
9442          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9443          ;;
9444        *)
9445          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446          ;;
9447        esac
9448      else
9449        case $host_cpu in
9450        hppa*64*)
9451          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9452          ;;
9453        ia64*)
9454          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9455          ;;
9456        *)
9457          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9458          ;;
9459        esac
9460      fi
9461      if test "$with_gnu_ld" = no; then
9462        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9463        hardcode_libdir_separator=:
9464
9465        case $host_cpu in
9466        hppa*64*|ia64*)
9467          hardcode_libdir_flag_spec_ld='+b $libdir'
9468          hardcode_direct=no
9469          hardcode_shlibpath_var=no
9470          ;;
9471        *)
9472          hardcode_direct=yes
9473          export_dynamic_flag_spec='${wl}-E'
9474
9475          # hardcode_minus_L: Not really in the search PATH,
9476          # but as the default location of the library.
9477          hardcode_minus_L=yes
9478          ;;
9479        esac
9480      fi
9481      ;;
9482
9483    irix5* | irix6* | nonstopux*)
9484      if test "$GCC" = yes; then
9485        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'
9486      else
9487        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'
9488        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9489      fi
9490      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9491      hardcode_libdir_separator=:
9492      link_all_deplibs=yes
9493      ;;
9494
9495    netbsd*)
9496      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9497        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9498      else
9499        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9500      fi
9501      hardcode_libdir_flag_spec='-R$libdir'
9502      hardcode_direct=yes
9503      hardcode_shlibpath_var=no
9504      ;;
9505
9506    newsos6)
9507      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9508      hardcode_direct=yes
9509      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9510      hardcode_libdir_separator=:
9511      hardcode_shlibpath_var=no
9512      ;;
9513
9514    openbsd*)
9515      hardcode_direct=yes
9516      hardcode_shlibpath_var=no
9517      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9518        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9519        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9520        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9521        export_dynamic_flag_spec='${wl}-E'
9522      else
9523       case $host_os in
9524         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9525           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9526           hardcode_libdir_flag_spec='-R$libdir'
9527           ;;
9528         *)
9529           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9530           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9531           ;;
9532       esac
9533      fi
9534      ;;
9535
9536    os2*)
9537      hardcode_libdir_flag_spec='-L$libdir'
9538      hardcode_minus_L=yes
9539      allow_undefined_flag=unsupported
9540      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'
9541      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9542      ;;
9543
9544    osf3*)
9545      if test "$GCC" = yes; then
9546        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9547        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'
9548      else
9549        allow_undefined_flag=' -expect_unresolved \*'
9550        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'
9551      fi
9552      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9553      hardcode_libdir_separator=:
9554      ;;
9555
9556    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9557      if test "$GCC" = yes; then
9558        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9559        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'
9560        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9561      else
9562        allow_undefined_flag=' -expect_unresolved \*'
9563        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'
9564        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9565        $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'
9566
9567        # Both c and cxx compiler support -rpath directly
9568        hardcode_libdir_flag_spec='-rpath $libdir'
9569      fi
9570      hardcode_libdir_separator=:
9571      ;;
9572
9573    solaris*)
9574      no_undefined_flag=' -z text'
9575      if test "$GCC" = yes; then
9576        wlarc='${wl}'
9577        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9578        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9579          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9580      else
9581        wlarc=''
9582        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9583        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9584        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9585      fi
9586      hardcode_libdir_flag_spec='-R$libdir'
9587      hardcode_shlibpath_var=no
9588      case $host_os in
9589      solaris2.[0-5] | solaris2.[0-5].*) ;;
9590      *)
9591        # The compiler driver will combine linker options so we
9592        # cannot just pass the convience library names through
9593        # without $wl, iff we do not link with $LD.
9594        # Luckily, gcc supports the same syntax we need for Sun Studio.
9595        # Supported since Solaris 2.6 (maybe 2.5.1?)
9596        case $wlarc in
9597        '')
9598          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9599        *)
9600          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' ;;
9601        esac ;;
9602      esac
9603      link_all_deplibs=yes
9604      ;;
9605
9606    sunos4*)
9607      if test "x$host_vendor" = xsequent; then
9608        # Use $CC to link under sequent, because it throws in some extra .o
9609        # files that make .init and .fini sections work.
9610        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9611      else
9612        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9613      fi
9614      hardcode_libdir_flag_spec='-L$libdir'
9615      hardcode_direct=yes
9616      hardcode_minus_L=yes
9617      hardcode_shlibpath_var=no
9618      ;;
9619
9620    sysv4)
9621      case $host_vendor in
9622        sni)
9623          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624          hardcode_direct=yes # is this really true???
9625        ;;
9626        siemens)
9627          ## LD is ld it makes a PLAMLIB
9628          ## CC just makes a GrossModule.
9629          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9630          reload_cmds='$CC -r -o $output$reload_objs'
9631          hardcode_direct=no
9632        ;;
9633        motorola)
9634          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9636        ;;
9637      esac
9638      runpath_var='LD_RUN_PATH'
9639      hardcode_shlibpath_var=no
9640      ;;
9641
9642    sysv4.3*)
9643      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9644      hardcode_shlibpath_var=no
9645      export_dynamic_flag_spec='-Bexport'
9646      ;;
9647
9648    sysv4*MP*)
9649      if test -d /usr/nec; then
9650        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651        hardcode_shlibpath_var=no
9652        runpath_var=LD_RUN_PATH
9653        hardcode_runpath_var=yes
9654        ld_shlibs=yes
9655      fi
9656      ;;
9657
9658    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9659      no_undefined_flag='${wl}-z,text'
9660      archive_cmds_need_lc=no
9661      hardcode_shlibpath_var=no
9662      runpath_var='LD_RUN_PATH'
9663
9664      if test "$GCC" = yes; then
9665        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9666        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9667      else
9668        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9669        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9670      fi
9671      ;;
9672
9673    sysv5* | sco3.2v5* | sco5v6*)
9674      # Note: We can NOT use -z defs as we might desire, because we do not
9675      # link with -lc, and that would cause any symbols used from libc to
9676      # always be unresolved, which means just about no library would
9677      # ever link correctly.  If we're not using GNU ld we use -z text
9678      # though, which does catch some bad symbols but isn't as heavy-handed
9679      # as -z defs.
9680      no_undefined_flag='${wl}-z,text'
9681      allow_undefined_flag='${wl}-z,nodefs'
9682      archive_cmds_need_lc=no
9683      hardcode_shlibpath_var=no
9684      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9685      hardcode_libdir_separator=':'
9686      link_all_deplibs=yes
9687      export_dynamic_flag_spec='${wl}-Bexport'
9688      runpath_var='LD_RUN_PATH'
9689
9690      if test "$GCC" = yes; then
9691        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9692        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9693      else
9694        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9695        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9696      fi
9697      ;;
9698
9699    uts4*)
9700      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701      hardcode_libdir_flag_spec='-L$libdir'
9702      hardcode_shlibpath_var=no
9703      ;;
9704
9705    *)
9706      ld_shlibs=no
9707      ;;
9708    esac
9709  fi
9710
9711echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9712echo "${ECHO_T}$ld_shlibs" >&6
9713test "$ld_shlibs" = no && can_build_shared=no
9714
9715#
9716# Do we need to explicitly link libc?
9717#
9718case "x$archive_cmds_need_lc" in
9719x|xyes)
9720  # Assume -lc should be added
9721  archive_cmds_need_lc=yes
9722
9723  if test "$enable_shared" = yes && test "$GCC" = yes; then
9724    case $archive_cmds in
9725    *'~'*)
9726      # FIXME: we may have to deal with multi-command sequences.
9727      ;;
9728    '$CC '*)
9729      # Test whether the compiler implicitly links with -lc since on some
9730      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9731      # to ld, don't add -lc before -lgcc.
9732      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9733echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9734      $rm conftest*
9735      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9736
9737      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9738  (eval $ac_compile) 2>&5
9739  ac_status=$?
9740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741  (exit $ac_status); } 2>conftest.err; then
9742        soname=conftest
9743        lib=conftest
9744        libobjs=conftest.$ac_objext
9745        deplibs=
9746        wl=$lt_prog_compiler_wl
9747        pic_flag=$lt_prog_compiler_pic
9748        compiler_flags=-v
9749        linker_flags=-v
9750        verstring=
9751        output_objdir=.
9752        libname=conftest
9753        lt_save_allow_undefined_flag=$allow_undefined_flag
9754        allow_undefined_flag=
9755        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9756  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9757  ac_status=$?
9758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759  (exit $ac_status); }
9760        then
9761          archive_cmds_need_lc=no
9762        else
9763          archive_cmds_need_lc=yes
9764        fi
9765        allow_undefined_flag=$lt_save_allow_undefined_flag
9766      else
9767        cat conftest.err 1>&5
9768      fi
9769      $rm conftest*
9770      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9771echo "${ECHO_T}$archive_cmds_need_lc" >&6
9772      ;;
9773    esac
9774  fi
9775  ;;
9776esac
9777
9778echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9779echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9780library_names_spec=
9781libname_spec='lib$name'
9782soname_spec=
9783shrext_cmds=".so"
9784postinstall_cmds=
9785postuninstall_cmds=
9786finish_cmds=
9787finish_eval=
9788shlibpath_var=
9789shlibpath_overrides_runpath=unknown
9790version_type=none
9791dynamic_linker="$host_os ld.so"
9792sys_lib_dlsearch_path_spec="/lib /usr/lib"
9793if test "$GCC" = yes; then
9794  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9795  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9796    # if the path contains ";" then we assume it to be the separator
9797    # otherwise default to the standard path separator (i.e. ":") - it is
9798    # assumed that no part of a normal pathname contains ";" but that should
9799    # okay in the real world where ";" in dirpaths is itself problematic.
9800    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9801  else
9802    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9803  fi
9804else
9805  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9806fi
9807need_lib_prefix=unknown
9808hardcode_into_libs=no
9809
9810# when you set need_version to no, make sure it does not cause -set_version
9811# flags to be left without arguments
9812need_version=unknown
9813
9814case $host_os in
9815aix3*)
9816  version_type=linux
9817  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9818  shlibpath_var=LIBPATH
9819
9820  # AIX 3 has no versioning support, so we append a major version to the name.
9821  soname_spec='${libname}${release}${shared_ext}$major'
9822  ;;
9823
9824aix4* | aix5*)
9825  version_type=linux
9826  need_lib_prefix=no
9827  need_version=no
9828  hardcode_into_libs=yes
9829  if test "$host_cpu" = ia64; then
9830    # AIX 5 supports IA64
9831    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9832    shlibpath_var=LD_LIBRARY_PATH
9833  else
9834    # With GCC up to 2.95.x, collect2 would create an import file
9835    # for dependence libraries.  The import file would start with
9836    # the line `#! .'.  This would cause the generated library to
9837    # depend on `.', always an invalid library.  This was fixed in
9838    # development snapshots of GCC prior to 3.0.
9839    case $host_os in
9840      aix4 | aix4.[01] | aix4.[01].*)
9841      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9842           echo ' yes '
9843           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9844        :
9845      else
9846        can_build_shared=no
9847      fi
9848      ;;
9849    esac
9850    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9851    # soname into executable. Probably we can add versioning support to
9852    # collect2, so additional links can be useful in future.
9853    if test "$aix_use_runtimelinking" = yes; then
9854      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9855      # instead of lib<name>.a to let people know that these are not
9856      # typical AIX shared libraries.
9857      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9858    else
9859      # We preserve .a as extension for shared libraries through AIX4.2
9860      # and later when we are not doing run time linking.
9861      library_names_spec='${libname}${release}.a $libname.a'
9862      soname_spec='${libname}${release}${shared_ext}$major'
9863    fi
9864    shlibpath_var=LIBPATH
9865  fi
9866  ;;
9867
9868amigaos*)
9869  library_names_spec='$libname.ixlibrary $libname.a'
9870  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9871  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'
9872  ;;
9873
9874beos*)
9875  library_names_spec='${libname}${shared_ext}'
9876  dynamic_linker="$host_os ld.so"
9877  shlibpath_var=LIBRARY_PATH
9878  ;;
9879
9880bsdi[45]*)
9881  version_type=linux
9882  need_version=no
9883  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9884  soname_spec='${libname}${release}${shared_ext}$major'
9885  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9886  shlibpath_var=LD_LIBRARY_PATH
9887  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9888  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9889  # the default ld.so.conf also contains /usr/contrib/lib and
9890  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9891  # libtool to hard-code these into programs
9892  ;;
9893
9894cygwin* | mingw* | pw32*)
9895  version_type=windows
9896  shrext_cmds=".dll"
9897  need_version=no
9898  need_lib_prefix=no
9899
9900  case $GCC,$host_os in
9901  yes,cygwin* | yes,mingw* | yes,pw32*)
9902    library_names_spec='$libname.dll.a'
9903    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9904    postinstall_cmds='base_file=`basename \${file}`~
9905      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9906      dldir=$destdir/`dirname \$dlpath`~
9907      test -d \$dldir || mkdir -p \$dldir~
9908      $install_prog $dir/$dlname \$dldir/$dlname~
9909      chmod a+x \$dldir/$dlname'
9910    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9911      dlpath=$dir/\$dldll~
9912       $rm \$dlpath'
9913    shlibpath_overrides_runpath=yes
9914
9915    case $host_os in
9916    cygwin*)
9917      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9918      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9919      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9920      ;;
9921    mingw*)
9922      # MinGW DLLs use traditional 'lib' prefix
9923      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9924      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9925      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9926        # It is most probably a Windows format PATH printed by
9927        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9928        # path with ; separators, and with drive letters. We can handle the
9929        # drive letters (cygwin fileutils understands them), so leave them,
9930        # especially as we might pass files found there to a mingw objdump,
9931        # which wouldn't understand a cygwinified path. Ahh.
9932        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9933      else
9934        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9935      fi
9936      ;;
9937    pw32*)
9938      # pw32 DLLs use 'pw' prefix rather than 'lib'
9939      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9940      ;;
9941    esac
9942    ;;
9943
9944  *)
9945    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9946    ;;
9947  esac
9948  dynamic_linker='Win32 ld.exe'
9949  # FIXME: first we should search . and the directory the executable is in
9950  shlibpath_var=PATH
9951  ;;
9952
9953darwin* | rhapsody*)
9954  dynamic_linker="$host_os dyld"
9955  version_type=darwin
9956  need_lib_prefix=no
9957  need_version=no
9958  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9959  soname_spec='${libname}${release}${major}$shared_ext'
9960  shlibpath_overrides_runpath=yes
9961  shlibpath_var=DYLD_LIBRARY_PATH
9962  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9963  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9964  if test "$GCC" = yes; then
9965    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"`
9966  else
9967    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9968  fi
9969  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9970  ;;
9971
9972dgux*)
9973  version_type=linux
9974  need_lib_prefix=no
9975  need_version=no
9976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9977  soname_spec='${libname}${release}${shared_ext}$major'
9978  shlibpath_var=LD_LIBRARY_PATH
9979  ;;
9980
9981freebsd1*)
9982  dynamic_linker=no
9983  ;;
9984
9985kfreebsd*-gnu)
9986  version_type=linux
9987  need_lib_prefix=no
9988  need_version=no
9989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9990  soname_spec='${libname}${release}${shared_ext}$major'
9991  shlibpath_var=LD_LIBRARY_PATH
9992  shlibpath_overrides_runpath=no
9993  hardcode_into_libs=yes
9994  dynamic_linker='GNU ld.so'
9995  ;;
9996
9997freebsd* | dragonfly*)
9998  # DragonFly does not have aout.  When/if they implement a new
9999  # versioning mechanism, adjust this.
10000  if test -x /usr/bin/objformat; then
10001    objformat=`/usr/bin/objformat`
10002  else
10003    case $host_os in
10004    freebsd[123]*) objformat=aout ;;
10005    *) objformat=elf ;;
10006    esac
10007  fi
10008  version_type=freebsd-$objformat
10009  case $version_type in
10010    freebsd-elf*)
10011      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10012      need_version=no
10013      need_lib_prefix=no
10014      ;;
10015    freebsd-*)
10016      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10017      need_version=yes
10018      ;;
10019  esac
10020  shlibpath_var=LD_LIBRARY_PATH
10021  case $host_os in
10022  freebsd2*)
10023    shlibpath_overrides_runpath=yes
10024    ;;
10025  freebsd3.[01]* | freebsdelf3.[01]*)
10026    shlibpath_overrides_runpath=yes
10027    hardcode_into_libs=yes
10028    ;;
10029  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10030  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10031    shlibpath_overrides_runpath=no
10032    hardcode_into_libs=yes
10033    ;;
10034  freebsd*) # from 4.6 on
10035    shlibpath_overrides_runpath=yes
10036    hardcode_into_libs=yes
10037    ;;
10038  esac
10039  ;;
10040
10041gnu*)
10042  version_type=linux
10043  need_lib_prefix=no
10044  need_version=no
10045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10046  soname_spec='${libname}${release}${shared_ext}$major'
10047  shlibpath_var=LD_LIBRARY_PATH
10048  hardcode_into_libs=yes
10049  ;;
10050
10051hpux9* | hpux10* | hpux11*)
10052  # Give a soname corresponding to the major version so that dld.sl refuses to
10053  # link against other versions.
10054  version_type=sunos
10055  need_lib_prefix=no
10056  need_version=no
10057  case $host_cpu in
10058  ia64*)
10059    shrext_cmds='.so'
10060    hardcode_into_libs=yes
10061    dynamic_linker="$host_os dld.so"
10062    shlibpath_var=LD_LIBRARY_PATH
10063    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10064    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10065    soname_spec='${libname}${release}${shared_ext}$major'
10066    if test "X$HPUX_IA64_MODE" = X32; then
10067      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10068    else
10069      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10070    fi
10071    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10072    ;;
10073   hppa*64*)
10074     shrext_cmds='.sl'
10075     hardcode_into_libs=yes
10076     dynamic_linker="$host_os dld.sl"
10077     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10078     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080     soname_spec='${libname}${release}${shared_ext}$major'
10081     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10082     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10083     ;;
10084   *)
10085    shrext_cmds='.sl'
10086    dynamic_linker="$host_os dld.sl"
10087    shlibpath_var=SHLIB_PATH
10088    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10089    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10090    soname_spec='${libname}${release}${shared_ext}$major'
10091    ;;
10092  esac
10093  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10094  postinstall_cmds='chmod 555 $lib'
10095  ;;
10096
10097interix3*)
10098  version_type=linux
10099  need_lib_prefix=no
10100  need_version=no
10101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10102  soname_spec='${libname}${release}${shared_ext}$major'
10103  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10104  shlibpath_var=LD_LIBRARY_PATH
10105  shlibpath_overrides_runpath=no
10106  hardcode_into_libs=yes
10107  ;;
10108
10109irix5* | irix6* | nonstopux*)
10110  case $host_os in
10111    nonstopux*) version_type=nonstopux ;;
10112    *)
10113        if test "$lt_cv_prog_gnu_ld" = yes; then
10114                version_type=linux
10115        else
10116                version_type=irix
10117        fi ;;
10118  esac
10119  need_lib_prefix=no
10120  need_version=no
10121  soname_spec='${libname}${release}${shared_ext}$major'
10122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10123  case $host_os in
10124  irix5* | nonstopux*)
10125    libsuff= shlibsuff=
10126    ;;
10127  *)
10128    case $LD in # libtool.m4 will add one of these switches to LD
10129    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10130      libsuff= shlibsuff= libmagic=32-bit;;
10131    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10132      libsuff=32 shlibsuff=N32 libmagic=N32;;
10133    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10134      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10135    *) libsuff= shlibsuff= libmagic=never-match;;
10136    esac
10137    ;;
10138  esac
10139  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10140  shlibpath_overrides_runpath=no
10141  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10142  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10143  hardcode_into_libs=yes
10144  ;;
10145
10146# No shared lib support for Linux oldld, aout, or coff.
10147linux*oldld* | linux*aout* | linux*coff*)
10148  dynamic_linker=no
10149  ;;
10150
10151# This must be Linux ELF.
10152linux*)
10153  version_type=linux
10154  need_lib_prefix=no
10155  need_version=no
10156  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157  soname_spec='${libname}${release}${shared_ext}$major'
10158  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10159  shlibpath_var=LD_LIBRARY_PATH
10160  shlibpath_overrides_runpath=no
10161  # This implies no fast_install, which is unacceptable.
10162  # Some rework will be needed to allow for fast_install
10163  # before this can be enabled.
10164  hardcode_into_libs=yes
10165
10166  # Append ld.so.conf contents to the search path
10167  if test -f /etc/ld.so.conf; then
10168    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' ' '`
10169    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10170  fi
10171
10172  # We used to test for /lib/ld.so.1 and disable shared libraries on
10173  # powerpc, because MkLinux only supported shared libraries with the
10174  # GNU dynamic linker.  Since this was broken with cross compilers,
10175  # most powerpc-linux boxes support dynamic linking these days and
10176  # people can always --disable-shared, the test was removed, and we
10177  # assume the GNU/Linux dynamic linker is in use.
10178  dynamic_linker='GNU/Linux ld.so'
10179  ;;
10180
10181knetbsd*-gnu)
10182  version_type=linux
10183  need_lib_prefix=no
10184  need_version=no
10185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10186  soname_spec='${libname}${release}${shared_ext}$major'
10187  shlibpath_var=LD_LIBRARY_PATH
10188  shlibpath_overrides_runpath=no
10189  hardcode_into_libs=yes
10190  dynamic_linker='GNU ld.so'
10191  ;;
10192
10193netbsd*)
10194  version_type=sunos
10195  need_lib_prefix=no
10196  need_version=no
10197  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10198    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10199    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10200    dynamic_linker='NetBSD (a.out) ld.so'
10201  else
10202    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10203    soname_spec='${libname}${release}${shared_ext}$major'
10204    dynamic_linker='NetBSD ld.elf_so'
10205  fi
10206  shlibpath_var=LD_LIBRARY_PATH
10207  shlibpath_overrides_runpath=yes
10208  hardcode_into_libs=yes
10209  ;;
10210
10211newsos6)
10212  version_type=linux
10213  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214  shlibpath_var=LD_LIBRARY_PATH
10215  shlibpath_overrides_runpath=yes
10216  ;;
10217
10218nto-qnx*)
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  shlibpath_var=LD_LIBRARY_PATH
10225  shlibpath_overrides_runpath=yes
10226  ;;
10227
10228openbsd*)
10229  version_type=sunos
10230  sys_lib_dlsearch_path_spec="/usr/lib"
10231  need_lib_prefix=no
10232  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10233  case $host_os in
10234    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10235    *)                         need_version=no  ;;
10236  esac
10237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10238  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10239  shlibpath_var=LD_LIBRARY_PATH
10240  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10241    case $host_os in
10242      openbsd2.[89] | openbsd2.[89].*)
10243        shlibpath_overrides_runpath=no
10244        ;;
10245      *)
10246        shlibpath_overrides_runpath=yes
10247        ;;
10248      esac
10249  else
10250    shlibpath_overrides_runpath=yes
10251  fi
10252  ;;
10253
10254os2*)
10255  libname_spec='$name'
10256  shrext_cmds=".dll"
10257  need_lib_prefix=no
10258  library_names_spec='$libname${shared_ext} $libname.a'
10259  dynamic_linker='OS/2 ld.exe'
10260  shlibpath_var=LIBPATH
10261  ;;
10262
10263osf3* | osf4* | osf5*)
10264  version_type=osf
10265  need_lib_prefix=no
10266  need_version=no
10267  soname_spec='${libname}${release}${shared_ext}$major'
10268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269  shlibpath_var=LD_LIBRARY_PATH
10270  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10271  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10272  ;;
10273
10274solaris*)
10275  version_type=linux
10276  need_lib_prefix=no
10277  need_version=no
10278  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10279  soname_spec='${libname}${release}${shared_ext}$major'
10280  shlibpath_var=LD_LIBRARY_PATH
10281  shlibpath_overrides_runpath=yes
10282  hardcode_into_libs=yes
10283  # ldd complains unless libraries are executable
10284  postinstall_cmds='chmod +x $lib'
10285  ;;
10286
10287sunos4*)
10288  version_type=sunos
10289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10290  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10291  shlibpath_var=LD_LIBRARY_PATH
10292  shlibpath_overrides_runpath=yes
10293  if test "$with_gnu_ld" = yes; then
10294    need_lib_prefix=no
10295  fi
10296  need_version=yes
10297  ;;
10298
10299sysv4 | sysv4.3*)
10300  version_type=linux
10301  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302  soname_spec='${libname}${release}${shared_ext}$major'
10303  shlibpath_var=LD_LIBRARY_PATH
10304  case $host_vendor in
10305    sni)
10306      shlibpath_overrides_runpath=no
10307      need_lib_prefix=no
10308      export_dynamic_flag_spec='${wl}-Blargedynsym'
10309      runpath_var=LD_RUN_PATH
10310      ;;
10311    siemens)
10312      need_lib_prefix=no
10313      ;;
10314    motorola)
10315      need_lib_prefix=no
10316      need_version=no
10317      shlibpath_overrides_runpath=no
10318      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10319      ;;
10320  esac
10321  ;;
10322
10323sysv4*MP*)
10324  if test -d /usr/nec ;then
10325    version_type=linux
10326    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10327    soname_spec='$libname${shared_ext}.$major'
10328    shlibpath_var=LD_LIBRARY_PATH
10329  fi
10330  ;;
10331
10332sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10333  version_type=freebsd-elf
10334  need_lib_prefix=no
10335  need_version=no
10336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10337  soname_spec='${libname}${release}${shared_ext}$major'
10338  shlibpath_var=LD_LIBRARY_PATH
10339  hardcode_into_libs=yes
10340  if test "$with_gnu_ld" = yes; then
10341    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10342    shlibpath_overrides_runpath=no
10343  else
10344    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10345    shlibpath_overrides_runpath=yes
10346    case $host_os in
10347      sco3.2v5*)
10348        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10349        ;;
10350    esac
10351  fi
10352  sys_lib_dlsearch_path_spec='/usr/lib'
10353  ;;
10354
10355uts4*)
10356  version_type=linux
10357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358  soname_spec='${libname}${release}${shared_ext}$major'
10359  shlibpath_var=LD_LIBRARY_PATH
10360  ;;
10361
10362*)
10363  dynamic_linker=no
10364  ;;
10365esac
10366echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10367echo "${ECHO_T}$dynamic_linker" >&6
10368test "$dynamic_linker" = no && can_build_shared=no
10369
10370variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10371if test "$GCC" = yes; then
10372  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10373fi
10374
10375echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10376echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10377hardcode_action=
10378if test -n "$hardcode_libdir_flag_spec" || \
10379   test -n "$runpath_var" || \
10380   test "X$hardcode_automatic" = "Xyes" ; then
10381
10382  # We can hardcode non-existant directories.
10383  if test "$hardcode_direct" != no &&
10384     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10385     # have to relink, otherwise we might link with an installed library
10386     # when we should be linking with a yet-to-be-installed one
10387     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10388     test "$hardcode_minus_L" != no; then
10389    # Linking always hardcodes the temporary library directory.
10390    hardcode_action=relink
10391  else
10392    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10393    hardcode_action=immediate
10394  fi
10395else
10396  # We cannot hardcode anything, or else we can only hardcode existing
10397  # directories.
10398  hardcode_action=unsupported
10399fi
10400echo "$as_me:$LINENO: result: $hardcode_action" >&5
10401echo "${ECHO_T}$hardcode_action" >&6
10402
10403if test "$hardcode_action" = relink; then
10404  # Fast installation is not supported
10405  enable_fast_install=no
10406elif test "$shlibpath_overrides_runpath" = yes ||
10407     test "$enable_shared" = no; then
10408  # Fast installation is not necessary
10409  enable_fast_install=needless
10410fi
10411
10412striplib=
10413old_striplib=
10414echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10415echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10416if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10417  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10418  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10419  echo "$as_me:$LINENO: result: yes" >&5
10420echo "${ECHO_T}yes" >&6
10421else
10422# FIXME - insert some real tests, host_os isn't really good enough
10423  case $host_os in
10424   darwin*)
10425       if test -n "$STRIP" ; then
10426         striplib="$STRIP -x"
10427         echo "$as_me:$LINENO: result: yes" >&5
10428echo "${ECHO_T}yes" >&6
10429       else
10430  echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432fi
10433       ;;
10434   *)
10435  echo "$as_me:$LINENO: result: no" >&5
10436echo "${ECHO_T}no" >&6
10437    ;;
10438  esac
10439fi
10440
10441if test "x$enable_dlopen" != xyes; then
10442  enable_dlopen=unknown
10443  enable_dlopen_self=unknown
10444  enable_dlopen_self_static=unknown
10445else
10446  lt_cv_dlopen=no
10447  lt_cv_dlopen_libs=
10448
10449  case $host_os in
10450  beos*)
10451    lt_cv_dlopen="load_add_on"
10452    lt_cv_dlopen_libs=
10453    lt_cv_dlopen_self=yes
10454    ;;
10455
10456  mingw* | pw32*)
10457    lt_cv_dlopen="LoadLibrary"
10458    lt_cv_dlopen_libs=
10459   ;;
10460
10461  cygwin*)
10462    lt_cv_dlopen="dlopen"
10463    lt_cv_dlopen_libs=
10464   ;;
10465
10466  darwin*)
10467  # if libdl is installed we need to link against it
10468    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10469echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10470if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10471  echo $ECHO_N "(cached) $ECHO_C" >&6
10472else
10473  ac_check_lib_save_LIBS=$LIBS
10474LIBS="-ldl  $LIBS"
10475cat >conftest.$ac_ext <<_ACEOF
10476/* confdefs.h.  */
10477_ACEOF
10478cat confdefs.h >>conftest.$ac_ext
10479cat >>conftest.$ac_ext <<_ACEOF
10480/* end confdefs.h.  */
10481
10482/* Override any gcc2 internal prototype to avoid an error.  */
10483#ifdef __cplusplus
10484extern "C"
10485#endif
10486/* We use char because int might match the return type of a gcc2
10487   builtin and then its argument prototype would still apply.  */
10488char dlopen ();
10489int
10490main ()
10491{
10492dlopen ();
10493  ;
10494  return 0;
10495}
10496_ACEOF
10497rm -f conftest.$ac_objext conftest$ac_exeext
10498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10499  (eval $ac_link) 2>conftest.er1
10500  ac_status=$?
10501  grep -v '^ *+' conftest.er1 >conftest.err
10502  rm -f conftest.er1
10503  cat conftest.err >&5
10504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505  (exit $ac_status); } &&
10506         { ac_try='test -z "$ac_c_werror_flag"
10507                         || test ! -s conftest.err'
10508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509  (eval $ac_try) 2>&5
10510  ac_status=$?
10511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512  (exit $ac_status); }; } &&
10513         { ac_try='test -s conftest$ac_exeext'
10514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515  (eval $ac_try) 2>&5
10516  ac_status=$?
10517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518  (exit $ac_status); }; }; then
10519  ac_cv_lib_dl_dlopen=yes
10520else
10521  echo "$as_me: failed program was:" >&5
10522sed 's/^/| /' conftest.$ac_ext >&5
10523
10524ac_cv_lib_dl_dlopen=no
10525fi
10526rm -f conftest.err conftest.$ac_objext \
10527      conftest$ac_exeext conftest.$ac_ext
10528LIBS=$ac_check_lib_save_LIBS
10529fi
10530echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10531echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10532if test $ac_cv_lib_dl_dlopen = yes; then
10533  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10534else
10535
10536    lt_cv_dlopen="dyld"
10537    lt_cv_dlopen_libs=
10538    lt_cv_dlopen_self=yes
10539
10540fi
10541
10542   ;;
10543
10544  *)
10545    echo "$as_me:$LINENO: checking for shl_load" >&5
10546echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10547if test "${ac_cv_func_shl_load+set}" = set; then
10548  echo $ECHO_N "(cached) $ECHO_C" >&6
10549else
10550  cat >conftest.$ac_ext <<_ACEOF
10551/* confdefs.h.  */
10552_ACEOF
10553cat confdefs.h >>conftest.$ac_ext
10554cat >>conftest.$ac_ext <<_ACEOF
10555/* end confdefs.h.  */
10556/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10557   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10558#define shl_load innocuous_shl_load
10559
10560/* System header to define __stub macros and hopefully few prototypes,
10561    which can conflict with char shl_load (); below.
10562    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10563    <limits.h> exists even on freestanding compilers.  */
10564
10565#ifdef __STDC__
10566# include <limits.h>
10567#else
10568# include <assert.h>
10569#endif
10570
10571#undef shl_load
10572
10573/* Override any gcc2 internal prototype to avoid an error.  */
10574#ifdef __cplusplus
10575extern "C"
10576{
10577#endif
10578/* We use char because int might match the return type of a gcc2
10579   builtin and then its argument prototype would still apply.  */
10580char shl_load ();
10581/* The GNU C library defines this for functions which it implements
10582    to always fail with ENOSYS.  Some functions are actually named
10583    something starting with __ and the normal name is an alias.  */
10584#if defined (__stub_shl_load) || defined (__stub___shl_load)
10585choke me
10586#else
10587char (*f) () = shl_load;
10588#endif
10589#ifdef __cplusplus
10590}
10591#endif
10592
10593int
10594main ()
10595{
10596return f != shl_load;
10597  ;
10598  return 0;
10599}
10600_ACEOF
10601rm -f conftest.$ac_objext conftest$ac_exeext
10602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603  (eval $ac_link) 2>conftest.er1
10604  ac_status=$?
10605  grep -v '^ *+' conftest.er1 >conftest.err
10606  rm -f conftest.er1
10607  cat conftest.err >&5
10608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609  (exit $ac_status); } &&
10610         { ac_try='test -z "$ac_c_werror_flag"
10611                         || test ! -s conftest.err'
10612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613  (eval $ac_try) 2>&5
10614  ac_status=$?
10615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); }; } &&
10617         { ac_try='test -s conftest$ac_exeext'
10618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619  (eval $ac_try) 2>&5
10620  ac_status=$?
10621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622  (exit $ac_status); }; }; then
10623  ac_cv_func_shl_load=yes
10624else
10625  echo "$as_me: failed program was:" >&5
10626sed 's/^/| /' conftest.$ac_ext >&5
10627
10628ac_cv_func_shl_load=no
10629fi
10630rm -f conftest.err conftest.$ac_objext \
10631      conftest$ac_exeext conftest.$ac_ext
10632fi
10633echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10634echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10635if test $ac_cv_func_shl_load = yes; then
10636  lt_cv_dlopen="shl_load"
10637else
10638  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10639echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10640if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10641  echo $ECHO_N "(cached) $ECHO_C" >&6
10642else
10643  ac_check_lib_save_LIBS=$LIBS
10644LIBS="-ldld  $LIBS"
10645cat >conftest.$ac_ext <<_ACEOF
10646/* confdefs.h.  */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h.  */
10651
10652/* Override any gcc2 internal prototype to avoid an error.  */
10653#ifdef __cplusplus
10654extern "C"
10655#endif
10656/* We use char because int might match the return type of a gcc2
10657   builtin and then its argument prototype would still apply.  */
10658char shl_load ();
10659int
10660main ()
10661{
10662shl_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_lib_dld_shl_load=yes
10690else
10691  echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
10693
10694ac_cv_lib_dld_shl_load=no
10695fi
10696rm -f conftest.err conftest.$ac_objext \
10697      conftest$ac_exeext conftest.$ac_ext
10698LIBS=$ac_check_lib_save_LIBS
10699fi
10700echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10701echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10702if test $ac_cv_lib_dld_shl_load = yes; then
10703  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10704else
10705  echo "$as_me:$LINENO: checking for dlopen" >&5
10706echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10707if test "${ac_cv_func_dlopen+set}" = set; then
10708  echo $ECHO_N "(cached) $ECHO_C" >&6
10709else
10710  cat >conftest.$ac_ext <<_ACEOF
10711/* confdefs.h.  */
10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h.  */
10716/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10717   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10718#define dlopen innocuous_dlopen
10719
10720/* System header to define __stub macros and hopefully few prototypes,
10721    which can conflict with char dlopen (); below.
10722    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10723    <limits.h> exists even on freestanding compilers.  */
10724
10725#ifdef __STDC__
10726# include <limits.h>
10727#else
10728# include <assert.h>
10729#endif
10730
10731#undef dlopen
10732
10733/* Override any gcc2 internal prototype to avoid an error.  */
10734#ifdef __cplusplus
10735extern "C"
10736{
10737#endif
10738/* We use char because int might match the return type of a gcc2
10739   builtin and then its argument prototype would still apply.  */
10740char dlopen ();
10741/* The GNU C library defines this for functions which it implements
10742    to always fail with ENOSYS.  Some functions are actually named
10743    something starting with __ and the normal name is an alias.  */
10744#if defined (__stub_d