source: trunk/Cbc/configure @ 1464

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

merge split branch into trunk; fix some examples

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