source: stable/1.1/configure @ 630

Last change on this file since 630 was 630, checked in by andreasw, 13 years ago

automatically regenerated autotools files

  • Property svn:executable set to *
File size: 727.2 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Cbc 0.1.
5#
6# Report bugs to <coin-cbc@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cbc'
432PACKAGE_TARNAME='cbc'
433PACKAGE_VERSION='0.1'
434PACKAGE_STRING='Cbc 0.1'
435PACKAGE_BUGREPORT='coin-cbc@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all CoinUtils"
478ac_subdirs_all="$ac_subdirs_all Data/Netlib"
479ac_subdirs_all="$ac_subdirs_all Data/Sample"
480ac_subdirs_all="$ac_subdirs_all Data/miplib3"
481ac_subdirs_all="$ac_subdirs_all Clp"
482ac_subdirs_all="$ac_subdirs_all Vol"
483ac_subdirs_all="$ac_subdirs_all Osi"
484ac_subdirs_all="$ac_subdirs_all Cgl"
485ac_subdirs_all="$ac_subdirs_all Cbc"
486ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS subdirs COIN_SKIP_PROJECTS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
487ac_subst_files=''
488
489# Initialize some variables set by options.
490ac_init_help=
491ac_init_version=false
492# The variables have the same names as the options, with
493# dashes changed to underlines.
494cache_file=/dev/null
495exec_prefix=NONE
496no_create=
497no_recursion=
498prefix=NONE
499program_prefix=NONE
500program_suffix=NONE
501program_transform_name=s,x,x,
502silent=
503site=
504srcdir=
505verbose=
506x_includes=NONE
507x_libraries=NONE
508
509# Installation directory options.
510# These are left unexpanded so users can "make install exec_prefix=/foo"
511# and all the variables that are supposed to be based on exec_prefix
512# by default will actually change.
513# Use braces instead of parens because sh, perl, etc. also accept them.
514bindir='${exec_prefix}/bin'
515sbindir='${exec_prefix}/sbin'
516libexecdir='${exec_prefix}/libexec'
517datadir='${prefix}/share'
518sysconfdir='${prefix}/etc'
519sharedstatedir='${prefix}/com'
520localstatedir='${prefix}/var'
521libdir='${exec_prefix}/lib'
522includedir='${prefix}/include'
523oldincludedir='/usr/include'
524infodir='${prefix}/info'
525mandir='${prefix}/man'
526
527ac_prev=
528for ac_option
529do
530  # If the previous option needs an argument, assign it.
531  if test -n "$ac_prev"; then
532    eval "$ac_prev=\$ac_option"
533    ac_prev=
534    continue
535  fi
536
537  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
538
539  # Accept the important Cygnus configure options, so we can diagnose typos.
540
541  case $ac_option in
542
543  -bindir | --bindir | --bindi | --bind | --bin | --bi)
544    ac_prev=bindir ;;
545  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
546    bindir=$ac_optarg ;;
547
548  -build | --build | --buil | --bui | --bu)
549    ac_prev=build_alias ;;
550  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
551    build_alias=$ac_optarg ;;
552
553  -cache-file | --cache-file | --cache-fil | --cache-fi \
554  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
555    ac_prev=cache_file ;;
556  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
557  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
558    cache_file=$ac_optarg ;;
559
560  --config-cache | -C)
561    cache_file=config.cache ;;
562
563  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
564    ac_prev=datadir ;;
565  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
566  | --da=*)
567    datadir=$ac_optarg ;;
568
569  -disable-* | --disable-*)
570    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
571    # Reject names that are not valid shell variable names.
572    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574   { (exit 1); exit 1; }; }
575    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576    eval "enable_$ac_feature=no" ;;
577
578  -enable-* | --enable-*)
579    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
580    # Reject names that are not valid shell variable names.
581    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
582      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
583   { (exit 1); exit 1; }; }
584    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
585    case $ac_option in
586      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587      *) ac_optarg=yes ;;
588    esac
589    eval "enable_$ac_feature='$ac_optarg'" ;;
590
591  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
592  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
593  | --exec | --exe | --ex)
594    ac_prev=exec_prefix ;;
595  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
596  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
597  | --exec=* | --exe=* | --ex=*)
598    exec_prefix=$ac_optarg ;;
599
600  -gas | --gas | --ga | --g)
601    # Obsolete; use --with-gas.
602    with_gas=yes ;;
603
604  -help | --help | --hel | --he | -h)
605    ac_init_help=long ;;
606  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
607    ac_init_help=recursive ;;
608  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
609    ac_init_help=short ;;
610
611  -host | --host | --hos | --ho)
612    ac_prev=host_alias ;;
613  -host=* | --host=* | --hos=* | --ho=*)
614    host_alias=$ac_optarg ;;
615
616  -includedir | --includedir | --includedi | --included | --include \
617  | --includ | --inclu | --incl | --inc)
618    ac_prev=includedir ;;
619  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
620  | --includ=* | --inclu=* | --incl=* | --inc=*)
621    includedir=$ac_optarg ;;
622
623  -infodir | --infodir | --infodi | --infod | --info | --inf)
624    ac_prev=infodir ;;
625  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
626    infodir=$ac_optarg ;;
627
628  -libdir | --libdir | --libdi | --libd)
629    ac_prev=libdir ;;
630  -libdir=* | --libdir=* | --libdi=* | --libd=*)
631    libdir=$ac_optarg ;;
632
633  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
634  | --libexe | --libex | --libe)
635    ac_prev=libexecdir ;;
636  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
637  | --libexe=* | --libex=* | --libe=*)
638    libexecdir=$ac_optarg ;;
639
640  -localstatedir | --localstatedir | --localstatedi | --localstated \
641  | --localstate | --localstat | --localsta | --localst \
642  | --locals | --local | --loca | --loc | --lo)
643    ac_prev=localstatedir ;;
644  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
645  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
646  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
647    localstatedir=$ac_optarg ;;
648
649  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
650    ac_prev=mandir ;;
651  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
652    mandir=$ac_optarg ;;
653
654  -nfp | --nfp | --nf)
655    # Obsolete; use --without-fp.
656    with_fp=no ;;
657
658  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
659  | --no-cr | --no-c | -n)
660    no_create=yes ;;
661
662  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
663  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
664    no_recursion=yes ;;
665
666  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
667  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
668  | --oldin | --oldi | --old | --ol | --o)
669    ac_prev=oldincludedir ;;
670  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
671  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
672  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
673    oldincludedir=$ac_optarg ;;
674
675  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
676    ac_prev=prefix ;;
677  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
678    prefix=$ac_optarg ;;
679
680  -program-prefix | --program-prefix | --program-prefi | --program-pref \
681  | --program-pre | --program-pr | --program-p)
682    ac_prev=program_prefix ;;
683  -program-prefix=* | --program-prefix=* | --program-prefi=* \
684  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
685    program_prefix=$ac_optarg ;;
686
687  -program-suffix | --program-suffix | --program-suffi | --program-suff \
688  | --program-suf | --program-su | --program-s)
689    ac_prev=program_suffix ;;
690  -program-suffix=* | --program-suffix=* | --program-suffi=* \
691  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
692    program_suffix=$ac_optarg ;;
693
694  -program-transform-name | --program-transform-name \
695  | --program-transform-nam | --program-transform-na \
696  | --program-transform-n | --program-transform- \
697  | --program-transform | --program-transfor \
698  | --program-transfo | --program-transf \
699  | --program-trans | --program-tran \
700  | --progr-tra | --program-tr | --program-t)
701    ac_prev=program_transform_name ;;
702  -program-transform-name=* | --program-transform-name=* \
703  | --program-transform-nam=* | --program-transform-na=* \
704  | --program-transform-n=* | --program-transform-=* \
705  | --program-transform=* | --program-transfor=* \
706  | --program-transfo=* | --program-transf=* \
707  | --program-trans=* | --program-tran=* \
708  | --progr-tra=* | --program-tr=* | --program-t=*)
709    program_transform_name=$ac_optarg ;;
710
711  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
712  | -silent | --silent | --silen | --sile | --sil)
713    silent=yes ;;
714
715  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
716    ac_prev=sbindir ;;
717  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
718  | --sbi=* | --sb=*)
719    sbindir=$ac_optarg ;;
720
721  -sharedstatedir | --sharedstatedir | --sharedstatedi \
722  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
723  | --sharedst | --shareds | --shared | --share | --shar \
724  | --sha | --sh)
725    ac_prev=sharedstatedir ;;
726  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
727  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
728  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
729  | --sha=* | --sh=*)
730    sharedstatedir=$ac_optarg ;;
731
732  -site | --site | --sit)
733    ac_prev=site ;;
734  -site=* | --site=* | --sit=*)
735    site=$ac_optarg ;;
736
737  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
738    ac_prev=srcdir ;;
739  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
740    srcdir=$ac_optarg ;;
741
742  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
743  | --syscon | --sysco | --sysc | --sys | --sy)
744    ac_prev=sysconfdir ;;
745  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
746  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
747    sysconfdir=$ac_optarg ;;
748
749  -target | --target | --targe | --targ | --tar | --ta | --t)
750    ac_prev=target_alias ;;
751  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
752    target_alias=$ac_optarg ;;
753
754  -v | -verbose | --verbose | --verbos | --verbo | --verb)
755    verbose=yes ;;
756
757  -version | --version | --versio | --versi | --vers | -V)
758    ac_init_version=: ;;
759
760  -with-* | --with-*)
761    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
762    # Reject names that are not valid shell variable names.
763    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764      { echo "$as_me: error: invalid package name: $ac_package" >&2
765   { (exit 1); exit 1; }; }
766    ac_package=`echo $ac_package| sed 's/-/_/g'`
767    case $ac_option in
768      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
769      *) ac_optarg=yes ;;
770    esac
771    eval "with_$ac_package='$ac_optarg'" ;;
772
773  -without-* | --without-*)
774    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
775    # Reject names that are not valid shell variable names.
776    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
777      { echo "$as_me: error: invalid package name: $ac_package" >&2
778   { (exit 1); exit 1; }; }
779    ac_package=`echo $ac_package | sed 's/-/_/g'`
780    eval "with_$ac_package=no" ;;
781
782  --x)
783    # Obsolete; use --with-x.
784    with_x=yes ;;
785
786  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
787  | --x-incl | --x-inc | --x-in | --x-i)
788    ac_prev=x_includes ;;
789  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
790  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
791    x_includes=$ac_optarg ;;
792
793  -x-libraries | --x-libraries | --x-librarie | --x-librari \
794  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
795    ac_prev=x_libraries ;;
796  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
797  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
798    x_libraries=$ac_optarg ;;
799
800  -*) { echo "$as_me: error: unrecognized option: $ac_option
801Try \`$0 --help' for more information." >&2
802   { (exit 1); exit 1; }; }
803    ;;
804
805  *=*)
806    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
807    # Reject names that are not valid shell variable names.
808    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
809      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
810   { (exit 1); exit 1; }; }
811    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
812    eval "$ac_envvar='$ac_optarg'"
813    export $ac_envvar ;;
814
815  *)
816    # FIXME: should be removed in autoconf 3.0.
817    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
818    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
820    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
821    ;;
822
823  esac
824done
825
826if test -n "$ac_prev"; then
827  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
828  { echo "$as_me: error: missing argument to $ac_option" >&2
829   { (exit 1); exit 1; }; }
830fi
831
832# Be sure to have absolute paths.
833for ac_var in exec_prefix prefix
834do
835  eval ac_val=$`echo $ac_var`
836  case $ac_val in
837    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
838    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
839   { (exit 1); exit 1; }; };;
840  esac
841done
842
843# Be sure to have absolute paths.
844for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
845              localstatedir libdir includedir oldincludedir infodir mandir
846do
847  eval ac_val=$`echo $ac_var`
848  case $ac_val in
849    [\\/$]* | ?:[\\/]* ) ;;
850    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
851   { (exit 1); exit 1; }; };;
852  esac
853done
854
855# There might be people who depend on the old broken behavior: `$host'
856# used to hold the argument of --host etc.
857# FIXME: To remove some day.
858build=$build_alias
859host=$host_alias
860target=$target_alias
861
862# FIXME: To remove some day.
863if test "x$host_alias" != x; then
864  if test "x$build_alias" = x; then
865    cross_compiling=maybe
866    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
867    If a cross compiler is detected then cross compile mode will be used." >&2
868  elif test "x$build_alias" != "x$host_alias"; then
869    cross_compiling=yes
870  fi
871fi
872
873ac_tool_prefix=
874test -n "$host_alias" && ac_tool_prefix=$host_alias-
875
876test "$silent" = yes && exec 6>/dev/null
877
878
879# Find the source files, if location was not specified.
880if test -z "$srcdir"; then
881  ac_srcdir_defaulted=yes
882  # Try the directory containing this script, then its parent.
883  ac_confdir=`(dirname "$0") 2>/dev/null ||
884$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
885         X"$0" : 'X\(//\)[^/]' \| \
886         X"$0" : 'X\(//\)$' \| \
887         X"$0" : 'X\(/\)' \| \
888         .     : '\(.\)' 2>/dev/null ||
889echo X"$0" |
890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
891          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
892          /^X\(\/\/\)$/{ s//\1/; q; }
893          /^X\(\/\).*/{ s//\1/; q; }
894          s/.*/./; q'`
895  srcdir=$ac_confdir
896  if test ! -r $srcdir/$ac_unique_file; then
897    srcdir=..
898  fi
899else
900  ac_srcdir_defaulted=no
901fi
902if test ! -r $srcdir/$ac_unique_file; then
903  if test "$ac_srcdir_defaulted" = yes; then
904    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
905   { (exit 1); exit 1; }; }
906  else
907    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
908   { (exit 1); exit 1; }; }
909  fi
910fi
911(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
912  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
913   { (exit 1); exit 1; }; }
914srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
915ac_env_build_alias_set=${build_alias+set}
916ac_env_build_alias_value=$build_alias
917ac_cv_env_build_alias_set=${build_alias+set}
918ac_cv_env_build_alias_value=$build_alias
919ac_env_host_alias_set=${host_alias+set}
920ac_env_host_alias_value=$host_alias
921ac_cv_env_host_alias_set=${host_alias+set}
922ac_cv_env_host_alias_value=$host_alias
923ac_env_target_alias_set=${target_alias+set}
924ac_env_target_alias_value=$target_alias
925ac_cv_env_target_alias_set=${target_alias+set}
926ac_cv_env_target_alias_value=$target_alias
927ac_env_CDEFS_set=${CDEFS+set}
928ac_env_CDEFS_value=$CDEFS
929ac_cv_env_CDEFS_set=${CDEFS+set}
930ac_cv_env_CDEFS_value=$CDEFS
931ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
932ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
933ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
934ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
935ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
936ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
937ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
938ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
939ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
940ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
941ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
942ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
943ac_env_CC_set=${CC+set}
944ac_env_CC_value=$CC
945ac_cv_env_CC_set=${CC+set}
946ac_cv_env_CC_value=$CC
947ac_env_CFLAGS_set=${CFLAGS+set}
948ac_env_CFLAGS_value=$CFLAGS
949ac_cv_env_CFLAGS_set=${CFLAGS+set}
950ac_cv_env_CFLAGS_value=$CFLAGS
951ac_env_LDFLAGS_set=${LDFLAGS+set}
952ac_env_LDFLAGS_value=$LDFLAGS
953ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
954ac_cv_env_LDFLAGS_value=$LDFLAGS
955ac_env_CPPFLAGS_set=${CPPFLAGS+set}
956ac_env_CPPFLAGS_value=$CPPFLAGS
957ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
958ac_cv_env_CPPFLAGS_value=$CPPFLAGS
959ac_env_MPICC_set=${MPICC+set}
960ac_env_MPICC_value=$MPICC
961ac_cv_env_MPICC_set=${MPICC+set}
962ac_cv_env_MPICC_value=$MPICC
963ac_env_CXXDEFS_set=${CXXDEFS+set}
964ac_env_CXXDEFS_value=$CXXDEFS
965ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
966ac_cv_env_CXXDEFS_value=$CXXDEFS
967ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
968ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
969ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
970ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
971ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
972ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
973ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
974ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
975ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
976ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
977ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
978ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
979ac_env_CXX_set=${CXX+set}
980ac_env_CXX_value=$CXX
981ac_cv_env_CXX_set=${CXX+set}
982ac_cv_env_CXX_value=$CXX
983ac_env_CXXFLAGS_set=${CXXFLAGS+set}
984ac_env_CXXFLAGS_value=$CXXFLAGS
985ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
986ac_cv_env_CXXFLAGS_value=$CXXFLAGS
987ac_env_MPICXX_set=${MPICXX+set}
988ac_env_MPICXX_value=$MPICXX
989ac_cv_env_MPICXX_set=${MPICXX+set}
990ac_cv_env_MPICXX_value=$MPICXX
991ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
992ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
993ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
994ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
995ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
996ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
997ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
998ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
999ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1000ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1001ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1002ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1003ac_env_F77_set=${F77+set}
1004ac_env_F77_value=$F77
1005ac_cv_env_F77_set=${F77+set}
1006ac_cv_env_F77_value=$F77
1007ac_env_FFLAGS_set=${FFLAGS+set}
1008ac_env_FFLAGS_value=$FFLAGS
1009ac_cv_env_FFLAGS_set=${FFLAGS+set}
1010ac_cv_env_FFLAGS_value=$FFLAGS
1011ac_env_MPIF77_set=${MPIF77+set}
1012ac_env_MPIF77_value=$MPIF77
1013ac_cv_env_MPIF77_set=${MPIF77+set}
1014ac_cv_env_MPIF77_value=$MPIF77
1015ac_env_CPP_set=${CPP+set}
1016ac_env_CPP_value=$CPP
1017ac_cv_env_CPP_set=${CPP+set}
1018ac_cv_env_CPP_value=$CPP
1019ac_env_CXXCPP_set=${CXXCPP+set}
1020ac_env_CXXCPP_value=$CXXCPP
1021ac_cv_env_CXXCPP_set=${CXXCPP+set}
1022ac_cv_env_CXXCPP_value=$CXXCPP
1023ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1024ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1025ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1026ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1027
1028#
1029# Report the --help message.
1030#
1031if test "$ac_init_help" = "long"; then
1032  # Omit some internal or obsolete options to make the list less imposing.
1033  # This message is too long to be a string in the A/UX 3.1 sh.
1034  cat <<_ACEOF
1035\`configure' configures Cbc 0.1 to adapt to many kinds of systems.
1036
1037Usage: $0 [OPTION]... [VAR=VALUE]...
1038
1039To assign environment variables (e.g., CC, CFLAGS...), specify them as
1040VAR=VALUE.  See below for descriptions of some of the useful variables.
1041
1042Defaults for the options are specified in brackets.
1043
1044Configuration:
1045  -h, --help              display this help and exit
1046      --help=short        display options specific to this package
1047      --help=recursive    display the short help of all the included packages
1048  -V, --version           display version information and exit
1049  -q, --quiet, --silent   do not print \`checking...' messages
1050      --cache-file=FILE   cache test results in FILE [disabled]
1051  -C, --config-cache      alias for \`--cache-file=config.cache'
1052  -n, --no-create         do not create output files
1053      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1054
1055_ACEOF
1056
1057  cat <<_ACEOF
1058Installation directories:
1059  --prefix=PREFIX         install architecture-independent files in PREFIX
1060                          [$ac_default_prefix]
1061  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1062                          [PREFIX]
1063
1064By default, \`make install' will install all the files in
1065\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1066an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1067for instance \`--prefix=\$HOME'.
1068
1069For better control, use the options below.
1070
1071Fine tuning of the installation directories:
1072  --bindir=DIR           user executables [EPREFIX/bin]
1073  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1074  --libexecdir=DIR       program executables [EPREFIX/libexec]
1075  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1076  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1077  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1078  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1079  --libdir=DIR           object code libraries [EPREFIX/lib]
1080  --includedir=DIR       C header files [PREFIX/include]
1081  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1082  --infodir=DIR          info documentation [PREFIX/info]
1083  --mandir=DIR           man documentation [PREFIX/man]
1084_ACEOF
1085
1086  cat <<\_ACEOF
1087
1088Program names:
1089  --program-prefix=PREFIX            prepend PREFIX to installed program names
1090  --program-suffix=SUFFIX            append SUFFIX to installed program names
1091  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1092
1093System types:
1094  --build=BUILD     configure for building on BUILD [guessed]
1095  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1096_ACEOF
1097fi
1098
1099if test -n "$ac_init_help"; then
1100  case $ac_init_help in
1101     short | recursive ) echo "Configuration of Cbc 0.1:";;
1102   esac
1103  cat <<\_ACEOF
1104
1105Optional Features:
1106  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1107  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1108  --enable-debug          compile all projects with debug options tests
1109  --enable-doscompile     Under Cygwin, compile so that executables run under
1110                          DOS. Set to mingw to use gcc/g++/ld with
1111                          -mno-cygwin. Set to msvc to use cl/link. Default
1112                          when mentioned: mingw. Default when not mentioned:
1113                          disabled.
1114  --enable-static[=PKGS]
1115                          build static libraries [default=no]
1116  --disable-dependency-tracking  speeds up one-time build
1117  --enable-dependency-tracking   do not reject slow dependency extractors
1118  --enable-maintainer-mode  enable make rules and dependencies not useful
1119                          (and sometimes confusing) to the casual installer
1120  --enable-shared[=PKGS]
1121                          build shared libraries [default=yes]
1122  --enable-fast-install[=PKGS]
1123                          optimize for fast installation [default=yes]
1124  --disable-libtool-lock  avoid locking (might break parallel builds)
1125
1126Optional Packages:
1127  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1128  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1129  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1130  --with-pic              try to use only PIC/non-PIC objects [default=use
1131                          both]
1132  --with-tags[=TAGS]
1133                          include additional configurations [automatic]
1134
1135Some influential environment variables:
1136  CDEFS       Additional -D flags to be used when compiling C code.
1137  ADD_CFLAGS  Additional C compiler options
1138  DBG_CFLAGS  Debug C compiler options
1139  OPT_CFLAGS  Optimize C compiler options
1140  CC          C compiler command
1141  CFLAGS      C compiler flags
1142  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1143              nonstandard directory <lib dir>
1144  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1145              headers in a nonstandard directory <include dir>
1146  MPICC       C MPI Compiler
1147  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1148  ADD_CXXFLAGS
1149              Additional C++ compiler options
1150  DBG_CXXFLAGS
1151              Debug C++ compiler options
1152  OPT_CXXFLAGS
1153              Optimize C++ compiler options
1154  CXX         C++ compiler command
1155  CXXFLAGS    C++ compiler flags
1156  MPICXX      C++ MPI Compiler
1157  ADD_FFLAGS  Additional Fortran compiler options
1158  DBG_FFLAGS  Debug Fortran compiler options
1159  OPT_FFLAGS  Optimize Fortran compiler options
1160  F77         Fortran 77 compiler command
1161  FFLAGS      Fortran 77 compiler flags
1162  MPIF77      Fortran MPI Compiler
1163  CPP         C preprocessor
1164  CXXCPP      C++ preprocessor
1165  COIN_SKIP_PROJECTS
1166              Set to the subdirectories of projects that should be skipped in
1167              the configuration
1168
1169Use these variables to override the choices made by `configure' or to help
1170it to find libraries and programs with nonstandard names/locations.
1171
1172Report bugs to <coin-cbc@lists.coin-or.org>.
1173_ACEOF
1174fi
1175
1176if test "$ac_init_help" = "recursive"; then
1177  # If there are subdirs, report their specific --help.
1178  ac_popdir=`pwd`
1179  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1180    test -d $ac_dir || continue
1181    ac_builddir=.
1182
1183if test "$ac_dir" != .; then
1184  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1185  # A "../" for each directory in $ac_dir_suffix.
1186  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1187else
1188  ac_dir_suffix= ac_top_builddir=
1189fi
1190
1191case $srcdir in
1192  .)  # No --srcdir option.  We are building in place.
1193    ac_srcdir=.
1194    if test -z "$ac_top_builddir"; then
1195       ac_top_srcdir=.
1196    else
1197       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1198    fi ;;
1199  [\\/]* | ?:[\\/]* )  # Absolute path.
1200    ac_srcdir=$srcdir$ac_dir_suffix;
1201    ac_top_srcdir=$srcdir ;;
1202  *) # Relative path.
1203    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1204    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1205esac
1206
1207# Do not use `cd foo && pwd` to compute absolute paths, because
1208# the directories may not exist.
1209case `pwd` in
1210.) ac_abs_builddir="$ac_dir";;
1211*)
1212  case "$ac_dir" in
1213  .) ac_abs_builddir=`pwd`;;
1214  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1215  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1216  esac;;
1217esac
1218case $ac_abs_builddir in
1219.) ac_abs_top_builddir=${ac_top_builddir}.;;
1220*)
1221  case ${ac_top_builddir}. in
1222  .) ac_abs_top_builddir=$ac_abs_builddir;;
1223  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1224  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1225  esac;;
1226esac
1227case $ac_abs_builddir in
1228.) ac_abs_srcdir=$ac_srcdir;;
1229*)
1230  case $ac_srcdir in
1231  .) ac_abs_srcdir=$ac_abs_builddir;;
1232  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1233  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1234  esac;;
1235esac
1236case $ac_abs_builddir in
1237.) ac_abs_top_srcdir=$ac_top_srcdir;;
1238*)
1239  case $ac_top_srcdir in
1240  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1241  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1242  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1243  esac;;
1244esac
1245
1246    cd $ac_dir
1247    # Check for guested configure; otherwise get Cygnus style configure.
1248    if test -f $ac_srcdir/configure.gnu; then
1249      echo
1250      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1251    elif test -f $ac_srcdir/configure; then
1252      echo
1253      $SHELL $ac_srcdir/configure  --help=recursive
1254    elif test -f $ac_srcdir/configure.ac ||
1255           test -f $ac_srcdir/configure.in; then
1256      echo
1257      $ac_configure --help
1258    else
1259      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1260    fi
1261    cd $ac_popdir
1262  done
1263fi
1264
1265test -n "$ac_init_help" && exit 0
1266if $ac_init_version; then
1267  cat <<\_ACEOF
1268Cbc configure 0.1
1269generated by GNU Autoconf 2.59
1270
1271Copyright (C) 2003 Free Software Foundation, Inc.
1272This configure script is free software; the Free Software Foundation
1273gives unlimited permission to copy, distribute and modify it.
1274
1275
1276Copyright 2006 International Business Machines and others.
1277All Rights Reserved.
1278This file is part of the open source package Coin which is distributed
1279under the Common Public License.
1280_ACEOF
1281  exit 0
1282fi
1283exec 5>config.log
1284cat >&5 <<_ACEOF
1285This file contains any messages produced by compilers while
1286running configure, to aid debugging if configure makes a mistake.
1287
1288It was created by Cbc $as_me 0.1, which was
1289generated by GNU Autoconf 2.59.  Invocation command line was
1290
1291  $ $0 $@
1292
1293_ACEOF
1294{
1295cat <<_ASUNAME
1296## --------- ##
1297## Platform. ##
1298## --------- ##
1299
1300hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1301uname -m = `(uname -m) 2>/dev/null || echo unknown`
1302uname -r = `(uname -r) 2>/dev/null || echo unknown`
1303uname -s = `(uname -s) 2>/dev/null || echo unknown`
1304uname -v = `(uname -v) 2>/dev/null || echo unknown`
1305
1306/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1307/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1308
1309/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1310/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1311/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1312hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1313/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1314/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1315/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1316
1317_ASUNAME
1318
1319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1320for as_dir in $PATH
1321do
1322  IFS=$as_save_IFS
1323  test -z "$as_dir" && as_dir=.
1324  echo "PATH: $as_dir"
1325done
1326
1327} >&5
1328
1329cat >&5 <<_ACEOF
1330
1331
1332## ----------- ##
1333## Core tests. ##
1334## ----------- ##
1335
1336_ACEOF
1337
1338
1339# Keep a trace of the command line.
1340# Strip out --no-create and --no-recursion so they do not pile up.
1341# Strip out --silent because we don't want to record it for future runs.
1342# Also quote any args containing shell meta-characters.
1343# Make two passes to allow for proper duplicate-argument suppression.
1344ac_configure_args=
1345ac_configure_args0=
1346ac_configure_args1=
1347ac_sep=
1348ac_must_keep_next=false
1349for ac_pass in 1 2
1350do
1351  for ac_arg
1352  do
1353    case $ac_arg in
1354    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1355    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1356    | -silent | --silent | --silen | --sile | --sil)
1357      continue ;;
1358    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1359      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1360    esac
1361    case $ac_pass in
1362    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1363    2)
1364      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1365      if test $ac_must_keep_next = true; then
1366        ac_must_keep_next=false # Got value, back to normal.
1367      else
1368        case $ac_arg in
1369          *=* | --config-cache | -C | -disable-* | --disable-* \
1370          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1371          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1372          | -with-* | --with-* | -without-* | --without-* | --x)
1373            case "$ac_configure_args0 " in
1374              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1375            esac
1376            ;;
1377          -* ) ac_must_keep_next=true ;;
1378        esac
1379      fi
1380      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1381      # Get rid of the leading space.
1382      ac_sep=" "
1383      ;;
1384    esac
1385  done
1386done
1387$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1388$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1389
1390# When interrupted or exit'd, cleanup temporary files, and complete
1391# config.log.  We remove comments because anyway the quotes in there
1392# would cause problems or look ugly.
1393# WARNING: Be sure not to use single quotes in there, as some shells,
1394# such as our DU 5.0 friend, will then `close' the trap.
1395trap 'exit_status=$?
1396  # Save into config.log some information that might help in debugging.
1397  {
1398    echo
1399
1400    cat <<\_ASBOX
1401## ---------------- ##
1402## Cache variables. ##
1403## ---------------- ##
1404_ASBOX
1405    echo
1406    # The following way of writing the cache mishandles newlines in values,
1407{
1408  (set) 2>&1 |
1409    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1410    *ac_space=\ *)
1411      sed -n \
1412        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1413          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1414      ;;
1415    *)
1416      sed -n \
1417        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1418      ;;
1419    esac;
1420}
1421    echo
1422
1423    cat <<\_ASBOX
1424## ----------------- ##
1425## Output variables. ##
1426## ----------------- ##
1427_ASBOX
1428    echo
1429    for ac_var in $ac_subst_vars
1430    do
1431      eval ac_val=$`echo $ac_var`
1432      echo "$ac_var='"'"'$ac_val'"'"'"
1433    done | sort
1434    echo
1435
1436    if test -n "$ac_subst_files"; then
1437      cat <<\_ASBOX
1438## ------------- ##
1439## Output files. ##
1440## ------------- ##
1441_ASBOX
1442      echo
1443      for ac_var in $ac_subst_files
1444      do
1445        eval ac_val=$`echo $ac_var`
1446        echo "$ac_var='"'"'$ac_val'"'"'"
1447      done | sort
1448      echo
1449    fi
1450
1451    if test -s confdefs.h; then
1452      cat <<\_ASBOX
1453## ----------- ##
1454## confdefs.h. ##
1455## ----------- ##
1456_ASBOX
1457      echo
1458      sed "/^$/d" confdefs.h | sort
1459      echo
1460    fi
1461    test "$ac_signal" != 0 &&
1462      echo "$as_me: caught signal $ac_signal"
1463    echo "$as_me: exit $exit_status"
1464  } >&5
1465  rm -f core *.core &&
1466  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1467    exit $exit_status
1468     ' 0
1469for ac_signal in 1 2 13 15; do
1470  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1471done
1472ac_signal=0
1473
1474# confdefs.h avoids OS command line length limits that DEFS can exceed.
1475rm -rf conftest* confdefs.h
1476# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1477echo >confdefs.h
1478
1479# Predefined preprocessor variables.
1480
1481cat >>confdefs.h <<_ACEOF
1482#define PACKAGE_NAME "$PACKAGE_NAME"
1483_ACEOF
1484
1485
1486cat >>confdefs.h <<_ACEOF
1487#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1488_ACEOF
1489
1490
1491cat >>confdefs.h <<_ACEOF
1492#define PACKAGE_VERSION "$PACKAGE_VERSION"
1493_ACEOF
1494
1495
1496cat >>confdefs.h <<_ACEOF
1497#define PACKAGE_STRING "$PACKAGE_STRING"
1498_ACEOF
1499
1500
1501cat >>confdefs.h <<_ACEOF
1502#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1503_ACEOF
1504
1505
1506# Let the site file select an alternate cache file if it wants to.
1507# Prefer explicitly selected file to automatically selected ones.
1508if test -z "$CONFIG_SITE"; then
1509  if test "x$prefix" != xNONE; then
1510    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1511  else
1512    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1513  fi
1514fi
1515for ac_site_file in $CONFIG_SITE; do
1516  if test -r "$ac_site_file"; then
1517    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1518echo "$as_me: loading site script $ac_site_file" >&6;}
1519    sed 's/^/| /' "$ac_site_file" >&5
1520    . "$ac_site_file"
1521  fi
1522done
1523
1524if test -r "$cache_file"; then
1525  # Some versions of bash will fail to source /dev/null (special
1526  # files actually), so we avoid doing that.
1527  if test -f "$cache_file"; then
1528    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1529echo "$as_me: loading cache $cache_file" >&6;}
1530    case $cache_file in
1531      [\\/]* | ?:[\\/]* ) . $cache_file;;
1532      *)                      . ./$cache_file;;
1533    esac
1534  fi
1535else
1536  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1537echo "$as_me: creating cache $cache_file" >&6;}
1538  >$cache_file
1539fi
1540
1541# Check that the precious variables saved in the cache have kept the same
1542# value.
1543ac_cache_corrupted=false
1544for ac_var in `(set) 2>&1 |
1545               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1546  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1547  eval ac_new_set=\$ac_env_${ac_var}_set
1548  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1549  eval ac_new_val="\$ac_env_${ac_var}_value"
1550  case $ac_old_set,$ac_new_set in
1551    set,)
1552      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1553echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1554      ac_cache_corrupted=: ;;
1555    ,set)
1556      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1557echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1558      ac_cache_corrupted=: ;;
1559    ,);;
1560    *)
1561      if test "x$ac_old_val" != "x$ac_new_val"; then
1562        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1563echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1564        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1565echo "$as_me:   former value:  $ac_old_val" >&2;}
1566        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1567echo "$as_me:   current value: $ac_new_val" >&2;}
1568        ac_cache_corrupted=:
1569      fi;;
1570  esac
1571  # Pass precious variables to config.status.
1572  if test "$ac_new_set" = set; then
1573    case $ac_new_val in
1574    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1575      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1576    *) ac_arg=$ac_var=$ac_new_val ;;
1577    esac
1578    case " $ac_configure_args " in
1579      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1580      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1581    esac
1582  fi
1583done
1584if $ac_cache_corrupted; then
1585  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1586echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1587  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1588echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1589   { (exit 1); exit 1; }; }
1590fi
1591
1592ac_ext=c
1593ac_cpp='$CPP $CPPFLAGS'
1594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1596ac_compiler_gnu=$ac_cv_c_compiler_gnu
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629# List one file in the package so that the configure script can test
1630# whether the package is actually there
1631
1632
1633# Where should everything be installed by default?  Here, we want it
1634# to be installed directly in 'bin', 'lib', 'include' subdirectories
1635# of the directory where configure is run.  The default would be
1636# /usr/local.
1637
1638
1639#############################################################################
1640#              Create the libtool script for the subdirectories             #
1641#############################################################################
1642
1643ac_aux_dir=
1644for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1645  if test -f $ac_dir/install-sh; then
1646    ac_aux_dir=$ac_dir
1647    ac_install_sh="$ac_aux_dir/install-sh -c"
1648    break
1649  elif test -f $ac_dir/install.sh; then
1650    ac_aux_dir=$ac_dir
1651    ac_install_sh="$ac_aux_dir/install.sh -c"
1652    break
1653  elif test -f $ac_dir/shtool; then
1654    ac_aux_dir=$ac_dir
1655    ac_install_sh="$ac_aux_dir/shtool install -c"
1656    break
1657  fi
1658done
1659if test -z "$ac_aux_dir"; then
1660  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1661echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1662   { (exit 1); exit 1; }; }
1663fi
1664ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1665ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1666ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1667
1668# Make sure we can run config.sub.
1669$ac_config_sub sun4 >/dev/null 2>&1 ||
1670  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1671echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1672   { (exit 1); exit 1; }; }
1673
1674echo "$as_me:$LINENO: checking build system type" >&5
1675echo $ECHO_N "checking build system type... $ECHO_C" >&6
1676if test "${ac_cv_build+set}" = set; then
1677  echo $ECHO_N "(cached) $ECHO_C" >&6
1678else
1679  ac_cv_build_alias=$build_alias
1680test -z "$ac_cv_build_alias" &&
1681  ac_cv_build_alias=`$ac_config_guess`
1682test -z "$ac_cv_build_alias" &&
1683  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1684echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1685   { (exit 1); exit 1; }; }
1686ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1687  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1688echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1689   { (exit 1); exit 1; }; }
1690
1691fi
1692echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1693echo "${ECHO_T}$ac_cv_build" >&6
1694build=$ac_cv_build
1695build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1696build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1697build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1698
1699
1700
1701# Check if user wants to produce debugging code
1702
1703echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1704echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1705
1706# Check whether --enable-debug or --disable-debug was given.
1707if test "${enable_debug+set}" = set; then
1708  enableval="$enable_debug"
1709  case "${enableval}" in
1710   yes) coin_debug_compile=true
1711        enable_shared=no
1712        ;;
1713   no)  coin_debug_compile=false
1714        ;;
1715   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1716echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1717   { (exit 1); exit 1; }; }
1718        ;;
1719esac
1720else
1721  coin_debug_compile=false
1722fi;
1723
1724 # m4_ifvaln([],
1725
1726if test $coin_debug_compile = true; then
1727  echo "$as_me:$LINENO: result: yes" >&5
1728echo "${ECHO_T}yes" >&6
1729else
1730  echo "$as_me:$LINENO: result: no" >&5
1731echo "${ECHO_T}no" >&6
1732fi
1733
1734 # m4_ifvaln([],
1735
1736
1737
1738# Get the name of the C compiler and appropriate compiler options
1739case $build in
1740  *-mingw*)
1741    if test "${LD+set}" = set; then :; else
1742      LD=link
1743    fi
1744    ;;
1745 esac
1746 case $enable_doscompile in
1747   msvc)
1748     if test "x${LD+set}" = xset; then :; else
1749       LD=link
1750     fi
1751     ;;
1752 esac
1753
1754
1755 # Check whether --enable-doscompile or --disable-doscompile was given.
1756if test "${enable_doscompile+set}" = set; then
1757  enableval="$enable_doscompile"
1758  if test "$enable_doscompile" != no; then
1759     case $build in
1760       *-cygwin*) ;;
1761       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1762echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1763   { (exit 1); exit 1; }; } ;;
1764     esac
1765   fi
1766else
1767  enable_doscompile=no
1768fi;
1769 case "$enable_doscompile" in
1770   msvc|mingw|no) ;;
1771   yes) enable_doscompile=mingw ;;
1772   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1773                    Try configure --help=recursive." >&5
1774echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1775                    Try configure --help=recursive." >&2;}
1776   { (exit 1); exit 1; }; }
1777      ;;
1778  esac
1779  if test "$enable_doscompile" != no ; then
1780    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1781echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1782  fi
1783
1784
1785
1786
1787ac_ext=c
1788ac_cpp='$CPP $CPPFLAGS'
1789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1791ac_compiler_gnu=$ac_cv_c_compiler_gnu
1792
1793
1794# For consistency, we set the C compiler to the same value of the C++
1795# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1796if test x"$CXX" != x; then
1797  case "$CXX" in
1798    cl* | */cl* | CL* | */CL*)
1799      if test x"$CC" = x; then
1800        CC="$CXX"
1801        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1802echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1803      fi
1804      ;;
1805  esac
1806fi
1807
1808
1809
1810
1811
1812
1813coin_has_cc=yes
1814
1815save_cflags="$CFLAGS"
1816# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1817# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1818# is likely to be a non-functional shell. But many installations will have
1819# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1820case $build in
1821  *-cygwin* | *-mingw*)
1822             if test "$enable_doscompile" = msvc ; then
1823               comps="cl"
1824             else
1825               comps="gcc cl"
1826             fi ;;
1827  sparc-sun-solaris*)
1828             comps="cc xlc gcc pgcc icc" ;;
1829  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1830  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1831esac
1832
1833# We delete the cached value, since the test might not have been
1834# performed with our choice of compilers earlier
1835$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1836# AC_MSG_NOTICE([C compiler candidates: $comps])
1837ac_ext=c
1838ac_cpp='$CPP $CPPFLAGS'
1839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1841ac_compiler_gnu=$ac_cv_c_compiler_gnu
1842if test -n "$ac_tool_prefix"; then
1843  for ac_prog in $comps
1844  do
1845    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1846set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1847echo "$as_me:$LINENO: checking for $ac_word" >&5
1848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1849if test "${ac_cv_prog_CC+set}" = set; then
1850  echo $ECHO_N "(cached) $ECHO_C" >&6
1851else
1852  if test -n "$CC"; then
1853  ac_cv_prog_CC="$CC" # Let the user override the test.
1854else
1855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856for as_dir in $PATH
1857do
1858  IFS=$as_save_IFS
1859  test -z "$as_dir" && as_dir=.
1860  for ac_exec_ext in '' $ac_executable_extensions; do
1861  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1862    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1863    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864    break 2
1865  fi
1866done
1867done
1868
1869fi
1870fi
1871CC=$ac_cv_prog_CC
1872if test -n "$CC"; then
1873  echo "$as_me:$LINENO: result: $CC" >&5
1874echo "${ECHO_T}$CC" >&6
1875else
1876  echo "$as_me:$LINENO: result: no" >&5
1877echo "${ECHO_T}no" >&6
1878fi
1879
1880    test -n "$CC" && break
1881  done
1882fi
1883if test -z "$CC"; then
1884  ac_ct_CC=$CC
1885  for ac_prog in $comps
1886do
1887  # Extract the first word of "$ac_prog", so it can be a program name with args.
1888set dummy $ac_prog; ac_word=$2
1889echo "$as_me:$LINENO: checking for $ac_word" >&5
1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892  echo $ECHO_N "(cached) $ECHO_C" >&6
1893else
1894  if test -n "$ac_ct_CC"; then
1895  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896else
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900  IFS=$as_save_IFS
1901  test -z "$as_dir" && as_dir=.
1902  for ac_exec_ext in '' $ac_executable_extensions; do
1903  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904    ac_cv_prog_ac_ct_CC="$ac_prog"
1905    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906    break 2
1907  fi
1908done
1909done
1910
1911fi
1912fi
1913ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914if test -n "$ac_ct_CC"; then
1915  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916echo "${ECHO_T}$ac_ct_CC" >&6
1917else
1918  echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
1920fi
1921
1922  test -n "$ac_ct_CC" && break
1923done
1924
1925  CC=$ac_ct_CC
1926fi
1927
1928
1929test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1930See \`config.log' for more details." >&5
1931echo "$as_me: error: no acceptable C compiler found in \$PATH
1932See \`config.log' for more details." >&2;}
1933   { (exit 1); exit 1; }; }
1934
1935# Provide some information about the compiler.
1936echo "$as_me:$LINENO:" \
1937     "checking for C compiler version" >&5
1938ac_compiler=`set X $ac_compile; echo $2`
1939{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1940  (eval $ac_compiler --version </dev/null >&5) 2>&5
1941  ac_status=$?
1942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943  (exit $ac_status); }
1944{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1945  (eval $ac_compiler -v </dev/null >&5) 2>&5
1946  ac_status=$?
1947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1948  (exit $ac_status); }
1949{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1950  (eval $ac_compiler -V </dev/null >&5) 2>&5
1951  ac_status=$?
1952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953  (exit $ac_status); }
1954
1955cat >conftest.$ac_ext <<_ACEOF
1956/* confdefs.h.  */
1957_ACEOF
1958cat confdefs.h >>conftest.$ac_ext
1959cat >>conftest.$ac_ext <<_ACEOF
1960/* end confdefs.h.  */
1961
1962int
1963main ()
1964{
1965
1966  ;
1967  return 0;
1968}
1969_ACEOF
1970ac_clean_files_save=$ac_clean_files
1971ac_clean_files="$ac_clean_files a.out a.exe b.out"
1972# Try to create an executable without -o first, disregard a.out.
1973# It will help us diagnose broken compilers, and finding out an intuition
1974# of exeext.
1975echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1976echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1977ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1978if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1979  (eval $ac_link_default) 2>&5
1980  ac_status=$?
1981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982  (exit $ac_status); }; then
1983  # Find the output, starting from the most likely.  This scheme is
1984# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1985# resort.
1986
1987# Be careful to initialize this variable, since it used to be cached.
1988# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1989ac_cv_exeext=
1990# b.out is created by i960 compilers.
1991for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1992do
1993  test -f "$ac_file" || continue
1994  case $ac_file in
1995    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1996        ;;
1997    conftest.$ac_ext )
1998        # This is the source file.
1999        ;;
2000    [ab].out )
2001        # We found the default executable, but exeext='' is most
2002        # certainly right.
2003        break;;
2004    *.* )
2005        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2006        # FIXME: I believe we export ac_cv_exeext for Libtool,
2007        # but it would be cool to find out if it's true.  Does anybody
2008        # maintain Libtool? --akim.
2009        export ac_cv_exeext
2010        break;;
2011    * )
2012        break;;
2013  esac
2014done
2015else
2016  echo "$as_me: failed program was:" >&5
2017sed 's/^/| /' conftest.$ac_ext >&5
2018
2019{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2020See \`config.log' for more details." >&5
2021echo "$as_me: error: C compiler cannot create executables
2022See \`config.log' for more details." >&2;}
2023   { (exit 77); exit 77; }; }
2024fi
2025
2026ac_exeext=$ac_cv_exeext
2027echo "$as_me:$LINENO: result: $ac_file" >&5
2028echo "${ECHO_T}$ac_file" >&6
2029
2030# Check the compiler produces executables we can run.  If not, either
2031# the compiler is broken, or we cross compile.
2032echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2033echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2034# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2035# If not cross compiling, check that we can run a simple program.
2036if test "$cross_compiling" != yes; then
2037  if { ac_try='./$ac_file'
2038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2039  (eval $ac_try) 2>&5
2040  ac_status=$?
2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042  (exit $ac_status); }; }; then
2043    cross_compiling=no
2044  else
2045    if test "$cross_compiling" = maybe; then
2046        cross_compiling=yes
2047    else
2048        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2049If you meant to cross compile, use \`--host'.
2050See \`config.log' for more details." >&5
2051echo "$as_me: error: cannot run C compiled programs.
2052If you meant to cross compile, use \`--host'.
2053See \`config.log' for more details." >&2;}
2054   { (exit 1); exit 1; }; }
2055    fi
2056  fi
2057fi
2058echo "$as_me:$LINENO: result: yes" >&5
2059echo "${ECHO_T}yes" >&6
2060
2061rm -f a.out a.exe conftest$ac_cv_exeext b.out
2062ac_clean_files=$ac_clean_files_save
2063# Check the compiler produces executables we can run.  If not, either
2064# the compiler is broken, or we cross compile.
2065echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2066echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2067echo "$as_me:$LINENO: result: $cross_compiling" >&5
2068echo "${ECHO_T}$cross_compiling" >&6
2069
2070echo "$as_me:$LINENO: checking for suffix of executables" >&5
2071echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2073  (eval $ac_link) 2>&5
2074  ac_status=$?
2075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076  (exit $ac_status); }; then
2077  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2078# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2079# work properly (i.e., refer to `conftest.exe'), while it won't with
2080# `rm'.
2081for ac_file in conftest.exe conftest conftest.*; do
2082  test -f "$ac_file" || continue
2083  case $ac_file in
2084    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2085    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2086          export ac_cv_exeext
2087          break;;
2088    * ) break;;
2089  esac
2090done
2091else
2092  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2093See \`config.log' for more details." >&5
2094echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2095See \`config.log' for more details." >&2;}
2096   { (exit 1); exit 1; }; }
2097fi
2098
2099rm -f conftest$ac_cv_exeext
2100echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2101echo "${ECHO_T}$ac_cv_exeext" >&6
2102
2103rm -f conftest.$ac_ext
2104EXEEXT=$ac_cv_exeext
2105ac_exeext=$EXEEXT
2106echo "$as_me:$LINENO: checking for suffix of object files" >&5
2107echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2108if test "${ac_cv_objext+set}" = set; then
2109  echo $ECHO_N "(cached) $ECHO_C" >&6
2110else
2111  cat >conftest.$ac_ext <<_ACEOF
2112/* confdefs.h.  */
2113_ACEOF
2114cat confdefs.h >>conftest.$ac_ext
2115cat >>conftest.$ac_ext <<_ACEOF
2116/* end confdefs.h.  */
2117
2118int
2119main ()
2120{
2121
2122  ;
2123  return 0;
2124}
2125_ACEOF
2126rm -f conftest.o conftest.obj
2127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2128  (eval $ac_compile) 2>&5
2129  ac_status=$?
2130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131  (exit $ac_status); }; then
2132  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2133  case $ac_file in
2134    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2135    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2136       break;;
2137  esac
2138done
2139else
2140  echo "$as_me: failed program was:" >&5
2141sed 's/^/| /' conftest.$ac_ext >&5
2142
2143{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2144See \`config.log' for more details." >&5
2145echo "$as_me: error: cannot compute suffix of object files: cannot compile
2146See \`config.log' for more details." >&2;}
2147   { (exit 1); exit 1; }; }
2148fi
2149
2150rm -f conftest.$ac_cv_objext conftest.$ac_ext
2151fi
2152echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2153echo "${ECHO_T}$ac_cv_objext" >&6
2154OBJEXT=$ac_cv_objext
2155ac_objext=$OBJEXT
2156echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2157echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2158if test "${ac_cv_c_compiler_gnu+set}" = set; then
2159  echo $ECHO_N "(cached) $ECHO_C" >&6
2160else
2161  cat >conftest.$ac_ext <<_ACEOF
2162/* confdefs.h.  */
2163_ACEOF
2164cat confdefs.h >>conftest.$ac_ext
2165cat >>conftest.$ac_ext <<_ACEOF
2166/* end confdefs.h.  */
2167
2168int
2169main ()
2170{
2171#ifndef __GNUC__
2172       choke me
2173#endif
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179rm -f conftest.$ac_objext
2180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181  (eval $ac_compile) 2>conftest.er1
2182  ac_status=$?
2183  grep -v '^ *+' conftest.er1 >conftest.err
2184  rm -f conftest.er1
2185  cat conftest.err >&5
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); } &&
2188         { ac_try='test -z "$ac_c_werror_flag"
2189                         || test ! -s conftest.err'
2190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2191  (eval $ac_try) 2>&5
2192  ac_status=$?
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); }; } &&
2195         { ac_try='test -s conftest.$ac_objext'
2196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2197  (eval $ac_try) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }; }; then
2201  ac_compiler_gnu=yes
2202else
2203  echo "$as_me: failed program was:" >&5
2204sed 's/^/| /' conftest.$ac_ext >&5
2205
2206ac_compiler_gnu=no
2207fi
2208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2209ac_cv_c_compiler_gnu=$ac_compiler_gnu
2210
2211fi
2212echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2213echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2214GCC=`test $ac_compiler_gnu = yes && echo yes`
2215ac_test_CFLAGS=${CFLAGS+set}
2216ac_save_CFLAGS=$CFLAGS
2217CFLAGS="-g"
2218echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2219echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2220if test "${ac_cv_prog_cc_g+set}" = set; then
2221  echo $ECHO_N "(cached) $ECHO_C" >&6
2222else
2223  cat >conftest.$ac_ext <<_ACEOF
2224/* confdefs.h.  */
2225_ACEOF
2226cat confdefs.h >>conftest.$ac_ext
2227cat >>conftest.$ac_ext <<_ACEOF
2228/* end confdefs.h.  */
2229
2230int
2231main ()
2232{
2233
2234  ;
2235  return 0;
2236}
2237_ACEOF
2238rm -f conftest.$ac_objext
2239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2240  (eval $ac_compile) 2>conftest.er1
2241  ac_status=$?
2242  grep -v '^ *+' conftest.er1 >conftest.err
2243  rm -f conftest.er1
2244  cat conftest.err >&5
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); } &&
2247         { ac_try='test -z "$ac_c_werror_flag"
2248                         || test ! -s conftest.err'
2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250  (eval $ac_try) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; } &&
2254         { ac_try='test -s conftest.$ac_objext'
2255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2256  (eval $ac_try) 2>&5
2257  ac_status=$?
2258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259  (exit $ac_status); }; }; then
2260  ac_cv_prog_cc_g=yes
2261else
2262  echo "$as_me: failed program was:" >&5
2263sed 's/^/| /' conftest.$ac_ext >&5
2264
2265ac_cv_prog_cc_g=no
2266fi
2267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2268fi
2269echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2270echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2271if test "$ac_test_CFLAGS" = set; then
2272  CFLAGS=$ac_save_CFLAGS
2273elif test $ac_cv_prog_cc_g = yes; then
2274  if test "$GCC" = yes; then
2275    CFLAGS="-g -O2"
2276  else
2277    CFLAGS="-g"
2278  fi
2279else
2280  if test "$GCC" = yes; then
2281    CFLAGS="-O2"
2282  else
2283    CFLAGS=
2284  fi
2285fi
2286echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2287echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2288if test "${ac_cv_prog_cc_stdc+set}" = set; then
2289  echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291  ac_cv_prog_cc_stdc=no
2292ac_save_CC=$CC
2293cat >conftest.$ac_ext <<_ACEOF
2294/* confdefs.h.  */
2295_ACEOF
2296cat confdefs.h >>conftest.$ac_ext
2297cat >>conftest.$ac_ext <<_ACEOF
2298/* end confdefs.h.  */
2299#include <stdarg.h>
2300#include <stdio.h>
2301#include <sys/types.h>
2302#include <sys/stat.h>
2303/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2304struct buf { int x; };
2305FILE * (*rcsopen) (struct buf *, struct stat *, int);
2306static char *e (p, i)
2307     char **p;
2308     int i;
2309{
2310  return p[i];
2311}
2312static char *f (char * (*g) (char **, int), char **p, ...)
2313{
2314  char *s;
2315  va_list v;
2316  va_start (v,p);
2317  s = g (p, va_arg (v,int));
2318  va_end (v);
2319  return s;
2320}
2321
2322/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2323   function prototypes and stuff, but not '\xHH' hex character constants.
2324   These don't provoke an error unfortunately, instead are silently treated
2325   as 'x'.  The following induces an error, until -std1 is added to get
2326   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2327   array size at least.  It's necessary to write '\x00'==0 to get something
2328   that's true only with -std1.  */
2329int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2330
2331int test (int i, double x);
2332struct s1 {int (*f) (int a);};
2333struct s2 {int (*f) (double a);};
2334int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2335int argc;
2336char **argv;
2337int
2338main ()
2339{
2340return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2341  ;
2342  return 0;
2343}
2344_ACEOF
2345# Don't try gcc -ansi; that turns off useful extensions and
2346# breaks some systems' header files.
2347# AIX                   -qlanglvl=ansi
2348# Ultrix and OSF/1      -std1
2349# HP-UX 10.20 and later -Ae
2350# HP-UX older versions  -Aa -D_HPUX_SOURCE
2351# SVR4                  -Xc -D__EXTENSIONS__
2352for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2353do
2354  CC="$ac_save_CC $ac_arg"
2355  rm -f conftest.$ac_objext
2356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357  (eval $ac_compile) 2>conftest.er1
2358  ac_status=$?
2359  grep -v '^ *+' conftest.er1 >conftest.err
2360  rm -f conftest.er1
2361  cat conftest.err >&5
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); } &&
2364         { ac_try='test -z "$ac_c_werror_flag"
2365                         || test ! -s conftest.err'
2366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367  (eval $ac_try) 2>&5
2368  ac_status=$?
2369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370  (exit $ac_status); }; } &&
2371         { ac_try='test -s conftest.$ac_objext'
2372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373  (eval $ac_try) 2>&5
2374  ac_status=$?
2375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376  (exit $ac_status); }; }; then
2377  ac_cv_prog_cc_stdc=$ac_arg
2378break
2379else
2380  echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383fi
2384rm -f conftest.err conftest.$ac_objext
2385done
2386rm -f conftest.$ac_ext conftest.$ac_objext
2387CC=$ac_save_CC
2388
2389fi
2390
2391case "x$ac_cv_prog_cc_stdc" in
2392  x|xno)
2393    echo "$as_me:$LINENO: result: none needed" >&5
2394echo "${ECHO_T}none needed" >&6 ;;
2395  *)
2396    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2397echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2398    CC="$CC $ac_cv_prog_cc_stdc" ;;
2399esac
2400
2401# Some people use a C++ compiler to compile C.  Since we use `exit',
2402# in C++ we need to declare it.  In case someone uses the same compiler
2403# for both compiling C and C++ we need to have the C++ compiler decide
2404# the declaration of exit, since it's the most demanding environment.
2405cat >conftest.$ac_ext <<_ACEOF
2406#ifndef __cplusplus
2407  choke me
2408#endif
2409_ACEOF
2410rm -f conftest.$ac_objext
2411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412  (eval $ac_compile) 2>conftest.er1
2413  ac_status=$?
2414  grep -v '^ *+' conftest.er1 >conftest.err
2415  rm -f conftest.er1
2416  cat conftest.err >&5
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); } &&
2419         { ac_try='test -z "$ac_c_werror_flag"
2420                         || test ! -s conftest.err'
2421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422  (eval $ac_try) 2>&5
2423  ac_status=$?
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); }; } &&
2426         { ac_try='test -s conftest.$ac_objext'
2427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428  (eval $ac_try) 2>&5
2429  ac_status=$?
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); }; }; then
2432  for ac_declaration in \
2433   '' \
2434   'extern "C" void std::exit (int) throw (); using std::exit;' \
2435   'extern "C" void std::exit (int); using std::exit;' \
2436   'extern "C" void exit (int) throw ();' \
2437   'extern "C" void exit (int);' \
2438   'void exit (int);'
2439do
2440  cat >conftest.$ac_ext <<_ACEOF
2441/* confdefs.h.  */
2442_ACEOF
2443cat confdefs.h >>conftest.$ac_ext
2444cat >>conftest.$ac_ext <<_ACEOF
2445/* end confdefs.h.  */
2446$ac_declaration
2447#include <stdlib.h>
2448int
2449main ()
2450{
2451exit (42);
2452  ;
2453  return 0;
2454}
2455_ACEOF
2456rm -f conftest.$ac_objext
2457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2458  (eval $ac_compile) 2>conftest.er1
2459  ac_status=$?
2460  grep -v '^ *+' conftest.er1 >conftest.err
2461  rm -f conftest.er1
2462  cat conftest.err >&5
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); } &&
2465         { ac_try='test -z "$ac_c_werror_flag"
2466                         || test ! -s conftest.err'
2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468  (eval $ac_try) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; } &&
2472         { ac_try='test -s conftest.$ac_objext'
2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474  (eval $ac_try) 2>&5
2475  ac_status=$?
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); }; }; then
2478  :
2479else
2480  echo "$as_me: failed program was:" >&5
2481sed 's/^/| /' conftest.$ac_ext >&5
2482
2483continue
2484fi
2485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2486  cat >conftest.$ac_ext <<_ACEOF
2487/* confdefs.h.  */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
2491/* end confdefs.h.  */
2492$ac_declaration
2493int
2494main ()
2495{
2496exit (42);
2497  ;
2498  return 0;
2499}
2500_ACEOF
2501rm -f conftest.$ac_objext
2502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2503  (eval $ac_compile) 2>conftest.er1
2504  ac_status=$?
2505  grep -v '^ *+' conftest.er1 >conftest.err
2506  rm -f conftest.er1
2507  cat conftest.err >&5
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); } &&
2510         { ac_try='test -z "$ac_c_werror_flag"
2511                         || test ! -s conftest.err'
2512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513  (eval $ac_try) 2>&5
2514  ac_status=$?
2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516  (exit $ac_status); }; } &&
2517         { ac_try='test -s conftest.$ac_objext'
2518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519  (eval $ac_try) 2>&5
2520  ac_status=$?
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); }; }; then
2523  break
2524else
2525  echo "$as_me: failed program was:" >&5
2526sed 's/^/| /' conftest.$ac_ext >&5
2527
2528fi
2529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530done
2531rm -f conftest*
2532if test -n "$ac_declaration"; then
2533  echo '#ifdef __cplusplus' >>confdefs.h
2534  echo $ac_declaration      >>confdefs.h
2535  echo '#endif'             >>confdefs.h
2536fi
2537
2538else
2539  echo "$as_me: failed program was:" >&5
2540sed 's/^/| /' conftest.$ac_ext >&5
2541
2542fi
2543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2544ac_ext=c
2545ac_cpp='$CPP $CPPFLAGS'
2546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549
2550if test -z "$CC" ; then
2551  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2552echo "$as_me: error: Failed to find a C compiler!" >&2;}
2553   { (exit 1); exit 1; }; }
2554fi
2555# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2556case "$CC" in
2557  cl* | */cl* | CL* | */CL* )
2558    if test "$ac_cv_prog_cc_g" = yes ; then
2559      ac_cv_prog_cc_g=no
2560      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2561echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2562    fi ;;
2563esac
2564CFLAGS="$save_cflags"
2565
2566# Check if a project specific CFLAGS variable has been set
2567if test x$COIN_PRJCT != x; then
2568  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2569  if test x$coin_tmp = xset; then
2570    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2571  fi
2572fi
2573
2574if test x"$CFLAGS" = x; then
2575
2576  coin_add_cflags=
2577  coin_opt_cflags=
2578  coin_dbg_cflags=
2579  coin_warn_cflags=
2580
2581  if test "$GCC" = "yes"; then
2582    case "$CC" in
2583      icc* | */icc*)
2584        ;;
2585      *)
2586        coin_opt_cflags="-O3 -fomit-frame-pointer"
2587        coin_add_cflags="-pipe"
2588        coin_dbg_cflags="-g"
2589        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2590        case $enable_doscompile in
2591          mingw)
2592            CFLAGS="-mno-cygwin"
2593            cat >conftest.$ac_ext <<_ACEOF
2594/* confdefs.h.  */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h.  */
2599
2600int
2601main ()
2602{
2603int i=0; i++;
2604  ;
2605  return 0;
2606}
2607_ACEOF
2608rm -f conftest.$ac_objext conftest$ac_exeext
2609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2610  (eval $ac_link) 2>conftest.er1
2611  ac_status=$?
2612  grep -v '^ *+' conftest.er1 >conftest.err
2613  rm -f conftest.er1
2614  cat conftest.err >&5
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); } &&
2617         { ac_try='test -z "$ac_c_werror_flag"
2618                         || test ! -s conftest.err'
2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620  (eval $ac_try) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; } &&
2624         { ac_try='test -s conftest$ac_exeext'
2625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2626  (eval $ac_try) 2>&5
2627  ac_status=$?
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); }; }; then
2630  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2631else
2632  echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635fi
2636rm -f conftest.err conftest.$ac_objext \
2637      conftest$ac_exeext conftest.$ac_ext
2638            CFLAGS=
2639          ;;
2640        esac
2641    esac
2642  fi
2643  if test -z "$coin_opt_cflags"; then
2644    case $build in
2645      *-cygwin* | *-mingw*)
2646        case "$CC" in
2647          cl* | */cl* | CL* | */CL*)
2648            coin_opt_cflags='-MT -O2'
2649            coin_add_cflags='-nologo -wd4996'
2650            coin_dbg_cflags='-MTd'
2651            ;;
2652        esac
2653        ;;
2654      *-linux-*)
2655        case "$CC" in
2656          icc* | */icc*)
2657            coin_opt_cflags="-O3 -ip"
2658            coin_add_cflags=""
2659            coin_dbg_cflags="-g"
2660            # Check if -i_dynamic is necessary (for new glibc library)
2661            CFLAGS=
2662            cat >conftest.$ac_ext <<_ACEOF
2663/* confdefs.h.  */
2664_ACEOF
2665cat confdefs.h >>conftest.$ac_ext
2666cat >>conftest.$ac_ext <<_ACEOF
2667/* end confdefs.h.  */
2668
2669int
2670main ()
2671{
2672int i=0; i++;
2673  ;
2674  return 0;
2675}
2676_ACEOF
2677rm -f conftest.$ac_objext conftest$ac_exeext
2678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2679  (eval $ac_link) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } &&
2686         { ac_try='test -z "$ac_c_werror_flag"
2687                         || test ! -s conftest.err'
2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689  (eval $ac_try) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); }; } &&
2693         { ac_try='test -s conftest$ac_exeext'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; }; then
2699  :
2700else
2701  echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704coin_add_cflags="-i_dynamic $coin_add_cflags"
2705fi
2706rm -f conftest.err conftest.$ac_objext \
2707      conftest$ac_exeext conftest.$ac_ext
2708            ;;
2709          pgcc* | */pgcc*)
2710            coin_opt_cflags="-fast"
2711            coin_add_cflags="-Kieee -pc 64"
2712            coin_dbg_cflags="-g"
2713            ;;
2714        esac
2715        ;;
2716      *-ibm-*)
2717        case "$CC" in
2718          xlc* | */xlc* | mpxlc* | */mpxlc*)
2719            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2720            coin_add_cflags="-bmaxdata:0x80000000"
2721            coin_dbg_cflags="-g"
2722          ;;
2723        esac
2724        ;;
2725      *-hp-*)
2726        coin_opt_cflags="-O"
2727        coin_add_cflags="-Ae"
2728        coin_dbg_cflags="-g"
2729        ;;
2730      *-sun-*)
2731        coin_opt_cflags="-xO4"
2732        coin_dbg_cflags="-g"
2733        ;;
2734      *-sgi-*)
2735        coin_opt_cflags="-O -OPT:Olimit=0"
2736        coin_dbg_cflags="-g"
2737        ;;
2738    esac
2739  fi
2740
2741  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2742    coin_dbg_cflags="-g"
2743  fi
2744
2745  if test -z "$coin_opt_cflags"; then
2746    # Try if -O option works if nothing else is set
2747    CFLAGS="-O"
2748    cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754
2755int
2756main ()
2757{
2758int i=0; i++;
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext conftest$ac_exeext
2764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2765  (eval $ac_link) 2>conftest.er1
2766  ac_status=$?
2767  grep -v '^ *+' conftest.er1 >conftest.err
2768  rm -f conftest.er1
2769  cat conftest.err >&5
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); } &&
2772         { ac_try='test -z "$ac_c_werror_flag"
2773                         || test ! -s conftest.err'
2774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775  (eval $ac_try) 2>&5
2776  ac_status=$?
2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); }; } &&
2779         { ac_try='test -s conftest$ac_exeext'
2780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781  (eval $ac_try) 2>&5
2782  ac_status=$?
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); }; }; then
2785  coin_opt_cflags="-O"
2786else
2787  echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790fi
2791rm -f conftest.err conftest.$ac_objext \
2792      conftest$ac_exeext conftest.$ac_ext
2793  fi
2794
2795  # if PM doesn't want the warning messages, take them out
2796  if test x"$coin_skip_warn_cflags" = xyes; then
2797    coin_warn_cflags=
2798  fi
2799
2800  if test x${DBG_CFLAGS+set} != xset; then
2801    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2802  fi
2803  if test x${OPT_CFLAGS+set} != xset; then
2804    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2805  fi
2806
2807  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2808  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2809
2810  if test "$coin_debug_compile" = "true"; then
2811    CFLAGS="$DBG_CFLAGS"
2812  else
2813    CFLAGS="$OPT_CFLAGS"
2814  fi
2815else
2816  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2817  if test x${DBG_CFLAGS+set} != xset; then
2818    DBG_CFLAGS="$CFLAGS"
2819  fi
2820  if test x${OPT_CFLAGS+set} != xset; then
2821    OPT_CFLAGS="$CFLAGS"
2822  fi
2823fi
2824
2825# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2826
2827case "$CFLAGS" in
2828  *-mno-cygwin*)
2829    if test x${CPPFLAGS+set} != xset ; then
2830      CPPFLAGS="-mno-cygwin"
2831    else
2832      case "$CPPFLAGS" in
2833        *-mno-cygwin*)
2834          ;;
2835        *)
2836          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2837          ;;
2838      esac
2839    fi ;;
2840esac
2841
2842# Try if CFLAGS works
2843save_CFLAGS="$CFLAGS"
2844cat >conftest.$ac_ext <<_ACEOF
2845/* confdefs.h.  */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h.  */
2850
2851int
2852main ()
2853{
2854int i=0; i++;
2855  ;
2856  return 0;
2857}
2858_ACEOF
2859rm -f conftest.$ac_objext conftest$ac_exeext
2860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2861  (eval $ac_link) 2>conftest.er1
2862  ac_status=$?
2863  grep -v '^ *+' conftest.er1 >conftest.err
2864  rm -f conftest.er1
2865  cat conftest.err >&5
2866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867  (exit $ac_status); } &&
2868         { ac_try='test -z "$ac_c_werror_flag"
2869                         || test ! -s conftest.err'
2870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871  (eval $ac_try) 2>&5
2872  ac_status=$?
2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874  (exit $ac_status); }; } &&
2875         { ac_try='test -s conftest$ac_exeext'
2876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877  (eval $ac_try) 2>&5
2878  ac_status=$?
2879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880  (exit $ac_status); }; }; then
2881  :
2882else
2883  echo "$as_me: failed program was:" >&5
2884sed 's/^/| /' conftest.$ac_ext >&5
2885
2886CFLAGS=
2887fi
2888rm -f conftest.err conftest.$ac_objext \
2889      conftest$ac_exeext conftest.$ac_ext
2890if test -z "$CFLAGS"; then
2891  { 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
2892echo "$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;}
2893  CFLAGS='-O'
2894  cat >conftest.$ac_ext <<_ACEOF
2895/* confdefs.h.  */
2896_ACEOF
2897cat confdefs.h >>conftest.$ac_ext
2898cat >>conftest.$ac_ext <<_ACEOF
2899/* end confdefs.h.  */
2900
2901int
2902main ()
2903{
2904int i=0; i++;
2905  ;
2906  return 0;
2907}
2908_ACEOF
2909rm -f conftest.$ac_objext conftest$ac_exeext
2910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2911  (eval $ac_link) 2>conftest.er1
2912  ac_status=$?
2913  grep -v '^ *+' conftest.er1 >conftest.err
2914  rm -f conftest.er1
2915  cat conftest.err >&5
2916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917  (exit $ac_status); } &&
2918         { ac_try='test -z "$ac_c_werror_flag"
2919                         || test ! -s conftest.err'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; } &&
2925         { ac_try='test -s conftest$ac_exeext'
2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927  (eval $ac_try) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; }; then
2931  :
2932else
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936CFLAGS=
2937fi
2938rm -f conftest.err conftest.$ac_objext \
2939      conftest$ac_exeext conftest.$ac_ext
2940  if test -z "$CFLAGS"; then
2941    { 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
2942echo "$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;}
2943  fi
2944fi
2945
2946{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
2947echo "$as_me: C compiler options are: $CFLAGS" >&6;}
2948
2949
2950if test x"$MPICC" = x; then :; else
2951  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
2952echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
2953  CC="$MPICC"
2954fi
2955
2956# Correct ADDLIBS initialization if we are using the MS compiler
2957case "$CC" in
2958  cl* | */cl* | CL* | */CL*)
2959    ADDLIBS=
2960    case $build in
2961  *-mingw*)
2962    if test "${LD+set}" = set; then :; else
2963      LD=link
2964    fi
2965    ;;
2966 esac
2967 case $enable_doscompile in
2968   msvc)
2969     if test "x${LD+set}" = xset; then :; else
2970       LD=link
2971     fi
2972     ;;
2973 esac
2974
2975    ;;
2976esac
2977
2978ac_ext=c
2979ac_cpp='$CPP $CPPFLAGS'
2980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983
2984
2985
2986# Get the name of the C++ compiler and appropriate compiler options
2987
2988 #Let's try if that overcomes configuration problem with VC++ 6.0
2989
2990ac_ext=cc
2991ac_cpp='$CXXCPP $CPPFLAGS'
2992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2995
2996
2997
2998
2999
3000
3001
3002coin_has_cxx=yes
3003
3004save_cxxflags="$CXXFLAGS"
3005# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
3006case $build in
3007  *-cygwin* | *-mingw*)
3008             if test "$enable_doscompile" = msvc ; then
3009               comps="cl"
3010             else
3011               comps="g++ cl"
3012             fi ;;
3013  sparc-sun-solaris*)
3014             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3015  *-darwin*) comps="g++ c++ CC" ;;
3016          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3017esac
3018
3019# We delete the cached value, since the test might not have been
3020# performed with our choice of compilers earlier
3021$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3022# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3023ac_ext=cc
3024ac_cpp='$CXXCPP $CPPFLAGS'
3025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3028if test -n "$ac_tool_prefix"; then
3029  for ac_prog in $CCC $comps
3030  do
3031    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033echo "$as_me:$LINENO: checking for $ac_word" >&5
3034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3035if test "${ac_cv_prog_CXX+set}" = set; then
3036  echo $ECHO_N "(cached) $ECHO_C" >&6
3037else
3038  if test -n "$CXX"; then
3039  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3040else
3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044  IFS=$as_save_IFS
3045  test -z "$as_dir" && as_dir=.
3046  for ac_exec_ext in '' $ac_executable_extensions; do
3047  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050    break 2
3051  fi
3052done
3053done
3054
3055fi
3056fi
3057CXX=$ac_cv_prog_CXX
3058if test -n "$CXX"; then
3059  echo "$as_me:$LINENO: result: $CXX" >&5
3060echo "${ECHO_T}$CXX" >&6
3061else
3062  echo "$as_me:$LINENO: result: no" >&5
3063echo "${ECHO_T}no" >&6
3064fi
3065
3066    test -n "$CXX" && break
3067  done
3068fi
3069if test -z "$CXX"; then
3070  ac_ct_CXX=$CXX
3071  for ac_prog in $CCC $comps
3072do
3073  # Extract the first word of "$ac_prog", so it can be a program name with args.
3074set dummy $ac_prog; ac_word=$2
3075echo "$as_me:$LINENO: checking for $ac_word" >&5
3076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3077if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3078  echo $ECHO_N "(cached) $ECHO_C" >&6
3079else
3080  if test -n "$ac_ct_CXX"; then
3081  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086  IFS=$as_save_IFS
3087  test -z "$as_dir" && as_dir=.
3088  for ac_exec_ext in '' $ac_executable_extensions; do
3089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3090    ac_cv_prog_ac_ct_CXX="$ac_prog"
3091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092    break 2
3093  fi
3094done
3095done
3096
3097fi
3098fi
3099ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3100if test -n "$ac_ct_CXX"; then
3101  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3102echo "${ECHO_T}$ac_ct_CXX" >&6
3103else
3104  echo "$as_me:$LINENO: result: no" >&5
3105echo "${ECHO_T}no" >&6
3106fi
3107
3108  test -n "$ac_ct_CXX" && break
3109done
3110test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3111
3112  CXX=$ac_ct_CXX
3113fi
3114
3115
3116# Provide some information about the compiler.
3117echo "$as_me:$LINENO:" \
3118     "checking for C++ compiler version" >&5
3119ac_compiler=`set X $ac_compile; echo $2`
3120{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3121  (eval $ac_compiler --version </dev/null >&5) 2>&5
3122  ac_status=$?
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); }
3125{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3126  (eval $ac_compiler -v </dev/null >&5) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }
3130{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3131  (eval $ac_compiler -V </dev/null >&5) 2>&5
3132  ac_status=$?
3133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134  (exit $ac_status); }
3135
3136echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3137echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3138if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3139  echo $ECHO_N "(cached) $ECHO_C" >&6
3140else
3141  cat >conftest.$ac_ext <<_ACEOF
3142/* confdefs.h.  */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h.  */
3147
3148int
3149main ()
3150{
3151#ifndef __GNUC__
3152       choke me
3153#endif
3154
3155  ;
3156  return 0;
3157}
3158_ACEOF
3159rm -f conftest.$ac_objext
3160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3161  (eval $ac_compile) 2>conftest.er1
3162  ac_status=$?
3163  grep -v '^ *+' conftest.er1 >conftest.err
3164  rm -f conftest.er1
3165  cat conftest.err >&5
3166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167  (exit $ac_status); } &&
3168         { ac_try='test -z "$ac_cxx_werror_flag"
3169                         || test ! -s conftest.err'
3170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171  (eval $ac_try) 2>&5
3172  ac_status=$?
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }; } &&
3175         { ac_try='test -s conftest.$ac_objext'
3176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177  (eval $ac_try) 2>&5
3178  ac_status=$?
3179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); }; }; then
3181  ac_compiler_gnu=yes
3182else
3183  echo "$as_me: failed program was:" >&5
3184sed 's/^/| /' conftest.$ac_ext >&5
3185
3186ac_compiler_gnu=no
3187fi
3188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3189ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3190
3191fi
3192echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3193echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3194GXX=`test $ac_compiler_gnu = yes && echo yes`
3195ac_test_CXXFLAGS=${CXXFLAGS+set}
3196ac_save_CXXFLAGS=$CXXFLAGS
3197CXXFLAGS="-g"
3198echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3199echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3200if test "${ac_cv_prog_cxx_g+set}" = set; then
3201  echo $ECHO_N "(cached) $ECHO_C" >&6
3202else
3203  cat >conftest.$ac_ext <<_ACEOF
3204/* confdefs.h.  */
3205_ACEOF
3206cat confdefs.h >>conftest.$ac_ext
3207cat >>conftest.$ac_ext <<_ACEOF
3208/* end confdefs.h.  */
3209
3210int
3211main ()
3212{
3213
3214  ;
3215  return 0;
3216}
3217_ACEOF
3218rm -f conftest.$ac_objext
3219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3220  (eval $ac_compile) 2>conftest.er1
3221  ac_status=$?
3222  grep -v '^ *+' conftest.er1 >conftest.err
3223  rm -f conftest.er1
3224  cat conftest.err >&5
3225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226  (exit $ac_status); } &&
3227         { ac_try='test -z "$ac_cxx_werror_flag"
3228                         || test ! -s conftest.err'
3229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230  (eval $ac_try) 2>&5
3231  ac_status=$?
3232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233  (exit $ac_status); }; } &&
3234         { ac_try='test -s conftest.$ac_objext'
3235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236  (eval $ac_try) 2>&5
3237  ac_status=$?
3238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239  (exit $ac_status); }; }; then
3240  ac_cv_prog_cxx_g=yes
3241else
3242  echo "$as_me: failed program was:" >&5
3243sed 's/^/| /' conftest.$ac_ext >&5
3244
3245ac_cv_prog_cxx_g=no
3246fi
3247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3248fi
3249echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3250echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3251if test "$ac_test_CXXFLAGS" = set; then
3252  CXXFLAGS=$ac_save_CXXFLAGS
3253elif test $ac_cv_prog_cxx_g = yes; then
3254  if test "$GXX" = yes; then
3255    CXXFLAGS="-g -O2"
3256  else
3257    CXXFLAGS="-g"
3258  fi
3259else
3260  if test "$GXX" = yes; then
3261    CXXFLAGS="-O2"
3262  else
3263    CXXFLAGS=
3264  fi
3265fi
3266for ac_declaration in \
3267   '' \
3268   'extern "C" void std::exit (int) throw (); using std::exit;' \
3269   'extern "C" void std::exit (int); using std::exit;' \
3270   'extern "C" void exit (int) throw ();' \
3271   'extern "C" void exit (int);' \
3272   'void exit (int);'
3273do
3274  cat >conftest.$ac_ext <<_ACEOF
3275/* confdefs.h.  */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h.  */
3280$ac_declaration
3281#include <stdlib.h>
3282int
3283main ()
3284{
3285exit (42);
3286  ;
3287  return 0;
3288}
3289_ACEOF
3290rm -f conftest.$ac_objext
3291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292  (eval $ac_compile) 2>conftest.er1
3293  ac_status=$?
3294  grep -v '^ *+' conftest.er1 >conftest.err
3295  rm -f conftest.er1
3296  cat conftest.err >&5
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); } &&
3299         { ac_try='test -z "$ac_cxx_werror_flag"
3300                         || test ! -s conftest.err'
3301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302  (eval $ac_try) 2>&5
3303  ac_status=$?
3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305  (exit $ac_status); }; } &&
3306         { ac_try='test -s conftest.$ac_objext'
3307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308  (eval $ac_try) 2>&5
3309  ac_status=$?
3310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311  (exit $ac_status); }; }; then
3312  :
3313else
3314  echo "$as_me: failed program was:" >&5
3315sed 's/^/| /' conftest.$ac_ext >&5
3316
3317continue
3318fi
3319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3320  cat >conftest.$ac_ext <<_ACEOF
3321/* confdefs.h.  */
3322_ACEOF
3323cat confdefs.h >>conftest.$ac_ext
3324cat >>conftest.$ac_ext <<_ACEOF
3325/* end confdefs.h.  */
3326$ac_declaration
3327int
3328main ()
3329{
3330exit (42);
3331  ;
3332  return 0;
3333}
3334_ACEOF
3335rm -f conftest.$ac_objext
3336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3337  (eval $ac_compile) 2>conftest.er1
3338  ac_status=$?
3339  grep -v '^ *+' conftest.er1 >conftest.err
3340  rm -f conftest.er1
3341  cat conftest.err >&5
3342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343  (exit $ac_status); } &&
3344         { ac_try='test -z "$ac_cxx_werror_flag"
3345                         || test ! -s conftest.err'
3346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347  (eval $ac_try) 2>&5
3348  ac_status=$?
3349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350  (exit $ac_status); }; } &&
3351         { ac_try='test -s conftest.$ac_objext'
3352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353  (eval $ac_try) 2>&5
3354  ac_status=$?
3355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356  (exit $ac_status); }; }; then
3357  break
3358else
3359  echo "$as_me: failed program was:" >&5
3360sed 's/^/| /' conftest.$ac_ext >&5
3361
3362fi
3363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3364done
3365rm -f conftest*
3366if test -n "$ac_declaration"; then
3367  echo '#ifdef __cplusplus' >>confdefs.h
3368  echo $ac_declaration      >>confdefs.h
3369  echo '#endif'             >>confdefs.h
3370fi
3371
3372ac_ext=cc
3373ac_cpp='$CXXCPP $CPPFLAGS'
3374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3377
3378if test -z "$CXX" ; then
3379  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3380echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3381   { (exit 1); exit 1; }; }
3382fi
3383
3384# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3385case "$CXX" in
3386  cl* | */cl* | CL* | */CL* )
3387    if test "$ac_cv_prog_cxx_g" = yes ; then
3388      ac_cv_prog_cxx_g=no
3389      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3390echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3391    fi ;;
3392esac
3393CXXFLAGS="$save_cxxflags"
3394
3395# Check if a project specific CXXFLAGS variable has been set
3396if test x$COIN_PRJCT != x; then
3397  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3398  if test x$coin_tmp = xset; then
3399    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3400  fi
3401fi
3402
3403if test x"$CXXFLAGS" = x; then
3404
3405# ToDo decide whether we want -DNDEBUG for optimization
3406  coin_add_cxxflags=
3407  coin_opt_cxxflags=
3408  coin_dbg_cxxflags=
3409  coin_warn_cxxflags=
3410
3411  if test "$GXX" = "yes"; then
3412    case "$CXX" in
3413      icpc* | */icpc*)
3414        ;;
3415      *)
3416# ToDo decide about unroll-loops
3417        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3418        coin_add_cxxflags="-pipe"
3419        coin_dbg_cxxflags="-g"
3420        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3421        case $enable_doscompile in
3422          mingw)
3423            CXXFLAGS="-mno-cygwin"
3424            cat >conftest.$ac_ext <<_ACEOF
3425/* confdefs.h.  */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
3429/* end confdefs.h.  */
3430
3431int
3432main ()
3433{
3434int i=0; i++;
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439rm -f conftest.$ac_objext conftest$ac_exeext
3440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3441  (eval $ac_link) 2>conftest.er1
3442  ac_status=$?
3443  grep -v '^ *+' conftest.er1 >conftest.err
3444  rm -f conftest.er1
3445  cat conftest.err >&5
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); } &&
3448         { ac_try='test -z "$ac_cxx_werror_flag"
3449                         || test ! -s conftest.err'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; } &&
3455         { ac_try='test -s conftest$ac_exeext'
3456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457  (eval $ac_try) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }; }; then
3461  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466fi
3467rm -f conftest.err conftest.$ac_objext \
3468      conftest$ac_exeext conftest.$ac_ext
3469            CXXFLAGS=
3470            ;;
3471        esac
3472    esac
3473  fi
3474
3475# Note that we do not need to cover GCC in the following tests.
3476
3477  if test -z "$coin_opt_cxxflags"; then
3478    case $build in
3479      *-cygwin* | *-mingw*)
3480        case "$CXX" in
3481          cl* | */cl* | CL* | */CL*)
3482            # The MT and MTd options are mutually exclusive
3483            coin_opt_cxxflags='-MT -O2'
3484            coin_add_cxxflags='-nologo -EHsc -GR -wd4996'
3485            coin_dbg_cxxflags='-MTd'
3486            ;;
3487        esac
3488        ;;
3489      *-linux-*)
3490        case "$CXX" in
3491          icpc* | */icpc*)
3492            coin_opt_cxxflags="-O3 -ip"
3493            coin_add_cxxflags=""
3494            coin_dbg_cxxflags="-g"
3495            # Check if -i_dynamic is necessary (for new glibc library)
3496            CXXFLAGS=
3497            cat >conftest.$ac_ext <<_ACEOF
3498/* confdefs.h.  */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h.  */
3503
3504int
3505main ()
3506{
3507int i=0; i++;
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512rm -f conftest.$ac_objext conftest$ac_exeext
3513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3514  (eval $ac_link) 2>conftest.er1
3515  ac_status=$?
3516  grep -v '^ *+' conftest.er1 >conftest.err
3517  rm -f conftest.er1
3518  cat conftest.err >&5
3519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); } &&
3521         { ac_try='test -z "$ac_cxx_werror_flag"
3522                         || test ! -s conftest.err'
3523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524  (eval $ac_try) 2>&5
3525  ac_status=$?
3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); }; } &&
3528         { ac_try='test -s conftest$ac_exeext'
3529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530  (eval $ac_try) 2>&5
3531  ac_status=$?
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); }; }; then
3534  :
3535else
3536  echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
3539coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3540fi
3541rm -f conftest.err conftest.$ac_objext \
3542      conftest$ac_exeext conftest.$ac_ext
3543            ;;
3544          pgCC* | */pgCC*)
3545            coin_opt_cxxflags="-fast"
3546            coin_add_cxxflags="-Kieee -pc 64"
3547            coin_dbg_cxxflags="-g"
3548            ;;
3549        esac
3550        ;;
3551      *-ibm-*)
3552        case "$CXX" in
3553          xlC* | */xlC* | mpxlC* | */mpxlC*)
3554            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3555            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
3556            coin_dbg_cxxflags="-g"
3557            ;;
3558        esac
3559        ;;
3560      *-hp-*)
3561        case "$CXX" in
3562          aCC* | */aCC* )
3563            coin_opt_cxxflags="-O"
3564            coin_add_cxxflags="-AA"
3565            coin_dbg_cxxflags="-g"
3566            ;;
3567        esac
3568        ;;
3569      *-sun-*)
3570          coin_opt_cxxflags="-O4"
3571          coin_dbg_cxxflags="-g"
3572        ;;
3573    esac
3574  fi
3575
3576# Generic flag settings. If these don't work, add a case above.
3577
3578  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3579    coin_dbg_cxxflags="-g"
3580  fi
3581
3582  if test -z "$coin_opt_cxxflags"; then
3583    # Try if -O option works if nothing else is set
3584    CXXFLAGS=-O
3585    cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h.  */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h.  */
3591
3592int
3593main ()
3594{
3595int i=0; i++;
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600rm -f conftest.$ac_objext conftest$ac_exeext
3601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3602  (eval $ac_link) 2>conftest.er1
3603  ac_status=$?
3604  grep -v '^ *+' conftest.er1 >conftest.err
3605  rm -f conftest.er1
3606  cat conftest.err >&5
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); } &&
3609         { ac_try='test -z "$ac_cxx_werror_flag"
3610                         || test ! -s conftest.err'
3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612  (eval $ac_try) 2>&5
3613  ac_status=$?
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); }; } &&
3616         { ac_try='test -s conftest$ac_exeext'
3617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618  (eval $ac_try) 2>&5
3619  ac_status=$?
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); }; }; then
3622  coin_opt_cxxflags="-O"
3623else
3624  echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627fi
3628rm -f conftest.err conftest.$ac_objext \
3629      conftest$ac_exeext conftest.$ac_ext
3630  fi
3631
3632  # if PM doesn't want the warning messages, take them out
3633  if test x"$coin_skip_warn_cxxflags" = xyes; then
3634    coin_warn_cxxflags=
3635  fi
3636
3637# Do final setup of flags based on values determined above.
3638
3639  if test x${DBG_CXXFLAGS+set} != xset; then
3640    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3641  fi
3642  if test x${OPT_CXXFLAGS+set} != xset; then
3643    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3644  fi
3645
3646  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3647  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3648
3649  if test "$coin_debug_compile" = "true"; then
3650    CXXFLAGS="$DBG_CXXFLAGS"
3651  else
3652    CXXFLAGS="$OPT_CXXFLAGS"
3653  fi
3654
3655# Handle the case where CXXFLAGS was set externally.
3656else
3657  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3658  if test x${DBG_CXXFLAGS+set} != xset; then
3659    DBG_CXXFLAGS="$CXXFLAGS"
3660  fi
3661  if test x${OPT_CXXFLAGS+set} != xset; then
3662    OPT_CXXFLAGS="$CXXFLAGS"
3663  fi
3664fi
3665
3666# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3667
3668case "$CXXFLAGS" in
3669  *-mno-cygwin*)
3670    if test x${CPPFLAGS+set} != xset ; then
3671      CPPFLAGS="-mno-cygwin"
3672    else
3673      case "$CPPFLAGS" in
3674        *-mno-cygwin*)
3675          ;;
3676        *)
3677          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3678          ;;
3679      esac
3680    fi ;;
3681esac
3682
3683# Try if CXXFLAGS works
3684save_CXXFLAGS="$CXXFLAGS"
3685cat >conftest.$ac_ext <<_ACEOF
3686/* confdefs.h.  */
3687_ACEOF
3688cat confdefs.h >>conftest.$ac_ext
3689cat >>conftest.$ac_ext <<_ACEOF
3690/* end confdefs.h.  */
3691
3692int
3693main ()
3694{
3695int i=0; i++;
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700rm -f conftest.$ac_objext conftest$ac_exeext
3701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3702  (eval $ac_link) 2>conftest.er1
3703  ac_status=$?
3704  grep -v '^ *+' conftest.er1 >conftest.err
3705  rm -f conftest.er1
3706  cat conftest.err >&5
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); } &&
3709         { ac_try='test -z "$ac_cxx_werror_flag"
3710                         || test ! -s conftest.err'
3711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712  (eval $ac_try) 2>&5
3713  ac_status=$?
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); }; } &&
3716         { ac_try='test -s conftest$ac_exeext'
3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718  (eval $ac_try) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; }; then
3722  :
3723else
3724  echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
3727CXXFLAGS=
3728fi
3729rm -f conftest.err conftest.$ac_objext \
3730      conftest$ac_exeext conftest.$ac_ext
3731if test -z "$CXXFLAGS"; then
3732  { 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
3733echo "$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;}
3734  CXXFLAGS='-O'
3735  cat >conftest.$ac_ext <<_ACEOF
3736/* confdefs.h.  */
3737_ACEOF
3738cat confdefs.h >>conftest.$ac_ext
3739cat >>conftest.$ac_ext <<_ACEOF
3740/* end confdefs.h.  */
3741
3742int
3743main ()
3744{
3745int i=0; i++;
3746  ;
3747  return 0;
3748}
3749_ACEOF
3750rm -f conftest.$ac_objext conftest$ac_exeext
3751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3752  (eval $ac_link) 2>conftest.er1
3753  ac_status=$?
3754  grep -v '^ *+' conftest.er1 >conftest.err
3755  rm -f conftest.er1
3756  cat conftest.err >&5
3757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758  (exit $ac_status); } &&
3759         { ac_try='test -z "$ac_cxx_werror_flag"
3760                         || test ! -s conftest.err'
3761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762  (eval $ac_try) 2>&5
3763  ac_status=$?
3764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765  (exit $ac_status); }; } &&
3766         { ac_try='test -s conftest$ac_exeext'
3767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768  (eval $ac_try) 2>&5
3769  ac_status=$?
3770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771  (exit $ac_status); }; }; then
3772  :
3773else
3774  echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777CXXFLAGS=
3778fi
3779rm -f conftest.err conftest.$ac_objext \
3780      conftest$ac_exeext conftest.$ac_ext
3781  if test -z "$CXXFLAGS"; then
3782    { 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
3783echo "$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;}
3784  fi
3785fi
3786
3787{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3788echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3789
3790
3791if test x"$MPICXX" = x; then :; else
3792  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3793echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3794  CXX="$MPICXX"
3795fi
3796
3797case "$CXX" in
3798  cl* | */cl* | CL* | */CL* )
3799    case $build in
3800  *-mingw*)
3801    if test "${LD+set}" = set; then :; else
3802      LD=link
3803    fi
3804    ;;
3805 esac
3806 case $enable_doscompile in
3807   msvc)
3808     if test "x${LD+set}" = xset; then :; else
3809       LD=link
3810     fi
3811     ;;
3812 esac
3813
3814    ;;
3815esac
3816
3817ac_ext=c
3818ac_cpp='$CPP $CPPFLAGS'
3819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3821ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822
3823
3824
3825# Get the name of the Fortran compiler and appropriate compiler options
3826case $build in
3827  *-cygwin* | *-mingw*)
3828     if test "$enable_doscompile" = msvc ; then
3829       coin_f77_comps="ifort fl32 compile_f2c"
3830     else
3831       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3832     fi ;;
3833  sparc-sun-solaris*)
3834     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3835  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3836 esac
3837
3838
3839
3840
3841
3842
3843ac_ext=f
3844ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3845ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3847
3848
3849
3850
3851
3852
3853coin_has_f77=yes
3854
3855save_fflags="$FFLAGS"
3856
3857# We delete the cached value, since the test might not have been
3858# performed with our choice of compilers earlier
3859$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3860
3861# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3862# coin_f77_comps to see if there's a program that matches one of the names.
3863# If there's no such program, F77 = unavailable. If we match the name,
3864# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3865# compiler.
3866# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3867
3868
3869{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3870echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3871for ac_prog in $coin_f77_comps
3872do
3873  # Extract the first word of "$ac_prog", so it can be a program name with args.
3874set dummy $ac_prog; ac_word=$2
3875echo "$as_me:$LINENO: checking for $ac_word" >&5
3876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3877if test "${ac_cv_prog_F77+set}" = set; then
3878  echo $ECHO_N "(cached) $ECHO_C" >&6
3879else
3880  if test -n "$F77"; then
3881  ac_cv_prog_F77="$F77" # Let the user override the test.
3882else
3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884for as_dir in $PATH
3885do
3886  IFS=$as_save_IFS
3887  test -z "$as_dir" && as_dir=.
3888  for ac_exec_ext in '' $ac_executable_extensions; do
3889  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890    ac_cv_prog_F77="$ac_prog"
3891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3892    break 2
3893  fi
3894done
3895done
3896
3897fi
3898fi
3899F77=$ac_cv_prog_F77
3900if test -n "$F77"; then
3901  echo "$as_me:$LINENO: result: $F77" >&5
3902echo "${ECHO_T}$F77" >&6
3903else
3904  echo "$as_me:$LINENO: result: no" >&5
3905echo "${ECHO_T}no" >&6
3906fi
3907
3908  test -n "$F77" && break
3909done
3910test -n "$F77" || F77="unavailable"
3911
3912
3913if test "$F77" != "unavailable" ; then
3914  ac_ext=f
3915ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3916ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3917ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3918if test -n "$ac_tool_prefix"; then
3919  for ac_prog in $coin_f77_comps
3920  do
3921    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3922set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3923echo "$as_me:$LINENO: checking for $ac_word" >&5
3924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925if test "${ac_cv_prog_F77+set}" = set; then
3926  echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928  if test -n "$F77"; then
3929  ac_cv_prog_F77="$F77" # Let the user override the test.
3930else
3931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932for as_dir in $PATH
3933do
3934  IFS=$as_save_IFS
3935  test -z "$as_dir" && as_dir=.
3936  for ac_exec_ext in '' $ac_executable_extensions; do
3937  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3938    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
3939    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3940    break 2
3941  fi
3942done
3943done
3944
3945fi
3946fi
3947F77=$ac_cv_prog_F77
3948if test -n "$F77"; then
3949  echo "$as_me:$LINENO: result: $F77" >&5
3950echo "${ECHO_T}$F77" >&6
3951else
3952  echo "$as_me:$LINENO: result: no" >&5
3953echo "${ECHO_T}no" >&6
3954fi
3955
3956    test -n "$F77" && break
3957  done
3958fi
3959if test -z "$F77"; then
3960  ac_ct_F77=$F77
3961  for ac_prog in $coin_f77_comps
3962do
3963  # Extract the first word of "$ac_prog", so it can be a program name with args.
3964set dummy $ac_prog; ac_word=$2
3965echo "$as_me:$LINENO: checking for $ac_word" >&5
3966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3967if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
3968  echo $ECHO_N "(cached) $ECHO_C" >&6
3969else
3970  if test -n "$ac_ct_F77"; then
3971  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
3972else
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976  IFS=$as_save_IFS
3977  test -z "$as_dir" && as_dir=.
3978  for ac_exec_ext in '' $ac_executable_extensions; do
3979  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980    ac_cv_prog_ac_ct_F77="$ac_prog"
3981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982    break 2
3983  fi
3984done
3985done
3986
3987fi
3988fi
3989ac_ct_F77=$ac_cv_prog_ac_ct_F77
3990if test -n "$ac_ct_F77"; then
3991  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
3992echo "${ECHO_T}$ac_ct_F77" >&6
3993else
3994  echo "$as_me:$LINENO: result: no" >&5
3995echo "${ECHO_T}no" >&6
3996fi
3997
3998  test -n "$ac_ct_F77" && break
3999done
4000
4001  F77=$ac_ct_F77
4002fi
4003
4004
4005# Provide some information about the compiler.
4006echo "$as_me:4006:" \
4007     "checking for Fortran 77 compiler version" >&5
4008ac_compiler=`set X $ac_compile; echo $2`
4009{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4010  (eval $ac_compiler --version </dev/null >&5) 2>&5
4011  ac_status=$?
4012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013  (exit $ac_status); }
4014{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4015  (eval $ac_compiler -v </dev/null >&5) 2>&5
4016  ac_status=$?
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); }
4019{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4020  (eval $ac_compiler -V </dev/null >&5) 2>&5
4021  ac_status=$?
4022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023  (exit $ac_status); }
4024rm -f a.out
4025
4026# If we don't use `.F' as extension, the preprocessor is not run on the
4027# input file.  (Note that this only needs to work for GNU compilers.)
4028ac_save_ext=$ac_ext
4029ac_ext=F
4030echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4031echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4032if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4033  echo $ECHO_N "(cached) $ECHO_C" >&6
4034else
4035  cat >conftest.$ac_ext <<_ACEOF
4036      program main
4037#ifndef __GNUC__
4038       choke me
4039#endif
4040
4041      end
4042_ACEOF
4043rm -f conftest.$ac_objext
4044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4045  (eval $ac_compile) 2>conftest.er1
4046  ac_status=$?
4047  grep -v '^ *+' conftest.er1 >conftest.err
4048  rm -f conftest.er1
4049  cat conftest.err >&5
4050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051  (exit $ac_status); } &&
4052         { ac_try='test -z "$ac_f77_werror_flag"
4053                         || test ! -s conftest.err'
4054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4055  (eval $ac_try) 2>&5
4056  ac_status=$?
4057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4058  (exit $ac_status); }; } &&
4059         { ac_try='test -s conftest.$ac_objext'
4060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061  (eval $ac_try) 2>&5
4062  ac_status=$?
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); }; }; then
4065  ac_compiler_gnu=yes
4066else
4067  echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070ac_compiler_gnu=no
4071fi
4072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4073ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4074
4075fi
4076echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4077echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4078ac_ext=$ac_save_ext
4079ac_test_FFLAGS=${FFLAGS+set}
4080ac_save_FFLAGS=$FFLAGS
4081FFLAGS=
4082echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4083echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4084if test "${ac_cv_prog_f77_g+set}" = set; then
4085  echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087  FFLAGS=-g
4088cat >conftest.$ac_ext <<_ACEOF
4089      program main
4090
4091      end
4092_ACEOF
4093rm -f conftest.$ac_objext
4094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095  (eval $ac_compile) 2>conftest.er1
4096  ac_status=$?
4097  grep -v '^ *+' conftest.er1 >conftest.err
4098  rm -f conftest.er1
4099  cat conftest.err >&5
4100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101  (exit $ac_status); } &&
4102         { ac_try='test -z "$ac_f77_werror_flag"
4103                         || test ! -s conftest.err'
4104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105  (eval $ac_try) 2>&5
4106  ac_status=$?
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); }; } &&
4109         { ac_try='test -s conftest.$ac_objext'
4110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4111  (eval $ac_try) 2>&5
4112  ac_status=$?
4113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114  (exit $ac_status); }; }; then
4115  ac_cv_prog_f77_g=yes
4116else
4117  echo "$as_me: failed program was:" >&5
4118sed 's/^/| /' conftest.$ac_ext >&5
4119
4120ac_cv_prog_f77_g=no
4121fi
4122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4123
4124fi
4125echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4126echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4127if test "$ac_test_FFLAGS" = set; then
4128  FFLAGS=$ac_save_FFLAGS
4129elif test $ac_cv_prog_f77_g = yes; then
4130  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4131    FFLAGS="-g -O2"
4132  else
4133    FFLAGS="-g"
4134  fi
4135else
4136  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4137    FFLAGS="-O2"
4138  else
4139    FFLAGS=
4140  fi
4141fi
4142
4143G77=`test $ac_compiler_gnu = yes && echo yes`
4144ac_ext=f
4145ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4146ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4148
4149else
4150  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4151echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4152fi
4153
4154FFLAGS="$save_fflags"
4155
4156# Check if a project specific FFLAGS variable has been set
4157if test x$COIN_PRJCT != x; then
4158  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4159  if test x$coin_tmp = xset; then
4160    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4161  fi
4162fi
4163
4164if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4165
4166  coin_add_fflags=
4167  coin_opt_fflags=
4168  coin_dbg_fflags=
4169  coin_warn_fflags=
4170
4171  if test "$G77" = "yes"; then
4172    coin_opt_fflags="-O3 -fomit-frame-pointer"
4173    coin_add_fflags="-pipe"
4174    coin_dbg_fflags="-g"
4175    case $enable_doscompile in
4176      mingw)
4177        FFLAGS="-mno-cygwin"
4178        cat >conftest.$ac_ext <<_ACEOF
4179      program main
4180      write(*,*) 'Hello world'
4181      end
4182_ACEOF
4183rm -f conftest.$ac_objext conftest$ac_exeext
4184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4185  (eval $ac_link) 2>conftest.er1
4186  ac_status=$?
4187  grep -v '^ *+' conftest.er1 >conftest.err
4188  rm -f conftest.er1
4189  cat conftest.err >&5
4190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191  (exit $ac_status); } &&
4192         { ac_try='test -z "$ac_f77_werror_flag"
4193                         || test ! -s conftest.err'
4194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4195  (eval $ac_try) 2>&5
4196  ac_status=$?
4197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198  (exit $ac_status); }; } &&
4199         { ac_try='test -s conftest$ac_exeext'
4200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201  (eval $ac_try) 2>&5
4202  ac_status=$?
4203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204  (exit $ac_status); }; }; then
4205  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4206else
4207  echo "$as_me: failed program was:" >&5
4208sed 's/^/| /' conftest.$ac_ext >&5
4209
4210fi
4211rm -f conftest.err conftest.$ac_objext \
4212      conftest$ac_exeext conftest.$ac_ext
4213        FFLAGS=
4214      ;;
4215    esac
4216  else
4217    case $build in
4218      *-cygwin* | *-mingw*)
4219        case $F77 in
4220          ifort* | */ifort* | IFORT* | */IFORT* )
4221            coin_opt_fflags='-O3'
4222            coin_add_fflags='-fpp -nologo -MT'
4223            coin_dbg_fflags='-debug'
4224          ;;
4225          compile_f2c*)
4226            coin_opt_fflags='-MT -O2'
4227            coin_add_fflags='-nologo -wd4996'
4228            coin_dbg_fflags='-MTd'
4229          ;;
4230        esac
4231        ;;
4232      *-linux-*)
4233        case $F77 in
4234          ifc* | */ifc* | ifort* | */ifort*)
4235            coin_opt_fflags="-O3 -ip"
4236            coin_add_fflags="-cm -w90 -w95"
4237            coin_dbg_fflags="-g -CA -CB -CS"
4238            # Check if -i_dynamic is necessary (for new glibc library)
4239            FFLAGS=
4240            cat >conftest.$ac_ext <<_ACEOF
4241      program main
4242      write(*,*) 'Hello world'
4243      end
4244_ACEOF
4245rm -f conftest.$ac_objext conftest$ac_exeext
4246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4247  (eval $ac_link) 2>conftest.er1
4248  ac_status=$?
4249  grep -v '^ *+' conftest.er1 >conftest.err
4250  rm -f conftest.er1
4251  cat conftest.err >&5
4252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253  (exit $ac_status); } &&
4254         { ac_try='test -z "$ac_f77_werror_flag"
4255                         || test ! -s conftest.err'
4256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257  (eval $ac_try) 2>&5
4258  ac_status=$?
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); }; } &&
4261         { ac_try='test -s conftest$ac_exeext'
4262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263  (eval $ac_try) 2>&5
4264  ac_status=$?
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); }; }; then
4267  :
4268else
4269  echo "$as_me: failed program was:" >&5
4270sed 's/^/| /' conftest.$ac_ext >&5
4271
4272coin_add_fflags="-i_dynamic $coin_add_fflags"
4273fi
4274rm -f conftest.err conftest.$ac_objext \
4275      conftest$ac_exeext conftest.$ac_ext
4276            ;;
4277          pgf77* | */pgf77* | pgf90* | */pgf90*)
4278            coin_opt_fflags="-fast"
4279            coin_add_fflags="-Kieee -pc 64"
4280            coin_dbg_fflags="-g"
4281          ;;
4282        esac
4283        ;;
4284      *-ibm-*)
4285        case "$F77" in
4286          xlf* | */xlf* | mpxlf* | */mpxlf* )
4287            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4288            coin_add_fflags="-bmaxdata:0x80000000"
4289            coin_dbg_fflags="-g -C"
4290            ;;
4291        esac
4292        ;;
4293      *-hp-*)
4294        coin_opt_fflags="+O3"
4295        coin_add_fflags="+U77"
4296        coin_dbg_fflags="-C -g"
4297        ;;
4298      *-sun-*)
4299        coin_opt_fflags="-O4"
4300        coin_dbg_fflags="-g"
4301        ;;
4302      *-sgi-*)
4303        coin_opt_fflags="-O5 -OPT:Olimit=0"
4304        coin_dbg_fflags="-g"
4305        ;;
4306    esac
4307  fi
4308
4309  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4310    coin_dbg_fflags="-g"
4311  fi
4312
4313  if test -z "$coin_opt_fflags"; then
4314    # Try if -O option works if nothing else is set
4315    FFLAGS=-O
4316    cat >conftest.$ac_ext <<_ACEOF
4317      program main
4318      integer i
4319      end
4320_ACEOF
4321rm -f conftest.$ac_objext conftest$ac_exeext
4322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4323  (eval $ac_link) 2>conftest.er1
4324  ac_status=$?
4325  grep -v '^ *+' conftest.er1 >conftest.err
4326  rm -f conftest.er1
4327  cat conftest.err >&5
4328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329  (exit $ac_status); } &&
4330         { ac_try='test -z "$ac_f77_werror_flag"
4331                         || test ! -s conftest.err'
4332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333  (eval $ac_try) 2>&5
4334  ac_status=$?
4335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336  (exit $ac_status); }; } &&
4337         { ac_try='test -s conftest$ac_exeext'
4338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339  (eval $ac_try) 2>&5
4340  ac_status=$?
4341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342  (exit $ac_status); }; }; then
4343  coin_opt_fflags="-O"
4344else
4345  echo "$as_me: failed program was:" >&5
4346sed 's/^/| /' conftest.$ac_ext >&5
4347
4348fi
4349rm -f conftest.err conftest.$ac_objext \
4350      conftest$ac_exeext conftest.$ac_ext
4351  fi
4352
4353  # if PM doesn't want the warning messages, take them out
4354  if test x"$coin_skip_warn_fflags" = xyes; then
4355    coin_warn_fflags=
4356  fi
4357
4358  if test x${DBG_FFLAGS+set} != xset; then
4359    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4360  fi
4361  if test x${OPT_FFLAGS+set} != xset; then
4362    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4363  fi
4364
4365  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4366  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4367
4368  if test "$coin_debug_compile" = "true"; then
4369    FFLAGS="$DBG_FFLAGS"
4370  else
4371    FFLAGS="$OPT_FFLAGS"
4372  fi
4373else
4374  FFLAGS="$FFLAGS $ADD_FFLAGS"
4375  if test x${DBG_FFLAGS+set} != xset; then
4376    DBG_FFLAGS="$FFLAGS"
4377  fi
4378  if test x${OPT_FFLAGS+set} != xset; then
4379    OPT_FFLAGS="$FFLAGS"
4380  fi
4381fi
4382
4383# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4384case "$FFLAGS" in
4385  *-mno-cygwin*)
4386    if test x${CPPFLAGS+set} != xset ; then
4387      CPPFLAGS="-mno-cygwin"
4388    else
4389      case "$CPPFLAGS" in
4390        *-mno-cygwin*)
4391          ;;
4392        *)
4393          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4394          ;;
4395      esac
4396    fi ;;
4397esac
4398
4399# Try if FFLAGS works
4400if test "$F77" != "unavailable" ; then
4401  cat >conftest.$ac_ext <<_ACEOF
4402      program main
4403      integer i
4404      end
4405_ACEOF
4406rm -f conftest.$ac_objext conftest$ac_exeext
4407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4408  (eval $ac_link) 2>conftest.er1
4409  ac_status=$?
4410  grep -v '^ *+' conftest.er1 >conftest.err
4411  rm -f conftest.er1
4412  cat conftest.err >&5
4413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414  (exit $ac_status); } &&
4415         { ac_try='test -z "$ac_f77_werror_flag"
4416                         || test ! -s conftest.err'
4417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418  (eval $ac_try) 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }; } &&
4422         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4428  :
4429else
4430  echo "$as_me: failed program was:" >&5
4431sed 's/^/| /' conftest.$ac_ext >&5
4432
4433FFLAGS=
4434fi
4435rm -f conftest.err conftest.$ac_objext \
4436      conftest$ac_exeext conftest.$ac_ext
4437  if test -z "$FFLAGS"; then
4438    { 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
4439echo "$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;}
4440    FFLAGS='-O'
4441    cat >conftest.$ac_ext <<_ACEOF
4442      program main
4443      integer i
4444      end
4445_ACEOF
4446rm -f conftest.$ac_objext conftest$ac_exeext
4447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4448  (eval $ac_link) 2>conftest.er1
4449  ac_status=$?
4450  grep -v '^ *+' conftest.er1 >conftest.err
4451  rm -f conftest.er1
4452  cat conftest.err >&5
4453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454  (exit $ac_status); } &&
4455         { ac_try='test -z "$ac_f77_werror_flag"
4456                         || test ! -s conftest.err'
4457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458  (eval $ac_try) 2>&5
4459  ac_status=$?
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); }; } &&
4462         { ac_try='test -s conftest$ac_exeext'
4463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464  (eval $ac_try) 2>&5
4465  ac_status=$?
4466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467  (exit $ac_status); }; }; then
4468  :
4469else
4470  echo "$as_me: failed program was:" >&5
4471sed 's/^/| /' conftest.$ac_ext >&5
4472
4473FFLAGS=
4474fi
4475rm -f conftest.err conftest.$ac_objext \
4476      conftest$ac_exeext conftest.$ac_ext
4477    if test -z "$FFLAGS"; then
4478      { 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
4479echo "$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;}
4480    fi
4481  fi
4482fi
4483
4484{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4485echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4486
4487
4488if test x"$MPIF77" = x; then :; else
4489  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4490echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4491  F77="$MPIF77"
4492fi
4493
4494case "$F77" in
4495  ifort* | */ifort* | IFORT* | */IFORT*)
4496    case $build in
4497  *-mingw*)
4498    if test "${LD+set}" = set; then :; else
4499      LD=link
4500    fi
4501    ;;
4502 esac
4503 case $enable_doscompile in
4504   msvc)
4505     if test "x${LD+set}" = xset; then :; else
4506       LD=link
4507     fi
4508     ;;
4509 esac
4510
4511    ;;
4512esac
4513
4514ac_ext=c
4515ac_cpp='$CPP $CPPFLAGS'
4516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4518ac_compiler_gnu=$ac_cv_c_compiler_gnu
4519
4520
4521
4522# Initialize automake and libtool
4523# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4524{
4525
4526
4527
4528# START
4529
4530# On Cygwin, building DLLs doesn't work
4531case $build in
4532  *-cygwin*)
4533    coin_disable_shared=yes
4534    platform=Cygwin
4535  ;;
4536  *-mingw*)
4537    coin_disable_shared=yes
4538    platform="Msys"
4539#    case "$CXX" in
4540#      cl*)
4541#        coin_disable_shared=yes
4542#        platform="Msys with cl"
4543#    ;;
4544#    esac
4545  ;;
4546esac
4547if test x"$coin_disable_shared" = xyes; then
4548  if test x"$enable_shared" = xyes; then
4549    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4550echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4551  fi
4552  enable_shared=no
4553fi
4554# By default, we only want the shared objects to be compiled
4555# Check whether --enable-static or --disable-static was given.
4556if test "${enable_static+set}" = set; then
4557  enableval="$enable_static"
4558  p=${PACKAGE-default}
4559    case $enableval in
4560    yes) enable_static=yes ;;
4561    no) enable_static=no ;;
4562    *)
4563     enable_static=no
4564      # Look at the argument we got.  We use all the common list separators.
4565      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4566      for pkg in $enableval; do
4567        IFS="$lt_save_ifs"
4568        if test "X$pkg" = "X$p"; then
4569          enable_static=yes
4570        fi
4571      done
4572      IFS="$lt_save_ifs"
4573      ;;
4574    esac
4575else
4576  enable_static=no
4577fi;
4578
4579
4580
4581
4582# Initialize automake
4583echo "$as_me:$LINENO: checking for egrep" >&5
4584echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4585if test "${ac_cv_prog_egrep+set}" = set; then
4586  echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
4588  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4589    then ac_cv_prog_egrep='grep -E'
4590    else ac_cv_prog_egrep='egrep'
4591    fi
4592fi
4593echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4594echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4595 EGREP=$ac_cv_prog_egrep
4596
4597
4598am__api_version="1.9"
4599# Find a good install program.  We prefer a C program (faster),
4600# so one script is as good as another.  But avoid the broken or
4601# incompatible versions:
4602# SysV /etc/install, /usr/sbin/install
4603# SunOS /usr/etc/install
4604# IRIX /sbin/install
4605# AIX /bin/install
4606# AmigaOS /C/install, which installs bootblocks on floppy discs
4607# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4608# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4609# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4610# OS/2's system install, which has a completely different semantic
4611# ./install, which can be erroneously created by make from ./install.sh.
4612echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4613echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4614if test -z "$INSTALL"; then
4615if test "${ac_cv_path_install+set}" = set; then
4616  echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621  IFS=$as_save_IFS
4622  test -z "$as_dir" && as_dir=.
4623  # Account for people who put trailing slashes in PATH elements.
4624case $as_dir/ in
4625  ./ | .// | /cC/* | \
4626  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4627  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4628  /usr/ucb/* ) ;;
4629  *)
4630    # OSF1 and SCO ODT 3.0 have their own names for install.
4631    # Don't use installbsd from OSF since it installs stuff as root
4632    # by default.
4633    for ac_prog in ginstall scoinst install; do
4634      for ac_exec_ext in '' $ac_executable_extensions; do
4635        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4636          if test $ac_prog = install &&
4637            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4638            # AIX install.  It has an incompatible calling convention.
4639            :
4640          elif test $ac_prog = install &&
4641            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4642            # program-specific install script used by HP pwplus--don't use.
4643            :
4644          else
4645            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4646            break 3
4647          fi
4648        fi
4649      done
4650    done
4651    ;;
4652esac
4653done
4654
4655
4656fi
4657  if test "${ac_cv_path_install+set}" = set; then
4658    INSTALL=$ac_cv_path_install
4659  else
4660    # As a last resort, use the slow shell script.  We don't cache a
4661    # path for INSTALL within a source directory, because that will
4662    # break other packages using the cache if that directory is
4663    # removed, or if the path is relative.
4664    INSTALL=$ac_install_sh
4665  fi
4666fi
4667echo "$as_me:$LINENO: result: $INSTALL" >&5
4668echo "${ECHO_T}$INSTALL" >&6
4669
4670# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4671# It thinks the first close brace ends the variable substitution.
4672test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4673
4674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4675
4676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4677
4678echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4679echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4680# Just in case
4681sleep 1
4682echo timestamp > conftest.file
4683# Do `set' in a subshell so we don't clobber the current shell's
4684# arguments.  Must try -L first in case configure is actually a
4685# symlink; some systems play weird games with the mod time of symlinks
4686# (eg FreeBSD returns the mod time of the symlink's containing
4687# directory).
4688if (
4689   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4690   if test "$*" = "X"; then
4691      # -L didn't work.
4692      set X `ls -t $srcdir/configure conftest.file`
4693   fi
4694   rm -f conftest.file
4695   if test "$*" != "X $srcdir/configure conftest.file" \
4696      && test "$*" != "X conftest.file $srcdir/configure"; then
4697
4698      # If neither matched, then we have a broken ls.  This can happen
4699      # if, for instance, CONFIG_SHELL is bash and it inherits a
4700      # broken ls alias from the environment.  This has actually
4701      # happened.  Such a system could not be considered "sane".
4702      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4703alias in your environment" >&5
4704echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4705alias in your environment" >&2;}
4706   { (exit 1); exit 1; }; }
4707   fi
4708
4709   test "$2" = conftest.file
4710   )
4711then
4712   # Ok.
4713   :
4714else
4715   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4716Check your system clock" >&5
4717echo "$as_me: error: newly created file is older than distributed files!
4718Check your system clock" >&2;}
4719   { (exit 1); exit 1; }; }
4720fi
4721echo "$as_me:$LINENO: result: yes" >&5
4722echo "${ECHO_T}yes" >&6
4723test "$program_prefix" != NONE &&
4724  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4725# Use a double $ so make ignores it.
4726test "$program_suffix" != NONE &&
4727  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4728# Double any \ or $.  echo might interpret backslashes.
4729# By default was `s,x,x', remove it if useless.
4730cat <<\_ACEOF >conftest.sed
4731s/[\\$]/&&/g;s/;s,x,x,$//
4732_ACEOF
4733program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4734rm conftest.sed
4735
4736# expand $ac_aux_dir to an absolute path
4737am_aux_dir=`cd $ac_aux_dir && pwd`
4738
4739test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4740# Use eval to expand $SHELL
4741if eval "$MISSING --run true"; then
4742  am_missing_run="$MISSING --run "
4743else
4744  am_missing_run=
4745  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4746echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4747fi
4748
4749if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4750  # We used to keeping the `.' as first argument, in order to
4751  # allow $(mkdir_p) to be used without argument.  As in
4752  #   $(mkdir_p) $(somedir)
4753  # where $(somedir) is conditionally defined.  However this is wrong
4754  # for two reasons:
4755  #  1. if the package is installed by a user who cannot write `.'
4756  #     make install will fail,
4757  #  2. the above comment should most certainly read
4758  #     $(mkdir_p) $(DESTDIR)$(somedir)
4759  #     so it does not work when $(somedir) is undefined and
4760  #     $(DESTDIR) is not.
4761  #  To support the latter case, we have to write
4762  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4763  #  so the `.' trick is pointless.
4764  mkdir_p='mkdir -p --'
4765else
4766  # On NextStep and OpenStep, the `mkdir' command does not
4767  # recognize any option.  It will interpret all options as
4768  # directories to create, and then abort because `.' already
4769  # exists.
4770  for d in ./-p ./--version;
4771  do
4772    test -d $d && rmdir $d
4773  done
4774  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4775  if test -f "$ac_aux_dir/mkinstalldirs"; then
4776    mkdir_p='$(mkinstalldirs)'
4777  else
4778    mkdir_p='$(install_sh) -d'
4779  fi
4780fi
4781
4782for ac_prog in gawk mawk nawk awk
4783do
4784  # Extract the first word of "$ac_prog", so it can be a program name with args.
4785set dummy $ac_prog; ac_word=$2
4786echo "$as_me:$LINENO: checking for $ac_word" >&5
4787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4788if test "${ac_cv_prog_AWK+set}" = set; then
4789  echo $ECHO_N "(cached) $ECHO_C" >&6
4790else
4791  if test -n "$AWK"; then
4792  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4793else
4794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795for as_dir in $PATH
4796do
4797  IFS=$as_save_IFS
4798  test -z "$as_dir" && as_dir=.
4799  for ac_exec_ext in '' $ac_executable_extensions; do
4800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4801    ac_cv_prog_AWK="$ac_prog"
4802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4803    break 2
4804  fi
4805done
4806done
4807
4808fi
4809fi
4810AWK=$ac_cv_prog_AWK
4811if test -n "$AWK"; then
4812  echo "$as_me:$LINENO: result: $AWK" >&5
4813echo "${ECHO_T}$AWK" >&6
4814else
4815  echo "$as_me:$LINENO: result: no" >&5
4816echo "${ECHO_T}no" >&6
4817fi
4818
4819  test -n "$AWK" && break
4820done
4821
4822echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4823echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4824set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4825if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4826  echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828  cat >conftest.make <<\_ACEOF
4829all:
4830        @echo 'ac_maketemp="$(MAKE)"'
4831_ACEOF
4832# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4833eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4834if test -n "$ac_maketemp"; then
4835  eval ac_cv_prog_make_${ac_make}_set=yes
4836else
4837  eval ac_cv_prog_make_${ac_make}_set=no
4838fi
4839rm -f conftest.make
4840fi
4841if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4842  echo "$as_me:$LINENO: result: yes" >&5
4843echo "${ECHO_T}yes" >&6
4844  SET_MAKE=
4845else
4846  echo "$as_me:$LINENO: result: no" >&5
4847echo "${ECHO_T}no" >&6
4848  SET_MAKE="MAKE=${MAKE-make}"
4849fi
4850
4851rm -rf .tst 2>/dev/null
4852mkdir .tst 2>/dev/null
4853if test -d .tst; then
4854  am__leading_dot=.
4855else
4856  am__leading_dot=_
4857fi
4858rmdir .tst 2>/dev/null
4859
4860DEPDIR="${am__leading_dot}deps"
4861
4862          ac_config_commands="$ac_config_commands depfiles"
4863
4864
4865am_make=${MAKE-make}
4866cat > confinc << 'END'
4867am__doit:
4868        @echo done
4869.PHONY: am__doit
4870END
4871# If we don't find an include directive, just comment out the code.
4872echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4873echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4874am__include="#"
4875am__quote=
4876_am_result=none
4877# First try GNU make style include.
4878echo "include confinc" > confmf
4879# We grep out `Entering directory' and `Leaving directory'
4880# messages which can occur if `w' ends up in MAKEFLAGS.
4881# In particular we don't look at `^make:' because GNU make might
4882# be invoked under some other name (usually "gmake"), in which
4883# case it prints its new name instead of `make'.
4884if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4885   am__include=include
4886   am__quote=
4887   _am_result=GNU
4888fi
4889# Now try BSD make style include.
4890if test "$am__include" = "#"; then
4891   echo '.include "confinc"' > confmf
4892   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4893      am__include=.include
4894      am__quote="\""
4895      _am_result=BSD
4896   fi
4897fi
4898
4899
4900echo "$as_me:$LINENO: result: $_am_result" >&5
4901echo "${ECHO_T}$_am_result" >&6
4902rm -f confinc confmf
4903
4904# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4905if test "${enable_dependency_tracking+set}" = set; then
4906  enableval="$enable_dependency_tracking"
4907
4908fi;
4909if test "x$enable_dependency_tracking" != xno; then
4910  am_depcomp="$ac_aux_dir/depcomp"
4911  AMDEPBACKSLASH='\'
4912fi
4913
4914
4915if test "x$enable_dependency_tracking" != xno; then
4916  AMDEP_TRUE=
4917  AMDEP_FALSE='#'
4918else
4919  AMDEP_TRUE='#'
4920  AMDEP_FALSE=
4921fi
4922
4923
4924
4925
4926
4927# AC_MSG_NOTICE([Beginning automake initialisation.])
4928# Stuff for automake
4929# test to see if srcdir already configured
4930if test "`cd $srcdir && pwd`" != "`pwd`" &&
4931   test -f $srcdir/config.status; then
4932  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4933echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4934   { (exit 1); exit 1; }; }
4935fi
4936
4937# test whether we have cygpath
4938if test -z "$CYGPATH_W"; then
4939  if (cygpath --version) >/dev/null 2>/dev/null; then
4940    CYGPATH_W='cygpath -w'
4941  else
4942    CYGPATH_W=echo
4943  fi
4944fi
4945
4946
4947# Define the identity of the package.
4948 PACKAGE='cbc'
4949 VERSION='0.1'
4950
4951
4952cat >>confdefs.h <<_ACEOF
4953#define PACKAGE "$PACKAGE"
4954_ACEOF
4955
4956
4957cat >>confdefs.h <<_ACEOF
4958#define VERSION "$VERSION"
4959_ACEOF
4960
4961# Some tools Automake needs.
4962
4963ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4964
4965
4966AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4967
4968
4969AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4970
4971
4972AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4973
4974
4975MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4976
4977install_sh=${install_sh-"$am_aux_dir/install-sh"}
4978
4979# Installed binaries are usually stripped using `strip' when the user
4980# run `make install-strip'.  However `strip' might not be the right
4981# tool to use in cross-compilation environments, therefore Automake
4982# will honor the `STRIP' environment variable to overrule this program.
4983if test "$cross_compiling" != no; then
4984  if test -n "$ac_tool_prefix"; then
4985  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4986set dummy ${ac_tool_prefix}strip; ac_word=$2
4987echo "$as_me:$LINENO: checking for $ac_word" >&5
4988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4989if test "${ac_cv_prog_STRIP+set}" = set; then
4990  echo $ECHO_N "(cached) $ECHO_C" >&6
4991else
4992  if test -n "$STRIP"; then
4993  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4994else
4995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996for as_dir in $PATH
4997do
4998  IFS=$as_save_IFS
4999  test -z "$as_dir" && as_dir=.
5000  for ac_exec_ext in '' $ac_executable_extensions; do
5001  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5002    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5003    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5004    break 2
5005  fi
5006done
5007done
5008
5009fi
5010fi
5011STRIP=$ac_cv_prog_STRIP
5012if test -n "$STRIP"; then
5013  echo "$as_me:$LINENO: result: $STRIP" >&5
5014echo "${ECHO_T}$STRIP" >&6
5015else
5016  echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
5018fi
5019
5020fi
5021if test -z "$ac_cv_prog_STRIP"; then
5022  ac_ct_STRIP=$STRIP
5023  # Extract the first word of "strip", so it can be a program name with args.
5024set dummy strip; ac_word=$2
5025echo "$as_me:$LINENO: checking for $ac_word" >&5
5026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5027if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5028  echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030  if test -n "$ac_ct_STRIP"; then
5031  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036  IFS=$as_save_IFS
5037  test -z "$as_dir" && as_dir=.
5038  for ac_exec_ext in '' $ac_executable_extensions; do
5039  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040    ac_cv_prog_ac_ct_STRIP="strip"
5041    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042    break 2
5043  fi
5044done
5045done
5046
5047  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5048fi
5049fi
5050ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5051if test -n "$ac_ct_STRIP"; then
5052  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5053echo "${ECHO_T}$ac_ct_STRIP" >&6
5054else
5055  echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057fi
5058
5059  STRIP=$ac_ct_STRIP
5060else
5061  STRIP="$ac_cv_prog_STRIP"
5062fi
5063
5064fi
5065INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5066
5067# We need awk for the "check" target.  The system "awk" is bad on
5068# some platforms.
5069# Always define AMTAR for backward compatibility.
5070
5071AMTAR=${AMTAR-"${am_missing_run}tar"}
5072
5073am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5074
5075
5076
5077
5078depcc="$CC"   am_compiler_list=
5079
5080echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5081echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5082if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5083  echo $ECHO_N "(cached) $ECHO_C" >&6
5084else
5085  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5086  # We make a subdir and do the tests there.  Otherwise we can end up
5087  # making bogus files that we don't know about and never remove.  For
5088  # instance it was reported that on HP-UX the gcc test will end up
5089  # making a dummy file named `D' -- because `-MD' means `put the output
5090  # in D'.
5091  mkdir conftest.dir
5092  # Copy depcomp to subdir because otherwise we won't find it if we're
5093  # using a relative directory.
5094  cp "$am_depcomp" conftest.dir
5095  cd conftest.dir
5096  # We will build objects and dependencies in a subdirectory because
5097  # it helps to detect inapplicable dependency modes.  For instance
5098  # both Tru64's cc and ICC support -MD to output dependencies as a
5099  # side effect of compilation, but ICC will put the dependencies in
5100  # the current directory while Tru64 will put them in the object
5101  # directory.
5102  mkdir sub
5103
5104  am_cv_CC_dependencies_compiler_type=none
5105  if test "$am_compiler_list" = ""; then
5106     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5107  fi
5108  for depmode in $am_compiler_list; do
5109    # Setup a source with many dependencies, because some compilers
5110    # like to wrap large dependency lists on column 80 (with \), and
5111    # we should not choose a depcomp mode which is confused by this.
5112    #
5113    # We need to recreate these files for each test, as the compiler may
5114    # overwrite some of them when testing with obscure command lines.
5115    # This happens at least with the AIX C compiler.
5116    : > sub/conftest.c
5117    for i in 1 2 3 4 5 6; do
5118      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5119      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5120      # Solaris 8's {/usr,}/bin/sh.
5121      touch sub/conftst$i.h
5122    done
5123    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5124
5125    case $depmode in
5126    nosideeffect)
5127      # after this tag, mechanisms are not by side-effect, so they'll
5128      # only be used when explicitly requested
5129      if test "x$enable_dependency_tracking" = xyes; then
5130        continue
5131      else
5132        break
5133      fi
5134      ;;
5135    none) break ;;
5136    esac
5137    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5138    # mode.  It turns out that the SunPro C++ compiler does not properly
5139    # handle `-M -o', and we need to detect this.
5140    if depmode=$depmode \
5141       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5142       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5143       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5144         >/dev/null 2>conftest.err &&
5145       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5146       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5147       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5148      # icc doesn't choke on unknown options, it will just issue warnings
5149      # or remarks (even with -Werror).  So we grep stderr for any message
5150      # that says an option was ignored or not supported.
5151      # When given -MP, icc 7.0 and 7.1 complain thusly:
5152      #   icc: Command line warning: ignoring option '-M'; no argument required
5153      # The diagnosis changed in icc 8.0:
5154      #   icc: Command line remark: option '-MP' not supported
5155      if (grep 'ignoring option' conftest.err ||
5156          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5157        am_cv_CC_dependencies_compiler_type=$depmode
5158        break
5159      fi
5160    fi
5161  done
5162
5163  cd ..
5164  rm -rf conftest.dir
5165else
5166  am_cv_CC_dependencies_compiler_type=none
5167fi
5168
5169fi
5170echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5171echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5172CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5173
5174
5175
5176if
5177  test "x$enable_dependency_tracking" != xno \
5178  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5179  am__fastdepCC_TRUE=
5180  am__fastdepCC_FALSE='#'
5181else
5182  am__fastdepCC_TRUE='#'
5183  am__fastdepCC_FALSE=
5184fi
5185
5186
5187depcc="$CXX"  am_compiler_list=
5188
5189echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5190echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5191if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5192  echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5195  # We make a subdir and do the tests there.  Otherwise we can end up
5196  # making bogus files that we don't know about and never remove.  For
5197  # instance it was reported that on HP-UX the gcc test will end up
5198  # making a dummy file named `D' -- because `-MD' means `put the output
5199  # in D'.
5200  mkdir conftest.dir
5201  # Copy depcomp to subdir because otherwise we won't find it if we're
5202  # using a relative directory.
5203  cp "$am_depcomp" conftest.dir
5204  cd conftest.dir
5205  # We will build objects and dependencies in a subdirectory because
5206  # it helps to detect inapplicable dependency modes.  For instance
5207  # both Tru64's cc and ICC support -MD to output dependencies as a
5208  # side effect of compilation, but ICC will put the dependencies in
5209  # the current directory while Tru64 will put them in the object
5210  # directory.
5211  mkdir sub
5212
5213  am_cv_CXX_dependencies_compiler_type=none
5214  if test "$am_compiler_list" = ""; then
5215     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5216  fi
5217  for depmode in $am_compiler_list; do
5218    # Setup a source with many dependencies, because some compilers
5219    # like to wrap large dependency lists on column 80 (with \), and
5220    # we should not choose a depcomp mode which is confused by this.
5221    #
5222    # We need to recreate these files for each test, as the compiler may
5223    # overwrite some of them when testing with obscure command lines.
5224    # This happens at least with the AIX C compiler.
5225    : > sub/conftest.c
5226    for i in 1 2 3 4 5 6; do
5227      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5228      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5229      # Solaris 8's {/usr,}/bin/sh.
5230      touch sub/conftst$i.h
5231    done
5232    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5233
5234    case $depmode in
5235    nosideeffect)
5236      # after this tag, mechanisms are not by side-effect, so they'll
5237      # only be used when explicitly requested
5238      if test "x$enable_dependency_tracking" = xyes; then
5239        continue
5240      else
5241        break
5242      fi
5243      ;;
5244    none) break ;;
5245    esac
5246    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5247    # mode.  It turns out that the SunPro C++ compiler does not properly
5248    # handle `-M -o', and we need to detect this.
5249    if depmode=$depmode \
5250       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5251       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5252       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5253         >/dev/null 2>conftest.err &&
5254       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5255       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5256       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5257      # icc doesn't choke on unknown options, it will just issue warnings
5258      # or remarks (even with -Werror).  So we grep stderr for any message
5259      # that says an option was ignored or not supported.
5260      # When given -MP, icc 7.0 and 7.1 complain thusly:
5261      #   icc: Command line warning: ignoring option '-M'; no argument required
5262      # The diagnosis changed in icc 8.0:
5263      #   icc: Command line remark: option '-MP' not supported
5264      if (grep 'ignoring option' conftest.err ||
5265          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5266        am_cv_CXX_dependencies_compiler_type=$depmode
5267        break
5268      fi
5269    fi
5270  done
5271
5272  cd ..
5273  rm -rf conftest.dir
5274else
5275  am_cv_CXX_dependencies_compiler_type=none
5276fi
5277
5278fi
5279echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5280echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5281CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5282
5283
5284
5285if
5286  test "x$enable_dependency_tracking" != xno \
5287  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5288  am__fastdepCXX_TRUE=
5289  am__fastdepCXX_FALSE='#'
5290else
5291  am__fastdepCXX_TRUE='#'
5292  am__fastdepCXX_FALSE=
5293fi
5294
5295
5296
5297echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5298echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5299    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5300if test "${enable_maintainer_mode+set}" = set; then
5301  enableval="$enable_maintainer_mode"
5302  USE_MAINTAINER_MODE=$enableval
5303else
5304  USE_MAINTAINER_MODE=no
5305fi;
5306  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5307echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5308
5309
5310if test $USE_MAINTAINER_MODE = yes; then
5311  MAINTAINER_MODE_TRUE=
5312  MAINTAINER_MODE_FALSE='#'
5313else
5314  MAINTAINER_MODE_TRUE='#'
5315  MAINTAINER_MODE_FALSE=
5316fi
5317
5318  MAINT=$MAINTAINER_MODE_TRUE
5319
5320
5321
5322coin_have_externals=no
5323if test "$enable_maintainer_mode" = yes; then
5324
5325  # If maintainer mode is chosen, we make sure that the correct versions
5326  # of the tools are used, and that we know where libtool.m4 is (to
5327  # recreate acinclude.m4)
5328
5329
5330  LIBTOOLM4=
5331  # Normally, $HOME
5332  AUTOTOOLS_DFLT=$HOME
5333
5334  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5335echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5336if test "${ac_cv_use_correct_autotools+set}" = set; then
5337  echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339  ac_cv_use_correct_autotools=check
5340fi
5341echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5342echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5343
5344  if test $ac_cv_use_correct_autotools = check; then
5345    ac_cv_use_correct_autotools=yes
5346    # Check if we have autoconf
5347    # Extract the first word of "autoconf", so it can be a program name with args.
5348set dummy autoconf; ac_word=$2
5349echo "$as_me:$LINENO: checking for $ac_word" >&5
5350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5351if test "${ac_cv_prog_have_autoconf+set}" = set; then
5352  echo $ECHO_N "(cached) $ECHO_C" >&6
5353else
5354  if test -n "$have_autoconf"; then
5355  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5356else
5357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5358for as_dir in $PATH
5359do
5360  IFS=$as_save_IFS
5361  test -z "$as_dir" && as_dir=.
5362  for ac_exec_ext in '' $ac_executable_extensions; do
5363  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5364    ac_cv_prog_have_autoconf="yes"
5365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5366    break 2
5367  fi
5368done
5369done
5370
5371  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5372fi
5373fi
5374have_autoconf=$ac_cv_prog_have_autoconf
5375if test -n "$have_autoconf"; then
5376  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5377echo "${ECHO_T}$have_autoconf" >&6
5378else
5379  echo "$as_me:$LINENO: result: no" >&5
5380echo "${ECHO_T}no" >&6
5381fi
5382
5383    if test $have_autoconf = no; then
5384      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5385echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5386   { (exit 1); exit 1; }; }
5387    fi
5388
5389    # Check whether autoconf is the correct version
5390    correct_version='2.59'
5391    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5392    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5393echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5394    autoconf --version > confauto.out 2>&1
5395    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5396      echo "$as_me:$LINENO: result: yes" >&5
5397echo "${ECHO_T}yes" >&6
5398    else
5399      rm -f confauto.out
5400      echo "$as_me:$LINENO: result: no" >&5
5401echo "${ECHO_T}no" >&6
5402      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5403echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5404   { (exit 1); exit 1; }; }
5405    fi
5406    rm -f confauto.out
5407
5408    # Check if the executable autoconf is picked up from the correct location
5409    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5410echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5411    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5412    autoconf_dir=`cd $autoconf_dir; pwd`
5413    if test x$AUTOTOOLS_DIR = x; then
5414      want_dir=$AUTOTOOLS_DFLT/bin
5415    else
5416      want_dir=$AUTOTOOLS_DIR/bin
5417    fi
5418    if test $autoconf_dir = `cd $want_dir; pwd`; then
5419      echo "$as_me:$LINENO: result: yes" >&5
5420echo "${ECHO_T}yes" >&6
5421    else
5422      rm -f confauto.out
5423      echo "$as_me:$LINENO: result: no" >&5
5424echo "${ECHO_T}no" >&6
5425      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5426echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5427   { (exit 1); exit 1; }; }
5428    fi
5429
5430    # Check if we have automake
5431    # Extract the first word of "automake", so it can be a program name with args.
5432set dummy automake; ac_word=$2
5433echo "$as_me:$LINENO: checking for $ac_word" >&5
5434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435if test "${ac_cv_prog_have_automake+set}" = set; then
5436  echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438  if test -n "$have_automake"; then
5439  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5440else
5441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444  IFS=$as_save_IFS
5445  test -z "$as_dir" && as_dir=.
5446  for ac_exec_ext in '' $ac_executable_extensions; do
5447  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448    ac_cv_prog_have_automake="yes"
5449    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5450    break 2
5451  fi
5452done
5453done
5454
5455  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5456fi
5457fi
5458have_automake=$ac_cv_prog_have_automake
5459if test -n "$have_automake"; then
5460  echo "$as_me:$LINENO: result: $have_automake" >&5
5461echo "${ECHO_T}$have_automake" >&6
5462else
5463  echo "$as_me:$LINENO: result: no" >&5
5464echo "${ECHO_T}no" >&6
5465fi
5466
5467    if test $have_automake = no; then
5468      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5469echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5470   { (exit 1); exit 1; }; }
5471    fi
5472
5473    # Check whether automake is the correct version
5474    correct_version='1.9.6'
5475    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5476    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5477echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5478    automake --version > confauto.out 2>&1
5479    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5480      echo "$as_me:$LINENO: result: yes" >&5
5481echo "${ECHO_T}yes" >&6
5482    else
5483      rm -f confauto.out
5484      echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
5486      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5487echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5488   { (exit 1); exit 1; }; }
5489    fi
5490    rm -f confauto.out
5491
5492    # Check if the executable automake is picked up from the correct location
5493    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5494echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5495    automake_dir=`which automake | sed -e 's=/automake=='`
5496    automake_dir=`cd $automake_dir; pwd`
5497    if test x$AUTOTOOLS_DIR = x; then
5498      want_dir=$AUTOTOOLS_DFLT/bin
5499    else
5500      want_dir=$AUTOTOOLS_DIR/bin
5501    fi
5502    if test $automake_dir = `cd $want_dir; pwd`; then
5503      echo "$as_me:$LINENO: result: yes" >&5
5504echo "${ECHO_T}yes" >&6
5505    else
5506      rm -f confauto.out
5507      echo "$as_me:$LINENO: result: no" >&5
5508echo "${ECHO_T}no" >&6
5509      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5510echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5511   { (exit 1); exit 1; }; }
5512    fi
5513
5514    # Check if this is the correct version of libtool (with escaped dots)
5515    if test x$AUTOTOOLS_DIR = x; then
5516      want_dir=$AUTOTOOLS_DFLT/share
5517    else
5518      want_dir=$AUTOTOOLS_DIR/share
5519    fi
5520    correct_version='1.5.22'
5521    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5522    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
5523echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
5524echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
5525if eval "test \"\${$as_ac_File+set}\" = set"; then
5526  echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528  test "$cross_compiling" = yes &&
5529  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5530echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5531   { (exit 1); exit 1; }; }
5532if test -r "$want_dir/libtool/ltmain.sh"; then
5533  eval "$as_ac_File=yes"
5534else
5535  eval "$as_ac_File=no"
5536fi
5537fi
5538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5539echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5540if test `eval echo '${'$as_ac_File'}'` = yes; then
5541  have_ltmain=yes
5542else
5543  have_ltmain=no
5544fi
5545
5546    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5547echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5548    if test $have_ltmain = yes; then
5549    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5550        echo "$as_me:$LINENO: result: yes" >&5
5551echo "${ECHO_T}yes" >&6
5552      else
5553        echo "$as_me:$LINENO: result: no" >&5
5554echo "${ECHO_T}no" >&6
5555        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5556echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5557   { (exit 1); exit 1; }; }
5558      fi
5559    else
5560      echo "$as_me:$LINENO: result: no" >&5
5561echo "${ECHO_T}no" >&6
5562      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5563echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5564   { (exit 1); exit 1; }; }
5565    fi
5566  fi
5567
5568  # Check if we can find the libtool file
5569  if test x$AUTOTOOLS_DIR = x; then
5570    want_dir=$AUTOTOOLS_DFLT/share
5571  else
5572    want_dir=$AUTOTOOLS_DIR/share
5573  fi
5574  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
5575echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
5576echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
5577if eval "test \"\${$as_ac_File+set}\" = set"; then
5578  echo $ECHO_N "(cached) $ECHO_C" >&6
5579else
5580  test "$cross_compiling" = yes &&
5581  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5582echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5583   { (exit 1); exit 1; }; }
5584if test -r "$want_dir/aclocal/libtool.m4"; then
5585  eval "$as_ac_File=yes"
5586else
5587  eval "$as_ac_File=no"
5588fi
5589fi
5590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5591echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5592if test `eval echo '${'$as_ac_File'}'` = yes; then
5593  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5594else
5595  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5596echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5597   { (exit 1); exit 1; }; }
5598fi
5599
5600
5601  # Check if we have an Externals file
5602  if test -r $srcdir/Externals; then
5603    coin_have_externals=yes
5604  fi
5605  # Check if subversion is installed and understands https
5606  # Extract the first word of "svn", so it can be a program name with args.
5607set dummy svn; ac_word=$2
5608echo "$as_me:$LINENO: checking for $ac_word" >&5
5609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5610if test "${ac_cv_prog_have_svn+set}" = set; then
5611  echo $ECHO_N "(cached) $ECHO_C" >&6
5612else
5613  if test -n "$have_svn"; then
5614  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5615else
5616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH
5618do
5619  IFS=$as_save_IFS
5620  test -z "$as_dir" && as_dir=.
5621  for ac_exec_ext in '' $ac_executable_extensions; do
5622  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623    ac_cv_prog_have_svn="yes"
5624    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5625    break 2
5626  fi
5627done
5628done
5629
5630  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5631fi
5632fi
5633have_svn=$ac_cv_prog_have_svn
5634if test -n "$have_svn"; then
5635  echo "$as_me:$LINENO: result: $have_svn" >&5
5636echo "${ECHO_T}$have_svn" >&6
5637else
5638  echo "$as_me:$LINENO: result: no" >&5
5639echo "${ECHO_T}no" >&6
5640fi
5641
5642  if test x$have_svn = xyes; then
5643    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5644echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5645if test "${ac_cv_svn_understands_https+set}" = set; then
5646  echo $ECHO_N "(cached) $ECHO_C" >&6
5647else
5648  svn --version > confauto.out 2>&1
5649                    if $EGREP https confauto.out >/dev/null 2>&1; then
5650                      ac_cv_svn_understands_https=yes
5651                    else
5652                      ac_cv_svn_understands_https=no
5653                      have_svn=no
5654                      ac_cv_prog_have_svn=no
5655                    fi
5656                    rm -f confauto.out
5657fi
5658echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5659echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5660  fi
5661
5662  # Find the location of the BuildTools directory
5663  BUILDTOOLSDIR=
5664  if test -r $srcdir/BuildTools/coin.m4; then
5665    BUILDTOOLSDIR=$srcdir/BuildTools
5666  else
5667    if test -r $srcdir/../BuildTools/coin.m4; then
5668      BUILDTOOLSDIR=$srcdir/../BuildTools
5669    else
5670      if test -r $srcdir/../../BuildTools/coin.m4; then
5671        BUILDTOOLSDIR=$srcdir/../../BuildTools
5672      else
5673        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5674echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5675   { (exit 1); exit 1; }; }
5676      fi
5677    fi
5678  fi
5679
5680
5681  # The following variable is set to the name of the directory where
5682  # the autotool scripts are located
5683
5684  AUX_DIR=$ac_aux_dir
5685fi
5686
5687# helpful variable for the base directory of this package
5688abs_source_dir=`cd $srcdir; pwd`
5689
5690
5691# Stuff for example Makefiles
5692if test x$prefix = xNONE; then
5693  full_prefix=$ac_default_prefix
5694else
5695  full_prefix=$prefix
5696fi
5697full_prefix=`cd $full_prefix ; pwd`
5698
5699abs_lib_dir=$full_prefix/lib
5700
5701abs_include_dir=$full_prefix/include
5702
5703abs_bin_dir=$full_prefix/bin
5704
5705
5706
5707if test $coin_have_externals = yes && test x$have_svn = xyes; then
5708  HAVE_EXTERNALS_TRUE=
5709  HAVE_EXTERNALS_FALSE='#'
5710else
5711  HAVE_EXTERNALS_TRUE='#'
5712  HAVE_EXTERNALS_FALSE=
5713fi
5714
5715
5716# AC_MSG_NOTICE([End automake initialisation.])
5717
5718
5719
5720LIBTOOL=
5721if test -r ../libtool; then
5722  coin_config_dir=..
5723  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5724fi
5725if test "x$LIBTOOL" = x; then
5726  if test -r ../../libtool; then
5727    coin_config_dir=../..
5728    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5729  fi
5730fi
5731
5732if test "x$LIBTOOL" = x; then
5733# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5734  # Stuff for libtool
5735  # Check whether --enable-shared or --disable-shared was given.
5736if test "${enable_shared+set}" = set; then
5737  enableval="$enable_shared"
5738  p=${PACKAGE-default}
5739    case $enableval in
5740    yes) enable_shared=yes ;;
5741    no) enable_shared=no ;;
5742    *)
5743      enable_shared=no
5744      # Look at the argument we got.  We use all the common list separators.
5745      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5746      for pkg in $enableval; do
5747        IFS="$lt_save_ifs"
5748        if test "X$pkg" = "X$p"; then
5749          enable_shared=yes
5750        fi
5751      done
5752      IFS="$lt_save_ifs"
5753      ;;
5754    esac
5755else
5756  enable_shared=yes
5757fi;
5758
5759# Check whether --enable-fast-install or --disable-fast-install was given.
5760if test "${enable_fast_install+set}" = set; then
5761  enableval="$enable_fast_install"
5762  p=${PACKAGE-default}
5763    case $enableval in
5764    yes) enable_fast_install=yes ;;
5765    no) enable_fast_install=no ;;
5766    *)
5767      enable_fast_install=no
5768      # Look at the argument we got.  We use all the common list separators.
5769      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5770      for pkg in $enableval; do
5771        IFS="$lt_save_ifs"
5772        if test "X$pkg" = "X$p"; then
5773          enable_fast_install=yes
5774        fi
5775      done
5776      IFS="$lt_save_ifs"
5777      ;;
5778    esac
5779else
5780  enable_fast_install=yes
5781fi;
5782
5783echo "$as_me:$LINENO: checking host system type" >&5
5784echo $ECHO_N "checking host system type... $ECHO_C" >&6
5785if test "${ac_cv_host+set}" = set; then
5786  echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788  ac_cv_host_alias=$host_alias
5789test -z "$ac_cv_host_alias" &&
5790  ac_cv_host_alias=$ac_cv_build_alias
5791ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5792  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5793echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5794   { (exit 1); exit 1; }; }
5795
5796fi
5797echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5798echo "${ECHO_T}$ac_cv_host" >&6
5799host=$ac_cv_host
5800host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5801host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5802host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5803
5804
5805echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5806echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5807if test "${lt_cv_path_SED+set}" = set; then
5808  echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810  # Loop through the user's path and test for sed and gsed.
5811# Then use that list of sed's as ones to test for truncation.
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815  IFS=$as_save_IFS
5816  test -z "$as_dir" && as_dir=.
5817  for lt_ac_prog in sed gsed; do
5818    for ac_exec_ext in '' $ac_executable_extensions; do
5819      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5820        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5821      fi
5822    done
5823  done
5824done
5825lt_ac_max=0
5826lt_ac_count=0
5827# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5828# along with /bin/sed that truncates output.
5829for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5830  test ! -f $lt_ac_sed && continue
5831  cat /dev/null > conftest.in
5832  lt_ac_count=0
5833  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5834  # Check for GNU sed and select it if it is found.
5835  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5836    lt_cv_path_SED=$lt_ac_sed
5837    break
5838  fi
5839  while true; do
5840    cat conftest.in conftest.in >conftest.tmp
5841    mv conftest.tmp conftest.in
5842    cp conftest.in conftest.nl
5843    echo >>conftest.nl
5844    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5845    cmp -s conftest.out conftest.nl || break
5846    # 10000 chars as input seems more than enough
5847    test $lt_ac_count -gt 10 && break
5848    lt_ac_count=`expr $lt_ac_count + 1`
5849    if test $lt_ac_count -gt $lt_ac_max; then
5850      lt_ac_max=$lt_ac_count
5851      lt_cv_path_SED=$lt_ac_sed
5852    fi
5853  done
5854done
5855
5856fi
5857
5858SED=$lt_cv_path_SED
5859echo "$as_me:$LINENO: result: $SED" >&5
5860echo "${ECHO_T}$SED" >&6
5861
5862
5863# Check whether --with-gnu-ld or --without-gnu-ld was given.
5864if test "${with_gnu_ld+set}" = set; then
5865  withval="$with_gnu_ld"
5866  test "$withval" = no || with_gnu_ld=yes
5867else
5868  with_gnu_ld=no
5869fi;
5870ac_prog=ld
5871if test "$GCC" = yes; then
5872  # Check if gcc -print-prog-name=ld gives a path.
5873  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5874echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5875  case $host in
5876  *-*-mingw*)
5877    # gcc leaves a trailing carriage return which upsets mingw
5878    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5879  *)
5880    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5881  esac
5882  case $ac_prog in
5883    # Accept absolute paths.
5884    [\\/]* | ?:[\\/]*)
5885      re_direlt='/[^/][^/]*/\.\./'
5886      # Canonicalize the pathname of ld
5887      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5888      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5889        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5890      done
5891      test -z "$LD" && LD="$ac_prog"
5892      ;;
5893  "")
5894    # If it fails, then pretend we aren't using GCC.
5895    ac_prog=ld
5896    ;;
5897  *)
5898    # If it is relative, then search for the first ld in PATH.
5899    with_gnu_ld=unknown
5900    ;;
5901  esac
5902elif test "$with_gnu_ld" = yes; then
5903  echo "$as_me:$LINENO: checking for GNU ld" >&5
5904echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5905else
5906  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5907echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5908fi
5909if test "${lt_cv_path_LD+set}" = set; then
5910  echo $ECHO_N "(cached) $ECHO_C" >&6
5911else
5912  if test -z "$LD"; then
5913  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5914  for ac_dir in $PATH; do
5915    IFS="$lt_save_ifs"
5916    test -z "$ac_dir" && ac_dir=.
5917    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5918      lt_cv_path_LD="$ac_dir/$ac_prog"
5919      # Check to see if the program is GNU ld.  I'd rather use --version,
5920      # but apparently some variants of GNU ld only accept -v.
5921      # Break only if it was the GNU/non-GNU ld that we prefer.
5922      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5923      *GNU* | *'with BFD'*)
5924        test "$with_gnu_ld" != no && break
5925        ;;
5926      *)
5927        test "$with_gnu_ld" != yes && break
5928        ;;
5929      esac
5930    fi
5931  done
5932  IFS="$lt_save_ifs"
5933else
5934  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5935fi
5936fi
5937
5938LD="$lt_cv_path_LD"
5939if test -n "$LD"; then
5940  echo "$as_me:$LINENO: result: $LD" >&5
5941echo "${ECHO_T}$LD" >&6
5942else
5943  echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
5945fi
5946test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5947echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5948   { (exit 1); exit 1; }; }
5949echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5950echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5951if test "${lt_cv_prog_gnu_ld+set}" = set; then
5952  echo $ECHO_N "(cached) $ECHO_C" >&6
5953else
5954  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5955case `$LD -v 2>&1 </dev/null` in
5956*GNU* | *'with BFD'*)
5957  lt_cv_prog_gnu_ld=yes
5958  ;;
5959*)
5960  lt_cv_prog_gnu_ld=no
5961  ;;
5962esac
5963fi
5964echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5965echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5966with_gnu_ld=$lt_cv_prog_gnu_ld
5967
5968
5969echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5970echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5971if test "${lt_cv_ld_reload_flag+set}" = set; then
5972  echo $ECHO_N "(cached) $ECHO_C" >&6
5973else
5974  lt_cv_ld_reload_flag='-r'
5975fi
5976echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5977echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5978reload_flag=$lt_cv_ld_reload_flag
5979case $reload_flag in
5980"" | " "*) ;;
5981*) reload_flag=" $reload_flag" ;;
5982esac
5983reload_cmds='$LD$reload_flag -o $output$reload_objs'
5984case $host_os in
5985  darwin*)
5986    if test "$GCC" = yes; then
5987      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5988    else
5989      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5990    fi
5991    ;;
5992esac
5993
5994echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5995echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5996if test "${lt_cv_path_NM+set}" = set; then
5997  echo $ECHO_N "(cached) $ECHO_C" >&6
5998else
5999  if test -n "$NM"; then
6000  # Let the user override the test.
6001  lt_cv_path_NM="$NM"
6002else
6003  lt_nm_to_check="${ac_tool_prefix}nm"
6004  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6005    lt_nm_to_check="$lt_nm_to_check nm"
6006  fi
6007  for lt_tmp_nm in $lt_nm_to_check; do
6008    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6009    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6010      IFS="$lt_save_ifs"
6011      test -z "$ac_dir" && ac_dir=.
6012      tmp_nm="$ac_dir/$lt_tmp_nm"
6013      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6014        # Check to see if the nm accepts a BSD-compat flag.
6015        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6016        #   nm: unknown option "B" ignored
6017        # Tru64's nm complains that /dev/null is an invalid object file
6018        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6019        */dev/null* | *'Invalid file or object type'*)
6020          lt_cv_path_NM="$tmp_nm -B"
6021          break
6022          ;;
6023        *)
6024          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6025          */dev/null*)
6026            lt_cv_path_NM="$tmp_nm -p"
6027            break
6028            ;;
6029          *)
6030            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6031            continue # so that we can try to find one that supports BSD flags
6032            ;;
6033          esac
6034          ;;
6035        esac
6036      fi
6037    done
6038    IFS="$lt_save_ifs"
6039  done
6040  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6041fi
6042fi
6043echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6044echo "${ECHO_T}$lt_cv_path_NM" >&6
6045NM="$lt_cv_path_NM"
6046
6047echo "$as_me:$LINENO: checking whether ln -s works" >&5
6048echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6049LN_S=$as_ln_s
6050if test "$LN_S" = "ln -s"; then
6051  echo "$as_me:$LINENO: result: yes" >&5
6052echo "${ECHO_T}yes" >&6
6053else
6054  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6055echo "${ECHO_T}no, using $LN_S" >&6
6056fi
6057
6058echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6059echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6060if test "${lt_cv_deplibs_check_method+set}" = set; then
6061  echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063  lt_cv_file_magic_cmd='$MAGIC_CMD'
6064lt_cv_file_magic_test_file=
6065lt_cv_deplibs_check_method='unknown'
6066# Need to set the preceding variable on all platforms that support
6067# interlibrary dependencies.
6068# 'none' -- dependencies not supported.
6069# `unknown' -- same as none, but documents that we really don't know.
6070# 'pass_all' -- all dependencies passed with no checks.
6071# 'test_compile' -- check by making test program.
6072# 'file_magic [[regex]]' -- check by looking for files in library path
6073# which responds to the $file_magic_cmd with a given extended regex.
6074# If you have `file' or equivalent on your system and you're not sure
6075# whether `pass_all' will *always* work, you probably want this one.
6076
6077case $host_os in
6078aix4* | aix5*)
6079  lt_cv_deplibs_check_method=pass_all
6080  ;;
6081
6082beos*)
6083  lt_cv_deplibs_check_method=pass_all
6084  ;;
6085
6086bsdi[45]*)
6087  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6088  lt_cv_file_magic_cmd='/usr/bin/file -L'
6089  lt_cv_file_magic_test_file=/shlib/libc.so
6090  ;;
6091
6092cygwin*)
6093  # func_win32_libid is a shell function defined in ltmain.sh
6094  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6095  lt_cv_file_magic_cmd='func_win32_libid'
6096  ;;
6097
6098mingw* | pw32*)
6099  # Base MSYS/MinGW do not provide the 'file' command needed by
6100  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6101  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6102  lt_cv_file_magic_cmd='$OBJDUMP -f'
6103  ;;
6104
6105darwin* | rhapsody*)
6106  lt_cv_deplibs_check_method=pass_all
6107  ;;
6108
6109freebsd* | kfreebsd*-gnu | dragonfly*)
6110  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6111    case $host_cpu in
6112    i*86 )
6113      # Not sure whether the presence of OpenBSD here was a mistake.
6114      # Let's accept both of them until this is cleared up.
6115      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6116      lt_cv_file_magic_cmd=/usr/bin/file
6117      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6118      ;;
6119    esac
6120  else
6121    lt_cv_deplibs_check_method=pass_all
6122  fi
6123  ;;
6124
6125gnu*)
6126  lt_cv_deplibs_check_method=pass_all
6127  ;;
6128
6129hpux10.20* | hpux11*)
6130  lt_cv_file_magic_cmd=/usr/bin/file
6131  case $host_cpu in
6132  ia64*)
6133    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6134    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6135    ;;
6136  hppa*64*)
6137    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]'
6138    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6139    ;;
6140  *)
6141    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6142    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6143    ;;
6144  esac
6145  ;;
6146
6147interix3*)
6148  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6149  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6150  ;;
6151
6152irix5* | irix6* | nonstopux*)
6153  case $LD in
6154  *-32|*"-32 ") libmagic=32-bit;;
6155  *-n32|*"-n32 ") libmagic=N32;;
6156  *-64|*"-64 ") libmagic=64-bit;;
6157  *) libmagic=never-match;;
6158  esac
6159  lt_cv_deplibs_check_method=pass_all
6160  ;;
6161
6162# This must be Linux ELF.
6163linux*)
6164  lt_cv_deplibs_check_method=pass_all
6165  ;;
6166
6167netbsd*)
6168  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6169    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6170  else
6171    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6172  fi
6173  ;;
6174
6175newos6*)
6176  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6177  lt_cv_file_magic_cmd=/usr/bin/file
6178  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6179  ;;
6180
6181nto-qnx*)
6182  lt_cv_deplibs_check_method=unknown
6183  ;;
6184
6185openbsd*)
6186  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6187    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6188  else
6189    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6190  fi
6191  ;;
6192
6193osf3* | osf4* | osf5*)
6194  lt_cv_deplibs_check_method=pass_all
6195  ;;
6196
6197solaris*)
6198  lt_cv_deplibs_check_method=pass_all
6199  ;;
6200
6201sysv4 | sysv4.3*)
6202  case $host_vendor in
6203  motorola)
6204    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]'
6205    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6206    ;;
6207  ncr)
6208    lt_cv_deplibs_check_method=pass_all
6209    ;;
6210  sequent)
6211    lt_cv_file_magic_cmd='/bin/file'
6212    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6213    ;;
6214  sni)
6215    lt_cv_file_magic_cmd='/bin/file'
6216    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6217    lt_cv_file_magic_test_file=/lib/libc.so
6218    ;;
6219  siemens)
6220    lt_cv_deplibs_check_method=pass_all
6221    ;;
6222  pc)
6223    lt_cv_deplibs_check_method=pass_all
6224    ;;
6225  esac
6226  ;;
6227
6228sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6229  lt_cv_deplibs_check_method=pass_all
6230  ;;
6231esac
6232
6233fi
6234echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6235echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6236file_magic_cmd=$lt_cv_file_magic_cmd
6237deplibs_check_method=$lt_cv_deplibs_check_method
6238test -z "$deplibs_check_method" && deplibs_check_method=unknown
6239
6240
6241
6242
6243# If no C compiler was specified, use CC.
6244LTCC=${LTCC-"$CC"}
6245
6246# If no C compiler flags were specified, use CFLAGS.
6247LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6248
6249# Allow CC to be a program name with arguments.
6250compiler=$CC
6251
6252# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6253if test "${enable_libtool_lock+set}" = set; then
6254  enableval="$enable_libtool_lock"
6255
6256fi;
6257test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6258
6259# Some flags need to be propagated to the compiler or linker for good
6260# libtool support.
6261case $host in
6262ia64-*-hpux*)
6263  # Find out which ABI we are using.
6264  echo 'int i;' > conftest.$ac_ext
6265  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6266  (eval $ac_compile) 2>&5
6267  ac_status=$?
6268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269  (exit $ac_status); }; then
6270    case `/usr/bin/file conftest.$ac_objext` in
6271    *ELF-32*)
6272      HPUX_IA64_MODE="32"
6273      ;;
6274    *ELF-64*)
6275      HPUX_IA64_MODE="64"
6276      ;;
6277    esac
6278  fi
6279  rm -rf conftest*
6280  ;;
6281*-*-irix6*)
6282  # Find out which ABI we are using.
6283  echo '#line 6283 "configure"' > conftest.$ac_ext
6284  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6285  (eval $ac_compile) 2>&5
6286  ac_status=$?
6287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288  (exit $ac_status); }; then
6289   if test "$lt_cv_prog_gnu_ld" = yes; then
6290    case `/usr/bin/file conftest.$ac_objext` in
6291    *32-bit*)
6292      LD="${LD-ld} -melf32bsmip"
6293      ;;
6294    *N32*)
6295      LD="${LD-ld} -melf32bmipn32"
6296      ;;
6297    *64-bit*)
6298      LD="${LD-ld} -melf64bmip"
6299      ;;
6300    esac
6301   else
6302    case `/usr/bin/file conftest.$ac_objext` in
6303    *32-bit*)
6304      LD="${LD-ld} -32"
6305      ;;
6306    *N32*)
6307      LD="${LD-ld} -n32"
6308      ;;
6309    *64-bit*)
6310      LD="${LD-ld} -64"
6311      ;;
6312    esac
6313   fi
6314  fi
6315  rm -rf conftest*
6316  ;;
6317
6318x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6319  # Find out which ABI we are using.
6320  echo 'int i;' > conftest.$ac_ext
6321  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6322  (eval $ac_compile) 2>&5
6323  ac_status=$?
6324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325  (exit $ac_status); }; then
6326    case `/usr/bin/file conftest.o` in
6327    *32-bit*)
6328      case $host in
6329        x86_64-*linux*)
6330          LD="${LD-ld} -m elf_i386"
6331          ;;
6332        ppc64-*linux*|powerpc64-*linux*)
6333          LD="${LD-ld} -m elf32ppclinux"
6334          ;;
6335        s390x-*linux*)
6336          LD="${LD-ld} -m elf_s390"
6337          ;;
6338        sparc64-*linux*)
6339          LD="${LD-ld} -m elf32_sparc"
6340          ;;
6341      esac
6342      ;;
6343    *64-bit*)
6344      case $host in
6345        x86_64-*linux*)
6346          LD="${LD-ld} -m elf_x86_64"
6347          ;;
6348        ppc*-*linux*|powerpc*-*linux*)
6349          LD="${LD-ld} -m elf64ppc"
6350          ;;
6351        s390*-*linux*)
6352          LD="${LD-ld} -m elf64_s390"
6353          ;;
6354        sparc*-*linux*)
6355          LD="${LD-ld} -m elf64_sparc"
6356          ;;
6357      esac
6358      ;;
6359    esac
6360  fi
6361  rm -rf conftest*
6362  ;;
6363
6364*-*-sco3.2v5*)
6365  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6366  SAVE_CFLAGS="$CFLAGS"
6367  CFLAGS="$CFLAGS -belf"
6368  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6369echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6370if test "${lt_cv_cc_needs_belf+set}" = set; then
6371  echo $ECHO_N "(cached) $ECHO_C" >&6
6372else
6373  ac_ext=c
6374ac_cpp='$CPP $CPPFLAGS'
6375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6377ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378
6379     cat >conftest.$ac_ext <<_ACEOF
6380/* confdefs.h.  */
6381_ACEOF
6382cat confdefs.h >>conftest.$ac_ext
6383cat >>conftest.$ac_ext <<_ACEOF
6384/* end confdefs.h.  */
6385
6386int
6387main ()
6388{
6389
6390  ;
6391  return 0;
6392}
6393_ACEOF
6394rm -f conftest.$ac_objext conftest$ac_exeext
6395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6396  (eval $ac_link) 2>conftest.er1
6397  ac_status=$?
6398  grep -v '^ *+' conftest.er1 >conftest.err
6399  rm -f conftest.er1
6400  cat conftest.err >&5
6401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402  (exit $ac_status); } &&
6403         { ac_try='test -z "$ac_c_werror_flag"
6404                         || test ! -s conftest.err'
6405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406  (eval $ac_try) 2>&5
6407  ac_status=$?
6408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409  (exit $ac_status); }; } &&
6410         { ac_try='test -s conftest$ac_exeext'
6411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412  (eval $ac_try) 2>&5
6413  ac_status=$?
6414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415  (exit $ac_status); }; }; then
6416  lt_cv_cc_needs_belf=yes
6417else
6418  echo "$as_me: failed program was:" >&5
6419sed 's/^/| /' conftest.$ac_ext >&5
6420
6421lt_cv_cc_needs_belf=no
6422fi
6423rm -f conftest.err conftest.$ac_objext \
6424      conftest$ac_exeext conftest.$ac_ext
6425     ac_ext=c
6426ac_cpp='$CPP $CPPFLAGS'
6427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429ac_compiler_gnu=$ac_cv_c_compiler_gnu
6430
6431fi
6432echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6433echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6434  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6435    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6436    CFLAGS="$SAVE_CFLAGS"
6437  fi
6438  ;;
6439sparc*-*solaris*)
6440  # Find out which ABI we are using.
6441  echo 'int i;' > conftest.$ac_ext
6442  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6443  (eval $ac_compile) 2>&5
6444  ac_status=$?
6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446  (exit $ac_status); }; then
6447    case `/usr/bin/file conftest.o` in
6448    *64-bit*)
6449      case $lt_cv_prog_gnu_ld in
6450      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6451      *)    LD="${LD-ld} -64" ;;
6452      esac
6453      ;;
6454    esac
6455  fi
6456  rm -rf conftest*
6457  ;;
6458
6459
6460esac
6461
6462need_locks="$enable_libtool_lock"
6463
6464
6465ac_ext=c
6466ac_cpp='$CPP $CPPFLAGS'
6467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6469ac_compiler_gnu=$ac_cv_c_compiler_gnu
6470echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6471echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6472# On Suns, sometimes $CPP names a directory.
6473if test -n "$CPP" && test -d "$CPP"; then
6474  CPP=
6475fi
6476if test -z "$CPP"; then
6477  if test "${ac_cv_prog_CPP+set}" = set; then
6478  echo $ECHO_N "(cached) $ECHO_C" >&6
6479else
6480      # Double quotes because CPP needs to be expanded
6481    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6482    do
6483      ac_preproc_ok=false
6484for ac_c_preproc_warn_flag in '' yes
6485do
6486  # Use a header file that comes with gcc, so configuring glibc
6487  # with a fresh cross-compiler works.
6488  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6489  # <limits.h> exists even on freestanding compilers.
6490  # On the NeXT, cc -E runs the code through the compiler's parser,
6491  # not just through cpp. "Syntax error" is here to catch this case.
6492  cat >conftest.$ac_ext <<_ACEOF
6493/* confdefs.h.  */
6494_ACEOF
6495cat confdefs.h >>conftest.$ac_ext
6496cat >>conftest.$ac_ext <<_ACEOF
6497/* end confdefs.h.  */
6498#ifdef __STDC__
6499# include <limits.h>
6500#else
6501# include <assert.h>
6502#endif
6503                     Syntax error
6504_ACEOF
6505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6506  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6507  ac_status=$?
6508  grep -v '^ *+' conftest.er1 >conftest.err
6509  rm -f conftest.er1
6510  cat conftest.err >&5
6511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512  (exit $ac_status); } >/dev/null; then
6513  if test -s conftest.err; then
6514    ac_cpp_err=$ac_c_preproc_warn_flag
6515    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6516  else
6517    ac_cpp_err=
6518  fi
6519else
6520  ac_cpp_err=yes
6521fi
6522if test -z "$ac_cpp_err"; then
6523  :
6524else
6525  echo "$as_me: failed program was:" >&5
6526sed 's/^/| /' conftest.$ac_ext >&5
6527
6528  # Broken: fails on valid input.
6529continue
6530fi
6531rm -f conftest.err conftest.$ac_ext
6532
6533  # OK, works on sane cases.  Now check whether non-existent headers
6534  # can be detected and how.
6535  cat >conftest.$ac_ext <<_ACEOF
6536/* confdefs.h.  */
6537_ACEOF
6538cat confdefs.h >>conftest.$ac_ext
6539cat >>conftest.$ac_ext <<_ACEOF
6540/* end confdefs.h.  */
6541#include <ac_nonexistent.h>
6542_ACEOF
6543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6544  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6545  ac_status=$?
6546  grep -v '^ *+' conftest.er1 >conftest.err
6547  rm -f conftest.er1
6548  cat conftest.err >&5
6549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550  (exit $ac_status); } >/dev/null; then
6551  if test -s conftest.err; then
6552    ac_cpp_err=$ac_c_preproc_warn_flag
6553    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6554  else
6555    ac_cpp_err=
6556  fi
6557else
6558  ac_cpp_err=yes
6559fi
6560if test -z "$ac_cpp_err"; then
6561  # Broken: success on invalid input.
6562continue
6563else
6564  echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567  # Passes both tests.
6568ac_preproc_ok=:
6569break
6570fi
6571rm -f conftest.err conftest.$ac_ext
6572
6573done
6574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6575rm -f conftest.err conftest.$ac_ext
6576if $ac_preproc_ok; then
6577  break
6578fi
6579
6580    done
6581    ac_cv_prog_CPP=$CPP
6582
6583fi
6584  CPP=$ac_cv_prog_CPP
6585else
6586  ac_cv_prog_CPP=$CPP
6587fi
6588echo "$as_me:$LINENO: result: $CPP" >&5
6589echo "${ECHO_T}$CPP" >&6
6590ac_preproc_ok=false
6591for ac_c_preproc_warn_flag in '' yes
6592do
6593  # Use a header file that comes with gcc, so configuring glibc
6594  # with a fresh cross-compiler works.
6595  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6596  # <limits.h> exists even on freestanding compilers.
6597  # On the NeXT, cc -E runs the code through the compiler's parser,
6598  # not just through cpp. "Syntax error" is here to catch this case.
6599  cat >conftest.$ac_ext <<_ACEOF
6600/* confdefs.h.  */
6601_ACEOF
6602cat confdefs.h >>conftest.$ac_ext
6603cat >>conftest.$ac_ext <<_ACEOF
6604/* end confdefs.h.  */
6605#ifdef __STDC__
6606# include <limits.h>
6607#else
6608# include <assert.h>
6609#endif
6610                     Syntax error
6611_ACEOF
6612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6613  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6614  ac_status=$?
6615  grep -v '^ *+' conftest.er1 >conftest.err
6616  rm -f conftest.er1
6617  cat conftest.err >&5
6618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619  (exit $ac_status); } >/dev/null; then
6620  if test -s conftest.err; then
6621    ac_cpp_err=$ac_c_preproc_warn_flag
6622    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6623  else
6624    ac_cpp_err=
6625  fi
6626else
6627  ac_cpp_err=yes
6628fi
6629if test -z "$ac_cpp_err"; then
6630  :
6631else
6632  echo "$as_me: failed program was:" >&5
6633sed 's/^/| /' conftest.$ac_ext >&5
6634
6635  # Broken: fails on valid input.
6636continue
6637fi
6638rm -f conftest.err conftest.$ac_ext
6639
6640  # OK, works on sane cases.  Now check whether non-existent headers
6641  # can be detected and how.
6642  cat >conftest.$ac_ext <<_ACEOF
6643/* confdefs.h.  */
6644_ACEOF
6645cat confdefs.h >>conftest.$ac_ext
6646cat >>conftest.$ac_ext <<_ACEOF
6647/* end confdefs.h.  */
6648#include <ac_nonexistent.h>
6649_ACEOF
6650if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6651  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6652  ac_status=$?
6653  grep -v '^ *+' conftest.er1 >conftest.err
6654  rm -f conftest.er1
6655  cat conftest.err >&5
6656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657  (exit $ac_status); } >/dev/null; then
6658  if test -s conftest.err; then
6659    ac_cpp_err=$ac_c_preproc_warn_flag
6660    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6661  else
6662    ac_cpp_err=
6663  fi
6664else
6665  ac_cpp_err=yes
6666fi
6667if test -z "$ac_cpp_err"; then
6668  # Broken: success on invalid input.
6669continue
6670else
6671  echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
6674  # Passes both tests.
6675ac_preproc_ok=:
6676break
6677fi
6678rm -f conftest.err conftest.$ac_ext
6679
6680done
6681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6682rm -f conftest.err conftest.$ac_ext
6683if $ac_preproc_ok; then
6684  :
6685else
6686  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6687See \`config.log' for more details." >&5
6688echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6689See \`config.log' for more details." >&2;}
6690   { (exit 1); exit 1; }; }
6691fi
6692
6693ac_ext=c
6694ac_cpp='$CPP $CPPFLAGS'
6695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6697ac_compiler_gnu=$ac_cv_c_compiler_gnu
6698
6699
6700echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6701echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6702if test "${ac_cv_header_stdc+set}" = set; then
6703  echo $ECHO_N "(cached) $ECHO_C" >&6
6704else
6705  cat >conftest.$ac_ext <<_ACEOF
6706/* confdefs.h.  */
6707_ACEOF
6708cat confdefs.h >>conftest.$ac_ext
6709cat >>conftest.$ac_ext <<_ACEOF
6710/* end confdefs.h.  */
6711#include <stdlib.h>
6712#include <stdarg.h>
6713#include <string.h>
6714#include <float.h>
6715
6716int
6717main ()
6718{
6719
6720  ;
6721  return 0;
6722}
6723_ACEOF
6724rm -f conftest.$ac_objext
6725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6726  (eval $ac_compile) 2>conftest.er1
6727  ac_status=$?
6728  grep -v '^ *+' conftest.er1 >conftest.err
6729  rm -f conftest.er1
6730  cat conftest.err >&5
6731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732  (exit $ac_status); } &&
6733         { ac_try='test -z "$ac_c_werror_flag"
6734                         || test ! -s conftest.err'
6735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736  (eval $ac_try) 2>&5
6737  ac_status=$?
6738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739  (exit $ac_status); }; } &&
6740         { ac_try='test -s conftest.$ac_objext'
6741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742  (eval $ac_try) 2>&5
6743  ac_status=$?
6744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745  (exit $ac_status); }; }; then
6746  ac_cv_header_stdc=yes
6747else
6748  echo "$as_me: failed program was:" >&5
6749sed 's/^/| /' conftest.$ac_ext >&5
6750
6751ac_cv_header_stdc=no
6752fi
6753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6754
6755if test $ac_cv_header_stdc = yes; then
6756  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6757  cat >conftest.$ac_ext <<_ACEOF
6758/* confdefs.h.  */
6759_ACEOF
6760cat confdefs.h >>conftest.$ac_ext
6761cat >>conftest.$ac_ext <<_ACEOF
6762/* end confdefs.h.  */
6763#include <string.h>
6764
6765_ACEOF
6766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6767  $EGREP "memchr" >/dev/null 2>&1; then
6768  :
6769else
6770  ac_cv_header_stdc=no
6771fi
6772rm -f conftest*
6773
6774fi
6775
6776if test $ac_cv_header_stdc = yes; then
6777  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6778  cat >conftest.$ac_ext <<_ACEOF
6779/* confdefs.h.  */
6780_ACEOF
6781cat confdefs.h >>conftest.$ac_ext
6782cat >>conftest.$ac_ext <<_ACEOF
6783/* end confdefs.h.  */
6784#include <stdlib.h>
6785
6786_ACEOF
6787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6788  $EGREP "free" >/dev/null 2>&1; then
6789  :
6790else
6791  ac_cv_header_stdc=no
6792fi
6793rm -f conftest*
6794
6795fi
6796
6797if test $ac_cv_header_stdc = yes; then
6798  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6799  if test "$cross_compiling" = yes; then
6800  :
6801else
6802  cat >conftest.$ac_ext <<_ACEOF
6803/* confdefs.h.  */
6804_ACEOF
6805cat confdefs.h >>conftest.$ac_ext
6806cat >>conftest.$ac_ext <<_ACEOF
6807/* end confdefs.h.  */
6808#include <ctype.h>
6809#if ((' ' & 0x0FF) == 0x020)
6810# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6811# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6812#else
6813# define ISLOWER(c) \
6814                   (('a' <= (c) && (c) <= 'i') \
6815                     || ('j' <= (c) && (c) <= 'r') \
6816                     || ('s' <= (c) && (c) <= 'z'))
6817# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6818#endif
6819
6820#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6821int
6822main ()
6823{
6824  int i;
6825  for (i = 0; i < 256; i++)
6826    if (XOR (islower (i), ISLOWER (i))
6827        || toupper (i) != TOUPPER (i))
6828      exit(2);
6829  exit (0);
6830}
6831_ACEOF
6832rm -f conftest$ac_exeext
6833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6834  (eval $ac_link) 2>&5
6835  ac_status=$?
6836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839  (eval $ac_try) 2>&5
6840  ac_status=$?
6841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842  (exit $ac_status); }; }; then
6843  :
6844else
6845  echo "$as_me: program exited with status $ac_status" >&5
6846echo "$as_me: failed program was:" >&5
6847sed 's/^/| /' conftest.$ac_ext >&5
6848
6849( exit $ac_status )
6850ac_cv_header_stdc=no
6851fi
6852rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6853fi
6854fi
6855fi
6856echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6857echo "${ECHO_T}$ac_cv_header_stdc" >&6
6858if test $ac_cv_header_stdc = yes; then
6859
6860cat >>confdefs.h <<\_ACEOF
6861#define STDC_HEADERS 1
6862_ACEOF
6863
6864fi
6865
6866# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6877                  inttypes.h stdint.h unistd.h
6878do
6879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6880echo "$as_me:$LINENO: checking for $ac_header" >&5
6881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6882if eval "test \"\${$as_ac_Header+set}\" = set"; then
6883  echo $ECHO_N "(cached) $ECHO_C" >&6
6884else
6885  cat >conftest.$ac_ext <<_ACEOF
6886/* confdefs.h.  */
6887_ACEOF
6888cat confdefs.h >>conftest.$ac_ext
6889cat >>conftest.$ac_ext <<_ACEOF
6890/* end confdefs.h.  */
6891$ac_includes_default
6892
6893#include <$ac_header>
6894_ACEOF
6895rm -f conftest.$ac_objext
6896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6897  (eval $ac_compile) 2>conftest.er1
6898  ac_status=$?
6899  grep -v '^ *+' conftest.er1 >conftest.err
6900  rm -f conftest.er1
6901  cat conftest.err >&5
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); } &&
6904         { ac_try='test -z "$ac_c_werror_flag"
6905                         || test ! -s conftest.err'
6906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907  (eval $ac_try) 2>&5
6908  ac_status=$?
6909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910  (exit $ac_status); }; } &&
6911         { ac_try='test -s conftest.$ac_objext'
6912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913  (eval $ac_try) 2>&5
6914  ac_status=$?
6915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916  (exit $ac_status); }; }; then
6917  eval "$as_ac_Header=yes"
6918else
6919  echo "$as_me: failed program was:" >&5
6920sed 's/^/| /' conftest.$ac_ext >&5
6921
6922eval "$as_ac_Header=no"
6923fi
6924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6925fi
6926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6928if test `eval echo '${'$as_ac_Header'}'` = yes; then
6929  cat >>confdefs.h <<_ACEOF
6930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6931_ACEOF
6932
6933fi
6934
6935done
6936
6937
6938
6939for ac_header in dlfcn.h
6940do
6941as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6942if eval "test \"\${$as_ac_Header+set}\" = set"; then
6943  echo "$as_me:$LINENO: checking for $ac_header" >&5
6944echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6945if eval "test \"\${$as_ac_Header+set}\" = set"; then
6946  echo $ECHO_N "(cached) $ECHO_C" >&6
6947fi
6948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6949echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6950else
6951  # Is the header compilable?
6952echo "$as_me:$LINENO: checking $ac_header usability" >&5
6953echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6954cat >conftest.$ac_ext <<_ACEOF
6955/* confdefs.h.  */
6956_ACEOF
6957cat confdefs.h >>conftest.$ac_ext
6958cat >>conftest.$ac_ext <<_ACEOF
6959/* end confdefs.h.  */
6960$ac_includes_default
6961#include <$ac_header>
6962_ACEOF
6963rm -f conftest.$ac_objext
6964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6965  (eval $ac_compile) 2>conftest.er1
6966  ac_status=$?
6967  grep -v '^ *+' conftest.er1 >conftest.err
6968  rm -f conftest.er1
6969  cat conftest.err >&5
6970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971  (exit $ac_status); } &&
6972         { ac_try='test -z "$ac_c_werror_flag"
6973                         || test ! -s conftest.err'
6974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6975  (eval $ac_try) 2>&5
6976  ac_status=$?
6977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978  (exit $ac_status); }; } &&
6979         { ac_try='test -s conftest.$ac_objext'
6980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981  (eval $ac_try) 2>&5
6982  ac_status=$?
6983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984  (exit $ac_status); }; }; then
6985  ac_header_compiler=yes
6986else
6987  echo "$as_me: failed program was:" >&5
6988sed 's/^/| /' conftest.$ac_ext >&5
6989
6990ac_header_compiler=no
6991fi
6992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6993echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6994echo "${ECHO_T}$ac_header_compiler" >&6
6995
6996# Is the header present?
6997echo "$as_me:$LINENO: checking $ac_header presence" >&5
6998echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6999cat >conftest.$ac_ext <<_ACEOF
7000/* confdefs.h.  */
7001_ACEOF
7002cat confdefs.h >>conftest.$ac_ext
7003cat >>conftest.$ac_ext <<_ACEOF
7004/* end confdefs.h.  */
7005#include <$ac_header>
7006_ACEOF
7007if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7008  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7009  ac_status=$?
7010  grep -v '^ *+' conftest.er1 >conftest.err
7011  rm -f conftest.er1
7012  cat conftest.err >&5
7013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014  (exit $ac_status); } >/dev/null; then
7015  if test -s conftest.err; then
7016    ac_cpp_err=$ac_c_preproc_warn_flag
7017    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7018  else
7019    ac_cpp_err=
7020  fi
7021else
7022  ac_cpp_err=yes
7023fi
7024if test -z "$ac_cpp_err"; then
7025  ac_header_preproc=yes
7026else
7027  echo "$as_me: failed program was:" >&5
7028sed 's/^/| /' conftest.$ac_ext >&5
7029
7030  ac_header_preproc=no
7031fi
7032rm -f conftest.err conftest.$ac_ext
7033echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7034echo "${ECHO_T}$ac_header_preproc" >&6
7035
7036# So?  What about this header?
7037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7038  yes:no: )
7039    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7040echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7041    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7042echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7043    ac_header_preproc=yes
7044    ;;
7045  no:yes:* )
7046    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7047echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7048    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7049echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7050    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7051echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7052    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7053echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7054    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7055echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7056    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7057echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7058    (
7059      cat <<\_ASBOX
7060## ----------------------------------------- ##
7061## Report this to coin-cbc@lists.coin-or.org ##
7062## ----------------------------------------- ##
7063_ASBOX
7064    ) |
7065      sed "s/^/$as_me: WARNING:     /" >&2
7066    ;;
7067esac
7068echo "$as_me:$LINENO: checking for $ac_header" >&5
7069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7070if eval "test \"\${$as_ac_Header+set}\" = set"; then
7071  echo $ECHO_N "(cached) $ECHO_C" >&6
7072else
7073  eval "$as_ac_Header=\$ac_header_preproc"
7074fi
7075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7077
7078fi
7079if test `eval echo '${'$as_ac_Header'}'` = yes; then
7080  cat >>confdefs.h <<_ACEOF
7081#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7082_ACEOF
7083
7084fi
7085
7086done
7087
7088
7089
7090if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7091    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7092    (test "X$CXX" != "Xg++"))) ; then
7093  ac_ext=cc
7094ac_cpp='$CXXCPP $CPPFLAGS'
7095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7098echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7099echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7100if test -z "$CXXCPP"; then
7101  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7102  echo $ECHO_N "(cached) $ECHO_C" >&6
7103else
7104      # Double quotes because CXXCPP needs to be expanded
7105    for CXXCPP in "$CXX -E" "/lib/cpp"
7106    do
7107      ac_preproc_ok=false
7108for ac_cxx_preproc_warn_flag in '' yes
7109do
7110  # Use a header file that comes with gcc, so configuring glibc
7111  # with a fresh cross-compiler works.
7112  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7113  # <limits.h> exists even on freestanding compilers.
7114  # On the NeXT, cc -E runs the code through the compiler's parser,
7115  # not just through cpp. "Syntax error" is here to catch this case.
7116  cat >conftest.$ac_ext <<_ACEOF
7117/* confdefs.h.  */
7118_ACEOF
7119cat confdefs.h >>conftest.$ac_ext
7120cat >>conftest.$ac_ext <<_ACEOF
7121/* end confdefs.h.  */
7122#ifdef __STDC__
7123# include <limits.h>
7124#else
7125# include <assert.h>
7126#endif
7127                     Syntax error
7128_ACEOF
7129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7130  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7131  ac_status=$?
7132  grep -v '^ *+' conftest.er1 >conftest.err
7133  rm -f conftest.er1
7134  cat conftest.err >&5
7135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136  (exit $ac_status); } >/dev/null; then
7137  if test -s conftest.err; then
7138    ac_cpp_err=$ac_cxx_preproc_warn_flag
7139    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7140  else
7141    ac_cpp_err=
7142  fi
7143else
7144  ac_cpp_err=yes
7145fi
7146if test -z "$ac_cpp_err"; then
7147  :
7148else
7149  echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152  # Broken: fails on valid input.
7153continue
7154fi
7155rm -f conftest.err conftest.$ac_ext
7156
7157  # OK, works on sane cases.  Now check whether non-existent headers
7158  # can be detected and how.
7159  cat >conftest.$ac_ext <<_ACEOF
7160/* confdefs.h.  */
7161_ACEOF
7162cat confdefs.h >>conftest.$ac_ext
7163cat >>conftest.$ac_ext <<_ACEOF
7164/* end confdefs.h.  */
7165#include <ac_nonexistent.h>
7166_ACEOF
7167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7168  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7169  ac_status=$?
7170  grep -v '^ *+' conftest.er1 >conftest.err
7171  rm -f conftest.er1
7172  cat conftest.err >&5
7173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174  (exit $ac_status); } >/dev/null; then
7175  if test -s conftest.err; then
7176    ac_cpp_err=$ac_cxx_preproc_warn_flag
7177    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7178  else
7179    ac_cpp_err=
7180  fi
7181else
7182  ac_cpp_err=yes
7183fi
7184if test -z "$ac_cpp_err"; then
7185  # Broken: success on invalid input.
7186continue
7187else
7188  echo "$as_me: failed program was:" >&5
7189sed 's/^/| /' conftest.$ac_ext >&5
7190
7191  # Passes both tests.
7192ac_preproc_ok=:
7193break
7194fi
7195rm -f conftest.err conftest.$ac_ext
7196
7197done
7198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7199rm -f conftest.err conftest.$ac_ext
7200if $ac_preproc_ok; then
7201  break
7202fi
7203
7204    done
7205    ac_cv_prog_CXXCPP=$CXXCPP
7206
7207fi
7208  CXXCPP=$ac_cv_prog_CXXCPP
7209else
7210  ac_cv_prog_CXXCPP=$CXXCPP
7211fi
7212echo "$as_me:$LINENO: result: $CXXCPP" >&5
7213echo "${ECHO_T}$CXXCPP" >&6
7214ac_preproc_ok=false
7215for ac_cxx_preproc_warn_flag in '' yes
7216do
7217  # Use a header file that comes with gcc, so configuring glibc
7218  # with a fresh cross-compiler works.
7219  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7220  # <limits.h> exists even on freestanding compilers.
7221  # On the NeXT, cc -E runs the code through the compiler's parser,
7222  # not just through cpp. "Syntax error" is here to catch this case.
7223  cat >conftest.$ac_ext <<_ACEOF
7224/* confdefs.h.  */
7225_ACEOF
7226cat confdefs.h >>conftest.$ac_ext
7227cat >>conftest.$ac_ext <<_ACEOF
7228/* end confdefs.h.  */
7229#ifdef __STDC__
7230# include <limits.h>
7231#else
7232# include <assert.h>
7233#endif
7234                     Syntax error
7235_ACEOF
7236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7237  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7238  ac_status=$?
7239  grep -v '^ *+' conftest.er1 >conftest.err
7240  rm -f conftest.er1
7241  cat conftest.err >&5
7242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243  (exit $ac_status); } >/dev/null; then
7244  if test -s conftest.err; then
7245    ac_cpp_err=$ac_cxx_preproc_warn_flag
7246    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7247  else
7248    ac_cpp_err=
7249  fi
7250else
7251  ac_cpp_err=yes
7252fi
7253if test -z "$ac_cpp_err"; then
7254  :
7255else
7256  echo "$as_me: failed program was:" >&5
7257sed 's/^/| /' conftest.$ac_ext >&5
7258
7259  # Broken: fails on valid input.
7260continue
7261fi
7262rm -f conftest.err conftest.$ac_ext
7263
7264  # OK, works on sane cases.  Now check whether non-existent headers
7265  # can be detected and how.
7266  cat >conftest.$ac_ext <<_ACEOF
7267/* confdefs.h.  */
7268_ACEOF
7269cat confdefs.h >>conftest.$ac_ext
7270cat >>conftest.$ac_ext <<_ACEOF
7271/* end confdefs.h.  */
7272#include <ac_nonexistent.h>
7273_ACEOF
7274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7275  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7276  ac_status=$?
7277  grep -v '^ *+' conftest.er1 >conftest.err
7278  rm -f conftest.er1
7279  cat conftest.err >&5
7280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281  (exit $ac_status); } >/dev/null; then
7282  if test -s conftest.err; then
7283    ac_cpp_err=$ac_cxx_preproc_warn_flag
7284    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7285  else
7286    ac_cpp_err=
7287  fi
7288else
7289  ac_cpp_err=yes
7290fi
7291if test -z "$ac_cpp_err"; then
7292  # Broken: success on invalid input.
7293continue
7294else
7295  echo "$as_me: failed program was:" >&5
7296sed 's/^/| /' conftest.$ac_ext >&5
7297
7298  # Passes both tests.
7299ac_preproc_ok=:
7300break
7301fi
7302rm -f conftest.err conftest.$ac_ext
7303
7304done
7305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7306rm -f conftest.err conftest.$ac_ext
7307if $ac_preproc_ok; then
7308  :
7309else
7310  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7311See \`config.log' for more details." >&5
7312echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7313See \`config.log' for more details." >&2;}
7314   { (exit 1); exit 1; }; }
7315fi
7316
7317ac_ext=cc
7318ac_cpp='$CXXCPP $CPPFLAGS'
7319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7322
7323fi
7324
7325
7326# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7327
7328# find the maximum length of command line arguments
7329echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7330echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7331if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7332  echo $ECHO_N "(cached) $ECHO_C" >&6
7333else
7334    i=0
7335  teststring="ABCD"
7336
7337  case $build_os in
7338  msdosdjgpp*)
7339    # On DJGPP, this test can blow up pretty badly due to problems in libc
7340    # (any single argument exceeding 2000 bytes causes a buffer overrun
7341    # during glob expansion).  Even if it were fixed, the result of this
7342    # check would be larger than it should be.
7343    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7344    ;;
7345
7346  gnu*)
7347    # Under GNU Hurd, this test is not required because there is
7348    # no limit to the length of command line arguments.
7349    # Libtool will interpret -1 as no limit whatsoever
7350    lt_cv_sys_max_cmd_len=-1;
7351    ;;
7352
7353  cygwin* | mingw*)
7354    # On Win9x/ME, this test blows up -- it succeeds, but takes
7355    # about 5 minutes as the teststring grows exponentially.
7356    # Worse, since 9x/ME are not pre-emptively multitasking,
7357    # you end up with a "frozen" computer, even though with patience
7358    # the test eventually succeeds (with a max line length of 256k).
7359    # Instead, let's just punt: use the minimum linelength reported by
7360    # all of the supported platforms: 8192 (on NT/2K/XP).
7361    lt_cv_sys_max_cmd_len=8192;
7362    ;;
7363
7364  amigaos*)
7365    # On AmigaOS with pdksh, this test takes hours, literally.
7366    # So we just punt and use a minimum line length of 8192.
7367    lt_cv_sys_max_cmd_len=8192;
7368    ;;
7369
7370  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7371    # This has been around since 386BSD, at least.  Likely further.
7372    if test -x /sbin/sysctl; then
7373      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7374    elif test -x /usr/sbin/sysctl; then
7375      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7376    else
7377      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7378    fi
7379    # And add a safety zone
7380    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7381    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7382    ;;
7383
7384  interix*)
7385    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7386    lt_cv_sys_max_cmd_len=196608
7387    ;;
7388
7389  osf*)
7390    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7391    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7392    # nice to cause kernel panics so lets avoid the loop below.
7393    # First set a reasonable default.
7394    lt_cv_sys_max_cmd_len=16384
7395    #
7396    if test -x /sbin/sysconfig; then
7397      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7398        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7399      esac
7400    fi
7401    ;;
7402  sco3.2v5*)
7403    lt_cv_sys_max_cmd_len=102400
7404    ;;
7405  sysv5* | sco5v6* | sysv4.2uw2*)
7406    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7407    if test -n "$kargmax"; then
7408      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7409    else
7410      lt_cv_sys_max_cmd_len=32768
7411    fi
7412    ;;
7413  *)
7414    # If test is not a shell built-in, we'll probably end up computing a
7415    # maximum length that is only half of the actual maximum length, but
7416    # we can't tell.
7417    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7418    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7419               = "XX$teststring") >/dev/null 2>&1 &&
7420            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7421            lt_cv_sys_max_cmd_len=$new_result &&
7422            test $i != 17 # 1/2 MB should be enough
7423    do
7424      i=`expr $i + 1`
7425      teststring=$teststring$teststring
7426    done
7427    teststring=
7428    # Add a significant safety factor because C++ compilers can tack on massive
7429    # amounts of additional arguments before passing them to the linker.
7430    # It appears as though 1/2 is a usable value.
7431    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7432    ;;
7433  esac
7434
7435fi
7436
7437if test -n $lt_cv_sys_max_cmd_len ; then
7438  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7439echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7440else
7441  echo "$as_me:$LINENO: result: none" >&5
7442echo "${ECHO_T}none" >&6
7443fi
7444
7445
7446
7447
7448# Check for command to grab the raw symbol name followed by C symbol from nm.
7449echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7450echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7451if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7452  echo $ECHO_N "(cached) $ECHO_C" >&6
7453else
7454
7455# These are sane defaults that work on at least a few old systems.
7456# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7457
7458# Character class describing NM global symbol codes.
7459symcode='[BCDEGRST]'
7460
7461# Regexp to match symbols that can be accessed directly from C.
7462sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7463
7464# Transform an extracted symbol line into a proper C declaration
7465lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7466
7467# Transform an extracted symbol line into symbol name and symbol address
7468lt_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'"
7469
7470# Define system-specific variables.
7471case $host_os in
7472aix*)
7473  symcode='[BCDT]'
7474  ;;
7475cygwin* | mingw* | pw32*)
7476  symcode='[ABCDGISTW]'
7477  ;;
7478hpux*) # Its linker distinguishes data from code symbols
7479  if test "$host_cpu" = ia64; then
7480    symcode='[ABCDEGRST]'
7481  fi
7482  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7483  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'"
7484  ;;
7485linux*)
7486  if test "$host_cpu" = ia64; then
7487    symcode='[ABCDGIRSTW]'
7488    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7489    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'"
7490  fi
7491  ;;
7492irix* | nonstopux*)
7493  symcode='[BCDEGRST]'
7494  ;;
7495osf*)
7496  symcode='[BCDEGQRST]'
7497  ;;
7498solaris*)
7499  symcode='[BDRT]'
7500  ;;
7501sco3.2v5*)
7502  symcode='[DT]'
7503  ;;
7504sysv4.2uw2*)
7505  symcode='[DT]'
7506  ;;
7507sysv5* | sco5v6* | unixware* | OpenUNIX*)
7508  symcode='[ABDT]'
7509  ;;
7510sysv4)
7511  symcode='[DFNSTU]'
7512  ;;
7513esac
7514
7515# Handle CRLF in mingw tool chain
7516opt_cr=
7517case $build_os in
7518mingw*)
7519  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7520  ;;
7521esac
7522
7523# If we're using GNU nm, then use its standard symbol codes.
7524case `$NM -V 2>&1` in
7525*GNU* | *'with BFD'*)
7526  symcode='[ABCDGIRSTW]' ;;
7527esac
7528
7529# Try without a prefix undercore, then with it.
7530for ac_symprfx in "" "_"; do
7531
7532  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7533  symxfrm="\\1 $ac_symprfx\\2 \\2"
7534
7535  # Write the raw and C identifiers.
7536  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7537
7538  # Check to see that the pipe works correctly.
7539  pipe_works=no
7540
7541  rm -f conftest*
7542  cat > conftest.$ac_ext <<EOF
7543#ifdef __cplusplus
7544extern "C" {
7545#endif
7546char nm_test_var;
7547void nm_test_func(){}
7548#ifdef __cplusplus
7549}
7550#endif
7551int main(){nm_test_var='a';nm_test_func();return(0);}
7552EOF
7553
7554  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7555  (eval $ac_compile) 2>&5
7556  ac_status=$?
7557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558  (exit $ac_status); }; then
7559    # Now try to grab the symbols.
7560    nlist=conftest.nm
7561    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7562  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7563  ac_status=$?
7564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565  (exit $ac_status); } && test -s "$nlist"; then
7566      # Try sorting and uniquifying the output.
7567      if sort "$nlist" | uniq > "$nlist"T; then
7568        mv -f "$nlist"T "$nlist"
7569      else
7570        rm -f "$nlist"T
7571      fi
7572
7573      # Make sure that we snagged all the symbols we need.
7574      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7575        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7576          cat <<EOF > conftest.$ac_ext
7577#ifdef __cplusplus
7578extern "C" {
7579#endif
7580
7581EOF
7582          # Now generate the symbol file.
7583          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7584
7585          cat <<EOF >> conftest.$ac_ext
7586#if defined (__STDC__) && __STDC__
7587# define lt_ptr_t void *
7588#else
7589# define lt_ptr_t char *
7590# define const
7591#endif
7592
7593/* The mapping between symbol names and symbols. */
7594const struct {
7595  const char *name;
7596  lt_ptr_t address;
7597}
7598lt_preloaded_symbols[] =
7599{
7600EOF
7601          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7602          cat <<\EOF >> conftest.$ac_ext
7603  {0, (lt_ptr_t) 0}
7604};
7605
7606#ifdef __cplusplus
7607}
7608#endif
7609EOF
7610          # Now try linking the two files.
7611          mv conftest.$ac_objext conftstm.$ac_objext
7612          lt_save_LIBS="$LIBS"
7613          lt_save_CFLAGS="$CFLAGS"
7614          LIBS="conftstm.$ac_objext"
7615          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7616          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617  (eval $ac_link) 2>&5
7618  ac_status=$?
7619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7621            pipe_works=yes
7622          fi
7623          LIBS="$lt_save_LIBS"
7624          CFLAGS="$lt_save_CFLAGS"
7625        else
7626          echo "cannot find nm_test_func in $nlist" >&5
7627        fi
7628      else
7629        echo "cannot find nm_test_var in $nlist" >&5
7630      fi
7631    else
7632      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7633    fi
7634  else
7635    echo "$progname: failed program was:" >&5
7636    cat conftest.$ac_ext >&5
7637  fi
7638  rm -f conftest* conftst*
7639
7640  # Do not use the global_symbol_pipe unless it works.
7641  if test "$pipe_works" = yes; then
7642    break
7643  else
7644    lt_cv_sys_global_symbol_pipe=
7645  fi
7646done
7647
7648fi
7649
7650if test -z "$lt_cv_sys_global_symbol_pipe"; then
7651  lt_cv_sys_global_symbol_to_cdecl=
7652fi
7653if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7654  echo "$as_me:$LINENO: result: failed" >&5
7655echo "${ECHO_T}failed" >&6
7656else
7657  echo "$as_me:$LINENO: result: ok" >&5
7658echo "${ECHO_T}ok" >&6
7659fi
7660
7661echo "$as_me:$LINENO: checking for objdir" >&5
7662echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7663if test "${lt_cv_objdir+set}" = set; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  rm -f .libs 2>/dev/null
7667mkdir .libs 2>/dev/null
7668if test -d .libs; then
7669  lt_cv_objdir=.libs
7670else
7671  # MS-DOS does not allow filenames that begin with a dot.
7672  lt_cv_objdir=_libs
7673fi
7674rmdir .libs 2>/dev/null
7675fi
7676echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7677echo "${ECHO_T}$lt_cv_objdir" >&6
7678objdir=$lt_cv_objdir
7679
7680
7681
7682
7683
7684case $host_os in
7685aix3*)
7686  # AIX sometimes has problems with the GCC collect2 program.  For some
7687  # reason, if we set the COLLECT_NAMES environment variable, the problems
7688  # vanish in a puff of smoke.
7689  if test "X${COLLECT_NAMES+set}" != Xset; then
7690    COLLECT_NAMES=
7691    export COLLECT_NAMES
7692  fi
7693  ;;
7694esac
7695
7696# Sed substitution that helps us do robust quoting.  It backslashifies
7697# metacharacters that are still active within double-quoted strings.
7698Xsed='sed -e 1s/^X//'
7699sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7700
7701# Same as above, but do not quote variable references.
7702double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7703
7704# Sed substitution to delay expansion of an escaped shell variable in a
7705# double_quote_subst'ed string.
7706delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7707
7708# Sed substitution to avoid accidental globbing in evaled expressions
7709no_glob_subst='s/\*/\\\*/g'
7710
7711# Constants:
7712rm="rm -f"
7713
7714# Global variables:
7715default_ofile=libtool
7716can_build_shared=yes
7717
7718# All known linkers require a `.a' archive for static linking (except MSVC,
7719# which needs '.lib').
7720libext=a
7721ltmain="$ac_aux_dir/ltmain.sh"
7722ofile="$default_ofile"
7723with_gnu_ld="$lt_cv_prog_gnu_ld"
7724
7725if test -n "$ac_tool_prefix"; then
7726  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7727set dummy ${ac_tool_prefix}ar; ac_word=$2
7728echo "$as_me:$LINENO: checking for $ac_word" >&5
7729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7730if test "${ac_cv_prog_AR+set}" = set; then
7731  echo $ECHO_N "(cached) $ECHO_C" >&6
7732else
7733  if test -n "$AR"; then
7734  ac_cv_prog_AR="$AR" # Let the user override the test.
7735else
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739  IFS=$as_save_IFS
7740  test -z "$as_dir" && as_dir=.
7741  for ac_exec_ext in '' $ac_executable_extensions; do
7742  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743    ac_cv_prog_AR="${ac_tool_prefix}ar"
7744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745    break 2
7746  fi
7747done
7748done
7749
7750fi
7751fi
7752AR=$ac_cv_prog_AR
7753if test -n "$AR"; then
7754  echo "$as_me:$LINENO: result: $AR" >&5
7755echo "${ECHO_T}$AR" >&6
7756else
7757  echo "$as_me:$LINENO: result: no" >&5
7758echo "${ECHO_T}no" >&6
7759fi
7760
7761fi
7762if test -z "$ac_cv_prog_AR"; then
7763  ac_ct_AR=$AR
7764  # Extract the first word of "ar", so it can be a program name with args.
7765set dummy ar; ac_word=$2
7766echo "$as_me:$LINENO: checking for $ac_word" >&5
7767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7768if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7769  echo $ECHO_N "(cached) $ECHO_C" >&6
7770else
7771  if test -n "$ac_ct_AR"; then
7772  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7773else
7774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7775for as_dir in $PATH
7776do
7777  IFS=$as_save_IFS
7778  test -z "$as_dir" && as_dir=.
7779  for ac_exec_ext in '' $ac_executable_extensions; do
7780  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7781    ac_cv_prog_ac_ct_AR="ar"
7782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7783    break 2
7784  fi
7785done
7786done
7787
7788  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7789fi
7790fi
7791ac_ct_AR=$ac_cv_prog_ac_ct_AR
7792if test -n "$ac_ct_AR"; then
7793  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7794echo "${ECHO_T}$ac_ct_AR" >&6
7795else
7796  echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6
7798fi
7799
7800  AR=$ac_ct_AR
7801else
7802  AR="$ac_cv_prog_AR"
7803fi
7804
7805if test -n "$ac_tool_prefix"; then
7806  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7807set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7808echo "$as_me:$LINENO: checking for $ac_word" >&5
7809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7810if test "${ac_cv_prog_RANLIB+set}" = set; then
7811  echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813  if test -n "$RANLIB"; then
7814  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7815else
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819  IFS=$as_save_IFS
7820  test -z "$as_dir" && as_dir=.
7821  for ac_exec_ext in '' $ac_executable_extensions; do
7822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825    break 2
7826  fi
7827done
7828done
7829
7830fi
7831fi
7832RANLIB=$ac_cv_prog_RANLIB
7833if test -n "$RANLIB"; then
7834  echo "$as_me:$LINENO: result: $RANLIB" >&5
7835echo "${ECHO_T}$RANLIB" >&6
7836else
7837  echo "$as_me:$LINENO: result: no" >&5
7838echo "${ECHO_T}no" >&6
7839fi
7840
7841fi
7842if test -z "$ac_cv_prog_RANLIB"; then
7843  ac_ct_RANLIB=$RANLIB
7844  # Extract the first word of "ranlib", so it can be a program name with args.
7845set dummy ranlib; ac_word=$2
7846echo "$as_me:$LINENO: checking for $ac_word" >&5
7847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7848if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7849  echo $ECHO_N "(cached) $ECHO_C" >&6
7850else
7851  if test -n "$ac_ct_RANLIB"; then
7852  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7853else
7854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855for as_dir in $PATH
7856do
7857  IFS=$as_save_IFS
7858  test -z "$as_dir" && as_dir=.
7859  for ac_exec_ext in '' $ac_executable_extensions; do
7860  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7861    ac_cv_prog_ac_ct_RANLIB="ranlib"
7862    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863    break 2
7864  fi
7865done
7866done
7867
7868  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7869fi
7870fi
7871ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7872if test -n "$ac_ct_RANLIB"; then
7873  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7874echo "${ECHO_T}$ac_ct_RANLIB" >&6
7875else
7876  echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6
7878fi
7879
7880  RANLIB=$ac_ct_RANLIB
7881else
7882  RANLIB="$ac_cv_prog_RANLIB"
7883fi
7884
7885if test -n "$ac_tool_prefix"; then
7886  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7887set dummy ${ac_tool_prefix}strip; ac_word=$2
7888echo "$as_me:$LINENO: checking for $ac_word" >&5
7889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7890if test "${ac_cv_prog_STRIP+set}" = set; then
7891  echo $ECHO_N "(cached) $ECHO_C" >&6
7892else
7893  if test -n "$STRIP"; then
7894  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7895else
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899  IFS=$as_save_IFS
7900  test -z "$as_dir" && as_dir=.
7901  for ac_exec_ext in '' $ac_executable_extensions; do
7902  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7903    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7904    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905    break 2
7906  fi
7907done
7908done
7909
7910fi
7911fi
7912STRIP=$ac_cv_prog_STRIP
7913if test -n "$STRIP"; then
7914  echo "$as_me:$LINENO: result: $STRIP" >&5
7915echo "${ECHO_T}$STRIP" >&6
7916else
7917  echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
7919fi
7920
7921fi
7922if test -z "$ac_cv_prog_STRIP"; then
7923  ac_ct_STRIP=$STRIP
7924  # Extract the first word of "strip", so it can be a program name with args.
7925set dummy strip; ac_word=$2
7926echo "$as_me:$LINENO: checking for $ac_word" >&5
7927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7928if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7929  echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931  if test -n "$ac_ct_STRIP"; then
7932  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7933else
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937  IFS=$as_save_IFS
7938  test -z "$as_dir" && as_dir=.
7939  for ac_exec_ext in '' $ac_executable_extensions; do
7940  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7941    ac_cv_prog_ac_ct_STRIP="strip"
7942    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7943    break 2
7944  fi
7945done
7946done
7947
7948  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7949fi
7950fi
7951ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7952if test -n "$ac_ct_STRIP"; then
7953  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7954echo "${ECHO_T}$ac_ct_STRIP" >&6
7955else
7956  echo "$as_me:$LINENO: result: no" >&5
7957echo "${ECHO_T}no" >&6
7958fi
7959
7960  STRIP=$ac_ct_STRIP
7961else
7962  STRIP="$ac_cv_prog_STRIP"
7963fi
7964
7965
7966old_CC="$CC"
7967old_CFLAGS="$CFLAGS"
7968
7969# Set sane defaults for various variables
7970test -z "$AR" && AR=ar
7971test -z "$AR_FLAGS" && AR_FLAGS=cru
7972test -z "$AS" && AS=as
7973test -z "$CC" && CC=cc
7974test -z "$LTCC" && LTCC=$CC
7975test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7976test -z "$DLLTOOL" && DLLTOOL=dlltool
7977test -z "$LD" && LD=ld
7978test -z "$LN_S" && LN_S="ln -s"
7979test -z "$MAGIC_CMD" && MAGIC_CMD=file
7980test -z "$NM" && NM=nm
7981test -z "$SED" && SED=sed
7982test -z "$OBJDUMP" && OBJDUMP=objdump
7983test -z "$RANLIB" && RANLIB=:
7984test -z "$STRIP" && STRIP=:
7985test -z "$ac_objext" && ac_objext=o
7986
7987# Determine commands to create old-style static archives.
7988old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7989old_postinstall_cmds='chmod 644 $oldlib'
7990old_postuninstall_cmds=
7991
7992if test -n "$RANLIB"; then
7993  case $host_os in
7994  openbsd*)
7995    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7996    ;;
7997  *)
7998    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7999    ;;
8000  esac
8001  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8002fi
8003
8004for cc_temp in $compiler""; do
8005  case $cc_temp in
8006    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8007    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8008    \-*) ;;
8009    *) break;;
8010  esac
8011done
8012cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8013
8014
8015# Only perform the check for file, if the check method requires it
8016case $deplibs_check_method in
8017file_magic*)
8018  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8019    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8020echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8021if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8022  echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024  case $MAGIC_CMD in
8025[\\/*] |  ?:[\\/]*)
8026  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8027  ;;
8028*)
8029  lt_save_MAGIC_CMD="$MAGIC_CMD"
8030  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8031  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8032  for ac_dir in $ac_dummy; do
8033    IFS="$lt_save_ifs"
8034    test -z "$ac_dir" && ac_dir=.
8035    if test -f $ac_dir/${ac_tool_prefix}file; then
8036      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8037      if test -n "$file_magic_test_file"; then
8038        case $deplibs_check_method in
8039        "file_magic "*)
8040          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8041          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8043            $EGREP "$file_magic_regex" > /dev/null; then
8044            :
8045          else
8046            cat <<EOF 1>&2
8047
8048*** Warning: the command libtool uses to detect shared libraries,
8049*** $file_magic_cmd, produces output that libtool cannot recognize.
8050*** The result is that libtool may fail to recognize shared libraries
8051*** as such.  This will affect the creation of libtool libraries that
8052*** depend on shared libraries, but programs linked with such libtool
8053*** libraries will work regardless of this problem.  Nevertheless, you
8054*** may want to report the problem to your system manager and/or to
8055*** bug-libtool@gnu.org
8056
8057EOF
8058          fi ;;
8059        esac
8060      fi
8061      break
8062    fi
8063  done
8064  IFS="$lt_save_ifs"
8065  MAGIC_CMD="$lt_save_MAGIC_CMD"
8066  ;;
8067esac
8068fi
8069
8070MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8071if test -n "$MAGIC_CMD"; then
8072  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8073echo "${ECHO_T}$MAGIC_CMD" >&6
8074else
8075  echo "$as_me:$LINENO: result: no" >&5
8076echo "${ECHO_T}no" >&6
8077fi
8078
8079if test -z "$lt_cv_path_MAGIC_CMD"; then
8080  if test -n "$ac_tool_prefix"; then
8081    echo "$as_me:$LINENO: checking for file" >&5
8082echo $ECHO_N "checking for file... $ECHO_C" >&6
8083if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8084  echo $ECHO_N "(cached) $ECHO_C" >&6
8085else
8086  case $MAGIC_CMD in
8087[\\/*] |  ?:[\\/]*)
8088  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8089  ;;
8090*)
8091  lt_save_MAGIC_CMD="$MAGIC_CMD"
8092  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8093  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8094  for ac_dir in $ac_dummy; do
8095    IFS="$lt_save_ifs"
8096    test -z "$ac_dir" && ac_dir=.
8097    if test -f $ac_dir/file; then
8098      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8099      if test -n "$file_magic_test_file"; then
8100        case $deplibs_check_method in
8101        "file_magic "*)
8102          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8103          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8104          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8105            $EGREP "$file_magic_regex" > /dev/null; then
8106            :
8107          else
8108            cat <<EOF 1>&2
8109
8110*** Warning: the command libtool uses to detect shared libraries,
8111*** $file_magic_cmd, produces output that libtool cannot recognize.
8112*** The result is that libtool may fail to recognize shared libraries
8113*** as such.  This will affect the creation of libtool libraries that
8114*** depend on shared libraries, but programs linked with such libtool
8115*** libraries will work regardless of this problem.  Nevertheless, you
8116*** may want to report the problem to your system manager and/or to
8117*** bug-libtool@gnu.org
8118
8119EOF
8120          fi ;;
8121        esac
8122      fi
8123      break
8124    fi
8125  done
8126  IFS="$lt_save_ifs"
8127  MAGIC_CMD="$lt_save_MAGIC_CMD"
8128  ;;
8129esac
8130fi
8131
8132MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8133if test -n "$MAGIC_CMD"; then
8134  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8135echo "${ECHO_T}$MAGIC_CMD" >&6
8136else
8137  echo "$as_me:$LINENO: result: no" >&5
8138echo "${ECHO_T}no" >&6
8139fi
8140
8141  else
8142    MAGIC_CMD=:
8143  fi
8144fi
8145
8146  fi
8147  ;;
8148esac
8149
8150enable_dlopen=no
8151enable_win32_dll=no
8152
8153# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8154if test "${enable_libtool_lock+set}" = set; then
8155  enableval="$enable_libtool_lock"
8156
8157fi;
8158test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8159
8160
8161# Check whether --with-pic or --without-pic was given.
8162if test "${with_pic+set}" = set; then
8163  withval="$with_pic"
8164  pic_mode="$withval"
8165else
8166  pic_mode=default
8167fi;
8168test -z "$pic_mode" && pic_mode=default
8169
8170# Use C for the default configuration in the libtool script
8171tagname=
8172lt_save_CC="$CC"
8173ac_ext=c
8174ac_cpp='$CPP $CPPFLAGS'
8175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8177ac_compiler_gnu=$ac_cv_c_compiler_gnu
8178
8179
8180# Source file extension for C test sources.
8181ac_ext=c
8182
8183# Object file extension for compiled C test sources.
8184objext=o
8185objext=$objext
8186
8187# Code to be used in simple compile tests
8188lt_simple_compile_test_code="int some_variable = 0;\n"
8189
8190# Code to be used in simple link tests
8191lt_simple_link_test_code='int main(){return(0);}\n'
8192
8193
8194# If no C compiler was specified, use CC.
8195LTCC=${LTCC-"$CC"}
8196
8197# If no C compiler flags were specified, use CFLAGS.
8198LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8199
8200# Allow CC to be a program name with arguments.
8201compiler=$CC
8202
8203
8204# save warnings/boilerplate of simple test code
8205ac_outfile=conftest.$ac_objext
8206printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8207eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8208_lt_compiler_boilerplate=`cat conftest.err`
8209$rm conftest*
8210
8211ac_outfile=conftest.$ac_objext
8212printf "$lt_simple_link_test_code" >conftest.$ac_ext
8213eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8214_lt_linker_boilerplate=`cat conftest.err`
8215$rm conftest*
8216
8217
8218## CAVEAT EMPTOR:
8219## There is no encapsulation within the following macros, do not change
8220## the running order or otherwise move them around unless you know exactly
8221## what you are doing...
8222
8223lt_prog_compiler_no_builtin_flag=
8224
8225if test "$GCC" = yes; then
8226  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8227
8228
8229echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8230echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8231if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8232  echo $ECHO_N "(cached) $ECHO_C" >&6
8233else
8234  lt_cv_prog_compiler_rtti_exceptions=no
8235  ac_outfile=conftest.$ac_objext
8236   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8237   lt_compiler_flag="-fno-rtti -fno-exceptions"
8238   # Insert the option either (1) after the last *FLAGS variable, or
8239   # (2) before a word containing "conftest.", or (3) at the end.
8240   # Note that $ac_compile itself does not contain backslashes and begins
8241   # with a dollar sign (not a hyphen), so the echo should work correctly.
8242   # The option is referenced via a variable to avoid confusing sed.
8243   lt_compile=`echo "$ac_compile" | $SED \
8244   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8245   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8246   -e 's:$: $lt_compiler_flag:'`
8247   (eval echo "\"\$as_me:8247: $lt_compile\"" >&5)
8248   (eval "$lt_compile" 2>conftest.err)
8249   ac_status=$?
8250   cat conftest.err >&5
8251   echo "$as_me:8251: \$? = $ac_status" >&5
8252   if (exit $ac_status) && test -s "$ac_outfile"; then
8253     # The compiler can only warn and ignore the option if not recognized
8254     # So say no if there are warnings other than the usual output.
8255     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8256     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8257     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8258       lt_cv_prog_compiler_rtti_exceptions=yes
8259     fi
8260   fi
8261   $rm conftest*
8262
8263fi
8264echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8265echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8266
8267if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8268    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8269else
8270    :
8271fi
8272
8273fi
8274
8275lt_prog_compiler_wl=
8276lt_prog_compiler_pic=
8277lt_prog_compiler_static=
8278
8279echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8280echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8281
8282  if test "$GCC" = yes; then
8283    lt_prog_compiler_wl='-Wl,'
8284    lt_prog_compiler_static='-static'
8285
8286    case $host_os in
8287      aix*)
8288      # All AIX code is PIC.
8289      if test "$host_cpu" = ia64; then
8290        # AIX 5 now supports IA64 processor
8291        lt_prog_compiler_static='-Bstatic'
8292      fi
8293      ;;
8294
8295    amigaos*)
8296      # FIXME: we need at least 68020 code to build shared libraries, but
8297      # adding the `-m68020' flag to GCC prevents building anything better,
8298      # like `-m68040'.
8299      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8300      ;;
8301
8302    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8303      # PIC is the default for these OSes.
8304      ;;
8305
8306    mingw* | pw32* | os2*)
8307      # This hack is so that the source file can tell whether it is being
8308      # built for inclusion in a dll (and should export symbols for example).
8309      lt_prog_compiler_pic='-DDLL_EXPORT'
8310      ;;
8311
8312    darwin* | rhapsody*)
8313      # PIC is the default on this platform
8314      # Common symbols not allowed in MH_DYLIB files
8315      lt_prog_compiler_pic='-fno-common'
8316      ;;
8317
8318    interix3*)
8319      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8320      # Instead, we relocate shared libraries at runtime.
8321      ;;
8322
8323    msdosdjgpp*)
8324      # Just because we use GCC doesn't mean we suddenly get shared libraries
8325      # on systems that don't support them.
8326      lt_prog_compiler_can_build_shared=no
8327      enable_shared=no
8328      ;;
8329
8330    sysv4*MP*)
8331      if test -d /usr/nec; then
8332        lt_prog_compiler_pic=-Kconform_pic
8333      fi
8334      ;;
8335
8336    hpux*)
8337      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8338      # not for PA HP-UX.
8339      case $host_cpu in
8340      hppa*64*|ia64*)
8341        # +Z the default
8342        ;;
8343      *)
8344        lt_prog_compiler_pic='-fPIC'
8345        ;;
8346      esac
8347      ;;
8348
8349    *)
8350      lt_prog_compiler_pic='-fPIC'
8351      ;;
8352    esac
8353  else
8354    # PORTME Check for flag to pass linker flags through the system compiler.
8355    case $host_os in
8356    aix*)
8357      lt_prog_compiler_wl='-Wl,'
8358      if test "$host_cpu" = ia64; then
8359        # AIX 5 now supports IA64 processor
8360        lt_prog_compiler_static='-Bstatic'
8361      else
8362        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8363      fi
8364      ;;
8365      darwin*)
8366        # PIC is the default on this platform
8367        # Common symbols not allowed in MH_DYLIB files
8368       case $cc_basename in
8369         xlc*)
8370         lt_prog_compiler_pic='-qnocommon'
8371         lt_prog_compiler_wl='-Wl,'
8372         ;;
8373       esac
8374       ;;
8375
8376    mingw* | pw32* | os2*)
8377      # This hack is so that the source file can tell whether it is being
8378      # built for inclusion in a dll (and should export symbols for example).
8379      lt_prog_compiler_pic='-DDLL_EXPORT'
8380      ;;
8381
8382    hpux9* | hpux10* | hpux11*)
8383      lt_prog_compiler_wl='-Wl,'
8384      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8385      # not for PA HP-UX.
8386      case $host_cpu in
8387      hppa*64*|ia64*)
8388        # +Z the default
8389        ;;
8390      *)
8391        lt_prog_compiler_pic='+Z'
8392        ;;
8393      esac
8394      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8395      lt_prog_compiler_static='${wl}-a ${wl}archive'
8396      ;;
8397
8398    irix5* | irix6* | nonstopux*)
8399      lt_prog_compiler_wl='-Wl,'
8400      # PIC (with -KPIC) is the default.
8401      lt_prog_compiler_static='-non_shared'
8402      ;;
8403
8404    newsos6)
8405      lt_prog_compiler_pic='-KPIC'
8406      lt_prog_compiler_static='-Bstatic'
8407      ;;
8408
8409    linux*)
8410      case $cc_basename in
8411      icc* | ecc*)
8412        lt_prog_compiler_wl='-Wl,'
8413        lt_prog_compiler_pic='-KPIC'
8414        lt_prog_compiler_static='-static'
8415        ;;
8416      pgcc* | pgf77* | pgf90* | pgf95*)
8417        # Portland Group compilers (*not* the Pentium gcc compiler,
8418        # which looks to be a dead project)
8419        lt_prog_compiler_wl='-Wl,'
8420        lt_prog_compiler_pic='-fpic'
8421        lt_prog_compiler_static='-Bstatic'
8422        ;;
8423      ccc*)
8424        lt_prog_compiler_wl='-Wl,'
8425        # All Alpha code is PIC.
8426        lt_prog_compiler_static='-non_shared'
8427        ;;
8428      esac
8429      ;;
8430
8431    osf3* | osf4* | osf5*)
8432      lt_prog_compiler_wl='-Wl,'
8433      # All OSF/1 code is PIC.
8434      lt_prog_compiler_static='-non_shared'
8435      ;;
8436
8437    solaris*)
8438      lt_prog_compiler_pic='-KPIC'
8439      lt_prog_compiler_static='-Bstatic'
8440      case $cc_basename in
8441      f77* | f90* | f95*)
8442        lt_prog_compiler_wl='-Qoption ld ';;
8443      *)
8444        lt_prog_compiler_wl='-Wl,';;
8445      esac
8446      ;;
8447
8448    sunos4*)
8449      lt_prog_compiler_wl='-Qoption ld '
8450      lt_prog_compiler_pic='-PIC'
8451      lt_prog_compiler_static='-Bstatic'
8452      ;;
8453
8454    sysv4 | sysv4.2uw2* | sysv4.3*)
8455      lt_prog_compiler_wl='-Wl,'
8456      lt_prog_compiler_pic='-KPIC'
8457      lt_prog_compiler_static='-Bstatic'
8458      ;;
8459
8460    sysv4*MP*)
8461      if test -d /usr/nec ;then
8462        lt_prog_compiler_pic='-Kconform_pic'
8463        lt_prog_compiler_static='-Bstatic'
8464      fi
8465      ;;
8466
8467    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8468      lt_prog_compiler_wl='-Wl,'
8469      lt_prog_compiler_pic='-KPIC'
8470      lt_prog_compiler_static='-Bstatic'
8471      ;;
8472
8473    unicos*)
8474      lt_prog_compiler_wl='-Wl,'
8475      lt_prog_compiler_can_build_shared=no
8476      ;;
8477
8478    uts4*)
8479      lt_prog_compiler_pic='-pic'
8480      lt_prog_compiler_static='-Bstatic'
8481      ;;
8482
8483    *)
8484      lt_prog_compiler_can_build_shared=no
8485      ;;
8486    esac
8487  fi
8488
8489echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8490echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8491
8492#
8493# Check to make sure the PIC flag actually works.
8494#
8495if test -n "$lt_prog_compiler_pic"; then
8496
8497echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8498echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8499if test "${lt_prog_compiler_pic_works+set}" = set; then
8500  echo $ECHO_N "(cached) $ECHO_C" >&6
8501else
8502  lt_prog_compiler_pic_works=no
8503  ac_outfile=conftest.$ac_objext
8504   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8505   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8506   # Insert the option either (1) after the last *FLAGS variable, or
8507   # (2) before a word containing "conftest.", or (3) at the end.
8508   # Note that $ac_compile itself does not contain backslashes and begins
8509   # with a dollar sign (not a hyphen), so the echo should work correctly.
8510   # The option is referenced via a variable to avoid confusing sed.
8511   lt_compile=`echo "$ac_compile" | $SED \
8512   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8513   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8514   -e 's:$: $lt_compiler_flag:'`
8515   (eval echo "\"\$as_me:8515: $lt_compile\"" >&5)
8516   (eval "$lt_compile" 2>conftest.err)
8517   ac_status=$?
8518   cat conftest.err >&5
8519   echo "$as_me:8519: \$? = $ac_status" >&5
8520   if (exit $ac_status) && test -s "$ac_outfile"; then
8521     # The compiler can only warn and ignore the option if not recognized
8522     # So say no if there are warnings other than the usual output.
8523     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8524     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8525     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8526       lt_prog_compiler_pic_works=yes
8527     fi
8528   fi
8529   $rm conftest*
8530
8531fi
8532echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8533echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8534
8535if test x"$lt_prog_compiler_pic_works" = xyes; then
8536    case $lt_prog_compiler_pic in
8537     "" | " "*) ;;
8538     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8539     esac
8540else
8541    lt_prog_compiler_pic=
8542     lt_prog_compiler_can_build_shared=no
8543fi
8544
8545fi
8546case $host_os in
8547  # For platforms which do not support PIC, -DPIC is meaningless:
8548  *djgpp*)
8549    lt_prog_compiler_pic=
8550    ;;
8551  *)
8552    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8553    ;;
8554esac
8555
8556#
8557# Check to make sure the static flag actually works.
8558#
8559wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8560echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8561echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8562if test "${lt_prog_compiler_static_works+set}" = set; then
8563  echo $ECHO_N "(cached) $ECHO_C" >&6
8564else
8565  lt_prog_compiler_static_works=no
8566   save_LDFLAGS="$LDFLAGS"
8567   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8568   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8569   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8570     # The linker can only warn and ignore the option if not recognized
8571     # So say no if there are warnings
8572     if test -s conftest.err; then
8573       # Append any errors to the config.log.
8574       cat conftest.err 1>&5
8575       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8576       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8577       if diff conftest.exp conftest.er2 >/dev/null; then
8578         lt_prog_compiler_static_works=yes
8579       fi
8580     else
8581       lt_prog_compiler_static_works=yes
8582     fi
8583   fi
8584   $rm conftest*
8585   LDFLAGS="$save_LDFLAGS"
8586
8587fi
8588echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8589echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8590
8591if test x"$lt_prog_compiler_static_works" = xyes; then
8592    :
8593else
8594    lt_prog_compiler_static=
8595fi
8596
8597
8598echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8599echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8600if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8601  echo $ECHO_N "(cached) $ECHO_C" >&6
8602else
8603  lt_cv_prog_compiler_c_o=no
8604   $rm -r conftest 2>/dev/null
8605   mkdir conftest
8606   cd conftest
8607   mkdir out
8608   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8609
8610   lt_compiler_flag="-o out/conftest2.$ac_objext"
8611   # Insert the option either (1) after the last *FLAGS variable, or
8612   # (2) before a word containing "conftest.", or (3) at the end.
8613   # Note that $ac_compile itself does not contain backslashes and begins
8614   # with a dollar sign (not a hyphen), so the echo should work correctly.
8615   lt_compile=`echo "$ac_compile" | $SED \
8616   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618   -e 's:$: $lt_compiler_flag:'`
8619   (eval echo "\"\$as_me:8619: $lt_compile\"" >&5)
8620   (eval "$lt_compile" 2>out/conftest.err)
8621   ac_status=$?
8622   cat out/conftest.err >&5
8623   echo "$as_me:8623: \$? = $ac_status" >&5
8624   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8625   then
8626     # The compiler can only warn and ignore the option if not recognized
8627     # So say no if there are warnings
8628     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8629     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8630     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8631       lt_cv_prog_compiler_c_o=yes
8632     fi
8633   fi
8634   chmod u+w . 2>&5
8635   $rm conftest*
8636   # SGI C++ compiler will create directory out/ii_files/ for
8637   # template instantiation
8638   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8639   $rm out/* && rmdir out
8640   cd ..
8641   rmdir conftest
8642   $rm conftest*
8643
8644fi
8645echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8646echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8647
8648
8649hard_links="nottested"
8650if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8651  # do not overwrite the value of need_locks provided by the user
8652  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8653echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8654  hard_links=yes
8655  $rm conftest*
8656  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8657  touch conftest.a
8658  ln conftest.a conftest.b 2>&5 || hard_links=no
8659  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8660  echo "$as_me:$LINENO: result: $hard_links" >&5
8661echo "${ECHO_T}$hard_links" >&6
8662  if test "$hard_links" = no; then
8663    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8664echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8665    need_locks=warn
8666  fi
8667else
8668  need_locks=no
8669fi
8670
8671echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8672echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8673
8674  runpath_var=
8675  allow_undefined_flag=
8676  enable_shared_with_static_runtimes=no
8677  archive_cmds=
8678  archive_expsym_cmds=
8679  old_archive_From_new_cmds=
8680  old_archive_from_expsyms_cmds=
8681  export_dynamic_flag_spec=
8682  whole_archive_flag_spec=
8683  thread_safe_flag_spec=
8684  hardcode_libdir_flag_spec=
8685  hardcode_libdir_flag_spec_ld=
8686  hardcode_libdir_separator=
8687  hardcode_direct=no
8688  hardcode_minus_L=no
8689  hardcode_shlibpath_var=unsupported
8690  link_all_deplibs=unknown
8691  hardcode_automatic=no
8692  module_cmds=
8693  module_expsym_cmds=
8694  always_export_symbols=no
8695  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8696  # include_expsyms should be a list of space-separated symbols to be *always*
8697  # included in the symbol list
8698  include_expsyms=
8699  # exclude_expsyms can be an extended regexp of symbols to exclude
8700  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8701  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8702  # as well as any symbol that contains `d'.
8703  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8704  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8705  # platforms (ab)use it in PIC code, but their linkers get confused if
8706  # the symbol is explicitly referenced.  Since portable code cannot
8707  # rely on this symbol name, it's probably fine to never include it in
8708  # preloaded symbol tables.
8709  extract_expsyms_cmds=
8710  # Just being paranoid about ensuring that cc_basename is set.
8711  for cc_temp in $compiler""; do
8712  case $cc_temp in
8713    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8714    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8715    \-*) ;;
8716    *) break;;
8717  esac
8718done
8719cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8720
8721  case $host_os in
8722  cygwin* | mingw* | pw32*)
8723    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8724    # When not using gcc, we currently assume that we are using
8725    # Microsoft Visual C++.
8726    if test "$GCC" != yes; then
8727      with_gnu_ld=no
8728    fi
8729    ;;
8730  interix*)
8731    # we just hope/assume this is gcc and not c89 (= MSVC++)
8732    with_gnu_ld=yes
8733    ;;
8734  openbsd*)
8735    with_gnu_ld=no
8736    ;;
8737  esac
8738
8739  ld_shlibs=yes
8740  if test "$with_gnu_ld" = yes; then
8741    # If archive_cmds runs LD, not CC, wlarc should be empty
8742    wlarc='${wl}'
8743
8744    # Set some defaults for GNU ld with shared library support. These
8745    # are reset later if shared libraries are not supported. Putting them
8746    # here allows them to be overridden if necessary.
8747    runpath_var=LD_RUN_PATH
8748    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8749    export_dynamic_flag_spec='${wl}--export-dynamic'
8750    # ancient GNU ld didn't support --whole-archive et. al.
8751    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8752        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8753      else
8754        whole_archive_flag_spec=
8755    fi
8756    supports_anon_versioning=no
8757    case `$LD -v 2>/dev/null` in
8758      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8759      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8760      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8761      *\ 2.11.*) ;; # other 2.11 versions
8762      *) supports_anon_versioning=yes ;;
8763    esac
8764
8765    # See if GNU ld supports shared libraries.
8766    case $host_os in
8767    aix3* | aix4* | aix5*)
8768      # On AIX/PPC, the GNU linker is very broken
8769      if test "$host_cpu" != ia64; then
8770        ld_shlibs=no
8771        cat <<EOF 1>&2
8772
8773*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8774*** to be unable to reliably create shared libraries on AIX.
8775*** Therefore, libtool is disabling shared libraries support.  If you
8776*** really care for shared libraries, you may want to modify your PATH
8777*** so that a non-GNU linker is found, and then restart.
8778
8779EOF
8780      fi
8781      ;;
8782
8783    amigaos*)
8784      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)'
8785      hardcode_libdir_flag_spec='-L$libdir'
8786      hardcode_minus_L=yes
8787
8788      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8789      # that the semantics of dynamic libraries on AmigaOS, at least up
8790      # to version 4, is to share data among multiple programs linked
8791      # with the same dynamic library.  Since this doesn't match the
8792      # behavior of shared libraries on other platforms, we can't use
8793      # them.
8794      ld_shlibs=no
8795      ;;
8796
8797    beos*)
8798      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8799        allow_undefined_flag=unsupported
8800        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8801        # support --undefined.  This deserves some investigation.  FIXME
8802        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8803      else
8804        ld_shlibs=no
8805      fi
8806      ;;
8807
8808    cygwin* | mingw* | pw32*)
8809      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8810      # as there is no search path for DLLs.
8811      hardcode_libdir_flag_spec='-L$libdir'
8812      allow_undefined_flag=unsupported
8813      always_export_symbols=no
8814      enable_shared_with_static_runtimes=yes
8815      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8816
8817      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8818        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8819        # If the export-symbols file already is a .def file (1st line
8820        # is EXPORTS), use it as is; otherwise, prepend...
8821        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8822          cp $export_symbols $output_objdir/$soname.def;
8823        else
8824          echo EXPORTS > $output_objdir/$soname.def;
8825          cat $export_symbols >> $output_objdir/$soname.def;
8826        fi~
8827        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8828      else
8829        ld_shlibs=no
8830      fi
8831      ;;
8832
8833    interix3*)
8834      hardcode_direct=no
8835      hardcode_shlibpath_var=no
8836      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8837      export_dynamic_flag_spec='${wl}-E'
8838      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8839      # Instead, shared libraries are loaded at an image base (0x10000000 by
8840      # default) and relocated if they conflict, which is a slow very memory
8841      # consuming and fragmenting process.  To avoid this, we pick a random,
8842      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8843      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8844      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8845      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'
8846      ;;
8847
8848    linux*)
8849      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8850        tmp_addflag=
8851        case $cc_basename,$host_cpu in
8852        pgcc*)                          # Portland Group C compiler
8853          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'
8854          tmp_addflag=' $pic_flag'
8855          ;;
8856        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8857          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'
8858          tmp_addflag=' $pic_flag -Mnomain' ;;
8859        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8860          tmp_addflag=' -i_dynamic' ;;
8861        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8862          tmp_addflag=' -i_dynamic -nofor_main' ;;
8863        ifc* | ifort*)                  # Intel Fortran compiler
8864          tmp_addflag=' -nofor_main' ;;
8865        esac
8866        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867
8868        if test $supports_anon_versioning = yes; then
8869          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8870  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8871  $echo "local: *; };" >> $output_objdir/$libname.ver~
8872          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8873        fi
8874      else
8875        ld_shlibs=no
8876      fi
8877      ;;
8878
8879    netbsd*)
8880      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8881        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8882        wlarc=
8883      else
8884        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8885        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8886      fi
8887      ;;
8888
8889    solaris*)
8890      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8891        ld_shlibs=no
8892        cat <<EOF 1>&2
8893
8894*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8895*** create shared libraries on Solaris systems.  Therefore, libtool
8896*** is disabling shared libraries support.  We urge you to upgrade GNU
8897*** binutils to release 2.9.1 or newer.  Another option is to modify
8898*** your PATH or compiler configuration so that the native linker is
8899*** used, and then restart.
8900
8901EOF
8902      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8903        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8904        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8905      else
8906        ld_shlibs=no
8907      fi
8908      ;;
8909
8910    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8911      case `$LD -v 2>&1` in
8912        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8913        ld_shlibs=no
8914        cat <<_LT_EOF 1>&2
8915
8916*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8917*** reliably create shared libraries on SCO systems.  Therefore, libtool
8918*** is disabling shared libraries support.  We urge you to upgrade GNU
8919*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8920*** your PATH or compiler configuration so that the native linker is
8921*** used, and then restart.
8922
8923_LT_EOF
8924        ;;
8925        *)
8926          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8927            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8928            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8929            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8930          else
8931            ld_shlibs=no
8932          fi
8933        ;;
8934      esac
8935      ;;
8936
8937    sunos4*)
8938      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8939      wlarc=
8940      hardcode_direct=yes
8941      hardcode_shlibpath_var=no
8942      ;;
8943
8944    *)
8945      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8946        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8947        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8948      else
8949        ld_shlibs=no
8950      fi
8951      ;;
8952    esac
8953
8954    if test "$ld_shlibs" = no; then
8955      runpath_var=
8956      hardcode_libdir_flag_spec=
8957      export_dynamic_flag_spec=
8958      whole_archive_flag_spec=
8959    fi
8960  else
8961    # PORTME fill in a description of your system's linker (not GNU ld)
8962    case $host_os in
8963    aix3*)
8964      allow_undefined_flag=unsupported
8965      always_export_symbols=yes
8966      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'
8967      # Note: this linker hardcodes the directories in LIBPATH if there
8968      # are no directories specified by -L.
8969      hardcode_minus_L=yes
8970      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8971        # Neither direct hardcoding nor static linking is supported with a
8972        # broken collect2.
8973        hardcode_direct=unsupported
8974      fi
8975      ;;
8976
8977    aix4* | aix5*)
8978      if test "$host_cpu" = ia64; then
8979        # On IA64, the linker does run time linking by default, so we don't
8980        # have to do anything special.
8981        aix_use_runtimelinking=no
8982        exp_sym_flag='-Bexport'
8983        no_entry_flag=""
8984      else
8985        # If we're using GNU nm, then we don't want the "-C" option.
8986        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8987        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8988          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'
8989        else
8990          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'
8991        fi
8992        aix_use_runtimelinking=no
8993
8994        # Test if we are trying to use run time linking or normal
8995        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8996        # need to do runtime linking.
8997        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8998          for ld_flag in $LDFLAGS; do
8999          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9000            aix_use_runtimelinking=yes
9001            break
9002          fi
9003          done
9004          ;;
9005        esac
9006
9007        exp_sym_flag='-bexport'
9008        no_entry_flag='-bnoentry'
9009      fi
9010
9011      # When large executables or shared objects are built, AIX ld can
9012      # have problems creating the table of contents.  If linking a library
9013      # or program results in "error TOC overflow" add -mminimal-toc to
9014      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9015      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9016
9017      archive_cmds=''
9018      hardcode_direct=yes
9019      hardcode_libdir_separator=':'
9020      link_all_deplibs=yes
9021
9022      if test "$GCC" = yes; then
9023        case $host_os in aix4.[012]|aix4.[012].*)
9024        # We only want to do this on AIX 4.2 and lower, the check
9025        # below for broken collect2 doesn't work under 4.3+
9026          collect2name=`${CC} -print-prog-name=collect2`
9027          if test -f "$collect2name" && \
9028           strings "$collect2name" | grep resolve_lib_name >/dev/null
9029          then
9030          # We have reworked collect2
9031          hardcode_direct=yes
9032          else
9033          # We have old collect2
9034          hardcode_direct=unsupported
9035          # It fails to find uninstalled libraries when the uninstalled
9036          # path is not listed in the libpath.  Setting hardcode_minus_L
9037          # to unsupported forces relinking
9038          hardcode_minus_L=yes
9039          hardcode_libdir_flag_spec='-L$libdir'
9040          hardcode_libdir_separator=
9041          fi
9042          ;;
9043        esac
9044        shared_flag='-shared'
9045        if test "$aix_use_runtimelinking" = yes; then
9046          shared_flag="$shared_flag "'${wl}-G'
9047        fi
9048      else
9049        # not using gcc
9050        if test "$host_cpu" = ia64; then
9051        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9052        # chokes on -Wl,-G. The following line is correct:
9053          shared_flag='-G'
9054        else
9055          if test "$aix_use_runtimelinking" = yes; then
9056            shared_flag='${wl}-G'
9057          else
9058            shared_flag='${wl}-bM:SRE'
9059          fi
9060        fi
9061      fi
9062
9063      # It seems that -bexpall does not export symbols beginning with
9064      # underscore (_), so it is better to generate a list of symbols to export.
9065      always_export_symbols=yes
9066      if test "$aix_use_runtimelinking" = yes; then
9067        # Warning - without using the other runtime loading flags (-brtl),
9068        # -berok will link without error, but may produce a broken library.
9069        allow_undefined_flag='-berok'
9070       # Determine the default libpath from the value encoded in an empty executable.
9071       cat >conftest.$ac_ext <<_ACEOF
9072/* confdefs.h.  */
9073_ACEOF
9074cat confdefs.h >>conftest.$ac_ext
9075cat >>conftest.$ac_ext <<_ACEOF
9076/* end confdefs.h.  */
9077
9078int
9079main ()
9080{
9081
9082  ;
9083  return 0;
9084}
9085_ACEOF
9086rm -f conftest.$ac_objext conftest$ac_exeext
9087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9088  (eval $ac_link) 2>conftest.er1
9089  ac_status=$?
9090  grep -v '^ *+' conftest.er1 >conftest.err
9091  rm -f conftest.er1
9092  cat conftest.err >&5
9093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094  (exit $ac_status); } &&
9095         { ac_try='test -z "$ac_c_werror_flag"
9096                         || test ! -s conftest.err'
9097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9098  (eval $ac_try) 2>&5
9099  ac_status=$?
9100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101  (exit $ac_status); }; } &&
9102         { ac_try='test -s conftest$ac_exeext'
9103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104  (eval $ac_try) 2>&5
9105  ac_status=$?
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); }; }; then
9108
9109aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9110}'`
9111# Check for a 64-bit object if we didn't find anything.
9112if 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; }
9113}'`; fi
9114else
9115  echo "$as_me: failed program was:" >&5
9116sed 's/^/| /' conftest.$ac_ext >&5
9117
9118fi
9119rm -f conftest.err conftest.$ac_objext \
9120      conftest$ac_exeext conftest.$ac_ext
9121if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9122
9123       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9124        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"
9125       else
9126        if test "$host_cpu" = ia64; then
9127          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9128          allow_undefined_flag="-z nodefs"
9129          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"
9130        else
9131         # Determine the default libpath from the value encoded in an empty executable.
9132         cat >conftest.$ac_ext <<_ACEOF
9133/* confdefs.h.  */
9134_ACEOF
9135cat confdefs.h >>conftest.$ac_ext
9136cat >>conftest.$ac_ext <<_ACEOF
9137/* end confdefs.h.  */
9138
9139int
9140main ()
9141{
9142
9143  ;
9144  return 0;
9145}
9146_ACEOF
9147rm -f conftest.$ac_objext conftest$ac_exeext
9148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149  (eval $ac_link) 2>conftest.er1
9150  ac_status=$?
9151  grep -v '^ *+' conftest.er1 >conftest.err
9152  rm -f conftest.er1
9153  cat conftest.err >&5
9154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155  (exit $ac_status); } &&
9156         { ac_try='test -z "$ac_c_werror_flag"
9157                         || test ! -s conftest.err'
9158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9159  (eval $ac_try) 2>&5
9160  ac_status=$?
9161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162  (exit $ac_status); }; } &&
9163         { ac_try='test -s conftest$ac_exeext'
9164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9165  (eval $ac_try) 2>&5
9166  ac_status=$?
9167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168  (exit $ac_status); }; }; then
9169
9170aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9171}'`
9172# Check for a 64-bit object if we didn't find anything.
9173if 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; }
9174}'`; fi
9175else
9176  echo "$as_me: failed program was:" >&5
9177sed 's/^/| /' conftest.$ac_ext >&5
9178
9179fi
9180rm -f conftest.err conftest.$ac_objext \
9181      conftest$ac_exeext conftest.$ac_ext
9182if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9183
9184         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9185          # Warning - without using the other run time loading flags,
9186          # -berok will link without error, but may produce a broken library.
9187          no_undefined_flag=' ${wl}-bernotok'
9188          allow_undefined_flag=' ${wl}-berok'
9189          # Exported symbols can be pulled into shared objects from archives
9190          whole_archive_flag_spec='$convenience'
9191          archive_cmds_need_lc=yes
9192          # This is similar to how AIX traditionally builds its shared libraries.
9193          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'
9194        fi
9195      fi
9196      ;;
9197
9198    amigaos*)
9199      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)'
9200      hardcode_libdir_flag_spec='-L$libdir'
9201      hardcode_minus_L=yes
9202      # see comment about different semantics on the GNU ld section
9203      ld_shlibs=no
9204      ;;
9205
9206    bsdi[45]*)
9207      export_dynamic_flag_spec=-rdynamic
9208      ;;
9209
9210    cygwin* | mingw* | pw32*)
9211      # When not using gcc, we currently assume that we are using
9212      # Microsoft Visual C++.
9213      # hardcode_libdir_flag_spec is actually meaningless, as there is
9214      # no search path for DLLs.
9215      hardcode_libdir_flag_spec=' '
9216      allow_undefined_flag=unsupported
9217      # Tell ltmain to make .lib files, not .a files.
9218      libext=lib
9219      # Tell ltmain to make .dll files, not .so files.
9220      shrext_cmds=".dll"
9221      # FIXME: Setting linknames here is a bad hack.
9222      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9223      # The linker will automatically build a .lib file if we build a DLL.
9224      old_archive_From_new_cmds='true'
9225      # FIXME: Should let the user specify the lib program.
9226      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9227      fix_srcfile_path='`cygpath -w "$srcfile"`'
9228      enable_shared_with_static_runtimes=yes
9229      ;;
9230
9231    darwin* | rhapsody*)
9232      case $host_os in
9233        rhapsody* | darwin1.[012])
9234         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9235         ;;
9236       *) # Darwin 1.3 on
9237         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9238           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9239         else
9240           case ${MACOSX_DEPLOYMENT_TARGET} in
9241             10.[012])
9242               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9243               ;;
9244             10.*)
9245               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9246               ;;
9247           esac
9248         fi
9249         ;;
9250      esac
9251      archive_cmds_need_lc=no
9252      hardcode_direct=no
9253      hardcode_automatic=yes
9254      hardcode_shlibpath_var=unsupported
9255      whole_archive_flag_spec=''
9256      link_all_deplibs=yes
9257    if test "$GCC" = yes ; then
9258        output_verbose_link_cmd='echo'
9259        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9260      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9261      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9262      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}'
9263      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}'
9264    else
9265      case $cc_basename in
9266        xlc*)
9267         output_verbose_link_cmd='echo'
9268         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9269         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9270          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9271         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}'
9272          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}'
9273          ;;
9274       *)
9275         ld_shlibs=no
9276          ;;
9277      esac
9278    fi
9279      ;;
9280
9281    dgux*)
9282      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283      hardcode_libdir_flag_spec='-L$libdir'
9284      hardcode_shlibpath_var=no
9285      ;;
9286
9287    freebsd1*)
9288      ld_shlibs=no
9289      ;;
9290
9291    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9292    # support.  Future versions do this automatically, but an explicit c++rt0.o
9293    # does not break anything, and helps significantly (at the cost of a little
9294    # extra space).
9295    freebsd2.2*)
9296      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9297      hardcode_libdir_flag_spec='-R$libdir'
9298      hardcode_direct=yes
9299      hardcode_shlibpath_var=no
9300      ;;
9301
9302    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9303    freebsd2*)
9304      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9305      hardcode_direct=yes
9306      hardcode_minus_L=yes
9307      hardcode_shlibpath_var=no
9308      ;;
9309
9310    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9311    freebsd* | kfreebsd*-gnu | dragonfly*)
9312      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9313      hardcode_libdir_flag_spec='-R$libdir'
9314      hardcode_direct=yes
9315      hardcode_shlibpath_var=no
9316      ;;
9317
9318    hpux9*)
9319      if test "$GCC" = yes; then
9320        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'
9321      else
9322        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'
9323      fi
9324      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9325      hardcode_libdir_separator=:
9326      hardcode_direct=yes
9327
9328      # hardcode_minus_L: Not really in the search PATH,
9329      # but as the default location of the library.
9330      hardcode_minus_L=yes
9331      export_dynamic_flag_spec='${wl}-E'
9332      ;;
9333
9334    hpux10*)
9335      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9336        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9337      else
9338        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9339      fi
9340      if test "$with_gnu_ld" = no; then
9341        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9342        hardcode_libdir_separator=:
9343
9344        hardcode_direct=yes
9345        export_dynamic_flag_spec='${wl}-E'
9346
9347        # hardcode_minus_L: Not really in the search PATH,
9348        # but as the default location of the library.
9349        hardcode_minus_L=yes
9350      fi
9351      ;;
9352
9353    hpux11*)
9354      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9355        case $host_cpu in
9356        hppa*64*)
9357          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9358          ;;
9359        ia64*)
9360          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9361          ;;
9362        *)
9363          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9364          ;;
9365        esac
9366      else
9367        case $host_cpu in
9368        hppa*64*)
9369          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9370          ;;
9371        ia64*)
9372          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9373          ;;
9374        *)
9375          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9376          ;;
9377        esac
9378      fi
9379      if test "$with_gnu_ld" = no; then
9380        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9381        hardcode_libdir_separator=:
9382
9383        case $host_cpu in
9384        hppa*64*|ia64*)
9385          hardcode_libdir_flag_spec_ld='+b $libdir'
9386          hardcode_direct=no
9387          hardcode_shlibpath_var=no
9388          ;;
9389        *)
9390          hardcode_direct=yes
9391          export_dynamic_flag_spec='${wl}-E'
9392
9393          # hardcode_minus_L: Not really in the search PATH,
9394          # but as the default location of the library.
9395          hardcode_minus_L=yes
9396          ;;
9397        esac
9398      fi
9399      ;;
9400
9401    irix5* | irix6* | nonstopux*)
9402      if test "$GCC" = yes; then
9403        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'
9404      else
9405        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'
9406        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9407      fi
9408      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9409      hardcode_libdir_separator=:
9410      link_all_deplibs=yes
9411      ;;
9412
9413    netbsd*)
9414      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9415        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9416      else
9417        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9418      fi
9419      hardcode_libdir_flag_spec='-R$libdir'
9420      hardcode_direct=yes
9421      hardcode_shlibpath_var=no
9422      ;;
9423
9424    newsos6)
9425      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9426      hardcode_direct=yes
9427      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9428      hardcode_libdir_separator=:
9429      hardcode_shlibpath_var=no
9430      ;;
9431
9432    openbsd*)
9433      hardcode_direct=yes
9434      hardcode_shlibpath_var=no
9435      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9436        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9437        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9438        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9439        export_dynamic_flag_spec='${wl}-E'
9440      else
9441       case $host_os in
9442         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9443           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9444           hardcode_libdir_flag_spec='-R$libdir'
9445           ;;
9446         *)
9447           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9448           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9449           ;;
9450       esac
9451      fi
9452      ;;
9453
9454    os2*)
9455      hardcode_libdir_flag_spec='-L$libdir'
9456      hardcode_minus_L=yes
9457      allow_undefined_flag=unsupported
9458      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'
9459      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9460      ;;
9461
9462    osf3*)
9463      if test "$GCC" = yes; then
9464        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9465        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'
9466      else
9467        allow_undefined_flag=' -expect_unresolved \*'
9468        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'
9469      fi
9470      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9471      hardcode_libdir_separator=:
9472      ;;
9473
9474    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9475      if test "$GCC" = yes; then
9476        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9477        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'
9478        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479      else
9480        allow_undefined_flag=' -expect_unresolved \*'
9481        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'
9482        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9483        $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'
9484
9485        # Both c and cxx compiler support -rpath directly
9486        hardcode_libdir_flag_spec='-rpath $libdir'
9487      fi
9488      hardcode_libdir_separator=:
9489      ;;
9490
9491    solaris*)
9492      no_undefined_flag=' -z text'
9493      if test "$GCC" = yes; then
9494        wlarc='${wl}'
9495        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9496        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9497          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9498      else
9499        wlarc=''
9500        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9501        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9502        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9503      fi
9504      hardcode_libdir_flag_spec='-R$libdir'
9505      hardcode_shlibpath_var=no
9506      case $host_os in
9507      solaris2.[0-5] | solaris2.[0-5].*) ;;
9508      *)
9509        # The compiler driver will combine linker options so we
9510        # cannot just pass the convience library names through
9511        # without $wl, iff we do not link with $LD.
9512        # Luckily, gcc supports the same syntax we need for Sun Studio.
9513        # Supported since Solaris 2.6 (maybe 2.5.1?)
9514        case $wlarc in
9515        '')
9516          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9517        *)
9518          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' ;;
9519        esac ;;
9520      esac
9521      link_all_deplibs=yes
9522      ;;
9523
9524    sunos4*)
9525      if test "x$host_vendor" = xsequent; then
9526        # Use $CC to link under sequent, because it throws in some extra .o
9527        # files that make .init and .fini sections work.
9528        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9529      else
9530        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9531      fi
9532      hardcode_libdir_flag_spec='-L$libdir'
9533      hardcode_direct=yes
9534      hardcode_minus_L=yes
9535      hardcode_shlibpath_var=no
9536      ;;
9537
9538    sysv4)
9539      case $host_vendor in
9540        sni)
9541          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9542          hardcode_direct=yes # is this really true???
9543        ;;
9544        siemens)
9545          ## LD is ld it makes a PLAMLIB
9546          ## CC just makes a GrossModule.
9547          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9548          reload_cmds='$CC -r -o $output$reload_objs'
9549          hardcode_direct=no
9550        ;;
9551        motorola)
9552          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9553          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9554        ;;
9555      esac
9556      runpath_var='LD_RUN_PATH'
9557      hardcode_shlibpath_var=no
9558      ;;
9559
9560    sysv4.3*)
9561      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9562      hardcode_shlibpath_var=no
9563      export_dynamic_flag_spec='-Bexport'
9564      ;;
9565
9566    sysv4*MP*)
9567      if test -d /usr/nec; then
9568        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9569        hardcode_shlibpath_var=no
9570        runpath_var=LD_RUN_PATH
9571        hardcode_runpath_var=yes
9572        ld_shlibs=yes
9573      fi
9574      ;;
9575
9576    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9577      no_undefined_flag='${wl}-z,text'
9578      archive_cmds_need_lc=no
9579      hardcode_shlibpath_var=no
9580      runpath_var='LD_RUN_PATH'
9581
9582      if test "$GCC" = yes; then
9583        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9584        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9585      else
9586        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9587        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9588      fi
9589      ;;
9590
9591    sysv5* | sco3.2v5* | sco5v6*)
9592      # Note: We can NOT use -z defs as we might desire, because we do not
9593      # link with -lc, and that would cause any symbols used from libc to
9594      # always be unresolved, which means just about no library would
9595      # ever link correctly.  If we're not using GNU ld we use -z text
9596      # though, which does catch some bad symbols but isn't as heavy-handed
9597      # as -z defs.
9598      no_undefined_flag='${wl}-z,text'
9599      allow_undefined_flag='${wl}-z,nodefs'
9600      archive_cmds_need_lc=no
9601      hardcode_shlibpath_var=no
9602      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9603      hardcode_libdir_separator=':'
9604      link_all_deplibs=yes
9605      export_dynamic_flag_spec='${wl}-Bexport'
9606      runpath_var='LD_RUN_PATH'
9607
9608      if test "$GCC" = yes; then
9609        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9610        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9611      else
9612        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9613        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9614      fi
9615      ;;
9616
9617    uts4*)
9618      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619      hardcode_libdir_flag_spec='-L$libdir'
9620      hardcode_shlibpath_var=no
9621      ;;
9622
9623    *)
9624      ld_shlibs=no
9625      ;;
9626    esac
9627  fi
9628
9629echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9630echo "${ECHO_T}$ld_shlibs" >&6
9631test "$ld_shlibs" = no && can_build_shared=no
9632
9633#
9634# Do we need to explicitly link libc?
9635#
9636case "x$archive_cmds_need_lc" in
9637x|xyes)
9638  # Assume -lc should be added
9639  archive_cmds_need_lc=yes
9640
9641  if test "$enable_shared" = yes && test "$GCC" = yes; then
9642    case $archive_cmds in
9643    *'~'*)
9644      # FIXME: we may have to deal with multi-command sequences.
9645      ;;
9646    '$CC '*)
9647      # Test whether the compiler implicitly links with -lc since on some
9648      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9649      # to ld, don't add -lc before -lgcc.
9650      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9651echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9652      $rm conftest*
9653      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9654
9655      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656  (eval $ac_compile) 2>&5
9657  ac_status=$?
9658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659  (exit $ac_status); } 2>conftest.err; then
9660        soname=conftest
9661        lib=conftest
9662        libobjs=conftest.$ac_objext
9663        deplibs=
9664        wl=$lt_prog_compiler_wl
9665        pic_flag=$lt_prog_compiler_pic
9666        compiler_flags=-v
9667        linker_flags=-v
9668        verstring=
9669        output_objdir=.
9670        libname=conftest
9671        lt_save_allow_undefined_flag=$allow_undefined_flag
9672        allow_undefined_flag=
9673        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9674  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9675  ac_status=$?
9676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9677  (exit $ac_status); }
9678        then
9679          archive_cmds_need_lc=no
9680        else
9681          archive_cmds_need_lc=yes
9682        fi
9683        allow_undefined_flag=$lt_save_allow_undefined_flag
9684      else
9685        cat conftest.err 1>&5
9686      fi
9687      $rm conftest*
9688      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9689echo "${ECHO_T}$archive_cmds_need_lc" >&6
9690      ;;
9691    esac
9692  fi
9693  ;;
9694esac
9695
9696echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9697echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9698library_names_spec=
9699libname_spec='lib$name'
9700soname_spec=
9701shrext_cmds=".so"
9702postinstall_cmds=
9703postuninstall_cmds=
9704finish_cmds=
9705finish_eval=
9706shlibpath_var=
9707shlibpath_overrides_runpath=unknown
9708version_type=none
9709dynamic_linker="$host_os ld.so"
9710sys_lib_dlsearch_path_spec="/lib /usr/lib"
9711if test "$GCC" = yes; then
9712  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9713  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9714    # if the path contains ";" then we assume it to be the separator
9715    # otherwise default to the standard path separator (i.e. ":") - it is
9716    # assumed that no part of a normal pathname contains ";" but that should
9717    # okay in the real world where ";" in dirpaths is itself problematic.
9718    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9719  else
9720    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9721  fi
9722else
9723  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9724fi
9725need_lib_prefix=unknown
9726hardcode_into_libs=no
9727
9728# when you set need_version to no, make sure it does not cause -set_version
9729# flags to be left without arguments
9730need_version=unknown
9731
9732case $host_os in
9733aix3*)
9734  version_type=linux
9735  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9736  shlibpath_var=LIBPATH
9737
9738  # AIX 3 has no versioning support, so we append a major version to the name.
9739  soname_spec='${libname}${release}${shared_ext}$major'
9740  ;;
9741
9742aix4* | aix5*)
9743  version_type=linux
9744  need_lib_prefix=no
9745  need_version=no
9746  hardcode_into_libs=yes
9747  if test "$host_cpu" = ia64; then
9748    # AIX 5 supports IA64
9749    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9750    shlibpath_var=LD_LIBRARY_PATH
9751  else
9752    # With GCC up to 2.95.x, collect2 would create an import file
9753    # for dependence libraries.  The import file would start with
9754    # the line `#! .'.  This would cause the generated library to
9755    # depend on `.', always an invalid library.  This was fixed in
9756    # development snapshots of GCC prior to 3.0.
9757    case $host_os in
9758      aix4 | aix4.[01] | aix4.[01].*)
9759      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9760           echo ' yes '
9761           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9762        :
9763      else
9764        can_build_shared=no
9765      fi
9766      ;;
9767    esac
9768    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9769    # soname into executable. Probably we can add versioning support to
9770    # collect2, so additional links can be useful in future.
9771    if test "$aix_use_runtimelinking" = yes; then
9772      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9773      # instead of lib<name>.a to let people know that these are not
9774      # typical AIX shared libraries.
9775      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9776    else
9777      # We preserve .a as extension for shared libraries through AIX4.2
9778      # and later when we are not doing run time linking.
9779      library_names_spec='${libname}${release}.a $libname.a'
9780      soname_spec='${libname}${release}${shared_ext}$major'
9781    fi
9782    shlibpath_var=LIBPATH
9783  fi
9784  ;;
9785
9786amigaos*)
9787  library_names_spec='$libname.ixlibrary $libname.a'
9788  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9789  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'
9790  ;;
9791
9792beos*)
9793  library_names_spec='${libname}${shared_ext}'
9794  dynamic_linker="$host_os ld.so"
9795  shlibpath_var=LIBRARY_PATH
9796  ;;
9797
9798bsdi[45]*)
9799  version_type=linux
9800  need_version=no
9801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9802  soname_spec='${libname}${release}${shared_ext}$major'
9803  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9804  shlibpath_var=LD_LIBRARY_PATH
9805  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9806  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9807  # the default ld.so.conf also contains /usr/contrib/lib and
9808  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9809  # libtool to hard-code these into programs
9810  ;;
9811
9812cygwin* | mingw* | pw32*)
9813  version_type=windows
9814  shrext_cmds=".dll"
9815  need_version=no
9816  need_lib_prefix=no
9817
9818  case $GCC,$host_os in
9819  yes,cygwin* | yes,mingw* | yes,pw32*)
9820    library_names_spec='$libname.dll.a'
9821    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9822    postinstall_cmds='base_file=`basename \${file}`~
9823      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9824      dldir=$destdir/`dirname \$dlpath`~
9825      test -d \$dldir || mkdir -p \$dldir~
9826      $install_prog $dir/$dlname \$dldir/$dlname~
9827      chmod a+x \$dldir/$dlname'
9828    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9829      dlpath=$dir/\$dldll~
9830       $rm \$dlpath'
9831    shlibpath_overrides_runpath=yes
9832
9833    case $host_os in
9834    cygwin*)
9835      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9836      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9837      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9838      ;;
9839    mingw*)
9840      # MinGW DLLs use traditional 'lib' prefix
9841      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9842      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9843      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9844        # It is most probably a Windows format PATH printed by
9845        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9846        # path with ; separators, and with drive letters. We can handle the
9847        # drive letters (cygwin fileutils understands them), so leave them,
9848        # especially as we might pass files found there to a mingw objdump,
9849        # which wouldn't understand a cygwinified path. Ahh.
9850        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9851      else
9852        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9853      fi
9854      ;;
9855    pw32*)
9856      # pw32 DLLs use 'pw' prefix rather than 'lib'
9857      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9858      ;;
9859    esac
9860    ;;
9861
9862  *)
9863    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9864    ;;
9865  esac
9866  dynamic_linker='Win32 ld.exe'
9867  # FIXME: first we should search . and the directory the executable is in
9868  shlibpath_var=PATH
9869  ;;
9870
9871darwin* | rhapsody*)
9872  dynamic_linker="$host_os dyld"
9873  version_type=darwin
9874  need_lib_prefix=no
9875  need_version=no
9876  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9877  soname_spec='${libname}${release}${major}$shared_ext'
9878  shlibpath_overrides_runpath=yes
9879  shlibpath_var=DYLD_LIBRARY_PATH
9880  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9881  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9882  if test "$GCC" = yes; then
9883    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"`
9884  else
9885    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9886  fi
9887  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9888  ;;
9889
9890dgux*)
9891  version_type=linux
9892  need_lib_prefix=no
9893  need_version=no
9894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9895  soname_spec='${libname}${release}${shared_ext}$major'
9896  shlibpath_var=LD_LIBRARY_PATH
9897  ;;
9898
9899freebsd1*)
9900  dynamic_linker=no
9901  ;;
9902
9903kfreebsd*-gnu)
9904  version_type=linux
9905  need_lib_prefix=no
9906  need_version=no
9907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9908  soname_spec='${libname}${release}${shared_ext}$major'
9909  shlibpath_var=LD_LIBRARY_PATH
9910  shlibpath_overrides_runpath=no
9911  hardcode_into_libs=yes
9912  dynamic_linker='GNU ld.so'
9913  ;;
9914
9915freebsd* | dragonfly*)
9916  # DragonFly does not have aout.  When/if they implement a new
9917  # versioning mechanism, adjust this.
9918  if test -x /usr/bin/objformat; then
9919    objformat=`/usr/bin/objformat`
9920  else
9921    case $host_os in
9922    freebsd[123]*) objformat=aout ;;
9923    *) objformat=elf ;;
9924    esac
9925  fi
9926  version_type=freebsd-$objformat
9927  case $version_type in
9928    freebsd-elf*)
9929      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9930      need_version=no
9931      need_lib_prefix=no
9932      ;;
9933    freebsd-*)
9934      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9935      need_version=yes
9936      ;;
9937  esac
9938  shlibpath_var=LD_LIBRARY_PATH
9939  case $host_os in
9940  freebsd2*)
9941    shlibpath_overrides_runpath=yes
9942    ;;
9943  freebsd3.[01]* | freebsdelf3.[01]*)
9944    shlibpath_overrides_runpath=yes
9945    hardcode_into_libs=yes
9946    ;;
9947  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9948  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9949    shlibpath_overrides_runpath=no
9950    hardcode_into_libs=yes
9951    ;;
9952  freebsd*) # from 4.6 on
9953    shlibpath_overrides_runpath=yes
9954    hardcode_into_libs=yes
9955    ;;
9956  esac
9957  ;;
9958
9959gnu*)
9960  version_type=linux
9961  need_lib_prefix=no
9962  need_version=no
9963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9964  soname_spec='${libname}${release}${shared_ext}$major'
9965  shlibpath_var=LD_LIBRARY_PATH
9966  hardcode_into_libs=yes
9967  ;;
9968
9969hpux9* | hpux10* | hpux11*)
9970  # Give a soname corresponding to the major version so that dld.sl refuses to
9971  # link against other versions.
9972  version_type=sunos
9973  need_lib_prefix=no
9974  need_version=no
9975  case $host_cpu in
9976  ia64*)
9977    shrext_cmds='.so'
9978    hardcode_into_libs=yes
9979    dynamic_linker="$host_os dld.so"
9980    shlibpath_var=LD_LIBRARY_PATH
9981    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9982    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983    soname_spec='${libname}${release}${shared_ext}$major'
9984    if test "X$HPUX_IA64_MODE" = X32; then
9985      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9986    else
9987      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9988    fi
9989    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9990    ;;
9991   hppa*64*)
9992     shrext_cmds='.sl'
9993     hardcode_into_libs=yes
9994     dynamic_linker="$host_os dld.sl"
9995     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9996     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998     soname_spec='${libname}${release}${shared_ext}$major'
9999     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10000     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10001     ;;
10002   *)
10003    shrext_cmds='.sl'
10004    dynamic_linker="$host_os dld.sl"
10005    shlibpath_var=SHLIB_PATH
10006    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10007    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008    soname_spec='${libname}${release}${shared_ext}$major'
10009    ;;
10010  esac
10011  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10012  postinstall_cmds='chmod 555 $lib'
10013  ;;
10014
10015interix3*)
10016  version_type=linux
10017  need_lib_prefix=no
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  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10022  shlibpath_var=LD_LIBRARY_PATH
10023  shlibpath_overrides_runpath=no
10024  hardcode_into_libs=yes
10025  ;;
10026
10027irix5* | irix6* | nonstopux*)
10028  case $host_os in
10029    nonstopux*) version_type=nonstopux ;;
10030    *)
10031        if test "$lt_cv_prog_gnu_ld" = yes; then
10032                version_type=linux
10033        else
10034                version_type=irix
10035        fi ;;
10036  esac
10037  need_lib_prefix=no
10038  need_version=no
10039  soname_spec='${libname}${release}${shared_ext}$major'
10040  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10041  case $host_os in
10042  irix5* | nonstopux*)
10043    libsuff= shlibsuff=
10044    ;;
10045  *)
10046    case $LD in # libtool.m4 will add one of these switches to LD
10047    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10048      libsuff= shlibsuff= libmagic=32-bit;;
10049    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10050      libsuff=32 shlibsuff=N32 libmagic=N32;;
10051    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10052      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10053    *) libsuff= shlibsuff= libmagic=never-match;;
10054    esac
10055    ;;
10056  esac
10057  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10058  shlibpath_overrides_runpath=no
10059  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10060  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10061  hardcode_into_libs=yes
10062  ;;
10063
10064# No shared lib support for Linux oldld, aout, or coff.
10065linux*oldld* | linux*aout* | linux*coff*)
10066  dynamic_linker=no
10067  ;;
10068
10069# This must be Linux ELF.
10070linux*)
10071  version_type=linux
10072  need_lib_prefix=no
10073  need_version=no
10074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075  soname_spec='${libname}${release}${shared_ext}$major'
10076  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10077  shlibpath_var=LD_LIBRARY_PATH
10078  shlibpath_overrides_runpath=no
10079  # This implies no fast_install, which is unacceptable.
10080  # Some rework will be needed to allow for fast_install
10081  # before this can be enabled.
10082  hardcode_into_libs=yes
10083
10084  # Append ld.so.conf contents to the search path
10085  if test -f /etc/ld.so.conf; then
10086    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' ' '`
10087    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10088  fi
10089
10090  # We used to test for /lib/ld.so.1 and disable shared libraries on
10091  # powerpc, because MkLinux only supported shared libraries with the
10092  # GNU dynamic linker.  Since this was broken with cross compilers,
10093  # most powerpc-linux boxes support dynamic linking these days and
10094  # people can always --disable-shared, the test was removed, and we
10095  # assume the GNU/Linux dynamic linker is in use.
10096  dynamic_linker='GNU/Linux ld.so'
10097  ;;
10098
10099knetbsd*-gnu)
10100  version_type=linux
10101  need_lib_prefix=no
10102  need_version=no
10103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10104  soname_spec='${libname}${release}${shared_ext}$major'
10105  shlibpath_var=LD_LIBRARY_PATH
10106  shlibpath_overrides_runpath=no
10107  hardcode_into_libs=yes
10108  dynamic_linker='GNU ld.so'
10109  ;;
10110
10111netbsd*)
10112  version_type=sunos
10113  need_lib_prefix=no
10114  need_version=no
10115  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10116    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10117    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10118    dynamic_linker='NetBSD (a.out) ld.so'
10119  else
10120    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10121    soname_spec='${libname}${release}${shared_ext}$major'
10122    dynamic_linker='NetBSD ld.elf_so'
10123  fi
10124  shlibpath_var=LD_LIBRARY_PATH
10125  shlibpath_overrides_runpath=yes
10126  hardcode_into_libs=yes
10127  ;;
10128
10129newsos6)
10130  version_type=linux
10131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132  shlibpath_var=LD_LIBRARY_PATH
10133  shlibpath_overrides_runpath=yes
10134  ;;
10135
10136nto-qnx*)
10137  version_type=linux
10138  need_lib_prefix=no
10139  need_version=no
10140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141  soname_spec='${libname}${release}${shared_ext}$major'
10142  shlibpath_var=LD_LIBRARY_PATH
10143  shlibpath_overrides_runpath=yes
10144  ;;
10145
10146openbsd*)
10147  version_type=sunos
10148  sys_lib_dlsearch_path_spec="/usr/lib"
10149  need_lib_prefix=no
10150  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10151  case $host_os in
10152    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10153    *)                         need_version=no  ;;
10154  esac
10155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10156  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10157  shlibpath_var=LD_LIBRARY_PATH
10158  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10159    case $host_os in
10160      openbsd2.[89] | openbsd2.[89].*)
10161        shlibpath_overrides_runpath=no
10162        ;;
10163      *)
10164        shlibpath_overrides_runpath=yes
10165        ;;
10166      esac
10167  else
10168    shlibpath_overrides_runpath=yes
10169  fi
10170  ;;
10171
10172os2*)
10173  libname_spec='$name'
10174  shrext_cmds=".dll"
10175  need_lib_prefix=no
10176  library_names_spec='$libname${shared_ext} $libname.a'
10177  dynamic_linker='OS/2 ld.exe'
10178  shlibpath_var=LIBPATH
10179  ;;
10180
10181osf3* | osf4* | osf5*)
10182  version_type=osf
10183  need_lib_prefix=no
10184  need_version=no
10185  soname_spec='${libname}${release}${shared_ext}$major'
10186  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10187  shlibpath_var=LD_LIBRARY_PATH
10188  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10189  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10190  ;;
10191
10192solaris*)
10193  version_type=linux
10194  need_lib_prefix=no
10195  need_version=no
10196  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10197  soname_spec='${libname}${release}${shared_ext}$major'
10198  shlibpath_var=LD_LIBRARY_PATH
10199  shlibpath_overrides_runpath=yes
10200  hardcode_into_libs=yes
10201  # ldd complains unless libraries are executable
10202  postinstall_cmds='chmod +x $lib'
10203  ;;
10204
10205sunos4*)
10206  version_type=sunos
10207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10208  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10209  shlibpath_var=LD_LIBRARY_PATH
10210  shlibpath_overrides_runpath=yes
10211  if test "$with_gnu_ld" = yes; then
10212    need_lib_prefix=no
10213  fi
10214  need_version=yes
10215  ;;
10216
10217sysv4 | sysv4.3*)
10218  version_type=linux
10219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220  soname_spec='${libname}${release}${shared_ext}$major'
10221  shlibpath_var=LD_LIBRARY_PATH
10222  case $host_vendor in
10223    sni)
10224      shlibpath_overrides_runpath=no
10225      need_lib_prefix=no
10226      export_dynamic_flag_spec='${wl}-Blargedynsym'
10227      runpath_var=LD_RUN_PATH
10228      ;;
10229    siemens)
10230      need_lib_prefix=no
10231      ;;
10232    motorola)
10233      need_lib_prefix=no
10234      need_version=no
10235      shlibpath_overrides_runpath=no
10236      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10237      ;;
10238  esac
10239  ;;
10240
10241sysv4*MP*)
10242  if test -d /usr/nec ;then
10243    version_type=linux
10244    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10245    soname_spec='$libname${shared_ext}.$major'
10246    shlibpath_var=LD_LIBRARY_PATH
10247  fi
10248  ;;
10249
10250sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10251  version_type=freebsd-elf
10252  need_lib_prefix=no
10253  need_version=no
10254  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10255  soname_spec='${libname}${release}${shared_ext}$major'
10256  shlibpath_var=LD_LIBRARY_PATH
10257  hardcode_into_libs=yes
10258  if test "$with_gnu_ld" = yes; then
10259    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10260    shlibpath_overrides_runpath=no
10261  else
10262    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10263    shlibpath_overrides_runpath=yes
10264    case $host_os in
10265      sco3.2v5*)
10266        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10267        ;;
10268    esac
10269  fi
10270  sys_lib_dlsearch_path_spec='/usr/lib'
10271  ;;
10272
10273uts4*)
10274  version_type=linux
10275  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276  soname_spec='${libname}${release}${shared_ext}$major'
10277  shlibpath_var=LD_LIBRARY_PATH
10278  ;;
10279
10280*)
10281  dynamic_linker=no
10282  ;;
10283esac
10284echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10285echo "${ECHO_T}$dynamic_linker" >&6
10286test "$dynamic_linker" = no && can_build_shared=no
10287
10288variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10289if test "$GCC" = yes; then
10290  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10291fi
10292
10293echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10294echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10295hardcode_action=
10296if test -n "$hardcode_libdir_flag_spec" || \
10297   test -n "$runpath_var" || \
10298   test "X$hardcode_automatic" = "Xyes" ; then
10299
10300  # We can hardcode non-existant directories.
10301  if test "$hardcode_direct" != no &&
10302     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10303     # have to relink, otherwise we might link with an installed library
10304     # when we should be linking with a yet-to-be-installed one
10305     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10306     test "$hardcode_minus_L" != no; then
10307    # Linking always hardcodes the temporary library directory.
10308    hardcode_action=relink
10309  else
10310    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10311    hardcode_action=immediate
10312  fi
10313else
10314  # We cannot hardcode anything, or else we can only hardcode existing
10315  # directories.
10316  hardcode_action=unsupported
10317fi
10318echo "$as_me:$LINENO: result: $hardcode_action" >&5
10319echo "${ECHO_T}$hardcode_action" >&6
10320
10321if test "$hardcode_action" = relink; then
10322  # Fast installation is not supported
10323  enable_fast_install=no
10324elif test "$shlibpath_overrides_runpath" = yes ||
10325     test "$enable_shared" = no; then
10326  # Fast installation is not necessary
10327  enable_fast_install=needless
10328fi
10329
10330striplib=
10331old_striplib=
10332echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10333echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10334if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10335  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10336  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10337  echo "$as_me:$LINENO: result: yes" >&5
10338echo "${ECHO_T}yes" >&6
10339else
10340# FIXME - insert some real tests, host_os isn't really good enough
10341  case $host_os in
10342   darwin*)
10343       if test -n "$STRIP" ; then
10344         striplib="$STRIP -x"
10345         echo "$as_me:$LINENO: result: yes" >&5
10346echo "${ECHO_T}yes" >&6
10347       else
10348  echo "$as_me:$LINENO: result: no" >&5
10349echo "${ECHO_T}no" >&6
10350fi
10351       ;;
10352   *)
10353  echo "$as_me:$LINENO: result: no" >&5
10354echo "${ECHO_T}no" >&6
10355    ;;
10356  esac
10357fi
10358
10359if test "x$enable_dlopen" != xyes; then
10360  enable_dlopen=unknown
10361  enable_dlopen_self=unknown
10362  enable_dlopen_self_static=unknown
10363else
10364  lt_cv_dlopen=no
10365  lt_cv_dlopen_libs=
10366
10367  case $host_os in
10368  beos*)
10369    lt_cv_dlopen="load_add_on"
10370    lt_cv_dlopen_libs=
10371    lt_cv_dlopen_self=yes
10372    ;;
10373
10374  mingw* | pw32*)
10375    lt_cv_dlopen="LoadLibrary"
10376    lt_cv_dlopen_libs=
10377   ;;
10378
10379  cygwin*)
10380    lt_cv_dlopen="dlopen"
10381    lt_cv_dlopen_libs=
10382   ;;
10383
10384  darwin*)
10385  # if libdl is installed we need to link against it
10386    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10387echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10388if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10389  echo $ECHO_N "(cached) $ECHO_C" >&6
10390else
10391  ac_check_lib_save_LIBS=$LIBS
10392LIBS="-ldl  $LIBS"
10393cat >conftest.$ac_ext <<_ACEOF
10394/* confdefs.h.  */
10395_ACEOF
10396cat confdefs.h >>conftest.$ac_ext
10397cat >>conftest.$ac_ext <<_ACEOF
10398/* end confdefs.h.  */
10399
10400/* Override any gcc2 internal prototype to avoid an error.  */
10401#ifdef __cplusplus
10402extern "C"
10403#endif
10404/* We use char because int might match the return type of a gcc2
10405   builtin and then its argument prototype would still apply.  */
10406char dlopen ();
10407int
10408main ()
10409{
10410dlopen ();
10411  ;
10412  return 0;
10413}
10414_ACEOF
10415rm -f conftest.$ac_objext conftest$ac_exeext
10416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10417  (eval $ac_link) 2>conftest.er1
10418  ac_status=$?
10419  grep -v '^ *+' conftest.er1 >conftest.err
10420  rm -f conftest.er1
10421  cat conftest.err >&5
10422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423  (exit $ac_status); } &&
10424         { ac_try='test -z "$ac_c_werror_flag"
10425                         || test ! -s conftest.err'
10426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10427  (eval $ac_try) 2>&5
10428  ac_status=$?
10429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430  (exit $ac_status); }; } &&
10431         { ac_try='test -s conftest$ac_exeext'
10432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433  (eval $ac_try) 2>&5
10434  ac_status=$?
10435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436  (exit $ac_status); }; }; then
10437  ac_cv_lib_dl_dlopen=yes
10438else
10439  echo "$as_me: failed program was:" >&5
10440sed 's/^/| /' conftest.$ac_ext >&5
10441
10442ac_cv_lib_dl_dlopen=no
10443fi
10444rm -f conftest.err conftest.$ac_objext \
10445      conftest$ac_exeext conftest.$ac_ext
10446LIBS=$ac_check_lib_save_LIBS
10447fi
10448echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10449echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10450if test $ac_cv_lib_dl_dlopen = yes; then
10451  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10452else
10453
10454    lt_cv_dlopen="dyld"
10455    lt_cv_dlopen_libs=
10456    lt_cv_dlopen_self=yes
10457
10458fi
10459
10460   ;;
10461
10462  *)
10463    echo "$as_me:$LINENO: checking for shl_load" >&5
10464echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10465if test "${ac_cv_func_shl_load+set}" = set; then
10466  echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468  cat >conftest.$ac_ext <<_ACEOF
10469/* confdefs.h.  */
10470_ACEOF
10471cat confdefs.h >>conftest.$ac_ext
10472cat >>conftest.$ac_ext <<_ACEOF
10473/* end confdefs.h.  */
10474/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10475   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10476#define shl_load innocuous_shl_load
10477
10478/* System header to define __stub macros and hopefully few prototypes,
10479    which can conflict with char shl_load (); below.
10480    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10481    <limits.h> exists even on freestanding compilers.  */
10482
10483#ifdef __STDC__
10484# include <limits.h>
10485#else
10486# include <assert.h>
10487#endif
10488
10489#undef shl_load
10490
10491/* Override any gcc2 internal prototype to avoid an error.  */
10492#ifdef __cplusplus
10493extern "C"
10494{
10495#endif
10496/* We use char because int might match the return type of a gcc2
10497   builtin and then its argument prototype would still apply.  */
10498char shl_load ();
10499/* The GNU C library defines this for functions which it implements
10500    to always fail with ENOSYS.  Some functions are actually named
10501    something starting with __ and the normal name is an alias.  */
10502#if defined (__stub_shl_load) || defined (__stub___shl_load)
10503choke me
10504#else
10505char (*f) () = shl_load;
10506#endif
10507#ifdef __cplusplus
10508}
10509#endif
10510
10511int
10512main ()
10513{
10514return f != shl_load;
10515  ;
10516  return 0;
10517}
10518_ACEOF
10519rm -f conftest.$ac_objext conftest$ac_exeext
10520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10521  (eval $ac_link) 2>conftest.er1
10522  ac_status=$?
10523  grep -v '^ *+' conftest.er1 >conftest.err
10524  rm -f conftest.er1
10525  cat conftest.err >&5
10526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527  (exit $ac_status); } &&
10528         { ac_try='test -z "$ac_c_werror_flag"
10529                         || test ! -s conftest.err'
10530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531  (eval $ac_try) 2>&5
10532  ac_status=$?
10533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534  (exit $ac_status); }; } &&
10535         { ac_try='test -s conftest$ac_exeext'
10536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10537  (eval $ac_try) 2>&5
10538  ac_status=$?
10539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540  (exit $ac_status); }; }; then
10541  ac_cv_func_shl_load=yes
10542else
10543  echo "$as_me: failed program was:" >&5
10544sed 's/^/| /' conftest.$ac_ext >&5
10545
10546ac_cv_func_shl_load=no
10547fi
10548rm -f conftest.err conftest.$ac_objext \
10549      conftest$ac_exeext conftest.$ac_ext
10550fi
10551echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10552echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10553if test $ac_cv_func_shl_load = yes; then
10554  lt_cv_dlopen="shl_load"
10555else
10556  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10557echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10558if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10559  echo $ECHO_N "(cached) $ECHO_C" >&6
10560else
10561  ac_check_lib_save_LIBS=$LIBS
10562LIBS="-ldld  $LIBS"
10563cat >conftest.$ac_ext <<_ACEOF
10564/* confdefs.h.  */
10565_ACEOF
10566cat confdefs.h >>conftest.$ac_ext
10567cat >>conftest.$ac_ext <<_ACEOF
10568/* end confdefs.h.  */
10569
10570/* Override any gcc2 internal prototype to avoid an error.  */
10571#ifdef __cplusplus
10572extern "C"
10573#endif
10574/* We use char because int might match the return type of a gcc2
10575   builtin and then its argument prototype would still apply.  */
10576char shl_load ();
10577int
10578main ()
10579{
10580shl_load ();
10581  ;
10582  return 0;
10583}
10584_ACEOF
10585rm -f conftest.$ac_objext conftest$ac_exeext
10586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587  (eval $ac_link) 2>conftest.er1
10588  ac_status=$?
10589  grep -v '^ *+' conftest.er1 >conftest.err
10590  rm -f conftest.er1
10591  cat conftest.err >&5
10592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593  (exit $ac_status); } &&
10594         { ac_try='test -z "$ac_c_werror_flag"
10595                         || test ! -s conftest.err'
10596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597  (eval $ac_try) 2>&5
10598  ac_status=$?
10599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600  (exit $ac_status); }; } &&
10601         { ac_try='test -s conftest$ac_exeext'
10602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603  (eval $ac_try) 2>&5
10604  ac_status=$?
10605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606  (exit $ac_status); }; }; then
10607  ac_cv_lib_dld_shl_load=yes
10608else
10609  echo "$as_me: failed program was:" >&5
10610sed 's/^/| /' conftest.$ac_ext >&5
10611
10612ac_cv_lib_dld_shl_load=no
10613fi
10614rm -f conftest.err conftest.$ac_objext \
10615      conftest$ac_exeext conftest.$ac_ext
10616LIBS=$ac_check_lib_save_LIBS
10617fi
10618echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10619echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10620if test $ac_cv_lib_dld_shl_load = yes; then
10621  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10622else
10623  echo "$as_me:$LINENO: checking for dlopen" >&5
10624echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10625if test "${ac_cv_func_dlopen+set}" = set; then
10626  echo $ECHO_N "(cached) $ECHO_C" >&6
10627else
10628  cat >conftest.$ac_ext <<_ACEOF
10629/* confdefs.h.  */
10630_ACEOF
10631cat confdefs.h >>conftest.$ac_ext
10632cat >>conftest.$ac_ext <<_ACEOF
10633/* end confdefs.h.  */
10634/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10635   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10636#define dlopen innocuous_dlopen
10637
10638/* System header to define __stub macros and hopefully few prototypes,
10639    which can conflict with char dlopen (); below.
10640    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10641    <limits.h> exists even on freestanding compilers.  */
10642
10643#ifdef __STDC__
10644# include <limits.h>
10645#else
10646# include <assert.h>
10647#endif
10648
10649#undef dlopen
10650
10651/* Override any gcc2 internal prototype to avoid an error.  */
10652#ifdef __cplusplus
10653extern "C"
10654{
10655#endif
10656/* We use char because int might match the return type of a gcc2
10657   builtin and then its argument prototype would still apply.  */
10658char dlopen ();
10659/* The GNU C library defines this for functions which it implements
10660    to always fail with ENOSYS.  Some functions are actually named
10661    something starting with __ and the normal name is an alias.  */
10662#if defined (__stub_dlopen) || defined (__stub___dlopen)
10663choke me
10664#else
10665char (*f) () = dlopen;
10666#endif
10667#ifdef __cplusplus
10668}
10669#endif
10670
10671int
10672main ()
10673{
10674return f != dlopen;
10675  ;
10676  return 0;
10677}
10678_ACEOF
10679rm -f conftest.$ac_objext conftest$ac_exeext
10680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10681  (eval $ac_link) 2>conftest.er1
10682  ac_status=$?
10683  grep -v '^ *+' conftest.er1 >conftest.err
10684  rm -f conftest.er1
10685  cat conftest.err >&5
10686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687  (exit $ac_status); } &&
10688         { ac_try='test -z "$ac_c_werror_flag"
10689                         || test ! -s conftest.err'
10690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691  (eval $ac_try) 2>&5
10692  ac_status=$?
10693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694  (exit $ac_status); }; } &&
10695         { ac_try='test -s conftest$ac_exeext'
10696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697  (eval $ac_try) 2>&5
10698  ac_status=$?
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); }; }; then
10701  ac_cv_func_dlopen=yes
10702else
10703  echo "$as_me: failed program was:" >&5
10704sed 's/^/| /' conftest.$ac_ext >&5
10705
10706ac_cv_func_dlopen=no
10707fi
10708rm -f conftest.err conftest.$ac_objext \
10709      conftest$ac_exeext conftest.$ac_ext
10710fi
10711echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10712echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10713if test $ac_cv_func_dlopen = yes; then
10714  lt_cv_dlopen="dlopen"
10715else
10716  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10717echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10718if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10719  echo $ECHO_N "(cached) $ECHO_C" >&6
10720else
10721  ac_check_lib_save_LIBS=$LIBS
10722LIBS="-ldl  $LIBS"
10723cat >conftest.$ac_ext <<_ACEOF
10724/* confdefs.h.  */
10725_ACEOF
10726cat confdefs.h >>conftest.$ac_ext
10727cat >>conftest.$ac_ext <<_ACEOF
10728/* end confdefs.h.  */
10729
10730/* Override any gcc2 internal prototype to avoid an error.  */
10731#ifdef __cplusplus
10732extern "C"
10733#endif
10734/* We use char because int might match the return type of a gcc2
10735   builtin and then its argument prototype would still apply.  */
10736char dlopen ();
10737int
10738main ()
10739{
10740dlopen ();
10741  ;
10742  return 0;
10743}
10744_ACEOF
10745rm -f conftest.$ac_objext conftest$ac_exeext
10746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747  (eval $ac_link) 2>conftest.er1
10748  ac_status=$?
10749  grep -v '^ *+' conftest.er1 >conftest.err
10750  rm -f conftest.er1
10751  cat conftest.err >&5
10752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753  (exit $ac_status); } &&
10754         { ac_try='test -z "$ac_c_werror_flag"
10755                         || test ! -s conftest.err'
10756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10757  (eval $ac_try) 2>&5
10758  ac_status=$?
10759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760  (exit $ac_status); }; } &&
10761         { ac_try='test -s conftest$ac_exeext'
10762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10763  (eval $ac_try) 2>&5
10764  ac_status=$?
10765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766  (exit $ac_status); }; }; then
10767  ac_cv_lib_dl_dlopen=yes
10768else
10769  echo "$as_me: failed program was:" >&5
10770sed 's/^/| /' conftest.$ac_ext >&5
10771
10772ac_cv_lib_dl_dlopen=no
10773fi
10774rm -f conftest.err conftest.$ac_o