source: branches/BSP/trunk/Cbc/configure @ 752

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

fixing linking issues with ASL (temporary fix)

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