source: trunk/configure @ 1687

Last change on this file since 1687 was 1687, checked in by stefan, 9 years ago

remove unnessary last argument of AC_COIN_MAIN_PACKAGEDIR; rerun autotools

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