source: trunk/configure @ 567

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

enable configuration (libtool check issue) for cross compilation

  • Property svn:executable set to *
File size: 725.1 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"
3830     else
3831       coin_f77_comps="gfortran g77 ifort fl32"
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='-nologo -MT'
4223            coin_dbg_fflags='-debug'
4224          ;;
4225        esac
4226        ;;
4227      *-linux-*)
4228        case $F77 in
4229          ifc* | */ifc* | ifort* | */ifort*)
4230            coin_opt_fflags="-O3 -ip"
4231            coin_add_fflags="-cm -w90 -w95"
4232            coin_dbg_fflags="-g -CA -CB -CS"
4233            # Check if -i_dynamic is necessary (for new glibc library)
4234            FFLAGS=
4235            cat >conftest.$ac_ext <<_ACEOF
4236      program main
4237      write(*,*) 'Hello world'
4238      end
4239_ACEOF
4240rm -f conftest.$ac_objext conftest$ac_exeext
4241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242  (eval $ac_link) 2>conftest.er1
4243  ac_status=$?
4244  grep -v '^ *+' conftest.er1 >conftest.err
4245  rm -f conftest.er1
4246  cat conftest.err >&5
4247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248  (exit $ac_status); } &&
4249         { ac_try='test -z "$ac_f77_werror_flag"
4250                         || test ! -s conftest.err'
4251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252  (eval $ac_try) 2>&5
4253  ac_status=$?
4254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255  (exit $ac_status); }; } &&
4256         { ac_try='test -s conftest$ac_exeext'
4257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258  (eval $ac_try) 2>&5
4259  ac_status=$?
4260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261  (exit $ac_status); }; }; then
4262  :
4263else
4264  echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
4266
4267coin_add_fflags="-i_dynamic $coin_add_fflags"
4268fi
4269rm -f conftest.err conftest.$ac_objext \
4270      conftest$ac_exeext conftest.$ac_ext
4271            ;;
4272          pgf77* | */pgf77* | pgf90* | */pgf90*)
4273            coin_opt_fflags="-fast"
4274            coin_add_fflags="-Kieee -pc 64"
4275            coin_dbg_fflags="-g"
4276          ;;
4277        esac
4278        ;;
4279      *-ibm-*)
4280        case "$F77" in
4281          xlf* | */xlf* | mpxlf* | */mpxlf* )
4282            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4283            coin_add_fflags="-bmaxdata:0x80000000"
4284            coin_dbg_fflags="-g -C"
4285            ;;
4286        esac
4287        ;;
4288      *-hp-*)
4289        coin_opt_fflags="+O3"
4290        coin_add_fflags="+U77"
4291        coin_dbg_fflags="-C -g"
4292        ;;
4293      *-sun-*)
4294        coin_opt_fflags="-O4"
4295        coin_dbg_fflags="-g"
4296        ;;
4297      *-sgi-*)
4298        coin_opt_fflags="-O5 -OPT:Olimit=0"
4299        coin_dbg_fflags="-g"
4300        ;;
4301    esac
4302  fi
4303
4304  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4305    coin_dbg_fflags="-g"
4306  fi
4307
4308  if test -z "$coin_opt_fflags"; then
4309    # Try if -O option works if nothing else is set
4310    FFLAGS=-O
4311    cat >conftest.$ac_ext <<_ACEOF
4312      program main
4313      integer i
4314      end
4315_ACEOF
4316rm -f conftest.$ac_objext conftest$ac_exeext
4317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4318  (eval $ac_link) 2>conftest.er1
4319  ac_status=$?
4320  grep -v '^ *+' conftest.er1 >conftest.err
4321  rm -f conftest.er1
4322  cat conftest.err >&5
4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324  (exit $ac_status); } &&
4325         { ac_try='test -z "$ac_f77_werror_flag"
4326                         || test ! -s conftest.err'
4327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328  (eval $ac_try) 2>&5
4329  ac_status=$?
4330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331  (exit $ac_status); }; } &&
4332         { ac_try='test -s conftest$ac_exeext'
4333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4334  (eval $ac_try) 2>&5
4335  ac_status=$?
4336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337  (exit $ac_status); }; }; then
4338  coin_opt_fflags="-O"
4339else
4340  echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343fi
4344rm -f conftest.err conftest.$ac_objext \
4345      conftest$ac_exeext conftest.$ac_ext
4346  fi
4347
4348  # if PM doesn't want the warning messages, take them out
4349  if test x"$coin_skip_warn_fflags" = xyes; then
4350    coin_warn_fflags=
4351  fi
4352
4353  if test x${DBG_FFLAGS+set} != xset; then
4354    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4355  fi
4356  if test x${OPT_FFLAGS+set} != xset; then
4357    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4358  fi
4359
4360  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4361  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4362
4363  if test "$coin_debug_compile" = "true"; then
4364    FFLAGS="$DBG_FFLAGS"
4365  else
4366    FFLAGS="$OPT_FFLAGS"
4367  fi
4368else
4369  FFLAGS="$FFLAGS $ADD_FFLAGS"
4370  if test x${DBG_FFLAGS+set} != xset; then
4371    DBG_FFLAGS="$FFLAGS"
4372  fi
4373  if test x${OPT_FFLAGS+set} != xset; then
4374    OPT_FFLAGS="$FFLAGS"
4375  fi
4376fi
4377
4378# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4379case "$FFLAGS" in
4380  *-mno-cygwin*)
4381    if test x${CPPFLAGS+set} != xset ; then
4382      CPPFLAGS="-mno-cygwin"
4383    else
4384      case "$CPPFLAGS" in
4385        *-mno-cygwin*)
4386          ;;
4387        *)
4388          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4389          ;;
4390      esac
4391    fi ;;
4392esac
4393
4394# Try if FFLAGS works
4395if test "$F77" != "unavailable" ; then
4396  cat >conftest.$ac_ext <<_ACEOF
4397      program main
4398      integer i
4399      end
4400_ACEOF
4401rm -f conftest.$ac_objext conftest$ac_exeext
4402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4403  (eval $ac_link) 2>conftest.er1
4404  ac_status=$?
4405  grep -v '^ *+' conftest.er1 >conftest.err
4406  rm -f conftest.er1
4407  cat conftest.err >&5
4408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409  (exit $ac_status); } &&
4410         { ac_try='test -z "$ac_f77_werror_flag"
4411                         || test ! -s conftest.err'
4412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413  (eval $ac_try) 2>&5
4414  ac_status=$?
4415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416  (exit $ac_status); }; } &&
4417         { ac_try='test -s conftest$ac_exeext'
4418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419  (eval $ac_try) 2>&5
4420  ac_status=$?
4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422  (exit $ac_status); }; }; then
4423  :
4424else
4425  echo "$as_me: failed program was:" >&5
4426sed 's/^/| /' conftest.$ac_ext >&5
4427
4428FFLAGS=
4429fi
4430rm -f conftest.err conftest.$ac_objext \
4431      conftest$ac_exeext conftest.$ac_ext
4432  if test -z "$FFLAGS"; then
4433    { 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
4434echo "$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;}
4435    FFLAGS='-O'
4436    cat >conftest.$ac_ext <<_ACEOF
4437      program main
4438      integer i
4439      end
4440_ACEOF
4441rm -f conftest.$ac_objext conftest$ac_exeext
4442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4443  (eval $ac_link) 2>conftest.er1
4444  ac_status=$?
4445  grep -v '^ *+' conftest.er1 >conftest.err
4446  rm -f conftest.er1
4447  cat conftest.err >&5
4448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449  (exit $ac_status); } &&
4450         { ac_try='test -z "$ac_f77_werror_flag"
4451                         || test ! -s conftest.err'
4452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4453  (eval $ac_try) 2>&5
4454  ac_status=$?
4455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456  (exit $ac_status); }; } &&
4457         { ac_try='test -s conftest$ac_exeext'
4458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459  (eval $ac_try) 2>&5
4460  ac_status=$?
4461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462  (exit $ac_status); }; }; then
4463  :
4464else
4465  echo "$as_me: failed program was:" >&5
4466sed 's/^/| /' conftest.$ac_ext >&5
4467
4468FFLAGS=
4469fi
4470rm -f conftest.err conftest.$ac_objext \
4471      conftest$ac_exeext conftest.$ac_ext
4472    if test -z "$FFLAGS"; then
4473      { 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
4474echo "$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;}
4475    fi
4476  fi
4477fi
4478
4479{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4480echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4481
4482
4483if test x"$MPIF77" = x; then :; else
4484  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4485echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4486  F77="$MPIF77"
4487fi
4488
4489case "$F77" in
4490  ifort* | */ifort* | IFORT* | */IFORT*)
4491    case $build in
4492  *-mingw*)
4493    if test "${LD+set}" = set; then :; else
4494      LD=link
4495    fi
4496    ;;
4497 esac
4498 case $enable_doscompile in
4499   msvc)
4500     if test "x${LD+set}" = xset; then :; else
4501       LD=link
4502     fi
4503     ;;
4504 esac
4505
4506    ;;
4507esac
4508
4509ac_ext=c
4510ac_cpp='$CPP $CPPFLAGS'
4511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4513ac_compiler_gnu=$ac_cv_c_compiler_gnu
4514
4515
4516
4517# Initialize automake and libtool
4518# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4519{
4520
4521
4522
4523# START
4524
4525# On Cygwin, building DLLs doesn't work
4526case $build in
4527  *-cygwin*)
4528    coin_disable_shared=yes
4529    platform=Cygwin
4530  ;;
4531  *-mingw*)
4532    coin_disable_shared=yes
4533    platform="Msys"
4534#    case "$CXX" in
4535#      cl*)
4536#        coin_disable_shared=yes
4537#        platform="Msys with cl"
4538#    ;;
4539#    esac
4540  ;;
4541esac
4542if test x"$coin_disable_shared" = xyes; then
4543  if test x"$enable_shared" = xyes; then
4544    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4545echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4546  fi
4547  enable_shared=no
4548fi
4549# By default, we only want the shared objects to be compiled
4550# Check whether --enable-static or --disable-static was given.
4551if test "${enable_static+set}" = set; then
4552  enableval="$enable_static"
4553  p=${PACKAGE-default}
4554    case $enableval in
4555    yes) enable_static=yes ;;
4556    no) enable_static=no ;;
4557    *)
4558     enable_static=no
4559      # Look at the argument we got.  We use all the common list separators.
4560      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4561      for pkg in $enableval; do
4562        IFS="$lt_save_ifs"
4563        if test "X$pkg" = "X$p"; then
4564          enable_static=yes
4565        fi
4566      done
4567      IFS="$lt_save_ifs"
4568      ;;
4569    esac
4570else
4571  enable_static=no
4572fi;
4573
4574
4575
4576
4577# Initialize automake
4578echo "$as_me:$LINENO: checking for egrep" >&5
4579echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4580if test "${ac_cv_prog_egrep+set}" = set; then
4581  echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4584    then ac_cv_prog_egrep='grep -E'
4585    else ac_cv_prog_egrep='egrep'
4586    fi
4587fi
4588echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4589echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4590 EGREP=$ac_cv_prog_egrep
4591
4592
4593am__api_version="1.9"
4594# Find a good install program.  We prefer a C program (faster),
4595# so one script is as good as another.  But avoid the broken or
4596# incompatible versions:
4597# SysV /etc/install, /usr/sbin/install
4598# SunOS /usr/etc/install
4599# IRIX /sbin/install
4600# AIX /bin/install
4601# AmigaOS /C/install, which installs bootblocks on floppy discs
4602# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4603# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4604# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4605# OS/2's system install, which has a completely different semantic
4606# ./install, which can be erroneously created by make from ./install.sh.
4607echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4608echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4609if test -z "$INSTALL"; then
4610if test "${ac_cv_path_install+set}" = set; then
4611  echo $ECHO_N "(cached) $ECHO_C" >&6
4612else
4613  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614for as_dir in $PATH
4615do
4616  IFS=$as_save_IFS
4617  test -z "$as_dir" && as_dir=.
4618  # Account for people who put trailing slashes in PATH elements.
4619case $as_dir/ in
4620  ./ | .// | /cC/* | \
4621  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4622  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4623  /usr/ucb/* ) ;;
4624  *)
4625    # OSF1 and SCO ODT 3.0 have their own names for install.
4626    # Don't use installbsd from OSF since it installs stuff as root
4627    # by default.
4628    for ac_prog in ginstall scoinst install; do
4629      for ac_exec_ext in '' $ac_executable_extensions; do
4630        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4631          if test $ac_prog = install &&
4632            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4633            # AIX install.  It has an incompatible calling convention.
4634            :
4635          elif test $ac_prog = install &&
4636            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4637            # program-specific install script used by HP pwplus--don't use.
4638            :
4639          else
4640            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4641            break 3
4642          fi
4643        fi
4644      done
4645    done
4646    ;;
4647esac
4648done
4649
4650
4651fi
4652  if test "${ac_cv_path_install+set}" = set; then
4653    INSTALL=$ac_cv_path_install
4654  else
4655    # As a last resort, use the slow shell script.  We don't cache a
4656    # path for INSTALL within a source directory, because that will
4657    # break other packages using the cache if that directory is
4658    # removed, or if the path is relative.
4659    INSTALL=$ac_install_sh
4660  fi
4661fi
4662echo "$as_me:$LINENO: result: $INSTALL" >&5
4663echo "${ECHO_T}$INSTALL" >&6
4664
4665# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4666# It thinks the first close brace ends the variable substitution.
4667test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4668
4669test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4670
4671test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4672
4673echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4674echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4675# Just in case
4676sleep 1
4677echo timestamp > conftest.file
4678# Do `set' in a subshell so we don't clobber the current shell's
4679# arguments.  Must try -L first in case configure is actually a
4680# symlink; some systems play weird games with the mod time of symlinks
4681# (eg FreeBSD returns the mod time of the symlink's containing
4682# directory).
4683if (
4684   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4685   if test "$*" = "X"; then
4686      # -L didn't work.
4687      set X `ls -t $srcdir/configure conftest.file`
4688   fi
4689   rm -f conftest.file
4690   if test "$*" != "X $srcdir/configure conftest.file" \
4691      && test "$*" != "X conftest.file $srcdir/configure"; then
4692
4693      # If neither matched, then we have a broken ls.  This can happen
4694      # if, for instance, CONFIG_SHELL is bash and it inherits a
4695      # broken ls alias from the environment.  This has actually
4696      # happened.  Such a system could not be considered "sane".
4697      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4698alias in your environment" >&5
4699echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4700alias in your environment" >&2;}
4701   { (exit 1); exit 1; }; }
4702   fi
4703
4704   test "$2" = conftest.file
4705   )
4706then
4707   # Ok.
4708   :
4709else
4710   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4711Check your system clock" >&5
4712echo "$as_me: error: newly created file is older than distributed files!
4713Check your system clock" >&2;}
4714   { (exit 1); exit 1; }; }
4715fi
4716echo "$as_me:$LINENO: result: yes" >&5
4717echo "${ECHO_T}yes" >&6
4718test "$program_prefix" != NONE &&
4719  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4720# Use a double $ so make ignores it.
4721test "$program_suffix" != NONE &&
4722  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4723# Double any \ or $.  echo might interpret backslashes.
4724# By default was `s,x,x', remove it if useless.
4725cat <<\_ACEOF >conftest.sed
4726s/[\\$]/&&/g;s/;s,x,x,$//
4727_ACEOF
4728program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4729rm conftest.sed
4730
4731# expand $ac_aux_dir to an absolute path
4732am_aux_dir=`cd $ac_aux_dir && pwd`
4733
4734test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4735# Use eval to expand $SHELL
4736if eval "$MISSING --run true"; then
4737  am_missing_run="$MISSING --run "
4738else
4739  am_missing_run=
4740  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4741echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4742fi
4743
4744if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4745  # We used to keeping the `.' as first argument, in order to
4746  # allow $(mkdir_p) to be used without argument.  As in
4747  #   $(mkdir_p) $(somedir)
4748  # where $(somedir) is conditionally defined.  However this is wrong
4749  # for two reasons:
4750  #  1. if the package is installed by a user who cannot write `.'
4751  #     make install will fail,
4752  #  2. the above comment should most certainly read
4753  #     $(mkdir_p) $(DESTDIR)$(somedir)
4754  #     so it does not work when $(somedir) is undefined and
4755  #     $(DESTDIR) is not.
4756  #  To support the latter case, we have to write
4757  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4758  #  so the `.' trick is pointless.
4759  mkdir_p='mkdir -p --'
4760else
4761  # On NextStep and OpenStep, the `mkdir' command does not
4762  # recognize any option.  It will interpret all options as
4763  # directories to create, and then abort because `.' already
4764  # exists.
4765  for d in ./-p ./--version;
4766  do
4767    test -d $d && rmdir $d
4768  done
4769  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4770  if test -f "$ac_aux_dir/mkinstalldirs"; then
4771    mkdir_p='$(mkinstalldirs)'
4772  else
4773    mkdir_p='$(install_sh) -d'
4774  fi
4775fi
4776
4777for ac_prog in gawk mawk nawk awk
4778do
4779  # Extract the first word of "$ac_prog", so it can be a program name with args.
4780set dummy $ac_prog; ac_word=$2
4781echo "$as_me:$LINENO: checking for $ac_word" >&5
4782echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4783if test "${ac_cv_prog_AWK+set}" = set; then
4784  echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786  if test -n "$AWK"; then
4787  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792  IFS=$as_save_IFS
4793  test -z "$as_dir" && as_dir=.
4794  for ac_exec_ext in '' $ac_executable_extensions; do
4795  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796    ac_cv_prog_AWK="$ac_prog"
4797    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798    break 2
4799  fi
4800done
4801done
4802
4803fi
4804fi
4805AWK=$ac_cv_prog_AWK
4806if test -n "$AWK"; then
4807  echo "$as_me:$LINENO: result: $AWK" >&5
4808echo "${ECHO_T}$AWK" >&6
4809else
4810  echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6
4812fi
4813
4814  test -n "$AWK" && break
4815done
4816
4817echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4818echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4819set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4820if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4821  echo $ECHO_N "(cached) $ECHO_C" >&6
4822else
4823  cat >conftest.make <<\_ACEOF
4824all:
4825        @echo 'ac_maketemp="$(MAKE)"'
4826_ACEOF
4827# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4828eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4829if test -n "$ac_maketemp"; then
4830  eval ac_cv_prog_make_${ac_make}_set=yes
4831else
4832  eval ac_cv_prog_make_${ac_make}_set=no
4833fi
4834rm -f conftest.make
4835fi
4836if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4837  echo "$as_me:$LINENO: result: yes" >&5
4838echo "${ECHO_T}yes" >&6
4839  SET_MAKE=
4840else
4841  echo "$as_me:$LINENO: result: no" >&5
4842echo "${ECHO_T}no" >&6
4843  SET_MAKE="MAKE=${MAKE-make}"
4844fi
4845
4846rm -rf .tst 2>/dev/null
4847mkdir .tst 2>/dev/null
4848if test -d .tst; then
4849  am__leading_dot=.
4850else
4851  am__leading_dot=_
4852fi
4853rmdir .tst 2>/dev/null
4854
4855DEPDIR="${am__leading_dot}deps"
4856
4857          ac_config_commands="$ac_config_commands depfiles"
4858
4859
4860am_make=${MAKE-make}
4861cat > confinc << 'END'
4862am__doit:
4863        @echo done
4864.PHONY: am__doit
4865END
4866# If we don't find an include directive, just comment out the code.
4867echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4868echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4869am__include="#"
4870am__quote=
4871_am_result=none
4872# First try GNU make style include.
4873echo "include confinc" > confmf
4874# We grep out `Entering directory' and `Leaving directory'
4875# messages which can occur if `w' ends up in MAKEFLAGS.
4876# In particular we don't look at `^make:' because GNU make might
4877# be invoked under some other name (usually "gmake"), in which
4878# case it prints its new name instead of `make'.
4879if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4880   am__include=include
4881   am__quote=
4882   _am_result=GNU
4883fi
4884# Now try BSD make style include.
4885if test "$am__include" = "#"; then
4886   echo '.include "confinc"' > confmf
4887   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4888      am__include=.include
4889      am__quote="\""
4890      _am_result=BSD
4891   fi
4892fi
4893
4894
4895echo "$as_me:$LINENO: result: $_am_result" >&5
4896echo "${ECHO_T}$_am_result" >&6
4897rm -f confinc confmf
4898
4899# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4900if test "${enable_dependency_tracking+set}" = set; then
4901  enableval="$enable_dependency_tracking"
4902
4903fi;
4904if test "x$enable_dependency_tracking" != xno; then
4905  am_depcomp="$ac_aux_dir/depcomp"
4906  AMDEPBACKSLASH='\'
4907fi
4908
4909
4910if test "x$enable_dependency_tracking" != xno; then
4911  AMDEP_TRUE=
4912  AMDEP_FALSE='#'
4913else
4914  AMDEP_TRUE='#'
4915  AMDEP_FALSE=
4916fi
4917
4918
4919
4920
4921
4922# AC_MSG_NOTICE([Beginning automake initialisation.])
4923# Stuff for automake
4924# test to see if srcdir already configured
4925if test "`cd $srcdir && pwd`" != "`pwd`" &&
4926   test -f $srcdir/config.status; then
4927  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4928echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4929   { (exit 1); exit 1; }; }
4930fi
4931
4932# test whether we have cygpath
4933if test -z "$CYGPATH_W"; then
4934  if (cygpath --version) >/dev/null 2>/dev/null; then
4935    CYGPATH_W='cygpath -w'
4936  else
4937    CYGPATH_W=echo
4938  fi
4939fi
4940
4941
4942# Define the identity of the package.
4943 PACKAGE='cbc'
4944 VERSION='0.1'
4945
4946
4947cat >>confdefs.h <<_ACEOF
4948#define PACKAGE "$PACKAGE"
4949_ACEOF
4950
4951
4952cat >>confdefs.h <<_ACEOF
4953#define VERSION "$VERSION"
4954_ACEOF
4955
4956# Some tools Automake needs.
4957
4958ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4959
4960
4961AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4962
4963
4964AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4965
4966
4967AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4968
4969
4970MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4971
4972install_sh=${install_sh-"$am_aux_dir/install-sh"}
4973
4974# Installed binaries are usually stripped using `strip' when the user
4975# run `make install-strip'.  However `strip' might not be the right
4976# tool to use in cross-compilation environments, therefore Automake
4977# will honor the `STRIP' environment variable to overrule this program.
4978if test "$cross_compiling" != no; then
4979  if test -n "$ac_tool_prefix"; then
4980  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4981set dummy ${ac_tool_prefix}strip; ac_word=$2
4982echo "$as_me:$LINENO: checking for $ac_word" >&5
4983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984if test "${ac_cv_prog_STRIP+set}" = set; then
4985  echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987  if test -n "$STRIP"; then
4988  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4989else
4990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993  IFS=$as_save_IFS
4994  test -z "$as_dir" && as_dir=.
4995  for ac_exec_ext in '' $ac_executable_extensions; do
4996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4997    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4998    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999    break 2
5000  fi
5001done
5002done
5003
5004fi
5005fi
5006STRIP=$ac_cv_prog_STRIP
5007if test -n "$STRIP"; then
5008  echo "$as_me:$LINENO: result: $STRIP" >&5
5009echo "${ECHO_T}$STRIP" >&6
5010else
5011  echo "$as_me:$LINENO: result: no" >&5
5012echo "${ECHO_T}no" >&6
5013fi
5014
5015fi
5016if test -z "$ac_cv_prog_STRIP"; then
5017  ac_ct_STRIP=$STRIP
5018  # Extract the first word of "strip", so it can be a program name with args.
5019set dummy strip; ac_word=$2
5020echo "$as_me:$LINENO: checking for $ac_word" >&5
5021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5023  echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025  if test -n "$ac_ct_STRIP"; then
5026  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5027else
5028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031  IFS=$as_save_IFS
5032  test -z "$as_dir" && as_dir=.
5033  for ac_exec_ext in '' $ac_executable_extensions; do
5034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035    ac_cv_prog_ac_ct_STRIP="strip"
5036    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5037    break 2
5038  fi
5039done
5040done
5041
5042  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5043fi
5044fi
5045ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5046if test -n "$ac_ct_STRIP"; then
5047  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5048echo "${ECHO_T}$ac_ct_STRIP" >&6
5049else
5050  echo "$as_me:$LINENO: result: no" >&5
5051echo "${ECHO_T}no" >&6
5052fi
5053
5054  STRIP=$ac_ct_STRIP
5055else
5056  STRIP="$ac_cv_prog_STRIP"
5057fi
5058
5059fi
5060INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5061
5062# We need awk for the "check" target.  The system "awk" is bad on
5063# some platforms.
5064# Always define AMTAR for backward compatibility.
5065
5066AMTAR=${AMTAR-"${am_missing_run}tar"}
5067
5068am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5069
5070
5071
5072
5073depcc="$CC"   am_compiler_list=
5074
5075echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5076echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5077if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5078  echo $ECHO_N "(cached) $ECHO_C" >&6
5079else
5080  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5081  # We make a subdir and do the tests there.  Otherwise we can end up
5082  # making bogus files that we don't know about and never remove.  For
5083  # instance it was reported that on HP-UX the gcc test will end up
5084  # making a dummy file named `D' -- because `-MD' means `put the output
5085  # in D'.
5086  mkdir conftest.dir
5087  # Copy depcomp to subdir because otherwise we won't find it if we're
5088  # using a relative directory.
5089  cp "$am_depcomp" conftest.dir
5090  cd conftest.dir
5091  # We will build objects and dependencies in a subdirectory because
5092  # it helps to detect inapplicable dependency modes.  For instance
5093  # both Tru64's cc and ICC support -MD to output dependencies as a
5094  # side effect of compilation, but ICC will put the dependencies in
5095  # the current directory while Tru64 will put them in the object
5096  # directory.
5097  mkdir sub
5098
5099  am_cv_CC_dependencies_compiler_type=none
5100  if test "$am_compiler_list" = ""; then
5101     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5102  fi
5103  for depmode in $am_compiler_list; do
5104    # Setup a source with many dependencies, because some compilers
5105    # like to wrap large dependency lists on column 80 (with \), and
5106    # we should not choose a depcomp mode which is confused by this.
5107    #
5108    # We need to recreate these files for each test, as the compiler may
5109    # overwrite some of them when testing with obscure command lines.
5110    # This happens at least with the AIX C compiler.
5111    : > sub/conftest.c
5112    for i in 1 2 3 4 5 6; do
5113      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5114      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5115      # Solaris 8's {/usr,}/bin/sh.
5116      touch sub/conftst$i.h
5117    done
5118    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5119
5120    case $depmode in
5121    nosideeffect)
5122      # after this tag, mechanisms are not by side-effect, so they'll
5123      # only be used when explicitly requested
5124      if test "x$enable_dependency_tracking" = xyes; then
5125        continue
5126      else
5127        break
5128      fi
5129      ;;
5130    none) break ;;
5131    esac
5132    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5133    # mode.  It turns out that the SunPro C++ compiler does not properly
5134    # handle `-M -o', and we need to detect this.
5135    if depmode=$depmode \
5136       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5137       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5138       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5139         >/dev/null 2>conftest.err &&
5140       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5141       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5142       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5143      # icc doesn't choke on unknown options, it will just issue warnings
5144      # or remarks (even with -Werror).  So we grep stderr for any message
5145      # that says an option was ignored or not supported.
5146      # When given -MP, icc 7.0 and 7.1 complain thusly:
5147      #   icc: Command line warning: ignoring option '-M'; no argument required
5148      # The diagnosis changed in icc 8.0:
5149      #   icc: Command line remark: option '-MP' not supported
5150      if (grep 'ignoring option' conftest.err ||
5151          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5152        am_cv_CC_dependencies_compiler_type=$depmode
5153        break
5154      fi
5155    fi
5156  done
5157
5158  cd ..
5159  rm -rf conftest.dir
5160else
5161  am_cv_CC_dependencies_compiler_type=none
5162fi
5163
5164fi
5165echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5166echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5167CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5168
5169
5170
5171if
5172  test "x$enable_dependency_tracking" != xno \
5173  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5174  am__fastdepCC_TRUE=
5175  am__fastdepCC_FALSE='#'
5176else
5177  am__fastdepCC_TRUE='#'
5178  am__fastdepCC_FALSE=
5179fi
5180
5181
5182depcc="$CXX"  am_compiler_list=
5183
5184echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5185echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5186if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5187  echo $ECHO_N "(cached) $ECHO_C" >&6
5188else
5189  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5190  # We make a subdir and do the tests there.  Otherwise we can end up
5191  # making bogus files that we don't know about and never remove.  For
5192  # instance it was reported that on HP-UX the gcc test will end up
5193  # making a dummy file named `D' -- because `-MD' means `put the output
5194  # in D'.
5195  mkdir conftest.dir
5196  # Copy depcomp to subdir because otherwise we won't find it if we're
5197  # using a relative directory.
5198  cp "$am_depcomp" conftest.dir
5199  cd conftest.dir
5200  # We will build objects and dependencies in a subdirectory because
5201  # it helps to detect inapplicable dependency modes.  For instance
5202  # both Tru64's cc and ICC support -MD to output dependencies as a
5203  # side effect of compilation, but ICC will put the dependencies in
5204  # the current directory while Tru64 will put them in the object
5205  # directory.
5206  mkdir sub
5207
5208  am_cv_CXX_dependencies_compiler_type=none
5209  if test "$am_compiler_list" = ""; then
5210     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5211  fi
5212  for depmode in $am_compiler_list; do
5213    # Setup a source with many dependencies, because some compilers
5214    # like to wrap large dependency lists on column 80 (with \), and
5215    # we should not choose a depcomp mode which is confused by this.
5216    #
5217    # We need to recreate these files for each test, as the compiler may
5218    # overwrite some of them when testing with obscure command lines.
5219    # This happens at least with the AIX C compiler.
5220    : > sub/conftest.c
5221    for i in 1 2 3 4 5 6; do
5222      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5223      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5224      # Solaris 8's {/usr,}/bin/sh.
5225      touch sub/conftst$i.h
5226    done
5227    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5228
5229    case $depmode in
5230    nosideeffect)
5231      # after this tag, mechanisms are not by side-effect, so they'll
5232      # only be used when explicitly requested
5233      if test "x$enable_dependency_tracking" = xyes; then
5234        continue
5235      else
5236        break
5237      fi
5238      ;;
5239    none) break ;;
5240    esac
5241    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5242    # mode.  It turns out that the SunPro C++ compiler does not properly
5243    # handle `-M -o', and we need to detect this.
5244    if depmode=$depmode \
5245       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5246       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5247       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5248         >/dev/null 2>conftest.err &&
5249       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5250       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5251       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5252      # icc doesn't choke on unknown options, it will just issue warnings
5253      # or remarks (even with -Werror).  So we grep stderr for any message
5254      # that says an option was ignored or not supported.
5255      # When given -MP, icc 7.0 and 7.1 complain thusly:
5256      #   icc: Command line warning: ignoring option '-M'; no argument required
5257      # The diagnosis changed in icc 8.0:
5258      #   icc: Command line remark: option '-MP' not supported
5259      if (grep 'ignoring option' conftest.err ||
5260          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5261        am_cv_CXX_dependencies_compiler_type=$depmode
5262        break
5263      fi
5264    fi
5265  done
5266
5267  cd ..
5268  rm -rf conftest.dir
5269else
5270  am_cv_CXX_dependencies_compiler_type=none
5271fi
5272
5273fi
5274echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5275echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5276CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5277
5278
5279
5280if
5281  test "x$enable_dependency_tracking" != xno \
5282  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5283  am__fastdepCXX_TRUE=
5284  am__fastdepCXX_FALSE='#'
5285else
5286  am__fastdepCXX_TRUE='#'
5287  am__fastdepCXX_FALSE=
5288fi
5289
5290
5291
5292echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5293echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5294    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5295if test "${enable_maintainer_mode+set}" = set; then
5296  enableval="$enable_maintainer_mode"
5297  USE_MAINTAINER_MODE=$enableval
5298else
5299  USE_MAINTAINER_MODE=no
5300fi;
5301  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5302echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5303
5304
5305if test $USE_MAINTAINER_MODE = yes; then
5306  MAINTAINER_MODE_TRUE=
5307  MAINTAINER_MODE_FALSE='#'
5308else
5309  MAINTAINER_MODE_TRUE='#'
5310  MAINTAINER_MODE_FALSE=
5311fi
5312
5313  MAINT=$MAINTAINER_MODE_TRUE
5314
5315
5316
5317coin_have_externals=no
5318if test "$enable_maintainer_mode" = yes; then
5319
5320  # If maintainer mode is chosen, we make sure that the correct versions
5321  # of the tools are used, and that we know where libtool.m4 is (to
5322  # recreate acinclude.m4)
5323
5324
5325  LIBTOOLM4=
5326  # Normally, $HOME
5327  AUTOTOOLS_DFLT=$HOME
5328
5329  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5330echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5331if test "${ac_cv_use_correct_autotools+set}" = set; then
5332  echo $ECHO_N "(cached) $ECHO_C" >&6
5333else
5334  ac_cv_use_correct_autotools=check
5335fi
5336echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5337echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5338
5339  if test $ac_cv_use_correct_autotools = check; then
5340    ac_cv_use_correct_autotools=yes
5341    # Check if we have autoconf
5342    # Extract the first word of "autoconf", so it can be a program name with args.
5343set dummy autoconf; ac_word=$2
5344echo "$as_me:$LINENO: checking for $ac_word" >&5
5345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5346if test "${ac_cv_prog_have_autoconf+set}" = set; then
5347  echo $ECHO_N "(cached) $ECHO_C" >&6
5348else
5349  if test -n "$have_autoconf"; then
5350  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5351else
5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353for as_dir in $PATH
5354do
5355  IFS=$as_save_IFS
5356  test -z "$as_dir" && as_dir=.
5357  for ac_exec_ext in '' $ac_executable_extensions; do
5358  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359    ac_cv_prog_have_autoconf="yes"
5360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5361    break 2
5362  fi
5363done
5364done
5365
5366  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5367fi
5368fi
5369have_autoconf=$ac_cv_prog_have_autoconf
5370if test -n "$have_autoconf"; then
5371  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5372echo "${ECHO_T}$have_autoconf" >&6
5373else
5374  echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376fi
5377
5378    if test $have_autoconf = no; then
5379      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5380echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5381   { (exit 1); exit 1; }; }
5382    fi
5383
5384    # Check whether autoconf is the correct version
5385    correct_version='2.59'
5386    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5387    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5388echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5389    autoconf --version > confauto.out 2>&1
5390    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5391      echo "$as_me:$LINENO: result: yes" >&5
5392echo "${ECHO_T}yes" >&6
5393    else
5394      rm -f confauto.out
5395      echo "$as_me:$LINENO: result: no" >&5
5396echo "${ECHO_T}no" >&6
5397      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5398echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5399   { (exit 1); exit 1; }; }
5400    fi
5401    rm -f confauto.out
5402
5403    # Check if the executable autoconf is picked up from the correct location
5404    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5405echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5406    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5407    autoconf_dir=`cd $autoconf_dir; pwd`
5408    if test x$AUTOTOOLS_DIR = x; then
5409      want_dir=$AUTOTOOLS_DFLT/bin
5410    else
5411      want_dir=$AUTOTOOLS_DIR/bin
5412    fi
5413    if test $autoconf_dir = `cd $want_dir; pwd`; then
5414      echo "$as_me:$LINENO: result: yes" >&5
5415echo "${ECHO_T}yes" >&6
5416    else
5417      rm -f confauto.out
5418      echo "$as_me:$LINENO: result: no" >&5
5419echo "${ECHO_T}no" >&6
5420      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5421echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5422   { (exit 1); exit 1; }; }
5423    fi
5424
5425    # Check if we have automake
5426    # Extract the first word of "automake", so it can be a program name with args.
5427set dummy automake; ac_word=$2
5428echo "$as_me:$LINENO: checking for $ac_word" >&5
5429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5430if test "${ac_cv_prog_have_automake+set}" = set; then
5431  echo $ECHO_N "(cached) $ECHO_C" >&6
5432else
5433  if test -n "$have_automake"; then
5434  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5435else
5436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH
5438do
5439  IFS=$as_save_IFS
5440  test -z "$as_dir" && as_dir=.
5441  for ac_exec_ext in '' $ac_executable_extensions; do
5442  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443    ac_cv_prog_have_automake="yes"
5444    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5445    break 2
5446  fi
5447done
5448done
5449
5450  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5451fi
5452fi
5453have_automake=$ac_cv_prog_have_automake
5454if test -n "$have_automake"; then
5455  echo "$as_me:$LINENO: result: $have_automake" >&5
5456echo "${ECHO_T}$have_automake" >&6
5457else
5458  echo "$as_me:$LINENO: result: no" >&5
5459echo "${ECHO_T}no" >&6
5460fi
5461
5462    if test $have_automake = no; then
5463      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5464echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5465   { (exit 1); exit 1; }; }
5466    fi
5467
5468    # Check whether automake is the correct version
5469    correct_version='1.9.6'
5470    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5471    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5472echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5473    automake --version > confauto.out 2>&1
5474    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5475      echo "$as_me:$LINENO: result: yes" >&5
5476echo "${ECHO_T}yes" >&6
5477    else
5478      rm -f confauto.out
5479      echo "$as_me:$LINENO: result: no" >&5
5480echo "${ECHO_T}no" >&6
5481      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5482echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5483   { (exit 1); exit 1; }; }
5484    fi
5485    rm -f confauto.out
5486
5487    # Check if the executable automake is picked up from the correct location
5488    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5489echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5490    automake_dir=`which automake | sed -e 's=/automake=='`
5491    automake_dir=`cd $automake_dir; pwd`
5492    if test x$AUTOTOOLS_DIR = x; then
5493      want_dir=$AUTOTOOLS_DFLT/bin
5494    else
5495      want_dir=$AUTOTOOLS_DIR/bin
5496    fi
5497    if test $automake_dir = `cd $want_dir; pwd`; then
5498      echo "$as_me:$LINENO: result: yes" >&5
5499echo "${ECHO_T}yes" >&6
5500    else
5501      rm -f confauto.out
5502      echo "$as_me:$LINENO: result: no" >&5
5503echo "${ECHO_T}no" >&6
5504      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5505echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5506   { (exit 1); exit 1; }; }
5507    fi
5508
5509    # Check if this is the correct version of libtool (with escaped dots)
5510    if test x$AUTOTOOLS_DIR = x; then
5511      want_dir=$AUTOTOOLS_DFLT/share
5512    else
5513      want_dir=$AUTOTOOLS_DIR/share
5514    fi
5515    correct_version='1.5.22'
5516    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5517    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
5518echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
5519echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
5520if eval "test \"\${$as_ac_File+set}\" = set"; then
5521  echo $ECHO_N "(cached) $ECHO_C" >&6
5522else
5523  test "$cross_compiling" = yes &&
5524  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5525echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5526   { (exit 1); exit 1; }; }
5527if test -r "$want_dir/libtool/ltmain.sh"; then
5528  eval "$as_ac_File=yes"
5529else
5530  eval "$as_ac_File=no"
5531fi
5532fi
5533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5534echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5535if test `eval echo '${'$as_ac_File'}'` = yes; then
5536  have_ltmain=yes
5537else
5538  have_ltmain=no
5539fi
5540
5541    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5542echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5543    if test $have_ltmain = yes; then
5544    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5545        echo "$as_me:$LINENO: result: yes" >&5
5546echo "${ECHO_T}yes" >&6
5547      else
5548        echo "$as_me:$LINENO: result: no" >&5
5549echo "${ECHO_T}no" >&6
5550        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5551echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5552   { (exit 1); exit 1; }; }
5553      fi
5554    else
5555      echo "$as_me:$LINENO: result: no" >&5
5556echo "${ECHO_T}no" >&6
5557      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5558echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5559   { (exit 1); exit 1; }; }
5560    fi
5561  fi
5562
5563  # Check if we can find the libtool file
5564  if test x$AUTOTOOLS_DIR = x; then
5565    want_dir=$AUTOTOOLS_DFLT/share
5566  else
5567    want_dir=$AUTOTOOLS_DIR/share
5568  fi
5569  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
5570echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
5571echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
5572if eval "test \"\${$as_ac_File+set}\" = set"; then
5573  echo $ECHO_N "(cached) $ECHO_C" >&6
5574else
5575  test "$cross_compiling" = yes &&
5576  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
5577echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
5578   { (exit 1); exit 1; }; }
5579if test -r "$want_dir/aclocal/libtool.m4"; then
5580  eval "$as_ac_File=yes"
5581else
5582  eval "$as_ac_File=no"
5583fi
5584fi
5585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
5586echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
5587if test `eval echo '${'$as_ac_File'}'` = yes; then
5588  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5589else
5590  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5591echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5592   { (exit 1); exit 1; }; }
5593fi
5594
5595
5596  # Check if we have an Externals file
5597  if test -r $srcdir/Externals; then
5598    coin_have_externals=yes
5599  fi
5600  # Check if subversion is installed and understands https
5601  # Extract the first word of "svn", so it can be a program name with args.
5602set dummy svn; ac_word=$2
5603echo "$as_me:$LINENO: checking for $ac_word" >&5
5604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5605if test "${ac_cv_prog_have_svn+set}" = set; then
5606  echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608  if test -n "$have_svn"; then
5609  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614  IFS=$as_save_IFS
5615  test -z "$as_dir" && as_dir=.
5616  for ac_exec_ext in '' $ac_executable_extensions; do
5617  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618    ac_cv_prog_have_svn="yes"
5619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620    break 2
5621  fi
5622done
5623done
5624
5625  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5626fi
5627fi
5628have_svn=$ac_cv_prog_have_svn
5629if test -n "$have_svn"; then
5630  echo "$as_me:$LINENO: result: $have_svn" >&5
5631echo "${ECHO_T}$have_svn" >&6
5632else
5633  echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635fi
5636
5637  if test x$have_svn = xyes; then
5638    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5639echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5640if test "${ac_cv_svn_understands_https+set}" = set; then
5641  echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643  svn --version > confauto.out 2>&1
5644                    if $EGREP https confauto.out >/dev/null 2>&1; then
5645                      ac_cv_svn_understands_https=yes
5646                    else
5647                      ac_cv_svn_understands_https=no
5648                      have_svn=no
5649                      ac_cv_prog_have_svn=no
5650                    fi
5651                    rm -f confauto.out
5652fi
5653echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5654echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5655  fi
5656
5657  # Find the location of the BuildTools directory
5658  BUILDTOOLSDIR=
5659  if test -r $srcdir/BuildTools/coin.m4; then
5660    BUILDTOOLSDIR=$srcdir/BuildTools
5661  else
5662    if test -r $srcdir/../BuildTools/coin.m4; then
5663      BUILDTOOLSDIR=$srcdir/../BuildTools
5664    else
5665      if test -r $srcdir/../../BuildTools/coin.m4; then
5666        BUILDTOOLSDIR=$srcdir/../../BuildTools
5667      else
5668        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5669echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5670   { (exit 1); exit 1; }; }
5671      fi
5672    fi
5673  fi
5674
5675
5676  # The following variable is set to the name of the directory where
5677  # the autotool scripts are located
5678
5679  AUX_DIR=$ac_aux_dir
5680fi
5681
5682# helpful variable for the base directory of this package
5683abs_source_dir=`cd $srcdir; pwd`
5684
5685
5686# Stuff for example Makefiles
5687if test x$prefix = xNONE; then
5688  full_prefix=$ac_default_prefix
5689else
5690  full_prefix=$prefix
5691fi
5692full_prefix=`cd $full_prefix ; pwd`
5693
5694abs_lib_dir=$full_prefix/lib
5695
5696abs_include_dir=$full_prefix/include
5697
5698abs_bin_dir=$full_prefix/bin
5699
5700
5701
5702if test $coin_have_externals = yes && test x$have_svn = xyes; then
5703  HAVE_EXTERNALS_TRUE=
5704  HAVE_EXTERNALS_FALSE='#'
5705else
5706  HAVE_EXTERNALS_TRUE='#'
5707  HAVE_EXTERNALS_FALSE=
5708fi
5709
5710
5711# AC_MSG_NOTICE([End automake initialisation.])
5712
5713
5714
5715LIBTOOL=
5716if test -r ../libtool; then
5717  coin_config_dir=..
5718  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5719fi
5720if test "x$LIBTOOL" = x; then
5721  if test -r ../../libtool; then
5722    coin_config_dir=../..
5723    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5724  fi
5725fi
5726
5727if test "x$LIBTOOL" = x; then
5728# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5729  # Stuff for libtool
5730  # Check whether --enable-shared or --disable-shared was given.
5731if test "${enable_shared+set}" = set; then
5732  enableval="$enable_shared"
5733  p=${PACKAGE-default}
5734    case $enableval in
5735    yes) enable_shared=yes ;;
5736    no) enable_shared=no ;;
5737    *)
5738      enable_shared=no
5739      # Look at the argument we got.  We use all the common list separators.
5740      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5741      for pkg in $enableval; do
5742        IFS="$lt_save_ifs"
5743        if test "X$pkg" = "X$p"; then
5744          enable_shared=yes
5745        fi
5746      done
5747      IFS="$lt_save_ifs"
5748      ;;
5749    esac
5750else
5751  enable_shared=yes
5752fi;
5753
5754# Check whether --enable-fast-install or --disable-fast-install was given.
5755if test "${enable_fast_install+set}" = set; then
5756  enableval="$enable_fast_install"
5757  p=${PACKAGE-default}
5758    case $enableval in
5759    yes) enable_fast_install=yes ;;
5760    no) enable_fast_install=no ;;
5761    *)
5762      enable_fast_install=no
5763      # Look at the argument we got.  We use all the common list separators.
5764      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5765      for pkg in $enableval; do
5766        IFS="$lt_save_ifs"
5767        if test "X$pkg" = "X$p"; then
5768          enable_fast_install=yes
5769        fi
5770      done
5771      IFS="$lt_save_ifs"
5772      ;;
5773    esac
5774else
5775  enable_fast_install=yes
5776fi;
5777
5778echo "$as_me:$LINENO: checking host system type" >&5
5779echo $ECHO_N "checking host system type... $ECHO_C" >&6
5780if test "${ac_cv_host+set}" = set; then
5781  echo $ECHO_N "(cached) $ECHO_C" >&6
5782else
5783  ac_cv_host_alias=$host_alias
5784test -z "$ac_cv_host_alias" &&
5785  ac_cv_host_alias=$ac_cv_build_alias
5786ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5787  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5788echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5789   { (exit 1); exit 1; }; }
5790
5791fi
5792echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5793echo "${ECHO_T}$ac_cv_host" >&6
5794host=$ac_cv_host
5795host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5796host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5797host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5798
5799
5800echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5801echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5802if test "${lt_cv_path_SED+set}" = set; then
5803  echo $ECHO_N "(cached) $ECHO_C" >&6
5804else
5805  # Loop through the user's path and test for sed and gsed.
5806# Then use that list of sed's as ones to test for truncation.
5807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH
5809do
5810  IFS=$as_save_IFS
5811  test -z "$as_dir" && as_dir=.
5812  for lt_ac_prog in sed gsed; do
5813    for ac_exec_ext in '' $ac_executable_extensions; do
5814      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5815        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5816      fi
5817    done
5818  done
5819done
5820lt_ac_max=0
5821lt_ac_count=0
5822# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5823# along with /bin/sed that truncates output.
5824for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5825  test ! -f $lt_ac_sed && continue
5826  cat /dev/null > conftest.in
5827  lt_ac_count=0
5828  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5829  # Check for GNU sed and select it if it is found.
5830  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5831    lt_cv_path_SED=$lt_ac_sed
5832    break
5833  fi
5834  while true; do
5835    cat conftest.in conftest.in >conftest.tmp
5836    mv conftest.tmp conftest.in
5837    cp conftest.in conftest.nl
5838    echo >>conftest.nl
5839    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5840    cmp -s conftest.out conftest.nl || break
5841    # 10000 chars as input seems more than enough
5842    test $lt_ac_count -gt 10 && break
5843    lt_ac_count=`expr $lt_ac_count + 1`
5844    if test $lt_ac_count -gt $lt_ac_max; then
5845      lt_ac_max=$lt_ac_count
5846      lt_cv_path_SED=$lt_ac_sed
5847    fi
5848  done
5849done
5850
5851fi
5852
5853SED=$lt_cv_path_SED
5854echo "$as_me:$LINENO: result: $SED" >&5
5855echo "${ECHO_T}$SED" >&6
5856
5857
5858# Check whether --with-gnu-ld or --without-gnu-ld was given.
5859if test "${with_gnu_ld+set}" = set; then
5860  withval="$with_gnu_ld"
5861  test "$withval" = no || with_gnu_ld=yes
5862else
5863  with_gnu_ld=no
5864fi;
5865ac_prog=ld
5866if test "$GCC" = yes; then
5867  # Check if gcc -print-prog-name=ld gives a path.
5868  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5869echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5870  case $host in
5871  *-*-mingw*)
5872    # gcc leaves a trailing carriage return which upsets mingw
5873    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5874  *)
5875    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5876  esac
5877  case $ac_prog in
5878    # Accept absolute paths.
5879    [\\/]* | ?:[\\/]*)
5880      re_direlt='/[^/][^/]*/\.\./'
5881      # Canonicalize the pathname of ld
5882      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5883      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5884        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5885      done
5886      test -z "$LD" && LD="$ac_prog"
5887      ;;
5888  "")
5889    # If it fails, then pretend we aren't using GCC.
5890    ac_prog=ld
5891    ;;
5892  *)
5893    # If it is relative, then search for the first ld in PATH.
5894    with_gnu_ld=unknown
5895    ;;
5896  esac
5897elif test "$with_gnu_ld" = yes; then
5898  echo "$as_me:$LINENO: checking for GNU ld" >&5
5899echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5900else
5901  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5902echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5903fi
5904if test "${lt_cv_path_LD+set}" = set; then
5905  echo $ECHO_N "(cached) $ECHO_C" >&6
5906else
5907  if test -z "$LD"; then
5908  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5909  for ac_dir in $PATH; do
5910    IFS="$lt_save_ifs"
5911    test -z "$ac_dir" && ac_dir=.
5912    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5913      lt_cv_path_LD="$ac_dir/$ac_prog"
5914      # Check to see if the program is GNU ld.  I'd rather use --version,
5915      # but apparently some variants of GNU ld only accept -v.
5916      # Break only if it was the GNU/non-GNU ld that we prefer.
5917      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5918      *GNU* | *'with BFD'*)
5919        test "$with_gnu_ld" != no && break
5920        ;;
5921      *)
5922        test "$with_gnu_ld" != yes && break
5923        ;;
5924      esac
5925    fi
5926  done
5927  IFS="$lt_save_ifs"
5928else
5929  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5930fi
5931fi
5932
5933LD="$lt_cv_path_LD"
5934if test -n "$LD"; then
5935  echo "$as_me:$LINENO: result: $LD" >&5
5936echo "${ECHO_T}$LD" >&6
5937else
5938  echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6
5940fi
5941test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5942echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5943   { (exit 1); exit 1; }; }
5944echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5945echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5946if test "${lt_cv_prog_gnu_ld+set}" = set; then
5947  echo $ECHO_N "(cached) $ECHO_C" >&6
5948else
5949  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5950case `$LD -v 2>&1 </dev/null` in
5951*GNU* | *'with BFD'*)
5952  lt_cv_prog_gnu_ld=yes
5953  ;;
5954*)
5955  lt_cv_prog_gnu_ld=no
5956  ;;
5957esac
5958fi
5959echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5960echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5961with_gnu_ld=$lt_cv_prog_gnu_ld
5962
5963
5964echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5965echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5966if test "${lt_cv_ld_reload_flag+set}" = set; then
5967  echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969  lt_cv_ld_reload_flag='-r'
5970fi
5971echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5972echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5973reload_flag=$lt_cv_ld_reload_flag
5974case $reload_flag in
5975"" | " "*) ;;
5976*) reload_flag=" $reload_flag" ;;
5977esac
5978reload_cmds='$LD$reload_flag -o $output$reload_objs'
5979case $host_os in
5980  darwin*)
5981    if test "$GCC" = yes; then
5982      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5983    else
5984      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5985    fi
5986    ;;
5987esac
5988
5989echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5990echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5991if test "${lt_cv_path_NM+set}" = set; then
5992  echo $ECHO_N "(cached) $ECHO_C" >&6
5993else
5994  if test -n "$NM"; then
5995  # Let the user override the test.
5996  lt_cv_path_NM="$NM"
5997else
5998  lt_nm_to_check="${ac_tool_prefix}nm"
5999  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6000    lt_nm_to_check="$lt_nm_to_check nm"
6001  fi
6002  for lt_tmp_nm in $lt_nm_to_check; do
6003    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6004    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6005      IFS="$lt_save_ifs"
6006      test -z "$ac_dir" && ac_dir=.
6007      tmp_nm="$ac_dir/$lt_tmp_nm"
6008      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6009        # Check to see if the nm accepts a BSD-compat flag.
6010        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6011        #   nm: unknown option "B" ignored
6012        # Tru64's nm complains that /dev/null is an invalid object file
6013        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6014        */dev/null* | *'Invalid file or object type'*)
6015          lt_cv_path_NM="$tmp_nm -B"
6016          break
6017          ;;
6018        *)
6019          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6020          */dev/null*)
6021            lt_cv_path_NM="$tmp_nm -p"
6022            break
6023            ;;
6024          *)
6025            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6026            continue # so that we can try to find one that supports BSD flags
6027            ;;
6028          esac
6029          ;;
6030        esac
6031      fi
6032    done
6033    IFS="$lt_save_ifs"
6034  done
6035  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6036fi
6037fi
6038echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6039echo "${ECHO_T}$lt_cv_path_NM" >&6
6040NM="$lt_cv_path_NM"
6041
6042echo "$as_me:$LINENO: checking whether ln -s works" >&5
6043echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6044LN_S=$as_ln_s
6045if test "$LN_S" = "ln -s"; then
6046  echo "$as_me:$LINENO: result: yes" >&5
6047echo "${ECHO_T}yes" >&6
6048else
6049  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6050echo "${ECHO_T}no, using $LN_S" >&6
6051fi
6052
6053echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6054echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6055if test "${lt_cv_deplibs_check_method+set}" = set; then
6056  echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058  lt_cv_file_magic_cmd='$MAGIC_CMD'
6059lt_cv_file_magic_test_file=
6060lt_cv_deplibs_check_method='unknown'
6061# Need to set the preceding variable on all platforms that support
6062# interlibrary dependencies.
6063# 'none' -- dependencies not supported.
6064# `unknown' -- same as none, but documents that we really don't know.
6065# 'pass_all' -- all dependencies passed with no checks.
6066# 'test_compile' -- check by making test program.
6067# 'file_magic [[regex]]' -- check by looking for files in library path
6068# which responds to the $file_magic_cmd with a given extended regex.
6069# If you have `file' or equivalent on your system and you're not sure
6070# whether `pass_all' will *always* work, you probably want this one.
6071
6072case $host_os in
6073aix4* | aix5*)
6074  lt_cv_deplibs_check_method=pass_all
6075  ;;
6076
6077beos*)
6078  lt_cv_deplibs_check_method=pass_all
6079  ;;
6080
6081bsdi[45]*)
6082  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6083  lt_cv_file_magic_cmd='/usr/bin/file -L'
6084  lt_cv_file_magic_test_file=/shlib/libc.so
6085  ;;
6086
6087cygwin*)
6088  # func_win32_libid is a shell function defined in ltmain.sh
6089  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6090  lt_cv_file_magic_cmd='func_win32_libid'
6091  ;;
6092
6093mingw* | pw32*)
6094  # Base MSYS/MinGW do not provide the 'file' command needed by
6095  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6096  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6097  lt_cv_file_magic_cmd='$OBJDUMP -f'
6098  ;;
6099
6100darwin* | rhapsody*)
6101  lt_cv_deplibs_check_method=pass_all
6102  ;;
6103
6104freebsd* | kfreebsd*-gnu | dragonfly*)
6105  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6106    case $host_cpu in
6107    i*86 )
6108      # Not sure whether the presence of OpenBSD here was a mistake.
6109      # Let's accept both of them until this is cleared up.
6110      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6111      lt_cv_file_magic_cmd=/usr/bin/file
6112      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6113      ;;
6114    esac
6115  else
6116    lt_cv_deplibs_check_method=pass_all
6117  fi
6118  ;;
6119
6120gnu*)
6121  lt_cv_deplibs_check_method=pass_all
6122  ;;
6123
6124hpux10.20* | hpux11*)
6125  lt_cv_file_magic_cmd=/usr/bin/file
6126  case $host_cpu in
6127  ia64*)
6128    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6129    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6130    ;;
6131  hppa*64*)
6132    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]'
6133    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6134    ;;
6135  *)
6136    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6137    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6138    ;;
6139  esac
6140  ;;
6141
6142interix3*)
6143  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6144  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6145  ;;
6146
6147irix5* | irix6* | nonstopux*)
6148  case $LD in
6149  *-32|*"-32 ") libmagic=32-bit;;
6150  *-n32|*"-n32 ") libmagic=N32;;
6151  *-64|*"-64 ") libmagic=64-bit;;
6152  *) libmagic=never-match;;
6153  esac
6154  lt_cv_deplibs_check_method=pass_all
6155  ;;
6156
6157# This must be Linux ELF.
6158linux*)
6159  lt_cv_deplibs_check_method=pass_all
6160  ;;
6161
6162netbsd*)
6163  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6164    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6165  else
6166    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6167  fi
6168  ;;
6169
6170newos6*)
6171  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6172  lt_cv_file_magic_cmd=/usr/bin/file
6173  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6174  ;;
6175
6176nto-qnx*)
6177  lt_cv_deplibs_check_method=unknown
6178  ;;
6179
6180openbsd*)
6181  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6182    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6183  else
6184    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6185  fi
6186  ;;
6187
6188osf3* | osf4* | osf5*)
6189  lt_cv_deplibs_check_method=pass_all
6190  ;;
6191
6192solaris*)
6193  lt_cv_deplibs_check_method=pass_all
6194  ;;
6195
6196sysv4 | sysv4.3*)
6197  case $host_vendor in
6198  motorola)
6199    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]'
6200    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6201    ;;
6202  ncr)
6203    lt_cv_deplibs_check_method=pass_all
6204    ;;
6205  sequent)
6206    lt_cv_file_magic_cmd='/bin/file'
6207    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6208    ;;
6209  sni)
6210    lt_cv_file_magic_cmd='/bin/file'
6211    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6212    lt_cv_file_magic_test_file=/lib/libc.so
6213    ;;
6214  siemens)
6215    lt_cv_deplibs_check_method=pass_all
6216    ;;
6217  pc)
6218    lt_cv_deplibs_check_method=pass_all
6219    ;;
6220  esac
6221  ;;
6222
6223sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6224  lt_cv_deplibs_check_method=pass_all
6225  ;;
6226esac
6227
6228fi
6229echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6230echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6231file_magic_cmd=$lt_cv_file_magic_cmd
6232deplibs_check_method=$lt_cv_deplibs_check_method
6233test -z "$deplibs_check_method" && deplibs_check_method=unknown
6234
6235
6236
6237
6238# If no C compiler was specified, use CC.
6239LTCC=${LTCC-"$CC"}
6240
6241# If no C compiler flags were specified, use CFLAGS.
6242LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6243
6244# Allow CC to be a program name with arguments.
6245compiler=$CC
6246
6247# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6248if test "${enable_libtool_lock+set}" = set; then
6249  enableval="$enable_libtool_lock"
6250
6251fi;
6252test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6253
6254# Some flags need to be propagated to the compiler or linker for good
6255# libtool support.
6256case $host in
6257ia64-*-hpux*)
6258  # Find out which ABI we are using.
6259  echo 'int i;' > conftest.$ac_ext
6260  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6261  (eval $ac_compile) 2>&5
6262  ac_status=$?
6263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); }; then
6265    case `/usr/bin/file conftest.$ac_objext` in
6266    *ELF-32*)
6267      HPUX_IA64_MODE="32"
6268      ;;
6269    *ELF-64*)
6270      HPUX_IA64_MODE="64"
6271      ;;
6272    esac
6273  fi
6274  rm -rf conftest*
6275  ;;
6276*-*-irix6*)
6277  # Find out which ABI we are using.
6278  echo '#line 6278 "configure"' > conftest.$ac_ext
6279  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6280  (eval $ac_compile) 2>&5
6281  ac_status=$?
6282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283  (exit $ac_status); }; then
6284   if test "$lt_cv_prog_gnu_ld" = yes; then
6285    case `/usr/bin/file conftest.$ac_objext` in
6286    *32-bit*)
6287      LD="${LD-ld} -melf32bsmip"
6288      ;;
6289    *N32*)
6290      LD="${LD-ld} -melf32bmipn32"
6291      ;;
6292    *64-bit*)
6293      LD="${LD-ld} -melf64bmip"
6294      ;;
6295    esac
6296   else
6297    case `/usr/bin/file conftest.$ac_objext` in
6298    *32-bit*)
6299      LD="${LD-ld} -32"
6300      ;;
6301    *N32*)
6302      LD="${LD-ld} -n32"
6303      ;;
6304    *64-bit*)
6305      LD="${LD-ld} -64"
6306      ;;
6307    esac
6308   fi
6309  fi
6310  rm -rf conftest*
6311  ;;
6312
6313x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6314  # Find out which ABI we are using.
6315  echo 'int i;' > conftest.$ac_ext
6316  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317  (eval $ac_compile) 2>&5
6318  ac_status=$?
6319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320  (exit $ac_status); }; then
6321    case `/usr/bin/file conftest.o` in
6322    *32-bit*)
6323      case $host in
6324        x86_64-*linux*)
6325          LD="${LD-ld} -m elf_i386"
6326          ;;
6327        ppc64-*linux*|powerpc64-*linux*)
6328          LD="${LD-ld} -m elf32ppclinux"
6329          ;;
6330        s390x-*linux*)
6331          LD="${LD-ld} -m elf_s390"
6332          ;;
6333        sparc64-*linux*)
6334          LD="${LD-ld} -m elf32_sparc"
6335          ;;
6336      esac
6337      ;;
6338    *64-bit*)
6339      case $host in
6340        x86_64-*linux*)
6341          LD="${LD-ld} -m elf_x86_64"
6342          ;;
6343        ppc*-*linux*|powerpc*-*linux*)
6344          LD="${LD-ld} -m elf64ppc"
6345          ;;
6346        s390*-*linux*)
6347          LD="${LD-ld} -m elf64_s390"
6348          ;;
6349        sparc*-*linux*)
6350          LD="${LD-ld} -m elf64_sparc"
6351          ;;
6352      esac
6353      ;;
6354    esac
6355  fi
6356  rm -rf conftest*
6357  ;;
6358
6359*-*-sco3.2v5*)
6360  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6361  SAVE_CFLAGS="$CFLAGS"
6362  CFLAGS="$CFLAGS -belf"
6363  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6364echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6365if test "${lt_cv_cc_needs_belf+set}" = set; then
6366  echo $ECHO_N "(cached) $ECHO_C" >&6
6367else
6368  ac_ext=c
6369ac_cpp='$CPP $CPPFLAGS'
6370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6372ac_compiler_gnu=$ac_cv_c_compiler_gnu
6373
6374     cat >conftest.$ac_ext <<_ACEOF
6375/* confdefs.h.  */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h.  */
6380
6381int
6382main ()
6383{
6384
6385  ;
6386  return 0;
6387}
6388_ACEOF
6389rm -f conftest.$ac_objext conftest$ac_exeext
6390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6391  (eval $ac_link) 2>conftest.er1
6392  ac_status=$?
6393  grep -v '^ *+' conftest.er1 >conftest.err
6394  rm -f conftest.er1
6395  cat conftest.err >&5
6396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397  (exit $ac_status); } &&
6398         { ac_try='test -z "$ac_c_werror_flag"
6399                         || test ! -s conftest.err'
6400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401  (eval $ac_try) 2>&5
6402  ac_status=$?
6403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404  (exit $ac_status); }; } &&
6405         { ac_try='test -s conftest$ac_exeext'
6406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407  (eval $ac_try) 2>&5
6408  ac_status=$?
6409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410  (exit $ac_status); }; }; then
6411  lt_cv_cc_needs_belf=yes
6412else
6413  echo "$as_me: failed program was:" >&5
6414sed 's/^/| /' conftest.$ac_ext >&5
6415
6416lt_cv_cc_needs_belf=no
6417fi
6418rm -f conftest.err conftest.$ac_objext \
6419      conftest$ac_exeext conftest.$ac_ext
6420     ac_ext=c
6421ac_cpp='$CPP $CPPFLAGS'
6422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6424ac_compiler_gnu=$ac_cv_c_compiler_gnu
6425
6426fi
6427echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6428echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6429  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6430    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6431    CFLAGS="$SAVE_CFLAGS"
6432  fi
6433  ;;
6434sparc*-*solaris*)
6435  # Find out which ABI we are using.
6436  echo 'int i;' > conftest.$ac_ext
6437  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6438  (eval $ac_compile) 2>&5
6439  ac_status=$?
6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441  (exit $ac_status); }; then
6442    case `/usr/bin/file conftest.o` in
6443    *64-bit*)
6444      case $lt_cv_prog_gnu_ld in
6445      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6446      *)    LD="${LD-ld} -64" ;;
6447      esac
6448      ;;
6449    esac
6450  fi
6451  rm -rf conftest*
6452  ;;
6453
6454
6455esac
6456
6457need_locks="$enable_libtool_lock"
6458
6459
6460ac_ext=c
6461ac_cpp='$CPP $CPPFLAGS'
6462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6464ac_compiler_gnu=$ac_cv_c_compiler_gnu
6465echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6466echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6467# On Suns, sometimes $CPP names a directory.
6468if test -n "$CPP" && test -d "$CPP"; then
6469  CPP=
6470fi
6471if test -z "$CPP"; then
6472  if test "${ac_cv_prog_CPP+set}" = set; then
6473  echo $ECHO_N "(cached) $ECHO_C" >&6
6474else
6475      # Double quotes because CPP needs to be expanded
6476    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6477    do
6478      ac_preproc_ok=false
6479for ac_c_preproc_warn_flag in '' yes
6480do
6481  # Use a header file that comes with gcc, so configuring glibc
6482  # with a fresh cross-compiler works.
6483  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6484  # <limits.h> exists even on freestanding compilers.
6485  # On the NeXT, cc -E runs the code through the compiler's parser,
6486  # not just through cpp. "Syntax error" is here to catch this case.
6487  cat >conftest.$ac_ext <<_ACEOF
6488/* confdefs.h.  */
6489_ACEOF
6490cat confdefs.h >>conftest.$ac_ext
6491cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h.  */
6493#ifdef __STDC__
6494# include <limits.h>
6495#else
6496# include <assert.h>
6497#endif
6498                     Syntax error
6499_ACEOF
6500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6501  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6502  ac_status=$?
6503  grep -v '^ *+' conftest.er1 >conftest.err
6504  rm -f conftest.er1
6505  cat conftest.err >&5
6506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507  (exit $ac_status); } >/dev/null; then
6508  if test -s conftest.err; then
6509    ac_cpp_err=$ac_c_preproc_warn_flag
6510    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6511  else
6512    ac_cpp_err=
6513  fi
6514else
6515  ac_cpp_err=yes
6516fi
6517if test -z "$ac_cpp_err"; then
6518  :
6519else
6520  echo "$as_me: failed program was:" >&5
6521sed 's/^/| /' conftest.$ac_ext >&5
6522
6523  # Broken: fails on valid input.
6524continue
6525fi
6526rm -f conftest.err conftest.$ac_ext
6527
6528  # OK, works on sane cases.  Now check whether non-existent headers
6529  # can be detected and how.
6530  cat >conftest.$ac_ext <<_ACEOF
6531/* confdefs.h.  */
6532_ACEOF
6533cat confdefs.h >>conftest.$ac_ext
6534cat >>conftest.$ac_ext <<_ACEOF
6535/* end confdefs.h.  */
6536#include <ac_nonexistent.h>
6537_ACEOF
6538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6539  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6540  ac_status=$?
6541  grep -v '^ *+' conftest.er1 >conftest.err
6542  rm -f conftest.er1
6543  cat conftest.err >&5
6544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545  (exit $ac_status); } >/dev/null; then
6546  if test -s conftest.err; then
6547    ac_cpp_err=$ac_c_preproc_warn_flag
6548    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6549  else
6550    ac_cpp_err=
6551  fi
6552else
6553  ac_cpp_err=yes
6554fi
6555if test -z "$ac_cpp_err"; then
6556  # Broken: success on invalid input.
6557continue
6558else
6559  echo "$as_me: failed program was:" >&5
6560sed 's/^/| /' conftest.$ac_ext >&5
6561
6562  # Passes both tests.
6563ac_preproc_ok=:
6564break
6565fi
6566rm -f conftest.err conftest.$ac_ext
6567
6568done
6569# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6570rm -f conftest.err conftest.$ac_ext
6571if $ac_preproc_ok; then
6572  break
6573fi
6574
6575    done
6576    ac_cv_prog_CPP=$CPP
6577
6578fi
6579  CPP=$ac_cv_prog_CPP
6580else
6581  ac_cv_prog_CPP=$CPP
6582fi
6583echo "$as_me:$LINENO: result: $CPP" >&5
6584echo "${ECHO_T}$CPP" >&6
6585ac_preproc_ok=false
6586for ac_c_preproc_warn_flag in '' yes
6587do
6588  # Use a header file that comes with gcc, so configuring glibc
6589  # with a fresh cross-compiler works.
6590  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6591  # <limits.h> exists even on freestanding compilers.
6592  # On the NeXT, cc -E runs the code through the compiler's parser,
6593  # not just through cpp. "Syntax error" is here to catch this case.
6594  cat >conftest.$ac_ext <<_ACEOF
6595/* confdefs.h.  */
6596_ACEOF
6597cat confdefs.h >>conftest.$ac_ext
6598cat >>conftest.$ac_ext <<_ACEOF
6599/* end confdefs.h.  */
6600#ifdef __STDC__
6601# include <limits.h>
6602#else
6603# include <assert.h>
6604#endif
6605                     Syntax error
6606_ACEOF
6607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6608  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6609  ac_status=$?
6610  grep -v '^ *+' conftest.er1 >conftest.err
6611  rm -f conftest.er1
6612  cat conftest.err >&5
6613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614  (exit $ac_status); } >/dev/null; then
6615  if test -s conftest.err; then
6616    ac_cpp_err=$ac_c_preproc_warn_flag
6617    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6618  else
6619    ac_cpp_err=
6620  fi
6621else
6622  ac_cpp_err=yes
6623fi
6624if test -z "$ac_cpp_err"; then
6625  :
6626else
6627  echo "$as_me: failed program was:" >&5
6628sed 's/^/| /' conftest.$ac_ext >&5
6629
6630  # Broken: fails on valid input.
6631continue
6632fi
6633rm -f conftest.err conftest.$ac_ext
6634
6635  # OK, works on sane cases.  Now check whether non-existent headers
6636  # can be detected and how.
6637  cat >conftest.$ac_ext <<_ACEOF
6638/* confdefs.h.  */
6639_ACEOF
6640cat confdefs.h >>conftest.$ac_ext
6641cat >>conftest.$ac_ext <<_ACEOF
6642/* end confdefs.h.  */
6643#include <ac_nonexistent.h>
6644_ACEOF
6645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6646  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6647  ac_status=$?
6648  grep -v '^ *+' conftest.er1 >conftest.err
6649  rm -f conftest.er1
6650  cat conftest.err >&5
6651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652  (exit $ac_status); } >/dev/null; then
6653  if test -s conftest.err; then
6654    ac_cpp_err=$ac_c_preproc_warn_flag
6655    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6656  else
6657    ac_cpp_err=
6658  fi
6659else
6660  ac_cpp_err=yes
6661fi
6662if test -z "$ac_cpp_err"; then
6663  # Broken: success on invalid input.
6664continue
6665else
6666  echo "$as_me: failed program was:" >&5
6667sed 's/^/| /' conftest.$ac_ext >&5
6668
6669  # Passes both tests.
6670ac_preproc_ok=:
6671break
6672fi
6673rm -f conftest.err conftest.$ac_ext
6674
6675done
6676# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6677rm -f conftest.err conftest.$ac_ext
6678if $ac_preproc_ok; then
6679  :
6680else
6681  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6682See \`config.log' for more details." >&5
6683echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6684See \`config.log' for more details." >&2;}
6685   { (exit 1); exit 1; }; }
6686fi
6687
6688ac_ext=c
6689ac_cpp='$CPP $CPPFLAGS'
6690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6692ac_compiler_gnu=$ac_cv_c_compiler_gnu
6693
6694
6695echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6696echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6697if test "${ac_cv_header_stdc+set}" = set; then
6698  echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700  cat >conftest.$ac_ext <<_ACEOF
6701/* confdefs.h.  */
6702_ACEOF
6703cat confdefs.h >>conftest.$ac_ext
6704cat >>conftest.$ac_ext <<_ACEOF
6705/* end confdefs.h.  */
6706#include <stdlib.h>
6707#include <stdarg.h>
6708#include <string.h>
6709#include <float.h>
6710
6711int
6712main ()
6713{
6714
6715  ;
6716  return 0;
6717}
6718_ACEOF
6719rm -f conftest.$ac_objext
6720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6721  (eval $ac_compile) 2>conftest.er1
6722  ac_status=$?
6723  grep -v '^ *+' conftest.er1 >conftest.err
6724  rm -f conftest.er1
6725  cat conftest.err >&5
6726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727  (exit $ac_status); } &&
6728         { ac_try='test -z "$ac_c_werror_flag"
6729                         || test ! -s conftest.err'
6730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6731  (eval $ac_try) 2>&5
6732  ac_status=$?
6733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734  (exit $ac_status); }; } &&
6735         { ac_try='test -s conftest.$ac_objext'
6736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6737  (eval $ac_try) 2>&5
6738  ac_status=$?
6739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740  (exit $ac_status); }; }; then
6741  ac_cv_header_stdc=yes
6742else
6743  echo "$as_me: failed program was:" >&5
6744sed 's/^/| /' conftest.$ac_ext >&5
6745
6746ac_cv_header_stdc=no
6747fi
6748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6749
6750if test $ac_cv_header_stdc = yes; then
6751  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6752  cat >conftest.$ac_ext <<_ACEOF
6753/* confdefs.h.  */
6754_ACEOF
6755cat confdefs.h >>conftest.$ac_ext
6756cat >>conftest.$ac_ext <<_ACEOF
6757/* end confdefs.h.  */
6758#include <string.h>
6759
6760_ACEOF
6761if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6762  $EGREP "memchr" >/dev/null 2>&1; then
6763  :
6764else
6765  ac_cv_header_stdc=no
6766fi
6767rm -f conftest*
6768
6769fi
6770
6771if test $ac_cv_header_stdc = yes; then
6772  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6773  cat >conftest.$ac_ext <<_ACEOF
6774/* confdefs.h.  */
6775_ACEOF
6776cat confdefs.h >>conftest.$ac_ext
6777cat >>conftest.$ac_ext <<_ACEOF
6778/* end confdefs.h.  */
6779#include <stdlib.h>
6780
6781_ACEOF
6782if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6783  $EGREP "free" >/dev/null 2>&1; then
6784  :
6785else
6786  ac_cv_header_stdc=no
6787fi
6788rm -f conftest*
6789
6790fi
6791
6792if test $ac_cv_header_stdc = yes; then
6793  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6794  if test "$cross_compiling" = yes; then
6795  :
6796else
6797  cat >conftest.$ac_ext <<_ACEOF
6798/* confdefs.h.  */
6799_ACEOF
6800cat confdefs.h >>conftest.$ac_ext
6801cat >>conftest.$ac_ext <<_ACEOF
6802/* end confdefs.h.  */
6803#include <ctype.h>
6804#if ((' ' & 0x0FF) == 0x020)
6805# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6806# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6807#else
6808# define ISLOWER(c) \
6809                   (('a' <= (c) && (c) <= 'i') \
6810                     || ('j' <= (c) && (c) <= 'r') \
6811                     || ('s' <= (c) && (c) <= 'z'))
6812# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6813#endif
6814
6815#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6816int
6817main ()
6818{
6819  int i;
6820  for (i = 0; i < 256; i++)
6821    if (XOR (islower (i), ISLOWER (i))
6822        || toupper (i) != TOUPPER (i))
6823      exit(2);
6824  exit (0);
6825}
6826_ACEOF
6827rm -f conftest$ac_exeext
6828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6829  (eval $ac_link) 2>&5
6830  ac_status=$?
6831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6834  (eval $ac_try) 2>&5
6835  ac_status=$?
6836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837  (exit $ac_status); }; }; then
6838  :
6839else
6840  echo "$as_me: program exited with status $ac_status" >&5
6841echo "$as_me: failed program was:" >&5
6842sed 's/^/| /' conftest.$ac_ext >&5
6843
6844( exit $ac_status )
6845ac_cv_header_stdc=no
6846fi
6847rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6848fi
6849fi
6850fi
6851echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6852echo "${ECHO_T}$ac_cv_header_stdc" >&6
6853if test $ac_cv_header_stdc = yes; then
6854
6855cat >>confdefs.h <<\_ACEOF
6856#define STDC_HEADERS 1
6857_ACEOF
6858
6859fi
6860
6861# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6872                  inttypes.h stdint.h unistd.h
6873do
6874as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6875echo "$as_me:$LINENO: checking for $ac_header" >&5
6876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6877if eval "test \"\${$as_ac_Header+set}\" = set"; then
6878  echo $ECHO_N "(cached) $ECHO_C" >&6
6879else
6880  cat >conftest.$ac_ext <<_ACEOF
6881/* confdefs.h.  */
6882_ACEOF
6883cat confdefs.h >>conftest.$ac_ext
6884cat >>conftest.$ac_ext <<_ACEOF
6885/* end confdefs.h.  */
6886$ac_includes_default
6887
6888#include <$ac_header>
6889_ACEOF
6890rm -f conftest.$ac_objext
6891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892  (eval $ac_compile) 2>conftest.er1
6893  ac_status=$?
6894  grep -v '^ *+' conftest.er1 >conftest.err
6895  rm -f conftest.er1
6896  cat conftest.err >&5
6897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898  (exit $ac_status); } &&
6899         { ac_try='test -z "$ac_c_werror_flag"
6900                         || test ! -s conftest.err'
6901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902  (eval $ac_try) 2>&5
6903  ac_status=$?
6904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905  (exit $ac_status); }; } &&
6906         { ac_try='test -s conftest.$ac_objext'
6907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6908  (eval $ac_try) 2>&5
6909  ac_status=$?
6910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911  (exit $ac_status); }; }; then
6912  eval "$as_ac_Header=yes"
6913else
6914  echo "$as_me: failed program was:" >&5
6915sed 's/^/| /' conftest.$ac_ext >&5
6916
6917eval "$as_ac_Header=no"
6918fi
6919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6920fi
6921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6922echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6923if test `eval echo '${'$as_ac_Header'}'` = yes; then
6924  cat >>confdefs.h <<_ACEOF
6925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6926_ACEOF
6927
6928fi
6929
6930done
6931
6932
6933
6934for ac_header in dlfcn.h
6935do
6936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6937if eval "test \"\${$as_ac_Header+set}\" = set"; then
6938  echo "$as_me:$LINENO: checking for $ac_header" >&5
6939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6940if eval "test \"\${$as_ac_Header+set}\" = set"; then
6941  echo $ECHO_N "(cached) $ECHO_C" >&6
6942fi
6943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6945else
6946  # Is the header compilable?
6947echo "$as_me:$LINENO: checking $ac_header usability" >&5
6948echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6949cat >conftest.$ac_ext <<_ACEOF
6950/* confdefs.h.  */
6951_ACEOF
6952cat confdefs.h >>conftest.$ac_ext
6953cat >>conftest.$ac_ext <<_ACEOF
6954/* end confdefs.h.  */
6955$ac_includes_default
6956#include <$ac_header>
6957_ACEOF
6958rm -f conftest.$ac_objext
6959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6960  (eval $ac_compile) 2>conftest.er1
6961  ac_status=$?
6962  grep -v '^ *+' conftest.er1 >conftest.err
6963  rm -f conftest.er1
6964  cat conftest.err >&5
6965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966  (exit $ac_status); } &&
6967         { ac_try='test -z "$ac_c_werror_flag"
6968                         || test ! -s conftest.err'
6969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970  (eval $ac_try) 2>&5
6971  ac_status=$?
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); }; } &&
6974         { ac_try='test -s conftest.$ac_objext'
6975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976  (eval $ac_try) 2>&5
6977  ac_status=$?
6978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979  (exit $ac_status); }; }; then
6980  ac_header_compiler=yes
6981else
6982  echo "$as_me: failed program was:" >&5
6983sed 's/^/| /' conftest.$ac_ext >&5
6984
6985ac_header_compiler=no
6986fi
6987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6988echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6989echo "${ECHO_T}$ac_header_compiler" >&6
6990
6991# Is the header present?
6992echo "$as_me:$LINENO: checking $ac_header presence" >&5
6993echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6994cat >conftest.$ac_ext <<_ACEOF
6995/* confdefs.h.  */
6996_ACEOF
6997cat confdefs.h >>conftest.$ac_ext
6998cat >>conftest.$ac_ext <<_ACEOF
6999/* end confdefs.h.  */
7000#include <$ac_header>
7001_ACEOF
7002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7003  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7004  ac_status=$?
7005  grep -v '^ *+' conftest.er1 >conftest.err
7006  rm -f conftest.er1
7007  cat conftest.err >&5
7008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009  (exit $ac_status); } >/dev/null; then
7010  if test -s conftest.err; then
7011    ac_cpp_err=$ac_c_preproc_warn_flag
7012    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7013  else
7014    ac_cpp_err=
7015  fi
7016else
7017  ac_cpp_err=yes
7018fi
7019if test -z "$ac_cpp_err"; then
7020  ac_header_preproc=yes
7021else
7022  echo "$as_me: failed program was:" >&5
7023sed 's/^/| /' conftest.$ac_ext >&5
7024
7025  ac_header_preproc=no
7026fi
7027rm -f conftest.err conftest.$ac_ext
7028echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7029echo "${ECHO_T}$ac_header_preproc" >&6
7030
7031# So?  What about this header?
7032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7033  yes:no: )
7034    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7035echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7036    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7037echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7038    ac_header_preproc=yes
7039    ;;
7040  no:yes:* )
7041    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7042echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7043    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7044echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7045    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7046echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7047    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7048echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7049    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7050echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7051    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7052echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7053    (
7054      cat <<\_ASBOX
7055## ----------------------------------------- ##
7056## Report this to coin-cbc@lists.coin-or.org ##
7057## ----------------------------------------- ##
7058_ASBOX
7059    ) |
7060      sed "s/^/$as_me: WARNING:     /" >&2
7061    ;;
7062esac
7063echo "$as_me:$LINENO: checking for $ac_header" >&5
7064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7065if eval "test \"\${$as_ac_Header+set}\" = set"; then
7066  echo $ECHO_N "(cached) $ECHO_C" >&6
7067else
7068  eval "$as_ac_Header=\$ac_header_preproc"
7069fi
7070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7072
7073fi
7074if test `eval echo '${'$as_ac_Header'}'` = yes; then
7075  cat >>confdefs.h <<_ACEOF
7076#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7077_ACEOF
7078
7079fi
7080
7081done
7082
7083
7084
7085if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7086    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7087    (test "X$CXX" != "Xg++"))) ; then
7088  ac_ext=cc
7089ac_cpp='$CXXCPP $CPPFLAGS'
7090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7093echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7094echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7095if test -z "$CXXCPP"; then
7096  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7097  echo $ECHO_N "(cached) $ECHO_C" >&6
7098else
7099      # Double quotes because CXXCPP needs to be expanded
7100    for CXXCPP in "$CXX -E" "/lib/cpp"
7101    do
7102      ac_preproc_ok=false
7103for ac_cxx_preproc_warn_flag in '' yes
7104do
7105  # Use a header file that comes with gcc, so configuring glibc
7106  # with a fresh cross-compiler works.
7107  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7108  # <limits.h> exists even on freestanding compilers.
7109  # On the NeXT, cc -E runs the code through the compiler's parser,
7110  # not just through cpp. "Syntax error" is here to catch this case.
7111  cat >conftest.$ac_ext <<_ACEOF
7112/* confdefs.h.  */
7113_ACEOF
7114cat confdefs.h >>conftest.$ac_ext
7115cat >>conftest.$ac_ext <<_ACEOF
7116/* end confdefs.h.  */
7117#ifdef __STDC__
7118# include <limits.h>
7119#else
7120# include <assert.h>
7121#endif
7122                     Syntax error
7123_ACEOF
7124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7125  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7126  ac_status=$?
7127  grep -v '^ *+' conftest.er1 >conftest.err
7128  rm -f conftest.er1
7129  cat conftest.err >&5
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); } >/dev/null; then
7132  if test -s conftest.err; then
7133    ac_cpp_err=$ac_cxx_preproc_warn_flag
7134    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7135  else
7136    ac_cpp_err=
7137  fi
7138else
7139  ac_cpp_err=yes
7140fi
7141if test -z "$ac_cpp_err"; then
7142  :
7143else
7144  echo "$as_me: failed program was:" >&5
7145sed 's/^/| /' conftest.$ac_ext >&5
7146
7147  # Broken: fails on valid input.
7148continue
7149fi
7150rm -f conftest.err conftest.$ac_ext
7151
7152  # OK, works on sane cases.  Now check whether non-existent headers
7153  # can be detected and how.
7154  cat >conftest.$ac_ext <<_ACEOF
7155/* confdefs.h.  */
7156_ACEOF
7157cat confdefs.h >>conftest.$ac_ext
7158cat >>conftest.$ac_ext <<_ACEOF
7159/* end confdefs.h.  */
7160#include <ac_nonexistent.h>
7161_ACEOF
7162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7163  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7164  ac_status=$?
7165  grep -v '^ *+' conftest.er1 >conftest.err
7166  rm -f conftest.er1
7167  cat conftest.err >&5
7168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169  (exit $ac_status); } >/dev/null; then
7170  if test -s conftest.err; then
7171    ac_cpp_err=$ac_cxx_preproc_warn_flag
7172    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7173  else
7174    ac_cpp_err=
7175  fi
7176else
7177  ac_cpp_err=yes
7178fi
7179if test -z "$ac_cpp_err"; then
7180  # Broken: success on invalid input.
7181continue
7182else
7183  echo "$as_me: failed program was:" >&5
7184sed 's/^/| /' conftest.$ac_ext >&5
7185
7186  # Passes both tests.
7187ac_preproc_ok=:
7188break
7189fi
7190rm -f conftest.err conftest.$ac_ext
7191
7192done
7193# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7194rm -f conftest.err conftest.$ac_ext
7195if $ac_preproc_ok; then
7196  break
7197fi
7198
7199    done
7200    ac_cv_prog_CXXCPP=$CXXCPP
7201
7202fi
7203  CXXCPP=$ac_cv_prog_CXXCPP
7204else
7205  ac_cv_prog_CXXCPP=$CXXCPP
7206fi
7207echo "$as_me:$LINENO: result: $CXXCPP" >&5
7208echo "${ECHO_T}$CXXCPP" >&6
7209ac_preproc_ok=false
7210for ac_cxx_preproc_warn_flag in '' yes
7211do
7212  # Use a header file that comes with gcc, so configuring glibc
7213  # with a fresh cross-compiler works.
7214  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7215  # <limits.h> exists even on freestanding compilers.
7216  # On the NeXT, cc -E runs the code through the compiler's parser,
7217  # not just through cpp. "Syntax error" is here to catch this case.
7218  cat >conftest.$ac_ext <<_ACEOF
7219/* confdefs.h.  */
7220_ACEOF
7221cat confdefs.h >>conftest.$ac_ext
7222cat >>conftest.$ac_ext <<_ACEOF
7223/* end confdefs.h.  */
7224#ifdef __STDC__
7225# include <limits.h>
7226#else
7227# include <assert.h>
7228#endif
7229                     Syntax error
7230_ACEOF
7231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7232  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7233  ac_status=$?
7234  grep -v '^ *+' conftest.er1 >conftest.err
7235  rm -f conftest.er1
7236  cat conftest.err >&5
7237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238  (exit $ac_status); } >/dev/null; then
7239  if test -s conftest.err; then
7240    ac_cpp_err=$ac_cxx_preproc_warn_flag
7241    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7242  else
7243    ac_cpp_err=
7244  fi
7245else
7246  ac_cpp_err=yes
7247fi
7248if test -z "$ac_cpp_err"; then
7249  :
7250else
7251  echo "$as_me: failed program was:" >&5
7252sed 's/^/| /' conftest.$ac_ext >&5
7253
7254  # Broken: fails on valid input.
7255continue
7256fi
7257rm -f conftest.err conftest.$ac_ext
7258
7259  # OK, works on sane cases.  Now check whether non-existent headers
7260  # can be detected and how.
7261  cat >conftest.$ac_ext <<_ACEOF
7262/* confdefs.h.  */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h.  */
7267#include <ac_nonexistent.h>
7268_ACEOF
7269if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7270  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7271  ac_status=$?
7272  grep -v '^ *+' conftest.er1 >conftest.err
7273  rm -f conftest.er1
7274  cat conftest.err >&5
7275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276  (exit $ac_status); } >/dev/null; then
7277  if test -s conftest.err; then
7278    ac_cpp_err=$ac_cxx_preproc_warn_flag
7279    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7280  else
7281    ac_cpp_err=
7282  fi
7283else
7284  ac_cpp_err=yes
7285fi
7286if test -z "$ac_cpp_err"; then
7287  # Broken: success on invalid input.
7288continue
7289else
7290  echo "$as_me: failed program was:" >&5
7291sed 's/^/| /' conftest.$ac_ext >&5
7292
7293  # Passes both tests.
7294ac_preproc_ok=:
7295break
7296fi
7297rm -f conftest.err conftest.$ac_ext
7298
7299done
7300# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7301rm -f conftest.err conftest.$ac_ext
7302if $ac_preproc_ok; then
7303  :
7304else
7305  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7306See \`config.log' for more details." >&5
7307echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7308See \`config.log' for more details." >&2;}
7309   { (exit 1); exit 1; }; }
7310fi
7311
7312ac_ext=cc
7313ac_cpp='$CXXCPP $CPPFLAGS'
7314ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7315ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7316ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7317
7318fi
7319
7320
7321# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7322
7323# find the maximum length of command line arguments
7324echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7325echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7326if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7327  echo $ECHO_N "(cached) $ECHO_C" >&6
7328else
7329    i=0
7330  teststring="ABCD"
7331
7332  case $build_os in
7333  msdosdjgpp*)
7334    # On DJGPP, this test can blow up pretty badly due to problems in libc
7335    # (any single argument exceeding 2000 bytes causes a buffer overrun
7336    # during glob expansion).  Even if it were fixed, the result of this
7337    # check would be larger than it should be.
7338    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7339    ;;
7340
7341  gnu*)
7342    # Under GNU Hurd, this test is not required because there is
7343    # no limit to the length of command line arguments.
7344    # Libtool will interpret -1 as no limit whatsoever
7345    lt_cv_sys_max_cmd_len=-1;
7346    ;;
7347
7348  cygwin* | mingw*)
7349    # On Win9x/ME, this test blows up -- it succeeds, but takes
7350    # about 5 minutes as the teststring grows exponentially.
7351    # Worse, since 9x/ME are not pre-emptively multitasking,
7352    # you end up with a "frozen" computer, even though with patience
7353    # the test eventually succeeds (with a max line length of 256k).
7354    # Instead, let's just punt: use the minimum linelength reported by
7355    # all of the supported platforms: 8192 (on NT/2K/XP).
7356    lt_cv_sys_max_cmd_len=8192;
7357    ;;
7358
7359  amigaos*)
7360    # On AmigaOS with pdksh, this test takes hours, literally.
7361    # So we just punt and use a minimum line length of 8192.
7362    lt_cv_sys_max_cmd_len=8192;
7363    ;;
7364
7365  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7366    # This has been around since 386BSD, at least.  Likely further.
7367    if test -x /sbin/sysctl; then
7368      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7369    elif test -x /usr/sbin/sysctl; then
7370      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7371    else
7372      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7373    fi
7374    # And add a safety zone
7375    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7376    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7377    ;;
7378
7379  interix*)
7380    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7381    lt_cv_sys_max_cmd_len=196608
7382    ;;
7383
7384  osf*)
7385    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7386    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7387    # nice to cause kernel panics so lets avoid the loop below.
7388    # First set a reasonable default.
7389    lt_cv_sys_max_cmd_len=16384
7390    #
7391    if test -x /sbin/sysconfig; then
7392      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7393        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7394      esac
7395    fi
7396    ;;
7397  sco3.2v5*)
7398    lt_cv_sys_max_cmd_len=102400
7399    ;;
7400  sysv5* | sco5v6* | sysv4.2uw2*)
7401    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7402    if test -n "$kargmax"; then
7403      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7404    else
7405      lt_cv_sys_max_cmd_len=32768
7406    fi
7407    ;;
7408  *)
7409    # If test is not a shell built-in, we'll probably end up computing a
7410    # maximum length that is only half of the actual maximum length, but
7411    # we can't tell.
7412    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7413    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7414               = "XX$teststring") >/dev/null 2>&1 &&
7415            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7416            lt_cv_sys_max_cmd_len=$new_result &&
7417            test $i != 17 # 1/2 MB should be enough
7418    do
7419      i=`expr $i + 1`
7420      teststring=$teststring$teststring
7421    done
7422    teststring=
7423    # Add a significant safety factor because C++ compilers can tack on massive
7424    # amounts of additional arguments before passing them to the linker.
7425    # It appears as though 1/2 is a usable value.
7426    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7427    ;;
7428  esac
7429
7430fi
7431
7432if test -n $lt_cv_sys_max_cmd_len ; then
7433  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7434echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7435else
7436  echo "$as_me:$LINENO: result: none" >&5
7437echo "${ECHO_T}none" >&6
7438fi
7439
7440
7441
7442
7443# Check for command to grab the raw symbol name followed by C symbol from nm.
7444echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7445echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7446if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7447  echo $ECHO_N "(cached) $ECHO_C" >&6
7448else
7449
7450# These are sane defaults that work on at least a few old systems.
7451# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7452
7453# Character class describing NM global symbol codes.
7454symcode='[BCDEGRST]'
7455
7456# Regexp to match symbols that can be accessed directly from C.
7457sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7458
7459# Transform an extracted symbol line into a proper C declaration
7460lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7461
7462# Transform an extracted symbol line into symbol name and symbol address
7463lt_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'"
7464
7465# Define system-specific variables.
7466case $host_os in
7467aix*)
7468  symcode='[BCDT]'
7469  ;;
7470cygwin* | mingw* | pw32*)
7471  symcode='[ABCDGISTW]'
7472  ;;
7473hpux*) # Its linker distinguishes data from code symbols
7474  if test "$host_cpu" = ia64; then
7475    symcode='[ABCDEGRST]'
7476  fi
7477  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7478  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'"
7479  ;;
7480linux*)
7481  if test "$host_cpu" = ia64; then
7482    symcode='[ABCDGIRSTW]'
7483    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7484    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'"
7485  fi
7486  ;;
7487irix* | nonstopux*)
7488  symcode='[BCDEGRST]'
7489  ;;
7490osf*)
7491  symcode='[BCDEGQRST]'
7492  ;;
7493solaris*)
7494  symcode='[BDRT]'
7495  ;;
7496sco3.2v5*)
7497  symcode='[DT]'
7498  ;;
7499sysv4.2uw2*)
7500  symcode='[DT]'
7501  ;;
7502sysv5* | sco5v6* | unixware* | OpenUNIX*)
7503  symcode='[ABDT]'
7504  ;;
7505sysv4)
7506  symcode='[DFNSTU]'
7507  ;;
7508esac
7509
7510# Handle CRLF in mingw tool chain
7511opt_cr=
7512case $build_os in
7513mingw*)
7514  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7515  ;;
7516esac
7517
7518# If we're using GNU nm, then use its standard symbol codes.
7519case `$NM -V 2>&1` in
7520*GNU* | *'with BFD'*)
7521  symcode='[ABCDGIRSTW]' ;;
7522esac
7523
7524# Try without a prefix undercore, then with it.
7525for ac_symprfx in "" "_"; do
7526
7527  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7528  symxfrm="\\1 $ac_symprfx\\2 \\2"
7529
7530  # Write the raw and C identifiers.
7531  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7532
7533  # Check to see that the pipe works correctly.
7534  pipe_works=no
7535
7536  rm -f conftest*
7537  cat > conftest.$ac_ext <<EOF
7538#ifdef __cplusplus
7539extern "C" {
7540#endif
7541char nm_test_var;
7542void nm_test_func(){}
7543#ifdef __cplusplus
7544}
7545#endif
7546int main(){nm_test_var='a';nm_test_func();return(0);}
7547EOF
7548
7549  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7550  (eval $ac_compile) 2>&5
7551  ac_status=$?
7552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553  (exit $ac_status); }; then
7554    # Now try to grab the symbols.
7555    nlist=conftest.nm
7556    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7557  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7558  ac_status=$?
7559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560  (exit $ac_status); } && test -s "$nlist"; then
7561      # Try sorting and uniquifying the output.
7562      if sort "$nlist" | uniq > "$nlist"T; then
7563        mv -f "$nlist"T "$nlist"
7564      else
7565        rm -f "$nlist"T
7566      fi
7567
7568      # Make sure that we snagged all the symbols we need.
7569      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7570        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7571          cat <<EOF > conftest.$ac_ext
7572#ifdef __cplusplus
7573extern "C" {
7574#endif
7575
7576EOF
7577          # Now generate the symbol file.
7578          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7579
7580          cat <<EOF >> conftest.$ac_ext
7581#if defined (__STDC__) && __STDC__
7582# define lt_ptr_t void *
7583#else
7584# define lt_ptr_t char *
7585# define const
7586#endif
7587
7588/* The mapping between symbol names and symbols. */
7589const struct {
7590  const char *name;
7591  lt_ptr_t address;
7592}
7593lt_preloaded_symbols[] =
7594{
7595EOF
7596          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7597          cat <<\EOF >> conftest.$ac_ext
7598  {0, (lt_ptr_t) 0}
7599};
7600
7601#ifdef __cplusplus
7602}
7603#endif
7604EOF
7605          # Now try linking the two files.
7606          mv conftest.$ac_objext conftstm.$ac_objext
7607          lt_save_LIBS="$LIBS"
7608          lt_save_CFLAGS="$CFLAGS"
7609          LIBS="conftstm.$ac_objext"
7610          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7611          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7612  (eval $ac_link) 2>&5
7613  ac_status=$?
7614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7616            pipe_works=yes
7617          fi
7618          LIBS="$lt_save_LIBS"
7619          CFLAGS="$lt_save_CFLAGS"
7620        else
7621          echo "cannot find nm_test_func in $nlist" >&5
7622        fi
7623      else
7624        echo "cannot find nm_test_var in $nlist" >&5
7625      fi
7626    else
7627      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7628    fi
7629  else
7630    echo "$progname: failed program was:" >&5
7631    cat conftest.$ac_ext >&5
7632  fi
7633  rm -f conftest* conftst*
7634
7635  # Do not use the global_symbol_pipe unless it works.
7636  if test "$pipe_works" = yes; then
7637    break
7638  else
7639    lt_cv_sys_global_symbol_pipe=
7640  fi
7641done
7642
7643fi
7644
7645if test -z "$lt_cv_sys_global_symbol_pipe"; then
7646  lt_cv_sys_global_symbol_to_cdecl=
7647fi
7648if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7649  echo "$as_me:$LINENO: result: failed" >&5
7650echo "${ECHO_T}failed" >&6
7651else
7652  echo "$as_me:$LINENO: result: ok" >&5
7653echo "${ECHO_T}ok" >&6
7654fi
7655
7656echo "$as_me:$LINENO: checking for objdir" >&5
7657echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7658if test "${lt_cv_objdir+set}" = set; then
7659  echo $ECHO_N "(cached) $ECHO_C" >&6
7660else
7661  rm -f .libs 2>/dev/null
7662mkdir .libs 2>/dev/null
7663if test -d .libs; then
7664  lt_cv_objdir=.libs
7665else
7666  # MS-DOS does not allow filenames that begin with a dot.
7667  lt_cv_objdir=_libs
7668fi
7669rmdir .libs 2>/dev/null
7670fi
7671echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7672echo "${ECHO_T}$lt_cv_objdir" >&6
7673objdir=$lt_cv_objdir
7674
7675
7676
7677
7678
7679case $host_os in
7680aix3*)
7681  # AIX sometimes has problems with the GCC collect2 program.  For some
7682  # reason, if we set the COLLECT_NAMES environment variable, the problems
7683  # vanish in a puff of smoke.
7684  if test "X${COLLECT_NAMES+set}" != Xset; then
7685    COLLECT_NAMES=
7686    export COLLECT_NAMES
7687  fi
7688  ;;
7689esac
7690
7691# Sed substitution that helps us do robust quoting.  It backslashifies
7692# metacharacters that are still active within double-quoted strings.
7693Xsed='sed -e 1s/^X//'
7694sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7695
7696# Same as above, but do not quote variable references.
7697double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7698
7699# Sed substitution to delay expansion of an escaped shell variable in a
7700# double_quote_subst'ed string.
7701delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7702
7703# Sed substitution to avoid accidental globbing in evaled expressions
7704no_glob_subst='s/\*/\\\*/g'
7705
7706# Constants:
7707rm="rm -f"
7708
7709# Global variables:
7710default_ofile=libtool
7711can_build_shared=yes
7712
7713# All known linkers require a `.a' archive for static linking (except MSVC,
7714# which needs '.lib').
7715libext=a
7716ltmain="$ac_aux_dir/ltmain.sh"
7717ofile="$default_ofile"
7718with_gnu_ld="$lt_cv_prog_gnu_ld"
7719
7720if test -n "$ac_tool_prefix"; then
7721  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7722set dummy ${ac_tool_prefix}ar; ac_word=$2
7723echo "$as_me:$LINENO: checking for $ac_word" >&5
7724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7725if test "${ac_cv_prog_AR+set}" = set; then
7726  echo $ECHO_N "(cached) $ECHO_C" >&6
7727else
7728  if test -n "$AR"; then
7729  ac_cv_prog_AR="$AR" # Let the user override the test.
7730else
7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734  IFS=$as_save_IFS
7735  test -z "$as_dir" && as_dir=.
7736  for ac_exec_ext in '' $ac_executable_extensions; do
7737  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7738    ac_cv_prog_AR="${ac_tool_prefix}ar"
7739    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740    break 2
7741  fi
7742done
7743done
7744
7745fi
7746fi
7747AR=$ac_cv_prog_AR
7748if test -n "$AR"; then
7749  echo "$as_me:$LINENO: result: $AR" >&5
7750echo "${ECHO_T}$AR" >&6
7751else
7752  echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6
7754fi
7755
7756fi
7757if test -z "$ac_cv_prog_AR"; then
7758  ac_ct_AR=$AR
7759  # Extract the first word of "ar", so it can be a program name with args.
7760set dummy ar; ac_word=$2
7761echo "$as_me:$LINENO: checking for $ac_word" >&5
7762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7763if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7764  echo $ECHO_N "(cached) $ECHO_C" >&6
7765else
7766  if test -n "$ac_ct_AR"; then
7767  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772  IFS=$as_save_IFS
7773  test -z "$as_dir" && as_dir=.
7774  for ac_exec_ext in '' $ac_executable_extensions; do
7775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776    ac_cv_prog_ac_ct_AR="ar"
7777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778    break 2
7779  fi
7780done
7781done
7782
7783  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7784fi
7785fi
7786ac_ct_AR=$ac_cv_prog_ac_ct_AR
7787if test -n "$ac_ct_AR"; then
7788  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7789echo "${ECHO_T}$ac_ct_AR" >&6
7790else
7791  echo "$as_me:$LINENO: result: no" >&5
7792echo "${ECHO_T}no" >&6
7793fi
7794
7795  AR=$ac_ct_AR
7796else
7797  AR="$ac_cv_prog_AR"
7798fi
7799
7800if test -n "$ac_tool_prefix"; then
7801  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7802set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7803echo "$as_me:$LINENO: checking for $ac_word" >&5
7804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7805if test "${ac_cv_prog_RANLIB+set}" = set; then
7806  echo $ECHO_N "(cached) $ECHO_C" >&6
7807else
7808  if test -n "$RANLIB"; then
7809  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7810else
7811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7812for as_dir in $PATH
7813do
7814  IFS=$as_save_IFS
7815  test -z "$as_dir" && as_dir=.
7816  for ac_exec_ext in '' $ac_executable_extensions; do
7817  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7818    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7819    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820    break 2
7821  fi
7822done
7823done
7824
7825fi
7826fi
7827RANLIB=$ac_cv_prog_RANLIB
7828if test -n "$RANLIB"; then
7829  echo "$as_me:$LINENO: result: $RANLIB" >&5
7830echo "${ECHO_T}$RANLIB" >&6
7831else
7832  echo "$as_me:$LINENO: result: no" >&5
7833echo "${ECHO_T}no" >&6
7834fi
7835
7836fi
7837if test -z "$ac_cv_prog_RANLIB"; then
7838  ac_ct_RANLIB=$RANLIB
7839  # Extract the first word of "ranlib", so it can be a program name with args.
7840set dummy ranlib; ac_word=$2
7841echo "$as_me:$LINENO: checking for $ac_word" >&5
7842echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7843if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7844  echo $ECHO_N "(cached) $ECHO_C" >&6
7845else
7846  if test -n "$ac_ct_RANLIB"; then
7847  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7848else
7849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852  IFS=$as_save_IFS
7853  test -z "$as_dir" && as_dir=.
7854  for ac_exec_ext in '' $ac_executable_extensions; do
7855  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856    ac_cv_prog_ac_ct_RANLIB="ranlib"
7857    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858    break 2
7859  fi
7860done
7861done
7862
7863  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7864fi
7865fi
7866ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7867if test -n "$ac_ct_RANLIB"; then
7868  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7869echo "${ECHO_T}$ac_ct_RANLIB" >&6
7870else
7871  echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873fi
7874
7875  RANLIB=$ac_ct_RANLIB
7876else
7877  RANLIB="$ac_cv_prog_RANLIB"
7878fi
7879
7880if test -n "$ac_tool_prefix"; then
7881  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7882set dummy ${ac_tool_prefix}strip; ac_word=$2
7883echo "$as_me:$LINENO: checking for $ac_word" >&5
7884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7885if test "${ac_cv_prog_STRIP+set}" = set; then
7886  echo $ECHO_N "(cached) $ECHO_C" >&6
7887else
7888  if test -n "$STRIP"; then
7889  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894  IFS=$as_save_IFS
7895  test -z "$as_dir" && as_dir=.
7896  for ac_exec_ext in '' $ac_executable_extensions; do
7897  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7899    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7900    break 2
7901  fi
7902done
7903done
7904
7905fi
7906fi
7907STRIP=$ac_cv_prog_STRIP
7908if test -n "$STRIP"; then
7909  echo "$as_me:$LINENO: result: $STRIP" >&5
7910echo "${ECHO_T}$STRIP" >&6
7911else
7912  echo "$as_me:$LINENO: result: no" >&5
7913echo "${ECHO_T}no" >&6
7914fi
7915
7916fi
7917if test -z "$ac_cv_prog_STRIP"; then
7918  ac_ct_STRIP=$STRIP
7919  # Extract the first word of "strip", so it can be a program name with args.
7920set dummy strip; ac_word=$2
7921echo "$as_me:$LINENO: checking for $ac_word" >&5
7922echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7923if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7924  echo $ECHO_N "(cached) $ECHO_C" >&6
7925else
7926  if test -n "$ac_ct_STRIP"; then
7927  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7928else
7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930for as_dir in $PATH
7931do
7932  IFS=$as_save_IFS
7933  test -z "$as_dir" && as_dir=.
7934  for ac_exec_ext in '' $ac_executable_extensions; do
7935  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7936    ac_cv_prog_ac_ct_STRIP="strip"
7937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938    break 2
7939  fi
7940done
7941done
7942
7943  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7944fi
7945fi
7946ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7947if test -n "$ac_ct_STRIP"; then
7948  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7949echo "${ECHO_T}$ac_ct_STRIP" >&6
7950else
7951  echo "$as_me:$LINENO: result: no" >&5
7952echo "${ECHO_T}no" >&6
7953fi
7954
7955  STRIP=$ac_ct_STRIP
7956else
7957  STRIP="$ac_cv_prog_STRIP"
7958fi
7959
7960
7961old_CC="$CC"
7962old_CFLAGS="$CFLAGS"
7963
7964# Set sane defaults for various variables
7965test -z "$AR" && AR=ar
7966test -z "$AR_FLAGS" && AR_FLAGS=cru
7967test -z "$AS" && AS=as
7968test -z "$CC" && CC=cc
7969test -z "$LTCC" && LTCC=$CC
7970test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7971test -z "$DLLTOOL" && DLLTOOL=dlltool
7972test -z "$LD" && LD=ld
7973test -z "$LN_S" && LN_S="ln -s"
7974test -z "$MAGIC_CMD" && MAGIC_CMD=file
7975test -z "$NM" && NM=nm
7976test -z "$SED" && SED=sed
7977test -z "$OBJDUMP" && OBJDUMP=objdump
7978test -z "$RANLIB" && RANLIB=:
7979test -z "$STRIP" && STRIP=:
7980test -z "$ac_objext" && ac_objext=o
7981
7982# Determine commands to create old-style static archives.
7983old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7984old_postinstall_cmds='chmod 644 $oldlib'
7985old_postuninstall_cmds=
7986
7987if test -n "$RANLIB"; then
7988  case $host_os in
7989  openbsd*)
7990    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7991    ;;
7992  *)
7993    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7994    ;;
7995  esac
7996  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7997fi
7998
7999for cc_temp in $compiler""; do
8000  case $cc_temp in
8001    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8002    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8003    \-*) ;;
8004    *) break;;
8005  esac
8006done
8007cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8008
8009
8010# Only perform the check for file, if the check method requires it
8011case $deplibs_check_method in
8012file_magic*)
8013  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8014    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8015echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8016if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8017  echo $ECHO_N "(cached) $ECHO_C" >&6
8018else
8019  case $MAGIC_CMD in
8020[\\/*] |  ?:[\\/]*)
8021  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8022  ;;
8023*)
8024  lt_save_MAGIC_CMD="$MAGIC_CMD"
8025  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8026  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8027  for ac_dir in $ac_dummy; do
8028    IFS="$lt_save_ifs"
8029    test -z "$ac_dir" && ac_dir=.
8030    if test -f $ac_dir/${ac_tool_prefix}file; then
8031      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8032      if test -n "$file_magic_test_file"; then
8033        case $deplibs_check_method in
8034        "file_magic "*)
8035          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8036          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8037          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8038            $EGREP "$file_magic_regex" > /dev/null; then
8039            :
8040          else
8041            cat <<EOF 1>&2
8042
8043*** Warning: the command libtool uses to detect shared libraries,
8044*** $file_magic_cmd, produces output that libtool cannot recognize.
8045*** The result is that libtool may fail to recognize shared libraries
8046*** as such.  This will affect the creation of libtool libraries that
8047*** depend on shared libraries, but programs linked with such libtool
8048*** libraries will work regardless of this problem.  Nevertheless, you
8049*** may want to report the problem to your system manager and/or to
8050*** bug-libtool@gnu.org
8051
8052EOF
8053          fi ;;
8054        esac
8055      fi
8056      break
8057    fi
8058  done
8059  IFS="$lt_save_ifs"
8060  MAGIC_CMD="$lt_save_MAGIC_CMD"
8061  ;;
8062esac
8063fi
8064
8065MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8066if test -n "$MAGIC_CMD"; then
8067  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8068echo "${ECHO_T}$MAGIC_CMD" >&6
8069else
8070  echo "$as_me:$LINENO: result: no" >&5
8071echo "${ECHO_T}no" >&6
8072fi
8073
8074if test -z "$lt_cv_path_MAGIC_CMD"; then
8075  if test -n "$ac_tool_prefix"; then
8076    echo "$as_me:$LINENO: checking for file" >&5
8077echo $ECHO_N "checking for file... $ECHO_C" >&6
8078if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8079  echo $ECHO_N "(cached) $ECHO_C" >&6
8080else
8081  case $MAGIC_CMD in
8082[\\/*] |  ?:[\\/]*)
8083  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8084  ;;
8085*)
8086  lt_save_MAGIC_CMD="$MAGIC_CMD"
8087  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8088  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8089  for ac_dir in $ac_dummy; do
8090    IFS="$lt_save_ifs"
8091    test -z "$ac_dir" && ac_dir=.
8092    if test -f $ac_dir/file; then
8093      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8094      if test -n "$file_magic_test_file"; then
8095        case $deplibs_check_method in
8096        "file_magic "*)
8097          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8098          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8099          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8100            $EGREP "$file_magic_regex" > /dev/null; then
8101            :
8102          else
8103            cat <<EOF 1>&2
8104
8105*** Warning: the command libtool uses to detect shared libraries,
8106*** $file_magic_cmd, produces output that libtool cannot recognize.
8107*** The result is that libtool may fail to recognize shared libraries
8108*** as such.  This will affect the creation of libtool libraries that
8109*** depend on shared libraries, but programs linked with such libtool
8110*** libraries will work regardless of this problem.  Nevertheless, you
8111*** may want to report the problem to your system manager and/or to
8112*** bug-libtool@gnu.org
8113
8114EOF
8115          fi ;;
8116        esac
8117      fi
8118      break
8119    fi
8120  done
8121  IFS="$lt_save_ifs"
8122  MAGIC_CMD="$lt_save_MAGIC_CMD"
8123  ;;
8124esac
8125fi
8126
8127MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8128if test -n "$MAGIC_CMD"; then
8129  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8130echo "${ECHO_T}$MAGIC_CMD" >&6
8131else
8132  echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6
8134fi
8135
8136  else
8137    MAGIC_CMD=:
8138  fi
8139fi
8140
8141  fi
8142  ;;
8143esac
8144
8145enable_dlopen=no
8146enable_win32_dll=no
8147
8148# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8149if test "${enable_libtool_lock+set}" = set; then
8150  enableval="$enable_libtool_lock"
8151
8152fi;
8153test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8154
8155
8156# Check whether --with-pic or --without-pic was given.
8157if test "${with_pic+set}" = set; then
8158  withval="$with_pic"
8159  pic_mode="$withval"
8160else
8161  pic_mode=default
8162fi;
8163test -z "$pic_mode" && pic_mode=default
8164
8165# Use C for the default configuration in the libtool script
8166tagname=
8167lt_save_CC="$CC"
8168ac_ext=c
8169ac_cpp='$CPP $CPPFLAGS'
8170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8172ac_compiler_gnu=$ac_cv_c_compiler_gnu
8173
8174
8175# Source file extension for C test sources.
8176ac_ext=c
8177
8178# Object file extension for compiled C test sources.
8179objext=o
8180objext=$objext
8181
8182# Code to be used in simple compile tests
8183lt_simple_compile_test_code="int some_variable = 0;\n"
8184
8185# Code to be used in simple link tests
8186lt_simple_link_test_code='int main(){return(0);}\n'
8187
8188
8189# If no C compiler was specified, use CC.
8190LTCC=${LTCC-"$CC"}
8191
8192# If no C compiler flags were specified, use CFLAGS.
8193LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8194
8195# Allow CC to be a program name with arguments.
8196compiler=$CC
8197
8198
8199# save warnings/boilerplate of simple test code
8200ac_outfile=conftest.$ac_objext
8201printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8202eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8203_lt_compiler_boilerplate=`cat conftest.err`
8204$rm conftest*
8205
8206ac_outfile=conftest.$ac_objext
8207printf "$lt_simple_link_test_code" >conftest.$ac_ext
8208eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8209_lt_linker_boilerplate=`cat conftest.err`
8210$rm conftest*
8211
8212
8213## CAVEAT EMPTOR:
8214## There is no encapsulation within the following macros, do not change
8215## the running order or otherwise move them around unless you know exactly
8216## what you are doing...
8217
8218lt_prog_compiler_no_builtin_flag=
8219
8220if test "$GCC" = yes; then
8221  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8222
8223
8224echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8225echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8226if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8227  echo $ECHO_N "(cached) $ECHO_C" >&6
8228else
8229  lt_cv_prog_compiler_rtti_exceptions=no
8230  ac_outfile=conftest.$ac_objext
8231   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8232   lt_compiler_flag="-fno-rtti -fno-exceptions"
8233   # Insert the option either (1) after the last *FLAGS variable, or
8234   # (2) before a word containing "conftest.", or (3) at the end.
8235   # Note that $ac_compile itself does not contain backslashes and begins
8236   # with a dollar sign (not a hyphen), so the echo should work correctly.
8237   # The option is referenced via a variable to avoid confusing sed.
8238   lt_compile=`echo "$ac_compile" | $SED \
8239   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8240   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8241   -e 's:$: $lt_compiler_flag:'`
8242   (eval echo "\"\$as_me:8242: $lt_compile\"" >&5)
8243   (eval "$lt_compile" 2>conftest.err)
8244   ac_status=$?
8245   cat conftest.err >&5
8246   echo "$as_me:8246: \$? = $ac_status" >&5
8247   if (exit $ac_status) && test -s "$ac_outfile"; then
8248     # The compiler can only warn and ignore the option if not recognized
8249     # So say no if there are warnings other than the usual output.
8250     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8251     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8252     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8253       lt_cv_prog_compiler_rtti_exceptions=yes
8254     fi
8255   fi
8256   $rm conftest*
8257
8258fi
8259echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8260echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8261
8262if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8263    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8264else
8265    :
8266fi
8267
8268fi
8269
8270lt_prog_compiler_wl=
8271lt_prog_compiler_pic=
8272lt_prog_compiler_static=
8273
8274echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8275echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8276
8277  if test "$GCC" = yes; then
8278    lt_prog_compiler_wl='-Wl,'
8279    lt_prog_compiler_static='-static'
8280
8281    case $host_os in
8282      aix*)
8283      # All AIX code is PIC.
8284      if test "$host_cpu" = ia64; then
8285        # AIX 5 now supports IA64 processor
8286        lt_prog_compiler_static='-Bstatic'
8287      fi
8288      ;;
8289
8290    amigaos*)
8291      # FIXME: we need at least 68020 code to build shared libraries, but
8292      # adding the `-m68020' flag to GCC prevents building anything better,
8293      # like `-m68040'.
8294      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8295      ;;
8296
8297    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8298      # PIC is the default for these OSes.
8299      ;;
8300
8301    mingw* | pw32* | os2*)
8302      # This hack is so that the source file can tell whether it is being
8303      # built for inclusion in a dll (and should export symbols for example).
8304      lt_prog_compiler_pic='-DDLL_EXPORT'
8305      ;;
8306
8307    darwin* | rhapsody*)
8308      # PIC is the default on this platform
8309      # Common symbols not allowed in MH_DYLIB files
8310      lt_prog_compiler_pic='-fno-common'
8311      ;;
8312
8313    interix3*)
8314      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8315      # Instead, we relocate shared libraries at runtime.
8316      ;;
8317
8318    msdosdjgpp*)
8319      # Just because we use GCC doesn't mean we suddenly get shared libraries
8320      # on systems that don't support them.
8321      lt_prog_compiler_can_build_shared=no
8322      enable_shared=no
8323      ;;
8324
8325    sysv4*MP*)
8326      if test -d /usr/nec; then
8327        lt_prog_compiler_pic=-Kconform_pic
8328      fi
8329      ;;
8330
8331    hpux*)
8332      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8333      # not for PA HP-UX.
8334      case $host_cpu in
8335      hppa*64*|ia64*)
8336        # +Z the default
8337        ;;
8338      *)
8339        lt_prog_compiler_pic='-fPIC'
8340        ;;
8341      esac
8342      ;;
8343
8344    *)
8345      lt_prog_compiler_pic='-fPIC'
8346      ;;
8347    esac
8348  else
8349    # PORTME Check for flag to pass linker flags through the system compiler.
8350    case $host_os in
8351    aix*)
8352      lt_prog_compiler_wl='-Wl,'
8353      if test "$host_cpu" = ia64; then
8354        # AIX 5 now supports IA64 processor
8355        lt_prog_compiler_static='-Bstatic'
8356      else
8357        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8358      fi
8359      ;;
8360      darwin*)
8361        # PIC is the default on this platform
8362        # Common symbols not allowed in MH_DYLIB files
8363       case $cc_basename in
8364         xlc*)
8365         lt_prog_compiler_pic='-qnocommon'
8366         lt_prog_compiler_wl='-Wl,'
8367         ;;
8368       esac
8369       ;;
8370
8371    mingw* | pw32* | os2*)
8372      # This hack is so that the source file can tell whether it is being
8373      # built for inclusion in a dll (and should export symbols for example).
8374      lt_prog_compiler_pic='-DDLL_EXPORT'
8375      ;;
8376
8377    hpux9* | hpux10* | hpux11*)
8378      lt_prog_compiler_wl='-Wl,'
8379      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8380      # not for PA HP-UX.
8381      case $host_cpu in
8382      hppa*64*|ia64*)
8383        # +Z the default
8384        ;;
8385      *)
8386        lt_prog_compiler_pic='+Z'
8387        ;;
8388      esac
8389      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8390      lt_prog_compiler_static='${wl}-a ${wl}archive'
8391      ;;
8392
8393    irix5* | irix6* | nonstopux*)
8394      lt_prog_compiler_wl='-Wl,'
8395      # PIC (with -KPIC) is the default.
8396      lt_prog_compiler_static='-non_shared'
8397      ;;
8398
8399    newsos6)
8400      lt_prog_compiler_pic='-KPIC'
8401      lt_prog_compiler_static='-Bstatic'
8402      ;;
8403
8404    linux*)
8405      case $cc_basename in
8406      icc* | ecc*)
8407        lt_prog_compiler_wl='-Wl,'
8408        lt_prog_compiler_pic='-KPIC'
8409        lt_prog_compiler_static='-static'
8410        ;;
8411      pgcc* | pgf77* | pgf90* | pgf95*)
8412        # Portland Group compilers (*not* the Pentium gcc compiler,
8413        # which looks to be a dead project)
8414        lt_prog_compiler_wl='-Wl,'
8415        lt_prog_compiler_pic='-fpic'
8416        lt_prog_compiler_static='-Bstatic'
8417        ;;
8418      ccc*)
8419        lt_prog_compiler_wl='-Wl,'
8420        # All Alpha code is PIC.
8421        lt_prog_compiler_static='-non_shared'
8422        ;;
8423      esac
8424      ;;
8425
8426    osf3* | osf4* | osf5*)
8427      lt_prog_compiler_wl='-Wl,'
8428      # All OSF/1 code is PIC.
8429      lt_prog_compiler_static='-non_shared'
8430      ;;
8431
8432    solaris*)
8433      lt_prog_compiler_pic='-KPIC'
8434      lt_prog_compiler_static='-Bstatic'
8435      case $cc_basename in
8436      f77* | f90* | f95*)
8437        lt_prog_compiler_wl='-Qoption ld ';;
8438      *)
8439        lt_prog_compiler_wl='-Wl,';;
8440      esac
8441      ;;
8442
8443    sunos4*)
8444      lt_prog_compiler_wl='-Qoption ld '
8445      lt_prog_compiler_pic='-PIC'
8446      lt_prog_compiler_static='-Bstatic'
8447      ;;
8448
8449    sysv4 | sysv4.2uw2* | sysv4.3*)
8450      lt_prog_compiler_wl='-Wl,'
8451      lt_prog_compiler_pic='-KPIC'
8452      lt_prog_compiler_static='-Bstatic'
8453      ;;
8454
8455    sysv4*MP*)
8456      if test -d /usr/nec ;then
8457        lt_prog_compiler_pic='-Kconform_pic'
8458        lt_prog_compiler_static='-Bstatic'
8459      fi
8460      ;;
8461
8462    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8463      lt_prog_compiler_wl='-Wl,'
8464      lt_prog_compiler_pic='-KPIC'
8465      lt_prog_compiler_static='-Bstatic'
8466      ;;
8467
8468    unicos*)
8469      lt_prog_compiler_wl='-Wl,'
8470      lt_prog_compiler_can_build_shared=no
8471      ;;
8472
8473    uts4*)
8474      lt_prog_compiler_pic='-pic'
8475      lt_prog_compiler_static='-Bstatic'
8476      ;;
8477
8478    *)
8479      lt_prog_compiler_can_build_shared=no
8480      ;;
8481    esac
8482  fi
8483
8484echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8485echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8486
8487#
8488# Check to make sure the PIC flag actually works.
8489#
8490if test -n "$lt_prog_compiler_pic"; then
8491
8492echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8493echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8494if test "${lt_prog_compiler_pic_works+set}" = set; then
8495  echo $ECHO_N "(cached) $ECHO_C" >&6
8496else
8497  lt_prog_compiler_pic_works=no
8498  ac_outfile=conftest.$ac_objext
8499   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8500   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8501   # Insert the option either (1) after the last *FLAGS variable, or
8502   # (2) before a word containing "conftest.", or (3) at the end.
8503   # Note that $ac_compile itself does not contain backslashes and begins
8504   # with a dollar sign (not a hyphen), so the echo should work correctly.
8505   # The option is referenced via a variable to avoid confusing sed.
8506   lt_compile=`echo "$ac_compile" | $SED \
8507   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8508   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8509   -e 's:$: $lt_compiler_flag:'`
8510   (eval echo "\"\$as_me:8510: $lt_compile\"" >&5)
8511   (eval "$lt_compile" 2>conftest.err)
8512   ac_status=$?
8513   cat conftest.err >&5
8514   echo "$as_me:8514: \$? = $ac_status" >&5
8515   if (exit $ac_status) && test -s "$ac_outfile"; then
8516     # The compiler can only warn and ignore the option if not recognized
8517     # So say no if there are warnings other than the usual output.
8518     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8519     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8520     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8521       lt_prog_compiler_pic_works=yes
8522     fi
8523   fi
8524   $rm conftest*
8525
8526fi
8527echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8528echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8529
8530if test x"$lt_prog_compiler_pic_works" = xyes; then
8531    case $lt_prog_compiler_pic in
8532     "" | " "*) ;;
8533     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8534     esac
8535else
8536    lt_prog_compiler_pic=
8537     lt_prog_compiler_can_build_shared=no
8538fi
8539
8540fi
8541case $host_os in
8542  # For platforms which do not support PIC, -DPIC is meaningless:
8543  *djgpp*)
8544    lt_prog_compiler_pic=
8545    ;;
8546  *)
8547    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8548    ;;
8549esac
8550
8551#
8552# Check to make sure the static flag actually works.
8553#
8554wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8555echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8556echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8557if test "${lt_prog_compiler_static_works+set}" = set; then
8558  echo $ECHO_N "(cached) $ECHO_C" >&6
8559else
8560  lt_prog_compiler_static_works=no
8561   save_LDFLAGS="$LDFLAGS"
8562   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8563   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8564   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8565     # The linker can only warn and ignore the option if not recognized
8566     # So say no if there are warnings
8567     if test -s conftest.err; then
8568       # Append any errors to the config.log.
8569       cat conftest.err 1>&5
8570       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8571       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8572       if diff conftest.exp conftest.er2 >/dev/null; then
8573         lt_prog_compiler_static_works=yes
8574       fi
8575     else
8576       lt_prog_compiler_static_works=yes
8577     fi
8578   fi
8579   $rm conftest*
8580   LDFLAGS="$save_LDFLAGS"
8581
8582fi
8583echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8584echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8585
8586if test x"$lt_prog_compiler_static_works" = xyes; then
8587    :
8588else
8589    lt_prog_compiler_static=
8590fi
8591
8592
8593echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8594echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8595if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8596  echo $ECHO_N "(cached) $ECHO_C" >&6
8597else
8598  lt_cv_prog_compiler_c_o=no
8599   $rm -r conftest 2>/dev/null
8600   mkdir conftest
8601   cd conftest
8602   mkdir out
8603   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8604
8605   lt_compiler_flag="-o out/conftest2.$ac_objext"
8606   # Insert the option either (1) after the last *FLAGS variable, or
8607   # (2) before a word containing "conftest.", or (3) at the end.
8608   # Note that $ac_compile itself does not contain backslashes and begins
8609   # with a dollar sign (not a hyphen), so the echo should work correctly.
8610   lt_compile=`echo "$ac_compile" | $SED \
8611   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8612   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8613   -e 's:$: $lt_compiler_flag:'`
8614   (eval echo "\"\$as_me:8614: $lt_compile\"" >&5)
8615   (eval "$lt_compile" 2>out/conftest.err)
8616   ac_status=$?
8617   cat out/conftest.err >&5
8618   echo "$as_me:8618: \$? = $ac_status" >&5
8619   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8620   then
8621     # The compiler can only warn and ignore the option if not recognized
8622     # So say no if there are warnings
8623     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8624     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8625     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8626       lt_cv_prog_compiler_c_o=yes
8627     fi
8628   fi
8629   chmod u+w . 2>&5
8630   $rm conftest*
8631   # SGI C++ compiler will create directory out/ii_files/ for
8632   # template instantiation
8633   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8634   $rm out/* && rmdir out
8635   cd ..
8636   rmdir conftest
8637   $rm conftest*
8638
8639fi
8640echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8641echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8642
8643
8644hard_links="nottested"
8645if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8646  # do not overwrite the value of need_locks provided by the user
8647  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8648echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8649  hard_links=yes
8650  $rm conftest*
8651  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8652  touch conftest.a
8653  ln conftest.a conftest.b 2>&5 || hard_links=no
8654  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8655  echo "$as_me:$LINENO: result: $hard_links" >&5
8656echo "${ECHO_T}$hard_links" >&6
8657  if test "$hard_links" = no; then
8658    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8659echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8660    need_locks=warn
8661  fi
8662else
8663  need_locks=no
8664fi
8665
8666echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8667echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8668
8669  runpath_var=
8670  allow_undefined_flag=
8671  enable_shared_with_static_runtimes=no
8672  archive_cmds=
8673  archive_expsym_cmds=
8674  old_archive_From_new_cmds=
8675  old_archive_from_expsyms_cmds=
8676  export_dynamic_flag_spec=
8677  whole_archive_flag_spec=
8678  thread_safe_flag_spec=
8679  hardcode_libdir_flag_spec=
8680  hardcode_libdir_flag_spec_ld=
8681  hardcode_libdir_separator=
8682  hardcode_direct=no
8683  hardcode_minus_L=no
8684  hardcode_shlibpath_var=unsupported
8685  link_all_deplibs=unknown
8686  hardcode_automatic=no
8687  module_cmds=
8688  module_expsym_cmds=
8689  always_export_symbols=no
8690  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8691  # include_expsyms should be a list of space-separated symbols to be *always*
8692  # included in the symbol list
8693  include_expsyms=
8694  # exclude_expsyms can be an extended regexp of symbols to exclude
8695  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8696  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8697  # as well as any symbol that contains `d'.
8698  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8699  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8700  # platforms (ab)use it in PIC code, but their linkers get confused if
8701  # the symbol is explicitly referenced.  Since portable code cannot
8702  # rely on this symbol name, it's probably fine to never include it in
8703  # preloaded symbol tables.
8704  extract_expsyms_cmds=
8705  # Just being paranoid about ensuring that cc_basename is set.
8706  for cc_temp in $compiler""; do
8707  case $cc_temp in
8708    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8709    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8710    \-*) ;;
8711    *) break;;
8712  esac
8713done
8714cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8715
8716  case $host_os in
8717  cygwin* | mingw* | pw32*)
8718    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8719    # When not using gcc, we currently assume that we are using
8720    # Microsoft Visual C++.
8721    if test "$GCC" != yes; then
8722      with_gnu_ld=no
8723    fi
8724    ;;
8725  interix*)
8726    # we just hope/assume this is gcc and not c89 (= MSVC++)
8727    with_gnu_ld=yes
8728    ;;
8729  openbsd*)
8730    with_gnu_ld=no
8731    ;;
8732  esac
8733
8734  ld_shlibs=yes
8735  if test "$with_gnu_ld" = yes; then
8736    # If archive_cmds runs LD, not CC, wlarc should be empty
8737    wlarc='${wl}'
8738
8739    # Set some defaults for GNU ld with shared library support. These
8740    # are reset later if shared libraries are not supported. Putting them
8741    # here allows them to be overridden if necessary.
8742    runpath_var=LD_RUN_PATH
8743    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8744    export_dynamic_flag_spec='${wl}--export-dynamic'
8745    # ancient GNU ld didn't support --whole-archive et. al.
8746    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8747        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8748      else
8749        whole_archive_flag_spec=
8750    fi
8751    supports_anon_versioning=no
8752    case `$LD -v 2>/dev/null` in
8753      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8754      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8755      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8756      *\ 2.11.*) ;; # other 2.11 versions
8757      *) supports_anon_versioning=yes ;;
8758    esac
8759
8760    # See if GNU ld supports shared libraries.
8761    case $host_os in
8762    aix3* | aix4* | aix5*)
8763      # On AIX/PPC, the GNU linker is very broken
8764      if test "$host_cpu" != ia64; then
8765        ld_shlibs=no
8766        cat <<EOF 1>&2
8767
8768*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8769*** to be unable to reliably create shared libraries on AIX.
8770*** Therefore, libtool is disabling shared libraries support.  If you
8771*** really care for shared libraries, you may want to modify your PATH
8772*** so that a non-GNU linker is found, and then restart.
8773
8774EOF
8775      fi
8776      ;;
8777
8778    amigaos*)
8779      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)'
8780      hardcode_libdir_flag_spec='-L$libdir'
8781      hardcode_minus_L=yes
8782
8783      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8784      # that the semantics of dynamic libraries on AmigaOS, at least up
8785      # to version 4, is to share data among multiple programs linked
8786      # with the same dynamic library.  Since this doesn't match the
8787      # behavior of shared libraries on other platforms, we can't use
8788      # them.
8789      ld_shlibs=no
8790      ;;
8791
8792    beos*)
8793      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8794        allow_undefined_flag=unsupported
8795        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8796        # support --undefined.  This deserves some investigation.  FIXME
8797        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8798      else
8799        ld_shlibs=no
8800      fi
8801      ;;
8802
8803    cygwin* | mingw* | pw32*)
8804      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8805      # as there is no search path for DLLs.
8806      hardcode_libdir_flag_spec='-L$libdir'
8807      allow_undefined_flag=unsupported
8808      always_export_symbols=no
8809      enable_shared_with_static_runtimes=yes
8810      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8811
8812      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8813        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8814        # If the export-symbols file already is a .def file (1st line
8815        # is EXPORTS), use it as is; otherwise, prepend...
8816        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8817          cp $export_symbols $output_objdir/$soname.def;
8818        else
8819          echo EXPORTS > $output_objdir/$soname.def;
8820          cat $export_symbols >> $output_objdir/$soname.def;
8821        fi~
8822        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8823      else
8824        ld_shlibs=no
8825      fi
8826      ;;
8827
8828    interix3*)
8829      hardcode_direct=no
8830      hardcode_shlibpath_var=no
8831      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8832      export_dynamic_flag_spec='${wl}-E'
8833      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8834      # Instead, shared libraries are loaded at an image base (0x10000000 by
8835      # default) and relocated if they conflict, which is a slow very memory
8836      # consuming and fragmenting process.  To avoid this, we pick a random,
8837      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8838      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8839      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8840      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'
8841      ;;
8842
8843    linux*)
8844      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8845        tmp_addflag=
8846        case $cc_basename,$host_cpu in
8847        pgcc*)                          # Portland Group C compiler
8848          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'
8849          tmp_addflag=' $pic_flag'
8850          ;;
8851        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8852          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'
8853          tmp_addflag=' $pic_flag -Mnomain' ;;
8854        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8855          tmp_addflag=' -i_dynamic' ;;
8856        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8857          tmp_addflag=' -i_dynamic -nofor_main' ;;
8858        ifc* | ifort*)                  # Intel Fortran compiler
8859          tmp_addflag=' -nofor_main' ;;
8860        esac
8861        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8862
8863        if test $supports_anon_versioning = yes; then
8864          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8865  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8866  $echo "local: *; };" >> $output_objdir/$libname.ver~
8867          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8868        fi
8869      else
8870        ld_shlibs=no
8871      fi
8872      ;;
8873
8874    netbsd*)
8875      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8876        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8877        wlarc=
8878      else
8879        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8880        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8881      fi
8882      ;;
8883
8884    solaris*)
8885      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8886        ld_shlibs=no
8887        cat <<EOF 1>&2
8888
8889*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8890*** create shared libraries on Solaris systems.  Therefore, libtool
8891*** is disabling shared libraries support.  We urge you to upgrade GNU
8892*** binutils to release 2.9.1 or newer.  Another option is to modify
8893*** your PATH or compiler configuration so that the native linker is
8894*** used, and then restart.
8895
8896EOF
8897      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8898        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8899        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8900      else
8901        ld_shlibs=no
8902      fi
8903      ;;
8904
8905    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8906      case `$LD -v 2>&1` in
8907        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8908        ld_shlibs=no
8909        cat <<_LT_EOF 1>&2
8910
8911*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8912*** reliably create shared libraries on SCO systems.  Therefore, libtool
8913*** is disabling shared libraries support.  We urge you to upgrade GNU
8914*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8915*** your PATH or compiler configuration so that the native linker is
8916*** used, and then restart.
8917
8918_LT_EOF
8919        ;;
8920        *)
8921          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8922            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8923            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8924            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8925          else
8926            ld_shlibs=no
8927          fi
8928        ;;
8929      esac
8930      ;;
8931
8932    sunos4*)
8933      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8934      wlarc=
8935      hardcode_direct=yes
8936      hardcode_shlibpath_var=no
8937      ;;
8938
8939    *)
8940      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8941        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8942        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8943      else
8944        ld_shlibs=no
8945      fi
8946      ;;
8947    esac
8948
8949    if test "$ld_shlibs" = no; then
8950      runpath_var=
8951      hardcode_libdir_flag_spec=
8952      export_dynamic_flag_spec=
8953      whole_archive_flag_spec=
8954    fi
8955  else
8956    # PORTME fill in a description of your system's linker (not GNU ld)
8957    case $host_os in
8958    aix3*)
8959      allow_undefined_flag=unsupported
8960      always_export_symbols=yes
8961      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'
8962      # Note: this linker hardcodes the directories in LIBPATH if there
8963      # are no directories specified by -L.
8964      hardcode_minus_L=yes
8965      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8966        # Neither direct hardcoding nor static linking is supported with a
8967        # broken collect2.
8968        hardcode_direct=unsupported
8969      fi
8970      ;;
8971
8972    aix4* | aix5*)
8973      if test "$host_cpu" = ia64; then
8974        # On IA64, the linker does run time linking by default, so we don't
8975        # have to do anything special.
8976        aix_use_runtimelinking=no
8977        exp_sym_flag='-Bexport'
8978        no_entry_flag=""
8979      else
8980        # If we're using GNU nm, then we don't want the "-C" option.
8981        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8982        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8983          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'
8984        else
8985          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'
8986        fi
8987        aix_use_runtimelinking=no
8988
8989        # Test if we are trying to use run time linking or normal
8990        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8991        # need to do runtime linking.
8992        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8993          for ld_flag in $LDFLAGS; do
8994          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8995            aix_use_runtimelinking=yes
8996            break
8997          fi
8998          done
8999          ;;
9000        esac
9001
9002        exp_sym_flag='-bexport'
9003        no_entry_flag='-bnoentry'
9004      fi
9005
9006      # When large executables or shared objects are built, AIX ld can
9007      # have problems creating the table of contents.  If linking a library
9008      # or program results in "error TOC overflow" add -mminimal-toc to
9009      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9010      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9011
9012      archive_cmds=''
9013      hardcode_direct=yes
9014      hardcode_libdir_separator=':'
9015      link_all_deplibs=yes
9016
9017      if test "$GCC" = yes; then
9018        case $host_os in aix4.[012]|aix4.[012].*)
9019        # We only want to do this on AIX 4.2 and lower, the check
9020        # below for broken collect2 doesn't work under 4.3+
9021          collect2name=`${CC} -print-prog-name=collect2`
9022          if test -f "$collect2name" && \
9023           strings "$collect2name" | grep resolve_lib_name >/dev/null
9024          then
9025          # We have reworked collect2
9026          hardcode_direct=yes
9027          else
9028          # We have old collect2
9029          hardcode_direct=unsupported
9030          # It fails to find uninstalled libraries when the uninstalled
9031          # path is not listed in the libpath.  Setting hardcode_minus_L
9032          # to unsupported forces relinking
9033          hardcode_minus_L=yes
9034          hardcode_libdir_flag_spec='-L$libdir'
9035          hardcode_libdir_separator=
9036          fi
9037          ;;
9038        esac
9039        shared_flag='-shared'
9040        if test "$aix_use_runtimelinking" = yes; then
9041          shared_flag="$shared_flag "'${wl}-G'
9042        fi
9043      else
9044        # not using gcc
9045        if test "$host_cpu" = ia64; then
9046        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9047        # chokes on -Wl,-G. The following line is correct:
9048          shared_flag='-G'
9049        else
9050          if test "$aix_use_runtimelinking" = yes; then
9051            shared_flag='${wl}-G'
9052          else
9053            shared_flag='${wl}-bM:SRE'
9054          fi
9055        fi
9056      fi
9057
9058      # It seems that -bexpall does not export symbols beginning with
9059      # underscore (_), so it is better to generate a list of symbols to export.
9060      always_export_symbols=yes
9061      if test "$aix_use_runtimelinking" = yes; then
9062        # Warning - without using the other runtime loading flags (-brtl),
9063        # -berok will link without error, but may produce a broken library.
9064        allow_undefined_flag='-berok'
9065       # Determine the default libpath from the value encoded in an empty executable.
9066       cat >conftest.$ac_ext <<_ACEOF
9067/* confdefs.h.  */
9068_ACEOF
9069cat confdefs.h >>conftest.$ac_ext
9070cat >>conftest.$ac_ext <<_ACEOF
9071/* end confdefs.h.  */
9072
9073int
9074main ()
9075{
9076
9077  ;
9078  return 0;
9079}
9080_ACEOF
9081rm -f conftest.$ac_objext conftest$ac_exeext
9082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9083  (eval $ac_link) 2>conftest.er1
9084  ac_status=$?
9085  grep -v '^ *+' conftest.er1 >conftest.err
9086  rm -f conftest.er1
9087  cat conftest.err >&5
9088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089  (exit $ac_status); } &&
9090         { ac_try='test -z "$ac_c_werror_flag"
9091                         || test ! -s conftest.err'
9092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9093  (eval $ac_try) 2>&5
9094  ac_status=$?
9095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096  (exit $ac_status); }; } &&
9097         { ac_try='test -s conftest$ac_exeext'
9098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099  (eval $ac_try) 2>&5
9100  ac_status=$?
9101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102  (exit $ac_status); }; }; then
9103
9104aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9105}'`
9106# Check for a 64-bit object if we didn't find anything.
9107if 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; }
9108}'`; fi
9109else
9110  echo "$as_me: failed program was:" >&5
9111sed 's/^/| /' conftest.$ac_ext >&5
9112
9113fi
9114rm -f conftest.err conftest.$ac_objext \
9115      conftest$ac_exeext conftest.$ac_ext
9116if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9117
9118       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9119        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"
9120       else
9121        if test "$host_cpu" = ia64; then
9122          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9123          allow_undefined_flag="-z nodefs"
9124          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"
9125        else
9126         # Determine the default libpath from the value encoded in an empty executable.
9127         cat >conftest.$ac_ext <<_ACEOF
9128/* confdefs.h.  */
9129_ACEOF
9130cat confdefs.h >>conftest.$ac_ext
9131cat >>conftest.$ac_ext <<_ACEOF
9132/* end confdefs.h.  */
9133
9134int
9135main ()
9136{
9137
9138  ;
9139  return 0;
9140}
9141_ACEOF
9142rm -f conftest.$ac_objext conftest$ac_exeext
9143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144  (eval $ac_link) 2>conftest.er1
9145  ac_status=$?
9146  grep -v '^ *+' conftest.er1 >conftest.err
9147  rm -f conftest.er1
9148  cat conftest.err >&5
9149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150  (exit $ac_status); } &&
9151         { ac_try='test -z "$ac_c_werror_flag"
9152                         || test ! -s conftest.err'
9153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154  (eval $ac_try) 2>&5
9155  ac_status=$?
9156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157  (exit $ac_status); }; } &&
9158         { ac_try='test -s conftest$ac_exeext'
9159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9160  (eval $ac_try) 2>&5
9161  ac_status=$?
9162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163  (exit $ac_status); }; }; then
9164
9165aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9166}'`
9167# Check for a 64-bit object if we didn't find anything.
9168if 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; }
9169}'`; fi
9170else
9171  echo "$as_me: failed program was:" >&5
9172sed 's/^/| /' conftest.$ac_ext >&5
9173
9174fi
9175rm -f conftest.err conftest.$ac_objext \
9176      conftest$ac_exeext conftest.$ac_ext
9177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9178
9179         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9180          # Warning - without using the other run time loading flags,
9181          # -berok will link without error, but may produce a broken library.
9182          no_undefined_flag=' ${wl}-bernotok'
9183          allow_undefined_flag=' ${wl}-berok'
9184          # Exported symbols can be pulled into shared objects from archives
9185          whole_archive_flag_spec='$convenience'
9186          archive_cmds_need_lc=yes
9187          # This is similar to how AIX traditionally builds its shared libraries.
9188          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'
9189        fi
9190      fi
9191      ;;
9192
9193    amigaos*)
9194      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)'
9195      hardcode_libdir_flag_spec='-L$libdir'
9196      hardcode_minus_L=yes
9197      # see comment about different semantics on the GNU ld section
9198      ld_shlibs=no
9199      ;;
9200
9201    bsdi[45]*)
9202      export_dynamic_flag_spec=-rdynamic
9203      ;;
9204
9205    cygwin* | mingw* | pw32*)
9206      # When not using gcc, we currently assume that we are using
9207      # Microsoft Visual C++.
9208      # hardcode_libdir_flag_spec is actually meaningless, as there is
9209      # no search path for DLLs.
9210      hardcode_libdir_flag_spec=' '
9211      allow_undefined_flag=unsupported
9212      # Tell ltmain to make .lib files, not .a files.
9213      libext=lib
9214      # Tell ltmain to make .dll files, not .so files.
9215      shrext_cmds=".dll"
9216      # FIXME: Setting linknames here is a bad hack.
9217      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9218      # The linker will automatically build a .lib file if we build a DLL.
9219      old_archive_From_new_cmds='true'
9220      # FIXME: Should let the user specify the lib program.
9221      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9222      fix_srcfile_path='`cygpath -w "$srcfile"`'
9223      enable_shared_with_static_runtimes=yes
9224      ;;
9225
9226    darwin* | rhapsody*)
9227      case $host_os in
9228        rhapsody* | darwin1.[012])
9229         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9230         ;;
9231       *) # Darwin 1.3 on
9232         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9233           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9234         else
9235           case ${MACOSX_DEPLOYMENT_TARGET} in
9236             10.[012])
9237               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9238               ;;
9239             10.*)
9240               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9241               ;;
9242           esac
9243         fi
9244         ;;
9245      esac
9246      archive_cmds_need_lc=no
9247      hardcode_direct=no
9248      hardcode_automatic=yes
9249      hardcode_shlibpath_var=unsupported
9250      whole_archive_flag_spec=''
9251      link_all_deplibs=yes
9252    if test "$GCC" = yes ; then
9253        output_verbose_link_cmd='echo'
9254        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9255      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9256      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9257      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}'
9258      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}'
9259    else
9260      case $cc_basename in
9261        xlc*)
9262         output_verbose_link_cmd='echo'
9263         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9264         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9265          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9266         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}'
9267          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}'
9268          ;;
9269       *)
9270         ld_shlibs=no
9271          ;;
9272      esac
9273    fi
9274      ;;
9275
9276    dgux*)
9277      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9278      hardcode_libdir_flag_spec='-L$libdir'
9279      hardcode_shlibpath_var=no
9280      ;;
9281
9282    freebsd1*)
9283      ld_shlibs=no
9284      ;;
9285
9286    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9287    # support.  Future versions do this automatically, but an explicit c++rt0.o
9288    # does not break anything, and helps significantly (at the cost of a little
9289    # extra space).
9290    freebsd2.2*)
9291      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9292      hardcode_libdir_flag_spec='-R$libdir'
9293      hardcode_direct=yes
9294      hardcode_shlibpath_var=no
9295      ;;
9296
9297    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9298    freebsd2*)
9299      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9300      hardcode_direct=yes
9301      hardcode_minus_L=yes
9302      hardcode_shlibpath_var=no
9303      ;;
9304
9305    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9306    freebsd* | kfreebsd*-gnu | dragonfly*)
9307      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9308      hardcode_libdir_flag_spec='-R$libdir'
9309      hardcode_direct=yes
9310      hardcode_shlibpath_var=no
9311      ;;
9312
9313    hpux9*)
9314      if test "$GCC" = yes; then
9315        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'
9316      else
9317        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'
9318      fi
9319      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9320      hardcode_libdir_separator=:
9321      hardcode_direct=yes
9322
9323      # hardcode_minus_L: Not really in the search PATH,
9324      # but as the default location of the library.
9325      hardcode_minus_L=yes
9326      export_dynamic_flag_spec='${wl}-E'
9327      ;;
9328
9329    hpux10*)
9330      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9331        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9332      else
9333        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9334      fi
9335      if test "$with_gnu_ld" = no; then
9336        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9337        hardcode_libdir_separator=:
9338
9339        hardcode_direct=yes
9340        export_dynamic_flag_spec='${wl}-E'
9341
9342        # hardcode_minus_L: Not really in the search PATH,
9343        # but as the default location of the library.
9344        hardcode_minus_L=yes
9345      fi
9346      ;;
9347
9348    hpux11*)
9349      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9350        case $host_cpu in
9351        hppa*64*)
9352          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9353          ;;
9354        ia64*)
9355          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9356          ;;
9357        *)
9358          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9359          ;;
9360        esac
9361      else
9362        case $host_cpu in
9363        hppa*64*)
9364          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9365          ;;
9366        ia64*)
9367          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9368          ;;
9369        *)
9370          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9371          ;;
9372        esac
9373      fi
9374      if test "$with_gnu_ld" = no; then
9375        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9376        hardcode_libdir_separator=:
9377
9378        case $host_cpu in
9379        hppa*64*|ia64*)
9380          hardcode_libdir_flag_spec_ld='+b $libdir'
9381          hardcode_direct=no
9382          hardcode_shlibpath_var=no
9383          ;;
9384        *)
9385          hardcode_direct=yes
9386          export_dynamic_flag_spec='${wl}-E'
9387
9388          # hardcode_minus_L: Not really in the search PATH,
9389          # but as the default location of the library.
9390          hardcode_minus_L=yes
9391          ;;
9392        esac
9393      fi
9394      ;;
9395
9396    irix5* | irix6* | nonstopux*)
9397      if test "$GCC" = yes; then
9398        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'
9399      else
9400        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'
9401        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9402      fi
9403      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9404      hardcode_libdir_separator=:
9405      link_all_deplibs=yes
9406      ;;
9407
9408    netbsd*)
9409      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9410        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9411      else
9412        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9413      fi
9414      hardcode_libdir_flag_spec='-R$libdir'
9415      hardcode_direct=yes
9416      hardcode_shlibpath_var=no
9417      ;;
9418
9419    newsos6)
9420      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421      hardcode_direct=yes
9422      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9423      hardcode_libdir_separator=:
9424      hardcode_shlibpath_var=no
9425      ;;
9426
9427    openbsd*)
9428      hardcode_direct=yes
9429      hardcode_shlibpath_var=no
9430      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9431        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9432        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9433        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9434        export_dynamic_flag_spec='${wl}-E'
9435      else
9436       case $host_os in
9437         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9438           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9439           hardcode_libdir_flag_spec='-R$libdir'
9440           ;;
9441         *)
9442           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9443           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9444           ;;
9445       esac
9446      fi
9447      ;;
9448
9449    os2*)
9450      hardcode_libdir_flag_spec='-L$libdir'
9451      hardcode_minus_L=yes
9452      allow_undefined_flag=unsupported
9453      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'
9454      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9455      ;;
9456
9457    osf3*)
9458      if test "$GCC" = yes; then
9459        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9460        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'
9461      else
9462        allow_undefined_flag=' -expect_unresolved \*'
9463        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'
9464      fi
9465      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9466      hardcode_libdir_separator=:
9467      ;;
9468
9469    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9470      if test "$GCC" = yes; then
9471        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9472        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'
9473        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9474      else
9475        allow_undefined_flag=' -expect_unresolved \*'
9476        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'
9477        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9478        $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'
9479
9480        # Both c and cxx compiler support -rpath directly
9481        hardcode_libdir_flag_spec='-rpath $libdir'
9482      fi
9483      hardcode_libdir_separator=:
9484      ;;
9485
9486    solaris*)
9487      no_undefined_flag=' -z text'
9488      if test "$GCC" = yes; then
9489        wlarc='${wl}'
9490        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9491        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9492          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9493      else
9494        wlarc=''
9495        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9496        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9497        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9498      fi
9499      hardcode_libdir_flag_spec='-R$libdir'
9500      hardcode_shlibpath_var=no
9501      case $host_os in
9502      solaris2.[0-5] | solaris2.[0-5].*) ;;
9503      *)
9504        # The compiler driver will combine linker options so we
9505        # cannot just pass the convience library names through
9506        # without $wl, iff we do not link with $LD.
9507        # Luckily, gcc supports the same syntax we need for Sun Studio.
9508        # Supported since Solaris 2.6 (maybe 2.5.1?)
9509        case $wlarc in
9510        '')
9511          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9512        *)
9513          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' ;;
9514        esac ;;
9515      esac
9516      link_all_deplibs=yes
9517      ;;
9518
9519    sunos4*)
9520      if test "x$host_vendor" = xsequent; then
9521        # Use $CC to link under sequent, because it throws in some extra .o
9522        # files that make .init and .fini sections work.
9523        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9524      else
9525        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9526      fi
9527      hardcode_libdir_flag_spec='-L$libdir'
9528      hardcode_direct=yes
9529      hardcode_minus_L=yes
9530      hardcode_shlibpath_var=no
9531      ;;
9532
9533    sysv4)
9534      case $host_vendor in
9535        sni)
9536          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9537          hardcode_direct=yes # is this really true???
9538        ;;
9539        siemens)
9540          ## LD is ld it makes a PLAMLIB
9541          ## CC just makes a GrossModule.
9542          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9543          reload_cmds='$CC -r -o $output$reload_objs'
9544          hardcode_direct=no
9545        ;;
9546        motorola)
9547          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9548          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9549        ;;
9550      esac
9551      runpath_var='LD_RUN_PATH'
9552      hardcode_shlibpath_var=no
9553      ;;
9554
9555    sysv4.3*)
9556      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9557      hardcode_shlibpath_var=no
9558      export_dynamic_flag_spec='-Bexport'
9559      ;;
9560
9561    sysv4*MP*)
9562      if test -d /usr/nec; then
9563        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9564        hardcode_shlibpath_var=no
9565        runpath_var=LD_RUN_PATH
9566        hardcode_runpath_var=yes
9567        ld_shlibs=yes
9568      fi
9569      ;;
9570
9571    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9572      no_undefined_flag='${wl}-z,text'
9573      archive_cmds_need_lc=no
9574      hardcode_shlibpath_var=no
9575      runpath_var='LD_RUN_PATH'
9576
9577      if test "$GCC" = yes; then
9578        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9579        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580      else
9581        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9582        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9583      fi
9584      ;;
9585
9586    sysv5* | sco3.2v5* | sco5v6*)
9587      # Note: We can NOT use -z defs as we might desire, because we do not
9588      # link with -lc, and that would cause any symbols used from libc to
9589      # always be unresolved, which means just about no library would
9590      # ever link correctly.  If we're not using GNU ld we use -z text
9591      # though, which does catch some bad symbols but isn't as heavy-handed
9592      # as -z defs.
9593      no_undefined_flag='${wl}-z,text'
9594      allow_undefined_flag='${wl}-z,nodefs'
9595      archive_cmds_need_lc=no
9596      hardcode_shlibpath_var=no
9597      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9598      hardcode_libdir_separator=':'
9599      link_all_deplibs=yes
9600      export_dynamic_flag_spec='${wl}-Bexport'
9601      runpath_var='LD_RUN_PATH'
9602
9603      if test "$GCC" = yes; then
9604        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9605        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9606      else
9607        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9608        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9609      fi
9610      ;;
9611
9612    uts4*)
9613      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614      hardcode_libdir_flag_spec='-L$libdir'
9615      hardcode_shlibpath_var=no
9616      ;;
9617
9618    *)
9619      ld_shlibs=no
9620      ;;
9621    esac
9622  fi
9623
9624echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9625echo "${ECHO_T}$ld_shlibs" >&6
9626test "$ld_shlibs" = no && can_build_shared=no
9627
9628#
9629# Do we need to explicitly link libc?
9630#
9631case "x$archive_cmds_need_lc" in
9632x|xyes)
9633  # Assume -lc should be added
9634  archive_cmds_need_lc=yes
9635
9636  if test "$enable_shared" = yes && test "$GCC" = yes; then
9637    case $archive_cmds in
9638    *'~'*)
9639      # FIXME: we may have to deal with multi-command sequences.
9640      ;;
9641    '$CC '*)
9642      # Test whether the compiler implicitly links with -lc since on some
9643      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9644      # to ld, don't add -lc before -lgcc.
9645      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9646echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9647      $rm conftest*
9648      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9649
9650      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9651  (eval $ac_compile) 2>&5
9652  ac_status=$?
9653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654  (exit $ac_status); } 2>conftest.err; then
9655        soname=conftest
9656        lib=conftest
9657        libobjs=conftest.$ac_objext
9658        deplibs=
9659        wl=$lt_prog_compiler_wl
9660        pic_flag=$lt_prog_compiler_pic
9661        compiler_flags=-v
9662        linker_flags=-v
9663        verstring=
9664        output_objdir=.
9665        libname=conftest
9666        lt_save_allow_undefined_flag=$allow_undefined_flag
9667        allow_undefined_flag=
9668        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9669  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9670  ac_status=$?
9671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672  (exit $ac_status); }
9673        then
9674          archive_cmds_need_lc=no
9675        else
9676          archive_cmds_need_lc=yes
9677        fi
9678        allow_undefined_flag=$lt_save_allow_undefined_flag
9679      else
9680        cat conftest.err 1>&5
9681      fi
9682      $rm conftest*
9683      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9684echo "${ECHO_T}$archive_cmds_need_lc" >&6
9685      ;;
9686    esac
9687  fi
9688  ;;
9689esac
9690
9691echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9692echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9693library_names_spec=
9694libname_spec='lib$name'
9695soname_spec=
9696shrext_cmds=".so"
9697postinstall_cmds=
9698postuninstall_cmds=
9699finish_cmds=
9700finish_eval=
9701shlibpath_var=
9702shlibpath_overrides_runpath=unknown
9703version_type=none
9704dynamic_linker="$host_os ld.so"
9705sys_lib_dlsearch_path_spec="/lib /usr/lib"
9706if test "$GCC" = yes; then
9707  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9708  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9709    # if the path contains ";" then we assume it to be the separator
9710    # otherwise default to the standard path separator (i.e. ":") - it is
9711    # assumed that no part of a normal pathname contains ";" but that should
9712    # okay in the real world where ";" in dirpaths is itself problematic.
9713    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9714  else
9715    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9716  fi
9717else
9718  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9719fi
9720need_lib_prefix=unknown
9721hardcode_into_libs=no
9722
9723# when you set need_version to no, make sure it does not cause -set_version
9724# flags to be left without arguments
9725need_version=unknown
9726
9727case $host_os in
9728aix3*)
9729  version_type=linux
9730  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9731  shlibpath_var=LIBPATH
9732
9733  # AIX 3 has no versioning support, so we append a major version to the name.
9734  soname_spec='${libname}${release}${shared_ext}$major'
9735  ;;
9736
9737aix4* | aix5*)
9738  version_type=linux
9739  need_lib_prefix=no
9740  need_version=no
9741  hardcode_into_libs=yes
9742  if test "$host_cpu" = ia64; then
9743    # AIX 5 supports IA64
9744    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9745    shlibpath_var=LD_LIBRARY_PATH
9746  else
9747    # With GCC up to 2.95.x, collect2 would create an import file
9748    # for dependence libraries.  The import file would start with
9749    # the line `#! .'.  This would cause the generated library to
9750    # depend on `.', always an invalid library.  This was fixed in
9751    # development snapshots of GCC prior to 3.0.
9752    case $host_os in
9753      aix4 | aix4.[01] | aix4.[01].*)
9754      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9755           echo ' yes '
9756           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9757        :
9758      else
9759        can_build_shared=no
9760      fi
9761      ;;
9762    esac
9763    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9764    # soname into executable. Probably we can add versioning support to
9765    # collect2, so additional links can be useful in future.
9766    if test "$aix_use_runtimelinking" = yes; then
9767      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9768      # instead of lib<name>.a to let people know that these are not
9769      # typical AIX shared libraries.
9770      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9771    else
9772      # We preserve .a as extension for shared libraries through AIX4.2
9773      # and later when we are not doing run time linking.
9774      library_names_spec='${libname}${release}.a $libname.a'
9775      soname_spec='${libname}${release}${shared_ext}$major'
9776    fi
9777    shlibpath_var=LIBPATH
9778  fi
9779  ;;
9780
9781amigaos*)
9782  library_names_spec='$libname.ixlibrary $libname.a'
9783  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9784  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'
9785  ;;
9786
9787beos*)
9788  library_names_spec='${libname}${shared_ext}'
9789  dynamic_linker="$host_os ld.so"
9790  shlibpath_var=LIBRARY_PATH
9791  ;;
9792
9793bsdi[45]*)
9794  version_type=linux
9795  need_version=no
9796  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9797  soname_spec='${libname}${release}${shared_ext}$major'
9798  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9799  shlibpath_var=LD_LIBRARY_PATH
9800  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9801  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9802  # the default ld.so.conf also contains /usr/contrib/lib and
9803  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9804  # libtool to hard-code these into programs
9805  ;;
9806
9807cygwin* | mingw* | pw32*)
9808  version_type=windows
9809  shrext_cmds=".dll"
9810  need_version=no
9811  need_lib_prefix=no
9812
9813  case $GCC,$host_os in
9814  yes,cygwin* | yes,mingw* | yes,pw32*)
9815    library_names_spec='$libname.dll.a'
9816    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9817    postinstall_cmds='base_file=`basename \${file}`~
9818      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9819      dldir=$destdir/`dirname \$dlpath`~
9820      test -d \$dldir || mkdir -p \$dldir~
9821      $install_prog $dir/$dlname \$dldir/$dlname~
9822      chmod a+x \$dldir/$dlname'
9823    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9824      dlpath=$dir/\$dldll~
9825       $rm \$dlpath'
9826    shlibpath_overrides_runpath=yes
9827
9828    case $host_os in
9829    cygwin*)
9830      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9831      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9832      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9833      ;;
9834    mingw*)
9835      # MinGW DLLs use traditional 'lib' prefix
9836      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9837      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9838      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9839        # It is most probably a Windows format PATH printed by
9840        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9841        # path with ; separators, and with drive letters. We can handle the
9842        # drive letters (cygwin fileutils understands them), so leave them,
9843        # especially as we might pass files found there to a mingw objdump,
9844        # which wouldn't understand a cygwinified path. Ahh.
9845        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9846      else
9847        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9848      fi
9849      ;;
9850    pw32*)
9851      # pw32 DLLs use 'pw' prefix rather than 'lib'
9852      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9853      ;;
9854    esac
9855    ;;
9856
9857  *)
9858    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9859    ;;
9860  esac
9861  dynamic_linker='Win32 ld.exe'
9862  # FIXME: first we should search . and the directory the executable is in
9863  shlibpath_var=PATH
9864  ;;
9865
9866darwin* | rhapsody*)
9867  dynamic_linker="$host_os dyld"
9868  version_type=darwin
9869  need_lib_prefix=no
9870  need_version=no
9871  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9872  soname_spec='${libname}${release}${major}$shared_ext'
9873  shlibpath_overrides_runpath=yes
9874  shlibpath_var=DYLD_LIBRARY_PATH
9875  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9876  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9877  if test "$GCC" = yes; then
9878    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"`
9879  else
9880    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9881  fi
9882  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9883  ;;
9884
9885dgux*)
9886  version_type=linux
9887  need_lib_prefix=no
9888  need_version=no
9889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9890  soname_spec='${libname}${release}${shared_ext}$major'
9891  shlibpath_var=LD_LIBRARY_PATH
9892  ;;
9893
9894freebsd1*)
9895  dynamic_linker=no
9896  ;;
9897
9898kfreebsd*-gnu)
9899  version_type=linux
9900  need_lib_prefix=no
9901  need_version=no
9902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9903  soname_spec='${libname}${release}${shared_ext}$major'
9904  shlibpath_var=LD_LIBRARY_PATH
9905  shlibpath_overrides_runpath=no
9906  hardcode_into_libs=yes
9907  dynamic_linker='GNU ld.so'
9908  ;;
9909
9910freebsd* | dragonfly*)
9911  # DragonFly does not have aout.  When/if they implement a new
9912  # versioning mechanism, adjust this.
9913  if test -x /usr/bin/objformat; then
9914    objformat=`/usr/bin/objformat`
9915  else
9916    case $host_os in
9917    freebsd[123]*) objformat=aout ;;
9918    *) objformat=elf ;;
9919    esac
9920  fi
9921  version_type=freebsd-$objformat
9922  case $version_type in
9923    freebsd-elf*)
9924      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9925      need_version=no
9926      need_lib_prefix=no
9927      ;;
9928    freebsd-*)
9929      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9930      need_version=yes
9931      ;;
9932  esac
9933  shlibpath_var=LD_LIBRARY_PATH
9934  case $host_os in
9935  freebsd2*)
9936    shlibpath_overrides_runpath=yes
9937    ;;
9938  freebsd3.[01]* | freebsdelf3.[01]*)
9939    shlibpath_overrides_runpath=yes
9940    hardcode_into_libs=yes
9941    ;;
9942  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9943  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9944    shlibpath_overrides_runpath=no
9945    hardcode_into_libs=yes
9946    ;;
9947  freebsd*) # from 4.6 on
9948    shlibpath_overrides_runpath=yes
9949    hardcode_into_libs=yes
9950    ;;
9951  esac
9952  ;;
9953
9954gnu*)
9955  version_type=linux
9956  need_lib_prefix=no
9957  need_version=no
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9959  soname_spec='${libname}${release}${shared_ext}$major'
9960  shlibpath_var=LD_LIBRARY_PATH
9961  hardcode_into_libs=yes
9962  ;;
9963
9964hpux9* | hpux10* | hpux11*)
9965  # Give a soname corresponding to the major version so that dld.sl refuses to
9966  # link against other versions.
9967  version_type=sunos
9968  need_lib_prefix=no
9969  need_version=no
9970  case $host_cpu in
9971  ia64*)
9972    shrext_cmds='.so'
9973    hardcode_into_libs=yes
9974    dynamic_linker="$host_os dld.so"
9975    shlibpath_var=LD_LIBRARY_PATH
9976    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9977    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9978    soname_spec='${libname}${release}${shared_ext}$major'
9979    if test "X$HPUX_IA64_MODE" = X32; then
9980      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9981    else
9982      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9983    fi
9984    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9985    ;;
9986   hppa*64*)
9987     shrext_cmds='.sl'
9988     hardcode_into_libs=yes
9989     dynamic_linker="$host_os dld.sl"
9990     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9991     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9992     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993     soname_spec='${libname}${release}${shared_ext}$major'
9994     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9995     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9996     ;;
9997   *)
9998    shrext_cmds='.sl'
9999    dynamic_linker="$host_os dld.sl"
10000    shlibpath_var=SHLIB_PATH
10001    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10002    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003    soname_spec='${libname}${release}${shared_ext}$major'
10004    ;;
10005  esac
10006  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10007  postinstall_cmds='chmod 555 $lib'
10008  ;;
10009
10010interix3*)
10011  version_type=linux
10012  need_lib_prefix=no
10013  need_version=no
10014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10015  soname_spec='${libname}${release}${shared_ext}$major'
10016  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10017  shlibpath_var=LD_LIBRARY_PATH
10018  shlibpath_overrides_runpath=no
10019  hardcode_into_libs=yes
10020  ;;
10021
10022irix5* | irix6* | nonstopux*)
10023  case $host_os in
10024    nonstopux*) version_type=nonstopux ;;
10025    *)
10026        if test "$lt_cv_prog_gnu_ld" = yes; then
10027                version_type=linux
10028        else
10029                version_type=irix
10030        fi ;;
10031  esac
10032  need_lib_prefix=no
10033  need_version=no
10034  soname_spec='${libname}${release}${shared_ext}$major'
10035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10036  case $host_os in
10037  irix5* | nonstopux*)
10038    libsuff= shlibsuff=
10039    ;;
10040  *)
10041    case $LD in # libtool.m4 will add one of these switches to LD
10042    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10043      libsuff= shlibsuff= libmagic=32-bit;;
10044    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10045      libsuff=32 shlibsuff=N32 libmagic=N32;;
10046    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10047      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10048    *) libsuff= shlibsuff= libmagic=never-match;;
10049    esac
10050    ;;
10051  esac
10052  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10053  shlibpath_overrides_runpath=no
10054  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10055  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10056  hardcode_into_libs=yes
10057  ;;
10058
10059# No shared lib support for Linux oldld, aout, or coff.
10060linux*oldld* | linux*aout* | linux*coff*)
10061  dynamic_linker=no
10062  ;;
10063
10064# This must be Linux ELF.
10065linux*)
10066  version_type=linux
10067  need_lib_prefix=no
10068  need_version=no
10069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070  soname_spec='${libname}${release}${shared_ext}$major'
10071  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10072  shlibpath_var=LD_LIBRARY_PATH
10073  shlibpath_overrides_runpath=no
10074  # This implies no fast_install, which is unacceptable.
10075  # Some rework will be needed to allow for fast_install
10076  # before this can be enabled.
10077  hardcode_into_libs=yes
10078
10079  # Append ld.so.conf contents to the search path
10080  if test -f /etc/ld.so.conf; then
10081    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' ' '`
10082    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10083  fi
10084
10085  # We used to test for /lib/ld.so.1 and disable shared libraries on
10086  # powerpc, because MkLinux only supported shared libraries with the
10087  # GNU dynamic linker.  Since this was broken with cross compilers,
10088  # most powerpc-linux boxes support dynamic linking these days and
10089  # people can always --disable-shared, the test was removed, and we
10090  # assume the GNU/Linux dynamic linker is in use.
10091  dynamic_linker='GNU/Linux ld.so'
10092  ;;
10093
10094knetbsd*-gnu)
10095  version_type=linux
10096  need_lib_prefix=no
10097  need_version=no
10098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10099  soname_spec='${libname}${release}${shared_ext}$major'
10100  shlibpath_var=LD_LIBRARY_PATH
10101  shlibpath_overrides_runpath=no
10102  hardcode_into_libs=yes
10103  dynamic_linker='GNU ld.so'
10104  ;;
10105
10106netbsd*)
10107  version_type=sunos
10108  need_lib_prefix=no
10109  need_version=no
10110  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10111    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10112    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10113    dynamic_linker='NetBSD (a.out) ld.so'
10114  else
10115    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10116    soname_spec='${libname}${release}${shared_ext}$major'
10117    dynamic_linker='NetBSD ld.elf_so'
10118  fi
10119  shlibpath_var=LD_LIBRARY_PATH
10120  shlibpath_overrides_runpath=yes
10121  hardcode_into_libs=yes
10122  ;;
10123
10124newsos6)
10125  version_type=linux
10126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127  shlibpath_var=LD_LIBRARY_PATH
10128  shlibpath_overrides_runpath=yes
10129  ;;
10130
10131nto-qnx*)
10132  version_type=linux
10133  need_lib_prefix=no
10134  need_version=no
10135  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10136  soname_spec='${libname}${release}${shared_ext}$major'
10137  shlibpath_var=LD_LIBRARY_PATH
10138  shlibpath_overrides_runpath=yes
10139  ;;
10140
10141openbsd*)
10142  version_type=sunos
10143  sys_lib_dlsearch_path_spec="/usr/lib"
10144  need_lib_prefix=no
10145  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10146  case $host_os in
10147    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10148    *)                         need_version=no  ;;
10149  esac
10150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10151  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10152  shlibpath_var=LD_LIBRARY_PATH
10153  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10154    case $host_os in
10155      openbsd2.[89] | openbsd2.[89].*)
10156        shlibpath_overrides_runpath=no
10157        ;;
10158      *)
10159        shlibpath_overrides_runpath=yes
10160        ;;
10161      esac
10162  else
10163    shlibpath_overrides_runpath=yes
10164  fi
10165  ;;
10166
10167os2*)
10168  libname_spec='$name'
10169  shrext_cmds=".dll"
10170  need_lib_prefix=no
10171  library_names_spec='$libname${shared_ext} $libname.a'
10172  dynamic_linker='OS/2 ld.exe'
10173  shlibpath_var=LIBPATH
10174  ;;
10175
10176osf3* | osf4* | osf5*)
10177  version_type=osf
10178  need_lib_prefix=no
10179  need_version=no
10180  soname_spec='${libname}${release}${shared_ext}$major'
10181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182  shlibpath_var=LD_LIBRARY_PATH
10183  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10184  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10185  ;;
10186
10187solaris*)
10188  version_type=linux
10189  need_lib_prefix=no
10190  need_version=no
10191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192  soname_spec='${libname}${release}${shared_ext}$major'
10193  shlibpath_var=LD_LIBRARY_PATH
10194  shlibpath_overrides_runpath=yes
10195  hardcode_into_libs=yes
10196  # ldd complains unless libraries are executable
10197  postinstall_cmds='chmod +x $lib'
10198  ;;
10199
10200sunos4*)
10201  version_type=sunos
10202  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10203  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10204  shlibpath_var=LD_LIBRARY_PATH
10205  shlibpath_overrides_runpath=yes
10206  if test "$with_gnu_ld" = yes; then
10207    need_lib_prefix=no
10208  fi
10209  need_version=yes
10210  ;;
10211
10212sysv4 | sysv4.3*)
10213  version_type=linux
10214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215  soname_spec='${libname}${release}${shared_ext}$major'
10216  shlibpath_var=LD_LIBRARY_PATH
10217  case $host_vendor in
10218    sni)
10219      shlibpath_overrides_runpath=no
10220      need_lib_prefix=no
10221      export_dynamic_flag_spec='${wl}-Blargedynsym'
10222      runpath_var=LD_RUN_PATH
10223      ;;
10224    siemens)
10225      need_lib_prefix=no
10226      ;;
10227    motorola)
10228      need_lib_prefix=no
10229      need_version=no
10230      shlibpath_overrides_runpath=no
10231      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10232      ;;
10233  esac
10234  ;;
10235
10236sysv4*MP*)
10237  if test -d /usr/nec ;then
10238    version_type=linux
10239    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10240    soname_spec='$libname${shared_ext}.$major'
10241    shlibpath_var=LD_LIBRARY_PATH
10242  fi
10243  ;;
10244
10245sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10246  version_type=freebsd-elf
10247  need_lib_prefix=no
10248  need_version=no
10249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10250  soname_spec='${libname}${release}${shared_ext}$major'
10251  shlibpath_var=LD_LIBRARY_PATH
10252  hardcode_into_libs=yes
10253  if test "$with_gnu_ld" = yes; then
10254    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10255    shlibpath_overrides_runpath=no
10256  else
10257    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10258    shlibpath_overrides_runpath=yes
10259    case $host_os in
10260      sco3.2v5*)
10261        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10262        ;;
10263    esac
10264  fi
10265  sys_lib_dlsearch_path_spec='/usr/lib'
10266  ;;
10267
10268uts4*)
10269  version_type=linux
10270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271  soname_spec='${libname}${release}${shared_ext}$major'
10272  shlibpath_var=LD_LIBRARY_PATH
10273  ;;
10274
10275*)
10276  dynamic_linker=no
10277  ;;
10278esac
10279echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10280echo "${ECHO_T}$dynamic_linker" >&6
10281test "$dynamic_linker" = no && can_build_shared=no
10282
10283variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10284if test "$GCC" = yes; then
10285  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10286fi
10287
10288echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10289echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10290hardcode_action=
10291if test -n "$hardcode_libdir_flag_spec" || \
10292   test -n "$runpath_var" || \
10293   test "X$hardcode_automatic" = "Xyes" ; then
10294
10295  # We can hardcode non-existant directories.
10296  if test "$hardcode_direct" != no &&
10297     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10298     # have to relink, otherwise we might link with an installed library
10299     # when we should be linking with a yet-to-be-installed one
10300     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10301     test "$hardcode_minus_L" != no; then
10302    # Linking always hardcodes the temporary library directory.
10303    hardcode_action=relink
10304  else
10305    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10306    hardcode_action=immediate
10307  fi
10308else
10309  # We cannot hardcode anything, or else we can only hardcode existing
10310  # directories.
10311  hardcode_action=unsupported
10312fi
10313echo "$as_me:$LINENO: result: $hardcode_action" >&5
10314echo "${ECHO_T}$hardcode_action" >&6
10315
10316if test "$hardcode_action" = relink; then
10317  # Fast installation is not supported
10318  enable_fast_install=no
10319elif test "$shlibpath_overrides_runpath" = yes ||
10320     test "$enable_shared" = no; then
10321  # Fast installation is not necessary
10322  enable_fast_install=needless
10323fi
10324
10325striplib=
10326old_striplib=
10327echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10328echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10329if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10330  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10331  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10332  echo "$as_me:$LINENO: result: yes" >&5
10333echo "${ECHO_T}yes" >&6
10334else
10335# FIXME - insert some real tests, host_os isn't really good enough
10336  case $host_os in
10337   darwin*)
10338       if test -n "$STRIP" ; then
10339         striplib="$STRIP -x"
10340         echo "$as_me:$LINENO: result: yes" >&5
10341echo "${ECHO_T}yes" >&6
10342       else
10343  echo "$as_me:$LINENO: result: no" >&5
10344echo "${ECHO_T}no" >&6
10345fi
10346       ;;
10347   *)
10348  echo "$as_me:$LINENO: result: no" >&5
10349echo "${ECHO_T}no" >&6
10350    ;;
10351  esac
10352fi
10353
10354if test "x$enable_dlopen" != xyes; then
10355  enable_dlopen=unknown
10356  enable_dlopen_self=unknown
10357  enable_dlopen_self_static=unknown
10358else
10359  lt_cv_dlopen=no
10360  lt_cv_dlopen_libs=
10361
10362  case $host_os in
10363  beos*)
10364    lt_cv_dlopen="load_add_on"
10365    lt_cv_dlopen_libs=
10366    lt_cv_dlopen_self=yes
10367    ;;
10368
10369  mingw* | pw32*)
10370    lt_cv_dlopen="LoadLibrary"
10371    lt_cv_dlopen_libs=
10372   ;;
10373
10374  cygwin*)
10375    lt_cv_dlopen="dlopen"
10376    lt_cv_dlopen_libs=
10377   ;;
10378
10379  darwin*)
10380  # if libdl is installed we need to link against it
10381    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10382echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10383if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10384  echo $ECHO_N "(cached) $ECHO_C" >&6
10385else
10386  ac_check_lib_save_LIBS=$LIBS
10387LIBS="-ldl  $LIBS"
10388cat >conftest.$ac_ext <<_ACEOF
10389/* confdefs.h.  */
10390_ACEOF
10391cat confdefs.h >>conftest.$ac_ext
10392cat >>conftest.$ac_ext <<_ACEOF
10393/* end confdefs.h.  */
10394
10395/* Override any gcc2 internal prototype to avoid an error.  */
10396#ifdef __cplusplus
10397extern "C"
10398#endif
10399/* We use char because int might match the return type of a gcc2
10400   builtin and then its argument prototype would still apply.  */
10401char dlopen ();
10402int
10403main ()
10404{
10405dlopen ();
10406  ;
10407  return 0;
10408}
10409_ACEOF
10410rm -f conftest.$ac_objext conftest$ac_exeext
10411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10412  (eval $ac_link) 2>conftest.er1
10413  ac_status=$?
10414  grep -v '^ *+' conftest.er1 >conftest.err
10415  rm -f conftest.er1
10416  cat conftest.err >&5
10417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418  (exit $ac_status); } &&
10419         { ac_try='test -z "$ac_c_werror_flag"
10420                         || test ! -s conftest.err'
10421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10422  (eval $ac_try) 2>&5
10423  ac_status=$?
10424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425  (exit $ac_status); }; } &&
10426         { ac_try='test -s conftest$ac_exeext'
10427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10428  (eval $ac_try) 2>&5
10429  ac_status=$?
10430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431  (exit $ac_status); }; }; then
10432  ac_cv_lib_dl_dlopen=yes
10433else
10434  echo "$as_me: failed program was:" >&5
10435sed 's/^/| /' conftest.$ac_ext >&5
10436
10437ac_cv_lib_dl_dlopen=no
10438fi
10439rm -f conftest.err conftest.$ac_objext \
10440      conftest$ac_exeext conftest.$ac_ext
10441LIBS=$ac_check_lib_save_LIBS
10442fi
10443echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10444echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10445if test $ac_cv_lib_dl_dlopen = yes; then
10446  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10447else
10448
10449    lt_cv_dlopen="dyld"
10450    lt_cv_dlopen_libs=
10451    lt_cv_dlopen_self=yes
10452
10453fi
10454
10455   ;;
10456
10457  *)
10458    echo "$as_me:$LINENO: checking for shl_load" >&5
10459echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10460if test "${ac_cv_func_shl_load+set}" = set; then
10461  echo $ECHO_N "(cached) $ECHO_C" >&6
10462else
10463  cat >conftest.$ac_ext <<_ACEOF
10464/* confdefs.h.  */
10465_ACEOF
10466cat confdefs.h >>conftest.$ac_ext
10467cat >>conftest.$ac_ext <<_ACEOF
10468/* end confdefs.h.  */
10469/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10470   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10471#define shl_load innocuous_shl_load
10472
10473/* System header to define __stub macros and hopefully few prototypes,
10474    which can conflict with char shl_load (); below.
10475    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10476    <limits.h> exists even on freestanding compilers.  */
10477
10478#ifdef __STDC__
10479# include <limits.h>
10480#else
10481# include <assert.h>
10482#endif
10483
10484#undef shl_load
10485
10486/* Override any gcc2 internal prototype to avoid an error.  */
10487#ifdef __cplusplus
10488extern "C"
10489{
10490#endif
10491/* We use char because int might match the return type of a gcc2
10492   builtin and then its argument prototype would still apply.  */
10493char shl_load ();
10494/* The GNU C library defines this for functions which it implements
10495    to always fail with ENOSYS.  Some functions are actually named
10496    something starting with __ and the normal name is an alias.  */
10497#if defined (__stub_shl_load) || defined (__stub___shl_load)
10498choke me
10499#else
10500char (*f) () = shl_load;
10501#endif
10502#ifdef __cplusplus
10503}
10504#endif
10505
10506int
10507main ()
10508{
10509return f != shl_load;
10510  ;
10511  return 0;
10512}
10513_ACEOF
10514rm -f conftest.$ac_objext conftest$ac_exeext
10515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10516  (eval $ac_link) 2>conftest.er1
10517  ac_status=$?
10518  grep -v '^ *+' conftest.er1 >conftest.err
10519  rm -f conftest.er1
10520  cat conftest.err >&5
10521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522  (exit $ac_status); } &&
10523         { ac_try='test -z "$ac_c_werror_flag"
10524                         || test ! -s conftest.err'
10525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10526  (eval $ac_try) 2>&5
10527  ac_status=$?
10528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529  (exit $ac_status); }; } &&
10530         { ac_try='test -s conftest$ac_exeext'
10531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532  (eval $ac_try) 2>&5
10533  ac_status=$?
10534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535  (exit $ac_status); }; }; then
10536  ac_cv_func_shl_load=yes
10537else
10538  echo "$as_me: failed program was:" >&5
10539sed 's/^/| /' conftest.$ac_ext >&5
10540
10541ac_cv_func_shl_load=no
10542fi
10543rm -f conftest.err conftest.$ac_objext \
10544      conftest$ac_exeext conftest.$ac_ext
10545fi
10546echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10547echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10548if test $ac_cv_func_shl_load = yes; then
10549  lt_cv_dlopen="shl_load"
10550else
10551  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10552echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10553if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10554  echo $ECHO_N "(cached) $ECHO_C" >&6
10555else
10556  ac_check_lib_save_LIBS=$LIBS
10557LIBS="-ldld  $LIBS"
10558cat >conftest.$ac_ext <<_ACEOF
10559/* confdefs.h.  */
10560_ACEOF
10561cat confdefs.h >>conftest.$ac_ext
10562cat >>conftest.$ac_ext <<_ACEOF
10563/* end confdefs.h.  */
10564
10565/* Override any gcc2 internal prototype to avoid an error.  */
10566#ifdef __cplusplus
10567extern "C"
10568#endif
10569/* We use char because int might match the return type of a gcc2
10570   builtin and then its argument prototype would still apply.  */
10571char shl_load ();
10572int
10573main ()
10574{
10575shl_load ();
10576  ;
10577  return 0;
10578}
10579_ACEOF
10580rm -f conftest.$ac_objext conftest$ac_exeext
10581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10582  (eval $ac_link) 2>conftest.er1
10583  ac_status=$?
10584  grep -v '^ *+' conftest.er1 >conftest.err
10585  rm -f conftest.er1
10586  cat conftest.err >&5
10587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588  (exit $ac_status); } &&
10589         { ac_try='test -z "$ac_c_werror_flag"
10590                         || test ! -s conftest.err'
10591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592  (eval $ac_try) 2>&5
10593  ac_status=$?
10594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595  (exit $ac_status); }; } &&
10596         { ac_try='test -s conftest$ac_exeext'
10597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598  (eval $ac_try) 2>&5
10599  ac_status=$?
10600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); }; }; then
10602  ac_cv_lib_dld_shl_load=yes
10603else
10604  echo "$as_me: failed program was:" >&5
10605sed 's/^/| /' conftest.$ac_ext >&5
10606
10607ac_cv_lib_dld_shl_load=no
10608fi
10609rm -f conftest.err conftest.$ac_objext \
10610      conftest$ac_exeext conftest.$ac_ext
10611LIBS=$ac_check_lib_save_LIBS
10612fi
10613echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10614echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10615if test $ac_cv_lib_dld_shl_load = yes; then
10616  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10617else
10618  echo "$as_me:$LINENO: checking for dlopen" >&5
10619echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10620if test "${ac_cv_func_dlopen+set}" = set; then
10621  echo $ECHO_N "(cached) $ECHO_C" >&6
10622else
10623  cat >conftest.$ac_ext <<_ACEOF
10624/* confdefs.h.  */
10625_ACEOF
10626cat confdefs.h >>conftest.$ac_ext
10627cat >>conftest.$ac_ext <<_ACEOF
10628/* end confdefs.h.  */
10629/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10630   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10631#define dlopen innocuous_dlopen
10632
10633/* System header to define __stub macros and hopefully few prototypes,
10634    which can conflict with char dlopen (); below.
10635    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10636    <limits.h> exists even on freestanding compilers.  */
10637
10638#ifdef __STDC__
10639# include <limits.h>
10640#else
10641# include <assert.h>
10642#endif
10643
10644#undef dlopen
10645
10646/* Override any gcc2 internal prototype to avoid an error.  */
10647#ifdef __cplusplus
10648extern "C"
10649{
10650#endif
10651/* We use char because int might match the return type of a gcc2
10652   builtin and then its argument prototype would still apply.  */
10653char dlopen ();
10654/* The GNU C library defines this for functions which it implements
10655    to always fail with ENOSYS.  Some functions are actually named
10656    something starting with __ and the normal name is an alias.  */
10657#if defined (__stub_dlopen) || defined (__stub___dlopen)
10658choke me
10659#else
10660char (*f) () = dlopen;
10661#endif
10662#ifdef __cplusplus
10663}
10664#endif
10665
10666int
10667main ()
10668{
10669return f != dlopen;
10670  ;
10671  return 0;
10672}
10673_ACEOF
10674rm -f conftest.$ac_objext conftest$ac_exeext
10675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10676  (eval $ac_link) 2>conftest.er1
10677  ac_status=$?
10678  grep -v '^ *+' conftest.er1 >conftest.err
10679  rm -f conftest.er1
10680  cat conftest.err >&5
10681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682  (exit $ac_status); } &&
10683         { ac_try='test -z "$ac_c_werror_flag"
10684                         || test ! -s conftest.err'
10685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10686  (eval $ac_try) 2>&5
10687  ac_status=$?
10688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689  (exit $ac_status); }; } &&
10690         { ac_try='test -s conftest$ac_exeext'
10691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10692  (eval $ac_try) 2>&5
10693  ac_status=$?
10694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695  (exit $ac_status); }; }; then
10696  ac_cv_func_dlopen=yes
10697else
10698  echo "$as_me: failed program was:" >&5
10699sed 's/^/| /' conftest.$ac_ext >&5
10700
10701ac_cv_func_dlopen=no
10702fi
10703rm -f conftest.err conftest.$ac_objext \
10704      conftest$ac_exeext conftest.$ac_ext
10705fi
10706echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10707echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10708if test $ac_cv_func_dlopen = yes; then
10709  lt_cv_dlopen="dlopen"
10710else
10711  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10712echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10713if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10714  echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
10716  ac_check_lib_save_LIBS=$LIBS
10717LIBS="-ldl  $LIBS"
10718cat >conftest.$ac_ext <<_ACEOF
10719/* confdefs.h.  */
10720_ACEOF
10721cat confdefs.h >>conftest.$ac_ext
10722cat >>conftest.$ac_ext <<_ACEOF
10723/* end confdefs.h.  */
10724
10725/* Override any gcc2 internal prototype to avoid an error.  */
10726#ifdef __cplusplus
10727extern "C"
10728#endif
10729/* We use char because int might match the return type of a gcc2
10730   builtin and then its argument prototype would still apply.  */
10731char dlopen ();
10732int
10733main ()
10734{
10735dlopen ();
10736  ;
10737  return 0;
10738}
10739_ACEOF
10740rm -f conftest.$ac_objext conftest$ac_exeext
10741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10742  (eval $ac_link) 2>conftest.er1
10743  ac_status=$?
10744  grep -v '^ *+' conftest.er1 >conftest.err
10745  rm -f conftest.er1
10746  cat conftest.err >&5
10747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748  (exit $ac_status); } &&
10749         { ac_try='test -z "$ac_c_werror_flag"
10750                         || test ! -s conftest.err'
10751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752  (eval $ac_try) 2>&5
10753  ac_status=$?
10754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755  (exit $ac_status); }; } &&
10756         { ac_try='test -s conftest$ac_exeext'
10757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10758  (eval $ac_try) 2>&5
10759  ac_status=$?
10760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761  (exit $ac_status); }; }; then
10762  ac_cv_lib_dl_dlopen=yes
10763else
10764  echo "$as_me: failed program was:" >&5
10765sed 's/^/| /' conftest.$ac_ext >&5
10766
10767ac_cv_lib_dl_dlopen=no
10768fi
10769rm -f conftest.err conftest.$ac_objext \
10770      conftest$ac_exeext conftest.$ac_ext
10771LIBS=$ac_check_lib_save_LIBS
10772fi
10773echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10774echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10775if test $ac_cv_lib_dl_dlopen = yes; then
10776  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10777</