source: branches/devel/Cbc/configure @ 588

Last change on this file since 588 was 585, checked in by ladanyi, 13 years ago

updated the configure script to the latest BuildTools?

  • Property svn:executable set to *
File size: 769.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 0.1.
4#
5# Report bugs to <coin-cbc@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='0.1'
433PACKAGE_STRING='Cbc 0.1'
434PACKAGE_BUGREPORT='coin-cbc@list.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE 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 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS CBCSRCDIR CBCOBJDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE DYLPSRCDIR DYLPOBJDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE OSISRCDIR OSIOBJDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE SYMSRCDIR SYMOBJDIR COIN_HAS_SYM_TRUE COIN_HAS_SYM_FALSE VOLSRCDIR VOLOBJDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Cbc 0.1 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Cbc 0.1:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-cbc compile this project (Cbc) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link. Default
1082                          when mentioned: mingw. Default when not mentioned:
1083                          disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-cplex-libcheck use disable-cplex-libcheck to skip the
1096                          link check at configuration time
1097  --enable-glpk-libcheck use disable-glpk-libcheck to skip the
1098                          link check at configuration time
1099  --enable-fortmp-libcheck
1100                          use disable-fortmp-libcheck to skip the
1101                          link check at configuration time
1102  --enable-mosek-libcheck use disable-mosek-libcheck to skip the
1103                          link check at configuration time
1104  --enable-osl-libcheck use disable-osl-libcheck to skip the link
1105                          check at configuration time
1106  --enable-soplex-libcheck
1107                          use disable-soplex-libcheck to skip the
1108                          link check at configuration time
1109  --enable-xpress-libcheck
1110                          use disable-xpress-libcheck to skip the
1111                          link check at configuration time
1112
1113Optional Packages:
1114  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1115  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1116  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1117  --with-cbc-checklevel specify the sanity check level for project Cbc
1118  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1119  --with-pic              try to use only PIC/non-PIC objects [default=use
1120                          both]
1121  --with-tags[=TAGS]
1122                          include additional configurations [automatic]
1123  --with-cbc-default-solver
1124                          specify default solver for Cbc in lower case letters
1125                          (if not given, clp is assumed)
1126  --with-cplex-incdir specify the directory with the header files for library
1127                          Cplex
1128  --with-cplex-lib specify the flags to link with the library Cplex
1129  --with-glpk-incdir specify the directory with the header files for library
1130                          Glpk
1131  --with-glpk-lib specify the flags to link with the library Glpk
1132  --with-fortmp-incdir specify the directory with the header files for library
1133                          FortMP
1134  --with-fortmp-lib specify the flags to link with the library FortMP
1135  --with-mosek-incdir specify the directory with the header files for library
1136                          Mosek
1137  --with-mosek-lib specify the flags to link with the library Mosek
1138  --with-osl-incdir specify the directory with the header files for library
1139                          Osl
1140  --with-osl-lib specify the flags to link with the library Osl
1141  --with-soplex-incdir specify the directory with the header files for library
1142                          Soplex
1143  --with-soplex-lib specify the flags to link with the library Soplex
1144  --with-xpress-incdir specify the directory with the header files for library
1145                          Xpress
1146  --with-xpress-lib specify the flags to link with the library Xpress
1147  --with-asldir           specify path to AMPL solver directory (or BUILD for
1148                          compilation, or "no" for disabling AMPL)
1149
1150Some influential environment variables:
1151  CDEFS       Additional -D flags to be used when compiling C code.
1152  ADD_CFLAGS  Additional C compiler options
1153  DBG_CFLAGS  Debug C compiler options
1154  OPT_CFLAGS  Optimize C compiler options
1155  CC          C compiler command
1156  CFLAGS      C compiler flags
1157  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1158              nonstandard directory <lib dir>
1159  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1160              headers in a nonstandard directory <include dir>
1161  MPICC       C MPI Compiler
1162  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1163  ADD_CXXFLAGS
1164              Additional C++ compiler options
1165  DBG_CXXFLAGS
1166              Debug C++ compiler options
1167  OPT_CXXFLAGS
1168              Optimize C++ compiler options
1169  CXX         C++ compiler command
1170  CXXFLAGS    C++ compiler flags
1171  MPICXX      C++ MPI Compiler
1172  CPP         C preprocessor
1173  CXXCPP      C++ preprocessor
1174  F77         Fortran 77 compiler command
1175  FFLAGS      Fortran 77 compiler flags
1176
1177Use these variables to override the choices made by `configure' or to help
1178it to find libraries and programs with nonstandard names/locations.
1179
1180Report bugs to <coin-cbc@list.coin-or.org>.
1181_ACEOF
1182fi
1183
1184if test "$ac_init_help" = "recursive"; then
1185  # If there are subdirs, report their specific --help.
1186  ac_popdir=`pwd`
1187  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1188    test -d $ac_dir || continue
1189    ac_builddir=.
1190
1191if test "$ac_dir" != .; then
1192  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1193  # A "../" for each directory in $ac_dir_suffix.
1194  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1195else
1196  ac_dir_suffix= ac_top_builddir=
1197fi
1198
1199case $srcdir in
1200  .)  # No --srcdir option.  We are building in place.
1201    ac_srcdir=.
1202    if test -z "$ac_top_builddir"; then
1203       ac_top_srcdir=.
1204    else
1205       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1206    fi ;;
1207  [\\/]* | ?:[\\/]* )  # Absolute path.
1208    ac_srcdir=$srcdir$ac_dir_suffix;
1209    ac_top_srcdir=$srcdir ;;
1210  *) # Relative path.
1211    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1212    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1213esac
1214
1215# Do not use `cd foo && pwd` to compute absolute paths, because
1216# the directories may not exist.
1217case `pwd` in
1218.) ac_abs_builddir="$ac_dir";;
1219*)
1220  case "$ac_dir" in
1221  .) ac_abs_builddir=`pwd`;;
1222  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1223  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1224  esac;;
1225esac
1226case $ac_abs_builddir in
1227.) ac_abs_top_builddir=${ac_top_builddir}.;;
1228*)
1229  case ${ac_top_builddir}. in
1230  .) ac_abs_top_builddir=$ac_abs_builddir;;
1231  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1232  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1233  esac;;
1234esac
1235case $ac_abs_builddir in
1236.) ac_abs_srcdir=$ac_srcdir;;
1237*)
1238  case $ac_srcdir in
1239  .) ac_abs_srcdir=$ac_abs_builddir;;
1240  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1241  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1242  esac;;
1243esac
1244case $ac_abs_builddir in
1245.) ac_abs_top_srcdir=$ac_top_srcdir;;
1246*)
1247  case $ac_top_srcdir in
1248  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1249  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1250  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1251  esac;;
1252esac
1253
1254    cd $ac_dir
1255    # Check for guested configure; otherwise get Cygnus style configure.
1256    if test -f $ac_srcdir/configure.gnu; then
1257      echo
1258      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1259    elif test -f $ac_srcdir/configure; then
1260      echo
1261      $SHELL $ac_srcdir/configure  --help=recursive
1262    elif test -f $ac_srcdir/configure.ac ||
1263           test -f $ac_srcdir/configure.in; then
1264      echo
1265      $ac_configure --help
1266    else
1267      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1268    fi
1269    cd $ac_popdir
1270  done
1271fi
1272
1273test -n "$ac_init_help" && exit 0
1274if $ac_init_version; then
1275  cat <<\_ACEOF
1276Cbc configure 0.1
1277generated by GNU Autoconf 2.59
1278
1279Copyright (C) 2003 Free Software Foundation, Inc.
1280This configure script is free software; the Free Software Foundation
1281gives unlimited permission to copy, distribute and modify it.
1282
1283
1284Copyright 2006 International Business Machines and others.
1285All Rights Reserved.
1286This file is part of the open source package Coin which is distributed
1287under the Common Public License.
1288_ACEOF
1289  exit 0
1290fi
1291exec 5>config.log
1292cat >&5 <<_ACEOF
1293This file contains any messages produced by compilers while
1294running configure, to aid debugging if configure makes a mistake.
1295
1296It was created by Cbc $as_me 0.1, which was
1297generated by GNU Autoconf 2.59.  Invocation command line was
1298
1299  $ $0 $@
1300
1301_ACEOF
1302{
1303cat <<_ASUNAME
1304## --------- ##
1305## Platform. ##
1306## --------- ##
1307
1308hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1309uname -m = `(uname -m) 2>/dev/null || echo unknown`
1310uname -r = `(uname -r) 2>/dev/null || echo unknown`
1311uname -s = `(uname -s) 2>/dev/null || echo unknown`
1312uname -v = `(uname -v) 2>/dev/null || echo unknown`
1313
1314/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1315/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1316
1317/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1318/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1319/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1320hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1321/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1322/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1323/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1324
1325_ASUNAME
1326
1327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1328for as_dir in $PATH
1329do
1330  IFS=$as_save_IFS
1331  test -z "$as_dir" && as_dir=.
1332  echo "PATH: $as_dir"
1333done
1334
1335} >&5
1336
1337cat >&5 <<_ACEOF
1338
1339
1340## ----------- ##
1341## Core tests. ##
1342## ----------- ##
1343
1344_ACEOF
1345
1346
1347# Keep a trace of the command line.
1348# Strip out --no-create and --no-recursion so they do not pile up.
1349# Strip out --silent because we don't want to record it for future runs.
1350# Also quote any args containing shell meta-characters.
1351# Make two passes to allow for proper duplicate-argument suppression.
1352ac_configure_args=
1353ac_configure_args0=
1354ac_configure_args1=
1355ac_sep=
1356ac_must_keep_next=false
1357for ac_pass in 1 2
1358do
1359  for ac_arg
1360  do
1361    case $ac_arg in
1362    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1363    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1364    | -silent | --silent | --silen | --sile | --sil)
1365      continue ;;
1366    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1367      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1368    esac
1369    case $ac_pass in
1370    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1371    2)
1372      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1373      if test $ac_must_keep_next = true; then
1374        ac_must_keep_next=false # Got value, back to normal.
1375      else
1376        case $ac_arg in
1377          *=* | --config-cache | -C | -disable-* | --disable-* \
1378          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1379          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1380          | -with-* | --with-* | -without-* | --without-* | --x)
1381            case "$ac_configure_args0 " in
1382              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1383            esac
1384            ;;
1385          -* ) ac_must_keep_next=true ;;
1386        esac
1387      fi
1388      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1389      # Get rid of the leading space.
1390      ac_sep=" "
1391      ;;
1392    esac
1393  done
1394done
1395$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1396$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1397
1398# When interrupted or exit'd, cleanup temporary files, and complete
1399# config.log.  We remove comments because anyway the quotes in there
1400# would cause problems or look ugly.
1401# WARNING: Be sure not to use single quotes in there, as some shells,
1402# such as our DU 5.0 friend, will then `close' the trap.
1403trap 'exit_status=$?
1404  # Save into config.log some information that might help in debugging.
1405  {
1406    echo
1407
1408    cat <<\_ASBOX
1409## ---------------- ##
1410## Cache variables. ##
1411## ---------------- ##
1412_ASBOX
1413    echo
1414    # The following way of writing the cache mishandles newlines in values,
1415{
1416  (set) 2>&1 |
1417    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1418    *ac_space=\ *)
1419      sed -n \
1420        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1421          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1422      ;;
1423    *)
1424      sed -n \
1425        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1426      ;;
1427    esac;
1428}
1429    echo
1430
1431    cat <<\_ASBOX
1432## ----------------- ##
1433## Output variables. ##
1434## ----------------- ##
1435_ASBOX
1436    echo
1437    for ac_var in $ac_subst_vars
1438    do
1439      eval ac_val=$`echo $ac_var`
1440      echo "$ac_var='"'"'$ac_val'"'"'"
1441    done | sort
1442    echo
1443
1444    if test -n "$ac_subst_files"; then
1445      cat <<\_ASBOX
1446## ------------- ##
1447## Output files. ##
1448## ------------- ##
1449_ASBOX
1450      echo
1451      for ac_var in $ac_subst_files
1452      do
1453        eval ac_val=$`echo $ac_var`
1454        echo "$ac_var='"'"'$ac_val'"'"'"
1455      done | sort
1456      echo
1457    fi
1458
1459    if test -s confdefs.h; then
1460      cat <<\_ASBOX
1461## ----------- ##
1462## confdefs.h. ##
1463## ----------- ##
1464_ASBOX
1465      echo
1466      sed "/^$/d" confdefs.h | sort
1467      echo
1468    fi
1469    test "$ac_signal" != 0 &&
1470      echo "$as_me: caught signal $ac_signal"
1471    echo "$as_me: exit $exit_status"
1472  } >&5
1473  rm -f core *.core &&
1474  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1475    exit $exit_status
1476     ' 0
1477for ac_signal in 1 2 13 15; do
1478  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1479done
1480ac_signal=0
1481
1482# confdefs.h avoids OS command line length limits that DEFS can exceed.
1483rm -rf conftest* confdefs.h
1484# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1485echo >confdefs.h
1486
1487# Predefined preprocessor variables.
1488
1489cat >>confdefs.h <<_ACEOF
1490#define PACKAGE_NAME "$PACKAGE_NAME"
1491_ACEOF
1492
1493
1494cat >>confdefs.h <<_ACEOF
1495#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1496_ACEOF
1497
1498
1499cat >>confdefs.h <<_ACEOF
1500#define PACKAGE_VERSION "$PACKAGE_VERSION"
1501_ACEOF
1502
1503
1504cat >>confdefs.h <<_ACEOF
1505#define PACKAGE_STRING "$PACKAGE_STRING"
1506_ACEOF
1507
1508
1509cat >>confdefs.h <<_ACEOF
1510#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1511_ACEOF
1512
1513
1514# Let the site file select an alternate cache file if it wants to.
1515# Prefer explicitly selected file to automatically selected ones.
1516if test -z "$CONFIG_SITE"; then
1517  if test "x$prefix" != xNONE; then
1518    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1519  else
1520    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1521  fi
1522fi
1523for ac_site_file in $CONFIG_SITE; do
1524  if test -r "$ac_site_file"; then
1525    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1526echo "$as_me: loading site script $ac_site_file" >&6;}
1527    sed 's/^/| /' "$ac_site_file" >&5
1528    . "$ac_site_file"
1529  fi
1530done
1531
1532if test -r "$cache_file"; then
1533  # Some versions of bash will fail to source /dev/null (special
1534  # files actually), so we avoid doing that.
1535  if test -f "$cache_file"; then
1536    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1537echo "$as_me: loading cache $cache_file" >&6;}
1538    case $cache_file in
1539      [\\/]* | ?:[\\/]* ) . $cache_file;;
1540      *)                      . ./$cache_file;;
1541    esac
1542  fi
1543else
1544  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1545echo "$as_me: creating cache $cache_file" >&6;}
1546  >$cache_file
1547fi
1548
1549# Check that the precious variables saved in the cache have kept the same
1550# value.
1551ac_cache_corrupted=false
1552for ac_var in `(set) 2>&1 |
1553               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1554  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1555  eval ac_new_set=\$ac_env_${ac_var}_set
1556  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1557  eval ac_new_val="\$ac_env_${ac_var}_value"
1558  case $ac_old_set,$ac_new_set in
1559    set,)
1560      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1561echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1562      ac_cache_corrupted=: ;;
1563    ,set)
1564      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1565echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1566      ac_cache_corrupted=: ;;
1567    ,);;
1568    *)
1569      if test "x$ac_old_val" != "x$ac_new_val"; then
1570        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1571echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1572        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1573echo "$as_me:   former value:  $ac_old_val" >&2;}
1574        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1575echo "$as_me:   current value: $ac_new_val" >&2;}
1576        ac_cache_corrupted=:
1577      fi;;
1578  esac
1579  # Pass precious variables to config.status.
1580  if test "$ac_new_set" = set; then
1581    case $ac_new_val in
1582    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1583      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1584    *) ac_arg=$ac_var=$ac_new_val ;;
1585    esac
1586    case " $ac_configure_args " in
1587      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1588      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1589    esac
1590  fi
1591done
1592if $ac_cache_corrupted; then
1593  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1594echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1595  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1596echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1597   { (exit 1); exit 1; }; }
1598fi
1599
1600ac_ext=c
1601ac_cpp='$CPP $CPPFLAGS'
1602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1604ac_compiler_gnu=$ac_cv_c_compiler_gnu
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635# List one file in the package so that the configure script can test
1636# whether the package is actually there
1637
1638
1639# Where should everything be installed by default?  Here, we want it
1640# to be installed directly in 'bin', 'lib', 'include' subdirectories
1641# of the directory where configure is run.  The default would be
1642# /usr/local.
1643
1644
1645#############################################################################
1646#                         Standard build tool stuff                         #
1647#############################################################################
1648
1649# Get the system type
1650ac_aux_dir=
1651for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1652  if test -f $ac_dir/install-sh; then
1653    ac_aux_dir=$ac_dir
1654    ac_install_sh="$ac_aux_dir/install-sh -c"
1655    break
1656  elif test -f $ac_dir/install.sh; then
1657    ac_aux_dir=$ac_dir
1658    ac_install_sh="$ac_aux_dir/install.sh -c"
1659    break
1660  elif test -f $ac_dir/shtool; then
1661    ac_aux_dir=$ac_dir
1662    ac_install_sh="$ac_aux_dir/shtool install -c"
1663    break
1664  fi
1665done
1666if test -z "$ac_aux_dir"; then
1667  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1668echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1669   { (exit 1); exit 1; }; }
1670fi
1671ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1672ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1673ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1674
1675# Make sure we can run config.sub.
1676$ac_config_sub sun4 >/dev/null 2>&1 ||
1677  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1678echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1679   { (exit 1); exit 1; }; }
1680
1681echo "$as_me:$LINENO: checking build system type" >&5
1682echo $ECHO_N "checking build system type... $ECHO_C" >&6
1683if test "${ac_cv_build+set}" = set; then
1684  echo $ECHO_N "(cached) $ECHO_C" >&6
1685else
1686  ac_cv_build_alias=$build_alias
1687test -z "$ac_cv_build_alias" &&
1688  ac_cv_build_alias=`$ac_config_guess`
1689test -z "$ac_cv_build_alias" &&
1690  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1691echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1692   { (exit 1); exit 1; }; }
1693ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1694  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1695echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1696   { (exit 1); exit 1; }; }
1697
1698fi
1699echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1700echo "${ECHO_T}$ac_cv_build" >&6
1701build=$ac_cv_build
1702build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1703build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1704build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1705
1706
1707
1708# If this project depends on external projects, the Externals file in
1709# the source root directory contains definition of where to find those
1710# externals.  The following macro ensures that those externals are
1711# retrieved by svn if they are not there yet.
1712# Initialize the ADDLIBS variable
1713ADDLIBS="-lm $LIBS"
1714
1715
1716# Initialize the FADDLIBS variable (which is to be used with a fortran
1717# compiler and will not include FLIBS)
1718FADDLIBS="$LIBS"
1719
1720
1721# A useful makefile conditional that is always false
1722
1723
1724if false; then
1725  ALWAYS_FALSE_TRUE=
1726  ALWAYS_FALSE_FALSE='#'
1727else
1728  ALWAYS_FALSE_TRUE='#'
1729  ALWAYS_FALSE_FALSE=
1730fi
1731
1732
1733# We set the following variable so that we know later in AC_COIN_FINALIZE
1734# that we are in a project main directory
1735coin_projectdir=yes
1736
1737
1738# Check if user wants to produce debugging code
1739
1740echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1741echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1742
1743# Check whether --enable-debug or --disable-debug was given.
1744if test "${enable_debug+set}" = set; then
1745  enableval="$enable_debug"
1746  case "${enableval}" in
1747   yes) coin_debug_compile=true
1748        enable_shared=no
1749        ;;
1750   no)  coin_debug_compile=false
1751        ;;
1752   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1753echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1754   { (exit 1); exit 1; }; }
1755        ;;
1756esac
1757else
1758  coin_debug_compile=false
1759fi;
1760
1761# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1762if test "${enable_debug_cbc+set}" = set; then
1763  enableval="$enable_debug_cbc"
1764  case "${enableval}" in
1765    yes) coin_debug_compile=true
1766         enable_shared=no
1767         ;;
1768    no)  coin_debug_compile=false
1769         ;;
1770    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1771echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1772   { (exit 1); exit 1; }; }
1773         ;;
1774 esac
1775else
1776  :
1777fi;
1778
1779 # m4_ifvaln([Cbc],
1780
1781if test $coin_debug_compile = true; then
1782  echo "$as_me:$LINENO: result: yes" >&5
1783echo "${ECHO_T}yes" >&6
1784else
1785  echo "$as_me:$LINENO: result: no" >&5
1786echo "${ECHO_T}no" >&6
1787fi
1788
1789
1790# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1791if test "${with_cbc_verbosity+set}" = set; then
1792  withval="$with_cbc_verbosity"
1793  coin_cbc_verbosity=$withval
1794else
1795  coin_cbc_verbosity=0
1796fi;
1797
1798cat >>confdefs.h <<_ACEOF
1799#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1800_ACEOF
1801
1802
1803
1804# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1805if test "${with_cbc_checklevel+set}" = set; then
1806  withval="$with_cbc_checklevel"
1807  coin_cbc_checklevel=$withval
1808else
1809  coin_cbc_checklevel=0
1810fi;
1811
1812cat >>confdefs.h <<_ACEOF
1813#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1814_ACEOF
1815
1816
1817# We use the following variable to have a string with the upper case
1818# version of the project name
1819COIN_PRJCT=CBC
1820
1821
1822 # m4_ifvaln([Cbc],
1823
1824
1825
1826# Get the name of the C++ compiler and appropriate compiler options
1827case $build in
1828  *-mingw*)
1829    if test "${LD+set}" = set; then :; else
1830      LD=link
1831    fi
1832    ;;
1833 esac
1834 case $enable_doscompile in
1835   msvc)
1836     if test "x${LD+set}" = xset; then :; else
1837       LD=link
1838     fi
1839     ;;
1840 esac
1841
1842
1843 # Check whether --enable-doscompile or --disable-doscompile was given.
1844if test "${enable_doscompile+set}" = set; then
1845  enableval="$enable_doscompile"
1846  if test "$enable_doscompile" != no; then
1847     case $build in
1848       *-cygwin*) ;;
1849       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin" >&5
1850echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin" >&2;}
1851   { (exit 1); exit 1; }; } ;;
1852     esac
1853   fi
1854else
1855  enable_doscompile=no
1856fi;
1857 case "$enable_doscompile" in
1858   msvc|mingw|no) ;;
1859   yes) enable_doscompile=mingw ;;
1860   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1861                    Try configure --help=recursive." >&5
1862echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1863                    Try configure --help=recursive." >&2;}
1864   { (exit 1); exit 1; }; }
1865      ;;
1866  esac
1867  if test "$enable_doscompile" != no ; then
1868    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1869echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1870  fi
1871
1872
1873
1874
1875ac_ext=c
1876ac_cpp='$CPP $CPPFLAGS'
1877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1879ac_compiler_gnu=$ac_cv_c_compiler_gnu
1880
1881
1882# For consistency, we set the C compiler to the same value of the C++
1883# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1884if test x"$CXX" != x; then
1885  case "$CXX" in
1886    cl* | */cl* | CL* | */CL*)
1887      if test x"$CC" = x; then
1888        CC="$CXX"
1889        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1890echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1891      fi
1892      ;;
1893  esac
1894fi
1895
1896
1897
1898
1899
1900
1901coin_has_cc=yes
1902
1903save_cflags="$CFLAGS"
1904# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
1905# ToDo: If Studio/Workshop cc is not present, we may find /usr/ucb/cc, which
1906# is likely to be a non-functional shell. But many installations will have
1907# both cc and gcc, so promoting gcc isn't good either. How to test reliably?
1908case $build in
1909  *-cygwin* | *-mingw*)
1910             if test "$enable_doscompile" = msvc ; then
1911               comps="cl"
1912             else
1913               comps="gcc cl"
1914             fi ;;
1915  sparc-sun-solaris*)
1916             comps="cc xlc gcc pgcc icc" ;;
1917  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1918  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1919esac
1920
1921# We delete the cached value, since the test might not have been
1922# performed with our choice of compilers earlier
1923$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1924# AC_MSG_NOTICE([C compiler candidates: $comps])
1925ac_ext=c
1926ac_cpp='$CPP $CPPFLAGS'
1927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1929ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930if test -n "$ac_tool_prefix"; then
1931  for ac_prog in $comps
1932  do
1933    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1934set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1935echo "$as_me:$LINENO: checking for $ac_word" >&5
1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937if test "${ac_cv_prog_CC+set}" = set; then
1938  echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940  if test -n "$CC"; then
1941  ac_cv_prog_CC="$CC" # Let the user override the test.
1942else
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946  IFS=$as_save_IFS
1947  test -z "$as_dir" && as_dir=.
1948  for ac_exec_ext in '' $ac_executable_extensions; do
1949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952    break 2
1953  fi
1954done
1955done
1956
1957fi
1958fi
1959CC=$ac_cv_prog_CC
1960if test -n "$CC"; then
1961  echo "$as_me:$LINENO: result: $CC" >&5
1962echo "${ECHO_T}$CC" >&6
1963else
1964  echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968    test -n "$CC" && break
1969  done
1970fi
1971if test -z "$CC"; then
1972  ac_ct_CC=$CC
1973  for ac_prog in $comps
1974do
1975  # Extract the first word of "$ac_prog", so it can be a program name with args.
1976set dummy $ac_prog; ac_word=$2
1977echo "$as_me:$LINENO: checking for $ac_word" >&5
1978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1980  echo $ECHO_N "(cached) $ECHO_C" >&6
1981else
1982  if test -n "$ac_ct_CC"; then
1983  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1984else
1985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986for as_dir in $PATH
1987do
1988  IFS=$as_save_IFS
1989  test -z "$as_dir" && as_dir=.
1990  for ac_exec_ext in '' $ac_executable_extensions; do
1991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992    ac_cv_prog_ac_ct_CC="$ac_prog"
1993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994    break 2
1995  fi
1996done
1997done
1998
1999fi
2000fi
2001ac_ct_CC=$ac_cv_prog_ac_ct_CC
2002if test -n "$ac_ct_CC"; then
2003  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2004echo "${ECHO_T}$ac_ct_CC" >&6
2005else
2006  echo "$as_me:$LINENO: result: no" >&5
2007echo "${ECHO_T}no" >&6
2008fi
2009
2010  test -n "$ac_ct_CC" && break
2011done
2012
2013  CC=$ac_ct_CC
2014fi
2015
2016
2017test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2018See \`config.log' for more details." >&5
2019echo "$as_me: error: no acceptable C compiler found in \$PATH
2020See \`config.log' for more details." >&2;}
2021   { (exit 1); exit 1; }; }
2022
2023# Provide some information about the compiler.
2024echo "$as_me:$LINENO:" \
2025     "checking for C compiler version" >&5
2026ac_compiler=`set X $ac_compile; echo $2`
2027{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2028  (eval $ac_compiler --version </dev/null >&5) 2>&5
2029  ac_status=$?
2030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031  (exit $ac_status); }
2032{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2033  (eval $ac_compiler -v </dev/null >&5) 2>&5
2034  ac_status=$?
2035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2036  (exit $ac_status); }
2037{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2038  (eval $ac_compiler -V </dev/null >&5) 2>&5
2039  ac_status=$?
2040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041  (exit $ac_status); }
2042
2043cat >conftest.$ac_ext <<_ACEOF
2044/* confdefs.h.  */
2045_ACEOF
2046cat confdefs.h >>conftest.$ac_ext
2047cat >>conftest.$ac_ext <<_ACEOF
2048/* end confdefs.h.  */
2049
2050int
2051main ()
2052{
2053
2054  ;
2055  return 0;
2056}
2057_ACEOF
2058ac_clean_files_save=$ac_clean_files
2059ac_clean_files="$ac_clean_files a.out a.exe b.out"
2060# Try to create an executable without -o first, disregard a.out.
2061# It will help us diagnose broken compilers, and finding out an intuition
2062# of exeext.
2063echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2064echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2065ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2066if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2067  (eval $ac_link_default) 2>&5
2068  ac_status=$?
2069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070  (exit $ac_status); }; then
2071  # Find the output, starting from the most likely.  This scheme is
2072# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2073# resort.
2074
2075# Be careful to initialize this variable, since it used to be cached.
2076# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2077ac_cv_exeext=
2078# b.out is created by i960 compilers.
2079for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2080do
2081  test -f "$ac_file" || continue
2082  case $ac_file in
2083    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2084        ;;
2085    conftest.$ac_ext )
2086        # This is the source file.
2087        ;;
2088    [ab].out )
2089        # We found the default executable, but exeext='' is most
2090        # certainly right.
2091        break;;
2092    *.* )
2093        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2094        # FIXME: I believe we export ac_cv_exeext for Libtool,
2095        # but it would be cool to find out if it's true.  Does anybody
2096        # maintain Libtool? --akim.
2097        export ac_cv_exeext
2098        break;;
2099    * )
2100        break;;
2101  esac
2102done
2103else
2104  echo "$as_me: failed program was:" >&5
2105sed 's/^/| /' conftest.$ac_ext >&5
2106
2107{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2108See \`config.log' for more details." >&5
2109echo "$as_me: error: C compiler cannot create executables
2110See \`config.log' for more details." >&2;}
2111   { (exit 77); exit 77; }; }
2112fi
2113
2114ac_exeext=$ac_cv_exeext
2115echo "$as_me:$LINENO: result: $ac_file" >&5
2116echo "${ECHO_T}$ac_file" >&6
2117
2118# Check the compiler produces executables we can run.  If not, either
2119# the compiler is broken, or we cross compile.
2120echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2121echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2122# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2123# If not cross compiling, check that we can run a simple program.
2124if test "$cross_compiling" != yes; then
2125  if { ac_try='./$ac_file'
2126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127  (eval $ac_try) 2>&5
2128  ac_status=$?
2129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130  (exit $ac_status); }; }; then
2131    cross_compiling=no
2132  else
2133    if test "$cross_compiling" = maybe; then
2134        cross_compiling=yes
2135    else
2136        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2137If you meant to cross compile, use \`--host'.
2138See \`config.log' for more details." >&5
2139echo "$as_me: error: cannot run C compiled programs.
2140If you meant to cross compile, use \`--host'.
2141See \`config.log' for more details." >&2;}
2142   { (exit 1); exit 1; }; }
2143    fi
2144  fi
2145fi
2146echo "$as_me:$LINENO: result: yes" >&5
2147echo "${ECHO_T}yes" >&6
2148
2149rm -f a.out a.exe conftest$ac_cv_exeext b.out
2150ac_clean_files=$ac_clean_files_save
2151# Check the compiler produces executables we can run.  If not, either
2152# the compiler is broken, or we cross compile.
2153echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2154echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2155echo "$as_me:$LINENO: result: $cross_compiling" >&5
2156echo "${ECHO_T}$cross_compiling" >&6
2157
2158echo "$as_me:$LINENO: checking for suffix of executables" >&5
2159echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2161  (eval $ac_link) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }; then
2165  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2166# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2167# work properly (i.e., refer to `conftest.exe'), while it won't with
2168# `rm'.
2169for ac_file in conftest.exe conftest conftest.*; do
2170  test -f "$ac_file" || continue
2171  case $ac_file in
2172    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2173    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2174          export ac_cv_exeext
2175          break;;
2176    * ) break;;
2177  esac
2178done
2179else
2180  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2181See \`config.log' for more details." >&5
2182echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2183See \`config.log' for more details." >&2;}
2184   { (exit 1); exit 1; }; }
2185fi
2186
2187rm -f conftest$ac_cv_exeext
2188echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2189echo "${ECHO_T}$ac_cv_exeext" >&6
2190
2191rm -f conftest.$ac_ext
2192EXEEXT=$ac_cv_exeext
2193ac_exeext=$EXEEXT
2194echo "$as_me:$LINENO: checking for suffix of object files" >&5
2195echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2196if test "${ac_cv_objext+set}" = set; then
2197  echo $ECHO_N "(cached) $ECHO_C" >&6
2198else
2199  cat >conftest.$ac_ext <<_ACEOF
2200/* confdefs.h.  */
2201_ACEOF
2202cat confdefs.h >>conftest.$ac_ext
2203cat >>conftest.$ac_ext <<_ACEOF
2204/* end confdefs.h.  */
2205
2206int
2207main ()
2208{
2209
2210  ;
2211  return 0;
2212}
2213_ACEOF
2214rm -f conftest.o conftest.obj
2215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216  (eval $ac_compile) 2>&5
2217  ac_status=$?
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); }; then
2220  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2221  case $ac_file in
2222    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2223    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2224       break;;
2225  esac
2226done
2227else
2228  echo "$as_me: failed program was:" >&5
2229sed 's/^/| /' conftest.$ac_ext >&5
2230
2231{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2232See \`config.log' for more details." >&5
2233echo "$as_me: error: cannot compute suffix of object files: cannot compile
2234See \`config.log' for more details." >&2;}
2235   { (exit 1); exit 1; }; }
2236fi
2237
2238rm -f conftest.$ac_cv_objext conftest.$ac_ext
2239fi
2240echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2241echo "${ECHO_T}$ac_cv_objext" >&6
2242OBJEXT=$ac_cv_objext
2243ac_objext=$OBJEXT
2244echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2245echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2246if test "${ac_cv_c_compiler_gnu+set}" = set; then
2247  echo $ECHO_N "(cached) $ECHO_C" >&6
2248else
2249  cat >conftest.$ac_ext <<_ACEOF
2250/* confdefs.h.  */
2251_ACEOF
2252cat confdefs.h >>conftest.$ac_ext
2253cat >>conftest.$ac_ext <<_ACEOF
2254/* end confdefs.h.  */
2255
2256int
2257main ()
2258{
2259#ifndef __GNUC__
2260       choke me
2261#endif
2262
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267rm -f conftest.$ac_objext
2268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269  (eval $ac_compile) 2>conftest.er1
2270  ac_status=$?
2271  grep -v '^ *+' conftest.er1 >conftest.err
2272  rm -f conftest.er1
2273  cat conftest.err >&5
2274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275  (exit $ac_status); } &&
2276         { ac_try='test -z "$ac_c_werror_flag"
2277                         || test ! -s conftest.err'
2278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279  (eval $ac_try) 2>&5
2280  ac_status=$?
2281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282  (exit $ac_status); }; } &&
2283         { ac_try='test -s conftest.$ac_objext'
2284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285  (eval $ac_try) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }; }; then
2289  ac_compiler_gnu=yes
2290else
2291  echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
2293
2294ac_compiler_gnu=no
2295fi
2296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2297ac_cv_c_compiler_gnu=$ac_compiler_gnu
2298
2299fi
2300echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2301echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2302GCC=`test $ac_compiler_gnu = yes && echo yes`
2303ac_test_CFLAGS=${CFLAGS+set}
2304ac_save_CFLAGS=$CFLAGS
2305CFLAGS="-g"
2306echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2307echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2308if test "${ac_cv_prog_cc_g+set}" = set; then
2309  echo $ECHO_N "(cached) $ECHO_C" >&6
2310else
2311  cat >conftest.$ac_ext <<_ACEOF
2312/* confdefs.h.  */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
2316/* end confdefs.h.  */
2317
2318int
2319main ()
2320{
2321
2322  ;
2323  return 0;
2324}
2325_ACEOF
2326rm -f conftest.$ac_objext
2327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328  (eval $ac_compile) 2>conftest.er1
2329  ac_status=$?
2330  grep -v '^ *+' conftest.er1 >conftest.err
2331  rm -f conftest.er1
2332  cat conftest.err >&5
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); } &&
2335         { ac_try='test -z "$ac_c_werror_flag"
2336                         || test ! -s conftest.err'
2337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338  (eval $ac_try) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; } &&
2342         { ac_try='test -s conftest.$ac_objext'
2343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344  (eval $ac_try) 2>&5
2345  ac_status=$?
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); }; }; then
2348  ac_cv_prog_cc_g=yes
2349else
2350  echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353ac_cv_prog_cc_g=no
2354fi
2355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2356fi
2357echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2358echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2359if test "$ac_test_CFLAGS" = set; then
2360  CFLAGS=$ac_save_CFLAGS
2361elif test $ac_cv_prog_cc_g = yes; then
2362  if test "$GCC" = yes; then
2363    CFLAGS="-g -O2"
2364  else
2365    CFLAGS="-g"
2366  fi
2367else
2368  if test "$GCC" = yes; then
2369    CFLAGS="-O2"
2370  else
2371    CFLAGS=
2372  fi
2373fi
2374echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2375echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2376if test "${ac_cv_prog_cc_stdc+set}" = set; then
2377  echo $ECHO_N "(cached) $ECHO_C" >&6
2378else
2379  ac_cv_prog_cc_stdc=no
2380ac_save_CC=$CC
2381cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387#include <stdarg.h>
2388#include <stdio.h>
2389#include <sys/types.h>
2390#include <sys/stat.h>
2391/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2392struct buf { int x; };
2393FILE * (*rcsopen) (struct buf *, struct stat *, int);
2394static char *e (p, i)
2395     char **p;
2396     int i;
2397{
2398  return p[i];
2399}
2400static char *f (char * (*g) (char **, int), char **p, ...)
2401{
2402  char *s;
2403  va_list v;
2404  va_start (v,p);
2405  s = g (p, va_arg (v,int));
2406  va_end (v);
2407  return s;
2408}
2409
2410/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2411   function prototypes and stuff, but not '\xHH' hex character constants.
2412   These don't provoke an error unfortunately, instead are silently treated
2413   as 'x'.  The following induces an error, until -std1 is added to get
2414   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2415   array size at least.  It's necessary to write '\x00'==0 to get something
2416   that's true only with -std1.  */
2417int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2418
2419int test (int i, double x);
2420struct s1 {int (*f) (int a);};
2421struct s2 {int (*f) (double a);};
2422int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2423int argc;
2424char **argv;
2425int
2426main ()
2427{
2428return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2429  ;
2430  return 0;
2431}
2432_ACEOF
2433# Don't try gcc -ansi; that turns off useful extensions and
2434# breaks some systems' header files.
2435# AIX                   -qlanglvl=ansi
2436# Ultrix and OSF/1      -std1
2437# HP-UX 10.20 and later -Ae
2438# HP-UX older versions  -Aa -D_HPUX_SOURCE
2439# SVR4                  -Xc -D__EXTENSIONS__
2440for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2441do
2442  CC="$ac_save_CC $ac_arg"
2443  rm -f conftest.$ac_objext
2444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2445  (eval $ac_compile) 2>conftest.er1
2446  ac_status=$?
2447  grep -v '^ *+' conftest.er1 >conftest.err
2448  rm -f conftest.er1
2449  cat conftest.err >&5
2450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451  (exit $ac_status); } &&
2452         { ac_try='test -z "$ac_c_werror_flag"
2453                         || test ! -s conftest.err'
2454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2455  (eval $ac_try) 2>&5
2456  ac_status=$?
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); }; } &&
2459         { ac_try='test -s conftest.$ac_objext'
2460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461  (eval $ac_try) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; }; then
2465  ac_cv_prog_cc_stdc=$ac_arg
2466break
2467else
2468  echo "$as_me: failed program was:" >&5
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
2471fi
2472rm -f conftest.err conftest.$ac_objext
2473done
2474rm -f conftest.$ac_ext conftest.$ac_objext
2475CC=$ac_save_CC
2476
2477fi
2478
2479case "x$ac_cv_prog_cc_stdc" in
2480  x|xno)
2481    echo "$as_me:$LINENO: result: none needed" >&5
2482echo "${ECHO_T}none needed" >&6 ;;
2483  *)
2484    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2485echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2486    CC="$CC $ac_cv_prog_cc_stdc" ;;
2487esac
2488
2489# Some people use a C++ compiler to compile C.  Since we use `exit',
2490# in C++ we need to declare it.  In case someone uses the same compiler
2491# for both compiling C and C++ we need to have the C++ compiler decide
2492# the declaration of exit, since it's the most demanding environment.
2493cat >conftest.$ac_ext <<_ACEOF
2494#ifndef __cplusplus
2495  choke me
2496#endif
2497_ACEOF
2498rm -f conftest.$ac_objext
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500  (eval $ac_compile) 2>conftest.er1
2501  ac_status=$?
2502  grep -v '^ *+' conftest.er1 >conftest.err
2503  rm -f conftest.er1
2504  cat conftest.err >&5
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); } &&
2507         { ac_try='test -z "$ac_c_werror_flag"
2508                         || test ! -s conftest.err'
2509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510  (eval $ac_try) 2>&5
2511  ac_status=$?
2512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513  (exit $ac_status); }; } &&
2514         { ac_try='test -s conftest.$ac_objext'
2515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516  (eval $ac_try) 2>&5
2517  ac_status=$?
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); }; }; then
2520  for ac_declaration in \
2521   '' \
2522   'extern "C" void std::exit (int) throw (); using std::exit;' \
2523   'extern "C" void std::exit (int); using std::exit;' \
2524   'extern "C" void exit (int) throw ();' \
2525   'extern "C" void exit (int);' \
2526   'void exit (int);'
2527do
2528  cat >conftest.$ac_ext <<_ACEOF
2529/* confdefs.h.  */
2530_ACEOF
2531cat confdefs.h >>conftest.$ac_ext
2532cat >>conftest.$ac_ext <<_ACEOF
2533/* end confdefs.h.  */
2534$ac_declaration
2535#include <stdlib.h>
2536int
2537main ()
2538{
2539exit (42);
2540  ;
2541  return 0;
2542}
2543_ACEOF
2544rm -f conftest.$ac_objext
2545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546  (eval $ac_compile) 2>conftest.er1
2547  ac_status=$?
2548  grep -v '^ *+' conftest.er1 >conftest.err
2549  rm -f conftest.er1
2550  cat conftest.err >&5
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); } &&
2553         { ac_try='test -z "$ac_c_werror_flag"
2554                         || test ! -s conftest.err'
2555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556  (eval $ac_try) 2>&5
2557  ac_status=$?
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); }; } &&
2560         { ac_try='test -s conftest.$ac_objext'
2561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562  (eval $ac_try) 2>&5
2563  ac_status=$?
2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565  (exit $ac_status); }; }; then
2566  :
2567else
2568  echo "$as_me: failed program was:" >&5
2569sed 's/^/| /' conftest.$ac_ext >&5
2570
2571continue
2572fi
2573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574  cat >conftest.$ac_ext <<_ACEOF
2575/* confdefs.h.  */
2576_ACEOF
2577cat confdefs.h >>conftest.$ac_ext
2578cat >>conftest.$ac_ext <<_ACEOF
2579/* end confdefs.h.  */
2580$ac_declaration
2581int
2582main ()
2583{
2584exit (42);
2585  ;
2586  return 0;
2587}
2588_ACEOF
2589rm -f conftest.$ac_objext
2590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591  (eval $ac_compile) 2>conftest.er1
2592  ac_status=$?
2593  grep -v '^ *+' conftest.er1 >conftest.err
2594  rm -f conftest.er1
2595  cat conftest.err >&5
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); } &&
2598         { ac_try='test -z "$ac_c_werror_flag"
2599                         || test ! -s conftest.err'
2600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601  (eval $ac_try) 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }; } &&
2605         { ac_try='test -s conftest.$ac_objext'
2606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607  (eval $ac_try) 2>&5
2608  ac_status=$?
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); }; }; then
2611  break
2612else
2613  echo "$as_me: failed program was:" >&5
2614sed 's/^/| /' conftest.$ac_ext >&5
2615
2616fi
2617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618done
2619rm -f conftest*
2620if test -n "$ac_declaration"; then
2621  echo '#ifdef __cplusplus' >>confdefs.h
2622  echo $ac_declaration      >>confdefs.h
2623  echo '#endif'             >>confdefs.h
2624fi
2625
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630fi
2631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2632ac_ext=c
2633ac_cpp='$CPP $CPPFLAGS'
2634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637
2638if test -z "$CC" ; then
2639  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2640echo "$as_me: error: Failed to find a C compiler!" >&2;}
2641   { (exit 1); exit 1; }; }
2642fi
2643# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2644case "$CC" in
2645  cl* | */cl* | CL* | */CL* )
2646    if test "$ac_cv_prog_cc_g" = yes ; then
2647      ac_cv_prog_cc_g=no
2648      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2649echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2650    fi ;;
2651esac
2652CFLAGS="$save_cflags"
2653
2654# Check if a project specific CFLAGS variable has been set
2655if test x$COIN_PRJCT != x; then
2656  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2657  if test x$coin_tmp = xset; then
2658    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2659  fi
2660fi
2661
2662if test x"$CFLAGS" = x; then
2663
2664  coin_add_cflags=
2665  coin_opt_cflags=
2666  coin_dbg_cflags=
2667  coin_warn_cflags=
2668
2669  if test "$GCC" = "yes"; then
2670    case "$CC" in
2671      icc* | */icc*)
2672        ;;
2673      *)
2674        coin_opt_cflags="-O3 -fomit-frame-pointer"
2675        coin_add_cflags="-pipe"
2676        coin_dbg_cflags="-g"
2677        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2678        case $enable_doscompile in
2679          mingw)
2680            CFLAGS="-mno-cygwin"
2681            cat >conftest.$ac_ext <<_ACEOF
2682/* confdefs.h.  */
2683_ACEOF
2684cat confdefs.h >>conftest.$ac_ext
2685cat >>conftest.$ac_ext <<_ACEOF
2686/* end confdefs.h.  */
2687
2688int
2689main ()
2690{
2691int i=0; i++;
2692  ;
2693  return 0;
2694}
2695_ACEOF
2696rm -f conftest.$ac_objext conftest$ac_exeext
2697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2698  (eval $ac_link) 2>conftest.er1
2699  ac_status=$?
2700  grep -v '^ *+' conftest.er1 >conftest.err
2701  rm -f conftest.er1
2702  cat conftest.err >&5
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); } &&
2705         { ac_try='test -z "$ac_c_werror_flag"
2706                         || test ! -s conftest.err'
2707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708  (eval $ac_try) 2>&5
2709  ac_status=$?
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); }; } &&
2712         { ac_try='test -s conftest$ac_exeext'
2713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714  (eval $ac_try) 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }; }; then
2718  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2719else
2720  echo "$as_me: failed program was:" >&5
2721sed 's/^/| /' conftest.$ac_ext >&5
2722
2723fi
2724rm -f conftest.err conftest.$ac_objext \
2725      conftest$ac_exeext conftest.$ac_ext
2726            CFLAGS=
2727          ;;
2728        esac
2729    esac
2730  fi
2731  if test -z "$coin_opt_cflags"; then
2732    case $build in
2733      *-cygwin* | *-mingw*)
2734        case "$CC" in
2735          cl* | */cl* | CL* | */CL*)
2736            coin_opt_cflags='-MT -O2'
2737            coin_add_cflags='-nologo -wd4996'
2738            coin_dbg_cflags='-MTd'
2739            ;;
2740        esac
2741        ;;
2742      *-linux-*)
2743        case "$CC" in
2744          icc* | */icc*)
2745            coin_opt_cflags="-O3 -ip"
2746            coin_add_cflags=""
2747            coin_dbg_cflags="-g"
2748            # Check if -i_dynamic is necessary (for new glibc library)
2749            CFLAGS=
2750            cat >conftest.$ac_ext <<_ACEOF
2751/* confdefs.h.  */
2752_ACEOF
2753cat confdefs.h >>conftest.$ac_ext
2754cat >>conftest.$ac_ext <<_ACEOF
2755/* end confdefs.h.  */
2756
2757int
2758main ()
2759{
2760int i=0; i++;
2761  ;
2762  return 0;
2763}
2764_ACEOF
2765rm -f conftest.$ac_objext conftest$ac_exeext
2766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2767  (eval $ac_link) 2>conftest.er1
2768  ac_status=$?
2769  grep -v '^ *+' conftest.er1 >conftest.err
2770  rm -f conftest.er1
2771  cat conftest.err >&5
2772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773  (exit $ac_status); } &&
2774         { ac_try='test -z "$ac_c_werror_flag"
2775                         || test ! -s conftest.err'
2776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777  (eval $ac_try) 2>&5
2778  ac_status=$?
2779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780  (exit $ac_status); }; } &&
2781         { ac_try='test -s conftest$ac_exeext'
2782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783  (eval $ac_try) 2>&5
2784  ac_status=$?
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); }; }; then
2787  :
2788else
2789  echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792coin_add_cflags="-i_dynamic $coin_add_cflags"
2793fi
2794rm -f conftest.err conftest.$ac_objext \
2795      conftest$ac_exeext conftest.$ac_ext
2796            ;;
2797          pgcc* | */pgcc*)
2798            coin_opt_cflags="-fast"
2799            coin_add_cflags="-Kieee -pc 64"
2800            coin_dbg_cflags="-g"
2801            ;;
2802        esac
2803        ;;
2804      *-ibm-*)
2805        case "$CC" in
2806          xlc* | */xlc* | mpxlc* | */mpxlc*)
2807            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2808            coin_add_cflags="-bmaxdata:0x80000000"
2809            coin_dbg_cflags="-g"
2810          ;;
2811        esac
2812        ;;
2813      *-hp-*)
2814        coin_opt_cflags="-O"
2815        coin_add_cflags="-Ae"
2816        coin_dbg_cflags="-g"
2817        ;;
2818      *-sun-*)
2819        coin_opt_cflags="-xO4"
2820        coin_dbg_cflags="-g"
2821        ;;
2822      *-sgi-*)
2823        coin_opt_cflags="-O -OPT:Olimit=0"
2824        coin_dbg_cflags="-g"
2825        ;;
2826    esac
2827  fi
2828
2829  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2830    coin_dbg_cflags="-g"
2831  fi
2832
2833  if test -z "$coin_opt_cflags"; then
2834    # Try if -O option works if nothing else is set
2835    CFLAGS="-O"
2836    cat >conftest.$ac_ext <<_ACEOF
2837/* confdefs.h.  */
2838_ACEOF
2839cat confdefs.h >>conftest.$ac_ext
2840cat >>conftest.$ac_ext <<_ACEOF
2841/* end confdefs.h.  */
2842
2843int
2844main ()
2845{
2846int i=0; i++;
2847  ;
2848  return 0;
2849}
2850_ACEOF
2851rm -f conftest.$ac_objext conftest$ac_exeext
2852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2853  (eval $ac_link) 2>conftest.er1
2854  ac_status=$?
2855  grep -v '^ *+' conftest.er1 >conftest.err
2856  rm -f conftest.er1
2857  cat conftest.err >&5
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); } &&
2860         { ac_try='test -z "$ac_c_werror_flag"
2861                         || test ! -s conftest.err'
2862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863  (eval $ac_try) 2>&5
2864  ac_status=$?
2865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866  (exit $ac_status); }; } &&
2867         { ac_try='test -s conftest$ac_exeext'
2868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2869  (eval $ac_try) 2>&5
2870  ac_status=$?
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); }; }; then
2873  coin_opt_cflags="-O"
2874else
2875  echo "$as_me: failed program was:" >&5
2876sed 's/^/| /' conftest.$ac_ext >&5
2877
2878fi
2879rm -f conftest.err conftest.$ac_objext \
2880      conftest$ac_exeext conftest.$ac_ext
2881  fi
2882
2883  # if PM doesn't want the warning messages, take them out
2884  if test x"$coin_skip_warn_cflags" = xyes; then
2885    coin_warn_cflags=
2886  fi
2887
2888  if test x${DBG_CFLAGS+set} != xset; then
2889    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2890  fi
2891  if test x${OPT_CFLAGS+set} != xset; then
2892    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2893  fi
2894
2895  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2896  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2897
2898  if test "$coin_debug_compile" = "true"; then
2899    CFLAGS="$DBG_CFLAGS"
2900  else
2901    CFLAGS="$OPT_CFLAGS"
2902  fi
2903else
2904  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2905  if test x${DBG_CFLAGS+set} != xset; then
2906    DBG_CFLAGS="$CFLAGS"
2907  fi
2908  if test x${OPT_CFLAGS+set} != xset; then
2909    OPT_CFLAGS="$CFLAGS"
2910  fi
2911fi
2912
2913# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2914
2915case "$CFLAGS" in
2916  *-mno-cygwin*)
2917    if test x${CPPFLAGS+set} != xset ; then
2918      CPPFLAGS="-mno-cygwin"
2919    else
2920      case "$CPPFLAGS" in
2921        *-mno-cygwin*)
2922          ;;
2923        *)
2924          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2925          ;;
2926      esac
2927    fi ;;
2928esac
2929
2930# Try if CFLAGS works
2931save_CFLAGS="$CFLAGS"
2932cat >conftest.$ac_ext <<_ACEOF
2933/* confdefs.h.  */
2934_ACEOF
2935cat confdefs.h >>conftest.$ac_ext
2936cat >>conftest.$ac_ext <<_ACEOF
2937/* end confdefs.h.  */
2938
2939int
2940main ()
2941{
2942int i=0; i++;
2943  ;
2944  return 0;
2945}
2946_ACEOF
2947rm -f conftest.$ac_objext conftest$ac_exeext
2948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2949  (eval $ac_link) 2>conftest.er1
2950  ac_status=$?
2951  grep -v '^ *+' conftest.er1 >conftest.err
2952  rm -f conftest.er1
2953  cat conftest.err >&5
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); } &&
2956         { ac_try='test -z "$ac_c_werror_flag"
2957                         || test ! -s conftest.err'
2958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959  (eval $ac_try) 2>&5
2960  ac_status=$?
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); }; } &&
2963         { ac_try='test -s conftest$ac_exeext'
2964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965  (eval $ac_try) 2>&5
2966  ac_status=$?
2967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968  (exit $ac_status); }; }; then
2969  :
2970else
2971  echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974CFLAGS=
2975fi
2976rm -f conftest.err conftest.$ac_objext \
2977      conftest$ac_exeext conftest.$ac_ext
2978if test -z "$CFLAGS"; then
2979  { 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
2980echo "$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;}
2981  CFLAGS='-O'
2982  cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h.  */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h.  */
2988
2989int
2990main ()
2991{
2992int i=0; i++;
2993  ;
2994  return 0;
2995}
2996_ACEOF
2997rm -f conftest.$ac_objext conftest$ac_exeext
2998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2999  (eval $ac_link) 2>conftest.er1
3000  ac_status=$?
3001  grep -v '^ *+' conftest.er1 >conftest.err
3002  rm -f conftest.er1
3003  cat conftest.err >&5
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); } &&
3006         { ac_try='test -z "$ac_c_werror_flag"
3007                         || test ! -s conftest.err'
3008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009  (eval $ac_try) 2>&5
3010  ac_status=$?
3011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012  (exit $ac_status); }; } &&
3013         { ac_try='test -s conftest$ac_exeext'
3014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015  (eval $ac_try) 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; }; then
3019  :
3020else
3021  echo "$as_me: failed program was:" >&5
3022sed 's/^/| /' conftest.$ac_ext >&5
3023
3024CFLAGS=
3025fi
3026rm -f conftest.err conftest.$ac_objext \
3027      conftest$ac_exeext conftest.$ac_ext
3028  if test -z "$CFLAGS"; then
3029    { 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
3030echo "$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;}
3031  fi
3032fi
3033
3034{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3035echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3036
3037
3038if test x"$MPICC" = x; then :; else
3039  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3040echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3041  CC="$MPICC"
3042fi
3043
3044# Correct ADDLIBS initialization if we are using the MS compiler
3045case "$CC" in
3046  cl* | */cl* | CL* | */CL*)
3047    ADDLIBS=
3048    case $build in
3049  *-mingw*)
3050    if test "${LD+set}" = set; then :; else
3051      LD=link
3052    fi
3053    ;;
3054 esac
3055 case $enable_doscompile in
3056   msvc)
3057     if test "x${LD+set}" = xset; then :; else
3058       LD=link
3059     fi
3060     ;;
3061 esac
3062
3063    ;;
3064esac
3065
3066ac_ext=c
3067ac_cpp='$CPP $CPPFLAGS'
3068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070ac_compiler_gnu=$ac_cv_c_compiler_gnu
3071
3072
3073
3074 #Let's try if that overcomes configuration problem with VC++ 6.0
3075
3076ac_ext=cc
3077ac_cpp='$CXXCPP $CPPFLAGS'
3078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3081
3082
3083
3084
3085
3086
3087
3088coin_has_cxx=yes
3089
3090save_cxxflags="$CXXFLAGS"
3091# For sparc-sun-solaris, promote Studio/Workshop compiler to front of list.
3092case $build in
3093  *-cygwin* | *-mingw*)
3094             if test "$enable_doscompile" = msvc ; then
3095               comps="cl"
3096             else
3097               comps="g++ cl"
3098             fi ;;
3099  sparc-sun-solaris*)
3100             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3101  *-darwin*) comps="g++ c++ CC" ;;
3102          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3103esac
3104
3105# We delete the cached value, since the test might not have been
3106# performed with our choice of compilers earlier
3107$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3108# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3109ac_ext=cc
3110ac_cpp='$CXXCPP $CPPFLAGS'
3111ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3114if test -n "$ac_tool_prefix"; then
3115  for ac_prog in $CCC $comps
3116  do
3117    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3118set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3119echo "$as_me:$LINENO: checking for $ac_word" >&5
3120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3121if test "${ac_cv_prog_CXX+set}" = set; then
3122  echo $ECHO_N "(cached) $ECHO_C" >&6
3123else
3124  if test -n "$CXX"; then
3125  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3126else
3127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3128for as_dir in $PATH
3129do
3130  IFS=$as_save_IFS
3131  test -z "$as_dir" && as_dir=.
3132  for ac_exec_ext in '' $ac_executable_extensions; do
3133  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136    break 2
3137  fi
3138done
3139done
3140
3141fi
3142fi
3143CXX=$ac_cv_prog_CXX
3144if test -n "$CXX"; then
3145  echo "$as_me:$LINENO: result: $CXX" >&5
3146echo "${ECHO_T}$CXX" >&6
3147else
3148  echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3150fi
3151
3152    test -n "$CXX" && break
3153  done
3154fi
3155if test -z "$CXX"; then
3156  ac_ct_CXX=$CXX
3157  for ac_prog in $CCC $comps
3158do
3159  # Extract the first word of "$ac_prog", so it can be a program name with args.
3160set dummy $ac_prog; ac_word=$2
3161echo "$as_me:$LINENO: checking for $ac_word" >&5
3162echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3164  echo $ECHO_N "(cached) $ECHO_C" >&6
3165else
3166  if test -n "$ac_ct_CXX"; then
3167  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172  IFS=$as_save_IFS
3173  test -z "$as_dir" && as_dir=.
3174  for ac_exec_ext in '' $ac_executable_extensions; do
3175  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176    ac_cv_prog_ac_ct_CXX="$ac_prog"
3177    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178    break 2
3179  fi
3180done
3181done
3182
3183fi
3184fi
3185ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3186if test -n "$ac_ct_CXX"; then
3187  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3188echo "${ECHO_T}$ac_ct_CXX" >&6
3189else
3190  echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3192fi
3193
3194  test -n "$ac_ct_CXX" && break
3195done
3196test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3197
3198  CXX=$ac_ct_CXX
3199fi
3200
3201
3202# Provide some information about the compiler.
3203echo "$as_me:$LINENO:" \
3204     "checking for C++ compiler version" >&5
3205ac_compiler=`set X $ac_compile; echo $2`
3206{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3207  (eval $ac_compiler --version </dev/null >&5) 2>&5
3208  ac_status=$?
3209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); }
3211{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3212  (eval $ac_compiler -v </dev/null >&5) 2>&5
3213  ac_status=$?
3214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215  (exit $ac_status); }
3216{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3217  (eval $ac_compiler -V </dev/null >&5) 2>&5
3218  ac_status=$?
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); }
3221
3222echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3223echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3224if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3225  echo $ECHO_N "(cached) $ECHO_C" >&6
3226else
3227  cat >conftest.$ac_ext <<_ACEOF
3228/* confdefs.h.  */
3229_ACEOF
3230cat confdefs.h >>conftest.$ac_ext
3231cat >>conftest.$ac_ext <<_ACEOF
3232/* end confdefs.h.  */
3233
3234int
3235main ()
3236{
3237#ifndef __GNUC__
3238       choke me
3239#endif
3240
3241  ;
3242  return 0;
3243}
3244_ACEOF
3245rm -f conftest.$ac_objext
3246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3247  (eval $ac_compile) 2>conftest.er1
3248  ac_status=$?
3249  grep -v '^ *+' conftest.er1 >conftest.err
3250  rm -f conftest.er1
3251  cat conftest.err >&5
3252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253  (exit $ac_status); } &&
3254         { ac_try='test -z "$ac_cxx_werror_flag"
3255                         || test ! -s conftest.err'
3256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257  (eval $ac_try) 2>&5
3258  ac_status=$?
3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260  (exit $ac_status); }; } &&
3261         { ac_try='test -s conftest.$ac_objext'
3262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263  (eval $ac_try) 2>&5
3264  ac_status=$?
3265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266  (exit $ac_status); }; }; then
3267  ac_compiler_gnu=yes
3268else
3269  echo "$as_me: failed program was:" >&5
3270sed 's/^/| /' conftest.$ac_ext >&5
3271
3272ac_compiler_gnu=no
3273fi
3274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3275ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3276
3277fi
3278echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3279echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3280GXX=`test $ac_compiler_gnu = yes && echo yes`
3281ac_test_CXXFLAGS=${CXXFLAGS+set}
3282ac_save_CXXFLAGS=$CXXFLAGS
3283CXXFLAGS="-g"
3284echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3285echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3286if test "${ac_cv_prog_cxx_g+set}" = set; then
3287  echo $ECHO_N "(cached) $ECHO_C" >&6
3288else
3289  cat >conftest.$ac_ext <<_ACEOF
3290/* confdefs.h.  */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h.  */
3295
3296int
3297main ()
3298{
3299
3300  ;
3301  return 0;
3302}
3303_ACEOF
3304rm -f conftest.$ac_objext
3305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306  (eval $ac_compile) 2>conftest.er1
3307  ac_status=$?
3308  grep -v '^ *+' conftest.er1 >conftest.err
3309  rm -f conftest.er1
3310  cat conftest.err >&5
3311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312  (exit $ac_status); } &&
3313         { ac_try='test -z "$ac_cxx_werror_flag"
3314                         || test ! -s conftest.err'
3315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316  (eval $ac_try) 2>&5
3317  ac_status=$?
3318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319  (exit $ac_status); }; } &&
3320         { ac_try='test -s conftest.$ac_objext'
3321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322  (eval $ac_try) 2>&5
3323  ac_status=$?
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); }; }; then
3326  ac_cv_prog_cxx_g=yes
3327else
3328  echo "$as_me: failed program was:" >&5
3329sed 's/^/| /' conftest.$ac_ext >&5
3330
3331ac_cv_prog_cxx_g=no
3332fi
3333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3334fi
3335echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3336echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3337if test "$ac_test_CXXFLAGS" = set; then
3338  CXXFLAGS=$ac_save_CXXFLAGS
3339elif test $ac_cv_prog_cxx_g = yes; then
3340  if test "$GXX" = yes; then
3341    CXXFLAGS="-g -O2"
3342  else
3343    CXXFLAGS="-g"
3344  fi
3345else
3346  if test "$GXX" = yes; then
3347    CXXFLAGS="-O2"
3348  else
3349    CXXFLAGS=
3350  fi
3351fi
3352for ac_declaration in \
3353   '' \
3354   'extern "C" void std::exit (int) throw (); using std::exit;' \
3355   'extern "C" void std::exit (int); using std::exit;' \
3356   'extern "C" void exit (int) throw ();' \
3357   'extern "C" void exit (int);' \
3358   'void exit (int);'
3359do
3360  cat >conftest.$ac_ext <<_ACEOF
3361/* confdefs.h.  */
3362_ACEOF
3363cat confdefs.h >>conftest.$ac_ext
3364cat >>conftest.$ac_ext <<_ACEOF
3365/* end confdefs.h.  */
3366$ac_declaration
3367#include <stdlib.h>
3368int
3369main ()
3370{
3371exit (42);
3372  ;
3373  return 0;
3374}
3375_ACEOF
3376rm -f conftest.$ac_objext
3377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378  (eval $ac_compile) 2>conftest.er1
3379  ac_status=$?
3380  grep -v '^ *+' conftest.er1 >conftest.err
3381  rm -f conftest.er1
3382  cat conftest.err >&5
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); } &&
3385         { ac_try='test -z "$ac_cxx_werror_flag"
3386                         || test ! -s conftest.err'
3387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388  (eval $ac_try) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }; } &&
3392         { ac_try='test -s conftest.$ac_objext'
3393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394  (eval $ac_try) 2>&5
3395  ac_status=$?
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); }; }; then
3398  :
3399else
3400  echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403continue
3404fi
3405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406  cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h.  */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h.  */
3412$ac_declaration
3413int
3414main ()
3415{
3416exit (42);
3417  ;
3418  return 0;
3419}
3420_ACEOF
3421rm -f conftest.$ac_objext
3422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3423  (eval $ac_compile) 2>conftest.er1
3424  ac_status=$?
3425  grep -v '^ *+' conftest.er1 >conftest.err
3426  rm -f conftest.er1
3427  cat conftest.err >&5
3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); } &&
3430         { ac_try='test -z "$ac_cxx_werror_flag"
3431                         || test ! -s conftest.err'
3432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433  (eval $ac_try) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }; } &&
3437         { ac_try='test -s conftest.$ac_objext'
3438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439  (eval $ac_try) 2>&5
3440  ac_status=$?
3441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); }; }; then
3443  break
3444else
3445  echo "$as_me: failed program was:" >&5
3446sed 's/^/| /' conftest.$ac_ext >&5
3447
3448fi
3449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3450done
3451rm -f conftest*
3452if test -n "$ac_declaration"; then
3453  echo '#ifdef __cplusplus' >>confdefs.h
3454  echo $ac_declaration      >>confdefs.h
3455  echo '#endif'             >>confdefs.h
3456fi
3457
3458ac_ext=cc
3459ac_cpp='$CXXCPP $CPPFLAGS'
3460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3463
3464if test -z "$CXX" ; then
3465  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3466echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3467   { (exit 1); exit 1; }; }
3468fi
3469
3470# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3471case "$CXX" in
3472  cl* | */cl* | CL* | */CL* )
3473    if test "$ac_cv_prog_cxx_g" = yes ; then
3474      ac_cv_prog_cxx_g=no
3475      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3476echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3477    fi ;;
3478esac
3479CXXFLAGS="$save_cxxflags"
3480
3481# Check if a project specific CXXFLAGS variable has been set
3482if test x$COIN_PRJCT != x; then
3483  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3484  if test x$coin_tmp = xset; then
3485    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3486  fi
3487fi
3488
3489if test x"$CXXFLAGS" = x; then
3490
3491# ToDo decide whether we want -DNDEBUG for optimization
3492  coin_add_cxxflags=
3493  coin_opt_cxxflags=
3494  coin_dbg_cxxflags=
3495  coin_warn_cxxflags=
3496
3497  if test "$GXX" = "yes"; then
3498    case "$CXX" in
3499      icpc* | */icpc*)
3500        ;;
3501      *)
3502# ToDo decide about unroll-loops
3503        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3504        coin_add_cxxflags="-pipe"
3505        coin_dbg_cxxflags="-g"
3506        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3507        case $enable_doscompile in
3508          mingw)
3509            CXXFLAGS="-mno-cygwin"
3510            cat >conftest.$ac_ext <<_ACEOF
3511/* confdefs.h.  */
3512_ACEOF
3513cat confdefs.h >>conftest.$ac_ext
3514cat >>conftest.$ac_ext <<_ACEOF
3515/* end confdefs.h.  */
3516
3517int
3518main ()
3519{
3520int i=0; i++;
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525rm -f conftest.$ac_objext conftest$ac_exeext
3526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3527  (eval $ac_link) 2>conftest.er1
3528  ac_status=$?
3529  grep -v '^ *+' conftest.er1 >conftest.err
3530  rm -f conftest.er1
3531  cat conftest.err >&5
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); } &&
3534         { ac_try='test -z "$ac_cxx_werror_flag"
3535                         || test ! -s conftest.err'
3536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537  (eval $ac_try) 2>&5
3538  ac_status=$?
3539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); }; } &&
3541         { ac_try='test -s conftest$ac_exeext'
3542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543  (eval $ac_try) 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); }; }; then
3547  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3548else
3549  echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552fi
3553rm -f conftest.err conftest.$ac_objext \
3554      conftest$ac_exeext conftest.$ac_ext
3555            CXXFLAGS=
3556            ;;
3557        esac
3558    esac
3559  fi
3560
3561# Note that we do not need to cover GCC in the following tests.
3562
3563  if test -z "$coin_opt_cxxflags"; then
3564    case $build in
3565      *-cygwin* | *-mingw*)
3566        case "$CXX" in
3567          cl* | */cl* | CL* | */CL*)
3568            # The MT and MTd options are mutually exclusive
3569            coin_opt_cxxflags='-MT -O2'
3570            coin_add_cxxflags='-nologo -EHsc -GR -wd4996'
3571            coin_dbg_cxxflags='-MTd'
3572            ;;
3573        esac
3574        ;;
3575      *-linux-*)
3576        case "$CXX" in
3577          icpc* | */icpc*)
3578            coin_opt_cxxflags="-O3 -ip"
3579            coin_add_cxxflags=""
3580            coin_dbg_cxxflags="-g"
3581            # Check if -i_dynamic is necessary (for new glibc library)
3582            CXXFLAGS=
3583            cat >conftest.$ac_ext <<_ACEOF
3584/* confdefs.h.  */
3585_ACEOF
3586cat confdefs.h >>conftest.$ac_ext
3587cat >>conftest.$ac_ext <<_ACEOF
3588/* end confdefs.h.  */
3589
3590int
3591main ()
3592{
3593int i=0; i++;
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598rm -f conftest.$ac_objext conftest$ac_exeext
3599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3600  (eval $ac_link) 2>conftest.er1
3601  ac_status=$?
3602  grep -v '^ *+' conftest.er1 >conftest.err
3603  rm -f conftest.er1
3604  cat conftest.err >&5
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); } &&
3607         { ac_try='test -z "$ac_cxx_werror_flag"
3608                         || test ! -s conftest.err'
3609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610  (eval $ac_try) 2>&5
3611  ac_status=$?
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); }; } &&
3614         { ac_try='test -s conftest$ac_exeext'
3615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616  (eval $ac_try) 2>&5
3617  ac_status=$?
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); }; }; then
3620  :
3621else
3622  echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3626fi
3627rm -f conftest.err conftest.$ac_objext \
3628      conftest$ac_exeext conftest.$ac_ext
3629            ;;
3630          pgCC* | */pgCC*)
3631            coin_opt_cxxflags="-fast"
3632            coin_add_cxxflags="-Kieee -pc 64"
3633            coin_dbg_cxxflags="-g"
3634            ;;
3635        esac
3636        ;;
3637      *-ibm-*)
3638        case "$CXX" in
3639          xlC* | */xlC* | mpxlC* | */mpxlC*)
3640            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3641            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
3642            coin_dbg_cxxflags="-g"
3643            ;;
3644        esac
3645        ;;
3646      *-hp-*)
3647        case "$CXX" in
3648          aCC* | */aCC* )
3649            coin_opt_cxxflags="-O"
3650            coin_add_cxxflags="-AA"
3651            coin_dbg_cxxflags="-g"
3652            ;;
3653        esac
3654        ;;
3655      *-sun-*)
3656          coin_opt_cxxflags="-O4"
3657          coin_dbg_cxxflags="-g"
3658        ;;
3659    esac
3660  fi
3661
3662# Generic flag settings. If these don't work, add a case above.
3663
3664  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3665    coin_dbg_cxxflags="-g"
3666  fi
3667
3668  if test -z "$coin_opt_cxxflags"; then
3669    # Try if -O option works if nothing else is set
3670    CXXFLAGS=-O
3671    cat >conftest.$ac_ext <<_ACEOF
3672/* confdefs.h.  */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h.  */
3677
3678int
3679main ()
3680{
3681int i=0; i++;
3682  ;
3683  return 0;
3684}
3685_ACEOF
3686rm -f conftest.$ac_objext conftest$ac_exeext
3687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3688  (eval $ac_link) 2>conftest.er1
3689  ac_status=$?
3690  grep -v '^ *+' conftest.er1 >conftest.err
3691  rm -f conftest.er1
3692  cat conftest.err >&5
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); } &&
3695         { ac_try='test -z "$ac_cxx_werror_flag"
3696                         || test ! -s conftest.err'
3697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698  (eval $ac_try) 2>&5
3699  ac_status=$?
3700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701  (exit $ac_status); }; } &&
3702         { ac_try='test -s conftest$ac_exeext'
3703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704  (eval $ac_try) 2>&5
3705  ac_status=$?
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); }; }; then
3708  coin_opt_cxxflags="-O"
3709else
3710  echo "$as_me: failed program was:" >&5
3711sed 's/^/| /' conftest.$ac_ext >&5
3712
3713fi
3714rm -f conftest.err conftest.$ac_objext \
3715      conftest$ac_exeext conftest.$ac_ext
3716  fi
3717
3718  # if PM doesn't want the warning messages, take them out
3719  if test x"$coin_skip_warn_cxxflags" = xyes; then
3720    coin_warn_cxxflags=
3721  fi
3722
3723# Do final setup of flags based on values determined above.
3724
3725  if test x${DBG_CXXFLAGS+set} != xset; then
3726    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3727  fi
3728  if test x${OPT_CXXFLAGS+set} != xset; then
3729    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3730  fi
3731
3732  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3733  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3734
3735  if test "$coin_debug_compile" = "true"; then
3736    CXXFLAGS="$DBG_CXXFLAGS"
3737  else
3738    CXXFLAGS="$OPT_CXXFLAGS"
3739  fi
3740
3741# Handle the case where CXXFLAGS was set externally.
3742else
3743  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3744  if test x${DBG_CXXFLAGS+set} != xset; then
3745    DBG_CXXFLAGS="$CXXFLAGS"
3746  fi
3747  if test x${OPT_CXXFLAGS+set} != xset; then
3748    OPT_CXXFLAGS="$CXXFLAGS"
3749  fi
3750fi
3751
3752# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3753
3754case "$CXXFLAGS" in
3755  *-mno-cygwin*)
3756    if test x${CPPFLAGS+set} != xset ; then
3757      CPPFLAGS="-mno-cygwin"
3758    else
3759      case "$CPPFLAGS" in
3760        *-mno-cygwin*)
3761          ;;
3762        *)
3763          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3764          ;;
3765      esac
3766    fi ;;
3767esac
3768
3769# Try if CXXFLAGS works
3770save_CXXFLAGS="$CXXFLAGS"
3771cat >conftest.$ac_ext <<_ACEOF
3772/* confdefs.h.  */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
3776/* end confdefs.h.  */
3777
3778int
3779main ()
3780{
3781int i=0; i++;
3782  ;
3783  return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext conftest$ac_exeext
3787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3788  (eval $ac_link) 2>conftest.er1
3789  ac_status=$?
3790  grep -v '^ *+' conftest.er1 >conftest.err
3791  rm -f conftest.er1
3792  cat conftest.err >&5
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795         { ac_try='test -z "$ac_cxx_werror_flag"
3796                         || test ! -s conftest.err'
3797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798  (eval $ac_try) 2>&5
3799  ac_status=$?
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); }; } &&
3802         { ac_try='test -s conftest$ac_exeext'
3803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3804  (eval $ac_try) 2>&5
3805  ac_status=$?
3806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807  (exit $ac_status); }; }; then
3808  :
3809else
3810  echo "$as_me: failed program was:" >&5
3811sed 's/^/| /' conftest.$ac_ext >&5
3812
3813CXXFLAGS=
3814fi
3815rm -f conftest.err conftest.$ac_objext \
3816      conftest$ac_exeext conftest.$ac_ext
3817if test -z "$CXXFLAGS"; then
3818  { 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
3819echo "$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;}
3820  CXXFLAGS='-O'
3821  cat >conftest.$ac_ext <<_ACEOF
3822/* confdefs.h.  */
3823_ACEOF
3824cat confdefs.h >>conftest.$ac_ext
3825cat >>conftest.$ac_ext <<_ACEOF
3826/* end confdefs.h.  */
3827
3828int
3829main ()
3830{
3831int i=0; i++;
3832  ;
3833  return 0;
3834}
3835_ACEOF
3836rm -f conftest.$ac_objext conftest$ac_exeext
3837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3838  (eval $ac_link) 2>conftest.er1
3839  ac_status=$?
3840  grep -v '^ *+' conftest.er1 >conftest.err
3841  rm -f conftest.er1
3842  cat conftest.err >&5
3843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844  (exit $ac_status); } &&
3845         { ac_try='test -z "$ac_cxx_werror_flag"
3846                         || test ! -s conftest.err'
3847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848  (eval $ac_try) 2>&5
3849  ac_status=$?
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); }; } &&
3852         { ac_try='test -s conftest$ac_exeext'
3853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854  (eval $ac_try) 2>&5
3855  ac_status=$?
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); }; }; then
3858  :
3859else
3860  echo "$as_me: failed program was:" >&5
3861sed 's/^/| /' conftest.$ac_ext >&5
3862
3863CXXFLAGS=
3864fi
3865rm -f conftest.err conftest.$ac_objext \
3866      conftest$ac_exeext conftest.$ac_ext
3867  if test -z "$CXXFLAGS"; then
3868    { 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
3869echo "$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;}
3870  fi
3871fi
3872
3873{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3874echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3875
3876
3877if test x"$MPICXX" = x; then :; else
3878  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3879echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3880  CXX="$MPICXX"
3881fi
3882
3883case "$CXX" in
3884  cl* | */cl* | CL* | */CL* )
3885    case $build in
3886  *-mingw*)
3887    if test "${LD+set}" = set; then :; else
3888      LD=link
3889    fi
3890    ;;
3891 esac
3892 case $enable_doscompile in
3893   msvc)
3894     if test "x${LD+set}" = xset; then :; else
3895       LD=link
3896     fi
3897     ;;
3898 esac
3899
3900    ;;
3901esac
3902
3903ac_ext=c
3904ac_cpp='$CPP $CPPFLAGS'
3905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
3909
3910
3911# Initialize automake and libtool
3912{
3913
3914
3915
3916# START
3917
3918# On Cygwin, building DLLs doesn't work
3919case $build in
3920  *-cygwin*)
3921    coin_disable_shared=yes
3922    platform=Cygwin
3923  ;;
3924  *-mingw*)
3925    coin_disable_shared=yes
3926    platform="Msys"
3927#    case "$CXX" in
3928#      cl*)
3929#        coin_disable_shared=yes
3930#        platform="Msys with cl"
3931#    ;;
3932#    esac
3933  ;;
3934esac
3935if test x"$coin_disable_shared" = xyes; then
3936  if test x"$enable_shared" = xyes; then
3937    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3938echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3939  fi
3940  enable_shared=no
3941fi
3942# By default, we only want the shared objects to be compiled
3943# Check whether --enable-static or --disable-static was given.
3944if test "${enable_static+set}" = set; then
3945  enableval="$enable_static"
3946  p=${PACKAGE-default}
3947    case $enableval in
3948    yes) enable_static=yes ;;
3949    no) enable_static=no ;;
3950    *)
3951     enable_static=no
3952      # Look at the argument we got.  We use all the common list separators.
3953      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3954      for pkg in $enableval; do
3955        IFS="$lt_save_ifs"
3956        if test "X$pkg" = "X$p"; then
3957          enable_static=yes
3958        fi
3959      done
3960      IFS="$lt_save_ifs"
3961      ;;
3962    esac
3963else
3964  enable_static=no
3965fi;
3966
3967
3968
3969
3970# Initialize automake
3971echo "$as_me:$LINENO: checking for egrep" >&5
3972echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3973if test "${ac_cv_prog_egrep+set}" = set; then
3974  echo $ECHO_N "(cached) $ECHO_C" >&6
3975else
3976  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3977    then ac_cv_prog_egrep='grep -E'
3978    else ac_cv_prog_egrep='egrep'
3979    fi
3980fi
3981echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3982echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3983 EGREP=$ac_cv_prog_egrep
3984
3985
3986am__api_version="1.9"
3987# Find a good install program.  We prefer a C program (faster),
3988# so one script is as good as another.  But avoid the broken or
3989# incompatible versions:
3990# SysV /etc/install, /usr/sbin/install
3991# SunOS /usr/etc/install
3992# IRIX /sbin/install
3993# AIX /bin/install
3994# AmigaOS /C/install, which installs bootblocks on floppy discs
3995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3998# OS/2's system install, which has a completely different semantic
3999# ./install, which can be erroneously created by make from ./install.sh.
4000echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4001echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4002if test -z "$INSTALL"; then
4003if test "${ac_cv_path_install+set}" = set; then
4004  echo $ECHO_N "(cached) $ECHO_C" >&6
4005else
4006  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009  IFS=$as_save_IFS
4010  test -z "$as_dir" && as_dir=.
4011  # Account for people who put trailing slashes in PATH elements.
4012case $as_dir/ in
4013  ./ | .// | /cC/* | \
4014  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4015  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4016  /usr/ucb/* ) ;;
4017  *)
4018    # OSF1 and SCO ODT 3.0 have their own names for install.
4019    # Don't use installbsd from OSF since it installs stuff as root
4020    # by default.
4021    for ac_prog in ginstall scoinst install; do
4022      for ac_exec_ext in '' $ac_executable_extensions; do
4023        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4024          if test $ac_prog = install &&
4025            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4026            # AIX install.  It has an incompatible calling convention.
4027            :
4028          elif test $ac_prog = install &&
4029            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4030            # program-specific install script used by HP pwplus--don't use.
4031            :
4032          else
4033            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4034            break 3
4035          fi
4036        fi
4037      done
4038    done
4039    ;;
4040esac
4041done
4042
4043
4044fi
4045  if test "${ac_cv_path_install+set}" = set; then
4046    INSTALL=$ac_cv_path_install
4047  else
4048    # As a last resort, use the slow shell script.  We don't cache a
4049    # path for INSTALL within a source directory, because that will
4050    # break other packages using the cache if that directory is
4051    # removed, or if the path is relative.
4052    INSTALL=$ac_install_sh
4053  fi
4054fi
4055echo "$as_me:$LINENO: result: $INSTALL" >&5
4056echo "${ECHO_T}$INSTALL" >&6
4057
4058# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4059# It thinks the first close brace ends the variable substitution.
4060test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4061
4062test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4063
4064test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4065
4066echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4067echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4068# Just in case
4069sleep 1
4070echo timestamp > conftest.file
4071# Do `set' in a subshell so we don't clobber the current shell's
4072# arguments.  Must try -L first in case configure is actually a
4073# symlink; some systems play weird games with the mod time of symlinks
4074# (eg FreeBSD returns the mod time of the symlink's containing
4075# directory).
4076if (
4077   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4078   if test "$*" = "X"; then
4079      # -L didn't work.
4080      set X `ls -t $srcdir/configure conftest.file`
4081   fi
4082   rm -f conftest.file
4083   if test "$*" != "X $srcdir/configure conftest.file" \
4084      && test "$*" != "X conftest.file $srcdir/configure"; then
4085
4086      # If neither matched, then we have a broken ls.  This can happen
4087      # if, for instance, CONFIG_SHELL is bash and it inherits a
4088      # broken ls alias from the environment.  This has actually
4089      # happened.  Such a system could not be considered "sane".
4090      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4091alias in your environment" >&5
4092echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4093alias in your environment" >&2;}
4094   { (exit 1); exit 1; }; }
4095   fi
4096
4097   test "$2" = conftest.file
4098   )
4099then
4100   # Ok.
4101   :
4102else
4103   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4104Check your system clock" >&5
4105echo "$as_me: error: newly created file is older than distributed files!
4106Check your system clock" >&2;}
4107   { (exit 1); exit 1; }; }
4108fi
4109echo "$as_me:$LINENO: result: yes" >&5
4110echo "${ECHO_T}yes" >&6
4111test "$program_prefix" != NONE &&
4112  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4113# Use a double $ so make ignores it.
4114test "$program_suffix" != NONE &&
4115  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4116# Double any \ or $.  echo might interpret backslashes.
4117# By default was `s,x,x', remove it if useless.
4118cat <<\_ACEOF >conftest.sed
4119s/[\\$]/&&/g;s/;s,x,x,$//
4120_ACEOF
4121program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4122rm conftest.sed
4123
4124# expand $ac_aux_dir to an absolute path
4125am_aux_dir=`cd $ac_aux_dir && pwd`
4126
4127test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4128# Use eval to expand $SHELL
4129if eval "$MISSING --run true"; then
4130  am_missing_run="$MISSING --run "
4131else
4132  am_missing_run=
4133  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4134echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4135fi
4136
4137if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4138  # We used to keeping the `.' as first argument, in order to
4139  # allow $(mkdir_p) to be used without argument.  As in
4140  #   $(mkdir_p) $(somedir)
4141  # where $(somedir) is conditionally defined.  However this is wrong
4142  # for two reasons:
4143  #  1. if the package is installed by a user who cannot write `.'
4144  #     make install will fail,
4145  #  2. the above comment should most certainly read
4146  #     $(mkdir_p) $(DESTDIR)$(somedir)
4147  #     so it does not work when $(somedir) is undefined and
4148  #     $(DESTDIR) is not.
4149  #  To support the latter case, we have to write
4150  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4151  #  so the `.' trick is pointless.
4152  mkdir_p='mkdir -p --'
4153else
4154  # On NextStep and OpenStep, the `mkdir' command does not
4155  # recognize any option.  It will interpret all options as
4156  # directories to create, and then abort because `.' already
4157  # exists.
4158  for d in ./-p ./--version;
4159  do
4160    test -d $d && rmdir $d
4161  done
4162  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4163  if test -f "$ac_aux_dir/mkinstalldirs"; then
4164    mkdir_p='$(mkinstalldirs)'
4165  else
4166    mkdir_p='$(install_sh) -d'
4167  fi
4168fi
4169
4170for ac_prog in gawk mawk nawk awk
4171do
4172  # Extract the first word of "$ac_prog", so it can be a program name with args.
4173set dummy $ac_prog; ac_word=$2
4174echo "$as_me:$LINENO: checking for $ac_word" >&5
4175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4176if test "${ac_cv_prog_AWK+set}" = set; then
4177  echo $ECHO_N "(cached) $ECHO_C" >&6
4178else
4179  if test -n "$AWK"; then
4180  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185  IFS=$as_save_IFS
4186  test -z "$as_dir" && as_dir=.
4187  for ac_exec_ext in '' $ac_executable_extensions; do
4188  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189    ac_cv_prog_AWK="$ac_prog"
4190    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4191    break 2
4192  fi
4193done
4194done
4195
4196fi
4197fi
4198AWK=$ac_cv_prog_AWK
4199if test -n "$AWK"; then
4200  echo "$as_me:$LINENO: result: $AWK" >&5
4201echo "${ECHO_T}$AWK" >&6
4202else
4203  echo "$as_me:$LINENO: result: no" >&5
4204echo "${ECHO_T}no" >&6
4205fi
4206
4207  test -n "$AWK" && break
4208done
4209
4210echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4211echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4212set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4213if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4214  echo $ECHO_N "(cached) $ECHO_C" >&6
4215else
4216  cat >conftest.make <<\_ACEOF
4217all:
4218        @echo 'ac_maketemp="$(MAKE)"'
4219_ACEOF
4220# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4221eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4222if test -n "$ac_maketemp"; then
4223  eval ac_cv_prog_make_${ac_make}_set=yes
4224else
4225  eval ac_cv_prog_make_${ac_make}_set=no
4226fi
4227rm -f conftest.make
4228fi
4229if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4230  echo "$as_me:$LINENO: result: yes" >&5
4231echo "${ECHO_T}yes" >&6
4232  SET_MAKE=
4233else
4234  echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
4236  SET_MAKE="MAKE=${MAKE-make}"
4237fi
4238
4239rm -rf .tst 2>/dev/null
4240mkdir .tst 2>/dev/null
4241if test -d .tst; then
4242  am__leading_dot=.
4243else
4244  am__leading_dot=_
4245fi
4246rmdir .tst 2>/dev/null
4247
4248DEPDIR="${am__leading_dot}deps"
4249
4250          ac_config_commands="$ac_config_commands depfiles"
4251
4252
4253am_make=${MAKE-make}
4254cat > confinc << 'END'
4255am__doit:
4256        @echo done
4257.PHONY: am__doit
4258END
4259# If we don't find an include directive, just comment out the code.
4260echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4261echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4262am__include="#"
4263am__quote=
4264_am_result=none
4265# First try GNU make style include.
4266echo "include confinc" > confmf
4267# We grep out `Entering directory' and `Leaving directory'
4268# messages which can occur if `w' ends up in MAKEFLAGS.
4269# In particular we don't look at `^make:' because GNU make might
4270# be invoked under some other name (usually "gmake"), in which
4271# case it prints its new name instead of `make'.
4272if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4273   am__include=include
4274   am__quote=
4275   _am_result=GNU
4276fi
4277# Now try BSD make style include.
4278if test "$am__include" = "#"; then
4279   echo '.include "confinc"' > confmf
4280   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4281      am__include=.include
4282      am__quote="\""
4283      _am_result=BSD
4284   fi
4285fi
4286
4287
4288echo "$as_me:$LINENO: result: $_am_result" >&5
4289echo "${ECHO_T}$_am_result" >&6
4290rm -f confinc confmf
4291
4292# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4293if test "${enable_dependency_tracking+set}" = set; then
4294  enableval="$enable_dependency_tracking"
4295
4296fi;
4297if test "x$enable_dependency_tracking" != xno; then
4298  am_depcomp="$ac_aux_dir/depcomp"
4299  AMDEPBACKSLASH='\'
4300fi
4301
4302
4303if test "x$enable_dependency_tracking" != xno; then
4304  AMDEP_TRUE=
4305  AMDEP_FALSE='#'
4306else
4307  AMDEP_TRUE='#'
4308  AMDEP_FALSE=
4309fi
4310
4311
4312
4313
4314
4315# AC_MSG_NOTICE([Beginning automake initialisation.])
4316# Stuff for automake
4317# test to see if srcdir already configured
4318if test "`cd $srcdir && pwd`" != "`pwd`" &&
4319   test -f $srcdir/config.status; then
4320  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4321echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4322   { (exit 1); exit 1; }; }
4323fi
4324
4325# test whether we have cygpath
4326if test -z "$CYGPATH_W"; then
4327  if (cygpath --version) >/dev/null 2>/dev/null; then
4328    CYGPATH_W='cygpath -w'
4329  else
4330    CYGPATH_W=echo
4331  fi
4332fi
4333
4334
4335# Define the identity of the package.
4336 PACKAGE='cbc'
4337 VERSION='0.1'
4338
4339
4340cat >>confdefs.h <<_ACEOF
4341#define PACKAGE "$PACKAGE"
4342_ACEOF
4343
4344
4345cat >>confdefs.h <<_ACEOF
4346#define VERSION "$VERSION"
4347_ACEOF
4348
4349# Some tools Automake needs.
4350
4351ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4352
4353
4354AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4355
4356
4357AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4358
4359
4360AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4361
4362
4363MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4364
4365install_sh=${install_sh-"$am_aux_dir/install-sh"}
4366
4367# Installed binaries are usually stripped using `strip' when the user
4368# run `make install-strip'.  However `strip' might not be the right
4369# tool to use in cross-compilation environments, therefore Automake
4370# will honor the `STRIP' environment variable to overrule this program.
4371if test "$cross_compiling" != no; then
4372  if test -n "$ac_tool_prefix"; then
4373  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4374set dummy ${ac_tool_prefix}strip; ac_word=$2
4375echo "$as_me:$LINENO: checking for $ac_word" >&5
4376echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4377if test "${ac_cv_prog_STRIP+set}" = set; then
4378  echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380  if test -n "$STRIP"; then
4381  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4382else
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386  IFS=$as_save_IFS
4387  test -z "$as_dir" && as_dir=.
4388  for ac_exec_ext in '' $ac_executable_extensions; do
4389  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4391    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392    break 2
4393  fi
4394done
4395done
4396
4397fi
4398fi
4399STRIP=$ac_cv_prog_STRIP
4400if test -n "$STRIP"; then
4401  echo "$as_me:$LINENO: result: $STRIP" >&5
4402echo "${ECHO_T}$STRIP" >&6
4403else
4404  echo "$as_me:$LINENO: result: no" >&5
4405echo "${ECHO_T}no" >&6
4406fi
4407
4408fi
4409if test -z "$ac_cv_prog_STRIP"; then
4410  ac_ct_STRIP=$STRIP
4411  # Extract the first word of "strip", so it can be a program name with args.
4412set dummy strip; ac_word=$2
4413echo "$as_me:$LINENO: checking for $ac_word" >&5
4414echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4416  echo $ECHO_N "(cached) $ECHO_C" >&6
4417else
4418  if test -n "$ac_ct_STRIP"; then
4419  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4420else
4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422for as_dir in $PATH
4423do
4424  IFS=$as_save_IFS
4425  test -z "$as_dir" && as_dir=.
4426  for ac_exec_ext in '' $ac_executable_extensions; do
4427  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428    ac_cv_prog_ac_ct_STRIP="strip"
4429    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430    break 2
4431  fi
4432done
4433done
4434
4435  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4436fi
4437fi
4438ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4439if test -n "$ac_ct_STRIP"; then
4440  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4441echo "${ECHO_T}$ac_ct_STRIP" >&6
4442else
4443  echo "$as_me:$LINENO: result: no" >&5
4444echo "${ECHO_T}no" >&6
4445fi
4446
4447  STRIP=$ac_ct_STRIP
4448else
4449  STRIP="$ac_cv_prog_STRIP"
4450fi
4451
4452fi
4453INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4454
4455# We need awk for the "check" target.  The system "awk" is bad on
4456# some platforms.
4457# Always define AMTAR for backward compatibility.
4458
4459AMTAR=${AMTAR-"${am_missing_run}tar"}
4460
4461am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4462
4463
4464
4465
4466depcc="$CC"   am_compiler_list=
4467
4468echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4469echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4470if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4471  echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4474  # We make a subdir and do the tests there.  Otherwise we can end up
4475  # making bogus files that we don't know about and never remove.  For
4476  # instance it was reported that on HP-UX the gcc test will end up
4477  # making a dummy file named `D' -- because `-MD' means `put the output
4478  # in D'.
4479  mkdir conftest.dir
4480  # Copy depcomp to subdir because otherwise we won't find it if we're
4481  # using a relative directory.
4482  cp "$am_depcomp" conftest.dir
4483  cd conftest.dir
4484  # We will build objects and dependencies in a subdirectory because
4485  # it helps to detect inapplicable dependency modes.  For instance
4486  # both Tru64's cc and ICC support -MD to output dependencies as a
4487  # side effect of compilation, but ICC will put the dependencies in
4488  # the current directory while Tru64 will put them in the object
4489  # directory.
4490  mkdir sub
4491
4492  am_cv_CC_dependencies_compiler_type=none
4493  if test "$am_compiler_list" = ""; then
4494     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4495  fi
4496  for depmode in $am_compiler_list; do
4497    # Setup a source with many dependencies, because some compilers
4498    # like to wrap large dependency lists on column 80 (with \), and
4499    # we should not choose a depcomp mode which is confused by this.
4500    #
4501    # We need to recreate these files for each test, as the compiler may
4502    # overwrite some of them when testing with obscure command lines.
4503    # This happens at least with the AIX C compiler.
4504    : > sub/conftest.c
4505    for i in 1 2 3 4 5 6; do
4506      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4507      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4508      # Solaris 8's {/usr,}/bin/sh.
4509      touch sub/conftst$i.h
4510    done
4511    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4512
4513    case $depmode in
4514    nosideeffect)
4515      # after this tag, mechanisms are not by side-effect, so they'll
4516      # only be used when explicitly requested
4517      if test "x$enable_dependency_tracking" = xyes; then
4518        continue
4519      else
4520        break
4521      fi
4522      ;;
4523    none) break ;;
4524    esac
4525    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4526    # mode.  It turns out that the SunPro C++ compiler does not properly
4527    # handle `-M -o', and we need to detect this.
4528    if depmode=$depmode \
4529       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4530       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4531       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4532         >/dev/null 2>conftest.err &&
4533       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4534       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4535       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4536      # icc doesn't choke on unknown options, it will just issue warnings
4537      # or remarks (even with -Werror).  So we grep stderr for any message
4538      # that says an option was ignored or not supported.
4539      # When given -MP, icc 7.0 and 7.1 complain thusly:
4540      #   icc: Command line warning: ignoring option '-M'; no argument required
4541      # The diagnosis changed in icc 8.0:
4542      #   icc: Command line remark: option '-MP' not supported
4543      if (grep 'ignoring option' conftest.err ||
4544          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4545        am_cv_CC_dependencies_compiler_type=$depmode
4546        break
4547      fi
4548    fi
4549  done
4550
4551  cd ..
4552  rm -rf conftest.dir
4553else
4554  am_cv_CC_dependencies_compiler_type=none
4555fi
4556
4557fi
4558echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4559echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4560CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4561
4562
4563
4564if
4565  test "x$enable_dependency_tracking" != xno \
4566  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4567  am__fastdepCC_TRUE=
4568  am__fastdepCC_FALSE='#'
4569else
4570  am__fastdepCC_TRUE='#'
4571  am__fastdepCC_FALSE=
4572fi
4573
4574
4575depcc="$CXX"  am_compiler_list=
4576
4577echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4578echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4579if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4580  echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4583  # We make a subdir and do the tests there.  Otherwise we can end up
4584  # making bogus files that we don't know about and never remove.  For
4585  # instance it was reported that on HP-UX the gcc test will end up
4586  # making a dummy file named `D' -- because `-MD' means `put the output
4587  # in D'.
4588  mkdir conftest.dir
4589  # Copy depcomp to subdir because otherwise we won't find it if we're
4590  # using a relative directory.
4591  cp "$am_depcomp" conftest.dir
4592  cd conftest.dir
4593  # We will build objects and dependencies in a subdirectory because
4594  # it helps to detect inapplicable dependency modes.  For instance
4595  # both Tru64's cc and ICC support -MD to output dependencies as a
4596  # side effect of compilation, but ICC will put the dependencies in
4597  # the current directory while Tru64 will put them in the object
4598  # directory.
4599  mkdir sub
4600
4601  am_cv_CXX_dependencies_compiler_type=none
4602  if test "$am_compiler_list" = ""; then
4603     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4604  fi
4605  for depmode in $am_compiler_list; do
4606    # Setup a source with many dependencies, because some compilers
4607    # like to wrap large dependency lists on column 80 (with \), and
4608    # we should not choose a depcomp mode which is confused by this.
4609    #
4610    # We need to recreate these files for each test, as the compiler may
4611    # overwrite some of them when testing with obscure command lines.
4612    # This happens at least with the AIX C compiler.
4613    : > sub/conftest.c
4614    for i in 1 2 3 4 5 6; do
4615      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4616      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4617      # Solaris 8's {/usr,}/bin/sh.
4618      touch sub/conftst$i.h
4619    done
4620    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4621
4622    case $depmode in
4623    nosideeffect)
4624      # after this tag, mechanisms are not by side-effect, so they'll
4625      # only be used when explicitly requested
4626      if test "x$enable_dependency_tracking" = xyes; then
4627        continue
4628      else
4629        break
4630      fi
4631      ;;
4632    none) break ;;
4633    esac
4634    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4635    # mode.  It turns out that the SunPro C++ compiler does not properly
4636    # handle `-M -o', and we need to detect this.
4637    if depmode=$depmode \
4638       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4639       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4640       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4641         >/dev/null 2>conftest.err &&
4642       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4643       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4644       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4645      # icc doesn't choke on unknown options, it will just issue warnings
4646      # or remarks (even with -Werror).  So we grep stderr for any message
4647      # that says an option was ignored or not supported.
4648      # When given -MP, icc 7.0 and 7.1 complain thusly:
4649      #   icc: Command line warning: ignoring option '-M'; no argument required
4650      # The diagnosis changed in icc 8.0:
4651      #   icc: Command line remark: option '-MP' not supported
4652      if (grep 'ignoring option' conftest.err ||
4653          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4654        am_cv_CXX_dependencies_compiler_type=$depmode
4655        break
4656      fi
4657    fi
4658  done
4659
4660  cd ..
4661  rm -rf conftest.dir
4662else
4663  am_cv_CXX_dependencies_compiler_type=none
4664fi
4665
4666fi
4667echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4668echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4669CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4670
4671
4672
4673if
4674  test "x$enable_dependency_tracking" != xno \
4675  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4676  am__fastdepCXX_TRUE=
4677  am__fastdepCXX_FALSE='#'
4678else
4679  am__fastdepCXX_TRUE='#'
4680  am__fastdepCXX_FALSE=
4681fi
4682
4683
4684
4685echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4686echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4687    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4688if test "${enable_maintainer_mode+set}" = set; then
4689  enableval="$enable_maintainer_mode"
4690  USE_MAINTAINER_MODE=$enableval
4691else
4692  USE_MAINTAINER_MODE=no
4693fi;
4694  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4695echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4696
4697
4698if test $USE_MAINTAINER_MODE = yes; then
4699  MAINTAINER_MODE_TRUE=
4700  MAINTAINER_MODE_FALSE='#'
4701else
4702  MAINTAINER_MODE_TRUE='#'
4703  MAINTAINER_MODE_FALSE=
4704fi
4705
4706  MAINT=$MAINTAINER_MODE_TRUE
4707
4708
4709
4710coin_have_externals=no
4711if test "$enable_maintainer_mode" = yes; then
4712
4713  # If maintainer mode is chosen, we make sure that the correct versions
4714  # of the tools are used, and that we know where libtool.m4 is (to
4715  # recreate acinclude.m4)
4716
4717
4718  LIBTOOLM4=
4719  # Normally, $HOME
4720  AUTOTOOLS_DFLT=$HOME
4721
4722  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4723echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4724if test "${ac_cv_use_correct_autotools+set}" = set; then
4725  echo $ECHO_N "(cached) $ECHO_C" >&6
4726else
4727  ac_cv_use_correct_autotools=check
4728fi
4729echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4730echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4731
4732  if test $ac_cv_use_correct_autotools = check; then
4733    ac_cv_use_correct_autotools=yes
4734    # Check if we have autoconf
4735    # Extract the first word of "autoconf", so it can be a program name with args.
4736set dummy autoconf; ac_word=$2
4737echo "$as_me:$LINENO: checking for $ac_word" >&5
4738echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4739if test "${ac_cv_prog_have_autoconf+set}" = set; then
4740  echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
4742  if test -n "$have_autoconf"; then
4743  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4744else
4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748  IFS=$as_save_IFS
4749  test -z "$as_dir" && as_dir=.
4750  for ac_exec_ext in '' $ac_executable_extensions; do
4751  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4752    ac_cv_prog_have_autoconf="yes"
4753    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754    break 2
4755  fi
4756done
4757done
4758
4759  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4760fi
4761fi
4762have_autoconf=$ac_cv_prog_have_autoconf
4763if test -n "$have_autoconf"; then
4764  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4765echo "${ECHO_T}$have_autoconf" >&6
4766else
4767  echo "$as_me:$LINENO: result: no" >&5
4768echo "${ECHO_T}no" >&6
4769fi
4770
4771    if test $have_autoconf = no; then
4772      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4773echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4774   { (exit 1); exit 1; }; }
4775    fi
4776
4777    # Check whether autoconf is the correct version
4778    correct_version='2.59'
4779    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4780    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4781echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4782    autoconf --version > confauto.out 2>&1
4783    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4784      echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
4786    else
4787      rm -f confauto.out
4788      echo "$as_me:$LINENO: result: no" >&5
4789echo "${ECHO_T}no" >&6
4790      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4791echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4792   { (exit 1); exit 1; }; }
4793    fi
4794    rm -f confauto.out
4795
4796    # Check if the executable autoconf is picked up from the correct location
4797    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4798echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4799    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4800    autoconf_dir=`cd $autoconf_dir; pwd`
4801    if test x$AUTOTOOLS_DIR = x; then
4802      want_dir=$AUTOTOOLS_DFLT/bin
4803    else
4804      want_dir=$AUTOTOOLS_DIR/bin
4805    fi
4806    if test $autoconf_dir = `cd $want_dir; pwd`; then
4807      echo "$as_me:$LINENO: result: yes" >&5
4808echo "${ECHO_T}yes" >&6
4809    else
4810      rm -f confauto.out
4811      echo "$as_me:$LINENO: result: no" >&5
4812echo "${ECHO_T}no" >&6
4813      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4814echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4815   { (exit 1); exit 1; }; }
4816    fi
4817
4818    # Check if we have automake
4819    # Extract the first word of "automake", so it can be a program name with args.
4820set dummy automake; ac_word=$2
4821echo "$as_me:$LINENO: checking for $ac_word" >&5
4822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4823if test "${ac_cv_prog_have_automake+set}" = set; then
4824  echo $ECHO_N "(cached) $ECHO_C" >&6
4825else
4826  if test -n "$have_automake"; then
4827  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4828else
4829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832  IFS=$as_save_IFS
4833  test -z "$as_dir" && as_dir=.
4834  for ac_exec_ext in '' $ac_executable_extensions; do
4835  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836    ac_cv_prog_have_automake="yes"
4837    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838    break 2
4839  fi
4840done
4841done
4842
4843  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4844fi
4845fi
4846have_automake=$ac_cv_prog_have_automake
4847if test -n "$have_automake"; then
4848  echo "$as_me:$LINENO: result: $have_automake" >&5
4849echo "${ECHO_T}$have_automake" >&6
4850else
4851  echo "$as_me:$LINENO: result: no" >&5
4852echo "${ECHO_T}no" >&6
4853fi
4854
4855    if test $have_automake = no; then
4856      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4857echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4858   { (exit 1); exit 1; }; }
4859    fi
4860
4861    # Check whether automake is the correct version
4862    correct_version='1.9.6'
4863    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4864    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4865echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4866    automake --version > confauto.out 2>&1
4867    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4868      echo "$as_me:$LINENO: result: yes" >&5
4869echo "${ECHO_T}yes" >&6
4870    else
4871      rm -f confauto.out
4872      echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6
4874      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4875echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4876   { (exit 1); exit 1; }; }
4877    fi
4878    rm -f confauto.out
4879
4880    # Check if the executable automake is picked up from the correct location
4881    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4882echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4883    automake_dir=`which automake | sed -e 's=/automake=='`
4884    automake_dir=`cd $automake_dir; pwd`
4885    if test x$AUTOTOOLS_DIR = x; then
4886      want_dir=$AUTOTOOLS_DFLT/bin
4887    else
4888      want_dir=$AUTOTOOLS_DIR/bin
4889    fi
4890    if test $automake_dir = `cd $want_dir; pwd`; then
4891      echo "$as_me:$LINENO: result: yes" >&5
4892echo "${ECHO_T}yes" >&6
4893    else
4894      rm -f confauto.out
4895      echo "$as_me:$LINENO: result: no" >&5
4896echo "${ECHO_T}no" >&6
4897      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4898echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4899   { (exit 1); exit 1; }; }
4900    fi
4901
4902    # Check if this is the correct version of libtool (with escaped dots)
4903    if test x$AUTOTOOLS_DIR = x; then
4904      want_dir=$AUTOTOOLS_DFLT/share
4905    else
4906      want_dir=$AUTOTOOLS_DIR/share
4907    fi
4908    correct_version='1.5.22'
4909    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4910    as_ac_File=`echo "ac_cv_file_$want_dir/libtool/ltmain.sh" | $as_tr_sh`
4911echo "$as_me:$LINENO: checking for $want_dir/libtool/ltmain.sh" >&5
4912echo $ECHO_N "checking for $want_dir/libtool/ltmain.sh... $ECHO_C" >&6
4913if eval "test \"\${$as_ac_File+set}\" = set"; then
4914  echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916  test "$cross_compiling" = yes &&
4917  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4918echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4919   { (exit 1); exit 1; }; }
4920if test -r "$want_dir/libtool/ltmain.sh"; then
4921  eval "$as_ac_File=yes"
4922else
4923  eval "$as_ac_File=no"
4924fi
4925fi
4926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4927echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4928if test `eval echo '${'$as_ac_File'}'` = yes; then
4929  have_ltmain=yes
4930else
4931  have_ltmain=no
4932fi
4933
4934    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4935echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4936    if test $have_ltmain = yes; then
4937    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4938        echo "$as_me:$LINENO: result: yes" >&5
4939echo "${ECHO_T}yes" >&6
4940      else
4941        echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4944echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4945   { (exit 1); exit 1; }; }
4946      fi
4947    else
4948      echo "$as_me:$LINENO: result: no" >&5
4949echo "${ECHO_T}no" >&6
4950      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4951echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4952   { (exit 1); exit 1; }; }
4953    fi
4954  fi
4955
4956  # Check if we can find the libtool file
4957  if test x$AUTOTOOLS_DIR = x; then
4958    want_dir=$AUTOTOOLS_DFLT/share
4959  else
4960    want_dir=$AUTOTOOLS_DIR/share
4961  fi
4962  as_ac_File=`echo "ac_cv_file_$want_dir/aclocal/libtool.m4" | $as_tr_sh`
4963echo "$as_me:$LINENO: checking for $want_dir/aclocal/libtool.m4" >&5
4964echo $ECHO_N "checking for $want_dir/aclocal/libtool.m4... $ECHO_C" >&6
4965if eval "test \"\${$as_ac_File+set}\" = set"; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968  test "$cross_compiling" = yes &&
4969  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
4970echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
4971   { (exit 1); exit 1; }; }
4972if test -r "$want_dir/aclocal/libtool.m4"; then
4973  eval "$as_ac_File=yes"
4974else
4975  eval "$as_ac_File=no"
4976fi
4977fi
4978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
4979echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
4980if test `eval echo '${'$as_ac_File'}'` = yes; then
4981  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4982else
4983  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4984echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4985   { (exit 1); exit 1; }; }
4986fi
4987
4988
4989  # Check if we have an Externals file
4990  if test -r $srcdir/Externals; then
4991    coin_have_externals=yes
4992  fi
4993  # Check if subversion is installed and understands https
4994  # Extract the first word of "svn", so it can be a program name with args.
4995set dummy svn; ac_word=$2
4996echo "$as_me:$LINENO: checking for $ac_word" >&5
4997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4998if test "${ac_cv_prog_have_svn+set}" = set; then
4999  echo $ECHO_N "(cached) $ECHO_C" >&6
5000else
5001  if test -n "$have_svn"; then
5002  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5003else
5004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005for as_dir in $PATH
5006do
5007  IFS=$as_save_IFS
5008  test -z "$as_dir" && as_dir=.
5009  for ac_exec_ext in '' $ac_executable_extensions; do
5010  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011    ac_cv_prog_have_svn="yes"
5012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013    break 2
5014  fi
5015done
5016done
5017
5018  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5019fi
5020fi
5021have_svn=$ac_cv_prog_have_svn
5022if test -n "$have_svn"; then
5023  echo "$as_me:$LINENO: result: $have_svn" >&5
5024echo "${ECHO_T}$have_svn" >&6
5025else
5026  echo "$as_me:$LINENO: result: no" >&5
5027echo "${ECHO_T}no" >&6
5028fi
5029
5030  if test x$have_svn = xyes; then
5031    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5032echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5033if test "${ac_cv_svn_understands_https+set}" = set; then
5034  echo $ECHO_N "(cached) $ECHO_C" >&6
5035else
5036  svn --version > confauto.out 2>&1
5037                    if $EGREP https confauto.out >/dev/null 2>&1; then
5038                      ac_cv_svn_understands_https=yes
5039                    else
5040                      ac_cv_svn_understands_https=no
5041                      have_svn=no
5042                      ac_cv_prog_have_svn=no
5043                    fi
5044                    rm -f confauto.out
5045fi
5046echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5047echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5048  fi
5049
5050  # Find the location of the BuildTools directory
5051  BUILDTOOLSDIR=
5052  if test -r $srcdir/BuildTools/coin.m4; then
5053    BUILDTOOLSDIR=$srcdir/BuildTools
5054  else
5055    if test -r $srcdir/../BuildTools/coin.m4; then
5056      BUILDTOOLSDIR=$srcdir/../BuildTools
5057    else
5058      if test -r $srcdir/../../BuildTools/coin.m4; then
5059        BUILDTOOLSDIR=$srcdir/../../BuildTools
5060      else
5061        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5062echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5063   { (exit 1); exit 1; }; }
5064      fi
5065    fi
5066  fi
5067
5068
5069  # The following variable is set to the name of the directory where
5070  # the autotool scripts are located
5071
5072  AUX_DIR=$ac_aux_dir
5073fi
5074
5075# helpful variable for the base directory of this package
5076abs_source_dir=`cd $srcdir; pwd`
5077
5078
5079# Stuff for example Makefiles
5080if test x$prefix = xNONE; then
5081  full_prefix=$ac_default_prefix
5082else
5083  full_prefix=$prefix
5084fi
5085full_prefix=`cd $full_prefix ; pwd`
5086
5087abs_lib_dir=$full_prefix/lib
5088
5089abs_include_dir=$full_prefix/include
5090
5091abs_bin_dir=$full_prefix/bin
5092
5093
5094
5095if test $coin_have_externals = yes && test x$have_svn = xyes; then
5096  HAVE_EXTERNALS_TRUE=
5097  HAVE_EXTERNALS_FALSE='#'
5098else
5099  HAVE_EXTERNALS_TRUE='#'
5100  HAVE_EXTERNALS_FALSE=
5101fi
5102
5103
5104# AC_MSG_NOTICE([End automake initialisation.])
5105
5106
5107
5108LIBTOOL=
5109if test -r ../libtool; then
5110  coin_config_dir=..
5111  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5112fi
5113if test "x$LIBTOOL" = x; then
5114  if test -r ../../libtool; then
5115    coin_config_dir=../..
5116    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5117  fi
5118fi
5119
5120if test "x$LIBTOOL" = x; then
5121# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5122  # Stuff for libtool
5123  # Check whether --enable-shared or --disable-shared was given.
5124if test "${enable_shared+set}" = set; then
5125  enableval="$enable_shared"
5126  p=${PACKAGE-default}
5127    case $enableval in
5128    yes) enable_shared=yes ;;
5129    no) enable_shared=no ;;
5130    *)
5131      enable_shared=no
5132      # Look at the argument we got.  We use all the common list separators.
5133      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5134      for pkg in $enableval; do
5135        IFS="$lt_save_ifs"
5136        if test "X$pkg" = "X$p"; then
5137          enable_shared=yes
5138        fi
5139      done
5140      IFS="$lt_save_ifs"
5141      ;;
5142    esac
5143else
5144  enable_shared=yes
5145fi;
5146
5147# Check whether --enable-fast-install or --disable-fast-install was given.
5148if test "${enable_fast_install+set}" = set; then
5149  enableval="$enable_fast_install"
5150  p=${PACKAGE-default}
5151    case $enableval in
5152    yes) enable_fast_install=yes ;;
5153    no) enable_fast_install=no ;;
5154    *)
5155      enable_fast_install=no
5156      # Look at the argument we got.  We use all the common list separators.
5157      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5158      for pkg in $enableval; do
5159        IFS="$lt_save_ifs"
5160        if test "X$pkg" = "X$p"; then
5161          enable_fast_install=yes
5162        fi
5163      done
5164      IFS="$lt_save_ifs"
5165      ;;
5166    esac
5167else
5168  enable_fast_install=yes
5169fi;
5170
5171echo "$as_me:$LINENO: checking host system type" >&5
5172echo $ECHO_N "checking host system type... $ECHO_C" >&6
5173if test "${ac_cv_host+set}" = set; then
5174  echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176  ac_cv_host_alias=$host_alias
5177test -z "$ac_cv_host_alias" &&
5178  ac_cv_host_alias=$ac_cv_build_alias
5179ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5180  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5181echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5182   { (exit 1); exit 1; }; }
5183
5184fi
5185echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5186echo "${ECHO_T}$ac_cv_host" >&6
5187host=$ac_cv_host
5188host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5189host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5190host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5191
5192
5193echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5194echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5195if test "${lt_cv_path_SED+set}" = set; then
5196  echo $ECHO_N "(cached) $ECHO_C" >&6
5197else
5198  # Loop through the user's path and test for sed and gsed.
5199# Then use that list of sed's as ones to test for truncation.
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203  IFS=$as_save_IFS
5204  test -z "$as_dir" && as_dir=.
5205  for lt_ac_prog in sed gsed; do
5206    for ac_exec_ext in '' $ac_executable_extensions; do
5207      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5208        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5209      fi
5210    done
5211  done
5212done
5213lt_ac_max=0
5214lt_ac_count=0
5215# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5216# along with /bin/sed that truncates output.
5217for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5218  test ! -f $lt_ac_sed && continue
5219  cat /dev/null > conftest.in
5220  lt_ac_count=0
5221  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5222  # Check for GNU sed and select it if it is found.
5223  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5224    lt_cv_path_SED=$lt_ac_sed
5225    break
5226  fi
5227  while true; do
5228    cat conftest.in conftest.in >conftest.tmp
5229    mv conftest.tmp conftest.in
5230    cp conftest.in conftest.nl
5231    echo >>conftest.nl
5232    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5233    cmp -s conftest.out conftest.nl || break
5234    # 10000 chars as input seems more than enough
5235    test $lt_ac_count -gt 10 && break
5236    lt_ac_count=`expr $lt_ac_count + 1`
5237    if test $lt_ac_count -gt $lt_ac_max; then
5238      lt_ac_max=$lt_ac_count
5239      lt_cv_path_SED=$lt_ac_sed
5240    fi
5241  done
5242done
5243
5244fi
5245
5246SED=$lt_cv_path_SED
5247echo "$as_me:$LINENO: result: $SED" >&5
5248echo "${ECHO_T}$SED" >&6
5249
5250
5251# Check whether --with-gnu-ld or --without-gnu-ld was given.
5252if test "${with_gnu_ld+set}" = set; then
5253  withval="$with_gnu_ld"
5254  test "$withval" = no || with_gnu_ld=yes
5255else
5256  with_gnu_ld=no
5257fi;
5258ac_prog=ld
5259if test "$GCC" = yes; then
5260  # Check if gcc -print-prog-name=ld gives a path.
5261  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5262echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5263  case $host in
5264  *-*-mingw*)
5265    # gcc leaves a trailing carriage return which upsets mingw
5266    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5267  *)
5268    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5269  esac
5270  case $ac_prog in
5271    # Accept absolute paths.
5272    [\\/]* | ?:[\\/]*)
5273      re_direlt='/[^/][^/]*/\.\./'
5274      # Canonicalize the pathname of ld
5275      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5276      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5277        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5278      done
5279      test -z "$LD" && LD="$ac_prog"
5280      ;;
5281  "")
5282    # If it fails, then pretend we aren't using GCC.
5283    ac_prog=ld
5284    ;;
5285  *)
5286    # If it is relative, then search for the first ld in PATH.
5287    with_gnu_ld=unknown
5288    ;;
5289  esac
5290elif test "$with_gnu_ld" = yes; then
5291  echo "$as_me:$LINENO: checking for GNU ld" >&5
5292echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5293else
5294  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5295echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5296fi
5297if test "${lt_cv_path_LD+set}" = set; then
5298  echo $ECHO_N "(cached) $ECHO_C" >&6
5299else
5300  if test -z "$LD"; then
5301  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5302  for ac_dir in $PATH; do
5303    IFS="$lt_save_ifs"
5304    test -z "$ac_dir" && ac_dir=.
5305    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5306      lt_cv_path_LD="$ac_dir/$ac_prog"
5307      # Check to see if the program is GNU ld.  I'd rather use --version,
5308      # but apparently some variants of GNU ld only accept -v.
5309      # Break only if it was the GNU/non-GNU ld that we prefer.
5310      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5311      *GNU* | *'with BFD'*)
5312        test "$with_gnu_ld" != no && break
5313        ;;
5314      *)
5315        test "$with_gnu_ld" != yes && break
5316        ;;
5317      esac
5318    fi
5319  done
5320  IFS="$lt_save_ifs"
5321else
5322  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5323fi
5324fi
5325
5326LD="$lt_cv_path_LD"
5327if test -n "$LD"; then
5328  echo "$as_me:$LINENO: result: $LD" >&5
5329echo "${ECHO_T}$LD" >&6
5330else
5331  echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
5333fi
5334test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5335echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5336   { (exit 1); exit 1; }; }
5337echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5338echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5339if test "${lt_cv_prog_gnu_ld+set}" = set; then
5340  echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5343case `$LD -v 2>&1 </dev/null` in
5344*GNU* | *'with BFD'*)
5345  lt_cv_prog_gnu_ld=yes
5346  ;;
5347*)
5348  lt_cv_prog_gnu_ld=no
5349  ;;
5350esac
5351fi
5352echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5353echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5354with_gnu_ld=$lt_cv_prog_gnu_ld
5355
5356
5357echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5358echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5359if test "${lt_cv_ld_reload_flag+set}" = set; then
5360  echo $ECHO_N "(cached) $ECHO_C" >&6
5361else
5362  lt_cv_ld_reload_flag='-r'
5363fi
5364echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5365echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5366reload_flag=$lt_cv_ld_reload_flag
5367case $reload_flag in
5368"" | " "*) ;;
5369*) reload_flag=" $reload_flag" ;;
5370esac
5371reload_cmds='$LD$reload_flag -o $output$reload_objs'
5372case $host_os in
5373  darwin*)
5374    if test "$GCC" = yes; then
5375      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5376    else
5377      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5378    fi
5379    ;;
5380esac
5381
5382echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5383echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5384if test "${lt_cv_path_NM+set}" = set; then
5385  echo $ECHO_N "(cached) $ECHO_C" >&6
5386else
5387  if test -n "$NM"; then
5388  # Let the user override the test.
5389  lt_cv_path_NM="$NM"
5390else
5391  lt_nm_to_check="${ac_tool_prefix}nm"
5392  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5393    lt_nm_to_check="$lt_nm_to_check nm"
5394  fi
5395  for lt_tmp_nm in $lt_nm_to_check; do
5396    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5397    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5398      IFS="$lt_save_ifs"
5399      test -z "$ac_dir" && ac_dir=.
5400      tmp_nm="$ac_dir/$lt_tmp_nm"
5401      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5402        # Check to see if the nm accepts a BSD-compat flag.
5403        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5404        #   nm: unknown option "B" ignored
5405        # Tru64's nm complains that /dev/null is an invalid object file
5406        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5407        */dev/null* | *'Invalid file or object type'*)
5408          lt_cv_path_NM="$tmp_nm -B"
5409          break
5410          ;;
5411        *)
5412          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5413          */dev/null*)
5414            lt_cv_path_NM="$tmp_nm -p"
5415            break
5416            ;;
5417          *)
5418            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5419            continue # so that we can try to find one that supports BSD flags
5420            ;;
5421          esac
5422          ;;
5423        esac
5424      fi
5425    done
5426    IFS="$lt_save_ifs"
5427  done
5428  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5429fi
5430fi
5431echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5432echo "${ECHO_T}$lt_cv_path_NM" >&6
5433NM="$lt_cv_path_NM"
5434
5435echo "$as_me:$LINENO: checking whether ln -s works" >&5
5436echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5437LN_S=$as_ln_s
5438if test "$LN_S" = "ln -s"; then
5439  echo "$as_me:$LINENO: result: yes" >&5
5440echo "${ECHO_T}yes" >&6
5441else
5442  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5443echo "${ECHO_T}no, using $LN_S" >&6
5444fi
5445
5446echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5447echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5448if test "${lt_cv_deplibs_check_method+set}" = set; then
5449  echo $ECHO_N "(cached) $ECHO_C" >&6
5450else
5451  lt_cv_file_magic_cmd='$MAGIC_CMD'
5452lt_cv_file_magic_test_file=
5453lt_cv_deplibs_check_method='unknown'
5454# Need to set the preceding variable on all platforms that support
5455# interlibrary dependencies.
5456# 'none' -- dependencies not supported.
5457# `unknown' -- same as none, but documents that we really don't know.
5458# 'pass_all' -- all dependencies passed with no checks.
5459# 'test_compile' -- check by making test program.
5460# 'file_magic [[regex]]' -- check by looking for files in library path
5461# which responds to the $file_magic_cmd with a given extended regex.
5462# If you have `file' or equivalent on your system and you're not sure
5463# whether `pass_all' will *always* work, you probably want this one.
5464
5465case $host_os in
5466aix4* | aix5*)
5467  lt_cv_deplibs_check_method=pass_all
5468  ;;
5469
5470beos*)
5471  lt_cv_deplibs_check_method=pass_all
5472  ;;
5473
5474bsdi[45]*)
5475  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5476  lt_cv_file_magic_cmd='/usr/bin/file -L'
5477  lt_cv_file_magic_test_file=/shlib/libc.so
5478  ;;
5479
5480cygwin*)
5481  # func_win32_libid is a shell function defined in ltmain.sh
5482  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5483  lt_cv_file_magic_cmd='func_win32_libid'
5484  ;;
5485
5486mingw* | pw32*)
5487  # Base MSYS/MinGW do not provide the 'file' command needed by
5488  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5489  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5490  lt_cv_file_magic_cmd='$OBJDUMP -f'
5491  ;;
5492
5493darwin* | rhapsody*)
5494  lt_cv_deplibs_check_method=pass_all
5495  ;;
5496
5497freebsd* | kfreebsd*-gnu | dragonfly*)
5498  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5499    case $host_cpu in
5500    i*86 )
5501      # Not sure whether the presence of OpenBSD here was a mistake.
5502      # Let's accept both of them until this is cleared up.
5503      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5504      lt_cv_file_magic_cmd=/usr/bin/file
5505      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5506      ;;
5507    esac
5508  else
5509    lt_cv_deplibs_check_method=pass_all
5510  fi
5511  ;;
5512
5513gnu*)
5514  lt_cv_deplibs_check_method=pass_all
5515  ;;
5516
5517hpux10.20* | hpux11*)
5518  lt_cv_file_magic_cmd=/usr/bin/file
5519  case $host_cpu in
5520  ia64*)
5521    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5522    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5523    ;;
5524  hppa*64*)
5525    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]'
5526    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5527    ;;
5528  *)
5529    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5530    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5531    ;;
5532  esac
5533  ;;
5534
5535interix3*)
5536  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5537  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5538  ;;
5539
5540irix5* | irix6* | nonstopux*)
5541  case $LD in
5542  *-32|*"-32 ") libmagic=32-bit;;
5543  *-n32|*"-n32 ") libmagic=N32;;
5544  *-64|*"-64 ") libmagic=64-bit;;
5545  *) libmagic=never-match;;
5546  esac
5547  lt_cv_deplibs_check_method=pass_all
5548  ;;
5549
5550# This must be Linux ELF.
5551linux*)
5552  lt_cv_deplibs_check_method=pass_all
5553  ;;
5554
5555netbsd*)
5556  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5557    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5558  else
5559    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5560  fi
5561  ;;
5562
5563newos6*)
5564  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5565  lt_cv_file_magic_cmd=/usr/bin/file
5566  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5567  ;;
5568
5569nto-qnx*)
5570  lt_cv_deplibs_check_method=unknown
5571  ;;
5572
5573openbsd*)
5574  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5575    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5576  else
5577    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5578  fi
5579  ;;
5580
5581osf3* | osf4* | osf5*)
5582  lt_cv_deplibs_check_method=pass_all
5583  ;;
5584
5585solaris*)
5586  lt_cv_deplibs_check_method=pass_all
5587  ;;
5588
5589sysv4 | sysv4.3*)
5590  case $host_vendor in
5591  motorola)
5592    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]'
5593    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5594    ;;
5595  ncr)
5596    lt_cv_deplibs_check_method=pass_all
5597    ;;
5598  sequent)
5599    lt_cv_file_magic_cmd='/bin/file'
5600    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5601    ;;
5602  sni)
5603    lt_cv_file_magic_cmd='/bin/file'
5604    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5605    lt_cv_file_magic_test_file=/lib/libc.so
5606    ;;
5607  siemens)
5608    lt_cv_deplibs_check_method=pass_all
5609    ;;
5610  pc)
5611    lt_cv_deplibs_check_method=pass_all
5612    ;;
5613  esac
5614  ;;
5615
5616sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5617  lt_cv_deplibs_check_method=pass_all
5618  ;;
5619esac
5620
5621fi
5622echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5623echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5624file_magic_cmd=$lt_cv_file_magic_cmd
5625deplibs_check_method=$lt_cv_deplibs_check_method
5626test -z "$deplibs_check_method" && deplibs_check_method=unknown
5627
5628
5629
5630
5631# If no C compiler was specified, use CC.
5632LTCC=${LTCC-"$CC"}
5633
5634# If no C compiler flags were specified, use CFLAGS.
5635LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5636
5637# Allow CC to be a program name with arguments.
5638compiler=$CC
5639
5640# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5641if test "${enable_libtool_lock+set}" = set; then
5642  enableval="$enable_libtool_lock"
5643
5644fi;
5645test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5646
5647# Some flags need to be propagated to the compiler or linker for good
5648# libtool support.
5649case $host in
5650ia64-*-hpux*)
5651  # Find out which ABI we are using.
5652  echo 'int i;' > conftest.$ac_ext
5653  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5654  (eval $ac_compile) 2>&5
5655  ac_status=$?
5656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657  (exit $ac_status); }; then
5658    case `/usr/bin/file conftest.$ac_objext` in
5659    *ELF-32*)
5660      HPUX_IA64_MODE="32"
5661      ;;
5662    *ELF-64*)
5663      HPUX_IA64_MODE="64"
5664      ;;
5665    esac
5666  fi
5667  rm -rf conftest*
5668  ;;
5669*-*-irix6*)
5670  # Find out which ABI we are using.
5671  echo '#line 5671 "configure"' > conftest.$ac_ext
5672  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673  (eval $ac_compile) 2>&5
5674  ac_status=$?
5675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676  (exit $ac_status); }; then
5677   if test "$lt_cv_prog_gnu_ld" = yes; then
5678    case `/usr/bin/file conftest.$ac_objext` in
5679    *32-bit*)
5680      LD="${LD-ld} -melf32bsmip"
5681      ;;
5682    *N32*)
5683      LD="${LD-ld} -melf32bmipn32"
5684      ;;
5685    *64-bit*)
5686      LD="${LD-ld} -melf64bmip"
5687      ;;
5688    esac
5689   else
5690    case `/usr/bin/file conftest.$ac_objext` in
5691    *32-bit*)
5692      LD="${LD-ld} -32"
5693      ;;
5694    *N32*)
5695      LD="${LD-ld} -n32"
5696      ;;
5697    *64-bit*)
5698      LD="${LD-ld} -64"
5699      ;;
5700    esac
5701   fi
5702  fi
5703  rm -rf conftest*
5704  ;;
5705
5706x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5707  # Find out which ABI we are using.
5708  echo 'int i;' > conftest.$ac_ext
5709  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5710  (eval $ac_compile) 2>&5
5711  ac_status=$?
5712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713  (exit $ac_status); }; then
5714    case `/usr/bin/file conftest.o` in
5715    *32-bit*)
5716      case $host in
5717        x86_64-*linux*)
5718          LD="${LD-ld} -m elf_i386"
5719          ;;
5720        ppc64-*linux*|powerpc64-*linux*)
5721          LD="${LD-ld} -m elf32ppclinux"
5722          ;;
5723        s390x-*linux*)
5724          LD="${LD-ld} -m elf_s390"
5725          ;;
5726        sparc64-*linux*)
5727          LD="${LD-ld} -m elf32_sparc"
5728          ;;
5729      esac
5730      ;;
5731    *64-bit*)
5732      case $host in
5733        x86_64-*linux*)
5734          LD="${LD-ld} -m elf_x86_64"
5735          ;;
5736        ppc*-*linux*|powerpc*-*linux*)
5737          LD="${LD-ld} -m elf64ppc"
5738          ;;
5739        s390*-*linux*)
5740          LD="${LD-ld} -m elf64_s390"
5741          ;;
5742        sparc*-*linux*)
5743          LD="${LD-ld} -m elf64_sparc"
5744          ;;
5745      esac
5746      ;;
5747    esac
5748  fi
5749  rm -rf conftest*
5750  ;;
5751
5752*-*-sco3.2v5*)
5753  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5754  SAVE_CFLAGS="$CFLAGS"
5755  CFLAGS="$CFLAGS -belf"
5756  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5757echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5758if test "${lt_cv_cc_needs_belf+set}" = set; then
5759  echo $ECHO_N "(cached) $ECHO_C" >&6
5760else
5761  ac_ext=c
5762ac_cpp='$CPP $CPPFLAGS'
5763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765ac_compiler_gnu=$ac_cv_c_compiler_gnu
5766
5767     cat >conftest.$ac_ext <<_ACEOF
5768/* confdefs.h.  */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h.  */
5773
5774int
5775main ()
5776{
5777
5778  ;
5779  return 0;
5780}
5781_ACEOF
5782rm -f conftest.$ac_objext conftest$ac_exeext
5783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5784  (eval $ac_link) 2>conftest.er1
5785  ac_status=$?
5786  grep -v '^ *+' conftest.er1 >conftest.err
5787  rm -f conftest.er1
5788  cat conftest.err >&5
5789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790  (exit $ac_status); } &&
5791         { ac_try='test -z "$ac_c_werror_flag"
5792                         || test ! -s conftest.err'
5793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794  (eval $ac_try) 2>&5
5795  ac_status=$?
5796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797  (exit $ac_status); }; } &&
5798         { ac_try='test -s conftest$ac_exeext'
5799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800  (eval $ac_try) 2>&5
5801  ac_status=$?
5802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803  (exit $ac_status); }; }; then
5804  lt_cv_cc_needs_belf=yes
5805else
5806  echo "$as_me: failed program was:" >&5
5807sed 's/^/| /' conftest.$ac_ext >&5
5808
5809lt_cv_cc_needs_belf=no
5810fi
5811rm -f conftest.err conftest.$ac_objext \
5812      conftest$ac_exeext conftest.$ac_ext
5813     ac_ext=c
5814ac_cpp='$CPP $CPPFLAGS'
5815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5817ac_compiler_gnu=$ac_cv_c_compiler_gnu
5818
5819fi
5820echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5821echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5822  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5823    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5824    CFLAGS="$SAVE_CFLAGS"
5825  fi
5826  ;;
5827sparc*-*solaris*)
5828  # Find out which ABI we are using.
5829  echo 'int i;' > conftest.$ac_ext
5830  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5831  (eval $ac_compile) 2>&5
5832  ac_status=$?
5833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834  (exit $ac_status); }; then
5835    case `/usr/bin/file conftest.o` in
5836    *64-bit*)
5837      case $lt_cv_prog_gnu_ld in
5838      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5839      *)    LD="${LD-ld} -64" ;;
5840      esac
5841      ;;
5842    esac
5843  fi
5844  rm -rf conftest*
5845  ;;
5846
5847
5848esac
5849
5850need_locks="$enable_libtool_lock"
5851
5852
5853ac_ext=c
5854ac_cpp='$CPP $CPPFLAGS'
5855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857ac_compiler_gnu=$ac_cv_c_compiler_gnu
5858echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5859echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5860# On Suns, sometimes $CPP names a directory.
5861if test -n "$CPP" && test -d "$CPP"; then
5862  CPP=
5863fi
5864if test -z "$CPP"; then
5865  if test "${ac_cv_prog_CPP+set}" = set; then
5866  echo $ECHO_N "(cached) $ECHO_C" >&6
5867else
5868      # Double quotes because CPP needs to be expanded
5869    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5870    do
5871      ac_preproc_ok=false
5872for ac_c_preproc_warn_flag in '' yes
5873do
5874  # Use a header file that comes with gcc, so configuring glibc
5875  # with a fresh cross-compiler works.
5876  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5877  # <limits.h> exists even on freestanding compilers.
5878  # On the NeXT, cc -E runs the code through the compiler's parser,
5879  # not just through cpp. "Syntax error" is here to catch this case.
5880  cat >conftest.$ac_ext <<_ACEOF
5881/* confdefs.h.  */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h.  */
5886#ifdef __STDC__
5887# include <limits.h>
5888#else
5889# include <assert.h>
5890#endif
5891                     Syntax error
5892_ACEOF
5893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5894  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5895  ac_status=$?
5896  grep -v '^ *+' conftest.er1 >conftest.err
5897  rm -f conftest.er1
5898  cat conftest.err >&5
5899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900  (exit $ac_status); } >/dev/null; then
5901  if test -s conftest.err; then
5902    ac_cpp_err=$ac_c_preproc_warn_flag
5903    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5904  else
5905    ac_cpp_err=
5906  fi
5907else
5908  ac_cpp_err=yes
5909fi
5910if test -z "$ac_cpp_err"; then
5911  :
5912else
5913  echo "$as_me: failed program was:" >&5
5914sed 's/^/| /' conftest.$ac_ext >&5
5915
5916  # Broken: fails on valid input.
5917continue
5918fi
5919rm -f conftest.err conftest.$ac_ext
5920
5921  # OK, works on sane cases.  Now check whether non-existent headers
5922  # can be detected and how.
5923  cat >conftest.$ac_ext <<_ACEOF
5924/* confdefs.h.  */
5925_ACEOF
5926cat confdefs.h >>conftest.$ac_ext
5927cat >>conftest.$ac_ext <<_ACEOF
5928/* end confdefs.h.  */
5929#include <ac_nonexistent.h>
5930_ACEOF
5931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5932  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5933  ac_status=$?
5934  grep -v '^ *+' conftest.er1 >conftest.err
5935  rm -f conftest.er1
5936  cat conftest.err >&5
5937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938  (exit $ac_status); } >/dev/null; then
5939  if test -s conftest.err; then
5940    ac_cpp_err=$ac_c_preproc_warn_flag
5941    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5942  else
5943    ac_cpp_err=
5944  fi
5945else
5946  ac_cpp_err=yes
5947fi
5948if test -z "$ac_cpp_err"; then
5949  # Broken: success on invalid input.
5950continue
5951else
5952  echo "$as_me: failed program was:" >&5
5953sed 's/^/| /' conftest.$ac_ext >&5
5954
5955  # Passes both tests.
5956ac_preproc_ok=:
5957break
5958fi
5959rm -f conftest.err conftest.$ac_ext
5960
5961done
5962# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5963rm -f conftest.err conftest.$ac_ext
5964if $ac_preproc_ok; then
5965  break
5966fi
5967
5968    done
5969    ac_cv_prog_CPP=$CPP
5970
5971fi
5972  CPP=$ac_cv_prog_CPP
5973else
5974  ac_cv_prog_CPP=$CPP
5975fi
5976echo "$as_me:$LINENO: result: $CPP" >&5
5977echo "${ECHO_T}$CPP" >&6
5978ac_preproc_ok=false
5979for ac_c_preproc_warn_flag in '' yes
5980do
5981  # Use a header file that comes with gcc, so configuring glibc
5982  # with a fresh cross-compiler works.
5983  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5984  # <limits.h> exists even on freestanding compilers.
5985  # On the NeXT, cc -E runs the code through the compiler's parser,
5986  # not just through cpp. "Syntax error" is here to catch this case.
5987  cat >conftest.$ac_ext <<_ACEOF
5988/* confdefs.h.  */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
5992/* end confdefs.h.  */
5993#ifdef __STDC__
5994# include <limits.h>
5995#else
5996# include <assert.h>
5997#endif
5998                     Syntax error
5999_ACEOF
6000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6001  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6002  ac_status=$?
6003  grep -v '^ *+' conftest.er1 >conftest.err
6004  rm -f conftest.er1
6005  cat conftest.err >&5
6006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007  (exit $ac_status); } >/dev/null; then
6008  if test -s conftest.err; then
6009    ac_cpp_err=$ac_c_preproc_warn_flag
6010    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6011  else
6012    ac_cpp_err=
6013  fi
6014else
6015  ac_cpp_err=yes
6016fi
6017if test -z "$ac_cpp_err"; then
6018  :
6019else
6020  echo "$as_me: failed program was:" >&5
6021sed 's/^/| /' conftest.$ac_ext >&5
6022
6023  # Broken: fails on valid input.
6024continue
6025fi
6026rm -f conftest.err conftest.$ac_ext
6027
6028  # OK, works on sane cases.  Now check whether non-existent headers
6029  # can be detected and how.
6030  cat >conftest.$ac_ext <<_ACEOF
6031/* confdefs.h.  */
6032_ACEOF
6033cat confdefs.h >>conftest.$ac_ext
6034cat >>conftest.$ac_ext <<_ACEOF
6035/* end confdefs.h.  */
6036#include <ac_nonexistent.h>
6037_ACEOF
6038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6040  ac_status=$?
6041  grep -v '^ *+' conftest.er1 >conftest.err
6042  rm -f conftest.er1
6043  cat conftest.err >&5
6044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045  (exit $ac_status); } >/dev/null; then
6046  if test -s conftest.err; then
6047    ac_cpp_err=$ac_c_preproc_warn_flag
6048    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6049  else
6050    ac_cpp_err=
6051  fi
6052else
6053  ac_cpp_err=yes
6054fi
6055if test -z "$ac_cpp_err"; then
6056  # Broken: success on invalid input.
6057continue
6058else
6059  echo "$as_me: failed program was:" >&5
6060sed 's/^/| /' conftest.$ac_ext >&5
6061
6062  # Passes both tests.
6063ac_preproc_ok=:
6064break
6065fi
6066rm -f conftest.err conftest.$ac_ext
6067
6068done
6069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6070rm -f conftest.err conftest.$ac_ext
6071if $ac_preproc_ok; then
6072  :
6073else
6074  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6075See \`config.log' for more details." >&5
6076echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6077See \`config.log' for more details." >&2;}
6078   { (exit 1); exit 1; }; }
6079fi
6080
6081ac_ext=c
6082ac_cpp='$CPP $CPPFLAGS'
6083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086
6087
6088echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6089echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6090if test "${ac_cv_header_stdc+set}" = set; then
6091  echo $ECHO_N "(cached) $ECHO_C" >&6
6092else
6093  cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h.  */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h.  */
6099#include <stdlib.h>
6100#include <stdarg.h>
6101#include <string.h>
6102#include <float.h>
6103
6104int
6105main ()
6106{
6107
6108  ;
6109  return 0;
6110}
6111_ACEOF
6112rm -f conftest.$ac_objext
6113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114  (eval $ac_compile) 2>conftest.er1
6115  ac_status=$?
6116  grep -v '^ *+' conftest.er1 >conftest.err
6117  rm -f conftest.er1
6118  cat conftest.err >&5
6119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120  (exit $ac_status); } &&
6121         { ac_try='test -z "$ac_c_werror_flag"
6122                         || test ! -s conftest.err'
6123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6124  (eval $ac_try) 2>&5
6125  ac_status=$?
6126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127  (exit $ac_status); }; } &&
6128         { ac_try='test -s conftest.$ac_objext'
6129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130  (eval $ac_try) 2>&5
6131  ac_status=$?
6132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133  (exit $ac_status); }; }; then
6134  ac_cv_header_stdc=yes
6135else
6136  echo "$as_me: failed program was:" >&5
6137sed 's/^/| /' conftest.$ac_ext >&5
6138
6139ac_cv_header_stdc=no
6140fi
6141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6142
6143if test $ac_cv_header_stdc = yes; then
6144  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6145  cat >conftest.$ac_ext <<_ACEOF
6146/* confdefs.h.  */
6147_ACEOF
6148cat confdefs.h >>conftest.$ac_ext
6149cat >>conftest.$ac_ext <<_ACEOF
6150/* end confdefs.h.  */
6151#include <string.h>
6152
6153_ACEOF
6154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6155  $EGREP "memchr" >/dev/null 2>&1; then
6156  :
6157else
6158  ac_cv_header_stdc=no
6159fi
6160rm -f conftest*
6161
6162fi
6163
6164if test $ac_cv_header_stdc = yes; then
6165  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6166  cat >conftest.$ac_ext <<_ACEOF
6167/* confdefs.h.  */
6168_ACEOF
6169cat confdefs.h >>conftest.$ac_ext
6170cat >>conftest.$ac_ext <<_ACEOF
6171/* end confdefs.h.  */
6172#include <stdlib.h>
6173
6174_ACEOF
6175if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6176  $EGREP "free" >/dev/null 2>&1; then
6177  :
6178else
6179  ac_cv_header_stdc=no
6180fi
6181rm -f conftest*
6182
6183fi
6184
6185if test $ac_cv_header_stdc = yes; then
6186  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6187  if test "$cross_compiling" = yes; then
6188  :
6189else
6190  cat >conftest.$ac_ext <<_ACEOF
6191/* confdefs.h.  */
6192_ACEOF
6193cat confdefs.h >>conftest.$ac_ext
6194cat >>conftest.$ac_ext <<_ACEOF
6195/* end confdefs.h.  */
6196#include <ctype.h>
6197#if ((' ' & 0x0FF) == 0x020)
6198# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6199# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6200#else
6201# define ISLOWER(c) \
6202                   (('a' <= (c) && (c) <= 'i') \
6203                     || ('j' <= (c) && (c) <= 'r') \
6204                     || ('s' <= (c) && (c) <= 'z'))
6205# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6206#endif
6207
6208#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6209int
6210main ()
6211{
6212  int i;
6213  for (i = 0; i < 256; i++)
6214    if (XOR (islower (i), ISLOWER (i))
6215        || toupper (i) != TOUPPER (i))
6216      exit(2);
6217  exit (0);
6218}
6219_ACEOF
6220rm -f conftest$ac_exeext
6221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6222  (eval $ac_link) 2>&5
6223  ac_status=$?
6224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6227  (eval $ac_try) 2>&5
6228  ac_status=$?
6229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230  (exit $ac_status); }; }; then
6231  :
6232else
6233  echo "$as_me: program exited with status $ac_status" >&5
6234echo "$as_me: failed program was:" >&5
6235sed 's/^/| /' conftest.$ac_ext >&5
6236
6237( exit $ac_status )
6238ac_cv_header_stdc=no
6239fi
6240rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6241fi
6242fi
6243fi
6244echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6245echo "${ECHO_T}$ac_cv_header_stdc" >&6
6246if test $ac_cv_header_stdc = yes; then
6247
6248cat >>confdefs.h <<\_ACEOF
6249#define STDC_HEADERS 1
6250_ACEOF
6251
6252fi
6253
6254# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6265                  inttypes.h stdint.h unistd.h
6266do
6267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6268echo "$as_me:$LINENO: checking for $ac_header" >&5
6269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6270if eval "test \"\${$as_ac_Header+set}\" = set"; then
6271  echo $ECHO_N "(cached) $ECHO_C" >&6
6272else
6273  cat >conftest.$ac_ext <<_ACEOF
6274/* confdefs.h.  */
6275_ACEOF
6276cat confdefs.h >>conftest.$ac_ext
6277cat >>conftest.$ac_ext <<_ACEOF
6278/* end confdefs.h.  */
6279$ac_includes_default
6280
6281#include <$ac_header>
6282_ACEOF
6283rm -f conftest.$ac_objext
6284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6285  (eval $ac_compile) 2>conftest.er1
6286  ac_status=$?
6287  grep -v '^ *+' conftest.er1 >conftest.err
6288  rm -f conftest.er1
6289  cat conftest.err >&5
6290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291  (exit $ac_status); } &&
6292         { ac_try='test -z "$ac_c_werror_flag"
6293                         || test ! -s conftest.err'
6294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6295  (eval $ac_try) 2>&5
6296  ac_status=$?
6297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298  (exit $ac_status); }; } &&
6299         { ac_try='test -s conftest.$ac_objext'
6300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301  (eval $ac_try) 2>&5
6302  ac_status=$?
6303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304  (exit $ac_status); }; }; then
6305  eval "$as_ac_Header=yes"
6306else
6307  echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310eval "$as_ac_Header=no"
6311fi
6312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6313fi
6314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6316if test `eval echo '${'$as_ac_Header'}'` = yes; then
6317  cat >>confdefs.h <<_ACEOF
6318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6319_ACEOF
6320
6321fi
6322
6323done
6324
6325
6326
6327for ac_header in dlfcn.h
6328do
6329as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330if eval "test \"\${$as_ac_Header+set}\" = set"; then
6331  echo "$as_me:$LINENO: checking for $ac_header" >&5
6332echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334  echo $ECHO_N "(cached) $ECHO_C" >&6
6335fi
6336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6338else
6339  # Is the header compilable?
6340echo "$as_me:$LINENO: checking $ac_header usability" >&5
6341echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6342cat >conftest.$ac_ext <<_ACEOF
6343/* confdefs.h.  */
6344_ACEOF
6345cat confdefs.h >>conftest.$ac_ext
6346cat >>conftest.$ac_ext <<_ACEOF
6347/* end confdefs.h.  */
6348$ac_includes_default
6349#include <$ac_header>
6350_ACEOF
6351rm -f conftest.$ac_objext
6352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353  (eval $ac_compile) 2>conftest.er1
6354  ac_status=$?
6355  grep -v '^ *+' conftest.er1 >conftest.err
6356  rm -f conftest.er1
6357  cat conftest.err >&5
6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359  (exit $ac_status); } &&
6360         { ac_try='test -z "$ac_c_werror_flag"
6361                         || test ! -s conftest.err'
6362  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363  (eval $ac_try) 2>&5
6364  ac_status=$?
6365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366  (exit $ac_status); }; } &&
6367         { ac_try='test -s conftest.$ac_objext'
6368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6369  (eval $ac_try) 2>&5
6370  ac_status=$?
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); }; }; then
6373  ac_header_compiler=yes
6374else
6375  echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378ac_header_compiler=no
6379fi
6380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6381echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6382echo "${ECHO_T}$ac_header_compiler" >&6
6383
6384# Is the header present?
6385echo "$as_me:$LINENO: checking $ac_header presence" >&5
6386echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6387cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h.  */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h.  */
6393#include <$ac_header>
6394_ACEOF
6395if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6396  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6397  ac_status=$?
6398  grep -v '^ *+' conftest.er1 >conftest.err
6399  rm -f conftest.er1
6400  cat conftest.err >&5
6401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402  (exit $ac_status); } >/dev/null; then
6403  if test -s conftest.err; then
6404    ac_cpp_err=$ac_c_preproc_warn_flag
6405    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6406  else
6407    ac_cpp_err=
6408  fi
6409else
6410  ac_cpp_err=yes
6411fi
6412if test -z "$ac_cpp_err"; then
6413  ac_header_preproc=yes
6414else
6415  echo "$as_me: failed program was:" >&5
6416sed 's/^/| /' conftest.$ac_ext >&5
6417
6418  ac_header_preproc=no
6419fi
6420rm -f conftest.err conftest.$ac_ext
6421echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6422echo "${ECHO_T}$ac_header_preproc" >&6
6423
6424# So?  What about this header?
6425case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6426  yes:no: )
6427    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6428echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6429    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6430echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6431    ac_header_preproc=yes
6432    ;;
6433  no:yes:* )
6434    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6435echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6436    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6437echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6438    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6439echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6440    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6441echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6442    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6443echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6444    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6445echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6446    (
6447      cat <<\_ASBOX
6448## ---------------------------------------- ##
6449## Report this to coin-cbc@list.coin-or.org ##
6450## ---------------------------------------- ##
6451_ASBOX
6452    ) |
6453      sed "s/^/$as_me: WARNING:     /" >&2
6454    ;;
6455esac
6456echo "$as_me:$LINENO: checking for $ac_header" >&5
6457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6458if eval "test \"\${$as_ac_Header+set}\" = set"; then
6459  echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461  eval "$as_ac_Header=\$ac_header_preproc"
6462fi
6463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6465
6466fi
6467if test `eval echo '${'$as_ac_Header'}'` = yes; then
6468  cat >>confdefs.h <<_ACEOF
6469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6470_ACEOF
6471
6472fi
6473
6474done
6475
6476
6477
6478if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6479    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6480    (test "X$CXX" != "Xg++"))) ; then
6481  ac_ext=cc
6482ac_cpp='$CXXCPP $CPPFLAGS'
6483ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6484ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6485ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6486echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6487echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6488if test -z "$CXXCPP"; then
6489  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6490  echo $ECHO_N "(cached) $ECHO_C" >&6
6491else
6492      # Double quotes because CXXCPP needs to be expanded
6493    for CXXCPP in "$CXX -E" "/lib/cpp"
6494    do
6495      ac_preproc_ok=false
6496for ac_cxx_preproc_warn_flag in '' yes
6497do
6498  # Use a header file that comes with gcc, so configuring glibc
6499  # with a fresh cross-compiler works.
6500  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6501  # <limits.h> exists even on freestanding compilers.
6502  # On the NeXT, cc -E runs the code through the compiler's parser,
6503  # not just through cpp. "Syntax error" is here to catch this case.
6504  cat >conftest.$ac_ext <<_ACEOF
6505/* confdefs.h.  */
6506_ACEOF
6507cat confdefs.h >>conftest.$ac_ext
6508cat >>conftest.$ac_ext <<_ACEOF
6509/* end confdefs.h.  */
6510#ifdef __STDC__
6511# include <limits.h>
6512#else
6513# include <assert.h>
6514#endif
6515                     Syntax error
6516_ACEOF
6517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6518  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6519  ac_status=$?
6520  grep -v '^ *+' conftest.er1 >conftest.err
6521  rm -f conftest.er1
6522  cat conftest.err >&5
6523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524  (exit $ac_status); } >/dev/null; then
6525  if test -s conftest.err; then
6526    ac_cpp_err=$ac_cxx_preproc_warn_flag
6527    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6528  else
6529    ac_cpp_err=
6530  fi
6531else
6532  ac_cpp_err=yes
6533fi
6534if test -z "$ac_cpp_err"; then
6535  :
6536else
6537  echo "$as_me: failed program was:" >&5
6538sed 's/^/| /' conftest.$ac_ext >&5
6539
6540  # Broken: fails on valid input.
6541continue
6542fi
6543rm -f conftest.err conftest.$ac_ext
6544
6545  # OK, works on sane cases.  Now check whether non-existent headers
6546  # can be detected and how.
6547  cat >conftest.$ac_ext <<_ACEOF
6548/* confdefs.h.  */
6549_ACEOF
6550cat confdefs.h >>conftest.$ac_ext
6551cat >>conftest.$ac_ext <<_ACEOF
6552/* end confdefs.h.  */
6553#include <ac_nonexistent.h>
6554_ACEOF
6555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6556  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6557  ac_status=$?
6558  grep -v '^ *+' conftest.er1 >conftest.err
6559  rm -f conftest.er1
6560  cat conftest.err >&5
6561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562  (exit $ac_status); } >/dev/null; then
6563  if test -s conftest.err; then
6564    ac_cpp_err=$ac_cxx_preproc_warn_flag
6565    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6566  else
6567    ac_cpp_err=
6568  fi
6569else
6570  ac_cpp_err=yes
6571fi
6572if test -z "$ac_cpp_err"; then
6573  # Broken: success on invalid input.
6574continue
6575else
6576  echo "$as_me: failed program was:" >&5
6577sed 's/^/| /' conftest.$ac_ext >&5
6578
6579  # Passes both tests.
6580ac_preproc_ok=:
6581break
6582fi
6583rm -f conftest.err conftest.$ac_ext
6584
6585done
6586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6587rm -f conftest.err conftest.$ac_ext
6588if $ac_preproc_ok; then
6589  break
6590fi
6591
6592    done
6593    ac_cv_prog_CXXCPP=$CXXCPP
6594
6595fi
6596  CXXCPP=$ac_cv_prog_CXXCPP
6597else
6598  ac_cv_prog_CXXCPP=$CXXCPP
6599fi
6600echo "$as_me:$LINENO: result: $CXXCPP" >&5
6601echo "${ECHO_T}$CXXCPP" >&6
6602ac_preproc_ok=false
6603for ac_cxx_preproc_warn_flag in '' yes
6604do
6605  # Use a header file that comes with gcc, so configuring glibc
6606  # with a fresh cross-compiler works.
6607  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6608  # <limits.h> exists even on freestanding compilers.
6609  # On the NeXT, cc -E runs the code through the compiler's parser,
6610  # not just through cpp. "Syntax error" is here to catch this case.
6611  cat >conftest.$ac_ext <<_ACEOF
6612/* confdefs.h.  */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
6616/* end confdefs.h.  */
6617#ifdef __STDC__
6618# include <limits.h>
6619#else
6620# include <assert.h>
6621#endif
6622                     Syntax error
6623_ACEOF
6624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6625  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6626  ac_status=$?
6627  grep -v '^ *+' conftest.er1 >conftest.err
6628  rm -f conftest.er1
6629  cat conftest.err >&5
6630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631  (exit $ac_status); } >/dev/null; then
6632  if test -s conftest.err; then
6633    ac_cpp_err=$ac_cxx_preproc_warn_flag
6634    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6635  else
6636    ac_cpp_err=
6637  fi
6638else
6639  ac_cpp_err=yes
6640fi
6641if test -z "$ac_cpp_err"; then
6642  :
6643else
6644  echo "$as_me: failed program was:" >&5
6645sed 's/^/| /' conftest.$ac_ext >&5
6646
6647  # Broken: fails on valid input.
6648continue
6649fi
6650rm -f conftest.err conftest.$ac_ext
6651
6652  # OK, works on sane cases.  Now check whether non-existent headers
6653  # can be detected and how.
6654  cat >conftest.$ac_ext <<_ACEOF
6655/* confdefs.h.  */
6656_ACEOF
6657cat confdefs.h >>conftest.$ac_ext
6658cat >>conftest.$ac_ext <<_ACEOF
6659/* end confdefs.h.  */
6660#include <ac_nonexistent.h>
6661_ACEOF
6662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6663  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6664  ac_status=$?
6665  grep -v '^ *+' conftest.er1 >conftest.err
6666  rm -f conftest.er1
6667  cat conftest.err >&5
6668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669  (exit $ac_status); } >/dev/null; then
6670  if test -s conftest.err; then
6671    ac_cpp_err=$ac_cxx_preproc_warn_flag
6672    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6673  else
6674    ac_cpp_err=
6675  fi
6676else
6677  ac_cpp_err=yes
6678fi
6679if test -z "$ac_cpp_err"; then
6680  # Broken: success on invalid input.
6681continue
6682else
6683  echo "$as_me: failed program was:" >&5
6684sed 's/^/| /' conftest.$ac_ext >&5
6685
6686  # Passes both tests.
6687ac_preproc_ok=:
6688break
6689fi
6690rm -f conftest.err conftest.$ac_ext
6691
6692done
6693# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6694rm -f conftest.err conftest.$ac_ext
6695if $ac_preproc_ok; then
6696  :
6697else
6698  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6699See \`config.log' for more details." >&5
6700echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6701See \`config.log' for more details." >&2;}
6702   { (exit 1); exit 1; }; }
6703fi
6704
6705ac_ext=cc
6706ac_cpp='$CXXCPP $CPPFLAGS'
6707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6710
6711fi
6712
6713ac_ext=f
6714ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6715ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6716ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6717if test -n "$ac_tool_prefix"; then
6718  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6719  do
6720    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6721set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6722echo "$as_me:$LINENO: checking for $ac_word" >&5
6723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6724if test "${ac_cv_prog_F77+set}" = set; then
6725  echo $ECHO_N "(cached) $ECHO_C" >&6
6726else
6727  if test -n "$F77"; then
6728  ac_cv_prog_F77="$F77" # Let the user override the test.
6729else
6730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731for as_dir in $PATH
6732do
6733  IFS=$as_save_IFS
6734  test -z "$as_dir" && as_dir=.
6735  for ac_exec_ext in '' $ac_executable_extensions; do
6736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6737    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6739    break 2
6740  fi
6741done
6742done
6743
6744fi
6745fi
6746F77=$ac_cv_prog_F77
6747if test -n "$F77"; then
6748  echo "$as_me:$LINENO: result: $F77" >&5
6749echo "${ECHO_T}$F77" >&6
6750else
6751  echo "$as_me:$LINENO: result: no" >&5
6752echo "${ECHO_T}no" >&6
6753fi
6754
6755    test -n "$F77" && break
6756  done
6757fi
6758if test -z "$F77"; then
6759  ac_ct_F77=$F77
6760  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6761do
6762  # Extract the first word of "$ac_prog", so it can be a program name with args.
6763set dummy $ac_prog; ac_word=$2
6764echo "$as_me:$LINENO: checking for $ac_word" >&5
6765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6766if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6767  echo $ECHO_N "(cached) $ECHO_C" >&6
6768else
6769  if test -n "$ac_ct_F77"; then
6770  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6771else
6772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6773for as_dir in $PATH
6774do
6775  IFS=$as_save_IFS
6776  test -z "$as_dir" && as_dir=.
6777  for ac_exec_ext in '' $ac_executable_extensions; do
6778  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6779    ac_cv_prog_ac_ct_F77="$ac_prog"
6780    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6781    break 2
6782  fi
6783done
6784done
6785
6786fi
6787fi
6788ac_ct_F77=$ac_cv_prog_ac_ct_F77
6789if test -n "$ac_ct_F77"; then
6790  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6791echo "${ECHO_T}$ac_ct_F77" >&6
6792else
6793  echo "$as_me:$LINENO: result: no" >&5
6794echo "${ECHO_T}no" >&6
6795fi
6796
6797  test -n "$ac_ct_F77" && break
6798done
6799
6800  F77=$ac_ct_F77
6801fi
6802
6803
6804# Provide some information about the compiler.
6805echo "$as_me:6805:" \
6806     "checking for Fortran 77 compiler version" >&5
6807ac_compiler=`set X $ac_compile; echo $2`
6808{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6809  (eval $ac_compiler --version </dev/null >&5) 2>&5
6810  ac_status=$?
6811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812  (exit $ac_status); }
6813{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6814  (eval $ac_compiler -v </dev/null >&5) 2>&5
6815  ac_status=$?
6816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817  (exit $ac_status); }
6818{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6819  (eval $ac_compiler -V </dev/null >&5) 2>&5
6820  ac_status=$?
6821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822  (exit $ac_status); }
6823rm -f a.out
6824
6825# If we don't use `.F' as extension, the preprocessor is not run on the
6826# input file.  (Note that this only needs to work for GNU compilers.)
6827ac_save_ext=$ac_ext
6828ac_ext=F
6829echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6830echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6831if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6832  echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834  cat >conftest.$ac_ext <<_ACEOF
6835      program main
6836#ifndef __GNUC__
6837       choke me
6838#endif
6839
6840      end
6841_ACEOF
6842rm -f conftest.$ac_objext
6843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6844  (eval $ac_compile) 2>conftest.er1
6845  ac_status=$?
6846  grep -v '^ *+' conftest.er1 >conftest.err
6847  rm -f conftest.er1
6848  cat conftest.err >&5
6849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850  (exit $ac_status); } &&
6851         { ac_try='test -z "$ac_f77_werror_flag"
6852                         || test ! -s conftest.err'
6853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6854  (eval $ac_try) 2>&5
6855  ac_status=$?
6856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857  (exit $ac_status); }; } &&
6858         { ac_try='test -s conftest.$ac_objext'
6859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6860  (eval $ac_try) 2>&5
6861  ac_status=$?
6862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863  (exit $ac_status); }; }; then
6864  ac_compiler_gnu=yes
6865else
6866  echo "$as_me: failed program was:" >&5
6867sed 's/^/| /' conftest.$ac_ext >&5
6868
6869ac_compiler_gnu=no
6870fi
6871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6872ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6873
6874fi
6875echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6876echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6877ac_ext=$ac_save_ext
6878ac_test_FFLAGS=${FFLAGS+set}
6879ac_save_FFLAGS=$FFLAGS
6880FFLAGS=
6881echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6882echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6883if test "${ac_cv_prog_f77_g+set}" = set; then
6884  echo $ECHO_N "(cached) $ECHO_C" >&6
6885else
6886  FFLAGS=-g
6887cat >conftest.$ac_ext <<_ACEOF
6888      program main
6889
6890      end
6891_ACEOF
6892rm -f conftest.$ac_objext
6893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6894  (eval $ac_compile) 2>conftest.er1
6895  ac_status=$?
6896  grep -v '^ *+' conftest.er1 >conftest.err
6897  rm -f conftest.er1
6898  cat conftest.err >&5
6899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900  (exit $ac_status); } &&
6901         { ac_try='test -z "$ac_f77_werror_flag"
6902                         || test ! -s conftest.err'
6903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6904  (eval $ac_try) 2>&5
6905  ac_status=$?
6906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907  (exit $ac_status); }; } &&
6908         { ac_try='test -s conftest.$ac_objext'
6909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6910  (eval $ac_try) 2>&5
6911  ac_status=$?
6912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913  (exit $ac_status); }; }; then
6914  ac_cv_prog_f77_g=yes
6915else
6916  echo "$as_me: failed program was:" >&5
6917sed 's/^/| /' conftest.$ac_ext >&5
6918
6919ac_cv_prog_f77_g=no
6920fi
6921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6922
6923fi
6924echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6925echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6926if test "$ac_test_FFLAGS" = set; then
6927  FFLAGS=$ac_save_FFLAGS
6928elif test $ac_cv_prog_f77_g = yes; then
6929  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6930    FFLAGS="-g -O2"
6931  else
6932    FFLAGS="-g"
6933  fi
6934else
6935  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6936    FFLAGS="-O2"
6937  else
6938    FFLAGS=
6939  fi
6940fi
6941
6942G77=`test $ac_compiler_gnu = yes && echo yes`
6943ac_ext=c
6944ac_cpp='$CPP $CPPFLAGS'
6945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947ac_compiler_gnu=$ac_cv_c_compiler_gnu
6948
6949
6950
6951# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6952
6953# find the maximum length of command line arguments
6954echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6955echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6956if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6957  echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959    i=0
6960  teststring="ABCD"
6961
6962  case $build_os in
6963  msdosdjgpp*)
6964    # On DJGPP, this test can blow up pretty badly due to problems in libc
6965    # (any single argument exceeding 2000 bytes causes a buffer overrun
6966    # during glob expansion).  Even if it were fixed, the result of this
6967    # check would be larger than it should be.
6968    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6969    ;;
6970
6971  gnu*)
6972    # Under GNU Hurd, this test is not required because there is
6973    # no limit to the length of command line arguments.
6974    # Libtool will interpret -1 as no limit whatsoever
6975    lt_cv_sys_max_cmd_len=-1;
6976    ;;
6977
6978  cygwin* | mingw*)
6979    # On Win9x/ME, this test blows up -- it succeeds, but takes
6980    # about 5 minutes as the teststring grows exponentially.
6981    # Worse, since 9x/ME are not pre-emptively multitasking,
6982    # you end up with a "frozen" computer, even though with patience
6983    # the test eventually succeeds (with a max line length of 256k).
6984    # Instead, let's just punt: use the minimum linelength reported by
6985    # all of the supported platforms: 8192 (on NT/2K/XP).
6986    lt_cv_sys_max_cmd_len=8192;
6987    ;;
6988
6989  amigaos*)
6990    # On AmigaOS with pdksh, this test takes hours, literally.
6991    # So we just punt and use a minimum line length of 8192.
6992    lt_cv_sys_max_cmd_len=8192;
6993    ;;
6994
6995  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6996    # This has been around since 386BSD, at least.  Likely further.
6997    if test -x /sbin/sysctl; then
6998      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6999    elif test -x /usr/sbin/sysctl; then
7000      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7001    else
7002      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7003    fi
7004    # And add a safety zone
7005    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7006    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7007    ;;
7008
7009  interix*)
7010    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7011    lt_cv_sys_max_cmd_len=196608
7012    ;;
7013
7014  osf*)
7015    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7016    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7017    # nice to cause kernel panics so lets avoid the loop below.
7018    # First set a reasonable default.
7019    lt_cv_sys_max_cmd_len=16384
7020    #
7021    if test -x /sbin/sysconfig; then
7022      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7023        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7024      esac
7025    fi
7026    ;;
7027  sco3.2v5*)
7028    lt_cv_sys_max_cmd_len=102400
7029    ;;
7030  sysv5* | sco5v6* | sysv4.2uw2*)
7031    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7032    if test -n "$kargmax"; then
7033      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7034    else
7035      lt_cv_sys_max_cmd_len=32768
7036    fi
7037    ;;
7038  *)
7039    # If test is not a shell built-in, we'll probably end up computing a
7040    # maximum length that is only half of the actual maximum length, but
7041    # we can't tell.
7042    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7043    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7044               = "XX$teststring") >/dev/null 2>&1 &&
7045            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7046            lt_cv_sys_max_cmd_len=$new_result &&
7047            test $i != 17 # 1/2 MB should be enough
7048    do
7049      i=`expr $i + 1`
7050      teststring=$teststring$teststring
7051    done
7052    teststring=
7053    # Add a significant safety factor because C++ compilers can tack on massive
7054    # amounts of additional arguments before passing them to the linker.
7055    # It appears as though 1/2 is a usable value.
7056    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7057    ;;
7058  esac
7059
7060fi
7061
7062if test -n $lt_cv_sys_max_cmd_len ; then
7063  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7064echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7065else
7066  echo "$as_me:$LINENO: result: none" >&5
7067echo "${ECHO_T}none" >&6
7068fi
7069
7070
7071
7072
7073# Check for command to grab the raw symbol name followed by C symbol from nm.
7074echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7075echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7076if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7077  echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079
7080# These are sane defaults that work on at least a few old systems.
7081# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7082
7083# Character class describing NM global symbol codes.
7084symcode='[BCDEGRST]'
7085
7086# Regexp to match symbols that can be accessed directly from C.
7087sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7088
7089# Transform an extracted symbol line into a proper C declaration
7090lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7091
7092# Transform an extracted symbol line into symbol name and symbol address
7093lt_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'"
7094
7095# Define system-specific variables.
7096case $host_os in
7097aix*)
7098  symcode='[BCDT]'
7099  ;;
7100cygwin* | mingw* | pw32*)
7101  symcode='[ABCDGISTW]'
7102  ;;
7103hpux*) # Its linker distinguishes data from code symbols
7104  if test "$host_cpu" = ia64; then
7105    symcode='[ABCDEGRST]'
7106  fi
7107  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7108  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'"
7109  ;;
7110linux*)
7111  if test "$host_cpu" = ia64; then
7112    symcode='[ABCDGIRSTW]'
7113    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7114    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'"
7115  fi
7116  ;;
7117irix* | nonstopux*)
7118  symcode='[BCDEGRST]'
7119  ;;
7120osf*)
7121  symcode='[BCDEGQRST]'
7122  ;;
7123solaris*)
7124  symcode='[BDRT]'
7125  ;;
7126sco3.2v5*)
7127  symcode='[DT]'
7128  ;;
7129sysv4.2uw2*)
7130  symcode='[DT]'
7131  ;;
7132sysv5* | sco5v6* | unixware* | OpenUNIX*)
7133  symcode='[ABDT]'
7134  ;;
7135sysv4)
7136  symcode='[DFNSTU]'
7137  ;;
7138esac
7139
7140# Handle CRLF in mingw tool chain
7141opt_cr=
7142case $build_os in
7143mingw*)
7144  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7145  ;;
7146esac
7147
7148# If we're using GNU nm, then use its standard symbol codes.
7149case `$NM -V 2>&1` in
7150*GNU* | *'with BFD'*)
7151  symcode='[ABCDGIRSTW]' ;;
7152esac
7153
7154# Try without a prefix undercore, then with it.
7155for ac_symprfx in "" "_"; do
7156
7157  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7158  symxfrm="\\1 $ac_symprfx\\2 \\2"
7159
7160  # Write the raw and C identifiers.
7161  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7162
7163  # Check to see that the pipe works correctly.
7164  pipe_works=no
7165
7166  rm -f conftest*
7167  cat > conftest.$ac_ext <<EOF
7168#ifdef __cplusplus
7169extern "C" {
7170#endif
7171char nm_test_var;
7172void nm_test_func(){}
7173#ifdef __cplusplus
7174}
7175#endif
7176int main(){nm_test_var='a';nm_test_func();return(0);}
7177EOF
7178
7179  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180  (eval $ac_compile) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); }; then
7184    # Now try to grab the symbols.
7185    nlist=conftest.nm
7186    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7187  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7188  ac_status=$?
7189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190  (exit $ac_status); } && test -s "$nlist"; then
7191      # Try sorting and uniquifying the output.
7192      if sort "$nlist" | uniq > "$nlist"T; then
7193        mv -f "$nlist"T "$nlist"
7194      else
7195        rm -f "$nlist"T
7196      fi
7197
7198      # Make sure that we snagged all the symbols we need.
7199      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7200        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7201          cat <<EOF > conftest.$ac_ext
7202#ifdef __cplusplus
7203extern "C" {
7204#endif
7205
7206EOF
7207          # Now generate the symbol file.
7208          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7209
7210          cat <<EOF >> conftest.$ac_ext
7211#if defined (__STDC__) && __STDC__
7212# define lt_ptr_t void *
7213#else
7214# define lt_ptr_t char *
7215# define const
7216#endif
7217
7218/* The mapping between symbol names and symbols. */
7219const struct {
7220  const char *name;
7221  lt_ptr_t address;
7222}
7223lt_preloaded_symbols[] =
7224{
7225EOF
7226          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7227          cat <<\EOF >> conftest.$ac_ext
7228  {0, (lt_ptr_t) 0}
7229};
7230
7231#ifdef __cplusplus
7232}
7233#endif
7234EOF
7235          # Now try linking the two files.
7236          mv conftest.$ac_objext conftstm.$ac_objext
7237          lt_save_LIBS="$LIBS"
7238          lt_save_CFLAGS="$CFLAGS"
7239          LIBS="conftstm.$ac_objext"
7240          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7241          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7242  (eval $ac_link) 2>&5
7243  ac_status=$?
7244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7246            pipe_works=yes
7247          fi
7248          LIBS="$lt_save_LIBS"
7249          CFLAGS="$lt_save_CFLAGS"
7250        else
7251          echo "cannot find nm_test_func in $nlist" >&5
7252        fi
7253      else
7254        echo "cannot find nm_test_var in $nlist" >&5
7255      fi
7256    else
7257      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7258    fi
7259  else
7260    echo "$progname: failed program was:" >&5
7261    cat conftest.$ac_ext >&5
7262  fi
7263  rm -f conftest* conftst*
7264
7265  # Do not use the global_symbol_pipe unless it works.
7266  if test "$pipe_works" = yes; then
7267    break
7268  else
7269    lt_cv_sys_global_symbol_pipe=
7270  fi
7271done
7272
7273fi
7274
7275if test -z "$lt_cv_sys_global_symbol_pipe"; then
7276  lt_cv_sys_global_symbol_to_cdecl=
7277fi
7278if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7279  echo "$as_me:$LINENO: result: failed" >&5
7280echo "${ECHO_T}failed" >&6
7281else
7282  echo "$as_me:$LINENO: result: ok" >&5
7283echo "${ECHO_T}ok" >&6
7284fi
7285
7286echo "$as_me:$LINENO: checking for objdir" >&5
7287echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7288if test "${lt_cv_objdir+set}" = set; then
7289  echo $ECHO_N "(cached) $ECHO_C" >&6
7290else
7291  rm -f .libs 2>/dev/null
7292mkdir .libs 2>/dev/null
7293if test -d .libs; then
7294  lt_cv_objdir=.libs
7295else
7296  # MS-DOS does not allow filenames that begin with a dot.
7297  lt_cv_objdir=_libs
7298fi
7299rmdir .libs 2>/dev/null
7300fi
7301echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7302echo "${ECHO_T}$lt_cv_objdir" >&6
7303objdir=$lt_cv_objdir
7304
7305
7306
7307
7308
7309case $host_os in
7310aix3*)
7311  # AIX sometimes has problems with the GCC collect2 program.  For some
7312  # reason, if we set the COLLECT_NAMES environment variable, the problems
7313  # vanish in a puff of smoke.
7314  if test "X${COLLECT_NAMES+set}" != Xset; then
7315    COLLECT_NAMES=
7316    export COLLECT_NAMES
7317  fi
7318  ;;
7319esac
7320
7321# Sed substitution that helps us do robust quoting.  It backslashifies
7322# metacharacters that are still active within double-quoted strings.
7323Xsed='sed -e 1s/^X//'
7324sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7325
7326# Same as above, but do not quote variable references.
7327double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7328
7329# Sed substitution to delay expansion of an escaped shell variable in a
7330# double_quote_subst'ed string.
7331delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7332
7333# Sed substitution to avoid accidental globbing in evaled expressions
7334no_glob_subst='s/\*/\\\*/g'
7335
7336# Constants:
7337rm="rm -f"
7338
7339# Global variables:
7340default_ofile=libtool
7341can_build_shared=yes
7342
7343# All known linkers require a `.a' archive for static linking (except MSVC,
7344# which needs '.lib').
7345libext=a
7346ltmain="$ac_aux_dir/ltmain.sh"
7347ofile="$default_ofile"
7348with_gnu_ld="$lt_cv_prog_gnu_ld"
7349
7350if test -n "$ac_tool_prefix"; then
7351  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7352set dummy ${ac_tool_prefix}ar; ac_word=$2
7353echo "$as_me:$LINENO: checking for $ac_word" >&5
7354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7355if test "${ac_cv_prog_AR+set}" = set; then
7356  echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358  if test -n "$AR"; then
7359  ac_cv_prog_AR="$AR" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364  IFS=$as_save_IFS
7365  test -z "$as_dir" && as_dir=.
7366  for ac_exec_ext in '' $ac_executable_extensions; do
7367  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368    ac_cv_prog_AR="${ac_tool_prefix}ar"
7369    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370    break 2
7371  fi
7372done
7373done
7374
7375fi
7376fi
7377AR=$ac_cv_prog_AR
7378if test -n "$AR"; then
7379  echo "$as_me:$LINENO: result: $AR" >&5
7380echo "${ECHO_T}$AR" >&6
7381else
7382  echo "$as_me:$LINENO: result: no" >&5
7383echo "${ECHO_T}no" >&6
7384fi
7385
7386fi
7387if test -z "$ac_cv_prog_AR"; then
7388  ac_ct_AR=$AR
7389  # Extract the first word of "ar", so it can be a program name with args.
7390set dummy ar; ac_word=$2
7391echo "$as_me:$LINENO: checking for $ac_word" >&5
7392echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7393if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7394  echo $ECHO_N "(cached) $ECHO_C" >&6
7395else
7396  if test -n "$ac_ct_AR"; then
7397  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7398else
7399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400for as_dir in $PATH
7401do
7402  IFS=$as_save_IFS
7403  test -z "$as_dir" && as_dir=.
7404  for ac_exec_ext in '' $ac_executable_extensions; do
7405  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7406    ac_cv_prog_ac_ct_AR="ar"
7407    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7408    break 2
7409  fi
7410done
7411done
7412
7413  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7414fi
7415fi
7416ac_ct_AR=$ac_cv_prog_ac_ct_AR
7417if test -n "$ac_ct_AR"; then
7418  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7419echo "${ECHO_T}$ac_ct_AR" >&6
7420else
7421  echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6
7423fi
7424
7425  AR=$ac_ct_AR
7426else
7427  AR="$ac_cv_prog_AR"
7428fi
7429
7430if test -n "$ac_tool_prefix"; then
7431  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7432set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7433echo "$as_me:$LINENO: checking for $ac_word" >&5
7434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7435if test "${ac_cv_prog_RANLIB+set}" = set; then
7436  echo $ECHO_N "(cached) $ECHO_C" >&6
7437else
7438  if test -n "$RANLIB"; then
7439  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444  IFS=$as_save_IFS
7445  test -z "$as_dir" && as_dir=.
7446  for ac_exec_ext in '' $ac_executable_extensions; do
7447  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7449    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7450    break 2
7451  fi
7452done
7453done
7454
7455fi
7456fi
7457RANLIB=$ac_cv_prog_RANLIB
7458if test -n "$RANLIB"; then
7459  echo "$as_me:$LINENO: result: $RANLIB" >&5
7460echo "${ECHO_T}$RANLIB" >&6
7461else
7462  echo "$as_me:$LINENO: result: no" >&5
7463echo "${ECHO_T}no" >&6
7464fi
7465
7466fi
7467if test -z "$ac_cv_prog_RANLIB"; then
7468  ac_ct_RANLIB=$RANLIB
7469  # Extract the first word of "ranlib", so it can be a program name with args.
7470set dummy ranlib; ac_word=$2
7471echo "$as_me:$LINENO: checking for $ac_word" >&5
7472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7473if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7474  echo $ECHO_N "(cached) $ECHO_C" >&6
7475else
7476  if test -n "$ac_ct_RANLIB"; then
7477  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7478else
7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480for as_dir in $PATH
7481do
7482  IFS=$as_save_IFS
7483  test -z "$as_dir" && as_dir=.
7484  for ac_exec_ext in '' $ac_executable_extensions; do
7485  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486    ac_cv_prog_ac_ct_RANLIB="ranlib"
7487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7488    break 2
7489  fi
7490done
7491done
7492
7493  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7494fi
7495fi
7496ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7497if test -n "$ac_ct_RANLIB"; then
7498  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7499echo "${ECHO_T}$ac_ct_RANLIB" >&6
7500else
7501  echo "$as_me:$LINENO: result: no" >&5
7502echo "${ECHO_T}no" >&6
7503fi
7504
7505  RANLIB=$ac_ct_RANLIB
7506else
7507  RANLIB="$ac_cv_prog_RANLIB"
7508fi
7509
7510if test -n "$ac_tool_prefix"; then
7511  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7512set dummy ${ac_tool_prefix}strip; ac_word=$2
7513echo "$as_me:$LINENO: checking for $ac_word" >&5
7514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7515if test "${ac_cv_prog_STRIP+set}" = set; then
7516  echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518  if test -n "$STRIP"; then
7519  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7520else
7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524  IFS=$as_save_IFS
7525  test -z "$as_dir" && as_dir=.
7526  for ac_exec_ext in '' $ac_executable_extensions; do
7527  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7528    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7529    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530    break 2
7531  fi
7532done
7533done
7534
7535fi
7536fi
7537STRIP=$ac_cv_prog_STRIP
7538if test -n "$STRIP"; then
7539  echo "$as_me:$LINENO: result: $STRIP" >&5
7540echo "${ECHO_T}$STRIP" >&6
7541else
7542  echo "$as_me:$LINENO: result: no" >&5
7543echo "${ECHO_T}no" >&6
7544fi
7545
7546fi
7547if test -z "$ac_cv_prog_STRIP"; then
7548  ac_ct_STRIP=$STRIP
7549  # Extract the first word of "strip", so it can be a program name with args.
7550set dummy strip; ac_word=$2
7551echo "$as_me:$LINENO: checking for $ac_word" >&5
7552echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7553if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7554  echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556  if test -n "$ac_ct_STRIP"; then
7557  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7558else
7559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7560for as_dir in $PATH
7561do
7562  IFS=$as_save_IFS
7563  test -z "$as_dir" && as_dir=.
7564  for ac_exec_ext in '' $ac_executable_extensions; do
7565  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7566    ac_cv_prog_ac_ct_STRIP="strip"
7567    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568    break 2
7569  fi
7570done
7571done
7572
7573  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7574fi
7575fi
7576ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7577if test -n "$ac_ct_STRIP"; then
7578  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7579echo "${ECHO_T}$ac_ct_STRIP" >&6
7580else
7581  echo "$as_me:$LINENO: result: no" >&5
7582echo "${ECHO_T}no" >&6
7583fi
7584
7585  STRIP=$ac_ct_STRIP
7586else
7587  STRIP="$ac_cv_prog_STRIP"
7588fi
7589
7590
7591old_CC="$CC"
7592old_CFLAGS="$CFLAGS"
7593
7594# Set sane defaults for various variables
7595test -z "$AR" && AR=ar
7596test -z "$AR_FLAGS" && AR_FLAGS=cru
7597test -z "$AS" && AS=as
7598test -z "$CC" && CC=cc
7599test -z "$LTCC" && LTCC=$CC
7600test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7601test -z "$DLLTOOL" && DLLTOOL=dlltool
7602test -z "$LD" && LD=ld
7603test -z "$LN_S" && LN_S="ln -s"
7604test -z "$MAGIC_CMD" && MAGIC_CMD=file
7605test -z "$NM" && NM=nm
7606test -z "$SED" && SED=sed
7607test -z "$OBJDUMP" && OBJDUMP=objdump
7608test -z "$RANLIB" && RANLIB=:
7609test -z "$STRIP" && STRIP=:
7610test -z "$ac_objext" && ac_objext=o
7611
7612# Determine commands to create old-style static archives.
7613old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7614old_postinstall_cmds='chmod 644 $oldlib'
7615old_postuninstall_cmds=
7616
7617if test -n "$RANLIB"; then
7618  case $host_os in
7619  openbsd*)
7620    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7621    ;;
7622  *)
7623    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7624    ;;
7625  esac
7626  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7627fi
7628
7629for cc_temp in $compiler""; do
7630  case $cc_temp in
7631    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7632    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7633    \-*) ;;
7634    *) break;;
7635  esac
7636done
7637cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7638
7639
7640# Only perform the check for file, if the check method requires it
7641case $deplibs_check_method in
7642file_magic*)
7643  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7644    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7645echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7646if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7647  echo $ECHO_N "(cached) $ECHO_C" >&6
7648else
7649  case $MAGIC_CMD in
7650[\\/*] |  ?:[\\/]*)
7651  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7652  ;;
7653*)
7654  lt_save_MAGIC_CMD="$MAGIC_CMD"
7655  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7656  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7657  for ac_dir in $ac_dummy; do
7658    IFS="$lt_save_ifs"
7659    test -z "$ac_dir" && ac_dir=.
7660    if test -f $ac_dir/${ac_tool_prefix}file; then
7661      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7662      if test -n "$file_magic_test_file"; then
7663        case $deplibs_check_method in
7664        "file_magic "*)
7665          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7666          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7667          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7668            $EGREP "$file_magic_regex" > /dev/null; then
7669            :
7670          else
7671            cat <<EOF 1>&2
7672
7673*** Warning: the command libtool uses to detect shared libraries,
7674*** $file_magic_cmd, produces output that libtool cannot recognize.
7675*** The result is that libtool may fail to recognize shared libraries
7676*** as such.  This will affect the creation of libtool libraries that
7677*** depend on shared libraries, but programs linked with such libtool
7678*** libraries will work regardless of this problem.  Nevertheless, you
7679*** may want to report the problem to your system manager and/or to
7680*** bug-libtool@gnu.org
7681
7682EOF
7683          fi ;;
7684        esac
7685      fi
7686      break
7687    fi
7688  done
7689  IFS="$lt_save_ifs"
7690  MAGIC_CMD="$lt_save_MAGIC_CMD"
7691  ;;
7692esac
7693fi
7694
7695MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7696if test -n "$MAGIC_CMD"; then
7697  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7698echo "${ECHO_T}$MAGIC_CMD" >&6
7699else
7700  echo "$as_me:$LINENO: result: no" >&5
7701echo "${ECHO_T}no" >&6
7702fi
7703
7704if test -z "$lt_cv_path_MAGIC_CMD"; then
7705  if test -n "$ac_tool_prefix"; then
7706    echo "$as_me:$LINENO: checking for file" >&5
7707echo $ECHO_N "checking for file... $ECHO_C" >&6
7708if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7709  echo $ECHO_N "(cached) $ECHO_C" >&6
7710else
7711  case $MAGIC_CMD in
7712[\\/*] |  ?:[\\/]*)
7713  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7714  ;;
7715*)
7716  lt_save_MAGIC_CMD="$MAGIC_CMD"
7717  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7718  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7719  for ac_dir in $ac_dummy; do
7720    IFS="$lt_save_ifs"
7721    test -z "$ac_dir" && ac_dir=.
7722    if test -f $ac_dir/file; then
7723      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7724      if test -n "$file_magic_test_file"; then
7725        case $deplibs_check_method in
7726        "file_magic "*)
7727          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7728          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7729          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7730            $EGREP "$file_magic_regex" > /dev/null; then
7731            :
7732          else
7733            cat <<EOF 1>&2
7734
7735*** Warning: the command libtool uses to detect shared libraries,
7736*** $file_magic_cmd, produces output that libtool cannot recognize.
7737*** The result is that libtool may fail to recognize shared libraries
7738*** as such.  This will affect the creation of libtool libraries that
7739*** depend on shared libraries, but programs linked with such libtool
7740*** libraries will work regardless of this problem.  Nevertheless, you
7741*** may want to report the problem to your system manager and/or to
7742*** bug-libtool@gnu.org
7743
7744EOF
7745          fi ;;
7746        esac
7747      fi
7748      break
7749    fi
7750  done
7751  IFS="$lt_save_ifs"
7752  MAGIC_CMD="$lt_save_MAGIC_CMD"
7753  ;;
7754esac
7755fi
7756
7757MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7758if test -n "$MAGIC_CMD"; then
7759  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7760echo "${ECHO_T}$MAGIC_CMD" >&6
7761else
7762  echo "$as_me:$LINENO: result: no" >&5
7763echo "${ECHO_T}no" >&6
7764fi
7765
7766  else
7767    MAGIC_CMD=:
7768  fi
7769fi
7770
7771  fi
7772  ;;
7773esac
7774
7775enable_dlopen=no
7776enable_win32_dll=no
7777
7778# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7779if test "${enable_libtool_lock+set}" = set; then
7780  enableval="$enable_libtool_lock"
7781
7782fi;
7783test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7784
7785
7786# Check whether --with-pic or --without-pic was given.
7787if test "${with_pic+set}" = set; then
7788  withval="$with_pic"
7789  pic_mode="$withval"
7790else
7791  pic_mode=default
7792fi;
7793test -z "$pic_mode" && pic_mode=default
7794
7795# Use C for the default configuration in the libtool script
7796tagname=
7797lt_save_CC="$CC"
7798ac_ext=c
7799ac_cpp='$CPP $CPPFLAGS'
7800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7802ac_compiler_gnu=$ac_cv_c_compiler_gnu
7803
7804
7805# Source file extension for C test sources.
7806ac_ext=c
7807
7808# Object file extension for compiled C test sources.
7809objext=o
7810objext=$objext
7811
7812# Code to be used in simple compile tests
7813lt_simple_compile_test_code="int some_variable = 0;\n"
7814
7815# Code to be used in simple link tests
7816lt_simple_link_test_code='int main(){return(0);}\n'
7817
7818
7819# If no C compiler was specified, use CC.
7820LTCC=${LTCC-"$CC"}
7821
7822# If no C compiler flags were specified, use CFLAGS.
7823LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7824
7825# Allow CC to be a program name with arguments.
7826compiler=$CC
7827
7828
7829# save warnings/boilerplate of simple test code
7830ac_outfile=conftest.$ac_objext
7831printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7832eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7833_lt_compiler_boilerplate=`cat conftest.err`
7834$rm conftest*
7835
7836ac_outfile=conftest.$ac_objext
7837printf "$lt_simple_link_test_code" >conftest.$ac_ext
7838eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7839_lt_linker_boilerplate=`cat conftest.err`
7840$rm conftest*
7841
7842
7843## CAVEAT EMPTOR:
7844## There is no encapsulation within the following macros, do not change
7845## the running order or otherwise move them around unless you know exactly
7846## what you are doing...
7847
7848lt_prog_compiler_no_builtin_flag=
7849
7850if test "$GCC" = yes; then
7851  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7852
7853
7854echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7855echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7856if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7857  echo $ECHO_N "(cached) $ECHO_C" >&6
7858else
7859  lt_cv_prog_compiler_rtti_exceptions=no
7860  ac_outfile=conftest.$ac_objext
7861   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7862   lt_compiler_flag="-fno-rtti -fno-exceptions"
7863   # Insert the option either (1) after the last *FLAGS variable, or
7864   # (2) before a word containing "conftest.", or (3) at the end.
7865   # Note that $ac_compile itself does not contain backslashes and begins
7866   # with a dollar sign (not a hyphen), so the echo should work correctly.
7867   # The option is referenced via a variable to avoid confusing sed.
7868   lt_compile=`echo "$ac_compile" | $SED \
7869   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7870   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7871   -e 's:$: $lt_compiler_flag:'`
7872   (eval echo "\"\$as_me:7872: $lt_compile\"" >&5)
7873   (eval "$lt_compile" 2>conftest.err)
7874   ac_status=$?
7875   cat conftest.err >&5
7876   echo "$as_me:7876: \$? = $ac_status" >&5
7877   if (exit $ac_status) && test -s "$ac_outfile"; then
7878     # The compiler can only warn and ignore the option if not recognized
7879     # So say no if there are warnings other than the usual output.
7880     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7881     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7882     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7883       lt_cv_prog_compiler_rtti_exceptions=yes
7884     fi
7885   fi
7886   $rm conftest*
7887
7888fi
7889echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7890echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7891
7892if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7893    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7894else
7895    :
7896fi
7897
7898fi
7899
7900lt_prog_compiler_wl=
7901lt_prog_compiler_pic=
7902lt_prog_compiler_static=
7903
7904echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7905echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7906
7907  if test "$GCC" = yes; then
7908    lt_prog_compiler_wl='-Wl,'
7909    lt_prog_compiler_static='-static'
7910
7911    case $host_os in
7912      aix*)
7913      # All AIX code is PIC.
7914      if test "$host_cpu" = ia64; then
7915        # AIX 5 now supports IA64 processor
7916        lt_prog_compiler_static='-Bstatic'
7917      fi
7918      ;;
7919
7920    amigaos*)
7921      # FIXME: we need at least 68020 code to build shared libraries, but
7922      # adding the `-m68020' flag to GCC prevents building anything better,
7923      # like `-m68040'.
7924      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7925      ;;
7926
7927    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7928      # PIC is the default for these OSes.
7929      ;;
7930
7931    mingw* | pw32* | os2*)
7932      # This hack is so that the source file can tell whether it is being
7933      # built for inclusion in a dll (and should export symbols for example).
7934      lt_prog_compiler_pic='-DDLL_EXPORT'
7935      ;;
7936
7937    darwin* | rhapsody*)
7938      # PIC is the default on this platform
7939      # Common symbols not allowed in MH_DYLIB files
7940      lt_prog_compiler_pic='-fno-common'
7941      ;;
7942
7943    interix3*)
7944      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7945      # Instead, we relocate shared libraries at runtime.
7946      ;;
7947
7948    msdosdjgpp*)
7949      # Just because we use GCC doesn't mean we suddenly get shared libraries
7950      # on systems that don't support them.
7951      lt_prog_compiler_can_build_shared=no
7952      enable_shared=no
7953      ;;
7954
7955    sysv4*MP*)
7956      if test -d /usr/nec; then
7957        lt_prog_compiler_pic=-Kconform_pic
7958      fi
7959      ;;
7960
7961    hpux*)
7962      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7963      # not for PA HP-UX.
7964      case $host_cpu in
7965      hppa*64*|ia64*)
7966        # +Z the default
7967        ;;
7968      *)
7969        lt_prog_compiler_pic='-fPIC'
7970        ;;
7971      esac
7972      ;;
7973
7974    *)
7975      lt_prog_compiler_pic='-fPIC'
7976      ;;
7977    esac
7978  else
7979    # PORTME Check for flag to pass linker flags through the system compiler.
7980    case $host_os in
7981    aix*)
7982      lt_prog_compiler_wl='-Wl,'
7983      if test "$host_cpu" = ia64; then
7984        # AIX 5 now supports IA64 processor
7985        lt_prog_compiler_static='-Bstatic'
7986      else
7987        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7988      fi
7989      ;;
7990      darwin*)
7991        # PIC is the default on this platform
7992        # Common symbols not allowed in MH_DYLIB files
7993       case $cc_basename in
7994         xlc*)
7995         lt_prog_compiler_pic='-qnocommon'
7996         lt_prog_compiler_wl='-Wl,'
7997         ;;
7998       esac
7999       ;;
8000
8001    mingw* | pw32* | os2*)
8002      # This hack is so that the source file can tell whether it is being
8003      # built for inclusion in a dll (and should export symbols for example).
8004      lt_prog_compiler_pic='-DDLL_EXPORT'
8005      ;;
8006
8007    hpux9* | hpux10* | hpux11*)
8008      lt_prog_compiler_wl='-Wl,'
8009      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8010      # not for PA HP-UX.
8011      case $host_cpu in
8012      hppa*64*|ia64*)
8013        # +Z the default
8014        ;;
8015      *)
8016        lt_prog_compiler_pic='+Z'
8017        ;;
8018      esac
8019      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8020      lt_prog_compiler_static='${wl}-a ${wl}archive'
8021      ;;
8022
8023    irix5* | irix6* | nonstopux*)
8024      lt_prog_compiler_wl='-Wl,'
8025      # PIC (with -KPIC) is the default.
8026      lt_prog_compiler_static='-non_shared'
8027      ;;
8028
8029    newsos6)
8030      lt_prog_compiler_pic='-KPIC'
8031      lt_prog_compiler_static='-Bstatic'
8032      ;;
8033
8034    linux*)
8035      case $cc_basename in
8036      icc* | ecc*)
8037        lt_prog_compiler_wl='-Wl,'
8038        lt_prog_compiler_pic='-KPIC'
8039        lt_prog_compiler_static='-static'
8040        ;;
8041      pgcc* | pgf77* | pgf90* | pgf95*)
8042        # Portland Group compilers (*not* the Pentium gcc compiler,
8043        # which looks to be a dead project)
8044        lt_prog_compiler_wl='-Wl,'
8045        lt_prog_compiler_pic='-fpic'
8046        lt_prog_compiler_static='-Bstatic'
8047        ;;
8048      ccc*)
8049        lt_prog_compiler_wl='-Wl,'
8050        # All Alpha code is PIC.
8051        lt_prog_compiler_static='-non_shared'
8052        ;;
8053      esac
8054      ;;
8055
8056    osf3* | osf4* | osf5*)
8057      lt_prog_compiler_wl='-Wl,'
8058      # All OSF/1 code is PIC.
8059      lt_prog_compiler_static='-non_shared'
8060      ;;
8061
8062    solaris*)
8063      lt_prog_compiler_pic='-KPIC'
8064      lt_prog_compiler_static='-Bstatic'
8065      case $cc_basename in
8066      f77* | f90* | f95*)
8067        lt_prog_compiler_wl='-Qoption ld ';;
8068      *)
8069        lt_prog_compiler_wl='-Wl,';;
8070      esac
8071      ;;
8072
8073    sunos4*)
8074      lt_prog_compiler_wl='-Qoption ld '
8075      lt_prog_compiler_pic='-PIC'
8076      lt_prog_compiler_static='-Bstatic'
8077      ;;
8078
8079    sysv4 | sysv4.2uw2* | sysv4.3*)
8080      lt_prog_compiler_wl='-Wl,'
8081      lt_prog_compiler_pic='-KPIC'
8082      lt_prog_compiler_static='-Bstatic'
8083      ;;
8084
8085    sysv4*MP*)
8086      if test -d /usr/nec ;then
8087        lt_prog_compiler_pic='-Kconform_pic'
8088        lt_prog_compiler_static='-Bstatic'
8089      fi
8090      ;;
8091
8092    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8093      lt_prog_compiler_wl='-Wl,'
8094      lt_prog_compiler_pic='-KPIC'
8095      lt_prog_compiler_static='-Bstatic'
8096      ;;
8097
8098    unicos*)
8099      lt_prog_compiler_wl='-Wl,'
8100      lt_prog_compiler_can_build_shared=no
8101      ;;
8102
8103    uts4*)
8104      lt_prog_compiler_pic='-pic'
8105      lt_prog_compiler_static='-Bstatic'
8106      ;;
8107
8108    *)
8109      lt_prog_compiler_can_build_shared=no
8110      ;;
8111    esac
8112  fi
8113
8114echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8115echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8116
8117#
8118# Check to make sure the PIC flag actually works.
8119#
8120if test -n "$lt_prog_compiler_pic"; then
8121
8122echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8123echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8124if test "${lt_prog_compiler_pic_works+set}" = set; then
8125  echo $ECHO_N "(cached) $ECHO_C" >&6
8126else
8127  lt_prog_compiler_pic_works=no
8128  ac_outfile=conftest.$ac_objext
8129   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8130   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8131   # Insert the option either (1) after the last *FLAGS variable, or
8132   # (2) before a word containing "conftest.", or (3) at the end.
8133   # Note that $ac_compile itself does not contain backslashes and begins
8134   # with a dollar sign (not a hyphen), so the echo should work correctly.
8135   # The option is referenced via a variable to avoid confusing sed.
8136   lt_compile=`echo "$ac_compile" | $SED \
8137   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8138   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8139   -e 's:$: $lt_compiler_flag:'`
8140   (eval echo "\"\$as_me:8140: $lt_compile\"" >&5)
8141   (eval "$lt_compile" 2>conftest.err)
8142   ac_status=$?
8143   cat conftest.err >&5
8144   echo "$as_me:8144: \$? = $ac_status" >&5
8145   if (exit $ac_status) && test -s "$ac_outfile"; then
8146     # The compiler can only warn and ignore the option if not recognized
8147     # So say no if there are warnings other than the usual output.
8148     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8149     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8150     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8151       lt_prog_compiler_pic_works=yes
8152     fi
8153   fi
8154   $rm conftest*
8155
8156fi
8157echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8158echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8159
8160if test x"$lt_prog_compiler_pic_works" = xyes; then
8161    case $lt_prog_compiler_pic in
8162     "" | " "*) ;;
8163     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8164     esac
8165else
8166    lt_prog_compiler_pic=
8167     lt_prog_compiler_can_build_shared=no
8168fi
8169
8170fi
8171case $host_os in
8172  # For platforms which do not support PIC, -DPIC is meaningless:
8173  *djgpp*)
8174    lt_prog_compiler_pic=
8175    ;;
8176  *)
8177    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8178    ;;
8179esac
8180
8181#
8182# Check to make sure the static flag actually works.
8183#
8184wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8185echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8186echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8187if test "${lt_prog_compiler_static_works+set}" = set; then
8188  echo $ECHO_N "(cached) $ECHO_C" >&6
8189else
8190  lt_prog_compiler_static_works=no
8191   save_LDFLAGS="$LDFLAGS"
8192   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8193   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8194   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8195     # The linker can only warn and ignore the option if not recognized
8196     # So say no if there are warnings
8197     if test -s conftest.err; then
8198       # Append any errors to the config.log.
8199       cat conftest.err 1>&5
8200       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8201       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8202       if diff conftest.exp conftest.er2 >/dev/null; then
8203         lt_prog_compiler_static_works=yes
8204       fi
8205     else
8206       lt_prog_compiler_static_works=yes
8207     fi
8208   fi
8209   $rm conftest*
8210   LDFLAGS="$save_LDFLAGS"
8211
8212fi
8213echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8214echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8215
8216if test x"$lt_prog_compiler_static_works" = xyes; then
8217    :
8218else
8219    lt_prog_compiler_static=
8220fi
8221
8222
8223echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8224echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8225if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8226  echo $ECHO_N "(cached) $ECHO_C" >&6
8227else
8228  lt_cv_prog_compiler_c_o=no
8229   $rm -r conftest 2>/dev/null
8230   mkdir conftest
8231   cd conftest
8232   mkdir out
8233   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8234
8235   lt_compiler_flag="-o out/conftest2.$ac_objext"
8236   # Insert the option either (1) after the last *FLAGS variable, or
8237   # (2) before a word containing "conftest.", or (3) at the end.
8238   # Note that $ac_compile itself does not contain backslashes and begins
8239   # with a dollar sign (not a hyphen), so the echo should work correctly.
8240   lt_compile=`echo "$ac_compile" | $SED \
8241   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8242   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8243   -e 's:$: $lt_compiler_flag:'`
8244   (eval echo "\"\$as_me:8244: $lt_compile\"" >&5)
8245   (eval "$lt_compile" 2>out/conftest.err)
8246   ac_status=$?
8247   cat out/conftest.err >&5
8248   echo "$as_me:8248: \$? = $ac_status" >&5
8249   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8250   then
8251     # The compiler can only warn and ignore the option if not recognized
8252     # So say no if there are warnings
8253     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8254     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8255     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8256       lt_cv_prog_compiler_c_o=yes
8257     fi
8258   fi
8259   chmod u+w . 2>&5
8260   $rm conftest*
8261   # SGI C++ compiler will create directory out/ii_files/ for
8262   # template instantiation
8263   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8264   $rm out/* && rmdir out
8265   cd ..
8266   rmdir conftest
8267   $rm conftest*
8268
8269fi
8270echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8271echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8272
8273
8274hard_links="nottested"
8275if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8276  # do not overwrite the value of need_locks provided by the user
8277  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8278echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8279  hard_links=yes
8280  $rm conftest*
8281  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8282  touch conftest.a
8283  ln conftest.a conftest.b 2>&5 || hard_links=no
8284  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8285  echo "$as_me:$LINENO: result: $hard_links" >&5
8286echo "${ECHO_T}$hard_links" >&6
8287  if test "$hard_links" = no; then
8288    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8289echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8290    need_locks=warn
8291  fi
8292else
8293  need_locks=no
8294fi
8295
8296echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8297echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8298
8299  runpath_var=
8300  allow_undefined_flag=
8301  enable_shared_with_static_runtimes=no
8302  archive_cmds=
8303  archive_expsym_cmds=
8304  old_archive_From_new_cmds=
8305  old_archive_from_expsyms_cmds=
8306  export_dynamic_flag_spec=
8307  whole_archive_flag_spec=
8308  thread_safe_flag_spec=
8309  hardcode_libdir_flag_spec=
8310  hardcode_libdir_flag_spec_ld=
8311  hardcode_libdir_separator=
8312  hardcode_direct=no
8313  hardcode_minus_L=no
8314  hardcode_shlibpath_var=unsupported
8315  link_all_deplibs=unknown
8316  hardcode_automatic=no
8317  module_cmds=
8318  module_expsym_cmds=
8319  always_export_symbols=no
8320  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8321  # include_expsyms should be a list of space-separated symbols to be *always*
8322  # included in the symbol list
8323  include_expsyms=
8324  # exclude_expsyms can be an extended regexp of symbols to exclude
8325  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8326  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8327  # as well as any symbol that contains `d'.
8328  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8329  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8330  # platforms (ab)use it in PIC code, but their linkers get confused if
8331  # the symbol is explicitly referenced.  Since portable code cannot
8332  # rely on this symbol name, it's probably fine to never include it in
8333  # preloaded symbol tables.
8334  extract_expsyms_cmds=
8335  # Just being paranoid about ensuring that cc_basename is set.
8336  for cc_temp in $compiler""; do
8337  case $cc_temp in
8338    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8339    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8340    \-*) ;;
8341    *) break;;
8342  esac
8343done
8344cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8345
8346  case $host_os in
8347  cygwin* | mingw* | pw32*)
8348    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8349    # When not using gcc, we currently assume that we are using
8350    # Microsoft Visual C++.
8351    if test "$GCC" != yes; then
8352      with_gnu_ld=no
8353    fi
8354    ;;
8355  interix*)
8356    # we just hope/assume this is gcc and not c89 (= MSVC++)
8357    with_gnu_ld=yes
8358    ;;
8359  openbsd*)
8360    with_gnu_ld=no
8361    ;;
8362  esac
8363
8364  ld_shlibs=yes
8365  if test "$with_gnu_ld" = yes; then
8366    # If archive_cmds runs LD, not CC, wlarc should be empty
8367    wlarc='${wl}'
8368
8369    # Set some defaults for GNU ld with shared library support. These
8370    # are reset later if shared libraries are not supported. Putting them
8371    # here allows them to be overridden if necessary.
8372    runpath_var=LD_RUN_PATH
8373    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8374    export_dynamic_flag_spec='${wl}--export-dynamic'
8375    # ancient GNU ld didn't support --whole-archive et. al.
8376    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8377        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8378      else
8379        whole_archive_flag_spec=
8380    fi
8381    supports_anon_versioning=no
8382    case `$LD -v 2>/dev/null` in
8383      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8384      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8385      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8386      *\ 2.11.*) ;; # other 2.11 versions
8387      *) supports_anon_versioning=yes ;;
8388    esac
8389
8390    # See if GNU ld supports shared libraries.
8391    case $host_os in
8392    aix3* | aix4* | aix5*)
8393      # On AIX/PPC, the GNU linker is very broken
8394      if test "$host_cpu" != ia64; then
8395        ld_shlibs=no
8396        cat <<EOF 1>&2
8397
8398*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8399*** to be unable to reliably create shared libraries on AIX.
8400*** Therefore, libtool is disabling shared libraries support.  If you
8401*** really care for shared libraries, you may want to modify your PATH
8402*** so that a non-GNU linker is found, and then restart.
8403
8404EOF
8405      fi
8406      ;;
8407
8408    amigaos*)
8409      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)'
8410      hardcode_libdir_flag_spec='-L$libdir'
8411      hardcode_minus_L=yes
8412
8413      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8414      # that the semantics of dynamic libraries on AmigaOS, at least up
8415      # to version 4, is to share data among multiple programs linked
8416      # with the same dynamic library.  Since this doesn't match the
8417      # behavior of shared libraries on other platforms, we can't use
8418      # them.
8419      ld_shlibs=no
8420      ;;
8421
8422    beos*)
8423      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8424        allow_undefined_flag=unsupported
8425        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8426        # support --undefined.  This deserves some investigation.  FIXME
8427        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428      else
8429        ld_shlibs=no
8430      fi
8431      ;;
8432
8433    cygwin* | mingw* | pw32*)
8434      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8435      # as there is no search path for DLLs.
8436      hardcode_libdir_flag_spec='-L$libdir'
8437      allow_undefined_flag=unsupported
8438      always_export_symbols=no
8439      enable_shared_with_static_runtimes=yes
8440      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8441
8442      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8443        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8444        # If the export-symbols file already is a .def file (1st line
8445        # is EXPORTS), use it as is; otherwise, prepend...
8446        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8447          cp $export_symbols $output_objdir/$soname.def;
8448        else
8449          echo EXPORTS > $output_objdir/$soname.def;
8450          cat $export_symbols >> $output_objdir/$soname.def;
8451        fi~
8452        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8453      else
8454        ld_shlibs=no
8455      fi
8456      ;;
8457
8458    interix3*)
8459      hardcode_direct=no
8460      hardcode_shlibpath_var=no
8461      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8462      export_dynamic_flag_spec='${wl}-E'
8463      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8464      # Instead, shared libraries are loaded at an image base (0x10000000 by
8465      # default) and relocated if they conflict, which is a slow very memory
8466      # consuming and fragmenting process.  To avoid this, we pick a random,
8467      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8468      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8469      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8470      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'
8471      ;;
8472
8473    linux*)
8474      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8475        tmp_addflag=
8476        case $cc_basename,$host_cpu in
8477        pgcc*)                          # Portland Group C compiler
8478          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'
8479          tmp_addflag=' $pic_flag'
8480          ;;
8481        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8482          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'
8483          tmp_addflag=' $pic_flag -Mnomain' ;;
8484        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8485          tmp_addflag=' -i_dynamic' ;;
8486        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8487          tmp_addflag=' -i_dynamic -nofor_main' ;;
8488        ifc* | ifort*)                  # Intel Fortran compiler
8489          tmp_addflag=' -nofor_main' ;;
8490        esac
8491        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8492
8493        if test $supports_anon_versioning = yes; then
8494          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8495  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8496  $echo "local: *; };" >> $output_objdir/$libname.ver~
8497          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8498        fi
8499      else
8500        ld_shlibs=no
8501      fi
8502      ;;
8503
8504    netbsd*)
8505      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8506        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8507        wlarc=
8508      else
8509        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8510        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8511      fi
8512      ;;
8513
8514    solaris*)
8515      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8516        ld_shlibs=no
8517        cat <<EOF 1>&2
8518
8519*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8520*** create shared libraries on Solaris systems.  Therefore, libtool
8521*** is disabling shared libraries support.  We urge you to upgrade GNU
8522*** binutils to release 2.9.1 or newer.  Another option is to modify
8523*** your PATH or compiler configuration so that the native linker is
8524*** used, and then restart.
8525
8526EOF
8527      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8528        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8529        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8530      else
8531        ld_shlibs=no
8532      fi
8533      ;;
8534
8535    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8536      case `$LD -v 2>&1` in
8537        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8538        ld_shlibs=no
8539        cat <<_LT_EOF 1>&2
8540
8541*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8542*** reliably create shared libraries on SCO systems.  Therefore, libtool
8543*** is disabling shared libraries support.  We urge you to upgrade GNU
8544*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8545*** your PATH or compiler configuration so that the native linker is
8546*** used, and then restart.
8547
8548_LT_EOF
8549        ;;
8550        *)
8551          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8552            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8553            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8554            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8555          else
8556            ld_shlibs=no
8557          fi
8558        ;;
8559      esac
8560      ;;
8561
8562    sunos4*)
8563      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8564      wlarc=
8565      hardcode_direct=yes
8566      hardcode_shlibpath_var=no
8567      ;;
8568
8569    *)
8570      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8571        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8572        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8573      else
8574        ld_shlibs=no
8575      fi
8576      ;;
8577    esac
8578
8579    if test "$ld_shlibs" = no; then
8580      runpath_var=
8581      hardcode_libdir_flag_spec=
8582      export_dynamic_flag_spec=
8583      whole_archive_flag_spec=
8584    fi
8585  else
8586    # PORTME fill in a description of your system's linker (not GNU ld)
8587    case $host_os in
8588    aix3*)
8589      allow_undefined_flag=unsupported
8590      always_export_symbols=yes
8591      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'
8592      # Note: this linker hardcodes the directories in LIBPATH if there
8593      # are no directories specified by -L.
8594      hardcode_minus_L=yes
8595      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8596        # Neither direct hardcoding nor static linking is supported with a
8597        # broken collect2.
8598        hardcode_direct=unsupported
8599      fi
8600      ;;
8601
8602    aix4* | aix5*)
8603      if test "$host_cpu" = ia64; then
8604        # On IA64, the linker does run time linking by default, so we don't
8605        # have to do anything special.
8606        aix_use_runtimelinking=no
8607        exp_sym_flag='-Bexport'
8608        no_entry_flag=""
8609      else
8610        # If we're using GNU nm, then we don't want the "-C" option.
8611        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8612        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8613          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'
8614        else
8615          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'
8616        fi
8617        aix_use_runtimelinking=no
8618
8619        # Test if we are trying to use run time linking or normal
8620        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8621        # need to do runtime linking.
8622        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8623          for ld_flag in $LDFLAGS; do
8624          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8625            aix_use_runtimelinking=yes
8626            break
8627          fi
8628          done
8629          ;;
8630        esac
8631
8632        exp_sym_flag='-bexport'
8633        no_entry_flag='-bnoentry'
8634      fi
8635
8636      # When large executables or shared objects are built, AIX ld can
8637      # have problems creating the table of contents.  If linking a library
8638      # or program results in "error TOC overflow" add -mminimal-toc to
8639      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8640      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8641
8642      archive_cmds=''
8643      hardcode_direct=yes
8644      hardcode_libdir_separator=':'
8645      link_all_deplibs=yes
8646
8647      if test "$GCC" = yes; then
8648        case $host_os in aix4.[012]|aix4.[012].*)
8649        # We only want to do this on AIX 4.2 and lower, the check
8650        # below for broken collect2 doesn't work under 4.3+
8651          collect2name=`${CC} -print-prog-name=collect2`
8652          if test -f "$collect2name" && \
8653           strings "$collect2name" | grep resolve_lib_name >/dev/null
8654          then
8655          # We have reworked collect2
8656          hardcode_direct=yes
8657          else
8658          # We have old collect2
8659          hardcode_direct=unsupported
8660          # It fails to find uninstalled libraries when the uninstalled
8661          # path is not listed in the libpath.  Setting hardcode_minus_L
8662          # to unsupported forces relinking
8663          hardcode_minus_L=yes
8664          hardcode_libdir_flag_spec='-L$libdir'
8665          hardcode_libdir_separator=
8666          fi
8667          ;;
8668        esac
8669        shared_flag='-shared'
8670        if test "$aix_use_runtimelinking" = yes; then
8671          shared_flag="$shared_flag "'${wl}-G'
8672        fi
8673      else
8674        # not using gcc
8675        if test "$host_cpu" = ia64; then
8676        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8677        # chokes on -Wl,-G. The following line is correct:
8678          shared_flag='-G'
8679        else
8680          if test "$aix_use_runtimelinking" = yes; then
8681            shared_flag='${wl}-G'
8682          else
8683            shared_flag='${wl}-bM:SRE'
8684          fi
8685        fi
8686      fi
8687
8688      # It seems that -bexpall does not export symbols beginning with
8689      # underscore (_), so it is better to generate a list of symbols to export.
8690      always_export_symbols=yes
8691      if test "$aix_use_runtimelinking" = yes; then
8692        # Warning - without using the other runtime loading flags (-brtl),
8693        # -berok will link without error, but may produce a broken library.
8694        allow_undefined_flag='-berok'
8695       # Determine the default libpath from the value encoded in an empty executable.
8696       cat >conftest.$ac_ext <<_ACEOF
8697/* confdefs.h.  */
8698_ACEOF
8699cat confdefs.h >>conftest.$ac_ext
8700cat >>conftest.$ac_ext <<_ACEOF
8701/* end confdefs.h.  */
8702
8703int
8704main ()
8705{
8706
8707  ;
8708  return 0;
8709}
8710_ACEOF
8711rm -f conftest.$ac_objext conftest$ac_exeext
8712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8713  (eval $ac_link) 2>conftest.er1
8714  ac_status=$?
8715  grep -v '^ *+' conftest.er1 >conftest.err
8716  rm -f conftest.er1
8717  cat conftest.err >&5
8718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719  (exit $ac_status); } &&
8720         { ac_try='test -z "$ac_c_werror_flag"
8721                         || test ! -s conftest.err'
8722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723  (eval $ac_try) 2>&5
8724  ac_status=$?
8725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726  (exit $ac_status); }; } &&
8727         { ac_try='test -s conftest$ac_exeext'
8728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729  (eval $ac_try) 2>&5
8730  ac_status=$?
8731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732  (exit $ac_status); }; }; then
8733
8734aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8735}'`
8736# Check for a 64-bit object if we didn't find anything.
8737if 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; }
8738}'`; fi
8739else
8740  echo "$as_me: failed program was:" >&5
8741sed 's/^/| /' conftest.$ac_ext >&5
8742
8743fi
8744rm -f conftest.err conftest.$ac_objext \
8745      conftest$ac_exeext conftest.$ac_ext
8746if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8747
8748       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8749        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"
8750       else
8751        if test "$host_cpu" = ia64; then
8752          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8753          allow_undefined_flag="-z nodefs"
8754          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"
8755        else
8756         # Determine the default libpath from the value encoded in an empty executable.
8757         cat >conftest.$ac_ext <<_ACEOF
8758/* confdefs.h.  */
8759_ACEOF
8760cat confdefs.h >>conftest.$ac_ext
8761cat >>conftest.$ac_ext <<_ACEOF
8762/* end confdefs.h.  */
8763
8764int
8765main ()
8766{
8767
8768  ;
8769  return 0;
8770}
8771_ACEOF
8772rm -f conftest.$ac_objext conftest$ac_exeext
8773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774  (eval $ac_link) 2>conftest.er1
8775  ac_status=$?
8776  grep -v '^ *+' conftest.er1 >conftest.err
8777  rm -f conftest.er1
8778  cat conftest.err >&5
8779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780  (exit $ac_status); } &&
8781         { ac_try='test -z "$ac_c_werror_flag"
8782                         || test ! -s conftest.err'
8783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8784  (eval $ac_try) 2>&5
8785  ac_status=$?
8786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787  (exit $ac_status); }; } &&
8788         { ac_try='test -s conftest$ac_exeext'
8789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8790  (eval $ac_try) 2>&5
8791  ac_status=$?
8792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793  (exit $ac_status); }; }; then
8794
8795aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8796}'`
8797# Check for a 64-bit object if we didn't find anything.
8798if 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; }
8799}'`; fi
8800else
8801  echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804fi
8805rm -f conftest.err conftest.$ac_objext \
8806      conftest$ac_exeext conftest.$ac_ext
8807if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8808
8809         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8810          # Warning - without using the other run time loading flags,
8811          # -berok will link without error, but may produce a broken library.
8812          no_undefined_flag=' ${wl}-bernotok'
8813          allow_undefined_flag=' ${wl}-berok'
8814          # Exported symbols can be pulled into shared objects from archives
8815          whole_archive_flag_spec='$convenience'
8816          archive_cmds_need_lc=yes
8817          # This is similar to how AIX traditionally builds its shared libraries.
8818          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'
8819        fi
8820      fi
8821      ;;
8822
8823    amigaos*)
8824      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)'
8825      hardcode_libdir_flag_spec='-L$libdir'
8826      hardcode_minus_L=yes
8827      # see comment about different semantics on the GNU ld section
8828      ld_shlibs=no
8829      ;;
8830
8831    bsdi[45]*)
8832      export_dynamic_flag_spec=-rdynamic
8833      ;;
8834
8835    cygwin* | mingw* | pw32*)
8836      # When not using gcc, we currently assume that we are using
8837      # Microsoft Visual C++.
8838      # hardcode_libdir_flag_spec is actually meaningless, as there is
8839      # no search path for DLLs.
8840      hardcode_libdir_flag_spec=' '
8841      allow_undefined_flag=unsupported
8842      # Tell ltmain to make .lib files, not .a files.
8843      libext=lib
8844      # Tell ltmain to make .dll files, not .so files.
8845      shrext_cmds=".dll"
8846      # FIXME: Setting linknames here is a bad hack.
8847      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8848      # The linker will automatically build a .lib file if we build a DLL.
8849      old_archive_From_new_cmds='true'
8850      # FIXME: Should let the user specify the lib program.
8851      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8852      fix_srcfile_path='`cygpath -w "$srcfile"`'
8853      enable_shared_with_static_runtimes=yes
8854      ;;
8855
8856    darwin* | rhapsody*)
8857      case $host_os in
8858        rhapsody* | darwin1.[012])
8859         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8860         ;;
8861       *) # Darwin 1.3 on
8862         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8863           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8864         else
8865           case ${MACOSX_DEPLOYMENT_TARGET} in
8866             10.[012])
8867               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8868               ;;
8869             10.*)
8870               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8871               ;;
8872           esac
8873         fi
8874         ;;
8875      esac
8876      archive_cmds_need_lc=no
8877      hardcode_direct=no
8878      hardcode_automatic=yes
8879      hardcode_shlibpath_var=unsupported
8880      whole_archive_flag_spec=''
8881      link_all_deplibs=yes
8882    if test "$GCC" = yes ; then
8883        output_verbose_link_cmd='echo'
8884        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8885      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8886      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8887      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}'
8888      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}'
8889    else
8890      case $cc_basename in
8891        xlc*)
8892         output_verbose_link_cmd='echo'
8893         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8894         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8895          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8896         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}'
8897          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}'
8898          ;;
8899       *)
8900         ld_shlibs=no
8901          ;;
8902      esac
8903    fi
8904      ;;
8905
8906    dgux*)
8907      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8908      hardcode_libdir_flag_spec='-L$libdir'
8909      hardcode_shlibpath_var=no
8910      ;;
8911
8912    freebsd1*)
8913      ld_shlibs=no
8914      ;;
8915
8916    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8917    # support.  Future versions do this automatically, but an explicit c++rt0.o
8918    # does not break anything, and helps significantly (at the cost of a little
8919    # extra space).
8920    freebsd2.2*)
8921      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8922      hardcode_libdir_flag_spec='-R$libdir'
8923      hardcode_direct=yes
8924      hardcode_shlibpath_var=no
8925      ;;
8926
8927    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8928    freebsd2*)
8929      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8930      hardcode_direct=yes
8931      hardcode_minus_L=yes
8932      hardcode_shlibpath_var=no
8933      ;;
8934
8935    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8936    freebsd* | kfreebsd*-gnu | dragonfly*)
8937      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8938      hardcode_libdir_flag_spec='-R$libdir'
8939      hardcode_direct=yes
8940      hardcode_shlibpath_var=no
8941      ;;
8942
8943    hpux9*)
8944      if test "$GCC" = yes; then
8945        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'
8946      else
8947        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'
8948      fi
8949      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8950      hardcode_libdir_separator=:
8951      hardcode_direct=yes
8952
8953      # hardcode_minus_L: Not really in the search PATH,
8954      # but as the default location of the library.
8955      hardcode_minus_L=yes
8956      export_dynamic_flag_spec='${wl}-E'
8957      ;;
8958
8959    hpux10*)
8960      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8961        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8962      else
8963        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8964      fi
8965      if test "$with_gnu_ld" = no; then
8966        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8967        hardcode_libdir_separator=:
8968
8969        hardcode_direct=yes
8970        export_dynamic_flag_spec='${wl}-E'
8971
8972        # hardcode_minus_L: Not really in the search PATH,
8973        # but as the default location of the library.
8974        hardcode_minus_L=yes
8975      fi
8976      ;;
8977
8978    hpux11*)
8979      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8980        case $host_cpu in
8981        hppa*64*)
8982          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8983          ;;
8984        ia64*)
8985          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8986          ;;
8987        *)
8988          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8989          ;;
8990        esac
8991      else
8992        case $host_cpu in
8993        hppa*64*)
8994          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8995          ;;
8996        ia64*)
8997          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8998          ;;
8999        *)
9000          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9001          ;;
9002        esac
9003      fi
9004      if test "$with_gnu_ld" = no; then
9005        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9006        hardcode_libdir_separator=:
9007
9008        case $host_cpu in
9009        hppa*64*|ia64*)
9010          hardcode_libdir_flag_spec_ld='+b $libdir'
9011          hardcode_direct=no
9012          hardcode_shlibpath_var=no
9013          ;;
9014        *)
9015          hardcode_direct=yes
9016          export_dynamic_flag_spec='${wl}-E'
9017
9018          # hardcode_minus_L: Not really in the search PATH,
9019          # but as the default location of the library.
9020          hardcode_minus_L=yes
9021          ;;
9022        esac
9023      fi
9024      ;;
9025
9026    irix5* | irix6* | nonstopux*)
9027      if test "$GCC" = yes; then
9028        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'
9029      else
9030        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'
9031        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9032      fi
9033      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9034      hardcode_libdir_separator=:
9035      link_all_deplibs=yes
9036      ;;
9037
9038    netbsd*)
9039      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9040        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9041      else
9042        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9043      fi
9044      hardcode_libdir_flag_spec='-R$libdir'
9045      hardcode_direct=yes
9046      hardcode_shlibpath_var=no
9047      ;;
9048
9049    newsos6)
9050      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9051      hardcode_direct=yes
9052      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9053      hardcode_libdir_separator=:
9054      hardcode_shlibpath_var=no
9055      ;;
9056
9057    openbsd*)
9058      hardcode_direct=yes
9059      hardcode_shlibpath_var=no
9060      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9061        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9062        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9063        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9064        export_dynamic_flag_spec='${wl}-E'
9065      else
9066       case $host_os in
9067         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9068           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9069           hardcode_libdir_flag_spec='-R$libdir'
9070           ;;
9071         *)
9072           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9073           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9074           ;;
9075       esac
9076      fi
9077      ;;
9078
9079    os2*)
9080      hardcode_libdir_flag_spec='-L$libdir'
9081      hardcode_minus_L=yes
9082      allow_undefined_flag=unsupported
9083      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'
9084      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9085      ;;
9086
9087    osf3*)
9088      if test "$GCC" = yes; then
9089        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9090        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'
9091      else
9092        allow_undefined_flag=' -expect_unresolved \*'
9093        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'
9094      fi
9095      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9096      hardcode_libdir_separator=:
9097      ;;
9098
9099    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9100      if test "$GCC" = yes; then
9101        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9102        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'
9103        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9104      else
9105        allow_undefined_flag=' -expect_unresolved \*'
9106        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'
9107        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9108        $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'
9109
9110        # Both c and cxx compiler support -rpath directly
9111        hardcode_libdir_flag_spec='-rpath $libdir'
9112      fi
9113      hardcode_libdir_separator=:
9114      ;;
9115
9116    solaris*)
9117      no_undefined_flag=' -z text'
9118      if test "$GCC" = yes; then
9119        wlarc='${wl}'
9120        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9121        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9122          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9123      else
9124        wlarc=''
9125        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9126        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9127        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9128      fi
9129      hardcode_libdir_flag_spec='-R$libdir'
9130      hardcode_shlibpath_var=no
9131      case $host_os in
9132      solaris2.[0-5] | solaris2.[0-5].*) ;;
9133      *)
9134        # The compiler driver will combine linker options so we
9135        # cannot just pass the convience library names through
9136        # without $wl, iff we do not link with $LD.
9137        # Luckily, gcc supports the same syntax we need for Sun Studio.
9138        # Supported since Solaris 2.6 (maybe 2.5.1?)
9139        case $wlarc in
9140        '')
9141          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9142        *)
9143          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' ;;
9144        esac ;;
9145      esac
9146      link_all_deplibs=yes
9147      ;;
9148
9149    sunos4*)
9150      if test "x$host_vendor" = xsequent; then
9151        # Use $CC to link under sequent, because it throws in some extra .o
9152        # files that make .init and .fini sections work.
9153        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9154      else
9155        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9156      fi
9157      hardcode_libdir_flag_spec='-L$libdir'
9158      hardcode_direct=yes
9159      hardcode_minus_L=yes
9160      hardcode_shlibpath_var=no
9161      ;;
9162
9163    sysv4)
9164      case $host_vendor in
9165        sni)
9166          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9167          hardcode_direct=yes # is this really true???
9168        ;;
9169        siemens)
9170          ## LD is ld it makes a PLAMLIB
9171          ## CC just makes a GrossModule.
9172          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9173          reload_cmds='$CC -r -o $output$reload_objs'
9174          hardcode_direct=no
9175        ;;
9176        motorola)
9177          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9178          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9179        ;;
9180      esac
9181      runpath_var='LD_RUN_PATH'
9182      hardcode_shlibpath_var=no
9183      ;;
9184
9185    sysv4.3*)
9186      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187      hardcode_shlibpath_var=no
9188      export_dynamic_flag_spec='-Bexport'
9189      ;;
9190
9191    sysv4*MP*)
9192      if test -d /usr/nec; then
9193        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9194        hardcode_shlibpath_var=no
9195        runpath_var=LD_RUN_PATH
9196        hardcode_runpath_var=yes
9197        ld_shlibs=yes
9198      fi
9199      ;;
9200
9201    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9202      no_undefined_flag='${wl}-z,text'
9203      archive_cmds_need_lc=no
9204      hardcode_shlibpath_var=no
9205      runpath_var='LD_RUN_PATH'
9206
9207      if test "$GCC" = yes; then
9208        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9209        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9210      else
9211        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9212        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9213      fi
9214      ;;
9215
9216    sysv5* | sco3.2v5* | sco5v6*)
9217      # Note: We can NOT use -z defs as we might desire, because we do not
9218      # link with -lc, and that would cause any symbols used from libc to
9219      # always be unresolved, which means just about no library would
9220      # ever link correctly.  If we're not using GNU ld we use -z text
9221      # though, which does catch some bad symbols but isn't as heavy-handed
9222      # as -z defs.
9223      no_undefined_flag='${wl}-z,text'
9224      allow_undefined_flag='${wl}-z,nodefs'
9225      archive_cmds_need_lc=no
9226      hardcode_shlibpath_var=no
9227      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9228      hardcode_libdir_separator=':'
9229      link_all_deplibs=yes
9230      export_dynamic_flag_spec='${wl}-Bexport'
9231      runpath_var='LD_RUN_PATH'
9232
9233      if test "$GCC" = yes; then
9234        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9235        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9236      else
9237        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9238        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9239      fi
9240      ;;
9241
9242    uts4*)
9243      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244      hardcode_libdir_flag_spec='-L$libdir'
9245      hardcode_shlibpath_var=no
9246      ;;
9247
9248    *)
9249      ld_shlibs=no
9250      ;;
9251    esac
9252  fi
9253
9254echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9255echo "${ECHO_T}$ld_shlibs" >&6
9256test "$ld_shlibs" = no && can_build_shared=no
9257
9258#
9259# Do we need to explicitly link libc?
9260#
9261case "x$archive_cmds_need_lc" in
9262x|xyes)
9263  # Assume -lc should be added
9264  archive_cmds_need_lc=yes
9265
9266  if test "$enable_shared" = yes && test "$GCC" = yes; then
9267    case $archive_cmds in
9268    *'~'*)
9269      # FIXME: we may have to deal with multi-command sequences.
9270      ;;
9271    '$CC '*)
9272      # Test whether the compiler implicitly links with -lc since on some
9273      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9274      # to ld, don't add -lc before -lgcc.
9275      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9276echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9277      $rm conftest*
9278      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9279
9280      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9281  (eval $ac_compile) 2>&5
9282  ac_status=$?
9283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284  (exit $ac_status); } 2>conftest.err; then
9285        soname=conftest
9286        lib=conftest
9287        libobjs=conftest.$ac_objext
9288        deplibs=
9289        wl=$lt_prog_compiler_wl
9290        pic_flag=$lt_prog_compiler_pic
9291        compiler_flags=-v
9292        linker_flags=-v
9293        verstring=
9294        output_objdir=.
9295        libname=conftest
9296        lt_save_allow_undefined_flag=$allow_undefined_flag
9297        allow_undefined_flag=
9298        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9299  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9300  ac_status=$?
9301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302  (exit $ac_status); }
9303        then
9304          archive_cmds_need_lc=no
9305        else
9306          archive_cmds_need_lc=yes
9307        fi
9308        allow_undefined_flag=$lt_save_allow_undefined_flag
9309      else
9310        cat conftest.err 1>&5
9311      fi
9312      $rm conftest*
9313      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9314echo "${ECHO_T}$archive_cmds_need_lc" >&6
9315      ;;
9316    esac
9317  fi
9318  ;;
9319esac
9320
9321echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9322echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9323library_names_spec=
9324libname_spec='lib$name'
9325soname_spec=
9326shrext_cmds=".so"
9327postinstall_cmds=
9328postuninstall_cmds=
9329finish_cmds=
9330finish_eval=
9331shlibpath_var=
9332shlibpath_overrides_runpath=unknown
9333version_type=none
9334dynamic_linker="$host_os ld.so"
9335sys_lib_dlsearch_path_spec="/lib /usr/lib"
9336if test "$GCC" = yes; then
9337  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9338  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9339    # if the path contains ";" then we assume it to be the separator
9340    # otherwise default to the standard path separator (i.e. ":") - it is
9341    # assumed that no part of a normal pathname contains ";" but that should
9342    # okay in the real world where ";" in dirpaths is itself problematic.
9343    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9344  else
9345    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9346  fi
9347else
9348  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9349fi
9350need_lib_prefix=unknown
9351hardcode_into_libs=no
9352
9353# when you set need_version to no, make sure it does not cause -set_version
9354# flags to be left without arguments
9355need_version=unknown
9356
9357case $host_os in
9358aix3*)
9359  version_type=linux
9360  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9361  shlibpath_var=LIBPATH
9362
9363  # AIX 3 has no versioning support, so we append a major version to the name.
9364  soname_spec='${libname}${release}${shared_ext}$major'
9365  ;;
9366
9367aix4* | aix5*)
9368  version_type=linux
9369  need_lib_prefix=no
9370  need_version=no
9371  hardcode_into_libs=yes
9372  if test "$host_cpu" = ia64; then
9373    # AIX 5 supports IA64
9374    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9375    shlibpath_var=LD_LIBRARY_PATH
9376  else
9377    # With GCC up to 2.95.x, collect2 would create an import file
9378    # for dependence libraries.  The import file would start with
9379    # the line `#! .'.  This would cause the generated library to
9380    # depend on `.', always an invalid library.  This was fixed in
9381    # development snapshots of GCC prior to 3.0.
9382    case $host_os in
9383      aix4 | aix4.[01] | aix4.[01].*)
9384      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9385           echo ' yes '
9386           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9387        :
9388      else
9389        can_build_shared=no
9390      fi
9391      ;;
9392    esac
9393    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9394    # soname into executable. Probably we can add versioning support to
9395    # collect2, so additional links can be useful in future.
9396    if test "$aix_use_runtimelinking" = yes; then
9397      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9398      # instead of lib<name>.a to let people know that these are not
9399      # typical AIX shared libraries.
9400      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9401    else
9402      # We preserve .a as extension for shared libraries through AIX4.2
9403      # and later when we are not doing run time linking.
9404      library_names_spec='${libname}${release}.a $libname.a'
9405      soname_spec='${libname}${release}${shared_ext}$major'
9406    fi
9407    shlibpath_var=LIBPATH
9408  fi
9409  ;;
9410
9411amigaos*)
9412  library_names_spec='$libname.ixlibrary $libname.a'
9413  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9414  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'
9415  ;;
9416
9417beos*)
9418  library_names_spec='${libname}${shared_ext}'
9419  dynamic_linker="$host_os ld.so"
9420  shlibpath_var=LIBRARY_PATH
9421  ;;
9422
9423bsdi[45]*)
9424  version_type=linux
9425  need_version=no
9426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9427  soname_spec='${libname}${release}${shared_ext}$major'
9428  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9429  shlibpath_var=LD_LIBRARY_PATH
9430  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9431  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9432  # the default ld.so.conf also contains /usr/contrib/lib and
9433  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9434  # libtool to hard-code these into programs
9435  ;;
9436
9437cygwin* | mingw* | pw32*)
9438  version_type=windows
9439  shrext_cmds=".dll"
9440  need_version=no
9441  need_lib_prefix=no
9442
9443  case $GCC,$host_os in
9444  yes,cygwin* | yes,mingw* | yes,pw32*)
9445    library_names_spec='$libname.dll.a'
9446    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9447    postinstall_cmds='base_file=`basename \${file}`~
9448      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9449      dldir=$destdir/`dirname \$dlpath`~
9450      test -d \$dldir || mkdir -p \$dldir~
9451      $install_prog $dir/$dlname \$dldir/$dlname~
9452      chmod a+x \$dldir/$dlname'
9453    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9454      dlpath=$dir/\$dldll~
9455       $rm \$dlpath'
9456    shlibpath_overrides_runpath=yes
9457
9458    case $host_os in
9459    cygwin*)
9460      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9461      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9462      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9463      ;;
9464    mingw*)
9465      # MinGW DLLs use traditional 'lib' prefix
9466      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9467      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9468      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9469        # It is most probably a Windows format PATH printed by
9470        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9471        # path with ; separators, and with drive letters. We can handle the
9472        # drive letters (cygwin fileutils understands them), so leave them,
9473        # especially as we might pass files found there to a mingw objdump,
9474        # which wouldn't understand a cygwinified path. Ahh.
9475        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9476      else
9477        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9478      fi
9479      ;;
9480    pw32*)
9481      # pw32 DLLs use 'pw' prefix rather than 'lib'
9482      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9483      ;;
9484    esac
9485    ;;
9486
9487  *)
9488    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9489    ;;
9490  esac
9491  dynamic_linker='Win32 ld.exe'
9492  # FIXME: first we should search . and the directory the executable is in
9493  shlibpath_var=PATH
9494  ;;
9495
9496darwin* | rhapsody*)
9497  dynamic_linker="$host_os dyld"
9498  version_type=darwin
9499  need_lib_prefix=no
9500  need_version=no
9501  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9502  soname_spec='${libname}${release}${major}$shared_ext'
9503  shlibpath_overrides_runpath=yes
9504  shlibpath_var=DYLD_LIBRARY_PATH
9505  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9506  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9507  if test "$GCC" = yes; then
9508    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"`
9509  else
9510    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9511  fi
9512  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9513  ;;
9514
9515dgux*)
9516  version_type=linux
9517  need_lib_prefix=no
9518  need_version=no
9519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9520  soname_spec='${libname}${release}${shared_ext}$major'
9521  shlibpath_var=LD_LIBRARY_PATH
9522  ;;
9523
9524freebsd1*)
9525  dynamic_linker=no
9526  ;;
9527
9528kfreebsd*-gnu)
9529  version_type=linux
9530  need_lib_prefix=no
9531  need_version=no
9532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9533  soname_spec='${libname}${release}${shared_ext}$major'
9534  shlibpath_var=LD_LIBRARY_PATH
9535  shlibpath_overrides_runpath=no
9536  hardcode_into_libs=yes
9537  dynamic_linker='GNU ld.so'
9538  ;;
9539
9540freebsd* | dragonfly*)
9541  # DragonFly does not have aout.  When/if they implement a new
9542  # versioning mechanism, adjust this.
9543  if test -x /usr/bin/objformat; then
9544    objformat=`/usr/bin/objformat`
9545  else
9546    case $host_os in
9547    freebsd[123]*) objformat=aout ;;
9548    *) objformat=elf ;;
9549    esac
9550  fi
9551  version_type=freebsd-$objformat
9552  case $version_type in
9553    freebsd-elf*)
9554      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9555      need_version=no
9556      need_lib_prefix=no
9557      ;;
9558    freebsd-*)
9559      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9560      need_version=yes
9561      ;;
9562  esac
9563  shlibpath_var=LD_LIBRARY_PATH
9564  case $host_os in
9565  freebsd2*)
9566    shlibpath_overrides_runpath=yes
9567    ;;
9568  freebsd3.[01]* | freebsdelf3.[01]*)
9569    shlibpath_overrides_runpath=yes
9570    hardcode_into_libs=yes
9571    ;;
9572  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9573  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9574    shlibpath_overrides_runpath=no
9575    hardcode_into_libs=yes
9576    ;;
9577  freebsd*) # from 4.6 on
9578    shlibpath_overrides_runpath=yes
9579    hardcode_into_libs=yes
9580    ;;
9581  esac
9582  ;;
9583
9584gnu*)
9585  version_type=linux
9586  need_lib_prefix=no
9587  need_version=no
9588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9589  soname_spec='${libname}${release}${shared_ext}$major'
9590  shlibpath_var=LD_LIBRARY_PATH
9591  hardcode_into_libs=yes
9592  ;;
9593
9594hpux9* | hpux10* | hpux11*)
9595  # Give a soname corresponding to the major version so that dld.sl refuses to
9596  # link against other versions.
9597  version_type=sunos
9598  need_lib_prefix=no
9599  need_version=no
9600  case $host_cpu in
9601  ia64*)
9602    shrext_cmds='.so'
9603    hardcode_into_libs=yes
9604    dynamic_linker="$host_os dld.so"
9605    shlibpath_var=LD_LIBRARY_PATH
9606    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9607    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608    soname_spec='${libname}${release}${shared_ext}$major'
9609    if test "X$HPUX_IA64_MODE" = X32; then
9610      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9611    else
9612      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9613    fi
9614    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9615    ;;
9616   hppa*64*)
9617     shrext_cmds='.sl'
9618     hardcode_into_libs=yes
9619     dynamic_linker="$host_os dld.sl"
9620     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9621     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9622     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623     soname_spec='${libname}${release}${shared_ext}$major'
9624     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9625     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9626     ;;
9627   *)
9628    shrext_cmds='.sl'
9629    dynamic_linker="$host_os dld.sl"
9630    shlibpath_var=SHLIB_PATH
9631    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9632    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9633    soname_spec='${libname}${release}${shared_ext}$major'
9634    ;;
9635  esac
9636  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9637  postinstall_cmds='chmod 555 $lib'
9638  ;;
9639
9640interix3*)
9641  version_type=linux
9642  need_lib_prefix=no
9643  need_version=no
9644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9645  soname_spec='${libname}${release}${shared_ext}$major'
9646  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9647  shlibpath_var=LD_LIBRARY_PATH
9648  shlibpath_overrides_runpath=no
9649  hardcode_into_libs=yes
9650  ;;
9651
9652irix5* | irix6* | nonstopux*)
9653  case $host_os in
9654    nonstopux*) version_type=nonstopux ;;
9655    *)
9656        if test "$lt_cv_prog_gnu_ld" = yes; then
9657                version_type=linux
9658        else
9659                version_type=irix
9660        fi ;;
9661  esac
9662  need_lib_prefix=no
9663  need_version=no
9664  soname_spec='${libname}${release}${shared_ext}$major'
9665  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9666  case $host_os in
9667  irix5* | nonstopux*)
9668    libsuff= shlibsuff=
9669    ;;
9670  *)
9671    case $LD in # libtool.m4 will add one of these switches to LD
9672    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9673      libsuff= shlibsuff= libmagic=32-bit;;
9674    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9675      libsuff=32 shlibsuff=N32 libmagic=N32;;
9676    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9677      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9678    *) libsuff= shlibsuff= libmagic=never-match;;
9679    esac
9680    ;;
9681  esac
9682  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9683  shlibpath_overrides_runpath=no
9684  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9685  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9686  hardcode_into_libs=yes
9687  ;;
9688
9689# No shared lib support for Linux oldld, aout, or coff.
9690linux*oldld* | linux*aout* | linux*coff*)
9691  dynamic_linker=no
9692  ;;
9693
9694# This must be Linux ELF.
9695linux*)
9696  version_type=linux
9697  need_lib_prefix=no
9698  need_version=no
9699  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9700  soname_spec='${libname}${release}${shared_ext}$major'
9701  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9702  shlibpath_var=LD_LIBRARY_PATH
9703  shlibpath_overrides_runpath=no
9704  # This implies no fast_install, which is unacceptable.
9705  # Some rework will be needed to allow for fast_install
9706  # before this can be enabled.
9707  hardcode_into_libs=yes
9708
9709  # Append ld.so.conf contents to the search path
9710  if test -f /etc/ld.so.conf; then
9711    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' ' '`
9712    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9713  fi
9714
9715  # We used to test for /lib/ld.so.1 and disable shared libraries on
9716  # powerpc, because MkLinux only supported shared libraries with the
9717  # GNU dynamic linker.  Since this was broken with cross compilers,
9718  # most powerpc-linux boxes support dynamic linking these days and
9719  # people can always --disable-shared, the test was removed, and we
9720  # assume the GNU/Linux dynamic linker is in use.
9721  dynamic_linker='GNU/Linux ld.so'
9722  ;;
9723
9724knetbsd*-gnu)
9725  version_type=linux
9726  need_lib_prefix=no
9727  need_version=no
9728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9729  soname_spec='${libname}${release}${shared_ext}$major'
9730  shlibpath_var=LD_LIBRARY_PATH
9731  shlibpath_overrides_runpath=no
9732  hardcode_into_libs=yes
9733  dynamic_linker='GNU ld.so'
9734  ;;
9735
9736netbsd*)
9737  version_type=sunos
9738  need_lib_prefix=no
9739  need_version=no
9740  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9742    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9743    dynamic_linker='NetBSD (a.out) ld.so'
9744  else
9745    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9746    soname_spec='${libname}${release}${shared_ext}$major'
9747    dynamic_linker='NetBSD ld.elf_so'
9748  fi
9749  shlibpath_var=LD_LIBRARY_PATH
9750  shlibpath_overrides_runpath=yes
9751  hardcode_into_libs=yes
9752  ;;
9753
9754newsos6)
9755  version_type=linux
9756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9757  shlibpath_var=LD_LIBRARY_PATH
9758  shlibpath_overrides_runpath=yes
9759  ;;
9760
9761nto-qnx*)
9762  version_type=linux
9763  need_lib_prefix=no
9764  need_version=no
9765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766  soname_spec='${libname}${release}${shared_ext}$major'
9767  shlibpath_var=LD_LIBRARY_PATH
9768  shlibpath_overrides_runpath=yes
9769  ;;
9770
9771openbsd*)
9772  version_type=sunos
9773  sys_lib_dlsearch_path_spec="/usr/lib"
9774  need_lib_prefix=no
9775  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9776  case $host_os in
9777    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9778    *)                         need_version=no  ;;
9779  esac
9780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9781  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9782  shlibpath_var=LD_LIBRARY_PATH
9783  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9784    case $host_os in
9785      openbsd2.[89] | openbsd2.[89].*)
9786        shlibpath_overrides_runpath=no
9787        ;;
9788      *)
9789        shlibpath_overrides_runpath=yes
9790        ;;
9791      esac
9792  else
9793    shlibpath_overrides_runpath=yes
9794  fi
9795  ;;
9796
9797os2*)
9798  libname_spec='$name'
9799  shrext_cmds=".dll"
9800  need_lib_prefix=no
9801  library_names_spec='$libname${shared_ext} $libname.a'
9802  dynamic_linker='OS/2 ld.exe'
9803  shlibpath_var=LIBPATH
9804  ;;
9805
9806osf3* | osf4* | osf5*)
9807  version_type=osf
9808  need_lib_prefix=no
9809  need_version=no
9810  soname_spec='${libname}${release}${shared_ext}$major'
9811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812  shlibpath_var=LD_LIBRARY_PATH
9813  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9814  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9815  ;;
9816
9817solaris*)
9818  version_type=linux
9819  need_lib_prefix=no
9820  need_version=no
9821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822  soname_spec='${libname}${release}${shared_ext}$major'
9823  shlibpath_var=LD_LIBRARY_PATH
9824  shlibpath_overrides_runpath=yes
9825  hardcode_into_libs=yes
9826  # ldd complains unless libraries are executable
9827  postinstall_cmds='chmod +x $lib'
9828  ;;
9829
9830sunos4*)
9831  version_type=sunos
9832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9833  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9834  shlibpath_var=LD_LIBRARY_PATH
9835  shlibpath_overrides_runpath=yes
9836  if test "$with_gnu_ld" = yes; then
9837    need_lib_prefix=no
9838  fi
9839  need_version=yes
9840  ;;
9841
9842sysv4 | sysv4.3*)
9843  version_type=linux
9844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9845  soname_spec='${libname}${release}${shared_ext}$major'
9846  shlibpath_var=LD_LIBRARY_PATH
9847  case $host_vendor in
9848    sni)
9849      shlibpath_overrides_runpath=no
9850      need_lib_prefix=no
9851      export_dynamic_flag_spec='${wl}-Blargedynsym'
9852      runpath_var=LD_RUN_PATH
9853      ;;
9854    siemens)
9855      need_lib_prefix=no
9856      ;;
9857    motorola)
9858      need_lib_prefix=no
9859      need_version=no
9860      shlibpath_overrides_runpath=no
9861      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9862      ;;
9863  esac
9864  ;;
9865
9866sysv4*MP*)
9867  if test -d /usr/nec ;then
9868    version_type=linux
9869    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9870    soname_spec='$libname${shared_ext}.$major'
9871    shlibpath_var=LD_LIBRARY_PATH
9872  fi
9873  ;;
9874
9875sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9876  version_type=freebsd-elf
9877  need_lib_prefix=no
9878  need_version=no
9879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9880  soname_spec='${libname}${release}${shared_ext}$major'
9881  shlibpath_var=LD_LIBRARY_PATH
9882  hardcode_into_libs=yes
9883  if test "$with_gnu_ld" = yes; then
9884    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9885    shlibpath_overrides_runpath=no
9886  else
9887    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9888    shlibpath_overrides_runpath=yes
9889    case $host_os in
9890      sco3.2v5*)
9891        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9892        ;;
9893    esac
9894  fi
9895  sys_lib_dlsearch_path_spec='/usr/lib'
9896  ;;
9897
9898uts4*)
9899  version_type=linux
9900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9901  soname_spec='${libname}${release}${shared_ext}$major'
9902  shlibpath_var=LD_LIBRARY_PATH
9903  ;;
9904
9905*)
9906  dynamic_linker=no
9907  ;;
9908esac
9909echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9910echo "${ECHO_T}$dynamic_linker" >&6
9911test "$dynamic_linker" = no && can_build_shared=no
9912
9913variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9914if test "$GCC" = yes; then
9915  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9916fi
9917
9918echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9919echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9920hardcode_action=
9921if test -n "$hardcode_libdir_flag_spec" || \
9922   test -n "$runpath_var" || \
9923   test "X$hardcode_automatic" = "Xyes" ; then
9924
9925  # We can hardcode non-existant directories.
9926  if test "$hardcode_direct" != no &&
9927     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9928     # have to relink, otherwise we might link with an installed library
9929     # when we should be linking with a yet-to-be-installed one
9930     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9931     test "$hardcode_minus_L" != no; then
9932    # Linking always hardcodes the temporary library directory.
9933    hardcode_action=relink
9934  else
9935    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9936    hardcode_action=immediate
9937  fi
9938else
9939  # We cannot hardcode anything, or else we can only hardcode existing
9940  # directories.
9941  hardcode_action=unsupported
9942fi
9943echo "$as_me:$LINENO: result: $hardcode_action" >&5
9944echo "${ECHO_T}$hardcode_action" >&6
9945
9946if test "$hardcode_action" = relink; then
9947  # Fast installation is not supported
9948  enable_fast_install=no
9949elif test "$shlibpath_overrides_runpath" = yes ||
9950     test "$enable_shared" = no; then
9951  # Fast installation is not necessary
9952  enable_fast_install=needless
9953fi
9954
9955striplib=
9956old_striplib=
9957echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9958echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9959if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9960  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9961  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9962  echo "$as_me:$LINENO: result: yes" >&5
9963echo "${ECHO_T}yes" >&6
9964else
9965# FIXME - insert some real tests, host_os isn't really good enough
9966  case $host_os in
9967   darwin*)
9968       if test -n "$STRIP" ; then
9969         striplib="$STRIP -x"
9970         echo "$as_me:$LINENO: result: yes" >&5
9971echo "${ECHO_T}yes" >&6
9972       else
9973  echo "$as_me:$LINENO: result: no" >&5
9974echo "${ECHO_T}no" >&6
9975fi
9976       ;;
9977   *)
9978  echo "$as_me:$LINENO: result: no" >&5
9979echo "${ECHO_T}no" >&6
9980    ;;
9981  esac
9982fi
9983
9984if test "x$enable_dlopen" != xyes; then
9985  enable_dlopen=unknown
9986  enable_dlopen_self=unknown
9987  enable_dlopen_self_static=unknown
9988else
9989  lt_cv_dlopen=no
9990  lt_cv_dlopen_libs=
9991
9992  case $host_os in
9993  beos*)
9994    lt_cv_dlopen="load_add_on"
9995    lt_cv_dlopen_libs=
9996    lt_cv_dlopen_self=yes
9997    ;;
9998
9999  mingw* | pw32*)
10000    lt_cv_dlopen="LoadLibrary"
10001    lt_cv_dlopen_libs=
10002   ;;
10003
10004  cygwin*)
10005    lt_cv_dlopen="dlopen"
10006    lt_cv_dlopen_libs=
10007   ;;
10008
10009  darwin*)
10010  # if libdl is installed we need to link against it
10011    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10012echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10013if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10014  echo $ECHO_N "(cached) $ECHO_C" >&6
10015else
10016  ac_check_lib_save_LIBS=$LIBS
10017LIBS="-ldl  $LIBS"
10018cat >conftest.$ac_ext <<_ACEOF
10019/* confdefs.h.  */
10020_ACEOF
10021cat confdefs.h >>conftest.$ac_ext
10022cat >>conftest.$ac_ext <<_ACEOF
10023/* end confdefs.h.  */
10024
10025/* Override any gcc2 internal prototype to avoid an error.  */
10026#ifdef __cplusplus
10027extern "C"
10028#endif
10029/* We use char because int might match the return type of a gcc2
10030   builtin and then its argument prototype would still apply.  */
10031char dlopen ();
10032int
10033main ()
10034{
10035dlopen ();
10036  ;
10037  return 0;
10038}
10039_ACEOF
10040rm -f conftest.$ac_objext conftest$ac_exeext
10041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10042  (eval $ac_link) 2>conftest.er1
10043  ac_status=$?
10044  grep -v '^ *+' conftest.er1 >conftest.err
10045  rm -f conftest.er1
10046  cat conftest.err >&5
10047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048  (exit $ac_status); } &&
10049         { ac_try='test -z "$ac_c_werror_flag"
10050                         || test ! -s conftest.err'
10051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052  (eval $ac_try) 2>&5
10053  ac_status=$?
10054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055  (exit $ac_status); }; } &&
10056         { ac_try='test -s conftest$ac_exeext'
10057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058  (eval $ac_try) 2>&5
10059  ac_status=$?
10060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061  (exit $ac_status); }; }; then
10062  ac_cv_lib_dl_dlopen=yes
10063else
10064  echo "$as_me: failed program was:" >&5
10065sed 's/^/| /' conftest.$ac_ext >&5
10066
10067ac_cv_lib_dl_dlopen=no
10068fi
10069rm -f conftest.err conftest.$ac_objext \
10070      conftest$ac_exeext conftest.$ac_ext
10071LIBS=$ac_check_lib_save_LIBS
10072fi
10073echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10074echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10075if test $ac_cv_lib_dl_dlopen = yes; then
10076  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10077else
10078
10079    lt_cv_dlopen="dyld"
10080    lt_cv_dlopen_libs=
10081    lt_cv_dlopen_self=yes
10082
10083fi
10084
10085   ;;
10086
10087  *)
10088    echo "$as_me:$LINENO: checking for shl_load" >&5
10089echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10090if test "${ac_cv_func_shl_load+set}" = set; then
10091  echo $ECHO_N "(cached) $ECHO_C" >&6
10092else
10093  cat >conftest.$ac_ext <<_ACEOF
10094/* confdefs.h.  */
10095_ACEOF
10096cat confdefs.h >>conftest.$ac_ext
10097cat >>conftest.$ac_ext <<_ACEOF
10098/* end confdefs.h.  */
10099/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10100   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10101#define shl_load innocuous_shl_load
10102
10103/* System header to define __stub macros and hopefully few prototypes,
10104    which can conflict with char shl_load (); below.
10105    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10106    <limits.h> exists even on freestanding compilers.  */
10107
10108#ifdef __STDC__
10109# include <limits.h>
10110#else
10111# include <assert.h>
10112#endif
10113
10114#undef shl_load
10115
10116/* Override any gcc2 internal prototype to avoid an error.  */
10117#ifdef __cplusplus
10118extern "C"
10119{
10120#endif
10121/* We use char because int might match the return type of a gcc2
10122   builtin and then its argument prototype would still apply.  */
10123char shl_load ();
10124/* The GNU C library defines this for functions which it implements
10125    to always fail with ENOSYS.  Some functions are actually named
10126    something starting with __ and the normal name is an alias.  */
10127#if defined (__stub_shl_load) || defined (__stub___shl_load)
10128choke me
10129#else
10130char (*f) () = shl_load;
10131#endif
10132#ifdef __cplusplus
10133}
10134#endif
10135
10136int
10137main ()
10138{
10139return f != shl_load;
10140  ;
10141  return 0;
10142}
10143_ACEOF
10144rm -f conftest.$ac_objext conftest$ac_exeext
10145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10146  (eval $ac_link) 2>conftest.er1
10147  ac_status=$?
10148  grep -v '^ *+' conftest.er1 >conftest.err
10149  rm -f conftest.er1
10150  cat conftest.err >&5
10151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152  (exit $ac_status); } &&
10153         { ac_try='test -z "$ac_c_werror_flag"
10154                         || test ! -s conftest.err'
10155  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156  (eval $ac_try) 2>&5
10157  ac_status=$?
10158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159  (exit $ac_status); }; } &&
10160         { ac_try='test -s conftest$ac_exeext'
10161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162  (eval $ac_try) 2>&5
10163  ac_status=$?
10164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165  (exit $ac_status); }; }; then
10166  ac_cv_func_shl_load=yes
10167else
10168  echo "$as_me: failed program was:" >&5
10169sed 's/^/| /' conftest.$ac_ext >&5
10170
10171ac_cv_func_shl_load=no
10172fi
10173rm -f conftest.err conftest.$ac_objext \
10174      conftest$ac_exeext conftest.$ac_ext
10175fi
10176echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10177echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10178if test $ac_cv_func_shl_load = yes; then
10179  lt_cv_dlopen="shl_load"
10180else
10181  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10182echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10183if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10184  echo $ECHO_N "(cached) $ECHO_C" >&6
10185else
10186  ac_check_lib_save_LIBS=$LIBS
10187LIBS="-ldld  $LIBS"
10188cat >conftest.$ac_ext <<_ACEOF
10189/* confdefs.h.  */
10190_ACEOF
10191cat confdefs.h >>conftest.$ac_ext
10192cat >>conftest.$ac_ext <<_ACEOF
10193/* end confdefs.h.  */
10194
10195/* Override any gcc2 internal prototype to avoid an error.  */
10196#ifdef __cplusplus
10197extern "C"
10198#endif
10199/* We use char because int might match the return type of a gcc2
10200   builtin and then its argument prototype would still apply.  */
10201char shl_load ();
10202int
10203main ()
10204{
10205shl_load ();
10206  ;
10207  return 0;
10208}
10209_ACEOF
10210rm -f conftest.$ac_objext conftest$ac_exeext
10211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10212  (eval $ac_link) 2>conftest.er1
10213  ac_status=$?
10214  grep -v '^ *+' conftest.er1 >conftest.err
10215  rm -f conftest.er1
10216  cat conftest.err >&5
10217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218  (exit $ac_status); } &&
10219         { ac_try='test -z "$ac_c_werror_flag"
10220                         || test ! -s conftest.err'
10221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222  (eval $ac_try) 2>&5
10223  ac_status=$?
10224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225  (exit $ac_status); }; } &&
10226         { ac_try='test -s conftest$ac_exeext'
10227  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228  (eval $ac_try) 2>&5
10229  ac_status=$?
10230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231  (exit $ac_status); }; }; then
10232  ac_cv_lib_dld_shl_load=yes
10233else
10234  echo "$as_me: failed program was:" >&5
10235sed 's/^/| /' conftest.$ac_ext >&5
10236
10237ac_cv_lib_dld_shl_load=no
10238fi
10239rm -f conftest.err conftest.$ac_objext \
10240      conftest$ac_exeext conftest.$ac_ext
10241LIBS=$ac_check_lib_save_LIBS
10242fi
10243echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10244echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10245if test $ac_cv_lib_dld_shl_load = yes; then
10246  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10247else
10248  echo "$as_me:$LINENO: checking for dlopen" >&5
10249echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10250if test "${ac_cv_func_dlopen+set}" = set; then
10251  echo $ECHO_N "(cached) $ECHO_C" >&6
10252else
10253  cat >conftest.$ac_ext <<_ACEOF
10254/* confdefs.h.  */
10255_ACEOF
10256cat confdefs.h >>conftest.$ac_ext
10257cat >>conftest.$ac_ext <<_ACEOF
10258/* end confdefs.h.  */
10259/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10260   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10261#define dlopen innocuous_dlopen
10262
10263/* System header to define __stub macros and hopefully few prototypes,
10264    which can conflict with char dlopen (); below.
10265    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10266    <limits.h> exists even on freestanding compilers.  */
10267
10268#ifdef __STDC__
10269# include <limits.h>
10270#else
10271# include <assert.h>
10272#endif
10273
10274#undef dlopen
10275
10276/* Override any gcc2 internal prototype to avoid an error.  */
10277#ifdef __cplusplus
10278extern "C"
10279{
10280#endif
10281/* We use char because int might match the return type of a gcc2
10282   builtin and then its argument prototype would still apply.  */
10283char dlopen ();
10284/* The GNU C library defines this for functions which it implements
10285    to always fail with ENOSYS.  Some functions are actually named
10286    something starting with __ and the normal name is an alias.  */
10287#if defined (__stub_dlopen) || defined (__stub___dlopen)
10288choke me
10289#else
10290char (*f) () = dlopen;
10291#endif
10292#ifdef __cplusplus
10293}
10294#endif
10295
10296int
10297main ()
10298{
10299return f != dlopen;
10300  ;
10301  return 0;
10302}
10303_ACEOF
10304rm -f conftest.$ac_objext conftest$ac_exeext
10305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306  (eval $ac_link) 2>conftest.er1
10307  ac_status=$?
10308  grep -v '^ *+' conftest.er1 >conftest.err
10309  rm -f conftest.er1
10310  cat conftest.err >&5
10311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312  (exit $ac_status); } &&
10313         { ac_try='test -z "$ac_c_werror_flag"
10314                         || test ! -s conftest.err'
10315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316  (eval $ac_try) 2>&5
10317  ac_status=$?
10318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319  (exit $ac_status); }; } &&
10320         { ac_try='test -s conftest$ac_exeext'
10321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322  (eval $ac_try) 2>&5
10323  ac_status=$?
10324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325  (exit $ac_status); }; }; then
10326  ac_cv_func_dlopen=yes
10327else
10328  echo "$as_me: failed program was:" >&5
10329sed 's/^/| /' conftest.$ac_ext >&5
10330
10331ac_cv_func_dlopen=no
10332fi
10333rm -f conftest.err conftest.$ac_objext \
10334      conftest$ac_exeext conftest.$ac_ext
10335fi
10336echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10337echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10338if test $ac_cv_func_dlopen = yes; then
10339  lt_cv_dlopen="dlopen"
10340else
10341  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10342echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10343if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10344  echo $ECHO_N "(cached) $ECHO_C" >&6
10345else
10346  ac_check_lib_save_LIBS=$LIBS
10347LIBS="-ldl  $LIBS"
10348cat >conftest.$ac_ext <<_ACEOF
10349/* confdefs.h.  */
10350_ACEOF
10351cat confdefs.h >>conftest.$ac_ext
10352cat >>conftest.$ac_ext <<_ACEOF
10353/* end confdefs.h.  */
10354
10355/* Override any gcc2 internal prototype to avoid an error.  */
10356#ifdef __cplusplus
10357extern "C"
10358#endif
10359/* We use char because int might match the return type of a gcc2
10360   builtin and then its argument prototype would still apply.  */
10361char dlopen ();
10362int
10363main ()
10364{
10365dlopen ();
10366  ;
10367  return 0;
10368}
10369_ACEOF
10370rm -f conftest.$ac_objext conftest$ac_exeext
10371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372  (eval $ac_link) 2>conftest.er1
10373  ac_status=$?
10374  grep -v '^ *+' conftest.er1 >conftest.err
10375  rm -f conftest.er1
10376  cat conftest.err >&5
10377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378  (exit $ac_status); } &&
10379         { ac_try='test -z "$ac_c_werror_flag"
10380                         || test ! -s conftest.err'
10381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382  (eval $ac_try) 2>&5
10383  ac_status=$?
10384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385  (exit $ac_status); }; } &&
10386         { ac_try='test -s conftest$ac_exeext'
10387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388  (eval $ac_try) 2>&5
10389  ac_status=$?
10390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391  (exit $ac_status); }; }; then
10392  ac_cv_lib_dl_dlopen=yes
10393else
10394  echo "$as_me: failed program was:" >&5
10395sed 's/^/| /' conftest.$ac_ext >&5
10396
10397ac_cv_lib_dl_dlopen=no
10398fi
10399rm -f conftest.err conftest.$ac_objext \
10400      conftest$ac_exeext conftest.$ac_ext
10401LIBS=$ac_check_lib_save_LIBS
10402fi
10403echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10404echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10405if test $ac_cv_lib_dl_dlopen = yes; then
10406  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10407else
10408  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10409echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10410if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10411  echo $ECHO_N "(cached) $ECHO_C" >&6
10412else
10413  ac_check_lib_save_LIBS=$LIBS
10414LIBS="-lsvld  $LIBS"
10415cat >conftest.$ac_ext <<_ACEOF
10416/* confdefs.h.  */
10417_ACEOF
10418cat confdefs.h >>conftest.$ac_ext
10419cat >>conftest.$ac_ext <<_ACEOF
10420/* end confdefs.h.  */
10421
10422/* Override any gcc2 internal prototype to avoid an error.  */
10423#ifdef __cplusplus
10424extern "C"
10425#endif
10426/* We use char because int might match the return type of a gcc2
10427   builtin and then its argument prototype would still apply.  */
10428char dlopen ();
10429int
10430main ()
10431{
10432dlopen ();
10433  ;
10434  return 0;
10435}
10436_ACEOF
10437rm -f conftest.$ac_objext conftest$ac_exeext
10438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10439  (eval $ac_link) 2>conftest.er1
10440  ac_status=$?
10441  grep -v '^ *+' conftest.er1 >conftest.err
10442  rm -f conftest.er1
10443  cat conftest.err >&5
10444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445  (exit $ac_status); } &&
10446         { ac_try='test -z "$ac_c_werror_flag"
10447                         || test ! -s conftest.err'
10448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10449  (eval $ac_try) 2>&5
10450  ac_status=$?
10451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452  (exit $ac_status); }; } &&
10453         { ac_try='test -s conftest$ac_exeext'
10454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455  (eval $ac_try) 2>&5
10456  ac_status=$?
10457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458  (exit $ac_status); }; }; then
10459  ac_cv_lib_svld_dlopen=yes
10460else
10461  echo "$as_me: failed program was:" >&5
10462sed 's/^/| /' conftest.$ac_ext >&5
10463
10464ac_cv_lib_svld_dlopen=no
10465fi
10466rm -f conftest.err conftest.$ac_objext \
10467      conftest$ac_exeext conftest.$ac_ext
10468LIBS=$ac_check_lib_save_LIBS
10469fi
10470echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10471echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10472if test $ac_cv_lib_svld_dlopen = yes; then
10473  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10474else
10475  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10476echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10477if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10478  echo $ECHO_N "(cached) $ECHO_C" >&6
10479else
10480  ac_check_lib_save_LIBS=$LIBS
10481LIBS="-ldld  $LIBS"
10482cat >conftest.$ac_ext <<_ACEOF
10483/* confdefs.h.  */
10484_ACEOF
10485cat confdefs.h >>conftest.$ac_ext
10486cat >>conftest.$ac_ext <<_ACEOF
10487/* end confdefs.h.  */
10488
10489/* Override any gcc2 internal prototype to avoid an error.  */
10490#ifdef __cplusplus
10491extern "C"
10492#endif
10493/* We use char because int might match the return type of a gcc2
10494   builtin and then its argument prototype would still apply.  */
10495char dld_link ();
10496int
10497main ()
10498{
10499dld_link ();
10500  ;
10501  return 0;
10502}
10503_ACEOF
10504rm -f conftest.$ac_objext conftest$ac_exeext
10505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10506  (eval $ac_link) 2>conftest.er1
10507  ac_status=$?
10508  grep -v '^ *+' conftest.er1 >conftest.err
10509  rm -f conftest.er1
10510  cat conftest.err >&5
10511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512  (exit $ac_status); } &&
10513         { ac_try='test -z "$ac_c_werror_flag"
10514                         || test ! -s conftest.err'
10515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516  (eval $ac_try) 2>&5
10517  ac_status=$?
10518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519  (exit $ac_status); }; } &&
10520         { ac_try='test -s conftest$ac_exeext'
10521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522  (eval $ac_try) 2>&5
10523  ac_status=$?
10524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525  (exit $ac_status); }; }; then
10526  ac_cv_lib_dld_dld_link=yes
10527else
10528  echo "$as_me: failed program was:" >&5
10529sed 's/^/| /' conftest.$ac_ext >&5
10530
10531ac_cv_lib_dld_dld_link=no
10532fi
10533rm -f conftest.err conftest.$ac_objext \
10534      conftest$ac_exeext conftest.$ac_ext
10535LIBS=$ac_check_lib_save_LIBS
10536fi
10537echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10538echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10539if test $ac_cv_lib_dld_dld_link = yes; then
10540  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10541fi
10542
10543
10544fi
10545
10546
10547fi
10548
10549
10550fi
10551
10552
10553fi
10554
10555
10556fi
10557
10558    ;;
10559  esac
10560
10561  if test "x$lt_cv_dlopen" != xno; then
10562    enable_dlopen=yes
10563  else
10564    enable_dlopen=no
10565  fi
10566
10567  case $lt_cv_dlopen in
10568  dlopen)
10569    save_CPPFLAGS="$CPPFLAGS"
10570    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10571
10572    save_LDFLAGS="$LDFLAGS"
10573    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10574
10575    save_LIBS="$LIBS"
10576    LIBS="$lt_cv_dlopen_libs $LIBS"
10577
10578    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10579echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10580if test "${lt_cv_dlopen_self+set}" = set; then
10581  echo $ECHO_N "(cached) $ECHO_C" >&6
10582else
10583          if test "$cross_compiling" = yes; then :
10584  lt_cv_dlopen_self=cross
10585else
10586  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10587  lt_status=$lt_dlunknown
10588  cat > conftest.$ac_ext <<EOF
10589#line 10589 "configure"
10590#include "confdefs.h"
10591
10592#if HAVE_DLFCN_H
10593#include <dlfcn.h>
10594#endif
10595
10596#include <stdio.h>
10597
10598#ifdef RTLD_GLOBAL
10599#  define LT_DLGLOBAL           RTLD_GLOBAL
10600#else
10601#  ifdef DL_GLOBAL
10602#    define LT_DLGLOBAL         DL_GLOBAL
10603#  else
10604#    define LT_DLGLOBAL         0
10605#  endif
10606#endif
10607
10608/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10609   find out it does not work in some platform. */
10610#ifndef LT_DLLAZY_OR_NOW
10611#  ifdef RTLD_LAZY
10612#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10613#  else
10614#    ifdef DL_LAZY
10615#      define LT_DLLAZY_OR_NOW          DL_LAZY
10616#    else
10617#      ifdef RTLD_NOW
10618#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10619#      else
10620#        ifdef DL_NOW
10621#          define LT_DLLAZY_OR_NOW      DL_NOW
10622#        else
10623#          define LT_DLLAZY_OR_NOW      0
10624#        endif
10625#      endif
10626#    endif
10627#  endif
10628#endif
10629
10630#ifdef __cplusplus
10631extern "C" void exit (int);
10632#endif
10633
10634void fnord() { int i=42;}
10635int main ()
10636{
10637  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10638  int status = $lt_dlunknown;
10639
10640  if (self)
10641    {
10642      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10643      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10644      /* dlclose (self); */
10645    }
10646  else
10647    puts (dlerror ());
10648
10649    exit (status);
10650}
10651EOF
10652  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653  (eval $ac_link) 2>&5
10654  ac_status=$?
10655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10657    (./conftest; exit; ) >&5 2>/dev/null
10658    lt_status=$?
10659    case x$lt_status in
10660      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10661      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10662      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10663    esac
10664  else :
10665    # compilation failed
10666    lt_cv_dlopen_self=no
10667  fi
10668fi
10669rm -fr conftest*
10670
10671
10672fi
10673echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10674echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10675
10676    if test "x$lt_cv_dlopen_self" = xyes; then
10677      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10678      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10679echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10680if test "${lt_cv_dlopen_self_static+set}" = set; then
10681  echo $ECHO_N "(cached) $ECHO_C" >&6
10682else
10683          if test "$cross_compiling" = yes; then :
10684  lt_cv_dlopen_self_static=cross
10685else
10686  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10687  lt_status=$lt_dlunknown
10688  cat > conftest.$ac_ext <<EOF
10689#line 10689 "configure"
10690#include "confdefs.h"
10691
10692#if HAVE_DLFCN_H
10693#include <dlfcn.h>
10694#endif
10695
10696#include <stdio.h>
10697
10698#ifdef RTLD_GLOBAL
10699#  define LT_DLGLOBAL           RTLD_GLOBAL
10700#else
10701#  ifdef DL_GLOBAL
10702#    define LT_DLGLOBAL         DL_GLOBAL
10703#  else
10704#    define LT_DLGLOBAL         0
10705#  endif
10706#endif
10707
10708/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10709   find out it does not work in some platform. */
10710#ifndef LT_DLLAZY_OR_NOW
10711#  ifdef RTLD_LAZY
10712#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10713#  else
10714#    ifdef DL_LAZY
10715#      define LT_DLLAZY_OR_NOW          DL_LAZY
10716#    else
10717#      ifdef RTLD_NOW
10718#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10719#      else
10720#        ifdef DL_NOW
10721#          define LT_DLLAZY_OR_NOW      DL_NOW
10722#        else
10723#          define LT_DLLAZY_OR_NOW      0
10724#        endif
10725#      endif
10726#    endif
10727#  endif
10728#endif
10729
10730#ifdef __cplusplus
10731extern "C" void exit (int);
10732#endif
10733
10734void fnord() { int i=42;}
10735int main ()
10736{
10737  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10738  int status = $lt_dlunknown;
10739
10740  if (self)
10741    {
10742      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10743      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10744      /* dlclose (self); */
10745    }
10746  else
10747    puts (dlerror ());
10748
10749    exit (status);
10750}
10751EOF
10752  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10753  (eval $ac_link) 2>&5
10754  ac_status=$?
10755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10757    (./conftest; exit; ) >&5 2>/dev/null
10758    lt_status=$?
10759    case x$lt_status in
10760      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10761      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10762      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10763    esac
10764  else :
10765    # compila