source: stable/BSPsplit/CoinMP/configure @ 274

Last change on this file since 274 was 274, checked in by andreasw, 10 years ago

correct -version-info option

  • Property svn:executable set to *
File size: 830.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for CoinMP 1.3.
4#
5# Report bugs to <coin-discuss@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='CoinMP'
431PACKAGE_TARNAME='coinmp'
432PACKAGE_VERSION='1.3'
433PACKAGE_STRING='CoinMP 1.3'
434PACKAGE_BUGREPORT='coin-discuss@list.coin-or.org'
435
436ac_unique_file="src/CoinMP.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS 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 COINMPSRCDIR COINMPOBJDIR COINMPDOCDIR COINMPINSTDIR COIN_HAS_COINMP_TRUE COIN_HAS_COINMP_FALSE COIN_HAS_COINMP_PREINSTALLED_TRUE COIN_HAS_COINMP_PREINSTALLED_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR CBCINSTDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE COIN_HAS_CBC_PREINSTALLED_TRUE COIN_HAS_CBC_PREINSTALLED_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR CGLINSTDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COIN_HAS_CGL_PREINSTALLED_TRUE COIN_HAS_CGL_PREINSTALLED_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR CLPINSTDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COIN_HAS_CLP_PREINSTALLED_TRUE COIN_HAS_CLP_PREINSTALLED_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COINUTILSINSTDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE COIN_HAS_COINUTILS_PREINSTALLED_TRUE COIN_HAS_COINUTILS_PREINSTALLED_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR OSIINSTDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE COIN_HAS_OSI_PREINSTALLED_TRUE COIN_HAS_OSI_PREINSTALLED_FALSE DYLPSRCDIR DYLPOBJDIR DYLPDOCDIR DYLPINSTDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE COIN_HAS_DYLP_PREINSTALLED_TRUE COIN_HAS_DYLP_PREINSTALLED_FALSE VOLSRCDIR VOLOBJDIR VOLDOCDIR VOLINSTDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE COIN_HAS_VOL_PREINSTALLED_TRUE COIN_HAS_VOL_PREINSTALLED_FALSE SYMPHONYSRCDIR SYMPHONYOBJDIR SYMPHONYDOCDIR SYMPHONYINSTDIR COIN_HAS_SYMPHONY_TRUE COIN_HAS_SYMPHONY_FALSE COIN_HAS_SYMPHONY_PREINSTALLED_TRUE COIN_HAS_SYMPHONY_PREINSTALLED_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures CoinMP 1.3 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of CoinMP 1.3:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-doscompile     Under Cygwin, compile so that executables run under
1079                          DOS. Set to mingw to use gcc/g++/ld with
1080                          -mno-cygwin. Set to msvc to use cl/link (or
1081                          icl/link). Default when mentioned: mingw. Default
1082                          when not mentioned: disabled.
1083  --enable-static[=PKGS]
1084                          build static libraries [default=no]
1085  --disable-dependency-tracking  speeds up one-time build
1086  --enable-dependency-tracking   do not reject slow dependency extractors
1087  --enable-maintainer-mode  enable make rules and dependencies not useful
1088                          (and sometimes confusing) to the casual installer
1089  --enable-shared[=PKGS]
1090                          build shared libraries [default=yes]
1091  --enable-fast-install[=PKGS]
1092                          optimize for fast installation [default=yes]
1093  --disable-libtool-lock  avoid locking (might break parallel builds)
1094  --enable-cplex-libcheck use disable-cplex-libcheck to skip the
1095                          link check at configuration time
1096  --enable-fortmp-libcheck
1097                          use disable-fortmp-libcheck to skip the
1098                          link check at configuration time
1099  --enable-mosek-libcheck use disable-mosek-libcheck to skip the
1100                          link check at configuration time
1101  --enable-osl-libcheck use disable-osl-libcheck to skip the link
1102                          check at configuration time
1103  --enable-soplex-libcheck
1104                          use disable-soplex-libcheck to skip the
1105                          link check at configuration time
1106  --enable-xpress-libcheck
1107                          use disable-xpress-libcheck to skip the
1108                          link check at configuration time
1109  --enable-glpk-libcheck use disable-glpk-libcheck to skip the
1110                          link check at configuration time
1111
1112Optional Packages:
1113  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1114  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1115  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1116  --with-pic              try to use only PIC/non-PIC objects [default=use
1117                          both]
1118  --with-tags[=TAGS]
1119                          include additional configurations [automatic]
1120  --with-coinmp-instdir prefix of installation directory for precompiled
1121                          CoinMP package
1122  --with-coinmp-srcdir source directory for CoinMP package
1123  --with-coinmp-objdir object directory for CoinMP package (if different from
1124                          source directory in VPATH compilation)
1125  --with-coin-instdir     prefix of installation directory for precompiled
1126                          COIN packages
1127  --with-cbc-instdir prefix of installation directory for precompiled Cbc
1128                          package
1129  --with-cbc-srcdir source directory for Cbc package
1130  --with-cbc-objdir object directory for Cbc package (if different from source
1131                          directory in VPATH compilation)
1132  --with-cgl-instdir prefix of installation directory for precompiled Cgl
1133                          package
1134  --with-cgl-srcdir source directory for Cgl package
1135  --with-cgl-objdir object directory for Cgl package (if different from source
1136                          directory in VPATH compilation)
1137  --with-clp-instdir prefix of installation directory for precompiled Clp
1138                          package
1139  --with-clp-srcdir source directory for Clp package
1140  --with-clp-objdir object directory for Clp package (if different from source
1141                          directory in VPATH compilation)
1142  --with-coinutils-instdir
1143                          prefix of installation directory for precompiled
1144                          CoinUtils package
1145  --with-coinutils-srcdir source directory for CoinUtils package
1146  --with-coinutils-objdir object directory for CoinUtils package (if different
1147                          from source directory in VPATH compilation)
1148  --with-osi-instdir prefix of installation directory for precompiled Osi
1149                          package
1150  --with-osi-srcdir source directory for Osi package
1151  --with-osi-objdir object directory for Osi package (if different from source
1152                          directory in VPATH compilation)
1153  --with-dylp-instdir prefix of installation directory for precompiled DyLP
1154                          package
1155  --with-dylp-srcdir source directory for DyLP package
1156  --with-dylp-objdir object directory for DyLP package (if different from
1157                          source directory in VPATH compilation)
1158  --with-vol-instdir prefix of installation directory for precompiled Vol
1159                          package
1160  --with-vol-srcdir source directory for Vol package
1161  --with-vol-objdir object directory for Vol package (if different from source
1162                          directory in VPATH compilation)
1163  --with-symphony-instdir prefix of installation directory for precompiled
1164                          SYMPHONY package
1165  --with-symphony-srcdir source directory for SYMPHONY package
1166  --with-symphony-objdir object directory for SYMPHONY package (if different
1167                          from source directory in VPATH compilation)
1168  --with-cplex-incdir specify the header file directory for library Cplex
1169  --with-cplex-lib specify the flags used to link with the library Cplex
1170  --with-fortmp-incdir specify the header file directory for library FortMP
1171  --with-fortmp-lib specify the flags used to link with the library FortMP
1172  --with-mosek-incdir specify the header file directory for library Mosek
1173  --with-mosek-lib specify the flags used to link with the library Mosek
1174  --with-osl-incdir specify the header file directory for library Osl
1175  --with-osl-lib specify the flags used to link with the library Osl
1176  --with-soplex-incdir specify the header file directory for library Soplex
1177  --with-soplex-lib specify the flags used to link with the library Soplex
1178  --with-xpress-incdir specify the header file directory for library Xpress
1179  --with-xpress-lib specify the flags used to link with the library Xpress
1180  --with-glpk-incdir specify the header file directory for library Glpk
1181  --with-glpk-lib specify the flags used to link with the library Glpk
1182  --with-asldir           specify path to AMPL solver directory (or BUILD for
1183                          compilation, or "no" for disabling AMPL)
1184
1185Some influential environment variables:
1186  CDEFS       Additional -D flags to be used when compiling C code.
1187  ADD_CFLAGS  Additional C compiler options
1188  DBG_CFLAGS  Debug C compiler options
1189  OPT_CFLAGS  Optimize C compiler options
1190  CC          C compiler command
1191  CFLAGS      C compiler flags
1192  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1193              nonstandard directory <lib dir>
1194  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1195              headers in a nonstandard directory <include dir>
1196  MPICC       C MPI Compiler
1197  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1198  ADD_CXXFLAGS
1199              Additional C++ compiler options
1200  DBG_CXXFLAGS
1201              Debug C++ compiler options
1202  OPT_CXXFLAGS
1203              Optimize C++ compiler options
1204  CXX         C++ compiler command
1205  CXXFLAGS    C++ compiler flags
1206  MPICXX      C++ MPI Compiler
1207  CPP         C preprocessor
1208  CXXCPP      C++ preprocessor
1209  F77         Fortran 77 compiler command
1210  FFLAGS      Fortran 77 compiler flags
1211
1212Use these variables to override the choices made by `configure' or to help
1213it to find libraries and programs with nonstandard names/locations.
1214
1215Report bugs to <coin-discuss@list.coin-or.org>.
1216_ACEOF
1217fi
1218
1219if test "$ac_init_help" = "recursive"; then
1220  # If there are subdirs, report their specific --help.
1221  ac_popdir=`pwd`
1222  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1223    test -d $ac_dir || continue
1224    ac_builddir=.
1225
1226if test "$ac_dir" != .; then
1227  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1228  # A "../" for each directory in $ac_dir_suffix.
1229  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1230else
1231  ac_dir_suffix= ac_top_builddir=
1232fi
1233
1234case $srcdir in
1235  .)  # No --srcdir option.  We are building in place.
1236    ac_srcdir=.
1237    if test -z "$ac_top_builddir"; then
1238       ac_top_srcdir=.
1239    else
1240       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1241    fi ;;
1242  [\\/]* | ?:[\\/]* )  # Absolute path.
1243    ac_srcdir=$srcdir$ac_dir_suffix;
1244    ac_top_srcdir=$srcdir ;;
1245  *) # Relative path.
1246    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1247    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1248esac
1249
1250# Do not use `cd foo && pwd` to compute absolute paths, because
1251# the directories may not exist.
1252case `pwd` in
1253.) ac_abs_builddir="$ac_dir";;
1254*)
1255  case "$ac_dir" in
1256  .) ac_abs_builddir=`pwd`;;
1257  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1258  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1259  esac;;
1260esac
1261case $ac_abs_builddir in
1262.) ac_abs_top_builddir=${ac_top_builddir}.;;
1263*)
1264  case ${ac_top_builddir}. in
1265  .) ac_abs_top_builddir=$ac_abs_builddir;;
1266  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1267  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1268  esac;;
1269esac
1270case $ac_abs_builddir in
1271.) ac_abs_srcdir=$ac_srcdir;;
1272*)
1273  case $ac_srcdir in
1274  .) ac_abs_srcdir=$ac_abs_builddir;;
1275  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1276  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1277  esac;;
1278esac
1279case $ac_abs_builddir in
1280.) ac_abs_top_srcdir=$ac_top_srcdir;;
1281*)
1282  case $ac_top_srcdir in
1283  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1284  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1285  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1286  esac;;
1287esac
1288
1289    cd $ac_dir
1290    # Check for guested configure; otherwise get Cygnus style configure.
1291    if test -f $ac_srcdir/configure.gnu; then
1292      echo
1293      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1294    elif test -f $ac_srcdir/configure; then
1295      echo
1296      $SHELL $ac_srcdir/configure  --help=recursive
1297    elif test -f $ac_srcdir/configure.ac ||
1298           test -f $ac_srcdir/configure.in; then
1299      echo
1300      $ac_configure --help
1301    else
1302      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1303    fi
1304    cd $ac_popdir
1305  done
1306fi
1307
1308test -n "$ac_init_help" && exit 0
1309if $ac_init_version; then
1310  cat <<\_ACEOF
1311CoinMP configure 1.3
1312generated by GNU Autoconf 2.59
1313
1314Copyright (C) 2003 Free Software Foundation, Inc.
1315This configure script is free software; the Free Software Foundation
1316gives unlimited permission to copy, distribute and modify it.
1317
1318
1319Copyright 2006 International Business Machines and others.
1320All Rights Reserved.
1321This file is part of the open source package Coin which is distributed
1322under the Common Public License.
1323_ACEOF
1324  exit 0
1325fi
1326exec 5>config.log
1327cat >&5 <<_ACEOF
1328This file contains any messages produced by compilers while
1329running configure, to aid debugging if configure makes a mistake.
1330
1331It was created by CoinMP $as_me 1.3, which was
1332generated by GNU Autoconf 2.59.  Invocation command line was
1333
1334  $ $0 $@
1335
1336_ACEOF
1337{
1338cat <<_ASUNAME
1339## --------- ##
1340## Platform. ##
1341## --------- ##
1342
1343hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1344uname -m = `(uname -m) 2>/dev/null || echo unknown`
1345uname -r = `(uname -r) 2>/dev/null || echo unknown`
1346uname -s = `(uname -s) 2>/dev/null || echo unknown`
1347uname -v = `(uname -v) 2>/dev/null || echo unknown`
1348
1349/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1350/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1351
1352/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1353/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1354/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1355hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1356/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1357/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1358/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1359
1360_ASUNAME
1361
1362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363for as_dir in $PATH
1364do
1365  IFS=$as_save_IFS
1366  test -z "$as_dir" && as_dir=.
1367  echo "PATH: $as_dir"
1368done
1369
1370} >&5
1371
1372cat >&5 <<_ACEOF
1373
1374
1375## ----------- ##
1376## Core tests. ##
1377## ----------- ##
1378
1379_ACEOF
1380
1381
1382# Keep a trace of the command line.
1383# Strip out --no-create and --no-recursion so they do not pile up.
1384# Strip out --silent because we don't want to record it for future runs.
1385# Also quote any args containing shell meta-characters.
1386# Make two passes to allow for proper duplicate-argument suppression.
1387ac_configure_args=
1388ac_configure_args0=
1389ac_configure_args1=
1390ac_sep=
1391ac_must_keep_next=false
1392for ac_pass in 1 2
1393do
1394  for ac_arg
1395  do
1396    case $ac_arg in
1397    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1398    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399    | -silent | --silent | --silen | --sile | --sil)
1400      continue ;;
1401    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1402      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1403    esac
1404    case $ac_pass in
1405    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1406    2)
1407      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1408      if test $ac_must_keep_next = true; then
1409        ac_must_keep_next=false # Got value, back to normal.
1410      else
1411        case $ac_arg in
1412          *=* | --config-cache | -C | -disable-* | --disable-* \
1413          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1414          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1415          | -with-* | --with-* | -without-* | --without-* | --x)
1416            case "$ac_configure_args0 " in
1417              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1418            esac
1419            ;;
1420          -* ) ac_must_keep_next=true ;;
1421        esac
1422      fi
1423      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1424      # Get rid of the leading space.
1425      ac_sep=" "
1426      ;;
1427    esac
1428  done
1429done
1430$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1431$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1432
1433# When interrupted or exit'd, cleanup temporary files, and complete
1434# config.log.  We remove comments because anyway the quotes in there
1435# would cause problems or look ugly.
1436# WARNING: Be sure not to use single quotes in there, as some shells,
1437# such as our DU 5.0 friend, will then `close' the trap.
1438trap 'exit_status=$?
1439  # Save into config.log some information that might help in debugging.
1440  {
1441    echo
1442
1443    cat <<\_ASBOX
1444## ---------------- ##
1445## Cache variables. ##
1446## ---------------- ##
1447_ASBOX
1448    echo
1449    # The following way of writing the cache mishandles newlines in values,
1450{
1451  (set) 2>&1 |
1452    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1453    *ac_space=\ *)
1454      sed -n \
1455        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1456          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1457      ;;
1458    *)
1459      sed -n \
1460        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1461      ;;
1462    esac;
1463}
1464    echo
1465
1466    cat <<\_ASBOX
1467## ----------------- ##
1468## Output variables. ##
1469## ----------------- ##
1470_ASBOX
1471    echo
1472    for ac_var in $ac_subst_vars
1473    do
1474      eval ac_val=$`echo $ac_var`
1475      echo "$ac_var='"'"'$ac_val'"'"'"
1476    done | sort
1477    echo
1478
1479    if test -n "$ac_subst_files"; then
1480      cat <<\_ASBOX
1481## ------------- ##
1482## Output files. ##
1483## ------------- ##
1484_ASBOX
1485      echo
1486      for ac_var in $ac_subst_files
1487      do
1488        eval ac_val=$`echo $ac_var`
1489        echo "$ac_var='"'"'$ac_val'"'"'"
1490      done | sort
1491      echo
1492    fi
1493
1494    if test -s confdefs.h; then
1495      cat <<\_ASBOX
1496## ----------- ##
1497## confdefs.h. ##
1498## ----------- ##
1499_ASBOX
1500      echo
1501      sed "/^$/d" confdefs.h | sort
1502      echo
1503    fi
1504    test "$ac_signal" != 0 &&
1505      echo "$as_me: caught signal $ac_signal"
1506    echo "$as_me: exit $exit_status"
1507  } >&5
1508  rm -f core *.core &&
1509  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1510    exit $exit_status
1511     ' 0
1512for ac_signal in 1 2 13 15; do
1513  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1514done
1515ac_signal=0
1516
1517# confdefs.h avoids OS command line length limits that DEFS can exceed.
1518rm -rf conftest* confdefs.h
1519# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1520echo >confdefs.h
1521
1522# Predefined preprocessor variables.
1523
1524cat >>confdefs.h <<_ACEOF
1525#define PACKAGE_NAME "$PACKAGE_NAME"
1526_ACEOF
1527
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_VERSION "$PACKAGE_VERSION"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_STRING "$PACKAGE_STRING"
1541_ACEOF
1542
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1546_ACEOF
1547
1548
1549# Let the site file select an alternate cache file if it wants to.
1550# Prefer explicitly selected file to automatically selected ones.
1551if test -z "$CONFIG_SITE"; then
1552  if test "x$prefix" != xNONE; then
1553    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1554  else
1555    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1556  fi
1557fi
1558for ac_site_file in $CONFIG_SITE; do
1559  if test -r "$ac_site_file"; then
1560    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1561echo "$as_me: loading site script $ac_site_file" >&6;}
1562    sed 's/^/| /' "$ac_site_file" >&5
1563    . "$ac_site_file"
1564  fi
1565done
1566
1567if test -r "$cache_file"; then
1568  # Some versions of bash will fail to source /dev/null (special
1569  # files actually), so we avoid doing that.
1570  if test -f "$cache_file"; then
1571    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1572echo "$as_me: loading cache $cache_file" >&6;}
1573    case $cache_file in
1574      [\\/]* | ?:[\\/]* ) . $cache_file;;
1575      *)                      . ./$cache_file;;
1576    esac
1577  fi
1578else
1579  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1580echo "$as_me: creating cache $cache_file" >&6;}
1581  >$cache_file
1582fi
1583
1584# Check that the precious variables saved in the cache have kept the same
1585# value.
1586ac_cache_corrupted=false
1587for ac_var in `(set) 2>&1 |
1588               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1589  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1590  eval ac_new_set=\$ac_env_${ac_var}_set
1591  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1592  eval ac_new_val="\$ac_env_${ac_var}_value"
1593  case $ac_old_set,$ac_new_set in
1594    set,)
1595      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1596echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1597      ac_cache_corrupted=: ;;
1598    ,set)
1599      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1600echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1601      ac_cache_corrupted=: ;;
1602    ,);;
1603    *)
1604      if test "x$ac_old_val" != "x$ac_new_val"; then
1605        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1606echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1607        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1608echo "$as_me:   former value:  $ac_old_val" >&2;}
1609        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1610echo "$as_me:   current value: $ac_new_val" >&2;}
1611        ac_cache_corrupted=:
1612      fi;;
1613  esac
1614  # Pass precious variables to config.status.
1615  if test "$ac_new_set" = set; then
1616    case $ac_new_val in
1617    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1618      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1619    *) ac_arg=$ac_var=$ac_new_val ;;
1620    esac
1621    case " $ac_configure_args " in
1622      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1623      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1624    esac
1625  fi
1626done
1627if $ac_cache_corrupted; then
1628  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1629echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1630  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1631echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1632   { (exit 1); exit 1; }; }
1633fi
1634
1635ac_ext=c
1636ac_cpp='$CPP $CPPFLAGS'
1637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639ac_compiler_gnu=$ac_cv_c_compiler_gnu
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670# List one file in the package so that the configure script can test
1671# whether the package is actually there
1672
1673
1674# Where should everything be installed by default?  Here, we want it
1675# to be installed directly in 'bin', 'lib', 'include' subdirectories
1676# of the directory where configure is run.  The default would be
1677# /usr/local.
1678
1679
1680#############################################################################
1681#                         Standard build tool stuff                         #
1682#############################################################################
1683
1684# Get the system type
1685ac_aux_dir=
1686for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1687  if test -f $ac_dir/install-sh; then
1688    ac_aux_dir=$ac_dir
1689    ac_install_sh="$ac_aux_dir/install-sh -c"
1690    break
1691  elif test -f $ac_dir/install.sh; then
1692    ac_aux_dir=$ac_dir
1693    ac_install_sh="$ac_aux_dir/install.sh -c"
1694    break
1695  elif test -f $ac_dir/shtool; then
1696    ac_aux_dir=$ac_dir
1697    ac_install_sh="$ac_aux_dir/shtool install -c"
1698    break
1699  fi
1700done
1701if test -z "$ac_aux_dir"; then
1702  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1703echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1704   { (exit 1); exit 1; }; }
1705fi
1706ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1707ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1708ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1709
1710# Make sure we can run config.sub.
1711$ac_config_sub sun4 >/dev/null 2>&1 ||
1712  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1713echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1714   { (exit 1); exit 1; }; }
1715
1716echo "$as_me:$LINENO: checking build system type" >&5
1717echo $ECHO_N "checking build system type... $ECHO_C" >&6
1718if test "${ac_cv_build+set}" = set; then
1719  echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721  ac_cv_build_alias=$build_alias
1722test -z "$ac_cv_build_alias" &&
1723  ac_cv_build_alias=`$ac_config_guess`
1724test -z "$ac_cv_build_alias" &&
1725  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1726echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1727   { (exit 1); exit 1; }; }
1728ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1729  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1730echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733fi
1734echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1735echo "${ECHO_T}$ac_cv_build" >&6
1736build=$ac_cv_build
1737build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740
1741
1742
1743# If this project depends on external projects, the Externals file in
1744# the source root directory contains definition of where to find those
1745# externals.  The following macro ensures that those externals are
1746# retrieved by svn if they are not there yet.
1747# Initialize the ADDLIBS variable
1748ADDLIBS="-lm $LIBS"
1749
1750
1751# Initialize the FADDLIBS variable (which is to be used with a fortran
1752# compiler and will not include FLIBS)
1753FADDLIBS="$LIBS"
1754
1755
1756# A useful makefile conditional that is always false
1757
1758
1759if false; then
1760  ALWAYS_FALSE_TRUE=
1761  ALWAYS_FALSE_FALSE='#'
1762else
1763  ALWAYS_FALSE_TRUE='#'
1764  ALWAYS_FALSE_FALSE=
1765fi
1766
1767
1768# We set the following variable so that we know later in AC_COIN_FINALIZE
1769# that we are in a project main directory
1770coin_projectdir=yes
1771
1772# Check if a library version is set for libtool
1773
1774
1775
1776# Check if user wants to produce debugging code
1777
1778echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1779echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1780
1781# Check whether --enable-debug or --disable-debug was given.
1782if test "${enable_debug+set}" = set; then
1783  enableval="$enable_debug"
1784  case "${enableval}" in
1785   yes) coin_debug_compile=true
1786        if test "${enable_shared+set}" = set; then :; else
1787          enable_shared=no
1788        fi
1789        ;;
1790   no)  coin_debug_compile=false
1791        ;;
1792   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1793echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1794   { (exit 1); exit 1; }; }
1795        ;;
1796esac
1797else
1798  coin_debug_compile=false
1799fi;
1800
1801 # m4_ifvaln([],
1802
1803if test $coin_debug_compile = true; then
1804  echo "$as_me:$LINENO: result: yes" >&5
1805echo "${ECHO_T}yes" >&6
1806else
1807  echo "$as_me:$LINENO: result: no" >&5
1808echo "${ECHO_T}no" >&6
1809fi
1810
1811 # m4_ifvaln([],
1812
1813
1814
1815# Get the name of the C++ compiler and appropriate compiler options
1816case $build in
1817  *-mingw*)
1818    if test "${LD+set}" = set; then :; else
1819      LD=link
1820    fi
1821    ;;
1822 esac
1823 case $enable_doscompile in
1824   msvc)
1825     if test "x${LD+set}" = xset; then :; else
1826       LD=link
1827     fi
1828     ;;
1829 esac
1830
1831
1832 # Check whether --enable-doscompile or --disable-doscompile was given.
1833if test "${enable_doscompile+set}" = set; then
1834  enableval="$enable_doscompile"
1835  if test "$enable_doscompile" != no; then
1836     case $build in
1837       *-cygwin* | *-mingw*) ;;
1838       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1839echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1840   { (exit 1); exit 1; }; } ;;
1841     esac
1842   fi
1843else
1844  enable_doscompile=no
1845fi;
1846 case "$enable_doscompile" in
1847   mingw)
1848     case $build in
1849       *-mingw*) enable_doscompile=no ;;
1850     esac
1851     ;;
1852   msvc|no) ;;
1853   yes) enable_doscompile=mingw ;;
1854   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1855                    Try configure --help=recursive." >&5
1856echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1857                    Try configure --help=recursive." >&2;}
1858   { (exit 1); exit 1; }; }
1859      ;;
1860  esac
1861  if test "$enable_doscompile" != no ; then
1862    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1863echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1864  fi
1865
1866
1867
1868
1869ac_ext=c
1870ac_cpp='$CPP $CPPFLAGS'
1871ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873ac_compiler_gnu=$ac_cv_c_compiler_gnu
1874
1875
1876# For consistency, we set the C compiler to the same value of the C++
1877# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1878if test x"$CXX" != x; then
1879  case "$CXX" in
1880    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1881      if test x"$CC" = x; then
1882        CC="$CXX"
1883        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1884echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1885      fi
1886      ;;
1887  esac
1888fi
1889
1890
1891
1892
1893
1894
1895coin_has_cc=yes
1896
1897save_cflags="$CFLAGS"
1898
1899# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1900# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1901# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1902# compiler. In this case, put cc after gcc.
1903
1904case $build in
1905  *-cygwin* | *-mingw*)
1906             if test "$enable_doscompile" = msvc ; then
1907               comps="icl cl"
1908             else
1909               comps="gcc cl"
1910             fi ;;
1911  *-*-solaris*)
1912             # Extract the first word of "cc", so it can be a program name with args.
1913set dummy cc; ac_word=$2
1914echo "$as_me:$LINENO: checking for $ac_word" >&5
1915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1917  echo $ECHO_N "(cached) $ECHO_C" >&6
1918else
1919  if test -n "$sol_cc_compiler"; then
1920  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1921else
1922  ac_prog_rejected=no
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1931       ac_prog_rejected=yes
1932       continue
1933     fi
1934    ac_cv_prog_sol_cc_compiler="cc"
1935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936    break 2
1937  fi
1938done
1939done
1940
1941if test $ac_prog_rejected = yes; then
1942  # We found a bogon in the path, so make sure we never use it.
1943  set dummy $ac_cv_prog_sol_cc_compiler
1944  shift
1945  if test $# != 0; then
1946    # We chose a different compiler from the bogus one.
1947    # However, it has the same basename, so the bogon will be chosen
1948    # first if we set sol_cc_compiler to just the basename; use the full file name.
1949    shift
1950    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1951  fi
1952fi
1953fi
1954fi
1955sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1956if test -n "$sol_cc_compiler"; then
1957  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1958echo "${ECHO_T}$sol_cc_compiler" >&6
1959else
1960  echo "$as_me:$LINENO: result: no" >&5
1961echo "${ECHO_T}no" >&6
1962fi
1963
1964             if test "$sol_cc_compiler" = "cc" ; then
1965               comps="cc xlc gcc pgcc icc"
1966             else
1967               comps="xlc gcc pgcc icc cc"
1968             fi
1969             ;;
1970  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1971  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1972esac
1973
1974# We delete the cached value, since the test might not have been
1975# performed with our choice of compilers earlier
1976$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1977# AC_MSG_NOTICE([C compiler candidates: $comps])
1978ac_ext=c
1979ac_cpp='$CPP $CPPFLAGS'
1980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1982ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983if test -n "$ac_tool_prefix"; then
1984  for ac_prog in $comps
1985  do
1986    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990if test "${ac_cv_prog_CC+set}" = set; then
1991  echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
1993  if test -n "$CC"; then
1994  ac_cv_prog_CC="$CC" # Let the user override the test.
1995else
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999  IFS=$as_save_IFS
2000  test -z "$as_dir" && as_dir=.
2001  for ac_exec_ext in '' $ac_executable_extensions; do
2002  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005    break 2
2006  fi
2007done
2008done
2009
2010fi
2011fi
2012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014  echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6
2016else
2017  echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
2021    test -n "$CC" && break
2022  done
2023fi
2024if test -z "$CC"; then
2025  ac_ct_CC=$CC
2026  for ac_prog in $comps
2027do
2028  # Extract the first word of "$ac_prog", so it can be a program name with args.
2029set dummy $ac_prog; ac_word=$2
2030echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2033  echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
2035  if test -n "$ac_ct_CC"; then
2036  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041  IFS=$as_save_IFS
2042  test -z "$as_dir" && as_dir=.
2043  for ac_exec_ext in '' $ac_executable_extensions; do
2044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045    ac_cv_prog_ac_ct_CC="$ac_prog"
2046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047    break 2
2048  fi
2049done
2050done
2051
2052fi
2053fi
2054ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055if test -n "$ac_ct_CC"; then
2056  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057echo "${ECHO_T}$ac_ct_CC" >&6
2058else
2059  echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6
2061fi
2062
2063  test -n "$ac_ct_CC" && break
2064done
2065
2066  CC=$ac_ct_CC
2067fi
2068
2069
2070test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2071See \`config.log' for more details." >&5
2072echo "$as_me: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&2;}
2074   { (exit 1); exit 1; }; }
2075
2076# Provide some information about the compiler.
2077echo "$as_me:$LINENO:" \
2078     "checking for C compiler version" >&5
2079ac_compiler=`set X $ac_compile; echo $2`
2080{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2081  (eval $ac_compiler --version </dev/null >&5) 2>&5
2082  ac_status=$?
2083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084  (exit $ac_status); }
2085{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2086  (eval $ac_compiler -v </dev/null >&5) 2>&5
2087  ac_status=$?
2088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089  (exit $ac_status); }
2090{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2091  (eval $ac_compiler -V </dev/null >&5) 2>&5
2092  ac_status=$?
2093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094  (exit $ac_status); }
2095
2096cat >conftest.$ac_ext <<_ACEOF
2097/* confdefs.h.  */
2098_ACEOF
2099cat confdefs.h >>conftest.$ac_ext
2100cat >>conftest.$ac_ext <<_ACEOF
2101/* end confdefs.h.  */
2102
2103int
2104main ()
2105{
2106
2107  ;
2108  return 0;
2109}
2110_ACEOF
2111ac_clean_files_save=$ac_clean_files
2112ac_clean_files="$ac_clean_files a.out a.exe b.out"
2113# Try to create an executable without -o first, disregard a.out.
2114# It will help us diagnose broken compilers, and finding out an intuition
2115# of exeext.
2116echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2117echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2118ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2119if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2120  (eval $ac_link_default) 2>&5
2121  ac_status=$?
2122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123  (exit $ac_status); }; then
2124  # Find the output, starting from the most likely.  This scheme is
2125# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2126# resort.
2127
2128# Be careful to initialize this variable, since it used to be cached.
2129# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2130ac_cv_exeext=
2131# b.out is created by i960 compilers.
2132for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2133do
2134  test -f "$ac_file" || continue
2135  case $ac_file in
2136    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2137        ;;
2138    conftest.$ac_ext )
2139        # This is the source file.
2140        ;;
2141    [ab].out )
2142        # We found the default executable, but exeext='' is most
2143        # certainly right.
2144        break;;
2145    *.* )
2146        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2147        # FIXME: I believe we export ac_cv_exeext for Libtool,
2148        # but it would be cool to find out if it's true.  Does anybody
2149        # maintain Libtool? --akim.
2150        export ac_cv_exeext
2151        break;;
2152    * )
2153        break;;
2154  esac
2155done
2156else
2157  echo "$as_me: failed program was:" >&5
2158sed 's/^/| /' conftest.$ac_ext >&5
2159
2160{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2161See \`config.log' for more details." >&5
2162echo "$as_me: error: C compiler cannot create executables
2163See \`config.log' for more details." >&2;}
2164   { (exit 77); exit 77; }; }
2165fi
2166
2167ac_exeext=$ac_cv_exeext
2168echo "$as_me:$LINENO: result: $ac_file" >&5
2169echo "${ECHO_T}$ac_file" >&6
2170
2171# Check the compiler produces executables we can run.  If not, either
2172# the compiler is broken, or we cross compile.
2173echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2174echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2175# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2176# If not cross compiling, check that we can run a simple program.
2177if test "$cross_compiling" != yes; then
2178  if { ac_try='./$ac_file'
2179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180  (eval $ac_try) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }; }; then
2184    cross_compiling=no
2185  else
2186    if test "$cross_compiling" = maybe; then
2187        cross_compiling=yes
2188    else
2189        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2190If you meant to cross compile, use \`--host'.
2191See \`config.log' for more details." >&5
2192echo "$as_me: error: cannot run C compiled programs.
2193If you meant to cross compile, use \`--host'.
2194See \`config.log' for more details." >&2;}
2195   { (exit 1); exit 1; }; }
2196    fi
2197  fi
2198fi
2199echo "$as_me:$LINENO: result: yes" >&5
2200echo "${ECHO_T}yes" >&6
2201
2202rm -f a.out a.exe conftest$ac_cv_exeext b.out
2203ac_clean_files=$ac_clean_files_save
2204# Check the compiler produces executables we can run.  If not, either
2205# the compiler is broken, or we cross compile.
2206echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2207echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2208echo "$as_me:$LINENO: result: $cross_compiling" >&5
2209echo "${ECHO_T}$cross_compiling" >&6
2210
2211echo "$as_me:$LINENO: checking for suffix of executables" >&5
2212echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2214  (eval $ac_link) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }; then
2218  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2219# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2220# work properly (i.e., refer to `conftest.exe'), while it won't with
2221# `rm'.
2222for ac_file in conftest.exe conftest conftest.*; do
2223  test -f "$ac_file" || continue
2224  case $ac_file in
2225    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2226    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2227          export ac_cv_exeext
2228          break;;
2229    * ) break;;
2230  esac
2231done
2232else
2233  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2234See \`config.log' for more details." >&5
2235echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2236See \`config.log' for more details." >&2;}
2237   { (exit 1); exit 1; }; }
2238fi
2239
2240rm -f conftest$ac_cv_exeext
2241echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2242echo "${ECHO_T}$ac_cv_exeext" >&6
2243
2244rm -f conftest.$ac_ext
2245EXEEXT=$ac_cv_exeext
2246ac_exeext=$EXEEXT
2247echo "$as_me:$LINENO: checking for suffix of object files" >&5
2248echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2249if test "${ac_cv_objext+set}" = set; then
2250  echo $ECHO_N "(cached) $ECHO_C" >&6
2251else
2252  cat >conftest.$ac_ext <<_ACEOF
2253/* confdefs.h.  */
2254_ACEOF
2255cat confdefs.h >>conftest.$ac_ext
2256cat >>conftest.$ac_ext <<_ACEOF
2257/* end confdefs.h.  */
2258
2259int
2260main ()
2261{
2262
2263  ;
2264  return 0;
2265}
2266_ACEOF
2267rm -f conftest.o conftest.obj
2268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269  (eval $ac_compile) 2>&5
2270  ac_status=$?
2271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272  (exit $ac_status); }; then
2273  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2274  case $ac_file in
2275    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2276    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2277       break;;
2278  esac
2279done
2280else
2281  echo "$as_me: failed program was:" >&5
2282sed 's/^/| /' conftest.$ac_ext >&5
2283
2284{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2285See \`config.log' for more details." >&5
2286echo "$as_me: error: cannot compute suffix of object files: cannot compile
2287See \`config.log' for more details." >&2;}
2288   { (exit 1); exit 1; }; }
2289fi
2290
2291rm -f conftest.$ac_cv_objext conftest.$ac_ext
2292fi
2293echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2294echo "${ECHO_T}$ac_cv_objext" >&6
2295OBJEXT=$ac_cv_objext
2296ac_objext=$OBJEXT
2297echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2298echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2299if test "${ac_cv_c_compiler_gnu+set}" = set; then
2300  echo $ECHO_N "(cached) $ECHO_C" >&6
2301else
2302  cat >conftest.$ac_ext <<_ACEOF
2303/* confdefs.h.  */
2304_ACEOF
2305cat confdefs.h >>conftest.$ac_ext
2306cat >>conftest.$ac_ext <<_ACEOF
2307/* end confdefs.h.  */
2308
2309int
2310main ()
2311{
2312#ifndef __GNUC__
2313       choke me
2314#endif
2315
2316  ;
2317  return 0;
2318}
2319_ACEOF
2320rm -f conftest.$ac_objext
2321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322  (eval $ac_compile) 2>conftest.er1
2323  ac_status=$?
2324  grep -v '^ *+' conftest.er1 >conftest.err
2325  rm -f conftest.er1
2326  cat conftest.err >&5
2327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328  (exit $ac_status); } &&
2329         { ac_try='test -z "$ac_c_werror_flag"
2330                         || test ! -s conftest.err'
2331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332  (eval $ac_try) 2>&5
2333  ac_status=$?
2334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335  (exit $ac_status); }; } &&
2336         { ac_try='test -s conftest.$ac_objext'
2337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338  (eval $ac_try) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; }; then
2342  ac_compiler_gnu=yes
2343else
2344  echo "$as_me: failed program was:" >&5
2345sed 's/^/| /' conftest.$ac_ext >&5
2346
2347ac_compiler_gnu=no
2348fi
2349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2350ac_cv_c_compiler_gnu=$ac_compiler_gnu
2351
2352fi
2353echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2354echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2355GCC=`test $ac_compiler_gnu = yes && echo yes`
2356ac_test_CFLAGS=${CFLAGS+set}
2357ac_save_CFLAGS=$CFLAGS
2358CFLAGS="-g"
2359echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2360echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2361if test "${ac_cv_prog_cc_g+set}" = set; then
2362  echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364  cat >conftest.$ac_ext <<_ACEOF
2365/* confdefs.h.  */
2366_ACEOF
2367cat confdefs.h >>conftest.$ac_ext
2368cat >>conftest.$ac_ext <<_ACEOF
2369/* end confdefs.h.  */
2370
2371int
2372main ()
2373{
2374
2375  ;
2376  return 0;
2377}
2378_ACEOF
2379rm -f conftest.$ac_objext
2380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2381  (eval $ac_compile) 2>conftest.er1
2382  ac_status=$?
2383  grep -v '^ *+' conftest.er1 >conftest.err
2384  rm -f conftest.er1
2385  cat conftest.err >&5
2386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387  (exit $ac_status); } &&
2388         { ac_try='test -z "$ac_c_werror_flag"
2389                         || test ! -s conftest.err'
2390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391  (eval $ac_try) 2>&5
2392  ac_status=$?
2393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394  (exit $ac_status); }; } &&
2395         { ac_try='test -s conftest.$ac_objext'
2396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397  (eval $ac_try) 2>&5
2398  ac_status=$?
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); }; }; then
2401  ac_cv_prog_cc_g=yes
2402else
2403  echo "$as_me: failed program was:" >&5
2404sed 's/^/| /' conftest.$ac_ext >&5
2405
2406ac_cv_prog_cc_g=no
2407fi
2408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2409fi
2410echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2411echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2412if test "$ac_test_CFLAGS" = set; then
2413  CFLAGS=$ac_save_CFLAGS
2414elif test $ac_cv_prog_cc_g = yes; then
2415  if test "$GCC" = yes; then
2416    CFLAGS="-g -O2"
2417  else
2418    CFLAGS="-g"
2419  fi
2420else
2421  if test "$GCC" = yes; then
2422    CFLAGS="-O2"
2423  else
2424    CFLAGS=
2425  fi
2426fi
2427echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2428echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2429if test "${ac_cv_prog_cc_stdc+set}" = set; then
2430  echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432  ac_cv_prog_cc_stdc=no
2433ac_save_CC=$CC
2434cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440#include <stdarg.h>
2441#include <stdio.h>
2442#include <sys/types.h>
2443#include <sys/stat.h>
2444/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2445struct buf { int x; };
2446FILE * (*rcsopen) (struct buf *, struct stat *, int);
2447static char *e (p, i)
2448     char **p;
2449     int i;
2450{
2451  return p[i];
2452}
2453static char *f (char * (*g) (char **, int), char **p, ...)
2454{
2455  char *s;
2456  va_list v;
2457  va_start (v,p);
2458  s = g (p, va_arg (v,int));
2459  va_end (v);
2460  return s;
2461}
2462
2463/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2464   function prototypes and stuff, but not '\xHH' hex character constants.
2465   These don't provoke an error unfortunately, instead are silently treated
2466   as 'x'.  The following induces an error, until -std1 is added to get
2467   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2468   array size at least.  It's necessary to write '\x00'==0 to get something
2469   that's true only with -std1.  */
2470int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2471
2472int test (int i, double x);
2473struct s1 {int (*f) (int a);};
2474struct s2 {int (*f) (double a);};
2475int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2476int argc;
2477char **argv;
2478int
2479main ()
2480{
2481return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2482  ;
2483  return 0;
2484}
2485_ACEOF
2486# Don't try gcc -ansi; that turns off useful extensions and
2487# breaks some systems' header files.
2488# AIX                   -qlanglvl=ansi
2489# Ultrix and OSF/1      -std1
2490# HP-UX 10.20 and later -Ae
2491# HP-UX older versions  -Aa -D_HPUX_SOURCE
2492# SVR4                  -Xc -D__EXTENSIONS__
2493for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2494do
2495  CC="$ac_save_CC $ac_arg"
2496  rm -f conftest.$ac_objext
2497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498  (eval $ac_compile) 2>conftest.er1
2499  ac_status=$?
2500  grep -v '^ *+' conftest.er1 >conftest.err
2501  rm -f conftest.er1
2502  cat conftest.err >&5
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); } &&
2505         { ac_try='test -z "$ac_c_werror_flag"
2506                         || test ! -s conftest.err'
2507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2508  (eval $ac_try) 2>&5
2509  ac_status=$?
2510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511  (exit $ac_status); }; } &&
2512         { ac_try='test -s conftest.$ac_objext'
2513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514  (eval $ac_try) 2>&5
2515  ac_status=$?
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); }; }; then
2518  ac_cv_prog_cc_stdc=$ac_arg
2519break
2520else
2521  echo "$as_me: failed program was:" >&5
2522sed 's/^/| /' conftest.$ac_ext >&5
2523
2524fi
2525rm -f conftest.err conftest.$ac_objext
2526done
2527rm -f conftest.$ac_ext conftest.$ac_objext
2528CC=$ac_save_CC
2529
2530fi
2531
2532case "x$ac_cv_prog_cc_stdc" in
2533  x|xno)
2534    echo "$as_me:$LINENO: result: none needed" >&5
2535echo "${ECHO_T}none needed" >&6 ;;
2536  *)
2537    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2538echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2539    CC="$CC $ac_cv_prog_cc_stdc" ;;
2540esac
2541
2542# Some people use a C++ compiler to compile C.  Since we use `exit',
2543# in C++ we need to declare it.  In case someone uses the same compiler
2544# for both compiling C and C++ we need to have the C++ compiler decide
2545# the declaration of exit, since it's the most demanding environment.
2546cat >conftest.$ac_ext <<_ACEOF
2547#ifndef __cplusplus
2548  choke me
2549#endif
2550_ACEOF
2551rm -f conftest.$ac_objext
2552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2553  (eval $ac_compile) 2>conftest.er1
2554  ac_status=$?
2555  grep -v '^ *+' conftest.er1 >conftest.err
2556  rm -f conftest.er1
2557  cat conftest.err >&5
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); } &&
2560         { ac_try='test -z "$ac_c_werror_flag"
2561                         || test ! -s conftest.err'
2562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563  (eval $ac_try) 2>&5
2564  ac_status=$?
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); }; } &&
2567         { ac_try='test -s conftest.$ac_objext'
2568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569  (eval $ac_try) 2>&5
2570  ac_status=$?
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); }; }; then
2573  for ac_declaration in \
2574   '' \
2575   'extern "C" void std::exit (int) throw (); using std::exit;' \
2576   'extern "C" void std::exit (int); using std::exit;' \
2577   'extern "C" void exit (int) throw ();' \
2578   'extern "C" void exit (int);' \
2579   'void exit (int);'
2580do
2581  cat >conftest.$ac_ext <<_ACEOF
2582/* confdefs.h.  */
2583_ACEOF
2584cat confdefs.h >>conftest.$ac_ext
2585cat >>conftest.$ac_ext <<_ACEOF
2586/* end confdefs.h.  */
2587$ac_declaration
2588#include <stdlib.h>
2589int
2590main ()
2591{
2592exit (42);
2593  ;
2594  return 0;
2595}
2596_ACEOF
2597rm -f conftest.$ac_objext
2598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2599  (eval $ac_compile) 2>conftest.er1
2600  ac_status=$?
2601  grep -v '^ *+' conftest.er1 >conftest.err
2602  rm -f conftest.er1
2603  cat conftest.err >&5
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); } &&
2606         { ac_try='test -z "$ac_c_werror_flag"
2607                         || test ! -s conftest.err'
2608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609  (eval $ac_try) 2>&5
2610  ac_status=$?
2611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612  (exit $ac_status); }; } &&
2613         { ac_try='test -s conftest.$ac_objext'
2614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2615  (eval $ac_try) 2>&5
2616  ac_status=$?
2617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618  (exit $ac_status); }; }; then
2619  :
2620else
2621  echo "$as_me: failed program was:" >&5
2622sed 's/^/| /' conftest.$ac_ext >&5
2623
2624continue
2625fi
2626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2627  cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h.  */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h.  */
2633$ac_declaration
2634int
2635main ()
2636{
2637exit (42);
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644  (eval $ac_compile) 2>conftest.er1
2645  ac_status=$?
2646  grep -v '^ *+' conftest.er1 >conftest.err
2647  rm -f conftest.er1
2648  cat conftest.err >&5
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); } &&
2651         { ac_try='test -z "$ac_c_werror_flag"
2652                         || test ! -s conftest.err'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; } &&
2658         { ac_try='test -s conftest.$ac_objext'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664  break
2665else
2666  echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669fi
2670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671done
2672rm -f conftest*
2673if test -n "$ac_declaration"; then
2674  echo '#ifdef __cplusplus' >>confdefs.h
2675  echo $ac_declaration      >>confdefs.h
2676  echo '#endif'             >>confdefs.h
2677fi
2678
2679else
2680  echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
2683fi
2684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685ac_ext=c
2686ac_cpp='$CPP $CPPFLAGS'
2687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2689ac_compiler_gnu=$ac_cv_c_compiler_gnu
2690
2691if test -z "$CC" ; then
2692  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2693echo "$as_me: error: Failed to find a C compiler!" >&2;}
2694   { (exit 1); exit 1; }; }
2695fi
2696# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2697case "$CC" in
2698  cl* | */cl* | CL* | */CL* )
2699    if test "$ac_cv_prog_cc_g" = yes ; then
2700      ac_cv_prog_cc_g=no
2701      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2702echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2703    fi ;;
2704esac
2705CFLAGS="$save_cflags"
2706
2707# Check if a project specific CFLAGS variable has been set
2708if test x$COIN_PRJCT != x; then
2709  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2710  if test x$coin_tmp = xset; then
2711    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2712  fi
2713fi
2714
2715if test x"$CFLAGS" = x; then
2716
2717  coin_add_cflags=
2718  coin_opt_cflags=
2719  coin_dbg_cflags=
2720  coin_warn_cflags=
2721
2722  if test "$GCC" = "yes"; then
2723    case "$CC" in
2724      icc* | */icc*)
2725        ;;
2726      *)
2727        coin_opt_cflags="-O3 -fomit-frame-pointer"
2728        coin_add_cflags="-pipe"
2729        coin_dbg_cflags="-g"
2730        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2731        case $build in
2732          *-darwin*)
2733            ;;
2734          *)
2735            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2736            ;;
2737        esac
2738        case $enable_doscompile in
2739          mingw)
2740            CFLAGS="-mno-cygwin"
2741            cat >conftest.$ac_ext <<_ACEOF
2742/* confdefs.h.  */
2743_ACEOF
2744cat confdefs.h >>conftest.$ac_ext
2745cat >>conftest.$ac_ext <<_ACEOF
2746/* end confdefs.h.  */
2747
2748int
2749main ()
2750{
2751int i=0; i++;
2752  ;
2753  return 0;
2754}
2755_ACEOF
2756rm -f conftest.$ac_objext conftest$ac_exeext
2757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2758  (eval $ac_link) 2>conftest.er1
2759  ac_status=$?
2760  grep -v '^ *+' conftest.er1 >conftest.err
2761  rm -f conftest.er1
2762  cat conftest.err >&5
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); } &&
2765         { ac_try='test -z "$ac_c_werror_flag"
2766                         || test ! -s conftest.err'
2767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768  (eval $ac_try) 2>&5
2769  ac_status=$?
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); }; } &&
2772         { ac_try='test -s conftest$ac_exeext'
2773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774  (eval $ac_try) 2>&5
2775  ac_status=$?
2776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777  (exit $ac_status); }; }; then
2778  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2779else
2780  echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783fi
2784rm -f conftest.err conftest.$ac_objext \
2785      conftest$ac_exeext conftest.$ac_ext
2786            CFLAGS=
2787          ;;
2788        esac
2789    esac
2790  fi
2791  if test -z "$coin_opt_cflags"; then
2792    case $build in
2793      *-cygwin* | *-mingw*)
2794        case "$CC" in
2795          cl* | */cl* | CL* | */CL*)
2796            coin_opt_cflags='-MT -O2'
2797            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2798            coin_dbg_cflags='-MTd'
2799            ;;
2800          icl* | */icl* | ICL* | */ICL*)
2801            coin_opt_cflags='-MT -Ox'
2802            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2803            coin_dbg_cflags='-MTd -debug'
2804            ;;
2805        esac
2806        ;;
2807      *-linux-*)
2808        case "$CC" in
2809          icc* | */icc*)
2810            coin_opt_cflags="-O3 -ip -mp1"
2811            coin_add_cflags=""
2812            coin_dbg_cflags="-g"
2813            # Check if -i_dynamic is necessary (for new glibc library)
2814            CFLAGS=
2815            cat >conftest.$ac_ext <<_ACEOF
2816/* confdefs.h.  */
2817_ACEOF
2818cat confdefs.h >>conftest.$ac_ext
2819cat >>conftest.$ac_ext <<_ACEOF
2820/* end confdefs.h.  */
2821
2822int
2823main ()
2824{
2825int i=0; i++;
2826  ;
2827  return 0;
2828}
2829_ACEOF
2830rm -f conftest.$ac_objext conftest$ac_exeext
2831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2832  (eval $ac_link) 2>conftest.er1
2833  ac_status=$?
2834  grep -v '^ *+' conftest.er1 >conftest.err
2835  rm -f conftest.er1
2836  cat conftest.err >&5
2837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838  (exit $ac_status); } &&
2839         { ac_try='test -z "$ac_c_werror_flag"
2840                         || test ! -s conftest.err'
2841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842  (eval $ac_try) 2>&5
2843  ac_status=$?
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); }; } &&
2846         { ac_try='test -s conftest$ac_exeext'
2847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848  (eval $ac_try) 2>&5
2849  ac_status=$?
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); }; }; then
2852  :
2853else
2854  echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857coin_add_cflags="-i_dynamic $coin_add_cflags"
2858fi
2859rm -f conftest.err conftest.$ac_objext \
2860      conftest$ac_exeext conftest.$ac_ext
2861            ;;
2862          pgcc* | */pgcc*)
2863            coin_opt_cflags="-fast"
2864            coin_add_cflags="-Kieee -pc 64"
2865            coin_dbg_cflags="-g"
2866            ;;
2867        esac
2868        ;;
2869      *-ibm-*)
2870        case "$CC" in
2871          xlc* | */xlc* | mpxlc* | */mpxlc*)
2872            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2873            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2874            coin_dbg_cflags="-g"
2875          ;;
2876        esac
2877        ;;
2878      *-hp-*)
2879        coin_opt_cflags="-O"
2880        coin_add_cflags="-Ae"
2881        coin_dbg_cflags="-g"
2882        ;;
2883      *-*-solaris*)
2884        coin_opt_cflags="-xO4"
2885        coin_dbg_cflags="-g"
2886        ;;
2887      *-sgi-*)
2888        coin_opt_cflags="-O -OPT:Olimit=0"
2889        coin_dbg_cflags="-g"
2890        ;;
2891    esac
2892  fi
2893
2894  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2895    coin_dbg_cflags="-g"
2896  fi
2897
2898  if test -z "$coin_opt_cflags"; then
2899    # Try if -O option works if nothing else is set
2900    CFLAGS="-O"
2901    cat >conftest.$ac_ext <<_ACEOF
2902/* confdefs.h.  */
2903_ACEOF
2904cat confdefs.h >>conftest.$ac_ext
2905cat >>conftest.$ac_ext <<_ACEOF
2906/* end confdefs.h.  */
2907
2908int
2909main ()
2910{
2911int i=0; i++;
2912  ;
2913  return 0;
2914}
2915_ACEOF
2916rm -f conftest.$ac_objext conftest$ac_exeext
2917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2918  (eval $ac_link) 2>conftest.er1
2919  ac_status=$?
2920  grep -v '^ *+' conftest.er1 >conftest.err
2921  rm -f conftest.er1
2922  cat conftest.err >&5
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); } &&
2925         { ac_try='test -z "$ac_c_werror_flag"
2926                         || test ! -s conftest.err'
2927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928  (eval $ac_try) 2>&5
2929  ac_status=$?
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); }; } &&
2932         { ac_try='test -s conftest$ac_exeext'
2933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934  (eval $ac_try) 2>&5
2935  ac_status=$?
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); }; }; then
2938  coin_opt_cflags="-O"
2939else
2940  echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
2943fi
2944rm -f conftest.err conftest.$ac_objext \
2945      conftest$ac_exeext conftest.$ac_ext
2946  fi
2947
2948  # if PM doesn't want the warning messages, take them out
2949  if test x"$coin_skip_warn_cflags" = xyes; then
2950    coin_warn_cflags=
2951  fi
2952
2953  if test x${DBG_CFLAGS+set} != xset; then
2954    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2955  fi
2956  if test x${OPT_CFLAGS+set} != xset; then
2957    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2958  fi
2959
2960  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2961  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2962
2963  if test "$coin_debug_compile" = "true"; then
2964    CFLAGS="$DBG_CFLAGS"
2965  else
2966    CFLAGS="$OPT_CFLAGS"
2967  fi
2968else
2969  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2970  if test x${DBG_CFLAGS+set} != xset; then
2971    DBG_CFLAGS="$CFLAGS"
2972  fi
2973  if test x${OPT_CFLAGS+set} != xset; then
2974    OPT_CFLAGS="$CFLAGS"
2975  fi
2976fi
2977
2978# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2979
2980case "$CFLAGS" in
2981  *-mno-cygwin*)
2982    if test x${CPPFLAGS+set} != xset ; then
2983      CPPFLAGS="-mno-cygwin"
2984    else
2985      case "$CPPFLAGS" in
2986        *-mno-cygwin*)
2987          ;;
2988        *)
2989          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2990          ;;
2991      esac
2992    fi ;;
2993esac
2994
2995# Try if CFLAGS works
2996save_CFLAGS="$CFLAGS"
2997cat >conftest.$ac_ext <<_ACEOF
2998/* confdefs.h.  */
2999_ACEOF
3000cat confdefs.h >>conftest.$ac_ext
3001cat >>conftest.$ac_ext <<_ACEOF
3002/* end confdefs.h.  */
3003
3004int
3005main ()
3006{
3007int i=0; i++;
3008  ;
3009  return 0;
3010}
3011_ACEOF
3012rm -f conftest.$ac_objext conftest$ac_exeext
3013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3014  (eval $ac_link) 2>conftest.er1
3015  ac_status=$?
3016  grep -v '^ *+' conftest.er1 >conftest.err
3017  rm -f conftest.er1
3018  cat conftest.err >&5
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); } &&
3021         { ac_try='test -z "$ac_c_werror_flag"
3022                         || test ! -s conftest.err'
3023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024  (eval $ac_try) 2>&5
3025  ac_status=$?
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); }; } &&
3028         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3034  :
3035else
3036  echo "$as_me: failed program was:" >&5
3037sed 's/^/| /' conftest.$ac_ext >&5
3038
3039CFLAGS=
3040fi
3041rm -f conftest.err conftest.$ac_objext \
3042      conftest$ac_exeext conftest.$ac_ext
3043if test -z "$CFLAGS"; then
3044  { 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
3045echo "$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;}
3046  CFLAGS='-O'
3047  cat >conftest.$ac_ext <<_ACEOF
3048/* confdefs.h.  */
3049_ACEOF
3050cat confdefs.h >>conftest.$ac_ext
3051cat >>conftest.$ac_ext <<_ACEOF
3052/* end confdefs.h.  */
3053
3054int
3055main ()
3056{
3057int i=0; i++;
3058  ;
3059  return 0;
3060}
3061_ACEOF
3062rm -f conftest.$ac_objext conftest$ac_exeext
3063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3064  (eval $ac_link) 2>conftest.er1
3065  ac_status=$?
3066  grep -v '^ *+' conftest.er1 >conftest.err
3067  rm -f conftest.er1
3068  cat conftest.err >&5
3069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070  (exit $ac_status); } &&
3071         { ac_try='test -z "$ac_c_werror_flag"
3072                         || test ! -s conftest.err'
3073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074  (eval $ac_try) 2>&5
3075  ac_status=$?
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); }; } &&
3078         { ac_try='test -s conftest$ac_exeext'
3079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080  (eval $ac_try) 2>&5
3081  ac_status=$?
3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083  (exit $ac_status); }; }; then
3084  :
3085else
3086  echo "$as_me: failed program was:" >&5
3087sed 's/^/| /' conftest.$ac_ext >&5
3088
3089CFLAGS=
3090fi
3091rm -f conftest.err conftest.$ac_objext \
3092      conftest$ac_exeext conftest.$ac_ext
3093  if test -z "$CFLAGS"; then
3094    { 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
3095echo "$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;}
3096  fi
3097fi
3098
3099{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3100echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3101
3102
3103if test x"$MPICC" = x; then :; else
3104  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3105echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3106  CC="$MPICC"
3107fi
3108
3109# Correct ADDLIBS initialization if we are using the MS compiler
3110case "$CC" in
3111  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3112    ADDLIBS=
3113    case $build in
3114  *-mingw*)
3115    if test "${LD+set}" = set; then :; else
3116      LD=link
3117    fi
3118    ;;
3119 esac
3120 case $enable_doscompile in
3121   msvc)
3122     if test "x${LD+set}" = xset; then :; else
3123       LD=link
3124     fi
3125     ;;
3126 esac
3127
3128    ;;
3129esac
3130
3131ac_ext=c
3132ac_cpp='$CPP $CPPFLAGS'
3133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136
3137
3138
3139 #Let's try if that overcomes configuration problem with VC++ 6.0
3140
3141ac_ext=cc
3142ac_cpp='$CXXCPP $CPPFLAGS'
3143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3146
3147
3148
3149
3150
3151
3152
3153coin_has_cxx=yes
3154
3155save_cxxflags="$CXXFLAGS"
3156# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3157case $build in
3158  *-cygwin* | *-mingw*)
3159             if test "$enable_doscompile" = msvc ; then
3160               comps="icl cl"
3161             else
3162               comps="g++ cl"
3163             fi ;;
3164  *-*-solaris*)
3165             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3166  *-darwin*) comps="g++ c++ CC" ;;
3167          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3168esac
3169
3170# We delete the cached value, since the test might not have been
3171# performed with our choice of compilers earlier
3172$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3173# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3174ac_ext=cc
3175ac_cpp='$CXXCPP $CPPFLAGS'
3176ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3179if test -n "$ac_tool_prefix"; then
3180  for ac_prog in $CCC $comps
3181  do
3182    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3184echo "$as_me:$LINENO: checking for $ac_word" >&5
3185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3186if test "${ac_cv_prog_CXX+set}" = set; then
3187  echo $ECHO_N "(cached) $ECHO_C" >&6
3188else
3189  if test -n "$CXX"; then
3190  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195  IFS=$as_save_IFS
3196  test -z "$as_dir" && as_dir=.
3197  for ac_exec_ext in '' $ac_executable_extensions; do
3198  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201    break 2
3202  fi
3203done
3204done
3205
3206fi
3207fi
3208CXX=$ac_cv_prog_CXX
3209if test -n "$CXX"; then
3210  echo "$as_me:$LINENO: result: $CXX" >&5
3211echo "${ECHO_T}$CXX" >&6
3212else
3213  echo "$as_me:$LINENO: result: no" >&5
3214echo "${ECHO_T}no" >&6
3215fi
3216
3217    test -n "$CXX" && break
3218  done
3219fi
3220if test -z "$CXX"; then
3221  ac_ct_CXX=$CXX
3222  for ac_prog in $CCC $comps
3223do
3224  # Extract the first word of "$ac_prog", so it can be a program name with args.
3225set dummy $ac_prog; ac_word=$2
3226echo "$as_me:$LINENO: checking for $ac_word" >&5
3227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3229  echo $ECHO_N "(cached) $ECHO_C" >&6
3230else
3231  if test -n "$ac_ct_CXX"; then
3232  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3233else
3234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235for as_dir in $PATH
3236do
3237  IFS=$as_save_IFS
3238  test -z "$as_dir" && as_dir=.
3239  for ac_exec_ext in '' $ac_executable_extensions; do
3240  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241    ac_cv_prog_ac_ct_CXX="$ac_prog"
3242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243    break 2
3244  fi
3245done
3246done
3247
3248fi
3249fi
3250ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3251if test -n "$ac_ct_CXX"; then
3252  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3253echo "${ECHO_T}$ac_ct_CXX" >&6
3254else
3255  echo "$as_me:$LINENO: result: no" >&5
3256echo "${ECHO_T}no" >&6
3257fi
3258
3259  test -n "$ac_ct_CXX" && break
3260done
3261test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3262
3263  CXX=$ac_ct_CXX
3264fi
3265
3266
3267# Provide some information about the compiler.
3268echo "$as_me:$LINENO:" \
3269     "checking for C++ compiler version" >&5
3270ac_compiler=`set X $ac_compile; echo $2`
3271{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3272  (eval $ac_compiler --version </dev/null >&5) 2>&5
3273  ac_status=$?
3274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275  (exit $ac_status); }
3276{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3277  (eval $ac_compiler -v </dev/null >&5) 2>&5
3278  ac_status=$?
3279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280  (exit $ac_status); }
3281{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3282  (eval $ac_compiler -V </dev/null >&5) 2>&5
3283  ac_status=$?
3284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285  (exit $ac_status); }
3286
3287echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3288echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3289if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3290  echo $ECHO_N "(cached) $ECHO_C" >&6
3291else
3292  cat >conftest.$ac_ext <<_ACEOF
3293/* confdefs.h.  */
3294_ACEOF
3295cat confdefs.h >>conftest.$ac_ext
3296cat >>conftest.$ac_ext <<_ACEOF
3297/* end confdefs.h.  */
3298
3299int
3300main ()
3301{
3302#ifndef __GNUC__
3303       choke me
3304#endif
3305
3306  ;
3307  return 0;
3308}
3309_ACEOF
3310rm -f conftest.$ac_objext
3311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3312  (eval $ac_compile) 2>conftest.er1
3313  ac_status=$?
3314  grep -v '^ *+' conftest.er1 >conftest.err
3315  rm -f conftest.er1
3316  cat conftest.err >&5
3317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318  (exit $ac_status); } &&
3319         { ac_try='test -z "$ac_cxx_werror_flag"
3320                         || test ! -s conftest.err'
3321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3322  (eval $ac_try) 2>&5
3323  ac_status=$?
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); }; } &&
3326         { ac_try='test -s conftest.$ac_objext'
3327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328  (eval $ac_try) 2>&5
3329  ac_status=$?
3330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331  (exit $ac_status); }; }; then
3332  ac_compiler_gnu=yes
3333else
3334  echo "$as_me: failed program was:" >&5
3335sed 's/^/| /' conftest.$ac_ext >&5
3336
3337ac_compiler_gnu=no
3338fi
3339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3340ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3341
3342fi
3343echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3344echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3345GXX=`test $ac_compiler_gnu = yes && echo yes`
3346ac_test_CXXFLAGS=${CXXFLAGS+set}
3347ac_save_CXXFLAGS=$CXXFLAGS
3348CXXFLAGS="-g"
3349echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3350echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3351if test "${ac_cv_prog_cxx_g+set}" = set; then
3352  echo $ECHO_N "(cached) $ECHO_C" >&6
3353else
3354  cat >conftest.$ac_ext <<_ACEOF
3355/* confdefs.h.  */
3356_ACEOF
3357cat confdefs.h >>conftest.$ac_ext
3358cat >>conftest.$ac_ext <<_ACEOF
3359/* end confdefs.h.  */
3360
3361int
3362main ()
3363{
3364
3365  ;
3366  return 0;
3367}
3368_ACEOF
3369rm -f conftest.$ac_objext
3370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3371  (eval $ac_compile) 2>conftest.er1
3372  ac_status=$?
3373  grep -v '^ *+' conftest.er1 >conftest.err
3374  rm -f conftest.er1
3375  cat conftest.err >&5
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); } &&
3378         { ac_try='test -z "$ac_cxx_werror_flag"
3379                         || test ! -s conftest.err'
3380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381  (eval $ac_try) 2>&5
3382  ac_status=$?
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); }; } &&
3385         { ac_try='test -s conftest.$ac_objext'
3386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387  (eval $ac_try) 2>&5
3388  ac_status=$?
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); }; }; then
3391  ac_cv_prog_cxx_g=yes
3392else
3393  echo "$as_me: failed program was:" >&5
3394sed 's/^/| /' conftest.$ac_ext >&5
3395
3396ac_cv_prog_cxx_g=no
3397fi
3398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3399fi
3400echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3401echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3402if test "$ac_test_CXXFLAGS" = set; then
3403  CXXFLAGS=$ac_save_CXXFLAGS
3404elif test $ac_cv_prog_cxx_g = yes; then
3405  if test "$GXX" = yes; then
3406    CXXFLAGS="-g -O2"
3407  else
3408    CXXFLAGS="-g"
3409  fi
3410else
3411  if test "$GXX" = yes; then
3412    CXXFLAGS="-O2"
3413  else
3414    CXXFLAGS=
3415  fi
3416fi
3417for ac_declaration in \
3418   '' \
3419   'extern "C" void std::exit (int) throw (); using std::exit;' \
3420   'extern "C" void std::exit (int); using std::exit;' \
3421   'extern "C" void exit (int) throw ();' \
3422   'extern "C" void exit (int);' \
3423   'void exit (int);'
3424do
3425  cat >conftest.$ac_ext <<_ACEOF
3426/* confdefs.h.  */
3427_ACEOF
3428cat confdefs.h >>conftest.$ac_ext
3429cat >>conftest.$ac_ext <<_ACEOF
3430/* end confdefs.h.  */
3431$ac_declaration
3432#include <stdlib.h>
3433int
3434main ()
3435{
3436exit (42);
3437  ;
3438  return 0;
3439}
3440_ACEOF
3441rm -f conftest.$ac_objext
3442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3443  (eval $ac_compile) 2>conftest.er1
3444  ac_status=$?
3445  grep -v '^ *+' conftest.er1 >conftest.err
3446  rm -f conftest.er1
3447  cat conftest.err >&5
3448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449  (exit $ac_status); } &&
3450         { ac_try='test -z "$ac_cxx_werror_flag"
3451                         || test ! -s conftest.err'
3452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453  (eval $ac_try) 2>&5
3454  ac_status=$?
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); }; } &&
3457         { ac_try='test -s conftest.$ac_objext'
3458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459  (eval $ac_try) 2>&5
3460  ac_status=$?
3461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462  (exit $ac_status); }; }; then
3463  :
3464else
3465  echo "$as_me: failed program was:" >&5
3466sed 's/^/| /' conftest.$ac_ext >&5
3467
3468continue
3469fi
3470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3471  cat >conftest.$ac_ext <<_ACEOF
3472/* confdefs.h.  */
3473_ACEOF
3474cat confdefs.h >>conftest.$ac_ext
3475cat >>conftest.$ac_ext <<_ACEOF
3476/* end confdefs.h.  */
3477$ac_declaration
3478int
3479main ()
3480{
3481exit (42);
3482  ;
3483  return 0;
3484}
3485_ACEOF
3486rm -f conftest.$ac_objext
3487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3488  (eval $ac_compile) 2>conftest.er1
3489  ac_status=$?
3490  grep -v '^ *+' conftest.er1 >conftest.err
3491  rm -f conftest.er1
3492  cat conftest.err >&5
3493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494  (exit $ac_status); } &&
3495         { ac_try='test -z "$ac_cxx_werror_flag"
3496                         || test ! -s conftest.err'
3497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498  (eval $ac_try) 2>&5
3499  ac_status=$?
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); }; } &&
3502         { ac_try='test -s conftest.$ac_objext'
3503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504  (eval $ac_try) 2>&5
3505  ac_status=$?
3506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507  (exit $ac_status); }; }; then
3508  break
3509else
3510  echo "$as_me: failed program was:" >&5
3511sed 's/^/| /' conftest.$ac_ext >&5
3512
3513fi
3514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3515done
3516rm -f conftest*
3517if test -n "$ac_declaration"; then
3518  echo '#ifdef __cplusplus' >>confdefs.h
3519  echo $ac_declaration      >>confdefs.h
3520  echo '#endif'             >>confdefs.h
3521fi
3522
3523ac_ext=cc
3524ac_cpp='$CXXCPP $CPPFLAGS'
3525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3528
3529
3530#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3531#thus, we test here whether $CXX is actually working
3532ac_ext=cc
3533ac_cpp='$CXXCPP $CPPFLAGS'
3534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3537
3538echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3539echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3540cat >conftest.$ac_ext <<_ACEOF
3541/* confdefs.h.  */
3542_ACEOF
3543cat confdefs.h >>conftest.$ac_ext
3544cat >>conftest.$ac_ext <<_ACEOF
3545/* end confdefs.h.  */
3546
3547int
3548main ()
3549{
3550int i=0;
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555rm -f conftest.$ac_objext
3556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557  (eval $ac_compile) 2>conftest.er1
3558  ac_status=$?
3559  grep -v '^ *+' conftest.er1 >conftest.err
3560  rm -f conftest.er1
3561  cat conftest.err >&5
3562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563  (exit $ac_status); } &&
3564         { ac_try='test -z "$ac_cxx_werror_flag"
3565                         || test ! -s conftest.err'
3566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567  (eval $ac_try) 2>&5
3568  ac_status=$?
3569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570  (exit $ac_status); }; } &&
3571         { ac_try='test -s conftest.$ac_objext'
3572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573  (eval $ac_try) 2>&5
3574  ac_status=$?
3575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576  (exit $ac_status); }; }; then
3577  echo "$as_me:$LINENO: result: yes" >&5
3578echo "${ECHO_T}yes" >&6
3579else
3580  echo "$as_me: failed program was:" >&5
3581sed 's/^/| /' conftest.$ac_ext >&5
3582
3583echo "$as_me:$LINENO: result: no" >&5
3584echo "${ECHO_T}no" >&6
3585   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3586echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3587   { (exit 1); exit 1; }; }
3588
3589fi
3590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3591ac_ext=cc
3592ac_cpp='$CXXCPP $CPPFLAGS'
3593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3596
3597
3598# It seems that we need to cleanup something here for the Windows
3599case "$CXX" in
3600  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3601    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3602    mv confdefs.hh confdefs.h
3603    ;;
3604esac
3605
3606# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3607case "$CXX" in
3608  cl* | */cl* | CL* | */CL* )
3609    if test "$ac_cv_prog_cxx_g" = yes ; then
3610      ac_cv_prog_cxx_g=no
3611      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3612echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3613    fi ;;
3614esac
3615CXXFLAGS="$save_cxxflags"
3616
3617# Check if a project specific CXXFLAGS variable has been set
3618if test x$COIN_PRJCT != x; then
3619  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3620  if test x$coin_tmp = xset; then
3621    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3622  fi
3623fi
3624
3625if test x"$CXXFLAGS" = x; then
3626
3627# ToDo decide whether we want -DNDEBUG for optimization
3628  coin_add_cxxflags=
3629  coin_opt_cxxflags=
3630  coin_dbg_cxxflags=
3631  coin_warn_cxxflags=
3632
3633  if test "$GXX" = "yes"; then
3634    case "$CXX" in
3635      icpc* | */icpc*)
3636        ;;
3637      *)
3638# ToDo decide about unroll-loops
3639        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3640        coin_add_cxxflags="-pipe"
3641        coin_dbg_cxxflags="-g"
3642        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3643        case $build in
3644          *-darwin*)
3645            ;;
3646          *)
3647            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3648            ;;
3649        esac
3650
3651        case $enable_doscompile in
3652          mingw)
3653            CXXFLAGS="-mno-cygwin"
3654            cat >conftest.$ac_ext <<_ACEOF
3655/* confdefs.h.  */
3656_ACEOF
3657cat confdefs.h >>conftest.$ac_ext
3658cat >>conftest.$ac_ext <<_ACEOF
3659/* end confdefs.h.  */
3660
3661int
3662main ()
3663{
3664int i=0; i++;
3665  ;
3666  return 0;
3667}
3668_ACEOF
3669rm -f conftest.$ac_objext conftest$ac_exeext
3670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3671  (eval $ac_link) 2>conftest.er1
3672  ac_status=$?
3673  grep -v '^ *+' conftest.er1 >conftest.err
3674  rm -f conftest.er1
3675  cat conftest.err >&5
3676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677  (exit $ac_status); } &&
3678         { ac_try='test -z "$ac_cxx_werror_flag"
3679                         || test ! -s conftest.err'
3680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681  (eval $ac_try) 2>&5
3682  ac_status=$?
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); }; } &&
3685         { ac_try='test -s conftest$ac_exeext'
3686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687  (eval $ac_try) 2>&5
3688  ac_status=$?
3689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690  (exit $ac_status); }; }; then
3691  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3692else
3693  echo "$as_me: failed program was:" >&5
3694sed 's/^/| /' conftest.$ac_ext >&5
3695
3696fi
3697rm -f conftest.err conftest.$ac_objext \
3698      conftest$ac_exeext conftest.$ac_ext
3699            CXXFLAGS=
3700          ;;
3701        esac
3702    esac
3703  fi
3704
3705# Note that we do not need to cover GCC in the following tests.
3706
3707  if test -z "$coin_opt_cxxflags"; then
3708    case $build in
3709      *-cygwin* | *-mingw*)
3710        case "$CXX" in
3711          cl* | */cl* | CL* | */CL*)
3712            # The MT and MTd options are mutually exclusive
3713            coin_opt_cxxflags='-MT -O2'
3714            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3715            coin_dbg_cxxflags='-MTd'
3716            ;;
3717          icl* | */icl* | ICL* | */ICL*)
3718            # The MT and MTd options are mutually exclusive
3719            coin_opt_cxxflags='-MT -Ox'
3720            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3721            coin_dbg_cxxflags='-MTd -debug'
3722            ;;
3723        esac
3724        ;;
3725      *-linux-*)
3726        case "$CXX" in
3727          icpc* | */icpc*)
3728            coin_opt_cxxflags="-O3 -ip -mp1"
3729            coin_add_cxxflags=""
3730            coin_dbg_cxxflags="-g"
3731            # Check if -i_dynamic is necessary (for new glibc library)
3732            CXXFLAGS=
3733            cat >conftest.$ac_ext <<_ACEOF
3734/* confdefs.h.  */
3735_ACEOF
3736cat confdefs.h >>conftest.$ac_ext
3737cat >>conftest.$ac_ext <<_ACEOF
3738/* end confdefs.h.  */
3739
3740int
3741main ()
3742{
3743int i=0; i++;
3744  ;
3745  return 0;
3746}
3747_ACEOF
3748rm -f conftest.$ac_objext conftest$ac_exeext
3749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3750  (eval $ac_link) 2>conftest.er1
3751  ac_status=$?
3752  grep -v '^ *+' conftest.er1 >conftest.err
3753  rm -f conftest.er1
3754  cat conftest.err >&5
3755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756  (exit $ac_status); } &&
3757         { ac_try='test -z "$ac_cxx_werror_flag"
3758                         || test ! -s conftest.err'
3759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760  (eval $ac_try) 2>&5
3761  ac_status=$?
3762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763  (exit $ac_status); }; } &&
3764         { ac_try='test -s conftest$ac_exeext'
3765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3766  (eval $ac_try) 2>&5
3767  ac_status=$?
3768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769  (exit $ac_status); }; }; then
3770  :
3771else
3772  echo "$as_me: failed program was:" >&5
3773sed 's/^/| /' conftest.$ac_ext >&5
3774
3775coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3776fi
3777rm -f conftest.err conftest.$ac_objext \
3778      conftest$ac_exeext conftest.$ac_ext
3779            ;;
3780          pgCC* | */pgCC*)
3781            coin_opt_cxxflags="-fast"
3782            coin_add_cxxflags="-Kieee -pc 64"
3783            coin_dbg_cxxflags="-g"
3784            ;;
3785        esac
3786        ;;
3787      *-ibm-*)
3788        case "$CXX" in
3789          xlC* | */xlC* | mpxlC* | */mpxlC*)
3790            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3791            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3792            coin_dbg_cxxflags="-g"
3793            ;;
3794        esac
3795        ;;
3796      *-hp-*)
3797        case "$CXX" in
3798          aCC* | */aCC* )
3799            coin_opt_cxxflags="-O"
3800            coin_add_cxxflags="-AA"
3801            coin_dbg_cxxflags="-g"
3802            ;;
3803        esac
3804        ;;
3805      *-*-solaris*)
3806          coin_opt_cxxflags="-O4"
3807          coin_dbg_cxxflags="-g"
3808        ;;
3809    esac
3810  fi
3811
3812# Generic flag settings. If these don't work, add a case above.
3813
3814  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3815    coin_dbg_cxxflags="-g"
3816  fi
3817
3818  if test -z "$coin_opt_cxxflags"; then
3819    # Try if -O option works if nothing else is set
3820    CXXFLAGS=-O
3821    cat >conftest.$ac_ext <<_ACEOF
3822/* confdefs.h.  */
3823_ACEOF
3824cat confdefs.h >>conftest.$ac_ext
3825cat >>conftest.$ac_ext <<_ACEOF
3826/* end confdefs.h.  */
3827
3828int
3829main ()
3830{
3831int i=0; i++;
3832  ;
3833  return 0;
3834}
3835_ACEOF
3836rm -f conftest.$ac_objext conftest$ac_exeext
3837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3838  (eval $ac_link) 2>conftest.er1
3839  ac_status=$?
3840  grep -v '^ *+' conftest.er1 >conftest.err
3841  rm -f conftest.er1
3842  cat conftest.err >&5
3843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844  (exit $ac_status); } &&
3845         { ac_try='test -z "$ac_cxx_werror_flag"
3846                         || test ! -s conftest.err'
3847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848  (eval $ac_try) 2>&5
3849  ac_status=$?
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); }; } &&
3852         { ac_try='test -s conftest$ac_exeext'
3853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854  (eval $ac_try) 2>&5
3855  ac_status=$?
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); }; }; then
3858  coin_opt_cxxflags="-O"
3859else
3860  echo "$as_me: failed program was:" >&5
3861sed 's/^/| /' conftest.$ac_ext >&5
3862
3863fi
3864rm -f conftest.err conftest.$ac_objext \
3865      conftest$ac_exeext conftest.$ac_ext
3866  fi
3867
3868  # if PM doesn't want the warning messages, take them out
3869  if test x"$coin_skip_warn_cxxflags" = xyes; then
3870    coin_warn_cxxflags=
3871  fi
3872
3873# Do final setup of flags based on values determined above.
3874
3875  if test x${DBG_CXXFLAGS+set} != xset; then
3876    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3877  fi
3878  if test x${OPT_CXXFLAGS+set} != xset; then
3879    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3880  fi
3881
3882  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3883  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3884
3885  if test "$coin_debug_compile" = "true"; then
3886    CXXFLAGS="$DBG_CXXFLAGS"
3887  else
3888    CXXFLAGS="$OPT_CXXFLAGS"
3889  fi
3890
3891# Handle the case where CXXFLAGS was set externally.
3892else
3893  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3894  if test x${DBG_CXXFLAGS+set} != xset; then
3895    DBG_CXXFLAGS="$CXXFLAGS"
3896  fi
3897  if test x${OPT_CXXFLAGS+set} != xset; then
3898    OPT_CXXFLAGS="$CXXFLAGS"
3899  fi
3900fi
3901
3902# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3903
3904case "$CXXFLAGS" in
3905  *-mno-cygwin*)
3906    if test x${CPPFLAGS+set} != xset ; then
3907      CPPFLAGS="-mno-cygwin"
3908    else
3909      case "$CPPFLAGS" in
3910        *-mno-cygwin*)
3911          ;;
3912        *)
3913          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3914          ;;
3915      esac
3916    fi ;;
3917esac
3918
3919# Try if CXXFLAGS works
3920save_CXXFLAGS="$CXXFLAGS"
3921cat >conftest.$ac_ext <<_ACEOF
3922/* confdefs.h.  */
3923_ACEOF
3924cat confdefs.h >>conftest.$ac_ext
3925cat >>conftest.$ac_ext <<_ACEOF
3926/* end confdefs.h.  */
3927
3928int
3929main ()
3930{
3931int i=0; i++;
3932  ;
3933  return 0;
3934}
3935_ACEOF
3936rm -f conftest.$ac_objext conftest$ac_exeext
3937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3938  (eval $ac_link) 2>conftest.er1
3939  ac_status=$?
3940  grep -v '^ *+' conftest.er1 >conftest.err
3941  rm -f conftest.er1
3942  cat conftest.err >&5
3943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944  (exit $ac_status); } &&
3945         { ac_try='test -z "$ac_cxx_werror_flag"
3946                         || test ! -s conftest.err'
3947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948  (eval $ac_try) 2>&5
3949  ac_status=$?
3950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951  (exit $ac_status); }; } &&
3952         { ac_try='test -s conftest$ac_exeext'
3953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3954  (eval $ac_try) 2>&5
3955  ac_status=$?
3956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957  (exit $ac_status); }; }; then
3958  :
3959else
3960  echo "$as_me: failed program was:" >&5
3961sed 's/^/| /' conftest.$ac_ext >&5
3962
3963CXXFLAGS=
3964fi
3965rm -f conftest.err conftest.$ac_objext \
3966      conftest$ac_exeext conftest.$ac_ext
3967if test -z "$CXXFLAGS"; then
3968  { 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
3969echo "$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;}
3970  CXXFLAGS='-O'
3971  cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h.  */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h.  */
3977
3978int
3979main ()
3980{
3981int i=0; i++;
3982  ;
3983  return 0;
3984}
3985_ACEOF
3986rm -f conftest.$ac_objext conftest$ac_exeext
3987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3988  (eval $ac_link) 2>conftest.er1
3989  ac_status=$?
3990  grep -v '^ *+' conftest.er1 >conftest.err
3991  rm -f conftest.er1
3992  cat conftest.err >&5
3993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994  (exit $ac_status); } &&
3995         { ac_try='test -z "$ac_cxx_werror_flag"
3996                         || test ! -s conftest.err'
3997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998  (eval $ac_try) 2>&5
3999  ac_status=$?
4000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001  (exit $ac_status); }; } &&
4002         { ac_try='test -s conftest$ac_exeext'
4003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4004  (eval $ac_try) 2>&5
4005  ac_status=$?
4006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007  (exit $ac_status); }; }; then
4008  :
4009else
4010  echo "$as_me: failed program was:" >&5
4011sed 's/^/| /' conftest.$ac_ext >&5
4012
4013CXXFLAGS=
4014fi
4015rm -f conftest.err conftest.$ac_objext \
4016      conftest$ac_exeext conftest.$ac_ext
4017  if test -z "$CXXFLAGS"; then
4018    { 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
4019echo "$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;}
4020  fi
4021fi
4022
4023{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4024echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4025
4026
4027if test x"$MPICXX" = x; then :; else
4028  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4029echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4030  CXX="$MPICXX"
4031fi
4032
4033case "$CXX" in
4034  cl* | */cl* | CL* | */CL* )
4035    case $build in
4036  *-mingw*)
4037    if test "${LD+set}" = set; then :; else
4038      LD=link
4039    fi
4040    ;;
4041 esac
4042 case $enable_doscompile in
4043   msvc)
4044     if test "x${LD+set}" = xset; then :; else
4045       LD=link
4046     fi
4047     ;;
4048 esac
4049
4050    ;;
4051esac
4052
4053ac_ext=c
4054ac_cpp='$CPP $CPPFLAGS'
4055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057ac_compiler_gnu=$ac_cv_c_compiler_gnu
4058
4059
4060
4061# Initialize automake and libtool
4062{
4063
4064
4065
4066# START
4067
4068# Test if force_shared has been set
4069if test "x" = xforce_shared; then
4070  if test x$enable_shared = xno; then
4071    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4072echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4073   { (exit 1); exit 1; }; }
4074  fi
4075  enable_shared=yes;
4076else
4077  # On Cygwin and AIX, building DLLs doesn't work
4078  case $build in
4079    *-cygwin*)
4080      coin_disable_shared=yes
4081      platform=Cygwin
4082    ;;
4083    *-aix*)
4084      coin_disable_shared=yes
4085      platform=AIX
4086    ;;
4087    *-mingw*)
4088      coin_disable_shared=yes
4089      platform="Msys"
4090#      case "$CXX" in
4091#        cl*)
4092#          coin_disable_shared=yes
4093#          platform="Msys with cl"
4094#      ;;
4095#      esac
4096    ;;
4097  esac
4098fi
4099if test x"$coin_disable_shared" = xyes; then
4100  if test x"$enable_shared" = xyes; then
4101    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4102echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4103  fi
4104  enable_shared=no
4105fi
4106# By default, we only want the shared objects to be compiled
4107# Check whether --enable-static or --disable-static was given.
4108if test "${enable_static+set}" = set; then
4109  enableval="$enable_static"
4110  p=${PACKAGE-default}
4111    case $enableval in
4112    yes) enable_static=yes ;;
4113    no) enable_static=no ;;
4114    *)
4115     enable_static=no
4116      # Look at the argument we got.  We use all the common list separators.
4117      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4118      for pkg in $enableval; do
4119        IFS="$lt_save_ifs"
4120        if test "X$pkg" = "X$p"; then
4121          enable_static=yes
4122        fi
4123      done
4124      IFS="$lt_save_ifs"
4125      ;;
4126    esac
4127else
4128  enable_static=no
4129fi;
4130
4131
4132
4133
4134# Initialize automake
4135echo "$as_me:$LINENO: checking for egrep" >&5
4136echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4137if test "${ac_cv_prog_egrep+set}" = set; then
4138  echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4141    then ac_cv_prog_egrep='grep -E'
4142    else ac_cv_prog_egrep='egrep'
4143    fi
4144fi
4145echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4146echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4147 EGREP=$ac_cv_prog_egrep
4148
4149
4150am__api_version="1.9"
4151# Find a good install program.  We prefer a C program (faster),
4152# so one script is as good as another.  But avoid the broken or
4153# incompatible versions:
4154# SysV /etc/install, /usr/sbin/install
4155# SunOS /usr/etc/install
4156# IRIX /sbin/install
4157# AIX /bin/install
4158# AmigaOS /C/install, which installs bootblocks on floppy discs
4159# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4160# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4161# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4162# OS/2's system install, which has a completely different semantic
4163# ./install, which can be erroneously created by make from ./install.sh.
4164echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4165echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4166if test -z "$INSTALL"; then
4167if test "${ac_cv_path_install+set}" = set; then
4168  echo $ECHO_N "(cached) $ECHO_C" >&6
4169else
4170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171for as_dir in $PATH
4172do
4173  IFS=$as_save_IFS
4174  test -z "$as_dir" && as_dir=.
4175  # Account for people who put trailing slashes in PATH elements.
4176case $as_dir/ in
4177  ./ | .// | /cC/* | \
4178  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4179  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4180  /usr/ucb/* ) ;;
4181  *)
4182    # OSF1 and SCO ODT 3.0 have their own names for install.
4183    # Don't use installbsd from OSF since it installs stuff as root
4184    # by default.
4185    for ac_prog in ginstall scoinst install; do
4186      for ac_exec_ext in '' $ac_executable_extensions; do
4187        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4188          if test $ac_prog = install &&
4189            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4190            # AIX install.  It has an incompatible calling convention.
4191            :
4192          elif test $ac_prog = install &&
4193            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4194            # program-specific install script used by HP pwplus--don't use.
4195            :
4196          else
4197            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4198            break 3
4199          fi
4200        fi
4201      done
4202    done
4203    ;;
4204esac
4205done
4206
4207
4208fi
4209  if test "${ac_cv_path_install+set}" = set; then
4210    INSTALL=$ac_cv_path_install
4211  else
4212    # As a last resort, use the slow shell script.  We don't cache a
4213    # path for INSTALL within a source directory, because that will
4214    # break other packages using the cache if that directory is
4215    # removed, or if the path is relative.
4216    INSTALL=$ac_install_sh
4217  fi
4218fi
4219echo "$as_me:$LINENO: result: $INSTALL" >&5
4220echo "${ECHO_T}$INSTALL" >&6
4221
4222# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4223# It thinks the first close brace ends the variable substitution.
4224test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4225
4226test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4227
4228test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4229
4230echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4231echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4232# Just in case
4233sleep 1
4234echo timestamp > conftest.file
4235# Do `set' in a subshell so we don't clobber the current shell's
4236# arguments.  Must try -L first in case configure is actually a
4237# symlink; some systems play weird games with the mod time of symlinks
4238# (eg FreeBSD returns the mod time of the symlink's containing
4239# directory).
4240if (
4241   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4242   if test "$*" = "X"; then
4243      # -L didn't work.
4244      set X `ls -t $srcdir/configure conftest.file`
4245   fi
4246   rm -f conftest.file
4247   if test "$*" != "X $srcdir/configure conftest.file" \
4248      && test "$*" != "X conftest.file $srcdir/configure"; then
4249
4250      # If neither matched, then we have a broken ls.  This can happen
4251      # if, for instance, CONFIG_SHELL is bash and it inherits a
4252      # broken ls alias from the environment.  This has actually
4253      # happened.  Such a system could not be considered "sane".
4254      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4255alias in your environment" >&5
4256echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4257alias in your environment" >&2;}
4258   { (exit 1); exit 1; }; }
4259   fi
4260
4261   test "$2" = conftest.file
4262   )
4263then
4264   # Ok.
4265   :
4266else
4267   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4268Check your system clock" >&5
4269echo "$as_me: error: newly created file is older than distributed files!
4270Check your system clock" >&2;}
4271   { (exit 1); exit 1; }; }
4272fi
4273echo "$as_me:$LINENO: result: yes" >&5
4274echo "${ECHO_T}yes" >&6
4275test "$program_prefix" != NONE &&
4276  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4277# Use a double $ so make ignores it.
4278test "$program_suffix" != NONE &&
4279  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4280# Double any \ or $.  echo might interpret backslashes.
4281# By default was `s,x,x', remove it if useless.
4282cat <<\_ACEOF >conftest.sed
4283s/[\\$]/&&/g;s/;s,x,x,$//
4284_ACEOF
4285program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4286rm conftest.sed
4287
4288# expand $ac_aux_dir to an absolute path
4289am_aux_dir=`cd $ac_aux_dir && pwd`
4290
4291test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4292# Use eval to expand $SHELL
4293if eval "$MISSING --run true"; then
4294  am_missing_run="$MISSING --run "
4295else
4296  am_missing_run=
4297  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4298echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4299fi
4300
4301if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4302  # We used to keeping the `.' as first argument, in order to
4303  # allow $(mkdir_p) to be used without argument.  As in
4304  #   $(mkdir_p) $(somedir)
4305  # where $(somedir) is conditionally defined.  However this is wrong
4306  # for two reasons:
4307  #  1. if the package is installed by a user who cannot write `.'
4308  #     make install will fail,
4309  #  2. the above comment should most certainly read
4310  #     $(mkdir_p) $(DESTDIR)$(somedir)
4311  #     so it does not work when $(somedir) is undefined and
4312  #     $(DESTDIR) is not.
4313  #  To support the latter case, we have to write
4314  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4315  #  so the `.' trick is pointless.
4316  mkdir_p='mkdir -p --'
4317else
4318  # On NextStep and OpenStep, the `mkdir' command does not
4319  # recognize any option.  It will interpret all options as
4320  # directories to create, and then abort because `.' already
4321  # exists.
4322  for d in ./-p ./--version;
4323  do
4324    test -d $d && rmdir $d
4325  done
4326  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4327  if test -f "$ac_aux_dir/mkinstalldirs"; then
4328    mkdir_p='$(mkinstalldirs)'
4329  else
4330    mkdir_p='$(install_sh) -d'
4331  fi
4332fi
4333
4334for ac_prog in gawk mawk nawk awk
4335do
4336  # Extract the first word of "$ac_prog", so it can be a program name with args.
4337set dummy $ac_prog; ac_word=$2
4338echo "$as_me:$LINENO: checking for $ac_word" >&5
4339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4340if test "${ac_cv_prog_AWK+set}" = set; then
4341  echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
4343  if test -n "$AWK"; then
4344  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4345else
4346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347for as_dir in $PATH
4348do
4349  IFS=$as_save_IFS
4350  test -z "$as_dir" && as_dir=.
4351  for ac_exec_ext in '' $ac_executable_extensions; do
4352  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4353    ac_cv_prog_AWK="$ac_prog"
4354    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355    break 2
4356  fi
4357done
4358done
4359
4360fi
4361fi
4362AWK=$ac_cv_prog_AWK
4363if test -n "$AWK"; then
4364  echo "$as_me:$LINENO: result: $AWK" >&5
4365echo "${ECHO_T}$AWK" >&6
4366else
4367  echo "$as_me:$LINENO: result: no" >&5
4368echo "${ECHO_T}no" >&6
4369fi
4370
4371  test -n "$AWK" && break
4372done
4373
4374echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4375echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4376set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4377if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4378  echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380  cat >conftest.make <<\_ACEOF
4381all:
4382        @echo 'ac_maketemp="$(MAKE)"'
4383_ACEOF
4384# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4385eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4386if test -n "$ac_maketemp"; then
4387  eval ac_cv_prog_make_${ac_make}_set=yes
4388else
4389  eval ac_cv_prog_make_${ac_make}_set=no
4390fi
4391rm -f conftest.make
4392fi
4393if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4394  echo "$as_me:$LINENO: result: yes" >&5
4395echo "${ECHO_T}yes" >&6
4396  SET_MAKE=
4397else
4398  echo "$as_me:$LINENO: result: no" >&5
4399echo "${ECHO_T}no" >&6
4400  SET_MAKE="MAKE=${MAKE-make}"
4401fi
4402
4403rm -rf .tst 2>/dev/null
4404mkdir .tst 2>/dev/null
4405if test -d .tst; then
4406  am__leading_dot=.
4407else
4408  am__leading_dot=_
4409fi
4410rmdir .tst 2>/dev/null
4411
4412DEPDIR="${am__leading_dot}deps"
4413
4414          ac_config_commands="$ac_config_commands depfiles"
4415
4416
4417am_make=${MAKE-make}
4418cat > confinc << 'END'
4419am__doit:
4420        @echo done
4421.PHONY: am__doit
4422END
4423# If we don't find an include directive, just comment out the code.
4424echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4425echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4426am__include="#"
4427am__quote=
4428_am_result=none
4429# First try GNU make style include.
4430echo "include confinc" > confmf
4431# We grep out `Entering directory' and `Leaving directory'
4432# messages which can occur if `w' ends up in MAKEFLAGS.
4433# In particular we don't look at `^make:' because GNU make might
4434# be invoked under some other name (usually "gmake"), in which
4435# case it prints its new name instead of `make'.
4436if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4437   am__include=include
4438   am__quote=
4439   _am_result=GNU
4440fi
4441# Now try BSD make style include.
4442if test "$am__include" = "#"; then
4443   echo '.include "confinc"' > confmf
4444   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4445      am__include=.include
4446      am__quote="\""
4447      _am_result=BSD
4448   fi
4449fi
4450
4451
4452echo "$as_me:$LINENO: result: $_am_result" >&5
4453echo "${ECHO_T}$_am_result" >&6
4454rm -f confinc confmf
4455
4456# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4457if test "${enable_dependency_tracking+set}" = set; then
4458  enableval="$enable_dependency_tracking"
4459
4460fi;
4461if test "x$enable_dependency_tracking" != xno; then
4462  am_depcomp="$ac_aux_dir/depcomp"
4463  AMDEPBACKSLASH='\'
4464fi
4465
4466
4467if test "x$enable_dependency_tracking" != xno; then
4468  AMDEP_TRUE=
4469  AMDEP_FALSE='#'
4470else
4471  AMDEP_TRUE='#'
4472  AMDEP_FALSE=
4473fi
4474
4475
4476
4477
4478
4479# AC_MSG_NOTICE([Beginning automake initialisation.])
4480# Stuff for automake
4481# test to see if srcdir already configured
4482if test "`cd $srcdir && pwd`" != "`pwd`" &&
4483   test -f $srcdir/config.status; then
4484  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4485echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4486   { (exit 1); exit 1; }; }
4487fi
4488
4489# test whether we have cygpath
4490if test -z "$CYGPATH_W"; then
4491  if (cygpath --version) >/dev/null 2>/dev/null; then
4492    CYGPATH_W='cygpath -w'
4493  else
4494    CYGPATH_W=echo
4495  fi
4496fi
4497
4498
4499# Define the identity of the package.
4500 PACKAGE='coinmp'
4501 VERSION='1.3'
4502
4503
4504cat >>confdefs.h <<_ACEOF
4505#define PACKAGE "$PACKAGE"
4506_ACEOF
4507
4508
4509cat >>confdefs.h <<_ACEOF
4510#define VERSION "$VERSION"
4511_ACEOF
4512
4513# Some tools Automake needs.
4514
4515ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4516
4517
4518AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4519
4520
4521AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4522
4523
4524AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4525
4526
4527MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4528
4529install_sh=${install_sh-"$am_aux_dir/install-sh"}
4530
4531# Installed binaries are usually stripped using `strip' when the user
4532# run `make install-strip'.  However `strip' might not be the right
4533# tool to use in cross-compilation environments, therefore Automake
4534# will honor the `STRIP' environment variable to overrule this program.
4535if test "$cross_compiling" != no; then
4536  if test -n "$ac_tool_prefix"; then
4537  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4538set dummy ${ac_tool_prefix}strip; ac_word=$2
4539echo "$as_me:$LINENO: checking for $ac_word" >&5
4540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541if test "${ac_cv_prog_STRIP+set}" = set; then
4542  echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
4544  if test -n "$STRIP"; then
4545  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4546else
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550  IFS=$as_save_IFS
4551  test -z "$as_dir" && as_dir=.
4552  for ac_exec_ext in '' $ac_executable_extensions; do
4553  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4554    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556    break 2
4557  fi
4558done
4559done
4560
4561fi
4562fi
4563STRIP=$ac_cv_prog_STRIP
4564if test -n "$STRIP"; then
4565  echo "$as_me:$LINENO: result: $STRIP" >&5
4566echo "${ECHO_T}$STRIP" >&6
4567else
4568  echo "$as_me:$LINENO: result: no" >&5
4569echo "${ECHO_T}no" >&6
4570fi
4571
4572fi
4573if test -z "$ac_cv_prog_STRIP"; then
4574  ac_ct_STRIP=$STRIP
4575  # Extract the first word of "strip", so it can be a program name with args.
4576set dummy strip; ac_word=$2
4577echo "$as_me:$LINENO: checking for $ac_word" >&5
4578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4579if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4580  echo $ECHO_N "(cached) $ECHO_C" >&6
4581else
4582  if test -n "$ac_ct_STRIP"; then
4583  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4584else
4585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586for as_dir in $PATH
4587do
4588  IFS=$as_save_IFS
4589  test -z "$as_dir" && as_dir=.
4590  for ac_exec_ext in '' $ac_executable_extensions; do
4591  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4592    ac_cv_prog_ac_ct_STRIP="strip"
4593    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4594    break 2
4595  fi
4596done
4597done
4598
4599  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4600fi
4601fi
4602ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4603if test -n "$ac_ct_STRIP"; then
4604  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4605echo "${ECHO_T}$ac_ct_STRIP" >&6
4606else
4607  echo "$as_me:$LINENO: result: no" >&5
4608echo "${ECHO_T}no" >&6
4609fi
4610
4611  STRIP=$ac_ct_STRIP
4612else
4613  STRIP="$ac_cv_prog_STRIP"
4614fi
4615
4616fi
4617INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4618
4619# We need awk for the "check" target.  The system "awk" is bad on
4620# some platforms.
4621# Always define AMTAR for backward compatibility.
4622
4623AMTAR=${AMTAR-"${am_missing_run}tar"}
4624
4625am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4626
4627
4628
4629
4630depcc="$CC"   am_compiler_list=
4631
4632echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4633echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4634if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4635  echo $ECHO_N "(cached) $ECHO_C" >&6
4636else
4637  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4638  # We make a subdir and do the tests there.  Otherwise we can end up
4639  # making bogus files that we don't know about and never remove.  For
4640  # instance it was reported that on HP-UX the gcc test will end up
4641  # making a dummy file named `D' -- because `-MD' means `put the output
4642  # in D'.
4643  mkdir conftest.dir
4644  # Copy depcomp to subdir because otherwise we won't find it if we're
4645  # using a relative directory.
4646  cp "$am_depcomp" conftest.dir
4647  cd conftest.dir
4648  # We will build objects and dependencies in a subdirectory because
4649  # it helps to detect inapplicable dependency modes.  For instance
4650  # both Tru64's cc and ICC support -MD to output dependencies as a
4651  # side effect of compilation, but ICC will put the dependencies in
4652  # the current directory while Tru64 will put them in the object
4653  # directory.
4654  mkdir sub
4655
4656  am_cv_CC_dependencies_compiler_type=none
4657  if test "$am_compiler_list" = ""; then
4658     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4659  fi
4660  for depmode in $am_compiler_list; do
4661    # Setup a source with many dependencies, because some compilers
4662    # like to wrap large dependency lists on column 80 (with \), and
4663    # we should not choose a depcomp mode which is confused by this.
4664    #
4665    # We need to recreate these files for each test, as the compiler may
4666    # overwrite some of them when testing with obscure command lines.
4667    # This happens at least with the AIX C compiler.
4668    : > sub/conftest.c
4669    for i in 1 2 3 4 5 6; do
4670      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4671      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4672      # Solaris 8's {/usr,}/bin/sh.
4673      touch sub/conftst$i.h
4674    done
4675    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4676
4677    case $depmode in
4678    nosideeffect)
4679      # after this tag, mechanisms are not by side-effect, so they'll
4680      # only be used when explicitly requested
4681      if test "x$enable_dependency_tracking" = xyes; then
4682        continue
4683      else
4684        break
4685      fi
4686      ;;
4687    none) break ;;
4688    esac
4689    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4690    # mode.  It turns out that the SunPro C++ compiler does not properly
4691    # handle `-M -o', and we need to detect this.
4692    if depmode=$depmode \
4693       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4694       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4695       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4696         >/dev/null 2>conftest.err &&
4697       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4698       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4699       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4700      # icc doesn't choke on unknown options, it will just issue warnings
4701      # or remarks (even with -Werror).  So we grep stderr for any message
4702      # that says an option was ignored or not supported.
4703      # When given -MP, icc 7.0 and 7.1 complain thusly:
4704      #   icc: Command line warning: ignoring option '-M'; no argument required
4705      # The diagnosis changed in icc 8.0:
4706      #   icc: Command line remark: option '-MP' not supported
4707      if (grep 'ignoring option' conftest.err ||
4708          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4709        am_cv_CC_dependencies_compiler_type=$depmode
4710        break
4711      fi
4712    fi
4713  done
4714
4715  cd ..
4716  rm -rf conftest.dir
4717else
4718  am_cv_CC_dependencies_compiler_type=none
4719fi
4720
4721fi
4722echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4723echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4724CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4725
4726
4727
4728if
4729  test "x$enable_dependency_tracking" != xno \
4730  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4731  am__fastdepCC_TRUE=
4732  am__fastdepCC_FALSE='#'
4733else
4734  am__fastdepCC_TRUE='#'
4735  am__fastdepCC_FALSE=
4736fi
4737
4738
4739depcc="$CXX"  am_compiler_list=
4740
4741echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4742echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4743if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4744  echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4747  # We make a subdir and do the tests there.  Otherwise we can end up
4748  # making bogus files that we don't know about and never remove.  For
4749  # instance it was reported that on HP-UX the gcc test will end up
4750  # making a dummy file named `D' -- because `-MD' means `put the output
4751  # in D'.
4752  mkdir conftest.dir
4753  # Copy depcomp to subdir because otherwise we won't find it if we're
4754  # using a relative directory.
4755  cp "$am_depcomp" conftest.dir
4756  cd conftest.dir
4757  # We will build objects and dependencies in a subdirectory because
4758  # it helps to detect inapplicable dependency modes.  For instance
4759  # both Tru64's cc and ICC support -MD to output dependencies as a
4760  # side effect of compilation, but ICC will put the dependencies in
4761  # the current directory while Tru64 will put them in the object
4762  # directory.
4763  mkdir sub
4764
4765  am_cv_CXX_dependencies_compiler_type=none
4766  if test "$am_compiler_list" = ""; then
4767     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4768  fi
4769  for depmode in $am_compiler_list; do
4770    # Setup a source with many dependencies, because some compilers
4771    # like to wrap large dependency lists on column 80 (with \), and
4772    # we should not choose a depcomp mode which is confused by this.
4773    #
4774    # We need to recreate these files for each test, as the compiler may
4775    # overwrite some of them when testing with obscure command lines.
4776    # This happens at least with the AIX C compiler.
4777    : > sub/conftest.c
4778    for i in 1 2 3 4 5 6; do
4779      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4780      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4781      # Solaris 8's {/usr,}/bin/sh.
4782      touch sub/conftst$i.h
4783    done
4784    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4785
4786    case $depmode in
4787    nosideeffect)
4788      # after this tag, mechanisms are not by side-effect, so they'll
4789      # only be used when explicitly requested
4790      if test "x$enable_dependency_tracking" = xyes; then
4791        continue
4792      else
4793        break
4794      fi
4795      ;;
4796    none) break ;;
4797    esac
4798    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4799    # mode.  It turns out that the SunPro C++ compiler does not properly
4800    # handle `-M -o', and we need to detect this.
4801    if depmode=$depmode \
4802       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4803       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4804       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4805         >/dev/null 2>conftest.err &&
4806       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4807       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4808       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4809      # icc doesn't choke on unknown options, it will just issue warnings
4810      # or remarks (even with -Werror).  So we grep stderr for any message
4811      # that says an option was ignored or not supported.
4812      # When given -MP, icc 7.0 and 7.1 complain thusly:
4813      #   icc: Command line warning: ignoring option '-M'; no argument required
4814      # The diagnosis changed in icc 8.0:
4815      #   icc: Command line remark: option '-MP' not supported
4816      if (grep 'ignoring option' conftest.err ||
4817          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4818        am_cv_CXX_dependencies_compiler_type=$depmode
4819        break
4820      fi
4821    fi
4822  done
4823
4824  cd ..
4825  rm -rf conftest.dir
4826else
4827  am_cv_CXX_dependencies_compiler_type=none
4828fi
4829
4830fi
4831echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4832echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4833CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4834
4835
4836
4837if
4838  test "x$enable_dependency_tracking" != xno \
4839  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4840  am__fastdepCXX_TRUE=
4841  am__fastdepCXX_FALSE='#'
4842else
4843  am__fastdepCXX_TRUE='#'
4844  am__fastdepCXX_FALSE=
4845fi
4846
4847
4848
4849echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4850echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4851    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4852if test "${enable_maintainer_mode+set}" = set; then
4853  enableval="$enable_maintainer_mode"
4854  USE_MAINTAINER_MODE=$enableval
4855else
4856  USE_MAINTAINER_MODE=no
4857fi;
4858  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4859echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4860
4861
4862if test $USE_MAINTAINER_MODE = yes; then
4863  MAINTAINER_MODE_TRUE=
4864  MAINTAINER_MODE_FALSE='#'
4865else
4866  MAINTAINER_MODE_TRUE='#'
4867  MAINTAINER_MODE_FALSE=
4868fi
4869
4870  MAINT=$MAINTAINER_MODE_TRUE
4871
4872
4873
4874coin_have_externals=no
4875if test "$enable_maintainer_mode" = yes; then
4876
4877  # If maintainer mode is chosen, we make sure that the correct versions
4878  # of the tools are used, and that we know where libtool.m4 is (to
4879  # recreate acinclude.m4)
4880
4881
4882  LIBTOOLM4=
4883  # Normally, $HOME
4884  AUTOTOOLS_DFLT=$HOME
4885
4886  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4887echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4888if test "${ac_cv_use_correct_autotools+set}" = set; then
4889  echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891  ac_cv_use_correct_autotools=check
4892fi
4893echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4894echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4895
4896  if test $ac_cv_use_correct_autotools = check; then
4897    ac_cv_use_correct_autotools=yes
4898    # Check if we have autoconf
4899    # Extract the first word of "autoconf", so it can be a program name with args.
4900set dummy autoconf; ac_word=$2
4901echo "$as_me:$LINENO: checking for $ac_word" >&5
4902echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4903if test "${ac_cv_prog_have_autoconf+set}" = set; then
4904  echo $ECHO_N "(cached) $ECHO_C" >&6
4905else
4906  if test -n "$have_autoconf"; then
4907  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4908else
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912  IFS=$as_save_IFS
4913  test -z "$as_dir" && as_dir=.
4914  for ac_exec_ext in '' $ac_executable_extensions; do
4915  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916    ac_cv_prog_have_autoconf="yes"
4917    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918    break 2
4919  fi
4920done
4921done
4922
4923  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4924fi
4925fi
4926have_autoconf=$ac_cv_prog_have_autoconf
4927if test -n "$have_autoconf"; then
4928  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4929echo "${ECHO_T}$have_autoconf" >&6
4930else
4931  echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
4933fi
4934
4935    if test $have_autoconf = no; then
4936      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4937echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4938   { (exit 1); exit 1; }; }
4939    fi
4940
4941    # Check whether autoconf is the correct version
4942    correct_version='2.59'
4943    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4944    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4945echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4946    autoconf --version > confauto.out 2>&1
4947    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4948      echo "$as_me:$LINENO: result: yes" >&5
4949echo "${ECHO_T}yes" >&6
4950    else
4951      rm -f confauto.out
4952      echo "$as_me:$LINENO: result: no" >&5
4953echo "${ECHO_T}no" >&6
4954      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4955echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4956   { (exit 1); exit 1; }; }
4957    fi
4958    rm -f confauto.out
4959
4960    # Check if the executable autoconf is picked up from the correct location
4961    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4962echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4963    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4964    autoconf_dir=`cd $autoconf_dir; pwd`
4965    if test x$AUTOTOOLS_DIR = x; then
4966      want_dir=$AUTOTOOLS_DFLT/bin
4967    else
4968      want_dir=$AUTOTOOLS_DIR/bin
4969    fi
4970    if test $autoconf_dir = `cd $want_dir; pwd`; then
4971      echo "$as_me:$LINENO: result: yes" >&5
4972echo "${ECHO_T}yes" >&6
4973    else
4974      rm -f confauto.out
4975      echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
4977      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4978echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4979   { (exit 1); exit 1; }; }
4980    fi
4981
4982    # Check if we have automake
4983    # Extract the first word of "automake", so it can be a program name with args.
4984set dummy automake; ac_word=$2
4985echo "$as_me:$LINENO: checking for $ac_word" >&5
4986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4987if test "${ac_cv_prog_have_automake+set}" = set; then
4988  echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990  if test -n "$have_automake"; then
4991  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4992else
4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994for as_dir in $PATH
4995do
4996  IFS=$as_save_IFS
4997  test -z "$as_dir" && as_dir=.
4998  for ac_exec_ext in '' $ac_executable_extensions; do
4999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5000    ac_cv_prog_have_automake="yes"
5001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5002    break 2
5003  fi
5004done
5005done
5006
5007  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5008fi
5009fi
5010have_automake=$ac_cv_prog_have_automake
5011if test -n "$have_automake"; then
5012  echo "$as_me:$LINENO: result: $have_automake" >&5
5013echo "${ECHO_T}$have_automake" >&6
5014else
5015  echo "$as_me:$LINENO: result: no" >&5
5016echo "${ECHO_T}no" >&6
5017fi
5018
5019    if test $have_automake = no; then
5020      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5021echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5022   { (exit 1); exit 1; }; }
5023    fi
5024
5025    # Check whether automake is the correct version
5026    correct_version='1.9.6'
5027    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5028    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5029echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5030    automake --version > confauto.out 2>&1
5031    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5032      echo "$as_me:$LINENO: result: yes" >&5
5033echo "${ECHO_T}yes" >&6
5034    else
5035      rm -f confauto.out
5036      echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6
5038      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5039echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5040   { (exit 1); exit 1; }; }
5041    fi
5042    rm -f confauto.out
5043
5044    # Check if the executable automake is picked up from the correct location
5045    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5046echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5047    automake_dir=`which automake | sed -e 's=/automake=='`
5048    automake_dir=`cd $automake_dir; pwd`
5049    if test x$AUTOTOOLS_DIR = x; then
5050      want_dir=$AUTOTOOLS_DFLT/bin
5051    else
5052      want_dir=$AUTOTOOLS_DIR/bin
5053    fi
5054    if test $automake_dir = `cd $want_dir; pwd`; then
5055      echo "$as_me:$LINENO: result: yes" >&5
5056echo "${ECHO_T}yes" >&6
5057    else
5058      rm -f confauto.out
5059      echo "$as_me:$LINENO: result: no" >&5
5060echo "${ECHO_T}no" >&6
5061      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5062echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5063   { (exit 1); exit 1; }; }
5064    fi
5065
5066    # Check if this is the correct version of libtool (with escaped dots)
5067    if test x$AUTOTOOLS_DIR = x; then
5068      want_dir=$AUTOTOOLS_DFLT/share
5069    else
5070      want_dir=$AUTOTOOLS_DIR/share
5071    fi
5072    correct_version='1.5.22'
5073    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5074    if test -r $want_dir/libtool/ltmain.sh; then
5075  have_ltmain=yes
5076  :
5077else
5078  have_ltmain=no
5079  :
5080fi
5081
5082    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5083echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5084    if test $have_ltmain = yes; then
5085    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5086        echo "$as_me:$LINENO: result: yes" >&5
5087echo "${ECHO_T}yes" >&6
5088      else
5089        echo "$as_me:$LINENO: result: no" >&5
5090echo "${ECHO_T}no" >&6
5091        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5092echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5093   { (exit 1); exit 1; }; }
5094      fi
5095    else
5096      echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5099echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5100   { (exit 1); exit 1; }; }
5101    fi
5102  fi
5103
5104  # Check if we can find the libtool file
5105  if test x$AUTOTOOLS_DIR = x; then
5106    want_dir=$AUTOTOOLS_DFLT/share
5107  else
5108    want_dir=$AUTOTOOLS_DIR/share
5109  fi
5110  if test -r $want_dir/aclocal/libtool.m4; then
5111  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5112  :
5113else
5114  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5115echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5116   { (exit 1); exit 1; }; }
5117  :
5118fi
5119
5120
5121  # Check if we have an Externals file
5122  if test -r $srcdir/Externals; then
5123    coin_have_externals=yes
5124  fi
5125  # Check if subversion is installed and understands https
5126  # Extract the first word of "svn", so it can be a program name with args.
5127set dummy svn; ac_word=$2
5128echo "$as_me:$LINENO: checking for $ac_word" >&5
5129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5130if test "${ac_cv_prog_have_svn+set}" = set; then
5131  echo $ECHO_N "(cached) $ECHO_C" >&6
5132else
5133  if test -n "$have_svn"; then
5134  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5135else
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139  IFS=$as_save_IFS
5140  test -z "$as_dir" && as_dir=.
5141  for ac_exec_ext in '' $ac_executable_extensions; do
5142  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5143    ac_cv_prog_have_svn="yes"
5144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145    break 2
5146  fi
5147done
5148done
5149
5150  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5151fi
5152fi
5153have_svn=$ac_cv_prog_have_svn
5154if test -n "$have_svn"; then
5155  echo "$as_me:$LINENO: result: $have_svn" >&5
5156echo "${ECHO_T}$have_svn" >&6
5157else
5158  echo "$as_me:$LINENO: result: no" >&5
5159echo "${ECHO_T}no" >&6
5160fi
5161
5162  if test x$have_svn = xyes; then
5163    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5164echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5165if test "${ac_cv_svn_understands_https+set}" = set; then
5166  echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168  svn --version > confauto.out 2>&1
5169                    if $EGREP https confauto.out >/dev/null 2>&1; then
5170                      ac_cv_svn_understands_https=yes
5171                    else
5172                      ac_cv_svn_understands_https=no
5173                      have_svn=no
5174                      ac_cv_prog_have_svn=no
5175                    fi
5176                    rm -f confauto.out
5177fi
5178echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5179echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5180  fi
5181
5182  # Find the location of the BuildTools directory
5183  BUILDTOOLSDIR=
5184  if test -r $srcdir/BuildTools/coin.m4; then
5185    BUILDTOOLSDIR=$srcdir/BuildTools
5186  else
5187    if test -r $srcdir/../BuildTools/coin.m4; then
5188      BUILDTOOLSDIR=$srcdir/../BuildTools
5189    else
5190      if test -r $srcdir/../../BuildTools/coin.m4; then
5191        BUILDTOOLSDIR=$srcdir/../../BuildTools
5192      else
5193        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5194echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5195   { (exit 1); exit 1; }; }
5196      fi
5197    fi
5198  fi
5199
5200
5201  # The following variable is set to the name of the directory where
5202  # the autotool scripts are located
5203
5204  AUX_DIR=$ac_aux_dir
5205fi
5206
5207# helpful variable for the base directory of this package
5208abs_source_dir=`cd $srcdir; pwd`
5209
5210
5211# Stuff for example Makefiles
5212if test x$prefix = xNONE; then
5213  full_prefix=$ac_default_prefix
5214else
5215  full_prefix=$prefix
5216fi
5217full_prefix=`cd $full_prefix ; pwd`
5218
5219abs_lib_dir=$full_prefix/lib
5220
5221abs_include_dir=$full_prefix/include
5222
5223abs_bin_dir=$full_prefix/bin
5224
5225
5226
5227if test $coin_have_externals = yes && test x$have_svn = xyes; then
5228  HAVE_EXTERNALS_TRUE=
5229  HAVE_EXTERNALS_FALSE='#'
5230else
5231  HAVE_EXTERNALS_TRUE='#'
5232  HAVE_EXTERNALS_FALSE=
5233fi
5234
5235
5236# AC_MSG_NOTICE([End automake initialisation.])
5237
5238
5239
5240LIBTOOL=
5241if test -r ../libtool; then
5242  coin_config_dir=..
5243  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5244fi
5245if test "x$LIBTOOL" = x; then
5246  if test -r ../../libtool; then
5247    coin_config_dir=../..
5248    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5249  fi
5250fi
5251
5252if test "x$LIBTOOL" = x; then
5253# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5254  # Stuff for libtool
5255  # Check whether --enable-shared or --disable-shared was given.
5256if test "${enable_shared+set}" = set; then
5257  enableval="$enable_shared"
5258  p=${PACKAGE-default}
5259    case $enableval in
5260    yes) enable_shared=yes ;;
5261    no) enable_shared=no ;;
5262    *)
5263      enable_shared=no
5264      # Look at the argument we got.  We use all the common list separators.
5265      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5266      for pkg in $enableval; do
5267        IFS="$lt_save_ifs"
5268        if test "X$pkg" = "X$p"; then
5269          enable_shared=yes
5270        fi
5271      done
5272      IFS="$lt_save_ifs"
5273      ;;
5274    esac
5275else
5276  enable_shared=yes
5277fi;
5278
5279# Check whether --enable-fast-install or --disable-fast-install was given.
5280if test "${enable_fast_install+set}" = set; then
5281  enableval="$enable_fast_install"
5282  p=${PACKAGE-default}
5283    case $enableval in
5284    yes) enable_fast_install=yes ;;
5285    no) enable_fast_install=no ;;
5286    *)
5287      enable_fast_install=no
5288      # Look at the argument we got.  We use all the common list separators.
5289      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5290      for pkg in $enableval; do
5291        IFS="$lt_save_ifs"
5292        if test "X$pkg" = "X$p"; then
5293          enable_fast_install=yes
5294        fi
5295      done
5296      IFS="$lt_save_ifs"
5297      ;;
5298    esac
5299else
5300  enable_fast_install=yes
5301fi;
5302
5303echo "$as_me:$LINENO: checking host system type" >&5
5304echo $ECHO_N "checking host system type... $ECHO_C" >&6
5305if test "${ac_cv_host+set}" = set; then
5306  echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308  ac_cv_host_alias=$host_alias
5309test -z "$ac_cv_host_alias" &&
5310  ac_cv_host_alias=$ac_cv_build_alias
5311ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5312  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5313echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5314   { (exit 1); exit 1; }; }
5315
5316fi
5317echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5318echo "${ECHO_T}$ac_cv_host" >&6
5319host=$ac_cv_host
5320host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5321host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5322host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5323
5324
5325echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5326echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5327if test "${lt_cv_path_SED+set}" = set; then
5328  echo $ECHO_N "(cached) $ECHO_C" >&6
5329else
5330  # Loop through the user's path and test for sed and gsed.
5331# Then use that list of sed's as ones to test for truncation.
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335  IFS=$as_save_IFS
5336  test -z "$as_dir" && as_dir=.
5337  for lt_ac_prog in sed gsed; do
5338    for ac_exec_ext in '' $ac_executable_extensions; do
5339      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5340        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5341      fi
5342    done
5343  done
5344done
5345lt_ac_max=0
5346lt_ac_count=0
5347# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5348# along with /bin/sed that truncates output.
5349for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5350  test ! -f $lt_ac_sed && continue
5351  cat /dev/null > conftest.in
5352  lt_ac_count=0
5353  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5354  # Check for GNU sed and select it if it is found.
5355  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5356    lt_cv_path_SED=$lt_ac_sed
5357    break
5358  fi
5359  while true; do
5360    cat conftest.in conftest.in >conftest.tmp
5361    mv conftest.tmp conftest.in
5362    cp conftest.in conftest.nl
5363    echo >>conftest.nl
5364    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5365    cmp -s conftest.out conftest.nl || break
5366    # 10000 chars as input seems more than enough
5367    test $lt_ac_count -gt 10 && break
5368    lt_ac_count=`expr $lt_ac_count + 1`
5369    if test $lt_ac_count -gt $lt_ac_max; then
5370      lt_ac_max=$lt_ac_count
5371      lt_cv_path_SED=$lt_ac_sed
5372    fi
5373  done
5374done
5375
5376fi
5377
5378SED=$lt_cv_path_SED
5379echo "$as_me:$LINENO: result: $SED" >&5
5380echo "${ECHO_T}$SED" >&6
5381
5382
5383# Check whether --with-gnu-ld or --without-gnu-ld was given.
5384if test "${with_gnu_ld+set}" = set; then
5385  withval="$with_gnu_ld"
5386  test "$withval" = no || with_gnu_ld=yes
5387else
5388  with_gnu_ld=no
5389fi;
5390ac_prog=ld
5391if test "$GCC" = yes; then
5392  # Check if gcc -print-prog-name=ld gives a path.
5393  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5394echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5395  case $host in
5396  *-*-mingw*)
5397    # gcc leaves a trailing carriage return which upsets mingw
5398    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5399  *)
5400    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5401  esac
5402  case $ac_prog in
5403    # Accept absolute paths.
5404    [\\/]* | ?:[\\/]*)
5405      re_direlt='/[^/][^/]*/\.\./'
5406      # Canonicalize the pathname of ld
5407      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5408      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5409        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5410      done
5411      test -z "$LD" && LD="$ac_prog"
5412      ;;
5413  "")
5414    # If it fails, then pretend we aren't using GCC.
5415    ac_prog=ld
5416    ;;
5417  *)
5418    # If it is relative, then search for the first ld in PATH.
5419    with_gnu_ld=unknown
5420    ;;
5421  esac
5422elif test "$with_gnu_ld" = yes; then
5423  echo "$as_me:$LINENO: checking for GNU ld" >&5
5424echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5425else
5426  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5427echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5428fi
5429if test "${lt_cv_path_LD+set}" = set; then
5430  echo $ECHO_N "(cached) $ECHO_C" >&6
5431else
5432  if test -z "$LD"; then
5433  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5434  for ac_dir in $PATH; do
5435    IFS="$lt_save_ifs"
5436    test -z "$ac_dir" && ac_dir=.
5437    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5438      lt_cv_path_LD="$ac_dir/$ac_prog"
5439      # Check to see if the program is GNU ld.  I'd rather use --version,
5440      # but apparently some variants of GNU ld only accept -v.
5441      # Break only if it was the GNU/non-GNU ld that we prefer.
5442      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5443      *GNU* | *'with BFD'*)
5444        test "$with_gnu_ld" != no && break
5445        ;;
5446      *)
5447        test "$with_gnu_ld" != yes && break
5448        ;;
5449      esac
5450    fi
5451  done
5452  IFS="$lt_save_ifs"
5453else
5454  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5455fi
5456fi
5457
5458LD="$lt_cv_path_LD"
5459if test -n "$LD"; then
5460  echo "$as_me:$LINENO: result: $LD" >&5
5461echo "${ECHO_T}$LD" >&6
5462else
5463  echo "$as_me:$LINENO: result: no" >&5
5464echo "${ECHO_T}no" >&6
5465fi
5466test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5467echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5468   { (exit 1); exit 1; }; }
5469echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5470echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5471if test "${lt_cv_prog_gnu_ld+set}" = set; then
5472  echo $ECHO_N "(cached) $ECHO_C" >&6
5473else
5474  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5475case `$LD -v 2>&1 </dev/null` in
5476*GNU* | *'with BFD'*)
5477  lt_cv_prog_gnu_ld=yes
5478  ;;
5479*)
5480  lt_cv_prog_gnu_ld=no
5481  ;;
5482esac
5483fi
5484echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5485echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5486with_gnu_ld=$lt_cv_prog_gnu_ld
5487
5488
5489echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5490echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5491if test "${lt_cv_ld_reload_flag+set}" = set; then
5492  echo $ECHO_N "(cached) $ECHO_C" >&6
5493else
5494  lt_cv_ld_reload_flag='-r'
5495fi
5496echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5497echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5498reload_flag=$lt_cv_ld_reload_flag
5499case $reload_flag in
5500"" | " "*) ;;
5501*) reload_flag=" $reload_flag" ;;
5502esac
5503reload_cmds='$LD$reload_flag -o $output$reload_objs'
5504case $host_os in
5505  darwin*)
5506    if test "$GCC" = yes; then
5507      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5508    else
5509      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5510    fi
5511    ;;
5512esac
5513
5514echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5515echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5516if test "${lt_cv_path_NM+set}" = set; then
5517  echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519  if test -n "$NM"; then
5520  # Let the user override the test.
5521  lt_cv_path_NM="$NM"
5522else
5523  lt_nm_to_check="${ac_tool_prefix}nm"
5524  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5525    lt_nm_to_check="$lt_nm_to_check nm"
5526  fi
5527  for lt_tmp_nm in $lt_nm_to_check; do
5528    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5529    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5530      IFS="$lt_save_ifs"
5531      test -z "$ac_dir" && ac_dir=.
5532      tmp_nm="$ac_dir/$lt_tmp_nm"
5533      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5534        # Check to see if the nm accepts a BSD-compat flag.
5535        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5536        #   nm: unknown option "B" ignored
5537        # Tru64's nm complains that /dev/null is an invalid object file
5538        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5539        */dev/null* | *'Invalid file or object type'*)
5540          lt_cv_path_NM="$tmp_nm -B"
5541          break
5542          ;;
5543        *)
5544          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5545          */dev/null*)
5546            lt_cv_path_NM="$tmp_nm -p"
5547            break
5548            ;;
5549          *)
5550            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5551            continue # so that we can try to find one that supports BSD flags
5552            ;;
5553          esac
5554          ;;
5555        esac
5556      fi
5557    done
5558    IFS="$lt_save_ifs"
5559  done
5560  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5561fi
5562fi
5563echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5564echo "${ECHO_T}$lt_cv_path_NM" >&6
5565NM="$lt_cv_path_NM"
5566
5567echo "$as_me:$LINENO: checking whether ln -s works" >&5
5568echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5569LN_S=$as_ln_s
5570if test "$LN_S" = "ln -s"; then
5571  echo "$as_me:$LINENO: result: yes" >&5
5572echo "${ECHO_T}yes" >&6
5573else
5574  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5575echo "${ECHO_T}no, using $LN_S" >&6
5576fi
5577
5578echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5579echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5580if test "${lt_cv_deplibs_check_method+set}" = set; then
5581  echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583  lt_cv_file_magic_cmd='$MAGIC_CMD'
5584lt_cv_file_magic_test_file=
5585lt_cv_deplibs_check_method='unknown'
5586# Need to set the preceding variable on all platforms that support
5587# interlibrary dependencies.
5588# 'none' -- dependencies not supported.
5589# `unknown' -- same as none, but documents that we really don't know.
5590# 'pass_all' -- all dependencies passed with no checks.
5591# 'test_compile' -- check by making test program.
5592# 'file_magic [[regex]]' -- check by looking for files in library path
5593# which responds to the $file_magic_cmd with a given extended regex.
5594# If you have `file' or equivalent on your system and you're not sure
5595# whether `pass_all' will *always* work, you probably want this one.
5596
5597case $host_os in
5598aix4* | aix5*)
5599  lt_cv_deplibs_check_method=pass_all
5600  ;;
5601
5602beos*)
5603  lt_cv_deplibs_check_method=pass_all
5604  ;;
5605
5606bsdi[45]*)
5607  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5608  lt_cv_file_magic_cmd='/usr/bin/file -L'
5609  lt_cv_file_magic_test_file=/shlib/libc.so
5610  ;;
5611
5612cygwin*)
5613  # func_win32_libid is a shell function defined in ltmain.sh
5614  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5615  lt_cv_file_magic_cmd='func_win32_libid'
5616  ;;
5617
5618mingw* | pw32*)
5619  # Base MSYS/MinGW do not provide the 'file' command needed by
5620  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5621  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5622  lt_cv_file_magic_cmd='$OBJDUMP -f'
5623  ;;
5624
5625darwin* | rhapsody*)
5626  lt_cv_deplibs_check_method=pass_all
5627  ;;
5628
5629freebsd* | kfreebsd*-gnu | dragonfly*)
5630  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5631    case $host_cpu in
5632    i*86 )
5633      # Not sure whether the presence of OpenBSD here was a mistake.
5634      # Let's accept both of them until this is cleared up.
5635      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5636      lt_cv_file_magic_cmd=/usr/bin/file
5637      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5638      ;;
5639    esac
5640  else
5641    lt_cv_deplibs_check_method=pass_all
5642  fi
5643  ;;
5644
5645gnu*)
5646  lt_cv_deplibs_check_method=pass_all
5647  ;;
5648
5649hpux10.20* | hpux11*)
5650  lt_cv_file_magic_cmd=/usr/bin/file
5651  case $host_cpu in
5652  ia64*)
5653    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5654    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5655    ;;
5656  hppa*64*)
5657    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]'
5658    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5659    ;;
5660  *)
5661    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5662    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5663    ;;
5664  esac
5665  ;;
5666
5667interix3*)
5668  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5669  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5670  ;;
5671
5672irix5* | irix6* | nonstopux*)
5673  case $LD in
5674  *-32|*"-32 ") libmagic=32-bit;;
5675  *-n32|*"-n32 ") libmagic=N32;;
5676  *-64|*"-64 ") libmagic=64-bit;;
5677  *) libmagic=never-match;;
5678  esac
5679  lt_cv_deplibs_check_method=pass_all
5680  ;;
5681
5682# This must be Linux ELF.
5683linux*)
5684  lt_cv_deplibs_check_method=pass_all
5685  ;;
5686
5687netbsd*)
5688  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5689    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5690  else
5691    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5692  fi
5693  ;;
5694
5695newos6*)
5696  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5697  lt_cv_file_magic_cmd=/usr/bin/file
5698  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5699  ;;
5700
5701nto-qnx*)
5702  lt_cv_deplibs_check_method=unknown
5703  ;;
5704
5705openbsd*)
5706  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5707    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5708  else
5709    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5710  fi
5711  ;;
5712
5713osf3* | osf4* | osf5*)
5714  lt_cv_deplibs_check_method=pass_all
5715  ;;
5716
5717solaris*)
5718  lt_cv_deplibs_check_method=pass_all
5719  ;;
5720
5721sysv4 | sysv4.3*)
5722  case $host_vendor in
5723  motorola)
5724    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]'
5725    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5726    ;;
5727  ncr)
5728    lt_cv_deplibs_check_method=pass_all
5729    ;;
5730  sequent)
5731    lt_cv_file_magic_cmd='/bin/file'
5732    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5733    ;;
5734  sni)
5735    lt_cv_file_magic_cmd='/bin/file'
5736    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5737    lt_cv_file_magic_test_file=/lib/libc.so
5738    ;;
5739  siemens)
5740    lt_cv_deplibs_check_method=pass_all
5741    ;;
5742  pc)
5743    lt_cv_deplibs_check_method=pass_all
5744    ;;
5745  esac
5746  ;;
5747
5748sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5749  lt_cv_deplibs_check_method=pass_all
5750  ;;
5751esac
5752
5753fi
5754echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5755echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5756file_magic_cmd=$lt_cv_file_magic_cmd
5757deplibs_check_method=$lt_cv_deplibs_check_method
5758test -z "$deplibs_check_method" && deplibs_check_method=unknown
5759
5760
5761
5762
5763# If no C compiler was specified, use CC.
5764LTCC=${LTCC-"$CC"}
5765
5766# If no C compiler flags were specified, use CFLAGS.
5767LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5768
5769# Allow CC to be a program name with arguments.
5770compiler=$CC
5771
5772# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5773if test "${enable_libtool_lock+set}" = set; then
5774  enableval="$enable_libtool_lock"
5775
5776fi;
5777test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5778
5779# Some flags need to be propagated to the compiler or linker for good
5780# libtool support.
5781case $host in
5782ia64-*-hpux*)
5783  # Find out which ABI we are using.
5784  echo 'int i;' > conftest.$ac_ext
5785  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786  (eval $ac_compile) 2>&5
5787  ac_status=$?
5788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789  (exit $ac_status); }; then
5790    case `/usr/bin/file conftest.$ac_objext` in
5791    *ELF-32*)
5792      HPUX_IA64_MODE="32"
5793      ;;
5794    *ELF-64*)
5795      HPUX_IA64_MODE="64"
5796      ;;
5797    esac
5798  fi
5799  rm -rf conftest*
5800  ;;
5801*-*-irix6*)
5802  # Find out which ABI we are using.
5803  echo '#line 5803 "configure"' > conftest.$ac_ext
5804  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5805  (eval $ac_compile) 2>&5
5806  ac_status=$?
5807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808  (exit $ac_status); }; then
5809   if test "$lt_cv_prog_gnu_ld" = yes; then
5810    case `/usr/bin/file conftest.$ac_objext` in
5811    *32-bit*)
5812      LD="${LD-ld} -melf32bsmip"
5813      ;;
5814    *N32*)
5815      LD="${LD-ld} -melf32bmipn32"
5816      ;;
5817    *64-bit*)
5818      LD="${LD-ld} -melf64bmip"
5819      ;;
5820    esac
5821   else
5822    case `/usr/bin/file conftest.$ac_objext` in
5823    *32-bit*)
5824      LD="${LD-ld} -32"
5825      ;;
5826    *N32*)
5827      LD="${LD-ld} -n32"
5828      ;;
5829    *64-bit*)
5830      LD="${LD-ld} -64"
5831      ;;
5832    esac
5833   fi
5834  fi
5835  rm -rf conftest*
5836  ;;
5837
5838x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5839  # Find out which ABI we are using.
5840  echo 'int i;' > conftest.$ac_ext
5841  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842  (eval $ac_compile) 2>&5
5843  ac_status=$?
5844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845  (exit $ac_status); }; then
5846    case `/usr/bin/file conftest.o` in
5847    *32-bit*)
5848      case $host in
5849        x86_64-*linux*)
5850          LD="${LD-ld} -m elf_i386"
5851          ;;
5852        ppc64-*linux*|powerpc64-*linux*)
5853          LD="${LD-ld} -m elf32ppclinux"
5854          ;;
5855        s390x-*linux*)
5856          LD="${LD-ld} -m elf_s390"
5857          ;;
5858        sparc64-*linux*)
5859          LD="${LD-ld} -m elf32_sparc"
5860          ;;
5861      esac
5862      ;;
5863    *64-bit*)
5864      case $host in
5865        x86_64-*linux*)
5866          LD="${LD-ld} -m elf_x86_64"
5867          ;;
5868        ppc*-*linux*|powerpc*-*linux*)
5869          LD="${LD-ld} -m elf64ppc"
5870          ;;
5871        s390*-*linux*)
5872          LD="${LD-ld} -m elf64_s390"
5873          ;;
5874        sparc*-*linux*)
5875          LD="${LD-ld} -m elf64_sparc"
5876          ;;
5877      esac
5878      ;;
5879    esac
5880  fi
5881  rm -rf conftest*
5882  ;;
5883
5884*-*-sco3.2v5*)
5885  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5886  SAVE_CFLAGS="$CFLAGS"
5887  CFLAGS="$CFLAGS -belf"
5888  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5889echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5890if test "${lt_cv_cc_needs_belf+set}" = set; then
5891  echo $ECHO_N "(cached) $ECHO_C" >&6
5892else
5893  ac_ext=c
5894ac_cpp='$CPP $CPPFLAGS'
5895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5897ac_compiler_gnu=$ac_cv_c_compiler_gnu
5898
5899     cat >conftest.$ac_ext <<_ACEOF
5900/* confdefs.h.  */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h.  */
5905
5906int
5907main ()
5908{
5909
5910  ;
5911  return 0;
5912}
5913_ACEOF
5914rm -f conftest.$ac_objext conftest$ac_exeext
5915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5916  (eval $ac_link) 2>conftest.er1
5917  ac_status=$?
5918  grep -v '^ *+' conftest.er1 >conftest.err
5919  rm -f conftest.er1
5920  cat conftest.err >&5
5921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922  (exit $ac_status); } &&
5923         { ac_try='test -z "$ac_c_werror_flag"
5924                         || test ! -s conftest.err'
5925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5926  (eval $ac_try) 2>&5
5927  ac_status=$?
5928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929  (exit $ac_status); }; } &&
5930         { ac_try='test -s conftest$ac_exeext'
5931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932  (eval $ac_try) 2>&5
5933  ac_status=$?
5934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935  (exit $ac_status); }; }; then
5936  lt_cv_cc_needs_belf=yes
5937else
5938  echo "$as_me: failed program was:" >&5
5939sed 's/^/| /' conftest.$ac_ext >&5
5940
5941lt_cv_cc_needs_belf=no
5942fi
5943rm -f conftest.err conftest.$ac_objext \
5944      conftest$ac_exeext conftest.$ac_ext
5945     ac_ext=c
5946ac_cpp='$CPP $CPPFLAGS'
5947ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5948ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5949ac_compiler_gnu=$ac_cv_c_compiler_gnu
5950
5951fi
5952echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5953echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5954  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5955    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5956    CFLAGS="$SAVE_CFLAGS"
5957  fi
5958  ;;
5959sparc*-*solaris*)
5960  # Find out which ABI we are using.
5961  echo 'int i;' > conftest.$ac_ext
5962  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963  (eval $ac_compile) 2>&5
5964  ac_status=$?
5965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966  (exit $ac_status); }; then
5967    case `/usr/bin/file conftest.o` in
5968    *64-bit*)
5969      case $lt_cv_prog_gnu_ld in
5970      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5971      *)    LD="${LD-ld} -64" ;;
5972      esac
5973      ;;
5974    esac
5975  fi
5976  rm -rf conftest*
5977  ;;
5978
5979
5980esac
5981
5982need_locks="$enable_libtool_lock"
5983
5984
5985ac_ext=c
5986ac_cpp='$CPP $CPPFLAGS'
5987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5989ac_compiler_gnu=$ac_cv_c_compiler_gnu
5990echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5991echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5992# On Suns, sometimes $CPP names a directory.
5993if test -n "$CPP" && test -d "$CPP"; then
5994  CPP=
5995fi
5996if test -z "$CPP"; then
5997  if test "${ac_cv_prog_CPP+set}" = set; then
5998  echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000      # Double quotes because CPP needs to be expanded
6001    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6002    do
6003      ac_preproc_ok=false
6004for ac_c_preproc_warn_flag in '' yes
6005do
6006  # Use a header file that comes with gcc, so configuring glibc
6007  # with a fresh cross-compiler works.
6008  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6009  # <limits.h> exists even on freestanding compilers.
6010  # On the NeXT, cc -E runs the code through the compiler's parser,
6011  # not just through cpp. "Syntax error" is here to catch this case.
6012  cat >conftest.$ac_ext <<_ACEOF
6013/* confdefs.h.  */
6014_ACEOF
6015cat confdefs.h >>conftest.$ac_ext
6016cat >>conftest.$ac_ext <<_ACEOF
6017/* end confdefs.h.  */
6018#ifdef __STDC__
6019# include <limits.h>
6020#else
6021# include <assert.h>
6022#endif
6023                     Syntax error
6024_ACEOF
6025if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6026  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6027  ac_status=$?
6028  grep -v '^ *+' conftest.er1 >conftest.err
6029  rm -f conftest.er1
6030  cat conftest.err >&5
6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); } >/dev/null; then
6033  if test -s conftest.err; then
6034    ac_cpp_err=$ac_c_preproc_warn_flag
6035    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6036  else
6037    ac_cpp_err=
6038  fi
6039else
6040  ac_cpp_err=yes
6041fi
6042if test -z "$ac_cpp_err"; then
6043  :
6044else
6045  echo "$as_me: failed program was:" >&5
6046sed 's/^/| /' conftest.$ac_ext >&5
6047
6048  # Broken: fails on valid input.
6049continue
6050fi
6051rm -f conftest.err conftest.$ac_ext
6052
6053  # OK, works on sane cases.  Now check whether non-existent headers
6054  # can be detected and how.
6055  cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h.  */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
6060/* end confdefs.h.  */
6061#include <ac_nonexistent.h>
6062_ACEOF
6063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6064  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6065  ac_status=$?
6066  grep -v '^ *+' conftest.er1 >conftest.err
6067  rm -f conftest.er1
6068  cat conftest.err >&5
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); } >/dev/null; then
6071  if test -s conftest.err; then
6072    ac_cpp_err=$ac_c_preproc_warn_flag
6073    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6074  else
6075    ac_cpp_err=
6076  fi
6077else
6078  ac_cpp_err=yes
6079fi
6080if test -z "$ac_cpp_err"; then
6081  # Broken: success on invalid input.
6082continue
6083else
6084  echo "$as_me: failed program was:" >&5
6085sed 's/^/| /' conftest.$ac_ext >&5
6086
6087  # Passes both tests.
6088ac_preproc_ok=:
6089break
6090fi
6091rm -f conftest.err conftest.$ac_ext
6092
6093done
6094# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6095rm -f conftest.err conftest.$ac_ext
6096if $ac_preproc_ok; then
6097  break
6098fi
6099
6100    done
6101    ac_cv_prog_CPP=$CPP
6102
6103fi
6104  CPP=$ac_cv_prog_CPP
6105else
6106  ac_cv_prog_CPP=$CPP
6107fi
6108echo "$as_me:$LINENO: result: $CPP" >&5
6109echo "${ECHO_T}$CPP" >&6
6110ac_preproc_ok=false
6111for ac_c_preproc_warn_flag in '' yes
6112do
6113  # Use a header file that comes with gcc, so configuring glibc
6114  # with a fresh cross-compiler works.
6115  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6116  # <limits.h> exists even on freestanding compilers.
6117  # On the NeXT, cc -E runs the code through the compiler's parser,
6118  # not just through cpp. "Syntax error" is here to catch this case.
6119  cat >conftest.$ac_ext <<_ACEOF
6120/* confdefs.h.  */
6121_ACEOF
6122cat confdefs.h >>conftest.$ac_ext
6123cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h.  */
6125#ifdef __STDC__
6126# include <limits.h>
6127#else
6128# include <assert.h>
6129#endif
6130                     Syntax error
6131_ACEOF
6132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6133  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6134  ac_status=$?
6135  grep -v '^ *+' conftest.er1 >conftest.err
6136  rm -f conftest.er1
6137  cat conftest.err >&5
6138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); } >/dev/null; then
6140  if test -s conftest.err; then
6141    ac_cpp_err=$ac_c_preproc_warn_flag
6142    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6143  else
6144    ac_cpp_err=
6145  fi
6146else
6147  ac_cpp_err=yes
6148fi
6149if test -z "$ac_cpp_err"; then
6150  :
6151else
6152  echo "$as_me: failed program was:" >&5
6153sed 's/^/| /' conftest.$ac_ext >&5
6154
6155  # Broken: fails on valid input.
6156continue
6157fi
6158rm -f conftest.err conftest.$ac_ext
6159
6160  # OK, works on sane cases.  Now check whether non-existent headers
6161  # can be detected and how.
6162  cat >conftest.$ac_ext <<_ACEOF
6163/* confdefs.h.  */
6164_ACEOF
6165cat confdefs.h >>conftest.$ac_ext
6166cat >>conftest.$ac_ext <<_ACEOF
6167/* end confdefs.h.  */
6168#include <ac_nonexistent.h>
6169_ACEOF
6170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6171  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6172  ac_status=$?
6173  grep -v '^ *+' conftest.er1 >conftest.err
6174  rm -f conftest.er1
6175  cat conftest.err >&5
6176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177  (exit $ac_status); } >/dev/null; then
6178  if test -s conftest.err; then
6179    ac_cpp_err=$ac_c_preproc_warn_flag
6180    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6181  else
6182    ac_cpp_err=
6183  fi
6184else
6185  ac_cpp_err=yes
6186fi
6187if test -z "$ac_cpp_err"; then
6188  # Broken: success on invalid input.
6189continue
6190else
6191  echo "$as_me: failed program was:" >&5
6192sed 's/^/| /' conftest.$ac_ext >&5
6193
6194  # Passes both tests.
6195ac_preproc_ok=:
6196break
6197fi
6198rm -f conftest.err conftest.$ac_ext
6199
6200done
6201# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6202rm -f conftest.err conftest.$ac_ext
6203if $ac_preproc_ok; then
6204  :
6205else
6206  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6207See \`config.log' for more details." >&5
6208echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6209See \`config.log' for more details." >&2;}
6210   { (exit 1); exit 1; }; }
6211fi
6212
6213ac_ext=c
6214ac_cpp='$CPP $CPPFLAGS'
6215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6217ac_compiler_gnu=$ac_cv_c_compiler_gnu
6218
6219
6220echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6221echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6222if test "${ac_cv_header_stdc+set}" = set; then
6223  echo $ECHO_N "(cached) $ECHO_C" >&6
6224else
6225  cat >conftest.$ac_ext <<_ACEOF
6226/* confdefs.h.  */
6227_ACEOF
6228cat confdefs.h >>conftest.$ac_ext
6229cat >>conftest.$ac_ext <<_ACEOF
6230/* end confdefs.h.  */
6231#include <stdlib.h>
6232#include <stdarg.h>
6233#include <string.h>
6234#include <float.h>
6235
6236int
6237main ()
6238{
6239
6240  ;
6241  return 0;
6242}
6243_ACEOF
6244rm -f conftest.$ac_objext
6245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6246  (eval $ac_compile) 2>conftest.er1
6247  ac_status=$?
6248  grep -v '^ *+' conftest.er1 >conftest.err
6249  rm -f conftest.er1
6250  cat conftest.err >&5
6251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252  (exit $ac_status); } &&
6253         { ac_try='test -z "$ac_c_werror_flag"
6254                         || test ! -s conftest.err'
6255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256  (eval $ac_try) 2>&5
6257  ac_status=$?
6258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259  (exit $ac_status); }; } &&
6260         { ac_try='test -s conftest.$ac_objext'
6261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262  (eval $ac_try) 2>&5
6263  ac_status=$?
6264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); }; }; then
6266  ac_cv_header_stdc=yes
6267else
6268  echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271ac_cv_header_stdc=no
6272fi
6273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6274
6275if test $ac_cv_header_stdc = yes; then
6276  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6277  cat >conftest.$ac_ext <<_ACEOF
6278/* confdefs.h.  */
6279_ACEOF
6280cat confdefs.h >>conftest.$ac_ext
6281cat >>conftest.$ac_ext <<_ACEOF
6282/* end confdefs.h.  */
6283#include <string.h>
6284
6285_ACEOF
6286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6287  $EGREP "memchr" >/dev/null 2>&1; then
6288  :
6289else
6290  ac_cv_header_stdc=no
6291fi
6292rm -f conftest*
6293
6294fi
6295
6296if test $ac_cv_header_stdc = yes; then
6297  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6298  cat >conftest.$ac_ext <<_ACEOF
6299/* confdefs.h.  */
6300_ACEOF
6301cat confdefs.h >>conftest.$ac_ext
6302cat >>conftest.$ac_ext <<_ACEOF
6303/* end confdefs.h.  */
6304#include <stdlib.h>
6305
6306_ACEOF
6307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6308  $EGREP "free" >/dev/null 2>&1; then
6309  :
6310else
6311  ac_cv_header_stdc=no
6312fi
6313rm -f conftest*
6314
6315fi
6316
6317if test $ac_cv_header_stdc = yes; then
6318  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6319  if test "$cross_compiling" = yes; then
6320  :
6321else
6322  cat >conftest.$ac_ext <<_ACEOF
6323/* confdefs.h.  */
6324_ACEOF
6325cat confdefs.h >>conftest.$ac_ext
6326cat >>conftest.$ac_ext <<_ACEOF
6327/* end confdefs.h.  */
6328#include <ctype.h>
6329#if ((' ' & 0x0FF) == 0x020)
6330# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6331# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6332#else
6333# define ISLOWER(c) \
6334                   (('a' <= (c) && (c) <= 'i') \
6335                     || ('j' <= (c) && (c) <= 'r') \
6336                     || ('s' <= (c) && (c) <= 'z'))
6337# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6338#endif
6339
6340#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6341int
6342main ()
6343{
6344  int i;
6345  for (i = 0; i < 256; i++)
6346    if (XOR (islower (i), ISLOWER (i))
6347        || toupper (i) != TOUPPER (i))
6348      exit(2);
6349  exit (0);
6350}
6351_ACEOF
6352rm -f conftest$ac_exeext
6353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6354  (eval $ac_link) 2>&5
6355  ac_status=$?
6356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359  (eval $ac_try) 2>&5
6360  ac_status=$?
6361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362  (exit $ac_status); }; }; then
6363  :
6364else
6365  echo "$as_me: program exited with status $ac_status" >&5
6366echo "$as_me: failed program was:" >&5
6367sed 's/^/| /' conftest.$ac_ext >&5
6368
6369( exit $ac_status )
6370ac_cv_header_stdc=no
6371fi
6372rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6373fi
6374fi
6375fi
6376echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6377echo "${ECHO_T}$ac_cv_header_stdc" >&6
6378if test $ac_cv_header_stdc = yes; then
6379
6380cat >>confdefs.h <<\_ACEOF
6381#define STDC_HEADERS 1
6382_ACEOF
6383
6384fi
6385
6386# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6397                  inttypes.h stdint.h unistd.h
6398do
6399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6400echo "$as_me:$LINENO: checking for $ac_header" >&5
6401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6402if eval "test \"\${$as_ac_Header+set}\" = set"; then
6403  echo $ECHO_N "(cached) $ECHO_C" >&6
6404else
6405  cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h.  */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h.  */
6411$ac_includes_default
6412
6413#include <$ac_header>
6414_ACEOF
6415rm -f conftest.$ac_objext
6416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417  (eval $ac_compile) 2>conftest.er1
6418  ac_status=$?
6419  grep -v '^ *+' conftest.er1 >conftest.err
6420  rm -f conftest.er1
6421  cat conftest.err >&5
6422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423  (exit $ac_status); } &&
6424         { ac_try='test -z "$ac_c_werror_flag"
6425                         || test ! -s conftest.err'
6426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427  (eval $ac_try) 2>&5
6428  ac_status=$?
6429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430  (exit $ac_status); }; } &&
6431         { ac_try='test -s conftest.$ac_objext'
6432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433  (eval $ac_try) 2>&5
6434  ac_status=$?
6435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436  (exit $ac_status); }; }; then
6437  eval "$as_ac_Header=yes"
6438else
6439  echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442eval "$as_ac_Header=no"
6443fi
6444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6445fi
6446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6448if test `eval echo '${'$as_ac_Header'}'` = yes; then
6449  cat >>confdefs.h <<_ACEOF
6450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6451_ACEOF
6452
6453fi
6454
6455done
6456
6457
6458
6459for ac_header in dlfcn.h
6460do
6461as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6462if eval "test \"\${$as_ac_Header+set}\" = set"; then
6463  echo "$as_me:$LINENO: checking for $ac_header" >&5
6464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6465if eval "test \"\${$as_ac_Header+set}\" = set"; then
6466  echo $ECHO_N "(cached) $ECHO_C" >&6
6467fi
6468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6469echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6470else
6471  # Is the header compilable?
6472echo "$as_me:$LINENO: checking $ac_header usability" >&5
6473echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6474cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h.  */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h.  */
6480$ac_includes_default
6481#include <$ac_header>
6482_ACEOF
6483rm -f conftest.$ac_objext
6484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485  (eval $ac_compile) 2>conftest.er1
6486  ac_status=$?
6487  grep -v '^ *+' conftest.er1 >conftest.err
6488  rm -f conftest.er1
6489  cat conftest.err >&5
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); } &&
6492         { ac_try='test -z "$ac_c_werror_flag"
6493                         || test ! -s conftest.err'
6494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495  (eval $ac_try) 2>&5
6496  ac_status=$?
6497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); }; } &&
6499         { ac_try='test -s conftest.$ac_objext'
6500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501  (eval $ac_try) 2>&5
6502  ac_status=$?
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); }; }; then
6505  ac_header_compiler=yes
6506else
6507  echo "$as_me: failed program was:" >&5
6508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510ac_header_compiler=no
6511fi
6512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6513echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6514echo "${ECHO_T}$ac_header_compiler" >&6
6515
6516# Is the header present?
6517echo "$as_me:$LINENO: checking $ac_header presence" >&5
6518echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6519cat >conftest.$ac_ext <<_ACEOF
6520/* confdefs.h.  */
6521_ACEOF
6522cat confdefs.h >>conftest.$ac_ext
6523cat >>conftest.$ac_ext <<_ACEOF
6524/* end confdefs.h.  */
6525#include <$ac_header>
6526_ACEOF
6527if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6528  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6529  ac_status=$?
6530  grep -v '^ *+' conftest.er1 >conftest.err
6531  rm -f conftest.er1
6532  cat conftest.err >&5
6533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534  (exit $ac_status); } >/dev/null; then
6535  if test -s conftest.err; then
6536    ac_cpp_err=$ac_c_preproc_warn_flag
6537    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6538  else
6539    ac_cpp_err=
6540  fi
6541else
6542  ac_cpp_err=yes
6543fi
6544if test -z "$ac_cpp_err"; then
6545  ac_header_preproc=yes
6546else
6547  echo "$as_me: failed program was:" >&5
6548sed 's/^/| /' conftest.$ac_ext >&5
6549
6550  ac_header_preproc=no
6551fi
6552rm -f conftest.err conftest.$ac_ext
6553echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6554echo "${ECHO_T}$ac_header_preproc" >&6
6555
6556# So?  What about this header?
6557case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6558  yes:no: )
6559    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6560echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6561    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6562echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6563    ac_header_preproc=yes
6564    ;;
6565  no:yes:* )
6566    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6567echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6568    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6569echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6570    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6571echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6572    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6573echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6574    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6575echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6576    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6577echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6578    (
6579      cat <<\_ASBOX
6580## -------------------------------------------- ##
6581## Report this to coin-discuss@list.coin-or.org ##
6582## -------------------------------------------- ##
6583_ASBOX
6584    ) |
6585      sed "s/^/$as_me: WARNING:     /" >&2
6586    ;;
6587esac
6588echo "$as_me:$LINENO: checking for $ac_header" >&5
6589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6590if eval "test \"\${$as_ac_Header+set}\" = set"; then
6591  echo $ECHO_N "(cached) $ECHO_C" >&6
6592else
6593  eval "$as_ac_Header=\$ac_header_preproc"
6594fi
6595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6597
6598fi
6599if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600  cat >>confdefs.h <<_ACEOF
6601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602_ACEOF
6603
6604fi
6605
6606done
6607
6608
6609
6610if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6611    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6612    (test "X$CXX" != "Xg++"))) ; then
6613  ac_ext=cc
6614ac_cpp='$CXXCPP $CPPFLAGS'
6615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6618echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6619echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6620if test -z "$CXXCPP"; then
6621  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6622  echo $ECHO_N "(cached) $ECHO_C" >&6
6623else
6624      # Double quotes because CXXCPP needs to be expanded
6625    for CXXCPP in "$CXX -E" "/lib/cpp"
6626    do
6627      ac_preproc_ok=false
6628for ac_cxx_preproc_warn_flag in '' yes
6629do
6630  # Use a header file that comes with gcc, so configuring glibc
6631  # with a fresh cross-compiler works.
6632  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6633  # <limits.h> exists even on freestanding compilers.
6634  # On the NeXT, cc -E runs the code through the compiler's parser,
6635  # not just through cpp. "Syntax error" is here to catch this case.
6636  cat >conftest.$ac_ext <<_ACEOF
6637/* confdefs.h.  */
6638_ACEOF
6639cat confdefs.h >>conftest.$ac_ext
6640cat >>conftest.$ac_ext <<_ACEOF
6641/* end confdefs.h.  */
6642#ifdef __STDC__
6643# include <limits.h>
6644#else
6645# include <assert.h>
6646#endif
6647                     Syntax error
6648_ACEOF
6649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6650  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6651  ac_status=$?
6652  grep -v '^ *+' conftest.er1 >conftest.err
6653  rm -f conftest.er1
6654  cat conftest.err >&5
6655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656  (exit $ac_status); } >/dev/null; then
6657  if test -s conftest.err; then
6658    ac_cpp_err=$ac_cxx_preproc_warn_flag
6659    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6660  else
6661    ac_cpp_err=
6662  fi
6663else
6664  ac_cpp_err=yes
6665fi
6666if test -z "$ac_cpp_err"; then
6667  :
6668else
6669  echo "$as_me: failed program was:" >&5
6670sed 's/^/| /' conftest.$ac_ext >&5
6671
6672  # Broken: fails on valid input.
6673continue
6674fi
6675rm -f conftest.err conftest.$ac_ext
6676
6677  # OK, works on sane cases.  Now check whether non-existent headers
6678  # can be detected and how.
6679  cat >conftest.$ac_ext <<_ACEOF
6680/* confdefs.h.  */
6681_ACEOF
6682cat confdefs.h >>conftest.$ac_ext
6683cat >>conftest.$ac_ext <<_ACEOF
6684/* end confdefs.h.  */
6685#include <ac_nonexistent.h>
6686_ACEOF
6687if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6688  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6689  ac_status=$?
6690  grep -v '^ *+' conftest.er1 >conftest.err
6691  rm -f conftest.er1
6692  cat conftest.err >&5
6693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694  (exit $ac_status); } >/dev/null; then
6695  if test -s conftest.err; then
6696    ac_cpp_err=$ac_cxx_preproc_warn_flag
6697    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6698  else
6699    ac_cpp_err=
6700  fi
6701else
6702  ac_cpp_err=yes
6703fi
6704if test -z "$ac_cpp_err"; then
6705  # Broken: success on invalid input.
6706continue
6707else
6708  echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711  # Passes both tests.
6712ac_preproc_ok=:
6713break
6714fi
6715rm -f conftest.err conftest.$ac_ext
6716
6717done
6718# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6719rm -f conftest.err conftest.$ac_ext
6720if $ac_preproc_ok; then
6721  break
6722fi
6723
6724    done
6725    ac_cv_prog_CXXCPP=$CXXCPP
6726
6727fi
6728  CXXCPP=$ac_cv_prog_CXXCPP
6729else
6730  ac_cv_prog_CXXCPP=$CXXCPP
6731fi
6732echo "$as_me:$LINENO: result: $CXXCPP" >&5
6733echo "${ECHO_T}$CXXCPP" >&6
6734ac_preproc_ok=false
6735for ac_cxx_preproc_warn_flag in '' yes
6736do
6737  # Use a header file that comes with gcc, so configuring glibc
6738  # with a fresh cross-compiler works.
6739  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6740  # <limits.h> exists even on freestanding compilers.
6741  # On the NeXT, cc -E runs the code through the compiler's parser,
6742  # not just through cpp. "Syntax error" is here to catch this case.
6743  cat >conftest.$ac_ext <<_ACEOF
6744/* confdefs.h.  */
6745_ACEOF
6746cat confdefs.h >>conftest.$ac_ext
6747cat >>conftest.$ac_ext <<_ACEOF
6748/* end confdefs.h.  */
6749#ifdef __STDC__
6750# include <limits.h>
6751#else
6752# include <assert.h>
6753#endif
6754                     Syntax error
6755_ACEOF
6756if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6757  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6758  ac_status=$?
6759  grep -v '^ *+' conftest.er1 >conftest.err
6760  rm -f conftest.er1
6761  cat conftest.err >&5
6762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763  (exit $ac_status); } >/dev/null; then
6764  if test -s conftest.err; then
6765    ac_cpp_err=$ac_cxx_preproc_warn_flag
6766    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6767  else
6768    ac_cpp_err=
6769  fi
6770else
6771  ac_cpp_err=yes
6772fi
6773if test -z "$ac_cpp_err"; then
6774  :
6775else
6776  echo "$as_me: failed program was:" >&5
6777sed 's/^/| /' conftest.$ac_ext >&5
6778
6779  # Broken: fails on valid input.
6780continue
6781fi
6782rm -f conftest.err conftest.$ac_ext
6783
6784  # OK, works on sane cases.  Now check whether non-existent headers
6785  # can be detected and how.
6786  cat >conftest.$ac_ext <<_ACEOF
6787/* confdefs.h.  */
6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
6791/* end confdefs.h.  */
6792#include <ac_nonexistent.h>
6793_ACEOF
6794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6795  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6796  ac_status=$?
6797  grep -v '^ *+' conftest.er1 >conftest.err
6798  rm -f conftest.er1
6799  cat conftest.err >&5
6800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801  (exit $ac_status); } >/dev/null; then
6802  if test -s conftest.err; then
6803    ac_cpp_err=$ac_cxx_preproc_warn_flag
6804    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6805  else
6806    ac_cpp_err=
6807  fi
6808else
6809  ac_cpp_err=yes
6810fi
6811if test -z "$ac_cpp_err"; then
6812  # Broken: success on invalid input.
6813continue
6814else
6815  echo "$as_me: failed program was:" >&5
6816sed 's/^/| /' conftest.$ac_ext >&5
6817
6818  # Passes both tests.
6819ac_preproc_ok=:
6820break
6821fi
6822rm -f conftest.err conftest.$ac_ext
6823
6824done
6825# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6826rm -f conftest.err conftest.$ac_ext
6827if $ac_preproc_ok; then
6828  :
6829else
6830  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6831See \`config.log' for more details." >&5
6832echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6833See \`config.log' for more details." >&2;}
6834   { (exit 1); exit 1; }; }
6835fi
6836
6837ac_ext=cc
6838ac_cpp='$CXXCPP $CPPFLAGS'
6839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6842
6843fi
6844
6845ac_ext=f
6846ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6847ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6849if test -n "$ac_tool_prefix"; then
6850  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6851  do
6852    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6854echo "$as_me:$LINENO: checking for $ac_word" >&5
6855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6856if test "${ac_cv_prog_F77+set}" = set; then
6857  echo $ECHO_N "(cached) $ECHO_C" >&6
6858else
6859  if test -n "$F77"; then
6860  ac_cv_prog_F77="$F77" # Let the user override the test.
6861else
6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865  IFS=$as_save_IFS
6866  test -z "$as_dir" && as_dir=.
6867  for ac_exec_ext in '' $ac_executable_extensions; do
6868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871    break 2
6872  fi
6873done
6874done
6875
6876fi
6877fi
6878F77=$ac_cv_prog_F77
6879if test -n "$F77"; then
6880  echo "$as_me:$LINENO: result: $F77" >&5
6881echo "${ECHO_T}$F77" >&6
6882else
6883  echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6
6885fi
6886
6887    test -n "$F77" && break
6888  done
6889fi
6890if test -z "$F77"; then
6891  ac_ct_F77=$F77
6892  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6893do
6894  # Extract the first word of "$ac_prog", so it can be a program name with args.
6895set dummy $ac_prog; ac_word=$2
6896echo "$as_me:$LINENO: checking for $ac_word" >&5
6897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6898if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6899  echo $ECHO_N "(cached) $ECHO_C" >&6
6900else
6901  if test -n "$ac_ct_F77"; then
6902  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6903else
6904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6905for as_dir in $PATH
6906do
6907  IFS=$as_save_IFS
6908  test -z "$as_dir" && as_dir=.
6909  for ac_exec_ext in '' $ac_executable_extensions; do
6910  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6911    ac_cv_prog_ac_ct_F77="$ac_prog"
6912    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6913    break 2
6914  fi
6915done
6916done
6917
6918fi
6919fi
6920ac_ct_F77=$ac_cv_prog_ac_ct_F77
6921if test -n "$ac_ct_F77"; then
6922  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6923echo "${ECHO_T}$ac_ct_F77" >&6
6924else
6925  echo "$as_me:$LINENO: result: no" >&5
6926echo "${ECHO_T}no" >&6
6927fi
6928
6929  test -n "$ac_ct_F77" && break
6930done
6931
6932  F77=$ac_ct_F77
6933fi
6934
6935
6936# Provide some information about the compiler.
6937echo "$as_me:6937:" \
6938     "checking for Fortran 77 compiler version" >&5
6939ac_compiler=`set X $ac_compile; echo $2`
6940{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6941  (eval $ac_compiler --version </dev/null >&5) 2>&5
6942  ac_status=$?
6943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944  (exit $ac_status); }
6945{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6946  (eval $ac_compiler -v </dev/null >&5) 2>&5
6947  ac_status=$?
6948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949  (exit $ac_status); }
6950{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6951  (eval $ac_compiler -V </dev/null >&5) 2>&5
6952  ac_status=$?
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); }
6955rm -f a.out
6956
6957# If we don't use `.F' as extension, the preprocessor is not run on the
6958# input file.  (Note that this only needs to work for GNU compilers.)
6959ac_save_ext=$ac_ext
6960ac_ext=F
6961echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6962echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6963if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6964  echo $ECHO_N "(cached) $ECHO_C" >&6
6965else
6966  cat >conftest.$ac_ext <<_ACEOF
6967      program main
6968#ifndef __GNUC__
6969       choke me
6970#endif
6971
6972      end
6973_ACEOF
6974rm -f conftest.$ac_objext
6975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6976  (eval $ac_compile) 2>conftest.er1
6977  ac_status=$?
6978  grep -v '^ *+' conftest.er1 >conftest.err
6979  rm -f conftest.er1
6980  cat conftest.err >&5
6981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982  (exit $ac_status); } &&
6983         { ac_try='test -z "$ac_f77_werror_flag"
6984                         || test ! -s conftest.err'
6985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6986  (eval $ac_try) 2>&5
6987  ac_status=$?
6988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989  (exit $ac_status); }; } &&
6990         { ac_try='test -s conftest.$ac_objext'
6991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6992  (eval $ac_try) 2>&5
6993  ac_status=$?
6994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995  (exit $ac_status); }; }; then
6996  ac_compiler_gnu=yes
6997else
6998  echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
7001ac_compiler_gnu=no
7002fi
7003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7004ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7005
7006fi
7007echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7008echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7009ac_ext=$ac_save_ext
7010ac_test_FFLAGS=${FFLAGS+set}
7011ac_save_FFLAGS=$FFLAGS
7012FFLAGS=
7013echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7014echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7015if test "${ac_cv_prog_f77_g+set}" = set; then
7016  echo $ECHO_N "(cached) $ECHO_C" >&6
7017else
7018  FFLAGS=-g
7019cat >conftest.$ac_ext <<_ACEOF
7020      program main
7021
7022      end
7023_ACEOF
7024rm -f conftest.$ac_objext
7025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7026  (eval $ac_compile) 2>conftest.er1
7027  ac_status=$?
7028  grep -v '^ *+' conftest.er1 >conftest.err
7029  rm -f conftest.er1
7030  cat conftest.err >&5
7031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032  (exit $ac_status); } &&
7033         { ac_try='test -z "$ac_f77_werror_flag"
7034                         || test ! -s conftest.err'
7035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036  (eval $ac_try) 2>&5
7037  ac_status=$?
7038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039  (exit $ac_status); }; } &&
7040         { ac_try='test -s conftest.$ac_objext'
7041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042  (eval $ac_try) 2>&5
7043  ac_status=$?
7044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045  (exit $ac_status); }; }; then
7046  ac_cv_prog_f77_g=yes
7047else
7048  echo "$as_me: failed program was:" >&5
7049sed 's/^/| /' conftest.$ac_ext >&5
7050
7051ac_cv_prog_f77_g=no
7052fi
7053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7054
7055fi
7056echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7057echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7058if test "$ac_test_FFLAGS" = set; then
7059  FFLAGS=$ac_save_FFLAGS
7060elif test $ac_cv_prog_f77_g = yes; then
7061  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7062    FFLAGS="-g -O2"
7063  else
7064    FFLAGS="-g"
7065  fi
7066else
7067  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7068    FFLAGS="-O2"
7069  else
7070    FFLAGS=
7071  fi
7072fi
7073
7074G77=`test $ac_compiler_gnu = yes && echo yes`
7075ac_ext=c
7076ac_cpp='$CPP $CPPFLAGS'
7077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079ac_compiler_gnu=$ac_cv_c_compiler_gnu
7080
7081
7082
7083# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7084
7085# find the maximum length of command line arguments
7086echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7087echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7088if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7089  echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091    i=0
7092  teststring="ABCD"
7093
7094  case $build_os in
7095  msdosdjgpp*)
7096    # On DJGPP, this test can blow up pretty badly due to problems in libc
7097    # (any single argument exceeding 2000 bytes causes a buffer overrun
7098    # during glob expansion).  Even if it were fixed, the result of this
7099    # check would be larger than it should be.
7100    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7101    ;;
7102
7103  gnu*)
7104    # Under GNU Hurd, this test is not required because there is
7105    # no limit to the length of command line arguments.
7106    # Libtool will interpret -1 as no limit whatsoever
7107    lt_cv_sys_max_cmd_len=-1;
7108    ;;
7109
7110  cygwin* | mingw*)
7111    # On Win9x/ME, this test blows up -- it succeeds, but takes
7112    # about 5 minutes as the teststring grows exponentially.
7113    # Worse, since 9x/ME are not pre-emptively multitasking,
7114    # you end up with a "frozen" computer, even though with patience
7115    # the test eventually succeeds (with a max line length of 256k).
7116    # Instead, let's just punt: use the minimum linelength reported by
7117    # all of the supported platforms: 8192 (on NT/2K/XP).
7118    lt_cv_sys_max_cmd_len=8192;
7119    ;;
7120
7121  amigaos*)
7122    # On AmigaOS with pdksh, this test takes hours, literally.
7123    # So we just punt and use a minimum line length of 8192.
7124    lt_cv_sys_max_cmd_len=8192;
7125    ;;
7126
7127  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7128    # This has been around since 386BSD, at least.  Likely further.
7129    if test -x /sbin/sysctl; then
7130      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7131    elif test -x /usr/sbin/sysctl; then
7132      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7133    else
7134      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7135    fi
7136    # And add a safety zone
7137    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7138    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7139    ;;
7140
7141  interix*)
7142    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7143    lt_cv_sys_max_cmd_len=196608
7144    ;;
7145
7146  osf*)
7147    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7148    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7149    # nice to cause kernel panics so lets avoid the loop below.
7150    # First set a reasonable default.
7151    lt_cv_sys_max_cmd_len=16384
7152    #
7153    if test -x /sbin/sysconfig; then
7154      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7155        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7156      esac
7157    fi
7158    ;;
7159  sco3.2v5*)
7160    lt_cv_sys_max_cmd_len=102400
7161    ;;
7162  sysv5* | sco5v6* | sysv4.2uw2*)
7163    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7164    if test -n "$kargmax"; then
7165      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7166    else
7167      lt_cv_sys_max_cmd_len=32768
7168    fi
7169    ;;
7170  *)
7171    # If test is not a shell built-in, we'll probably end up computing a
7172    # maximum length that is only half of the actual maximum length, but
7173    # we can't tell.
7174    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7175    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7176               = "XX$teststring") >/dev/null 2>&1 &&
7177            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7178            lt_cv_sys_max_cmd_len=$new_result &&
7179            test $i != 17 # 1/2 MB should be enough
7180    do
7181      i=`expr $i + 1`
7182      teststring=$teststring$teststring
7183    done
7184    teststring=
7185    # Add a significant safety factor because C++ compilers can tack on massive
7186    # amounts of additional arguments before passing them to the linker.
7187    # It appears as though 1/2 is a usable value.
7188    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7189    ;;
7190  esac
7191
7192fi
7193
7194if test -n $lt_cv_sys_max_cmd_len ; then
7195  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7196echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7197else
7198  echo "$as_me:$LINENO: result: none" >&5
7199echo "${ECHO_T}none" >&6
7200fi
7201
7202
7203
7204
7205# Check for command to grab the raw symbol name followed by C symbol from nm.
7206echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7207echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7208if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7209  echo $ECHO_N "(cached) $ECHO_C" >&6
7210else
7211
7212# These are sane defaults that work on at least a few old systems.
7213# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7214
7215# Character class describing NM global symbol codes.
7216symcode='[BCDEGRST]'
7217
7218# Regexp to match symbols that can be accessed directly from C.
7219sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7220
7221# Transform an extracted symbol line into a proper C declaration
7222lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7223
7224# Transform an extracted symbol line into symbol name and symbol address
7225lt_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'"
7226
7227# Define system-specific variables.
7228case $host_os in
7229aix*)
7230  symcode='[BCDT]'
7231  ;;
7232cygwin* | mingw* | pw32*)
7233  symcode='[ABCDGISTW]'
7234  ;;
7235hpux*) # Its linker distinguishes data from code symbols
7236  if test "$host_cpu" = ia64; then
7237    symcode='[ABCDEGRST]'
7238  fi
7239  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7240  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'"
7241  ;;
7242linux*)
7243  if test "$host_cpu" = ia64; then
7244    symcode='[ABCDGIRSTW]'
7245    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7246    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'"
7247  fi
7248  ;;
7249irix* | nonstopux*)
7250  symcode='[BCDEGRST]'
7251  ;;
7252osf*)
7253  symcode='[BCDEGQRST]'
7254  ;;
7255solaris*)
7256  symcode='[BDRT]'
7257  ;;
7258sco3.2v5*)
7259  symcode='[DT]'
7260  ;;
7261sysv4.2uw2*)
7262  symcode='[DT]'
7263  ;;
7264sysv5* | sco5v6* | unixware* | OpenUNIX*)
7265  symcode='[ABDT]'
7266  ;;
7267sysv4)
7268  symcode='[DFNSTU]'
7269  ;;
7270esac
7271
7272# Handle CRLF in mingw tool chain
7273opt_cr=
7274case $build_os in
7275mingw*)
7276  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7277  ;;
7278esac
7279
7280# If we're using GNU nm, then use its standard symbol codes.
7281case `$NM -V 2>&1` in
7282*GNU* | *'with BFD'*)
7283  symcode='[ABCDGIRSTW]' ;;
7284esac
7285
7286# Try without a prefix undercore, then with it.
7287for ac_symprfx in "" "_"; do
7288
7289  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7290  symxfrm="\\1 $ac_symprfx\\2 \\2"
7291
7292  # Write the raw and C identifiers.
7293  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7294
7295  # Check to see that the pipe works correctly.
7296  pipe_works=no
7297
7298  rm -f conftest*
7299  cat > conftest.$ac_ext <<EOF
7300#ifdef __cplusplus
7301extern "C" {
7302#endif
7303char nm_test_var;
7304void nm_test_func(){}
7305#ifdef __cplusplus
7306}
7307#endif
7308int main(){nm_test_var='a';nm_test_func();return(0);}
7309EOF
7310
7311  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7312  (eval $ac_compile) 2>&5
7313  ac_status=$?
7314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315  (exit $ac_status); }; then
7316    # Now try to grab the symbols.
7317    nlist=conftest.nm
7318    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7319  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7320  ac_status=$?
7321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322  (exit $ac_status); } && test -s "$nlist"; then
7323      # Try sorting and uniquifying the output.
7324      if sort "$nlist" | uniq > "$nlist"T; then
7325        mv -f "$nlist"T "$nlist"
7326      else
7327        rm -f "$nlist"T
7328      fi
7329
7330      # Make sure that we snagged all the symbols we need.
7331      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7332        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7333          cat <<EOF > conftest.$ac_ext
7334#ifdef __cplusplus
7335extern "C" {
7336#endif
7337
7338EOF
7339          # Now generate the symbol file.
7340          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7341
7342          cat <<EOF >> conftest.$ac_ext
7343#if defined (__STDC__) && __STDC__
7344# define lt_ptr_t void *
7345#else
7346# define lt_ptr_t char *
7347# define const
7348#endif
7349
7350/* The mapping between symbol names and symbols. */
7351const struct {
7352  const char *name;
7353  lt_ptr_t address;
7354}
7355lt_preloaded_symbols[] =
7356{
7357EOF
7358          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7359          cat <<\EOF >> conftest.$ac_ext
7360  {0, (lt_ptr_t) 0}
7361};
7362
7363#ifdef __cplusplus
7364}
7365#endif
7366EOF
7367          # Now try linking the two files.
7368          mv conftest.$ac_objext conftstm.$ac_objext
7369          lt_save_LIBS="$LIBS"
7370          lt_save_CFLAGS="$CFLAGS"
7371          LIBS="conftstm.$ac_objext"
7372          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7373          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7374  (eval $ac_link) 2>&5
7375  ac_status=$?
7376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7378            pipe_works=yes
7379          fi
7380          LIBS="$lt_save_LIBS"
7381          CFLAGS="$lt_save_CFLAGS"
7382        else
7383          echo "cannot find nm_test_func in $nlist" >&5
7384        fi
7385      else
7386        echo "cannot find nm_test_var in $nlist" >&5
7387      fi
7388    else
7389      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7390    fi
7391  else
7392    echo "$progname: failed program was:" >&5
7393    cat conftest.$ac_ext >&5
7394  fi
7395  rm -f conftest* conftst*
7396
7397  # Do not use the global_symbol_pipe unless it works.
7398  if test "$pipe_works" = yes; then
7399    break
7400  else
7401    lt_cv_sys_global_symbol_pipe=
7402  fi
7403done
7404
7405fi
7406
7407if test -z "$lt_cv_sys_global_symbol_pipe"; then
7408  lt_cv_sys_global_symbol_to_cdecl=
7409fi
7410if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7411  echo "$as_me:$LINENO: result: failed" >&5
7412echo "${ECHO_T}failed" >&6
7413else
7414  echo "$as_me:$LINENO: result: ok" >&5
7415echo "${ECHO_T}ok" >&6
7416fi
7417
7418echo "$as_me:$LINENO: checking for objdir" >&5
7419echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7420if test "${lt_cv_objdir+set}" = set; then
7421  echo $ECHO_N "(cached) $ECHO_C" >&6
7422else
7423  rm -f .libs 2>/dev/null
7424mkdir .libs 2>/dev/null
7425if test -d .libs; then
7426  lt_cv_objdir=.libs
7427else
7428  # MS-DOS does not allow filenames that begin with a dot.
7429  lt_cv_objdir=_libs
7430fi
7431rmdir .libs 2>/dev/null
7432fi
7433echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7434echo "${ECHO_T}$lt_cv_objdir" >&6
7435objdir=$lt_cv_objdir
7436
7437
7438
7439
7440
7441case $host_os in
7442aix3*)
7443  # AIX sometimes has problems with the GCC collect2 program.  For some
7444  # reason, if we set the COLLECT_NAMES environment variable, the problems
7445  # vanish in a puff of smoke.
7446  if test "X${COLLECT_NAMES+set}" != Xset; then
7447    COLLECT_NAMES=
7448    export COLLECT_NAMES
7449  fi
7450  ;;
7451esac
7452
7453# Sed substitution that helps us do robust quoting.  It backslashifies
7454# metacharacters that are still active within double-quoted strings.
7455Xsed='sed -e 1s/^X//'
7456sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7457
7458# Same as above, but do not quote variable references.
7459double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7460
7461# Sed substitution to delay expansion of an escaped shell variable in a
7462# double_quote_subst'ed string.
7463delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7464
7465# Sed substitution to avoid accidental globbing in evaled expressions
7466no_glob_subst='s/\*/\\\*/g'
7467
7468# Constants:
7469rm="rm -f"
7470
7471# Global variables:
7472default_ofile=libtool
7473can_build_shared=yes
7474
7475# All known linkers require a `.a' archive for static linking (except MSVC,
7476# which needs '.lib').
7477libext=a
7478ltmain="$ac_aux_dir/ltmain.sh"
7479ofile="$default_ofile"
7480with_gnu_ld="$lt_cv_prog_gnu_ld"
7481
7482if test -n "$ac_tool_prefix"; then
7483  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7484set dummy ${ac_tool_prefix}ar; ac_word=$2
7485echo "$as_me:$LINENO: checking for $ac_word" >&5
7486echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7487if test "${ac_cv_prog_AR+set}" = set; then
7488  echo $ECHO_N "(cached) $ECHO_C" >&6
7489else
7490  if test -n "$AR"; then
7491  ac_cv_prog_AR="$AR" # Let the user override the test.
7492else
7493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494for as_dir in $PATH
7495do
7496  IFS=$as_save_IFS
7497  test -z "$as_dir" && as_dir=.
7498  for ac_exec_ext in '' $ac_executable_extensions; do
7499  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500    ac_cv_prog_AR="${ac_tool_prefix}ar"
7501    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502    break 2
7503  fi
7504done
7505done
7506
7507fi
7508fi
7509AR=$ac_cv_prog_AR
7510if test -n "$AR"; then
7511  echo "$as_me:$LINENO: result: $AR" >&5
7512echo "${ECHO_T}$AR" >&6
7513else
7514  echo "$as_me:$LINENO: result: no" >&5
7515echo "${ECHO_T}no" >&6
7516fi
7517
7518fi
7519if test -z "$ac_cv_prog_AR"; then
7520  ac_ct_AR=$AR
7521  # Extract the first word of "ar", so it can be a program name with args.
7522set dummy ar; ac_word=$2
7523echo "$as_me:$LINENO: checking for $ac_word" >&5
7524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7525if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7526  echo $ECHO_N "(cached) $ECHO_C" >&6
7527else
7528  if test -n "$ac_ct_AR"; then
7529  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7530else
7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532for as_dir in $PATH
7533do
7534  IFS=$as_save_IFS
7535  test -z "$as_dir" && as_dir=.
7536  for ac_exec_ext in '' $ac_executable_extensions; do
7537  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538    ac_cv_prog_ac_ct_AR="ar"
7539    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540    break 2
7541  fi
7542done
7543done
7544
7545  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7546fi
7547fi
7548ac_ct_AR=$ac_cv_prog_ac_ct_AR
7549if test -n "$ac_ct_AR"; then
7550  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7551echo "${ECHO_T}$ac_ct_AR" >&6
7552else
7553  echo "$as_me:$LINENO: result: no" >&5
7554echo "${ECHO_T}no" >&6
7555fi
7556
7557  AR=$ac_ct_AR
7558else
7559  AR="$ac_cv_prog_AR"
7560fi
7561
7562if test -n "$ac_tool_prefix"; then
7563  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7564set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7565echo "$as_me:$LINENO: checking for $ac_word" >&5
7566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7567if test "${ac_cv_prog_RANLIB+set}" = set; then
7568  echo $ECHO_N "(cached) $ECHO_C" >&6
7569else
7570  if test -n "$RANLIB"; then
7571  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7572else
7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576  IFS=$as_save_IFS
7577  test -z "$as_dir" && as_dir=.
7578  for ac_exec_ext in '' $ac_executable_extensions; do
7579  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7581    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7582    break 2
7583  fi
7584done
7585done
7586
7587fi
7588fi
7589RANLIB=$ac_cv_prog_RANLIB
7590if test -n "$RANLIB"; then
7591  echo "$as_me:$LINENO: result: $RANLIB" >&5
7592echo "${ECHO_T}$RANLIB" >&6
7593else
7594  echo "$as_me:$LINENO: result: no" >&5
7595echo "${ECHO_T}no" >&6
7596fi
7597
7598fi
7599if test -z "$ac_cv_prog_RANLIB"; then
7600  ac_ct_RANLIB=$RANLIB
7601  # Extract the first word of "ranlib", so it can be a program name with args.
7602set dummy ranlib; ac_word=$2
7603echo "$as_me:$LINENO: checking for $ac_word" >&5
7604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7605if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7606  echo $ECHO_N "(cached) $ECHO_C" >&6
7607else
7608  if test -n "$ac_ct_RANLIB"; then
7609  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7610else
7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614  IFS=$as_save_IFS
7615  test -z "$as_dir" && as_dir=.
7616  for ac_exec_ext in '' $ac_executable_extensions; do
7617  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7618    ac_cv_prog_ac_ct_RANLIB="ranlib"
7619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7620    break 2
7621  fi
7622done
7623done
7624
7625  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7626fi
7627fi
7628ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7629if test -n "$ac_ct_RANLIB"; then
7630  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7631echo "${ECHO_T}$ac_ct_RANLIB" >&6
7632else
7633  echo "$as_me:$LINENO: result: no" >&5
7634echo "${ECHO_T}no" >&6
7635fi
7636
7637  RANLIB=$ac_ct_RANLIB
7638else
7639  RANLIB="$ac_cv_prog_RANLIB"
7640fi
7641
7642if test -n "$ac_tool_prefix"; then
7643  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7644set dummy ${ac_tool_prefix}strip; ac_word=$2
7645echo "$as_me:$LINENO: checking for $ac_word" >&5
7646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7647if test "${ac_cv_prog_STRIP+set}" = set; then
7648  echo $ECHO_N "(cached) $ECHO_C" >&6
7649else
7650  if test -n "$STRIP"; then
7651  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7652else
7653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7654for as_dir in $PATH
7655do
7656  IFS=$as_save_IFS
7657  test -z "$as_dir" && as_dir=.
7658  for ac_exec_ext in '' $ac_executable_extensions; do
7659  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7660    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7661    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7662    break 2
7663  fi
7664done
7665done
7666
7667fi
7668fi
7669STRIP=$ac_cv_prog_STRIP
7670if test -n "$STRIP"; then
7671  echo "$as_me:$LINENO: result: $STRIP" >&5
7672echo "${ECHO_T}$STRIP" >&6
7673else
7674  echo "$as_me:$LINENO: result: no" >&5
7675echo "${ECHO_T}no" >&6
7676fi
7677
7678fi
7679if test -z "$ac_cv_prog_STRIP"; then
7680  ac_ct_STRIP=$STRIP
7681  # Extract the first word of "strip", so it can be a program name with args.
7682set dummy strip; ac_word=$2
7683echo "$as_me:$LINENO: checking for $ac_word" >&5
7684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7685if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7686  echo $ECHO_N "(cached) $ECHO_C" >&6
7687else
7688  if test -n "$ac_ct_STRIP"; then
7689  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7690else
7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692for as_dir in $PATH
7693do
7694  IFS=$as_save_IFS
7695  test -z "$as_dir" && as_dir=.
7696  for ac_exec_ext in '' $ac_executable_extensions; do
7697  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7698    ac_cv_prog_ac_ct_STRIP="strip"
7699    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7700    break 2
7701  fi
7702done
7703done
7704
7705  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7706fi
7707fi
7708ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7709if test -n "$ac_ct_STRIP"; then
7710  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7711echo "${ECHO_T}$ac_ct_STRIP" >&6
7712else
7713  echo "$as_me:$LINENO: result: no" >&5
7714echo "${ECHO_T}no" >&6
7715fi
7716
7717  STRIP=$ac_ct_STRIP
7718else
7719  STRIP="$ac_cv_prog_STRIP"
7720fi
7721
7722
7723old_CC="$CC"
7724old_CFLAGS="$CFLAGS"
7725
7726# Set sane defaults for various variables
7727test -z "$AR" && AR=ar
7728test -z "$AR_FLAGS" && AR_FLAGS=cru
7729test -z "$AS" && AS=as
7730test -z "$CC" && CC=cc
7731test -z "$LTCC" && LTCC=$CC
7732test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7733test -z "$DLLTOOL" && DLLTOOL=dlltool
7734test -z "$LD" && LD=ld
7735test -z "$LN_S" && LN_S="ln -s"
7736test -z "$MAGIC_CMD" && MAGIC_CMD=file
7737test -z "$NM" && NM=nm
7738test -z "$SED" && SED=sed
7739test -z "$OBJDUMP" && OBJDUMP=objdump
7740test -z "$RANLIB" && RANLIB=:
7741test -z "$STRIP" && STRIP=:
7742test -z "$ac_objext" && ac_objext=o
7743
7744# Determine commands to create old-style static archives.
7745old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7746old_postinstall_cmds='chmod 644 $oldlib'
7747old_postuninstall_cmds=
7748
7749if test -n "$RANLIB"; then
7750  case $host_os in
7751  openbsd*)
7752    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7753    ;;
7754  *)
7755    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7756    ;;
7757  esac
7758  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7759fi
7760
7761for cc_temp in $compiler""; do
7762  case $cc_temp in
7763    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7764    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7765    \-*) ;;
7766    *) break;;
7767  esac
7768done
7769cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7770
7771
7772# Only perform the check for file, if the check method requires it
7773case $deplibs_check_method in
7774file_magic*)
7775  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7776    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7777echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7778if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7779  echo $ECHO_N "(cached) $ECHO_C" >&6
7780else
7781  case $MAGIC_CMD in
7782[\\/*] |  ?:[\\/]*)
7783  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7784  ;;
7785*)
7786  lt_save_MAGIC_CMD="$MAGIC_CMD"
7787  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7788  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7789  for ac_dir in $ac_dummy; do
7790    IFS="$lt_save_ifs"
7791    test -z "$ac_dir" && ac_dir=.
7792    if test -f $ac_dir/${ac_tool_prefix}file; then
7793      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7794      if test -n "$file_magic_test_file"; then
7795        case $deplibs_check_method in
7796        "file_magic "*)
7797          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7798          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7799          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7800            $EGREP "$file_magic_regex" > /dev/null; then
7801            :
7802          else
7803            cat <<EOF 1>&2
7804
7805*** Warning: the command libtool uses to detect shared libraries,
7806*** $file_magic_cmd, produces output that libtool cannot recognize.
7807*** The result is that libtool may fail to recognize shared libraries
7808*** as such.  This will affect the creation of libtool libraries that
7809*** depend on shared libraries, but programs linked with such libtool
7810*** libraries will work regardless of this problem.  Nevertheless, you
7811*** may want to report the problem to your system manager and/or to
7812*** bug-libtool@gnu.org
7813
7814EOF
7815          fi ;;
7816        esac
7817      fi
7818      break
7819    fi
7820  done
7821  IFS="$lt_save_ifs"
7822  MAGIC_CMD="$lt_save_MAGIC_CMD"
7823  ;;
7824esac
7825fi
7826
7827MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7828if test -n "$MAGIC_CMD"; then
7829  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7830echo "${ECHO_T}$MAGIC_CMD" >&6
7831else
7832  echo "$as_me:$LINENO: result: no" >&5
7833echo "${ECHO_T}no" >&6
7834fi
7835
7836if test -z "$lt_cv_path_MAGIC_CMD"; then
7837  if test -n "$ac_tool_prefix"; then
7838    echo "$as_me:$LINENO: checking for file" >&5
7839echo $ECHO_N "checking for file... $ECHO_C" >&6
7840if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7841  echo $ECHO_N "(cached) $ECHO_C" >&6
7842else
7843  case $MAGIC_CMD in
7844[\\/*] |  ?:[\\/]*)
7845  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7846  ;;
7847*)
7848  lt_save_MAGIC_CMD="$MAGIC_CMD"
7849  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7850  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7851  for ac_dir in $ac_dummy; do
7852    IFS="$lt_save_ifs"
7853    test -z "$ac_dir" && ac_dir=.
7854    if test -f $ac_dir/file; then
7855      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7856      if test -n "$file_magic_test_file"; then
7857        case $deplibs_check_method in
7858        "file_magic "*)
7859          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7860          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7861          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7862            $EGREP "$file_magic_regex" > /dev/null; then
7863            :
7864          else
7865            cat <<EOF 1>&2
7866
7867*** Warning: the command libtool uses to detect shared libraries,
7868*** $file_magic_cmd, produces output that libtool cannot recognize.
7869*** The result is that libtool may fail to recognize shared libraries
7870*** as such.  This will affect the creation of libtool libraries that
7871*** depend on shared libraries, but programs linked with such libtool
7872*** libraries will work regardless of this problem.  Nevertheless, you
7873*** may want to report the problem to your system manager and/or to
7874*** bug-libtool@gnu.org
7875
7876EOF
7877          fi ;;
7878        esac
7879      fi
7880      break
7881    fi
7882  done
7883  IFS="$lt_save_ifs"
7884  MAGIC_CMD="$lt_save_MAGIC_CMD"
7885  ;;
7886esac
7887fi
7888
7889MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7890if test -n "$MAGIC_CMD"; then
7891  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7892echo "${ECHO_T}$MAGIC_CMD" >&6
7893else
7894  echo "$as_me:$LINENO: result: no" >&5
7895echo "${ECHO_T}no" >&6
7896fi
7897
7898  else
7899    MAGIC_CMD=:
7900  fi
7901fi
7902
7903  fi
7904  ;;
7905esac
7906
7907enable_dlopen=no
7908enable_win32_dll=no
7909
7910# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7911if test "${enable_libtool_lock+set}" = set; then
7912  enableval="$enable_libtool_lock"
7913
7914fi;
7915test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7916
7917
7918# Check whether --with-pic or --without-pic was given.
7919if test "${with_pic+set}" = set; then
7920  withval="$with_pic"
7921  pic_mode="$withval"
7922else
7923  pic_mode=default
7924fi;
7925test -z "$pic_mode" && pic_mode=default
7926
7927# Use C for the default configuration in the libtool script
7928tagname=
7929lt_save_CC="$CC"
7930ac_ext=c
7931ac_cpp='$CPP $CPPFLAGS'
7932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7934ac_compiler_gnu=$ac_cv_c_compiler_gnu
7935
7936
7937# Source file extension for C test sources.
7938ac_ext=c
7939
7940# Object file extension for compiled C test sources.
7941objext=o
7942objext=$objext
7943
7944# Code to be used in simple compile tests
7945lt_simple_compile_test_code="int some_variable = 0;\n"
7946
7947# Code to be used in simple link tests
7948lt_simple_link_test_code='int main(){return(0);}\n'
7949
7950
7951# If no C compiler was specified, use CC.
7952LTCC=${LTCC-"$CC"}
7953
7954# If no C compiler flags were specified, use CFLAGS.
7955LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7956
7957# Allow CC to be a program name with arguments.
7958compiler=$CC
7959
7960
7961# save warnings/boilerplate of simple test code
7962ac_outfile=conftest.$ac_objext
7963printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7964eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7965_lt_compiler_boilerplate=`cat conftest.err`
7966$rm conftest*
7967
7968ac_outfile=conftest.$ac_objext
7969printf "$lt_simple_link_test_code" >conftest.$ac_ext
7970eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7971_lt_linker_boilerplate=`cat conftest.err`
7972$rm conftest*
7973
7974
7975## CAVEAT EMPTOR:
7976## There is no encapsulation within the following macros, do not change
7977## the running order or otherwise move them around unless you know exactly
7978## what you are doing...
7979
7980lt_prog_compiler_no_builtin_flag=
7981
7982if test "$GCC" = yes; then
7983  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7984
7985
7986echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7987echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7988if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7989  echo $ECHO_N "(cached) $ECHO_C" >&6
7990else
7991  lt_cv_prog_compiler_rtti_exceptions=no
7992  ac_outfile=conftest.$ac_objext
7993   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7994   lt_compiler_flag="-fno-rtti -fno-exceptions"
7995   # Insert the option either (1) after the last *FLAGS variable, or
7996   # (2) before a word containing "conftest.", or (3) at the end.
7997   # Note that $ac_compile itself does not contain backslashes and begins
7998   # with a dollar sign (not a hyphen), so the echo should work correctly.
7999   # The option is referenced via a variable to avoid confusing sed.
8000   lt_compile=`echo "$ac_compile" | $SED \
8001   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8002   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8003   -e 's:$: $lt_compiler_flag:'`
8004   (eval echo "\"\$as_me:8004: $lt_compile\"" >&5)
8005   (eval "$lt_compile" 2>conftest.err)
8006   ac_status=$?
8007   cat conftest.err >&5
8008   echo "$as_me:8008: \$? = $ac_status" >&5
8009   if (exit $ac_status) && test -s "$ac_outfile"; then
8010     # The compiler can only warn and ignore the option if not recognized
8011     # So say no if there are warnings other than the usual output.
8012     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8013     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8014     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8015       lt_cv_prog_compiler_rtti_exceptions=yes
8016     fi
8017   fi
8018   $rm conftest*
8019
8020fi
8021echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8022echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8023
8024if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8025    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8026else
8027    :
8028fi
8029
8030fi
8031
8032lt_prog_compiler_wl=
8033lt_prog_compiler_pic=
8034lt_prog_compiler_static=
8035
8036echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8037echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8038
8039  if test "$GCC" = yes; then
8040    lt_prog_compiler_wl='-Wl,'
8041    lt_prog_compiler_static='-static'
8042
8043    case $host_os in
8044      aix*)
8045      # All AIX code is PIC.
8046      if test "$host_cpu" = ia64; then
8047        # AIX 5 now supports IA64 processor
8048        lt_prog_compiler_static='-Bstatic'
8049      fi
8050      ;;
8051
8052    amigaos*)
8053      # FIXME: we need at least 68020 code to build shared libraries, but
8054      # adding the `-m68020' flag to GCC prevents building anything better,
8055      # like `-m68040'.
8056      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8057      ;;
8058
8059    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8060      # PIC is the default for these OSes.
8061      ;;
8062
8063    mingw* | pw32* | os2*)
8064      # This hack is so that the source file can tell whether it is being
8065      # built for inclusion in a dll (and should export symbols for example).
8066      lt_prog_compiler_pic='-DDLL_EXPORT'
8067      ;;
8068
8069    darwin* | rhapsody*)
8070      # PIC is the default on this platform
8071      # Common symbols not allowed in MH_DYLIB files
8072      lt_prog_compiler_pic='-fno-common'
8073      ;;
8074
8075    interix3*)
8076      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8077      # Instead, we relocate shared libraries at runtime.
8078      ;;
8079
8080    msdosdjgpp*)
8081      # Just because we use GCC doesn't mean we suddenly get shared libraries
8082      # on systems that don't support them.
8083      lt_prog_compiler_can_build_shared=no
8084      enable_shared=no
8085      ;;
8086
8087    sysv4*MP*)
8088      if test -d /usr/nec; then
8089        lt_prog_compiler_pic=-Kconform_pic
8090      fi
8091      ;;
8092
8093    hpux*)
8094      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8095      # not for PA HP-UX.
8096      case $host_cpu in
8097      hppa*64*|ia64*)
8098        # +Z the default
8099        ;;
8100      *)
8101        lt_prog_compiler_pic='-fPIC'
8102        ;;
8103      esac
8104      ;;
8105
8106    *)
8107      lt_prog_compiler_pic='-fPIC'
8108      ;;
8109    esac
8110  else
8111    # PORTME Check for flag to pass linker flags through the system compiler.
8112    case $host_os in
8113    aix*)
8114      lt_prog_compiler_wl='-Wl,'
8115      if test "$host_cpu" = ia64; then
8116        # AIX 5 now supports IA64 processor
8117        lt_prog_compiler_static='-Bstatic'
8118      else
8119        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8120      fi
8121      ;;
8122      darwin*)
8123        # PIC is the default on this platform
8124        # Common symbols not allowed in MH_DYLIB files
8125       case $cc_basename in
8126         xlc*)
8127         lt_prog_compiler_pic='-qnocommon'
8128         lt_prog_compiler_wl='-Wl,'
8129         ;;
8130       esac
8131       ;;
8132
8133    mingw* | pw32* | os2*)
8134      # This hack is so that the source file can tell whether it is being
8135      # built for inclusion in a dll (and should export symbols for example).
8136      lt_prog_compiler_pic='-DDLL_EXPORT'
8137      ;;
8138
8139    hpux9* | hpux10* | hpux11*)
8140      lt_prog_compiler_wl='-Wl,'
8141      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8142      # not for PA HP-UX.
8143      case $host_cpu in
8144      hppa*64*|ia64*)
8145        # +Z the default
8146        ;;
8147      *)
8148        lt_prog_compiler_pic='+Z'
8149        ;;
8150      esac
8151      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8152      lt_prog_compiler_static='${wl}-a ${wl}archive'
8153      ;;
8154
8155    irix5* | irix6* | nonstopux*)
8156      lt_prog_compiler_wl='-Wl,'
8157      # PIC (with -KPIC) is the default.
8158      lt_prog_compiler_static='-non_shared'
8159      ;;
8160
8161    newsos6)
8162      lt_prog_compiler_pic='-KPIC'
8163      lt_prog_compiler_static='-Bstatic'
8164      ;;
8165
8166    linux*)
8167      case $cc_basename in
8168      icc* | ecc*)
8169        lt_prog_compiler_wl='-Wl,'
8170        lt_prog_compiler_pic='-KPIC'
8171        lt_prog_compiler_static='-static'
8172        ;;
8173      pgcc* | pgf77* | pgf90* | pgf95*)
8174        # Portland Group compilers (*not* the Pentium gcc compiler,
8175        # which looks to be a dead project)
8176        lt_prog_compiler_wl='-Wl,'
8177        lt_prog_compiler_pic='-fpic'
8178        lt_prog_compiler_static='-Bstatic'
8179        ;;
8180      ccc*)
8181        lt_prog_compiler_wl='-Wl,'
8182        # All Alpha code is PIC.
8183        lt_prog_compiler_static='-non_shared'
8184        ;;
8185      esac
8186      ;;
8187
8188    osf3* | osf4* | osf5*)
8189      lt_prog_compiler_wl='-Wl,'
8190      # All OSF/1 code is PIC.
8191      lt_prog_compiler_static='-non_shared'
8192      ;;
8193
8194    solaris*)
8195      lt_prog_compiler_pic='-KPIC'
8196      lt_prog_compiler_static='-Bstatic'
8197      case $cc_basename in
8198      f77* | f90* | f95*)
8199        lt_prog_compiler_wl='-Qoption ld ';;
8200      *)
8201        lt_prog_compiler_wl='-Wl,';;
8202      esac
8203      ;;
8204
8205    sunos4*)
8206      lt_prog_compiler_wl='-Qoption ld '
8207      lt_prog_compiler_pic='-PIC'
8208      lt_prog_compiler_static='-Bstatic'
8209      ;;
8210
8211    sysv4 | sysv4.2uw2* | sysv4.3*)
8212      lt_prog_compiler_wl='-Wl,'
8213      lt_prog_compiler_pic='-KPIC'
8214      lt_prog_compiler_static='-Bstatic'
8215      ;;
8216
8217    sysv4*MP*)
8218      if test -d /usr/nec ;then
8219        lt_prog_compiler_pic='-Kconform_pic'
8220        lt_prog_compiler_static='-Bstatic'
8221      fi
8222      ;;
8223
8224    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8225      lt_prog_compiler_wl='-Wl,'
8226      lt_prog_compiler_pic='-KPIC'
8227      lt_prog_compiler_static='-Bstatic'
8228      ;;
8229
8230    unicos*)
8231      lt_prog_compiler_wl='-Wl,'
8232      lt_prog_compiler_can_build_shared=no
8233      ;;
8234
8235    uts4*)
8236      lt_prog_compiler_pic='-pic'
8237      lt_prog_compiler_static='-Bstatic'
8238      ;;
8239
8240    *)
8241      lt_prog_compiler_can_build_shared=no
8242      ;;
8243    esac
8244  fi
8245
8246echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8247echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8248
8249#
8250# Check to make sure the PIC flag actually works.
8251#
8252if test -n "$lt_prog_compiler_pic"; then
8253
8254echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8255echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8256if test "${lt_prog_compiler_pic_works+set}" = set; then
8257  echo $ECHO_N "(cached) $ECHO_C" >&6
8258else
8259  lt_prog_compiler_pic_works=no
8260  ac_outfile=conftest.$ac_objext
8261   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8262   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8263   # Insert the option either (1) after the last *FLAGS variable, or
8264   # (2) before a word containing "conftest.", or (3) at the end.
8265   # Note that $ac_compile itself does not contain backslashes and begins
8266   # with a dollar sign (not a hyphen), so the echo should work correctly.
8267   # The option is referenced via a variable to avoid confusing sed.
8268   lt_compile=`echo "$ac_compile" | $SED \
8269   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8270   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8271   -e 's:$: $lt_compiler_flag:'`
8272   (eval echo "\"\$as_me:8272: $lt_compile\"" >&5)
8273   (eval "$lt_compile" 2>conftest.err)
8274   ac_status=$?
8275   cat conftest.err >&5
8276   echo "$as_me:8276: \$? = $ac_status" >&5
8277   if (exit $ac_status) && test -s "$ac_outfile"; then
8278     # The compiler can only warn and ignore the option if not recognized
8279     # So say no if there are warnings other than the usual output.
8280     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8281     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8282     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8283       lt_prog_compiler_pic_works=yes
8284     fi
8285   fi
8286   $rm conftest*
8287
8288fi
8289echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8290echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8291
8292if test x"$lt_prog_compiler_pic_works" = xyes; then
8293    case $lt_prog_compiler_pic in
8294     "" | " "*) ;;
8295     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8296     esac
8297else
8298    lt_prog_compiler_pic=
8299     lt_prog_compiler_can_build_shared=no
8300fi
8301
8302fi
8303case $host_os in
8304  # For platforms which do not support PIC, -DPIC is meaningless:
8305  *djgpp*)
8306    lt_prog_compiler_pic=
8307    ;;
8308  *)
8309    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8310    ;;
8311esac
8312
8313#
8314# Check to make sure the static flag actually works.
8315#
8316wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8317echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8318echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8319if test "${lt_prog_compiler_static_works+set}" = set; then
8320  echo $ECHO_N "(cached) $ECHO_C" >&6
8321else
8322  lt_prog_compiler_static_works=no
8323   save_LDFLAGS="$LDFLAGS"
8324   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8325   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8326   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8327     # The linker can only warn and ignore the option if not recognized
8328     # So say no if there are warnings
8329     if test -s conftest.err; then
8330       # Append any errors to the config.log.
8331       cat conftest.err 1>&5
8332       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8333       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8334       if diff conftest.exp conftest.er2 >/dev/null; then
8335         lt_prog_compiler_static_works=yes
8336       fi
8337     else
8338       lt_prog_compiler_static_works=yes
8339     fi
8340   fi
8341   $rm conftest*
8342   LDFLAGS="$save_LDFLAGS"
8343
8344fi
8345echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8346echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8347
8348if test x"$lt_prog_compiler_static_works" = xyes; then
8349    :
8350else
8351    lt_prog_compiler_static=
8352fi
8353
8354
8355echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8356echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8357if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8358  echo $ECHO_N "(cached) $ECHO_C" >&6
8359else
8360  lt_cv_prog_compiler_c_o=no
8361   $rm -r conftest 2>/dev/null
8362   mkdir conftest
8363   cd conftest
8364   mkdir out
8365   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8366
8367   lt_compiler_flag="-o out/conftest2.$ac_objext"
8368   # Insert the option either (1) after the last *FLAGS variable, or
8369   # (2) before a word containing "conftest.", or (3) at the end.
8370   # Note that $ac_compile itself does not contain backslashes and begins
8371   # with a dollar sign (not a hyphen), so the echo should work correctly.
8372   lt_compile=`echo "$ac_compile" | $SED \
8373   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8374   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8375   -e 's:$: $lt_compiler_flag:'`
8376   (eval echo "\"\$as_me:8376: $lt_compile\"" >&5)
8377   (eval "$lt_compile" 2>out/conftest.err)
8378   ac_status=$?
8379   cat out/conftest.err >&5
8380   echo "$as_me:8380: \$? = $ac_status" >&5
8381   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8382   then
8383     # The compiler can only warn and ignore the option if not recognized
8384     # So say no if there are warnings
8385     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8386     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8387     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8388       lt_cv_prog_compiler_c_o=yes
8389     fi
8390   fi
8391   chmod u+w . 2>&5
8392   $rm conftest*
8393   # SGI C++ compiler will create directory out/ii_files/ for
8394   # template instantiation
8395   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8396   $rm out/* && rmdir out
8397   cd ..
8398   rmdir conftest
8399   $rm conftest*
8400
8401fi
8402echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8403echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8404
8405
8406hard_links="nottested"
8407if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8408  # do not overwrite the value of need_locks provided by the user
8409  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8410echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8411  hard_links=yes
8412  $rm conftest*
8413  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8414  touch conftest.a
8415  ln conftest.a conftest.b 2>&5 || hard_links=no
8416  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8417  echo "$as_me:$LINENO: result: $hard_links" >&5
8418echo "${ECHO_T}$hard_links" >&6
8419  if test "$hard_links" = no; then
8420    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8421echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8422    need_locks=warn
8423  fi
8424else
8425  need_locks=no
8426fi
8427
8428echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8429echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8430
8431  runpath_var=
8432  allow_undefined_flag=
8433  enable_shared_with_static_runtimes=no
8434  archive_cmds=
8435  archive_expsym_cmds=
8436  old_archive_From_new_cmds=
8437  old_archive_from_expsyms_cmds=
8438  export_dynamic_flag_spec=
8439  whole_archive_flag_spec=
8440  thread_safe_flag_spec=
8441  hardcode_libdir_flag_spec=
8442  hardcode_libdir_flag_spec_ld=
8443  hardcode_libdir_separator=
8444  hardcode_direct=no
8445  hardcode_minus_L=no
8446  hardcode_shlibpath_var=unsupported
8447  link_all_deplibs=unknown
8448  hardcode_automatic=no
8449  module_cmds=
8450  module_expsym_cmds=
8451  always_export_symbols=no
8452  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8453  # include_expsyms should be a list of space-separated symbols to be *always*
8454  # included in the symbol list
8455  include_expsyms=
8456  # exclude_expsyms can be an extended regexp of symbols to exclude
8457  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8458  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8459  # as well as any symbol that contains `d'.
8460  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8461  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8462  # platforms (ab)use it in PIC code, but their linkers get confused if
8463  # the symbol is explicitly referenced.  Since portable code cannot
8464  # rely on this symbol name, it's probably fine to never include it in
8465  # preloaded symbol tables.
8466  extract_expsyms_cmds=
8467  # Just being paranoid about ensuring that cc_basename is set.
8468  for cc_temp in $compiler""; do
8469  case $cc_temp in
8470    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8471    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8472    \-*) ;;
8473    *) break;;
8474  esac
8475done
8476cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8477
8478  case $host_os in
8479  cygwin* | mingw* | pw32*)
8480    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8481    # When not using gcc, we currently assume that we are using
8482    # Microsoft Visual C++.
8483    if test "$GCC" != yes; then
8484      with_gnu_ld=no
8485    fi
8486    ;;
8487  interix*)
8488    # we just hope/assume this is gcc and not c89 (= MSVC++)
8489    with_gnu_ld=yes
8490    ;;
8491  openbsd*)
8492    with_gnu_ld=no
8493    ;;
8494  esac
8495
8496  ld_shlibs=yes
8497  if test "$with_gnu_ld" = yes; then
8498    # If archive_cmds runs LD, not CC, wlarc should be empty
8499    wlarc='${wl}'
8500
8501    # Set some defaults for GNU ld with shared library support. These
8502    # are reset later if shared libraries are not supported. Putting them
8503    # here allows them to be overridden if necessary.
8504    runpath_var=LD_RUN_PATH
8505    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8506    export_dynamic_flag_spec='${wl}--export-dynamic'
8507    # ancient GNU ld didn't support --whole-archive et. al.
8508    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8509        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8510      else
8511        whole_archive_flag_spec=
8512    fi
8513    supports_anon_versioning=no
8514    case `$LD -v 2>/dev/null` in
8515      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8516      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8517      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8518      *\ 2.11.*) ;; # other 2.11 versions
8519      *) supports_anon_versioning=yes ;;
8520    esac
8521
8522    # See if GNU ld supports shared libraries.
8523    case $host_os in
8524    aix3* | aix4* | aix5*)
8525      # On AIX/PPC, the GNU linker is very broken
8526      if test "$host_cpu" != ia64; then
8527        ld_shlibs=no
8528        cat <<EOF 1>&2
8529
8530*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8531*** to be unable to reliably create shared libraries on AIX.
8532*** Therefore, libtool is disabling shared libraries support.  If you
8533*** really care for shared libraries, you may want to modify your PATH
8534*** so that a non-GNU linker is found, and then restart.
8535
8536EOF
8537      fi
8538      ;;
8539
8540    amigaos*)
8541      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)'
8542      hardcode_libdir_flag_spec='-L$libdir'
8543      hardcode_minus_L=yes
8544
8545      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8546      # that the semantics of dynamic libraries on AmigaOS, at least up
8547      # to version 4, is to share data among multiple programs linked
8548      # with the same dynamic library.  Since this doesn't match the
8549      # behavior of shared libraries on other platforms, we can't use
8550      # them.
8551      ld_shlibs=no
8552      ;;
8553
8554    beos*)
8555      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8556        allow_undefined_flag=unsupported
8557        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8558        # support --undefined.  This deserves some investigation.  FIXME
8559        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8560      else
8561        ld_shlibs=no
8562      fi
8563      ;;
8564
8565    cygwin* | mingw* | pw32*)
8566      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8567      # as there is no search path for DLLs.
8568      hardcode_libdir_flag_spec='-L$libdir'
8569      allow_undefined_flag=unsupported
8570      always_export_symbols=no
8571      enable_shared_with_static_runtimes=yes
8572      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8573
8574      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8575        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8576        # If the export-symbols file already is a .def file (1st line
8577        # is EXPORTS), use it as is; otherwise, prepend...
8578        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8579          cp $export_symbols $output_objdir/$soname.def;
8580        else
8581          echo EXPORTS > $output_objdir/$soname.def;
8582          cat $export_symbols >> $output_objdir/$soname.def;
8583        fi~
8584        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8585      else
8586        ld_shlibs=no
8587      fi
8588      ;;
8589
8590    interix3*)
8591      hardcode_direct=no
8592      hardcode_shlibpath_var=no
8593      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8594      export_dynamic_flag_spec='${wl}-E'
8595      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8596      # Instead, shared libraries are loaded at an image base (0x10000000 by
8597      # default) and relocated if they conflict, which is a slow very memory
8598      # consuming and fragmenting process.  To avoid this, we pick a random,
8599      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8600      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8601      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8602      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'
8603      ;;
8604
8605    linux*)
8606      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8607        tmp_addflag=
8608        case $cc_basename,$host_cpu in
8609        pgcc*)                          # Portland Group C compiler
8610          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'
8611          tmp_addflag=' $pic_flag'
8612          ;;
8613        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8614          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'
8615          tmp_addflag=' $pic_flag -Mnomain' ;;
8616        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8617          tmp_addflag=' -i_dynamic' ;;
8618        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8619          tmp_addflag=' -i_dynamic -nofor_main' ;;
8620        ifc* | ifort*)                  # Intel Fortran compiler
8621          tmp_addflag=' -nofor_main' ;;
8622        esac
8623        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8624
8625        if test $supports_anon_versioning = yes; then
8626          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8627  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8628  $echo "local: *; };" >> $output_objdir/$libname.ver~
8629          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8630        fi
8631      else
8632        ld_shlibs=no
8633      fi
8634      ;;
8635
8636    netbsd*)
8637      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8638        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8639        wlarc=
8640      else
8641        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8643      fi
8644      ;;
8645
8646    solaris*)
8647      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8648        ld_shlibs=no
8649        cat <<EOF 1>&2
8650
8651*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8652*** create shared libraries on Solaris systems.  Therefore, libtool
8653*** is disabling shared libraries support.  We urge you to upgrade GNU
8654*** binutils to release 2.9.1 or newer.  Another option is to modify
8655*** your PATH or compiler configuration so that the native linker is
8656*** used, and then restart.
8657
8658EOF
8659      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8660        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8661        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8662      else
8663        ld_shlibs=no
8664      fi
8665      ;;
8666
8667    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8668      case `$LD -v 2>&1` in
8669        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8670        ld_shlibs=no
8671        cat <<_LT_EOF 1>&2
8672
8673*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8674*** reliably create shared libraries on SCO systems.  Therefore, libtool
8675*** is disabling shared libraries support.  We urge you to upgrade GNU
8676*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8677*** your PATH or compiler configuration so that the native linker is
8678*** used, and then restart.
8679
8680_LT_EOF
8681        ;;
8682        *)
8683          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8684            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8685            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8686            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8687          else
8688            ld_shlibs=no
8689          fi
8690        ;;
8691      esac
8692      ;;
8693
8694    sunos4*)
8695      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8696      wlarc=
8697      hardcode_direct=yes
8698      hardcode_shlibpath_var=no
8699      ;;
8700
8701    *)
8702      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8703        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8704        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8705      else
8706        ld_shlibs=no
8707      fi
8708      ;;
8709    esac
8710
8711    if test "$ld_shlibs" = no; then
8712      runpath_var=
8713      hardcode_libdir_flag_spec=
8714      export_dynamic_flag_spec=
8715      whole_archive_flag_spec=
8716    fi
8717  else
8718    # PORTME fill in a description of your system's linker (not GNU ld)
8719    case $host_os in
8720    aix3*)
8721      allow_undefined_flag=unsupported
8722      always_export_symbols=yes
8723      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'
8724      # Note: this linker hardcodes the directories in LIBPATH if there
8725      # are no directories specified by -L.
8726      hardcode_minus_L=yes
8727      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8728        # Neither direct hardcoding nor static linking is supported with a
8729        # broken collect2.
8730        hardcode_direct=unsupported
8731      fi
8732      ;;
8733
8734    aix4* | aix5*)
8735      if test "$host_cpu" = ia64; then
8736        # On IA64, the linker does run time linking by default, so we don't
8737        # have to do anything special.
8738        aix_use_runtimelinking=no
8739        exp_sym_flag='-Bexport'
8740        no_entry_flag=""
8741      else
8742        # If we're using GNU nm, then we don't want the "-C" option.
8743        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8744        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8745          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'
8746        else
8747          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'
8748        fi
8749        aix_use_runtimelinking=no
8750
8751        # Test if we are trying to use run time linking or normal
8752        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8753        # need to do runtime linking.
8754        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8755          for ld_flag in $LDFLAGS; do
8756          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8757            aix_use_runtimelinking=yes
8758            break
8759          fi
8760          done
8761          ;;
8762        esac
8763
8764        exp_sym_flag='-bexport'
8765        no_entry_flag='-bnoentry'
8766      fi
8767
8768      # When large executables or shared objects are built, AIX ld can
8769      # have problems creating the table of contents.  If linking a library
8770      # or program results in "error TOC overflow" add -mminimal-toc to
8771      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8772      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8773
8774      archive_cmds=''
8775      hardcode_direct=yes
8776      hardcode_libdir_separator=':'
8777      link_all_deplibs=yes
8778
8779      if test "$GCC" = yes; then
8780        case $host_os in aix4.[012]|aix4.[012].*)
8781        # We only want to do this on AIX 4.2 and lower, the check
8782        # below for broken collect2 doesn't work under 4.3+
8783          collect2name=`${CC} -print-prog-name=collect2`
8784          if test -f "$collect2name" && \
8785           strings "$collect2name" | grep resolve_lib_name >/dev/null
8786          then
8787          # We have reworked collect2
8788          hardcode_direct=yes
8789          else
8790          # We have old collect2
8791          hardcode_direct=unsupported
8792          # It fails to find uninstalled libraries when the uninstalled
8793          # path is not listed in the libpath.  Setting hardcode_minus_L
8794          # to unsupported forces relinking
8795          hardcode_minus_L=yes
8796          hardcode_libdir_flag_spec='-L$libdir'
8797          hardcode_libdir_separator=
8798          fi
8799          ;;
8800        esac
8801        shared_flag='-shared'
8802        if test "$aix_use_runtimelinking" = yes; then
8803          shared_flag="$shared_flag "'${wl}-G'
8804        fi
8805      else
8806        # not using gcc
8807        if test "$host_cpu" = ia64; then
8808        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8809        # chokes on -Wl,-G. The following line is correct:
8810          shared_flag='-G'
8811        else
8812          if test "$aix_use_runtimelinking" = yes; then
8813            shared_flag='${wl}-G'
8814          else
8815            shared_flag='${wl}-bM:SRE'
8816          fi
8817        fi
8818      fi
8819
8820      # It seems that -bexpall does not export symbols beginning with
8821      # underscore (_), so it is better to generate a list of symbols to export.
8822      always_export_symbols=yes
8823      if test "$aix_use_runtimelinking" = yes; then
8824        # Warning - without using the other runtime loading flags (-brtl),
8825        # -berok will link without error, but may produce a broken library.
8826        allow_undefined_flag='-berok'
8827       # Determine the default libpath from the value encoded in an empty executable.
8828       cat >conftest.$ac_ext <<_ACEOF
8829/* confdefs.h.  */
8830_ACEOF
8831cat confdefs.h >>conftest.$ac_ext
8832cat >>conftest.$ac_ext <<_ACEOF
8833/* end confdefs.h.  */
8834
8835int
8836main ()
8837{
8838
8839  ;
8840  return 0;
8841}
8842_ACEOF
8843rm -f conftest.$ac_objext conftest$ac_exeext
8844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845  (eval $ac_link) 2>conftest.er1
8846  ac_status=$?
8847  grep -v '^ *+' conftest.er1 >conftest.err
8848  rm -f conftest.er1
8849  cat conftest.err >&5
8850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851  (exit $ac_status); } &&
8852         { ac_try='test -z "$ac_c_werror_flag"
8853                         || test ! -s conftest.err'
8854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8855  (eval $ac_try) 2>&5
8856  ac_status=$?
8857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858  (exit $ac_status); }; } &&
8859         { ac_try='test -s conftest$ac_exeext'
8860  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861  (eval $ac_try) 2>&5
8862  ac_status=$?
8863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864  (exit $ac_status); }; }; then
8865
8866aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8867}'`
8868# Check for a 64-bit object if we didn't find anything.
8869if 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; }
8870}'`; fi
8871else
8872  echo "$as_me: failed program was:" >&5
8873sed 's/^/| /' conftest.$ac_ext >&5
8874
8875fi
8876rm -f conftest.err conftest.$ac_objext \
8877      conftest$ac_exeext conftest.$ac_ext
8878if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8879
8880       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8881        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"
8882       else
8883        if test "$host_cpu" = ia64; then
8884          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8885          allow_undefined_flag="-z nodefs"
8886          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"
8887        else
8888         # Determine the default libpath from the value encoded in an empty executable.
8889         cat >conftest.$ac_ext <<_ACEOF
8890/* confdefs.h.  */
8891_ACEOF
8892cat confdefs.h >>conftest.$ac_ext
8893cat >>conftest.$ac_ext <<_ACEOF
8894/* end confdefs.h.  */
8895
8896int
8897main ()
8898{
8899
8900  ;
8901  return 0;
8902}
8903_ACEOF
8904rm -f conftest.$ac_objext conftest$ac_exeext
8905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906  (eval $ac_link) 2>conftest.er1
8907  ac_status=$?
8908  grep -v '^ *+' conftest.er1 >conftest.err
8909  rm -f conftest.er1
8910  cat conftest.err >&5
8911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912  (exit $ac_status); } &&
8913         { ac_try='test -z "$ac_c_werror_flag"
8914                         || test ! -s conftest.err'
8915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916  (eval $ac_try) 2>&5
8917  ac_status=$?
8918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919  (exit $ac_status); }; } &&
8920         { ac_try='test -s conftest$ac_exeext'
8921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922  (eval $ac_try) 2>&5
8923  ac_status=$?
8924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925  (exit $ac_status); }; }; then
8926
8927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8928}'`
8929# Check for a 64-bit object if we didn't find anything.
8930if 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; }
8931}'`; fi
8932else
8933  echo "$as_me: failed program was:" >&5
8934sed 's/^/| /' conftest.$ac_ext >&5
8935
8936fi
8937rm -f conftest.err conftest.$ac_objext \
8938      conftest$ac_exeext conftest.$ac_ext
8939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8940
8941         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8942          # Warning - without using the other run time loading flags,
8943          # -berok will link without error, but may produce a broken library.
8944          no_undefined_flag=' ${wl}-bernotok'
8945          allow_undefined_flag=' ${wl}-berok'
8946          # Exported symbols can be pulled into shared objects from archives
8947          whole_archive_flag_spec='$convenience'
8948          archive_cmds_need_lc=yes
8949          # This is similar to how AIX traditionally builds its shared libraries.
8950          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'
8951        fi
8952      fi
8953      ;;
8954
8955    amigaos*)
8956      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)'
8957      hardcode_libdir_flag_spec='-L$libdir'
8958      hardcode_minus_L=yes
8959      # see comment about different semantics on the GNU ld section
8960      ld_shlibs=no
8961      ;;
8962
8963    bsdi[45]*)
8964      export_dynamic_flag_spec=-rdynamic
8965      ;;
8966
8967    cygwin* | mingw* | pw32*)
8968      # When not using gcc, we currently assume that we are using
8969      # Microsoft Visual C++.
8970      # hardcode_libdir_flag_spec is actually meaningless, as there is
8971      # no search path for DLLs.
8972      hardcode_libdir_flag_spec=' '
8973      allow_undefined_flag=unsupported
8974      # Tell ltmain to make .lib files, not .a files.
8975      libext=lib
8976      # Tell ltmain to make .dll files, not .so files.
8977      shrext_cmds=".dll"
8978      # FIXME: Setting linknames here is a bad hack.
8979      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8980      # The linker will automatically build a .lib file if we build a DLL.
8981      old_archive_From_new_cmds='true'
8982      # FIXME: Should let the user specify the lib program.
8983      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8984      fix_srcfile_path='`cygpath -w "$srcfile"`'
8985      enable_shared_with_static_runtimes=yes
8986      ;;
8987
8988    darwin* | rhapsody*)
8989      case $host_os in
8990        rhapsody* | darwin1.[012])
8991         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8992         ;;
8993       *) # Darwin 1.3 on
8994         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8995           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8996         else
8997           case ${MACOSX_DEPLOYMENT_TARGET} in
8998             10.[012])
8999               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9000               ;;
9001             10.*)
9002               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9003               ;;
9004           esac
9005         fi
9006         ;;
9007      esac
9008      archive_cmds_need_lc=no
9009      hardcode_direct=no
9010      hardcode_automatic=yes
9011      hardcode_shlibpath_var=unsupported
9012      whole_archive_flag_spec=''
9013      link_all_deplibs=yes
9014    if test "$GCC" = yes ; then
9015        output_verbose_link_cmd='echo'
9016        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9017      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9018      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9019      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}'
9020      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}'
9021    else
9022      case $cc_basename in
9023        xlc*)
9024         output_verbose_link_cmd='echo'
9025         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9026         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9027          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9028         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}'
9029          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}'
9030          ;;
9031       *)
9032         ld_shlibs=no
9033          ;;
9034      esac
9035    fi
9036      ;;
9037
9038    dgux*)
9039      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9040      hardcode_libdir_flag_spec='-L$libdir'
9041      hardcode_shlibpath_var=no
9042      ;;
9043
9044    freebsd1*)
9045      ld_shlibs=no
9046      ;;
9047
9048    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9049    # support.  Future versions do this automatically, but an explicit c++rt0.o
9050    # does not break anything, and helps significantly (at the cost of a little
9051    # extra space).
9052    freebsd2.2*)
9053      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9054      hardcode_libdir_flag_spec='-R$libdir'
9055      hardcode_direct=yes
9056      hardcode_shlibpath_var=no
9057      ;;
9058
9059    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9060    freebsd2*)
9061      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9062      hardcode_direct=yes
9063      hardcode_minus_L=yes
9064      hardcode_shlibpath_var=no
9065      ;;
9066
9067    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9068    freebsd* | kfreebsd*-gnu | dragonfly*)
9069      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9070      hardcode_libdir_flag_spec='-R$libdir'
9071      hardcode_direct=yes
9072      hardcode_shlibpath_var=no
9073      ;;
9074
9075    hpux9*)
9076      if test "$GCC" = yes; then
9077        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'
9078      else
9079        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'
9080      fi
9081      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9082      hardcode_libdir_separator=:
9083      hardcode_direct=yes
9084
9085      # hardcode_minus_L: Not really in the search PATH,
9086      # but as the default location of the library.
9087      hardcode_minus_L=yes
9088      export_dynamic_flag_spec='${wl}-E'
9089      ;;
9090
9091    hpux10*)
9092      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9093        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9094      else
9095        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9096      fi
9097      if test "$with_gnu_ld" = no; then
9098        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9099        hardcode_libdir_separator=:
9100
9101        hardcode_direct=yes
9102        export_dynamic_flag_spec='${wl}-E'
9103
9104        # hardcode_minus_L: Not really in the search PATH,
9105        # but as the default location of the library.
9106        hardcode_minus_L=yes
9107      fi
9108      ;;
9109
9110    hpux11*)
9111      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9112        case $host_cpu in
9113        hppa*64*)
9114          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9115          ;;
9116        ia64*)
9117          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9118          ;;
9119        *)
9120          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9121          ;;
9122        esac
9123      else
9124        case $host_cpu in
9125        hppa*64*)
9126          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9127          ;;
9128        ia64*)
9129          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9130          ;;
9131        *)
9132          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9133          ;;
9134        esac
9135      fi
9136      if test "$with_gnu_ld" = no; then
9137        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9138        hardcode_libdir_separator=:
9139
9140        case $host_cpu in
9141        hppa*64*|ia64*)
9142          hardcode_libdir_flag_spec_ld='+b $libdir'
9143          hardcode_direct=no
9144          hardcode_shlibpath_var=no
9145          ;;
9146        *)
9147          hardcode_direct=yes
9148          export_dynamic_flag_spec='${wl}-E'
9149
9150          # hardcode_minus_L: Not really in the search PATH,
9151          # but as the default location of the library.
9152          hardcode_minus_L=yes
9153          ;;
9154        esac
9155      fi
9156      ;;
9157
9158    irix5* | irix6* | nonstopux*)
9159      if test "$GCC" = yes; then
9160        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'
9161      else
9162        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'
9163        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9164      fi
9165      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9166      hardcode_libdir_separator=:
9167      link_all_deplibs=yes
9168      ;;
9169
9170    netbsd*)
9171      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9172        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9173      else
9174        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9175      fi
9176      hardcode_libdir_flag_spec='-R$libdir'
9177      hardcode_direct=yes
9178      hardcode_shlibpath_var=no
9179      ;;
9180
9181    newsos6)
9182      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9183      hardcode_direct=yes
9184      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9185      hardcode_libdir_separator=:
9186      hardcode_shlibpath_var=no
9187      ;;
9188
9189    openbsd*)
9190      hardcode_direct=yes
9191      hardcode_shlibpath_var=no
9192      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9193        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9194        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9195        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9196        export_dynamic_flag_spec='${wl}-E'
9197      else
9198       case $host_os in
9199         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9200           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9201           hardcode_libdir_flag_spec='-R$libdir'
9202           ;;
9203         *)
9204           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9205           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9206           ;;
9207       esac
9208      fi
9209      ;;
9210
9211    os2*)
9212      hardcode_libdir_flag_spec='-L$libdir'
9213      hardcode_minus_L=yes
9214      allow_undefined_flag=unsupported
9215      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'
9216      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9217      ;;
9218
9219    osf3*)
9220      if test "$GCC" = yes; then
9221        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9222        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'
9223      else
9224        allow_undefined_flag=' -expect_unresolved \*'
9225        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'
9226      fi
9227      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9228      hardcode_libdir_separator=:
9229      ;;
9230
9231    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9232      if test "$GCC" = yes; then
9233        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9234        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'
9235        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236      else
9237        allow_undefined_flag=' -expect_unresolved \*'
9238        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'
9239        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9240        $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'
9241
9242        # Both c and cxx compiler support -rpath directly
9243        hardcode_libdir_flag_spec='-rpath $libdir'
9244      fi
9245      hardcode_libdir_separator=:
9246      ;;
9247
9248    solaris*)
9249      no_undefined_flag=' -z text'
9250      if test "$GCC" = yes; then
9251        wlarc='${wl}'
9252        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9253        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9254          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9255      else
9256        wlarc=''
9257        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9258        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9259        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9260      fi
9261      hardcode_libdir_flag_spec='-R$libdir'
9262      hardcode_shlibpath_var=no
9263      case $host_os in
9264      solaris2.[0-5] | solaris2.[0-5].*) ;;
9265      *)
9266        # The compiler driver will combine linker options so we
9267        # cannot just pass the convience library names through
9268        # without $wl, iff we do not link with $LD.
9269        # Luckily, gcc supports the same syntax we need for Sun Studio.
9270        # Supported since Solaris 2.6 (maybe 2.5.1?)
9271        case $wlarc in
9272        '')
9273          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9274        *)
9275          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' ;;
9276        esac ;;
9277      esac
9278      link_all_deplibs=yes
9279      ;;
9280
9281    sunos4*)
9282      if test "x$host_vendor" = xsequent; then
9283        # Use $CC to link under sequent, because it throws in some extra .o
9284        # files that make .init and .fini sections work.
9285        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9286      else
9287        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9288      fi
9289      hardcode_libdir_flag_spec='-L$libdir'
9290      hardcode_direct=yes
9291      hardcode_minus_L=yes
9292      hardcode_shlibpath_var=no
9293      ;;
9294
9295    sysv4)
9296      case $host_vendor in
9297        sni)
9298          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9299          hardcode_direct=yes # is this really true???
9300        ;;
9301        siemens)
9302          ## LD is ld it makes a PLAMLIB
9303          ## CC just makes a GrossModule.
9304          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9305          reload_cmds='$CC -r -o $output$reload_objs'
9306          hardcode_direct=no
9307        ;;
9308        motorola)
9309          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9310          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9311        ;;
9312      esac
9313      runpath_var='LD_RUN_PATH'
9314      hardcode_shlibpath_var=no
9315      ;;
9316
9317    sysv4.3*)
9318      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319      hardcode_shlibpath_var=no
9320      export_dynamic_flag_spec='-Bexport'
9321      ;;
9322
9323    sysv4*MP*)
9324      if test -d /usr/nec; then
9325        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326        hardcode_shlibpath_var=no
9327        runpath_var=LD_RUN_PATH
9328        hardcode_runpath_var=yes
9329        ld_shlibs=yes
9330      fi
9331      ;;
9332
9333    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9334      no_undefined_flag='${wl}-z,text'
9335      archive_cmds_need_lc=no
9336      hardcode_shlibpath_var=no
9337      runpath_var='LD_RUN_PATH'
9338
9339      if test "$GCC" = yes; then
9340        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9341        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9342      else
9343        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9344        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9345      fi
9346      ;;
9347
9348    sysv5* | sco3.2v5* | sco5v6*)
9349      # Note: We can NOT use -z defs as we might desire, because we do not
9350      # link with -lc, and that would cause any symbols used from libc to
9351      # always be unresolved, which means just about no library would
9352      # ever link correctly.  If we're not using GNU ld we use -z text
9353      # though, which does catch some bad symbols but isn't as heavy-handed
9354      # as -z defs.
9355      no_undefined_flag='${wl}-z,text'
9356      allow_undefined_flag='${wl}-z,nodefs'
9357      archive_cmds_need_lc=no
9358      hardcode_shlibpath_var=no
9359      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9360      hardcode_libdir_separator=':'
9361      link_all_deplibs=yes
9362      export_dynamic_flag_spec='${wl}-Bexport'
9363      runpath_var='LD_RUN_PATH'
9364
9365      if test "$GCC" = yes; then
9366        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9368      else
9369        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9370        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9371      fi
9372      ;;
9373
9374    uts4*)
9375      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9376      hardcode_libdir_flag_spec='-L$libdir'
9377      hardcode_shlibpath_var=no
9378      ;;
9379
9380    *)
9381      ld_shlibs=no
9382      ;;
9383    esac
9384  fi
9385
9386echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9387echo "${ECHO_T}$ld_shlibs" >&6
9388test "$ld_shlibs" = no && can_build_shared=no
9389
9390#
9391# Do we need to explicitly link libc?
9392#
9393case "x$archive_cmds_need_lc" in
9394x|xyes)
9395  # Assume -lc should be added
9396  archive_cmds_need_lc=yes
9397
9398  if test "$enable_shared" = yes && test "$GCC" = yes; then
9399    case $archive_cmds in
9400    *'~'*)
9401      # FIXME: we may have to deal with multi-command sequences.
9402      ;;
9403    '$CC '*)
9404      # Test whether the compiler implicitly links with -lc since on some
9405      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9406      # to ld, don't add -lc before -lgcc.
9407      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9408echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9409      $rm conftest*
9410      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9411
9412      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413  (eval $ac_compile) 2>&5
9414  ac_status=$?
9415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416  (exit $ac_status); } 2>conftest.err; then
9417        soname=conftest
9418        lib=conftest
9419        libobjs=conftest.$ac_objext
9420        deplibs=
9421        wl=$lt_prog_compiler_wl
9422        pic_flag=$lt_prog_compiler_pic
9423        compiler_flags=-v
9424        linker_flags=-v
9425        verstring=
9426        output_objdir=.
9427        libname=conftest
9428        lt_save_allow_undefined_flag=$allow_undefined_flag
9429        allow_undefined_flag=
9430        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9431  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9432  ac_status=$?
9433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434  (exit $ac_status); }
9435        then
9436          archive_cmds_need_lc=no
9437        else
9438          archive_cmds_need_lc=yes
9439        fi
9440        allow_undefined_flag=$lt_save_allow_undefined_flag
9441      else
9442        cat conftest.err 1>&5
9443      fi
9444      $rm conftest*
9445      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9446echo "${ECHO_T}$archive_cmds_need_lc" >&6
9447      ;;
9448    esac
9449  fi
9450  ;;
9451esac
9452
9453echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9454echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9455library_names_spec=
9456libname_spec='lib$name'
9457soname_spec=
9458shrext_cmds=".so"
9459postinstall_cmds=
9460postuninstall_cmds=
9461finish_cmds=
9462finish_eval=
9463shlibpath_var=
9464shlibpath_overrides_runpath=unknown
9465version_type=none
9466dynamic_linker="$host_os ld.so"
9467sys_lib_dlsearch_path_spec="/lib /usr/lib"
9468if test "$GCC" = yes; then
9469  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9470  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9471    # if the path contains ";" then we assume it to be the separator
9472    # otherwise default to the standard path separator (i.e. ":") - it is
9473    # assumed that no part of a normal pathname contains ";" but that should
9474    # okay in the real world where ";" in dirpaths is itself problematic.
9475    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9476  else
9477    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9478  fi
9479else
9480  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9481fi
9482need_lib_prefix=unknown
9483hardcode_into_libs=no
9484
9485# when you set need_version to no, make sure it does not cause -set_version
9486# flags to be left without arguments
9487need_version=unknown
9488
9489case $host_os in
9490aix3*)
9491  version_type=linux
9492  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9493  shlibpath_var=LIBPATH
9494
9495  # AIX 3 has no versioning support, so we append a major version to the name.
9496  soname_spec='${libname}${release}${shared_ext}$major'
9497  ;;
9498
9499aix4* | aix5*)
9500  version_type=linux
9501  need_lib_prefix=no
9502  need_version=no
9503  hardcode_into_libs=yes
9504  if test "$host_cpu" = ia64; then
9505    # AIX 5 supports IA64
9506    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9507    shlibpath_var=LD_LIBRARY_PATH
9508  else
9509    # With GCC up to 2.95.x, collect2 would create an import file
9510    # for dependence libraries.  The import file would start with
9511    # the line `#! .'.  This would cause the generated library to
9512    # depend on `.', always an invalid library.  This was fixed in
9513    # development snapshots of GCC prior to 3.0.
9514    case $host_os in
9515      aix4 | aix4.[01] | aix4.[01].*)
9516      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9517           echo ' yes '
9518           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9519        :
9520      else
9521        can_build_shared=no
9522      fi
9523      ;;
9524    esac
9525    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9526    # soname into executable. Probably we can add versioning support to
9527    # collect2, so additional links can be useful in future.
9528    if test "$aix_use_runtimelinking" = yes; then
9529      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9530      # instead of lib<name>.a to let people know that these are not
9531      # typical AIX shared libraries.
9532      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533    else
9534      # We preserve .a as extension for shared libraries through AIX4.2
9535      # and later when we are not doing run time linking.
9536      library_names_spec='${libname}${release}.a $libname.a'
9537      soname_spec='${libname}${release}${shared_ext}$major'
9538    fi
9539    shlibpath_var=LIBPATH
9540  fi
9541  ;;
9542
9543amigaos*)
9544  library_names_spec='$libname.ixlibrary $libname.a'
9545  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9546  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'
9547  ;;
9548
9549beos*)
9550  library_names_spec='${libname}${shared_ext}'
9551  dynamic_linker="$host_os ld.so"
9552  shlibpath_var=LIBRARY_PATH
9553  ;;
9554
9555bsdi[45]*)
9556  version_type=linux
9557  need_version=no
9558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559  soname_spec='${libname}${release}${shared_ext}$major'
9560  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9561  shlibpath_var=LD_LIBRARY_PATH
9562  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9563  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9564  # the default ld.so.conf also contains /usr/contrib/lib and
9565  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9566  # libtool to hard-code these into programs
9567  ;;
9568
9569cygwin* | mingw* | pw32*)
9570  version_type=windows
9571  shrext_cmds=".dll"
9572  need_version=no
9573  need_lib_prefix=no
9574
9575  case $GCC,$host_os in
9576  yes,cygwin* | yes,mingw* | yes,pw32*)
9577    library_names_spec='$libname.dll.a'
9578    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9579    postinstall_cmds='base_file=`basename \${file}`~
9580      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9581      dldir=$destdir/`dirname \$dlpath`~
9582      test -d \$dldir || mkdir -p \$dldir~
9583      $install_prog $dir/$dlname \$dldir/$dlname~
9584      chmod a+x \$dldir/$dlname'
9585    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9586      dlpath=$dir/\$dldll~
9587       $rm \$dlpath'
9588    shlibpath_overrides_runpath=yes
9589
9590    case $host_os in
9591    cygwin*)
9592      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9593      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9594      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9595      ;;
9596    mingw*)
9597      # MinGW DLLs use traditional 'lib' prefix
9598      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9599      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9600      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9601        # It is most probably a Windows format PATH printed by
9602        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9603        # path with ; separators, and with drive letters. We can handle the
9604        # drive letters (cygwin fileutils understands them), so leave them,
9605        # especially as we might pass files found there to a mingw objdump,
9606        # which wouldn't understand a cygwinified path. Ahh.
9607        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9608      else
9609        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9610      fi
9611      ;;
9612    pw32*)
9613      # pw32 DLLs use 'pw' prefix rather than 'lib'
9614      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9615      ;;
9616    esac
9617    ;;
9618
9619  *)
9620    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9621    ;;
9622  esac
9623  dynamic_linker='Win32 ld.exe'
9624  # FIXME: first we should search . and the directory the executable is in
9625  shlibpath_var=PATH
9626  ;;
9627
9628darwin* | rhapsody*)
9629  dynamic_linker="$host_os dyld"
9630  version_type=darwin
9631  need_lib_prefix=no
9632  need_version=no
9633  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9634  soname_spec='${libname}${release}${major}$shared_ext'
9635  shlibpath_overrides_runpath=yes
9636  shlibpath_var=DYLD_LIBRARY_PATH
9637  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9638  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9639  if test "$GCC" = yes; then
9640    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"`
9641  else
9642    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9643  fi
9644  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9645  ;;
9646
9647dgux*)
9648  version_type=linux
9649  need_lib_prefix=no
9650  need_version=no
9651  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9652  soname_spec='${libname}${release}${shared_ext}$major'
9653  shlibpath_var=LD_LIBRARY_PATH
9654  ;;
9655
9656freebsd1*)
9657  dynamic_linker=no
9658  ;;
9659
9660kfreebsd*-gnu)
9661  version_type=linux
9662  need_lib_prefix=no
9663  need_version=no
9664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9665  soname_spec='${libname}${release}${shared_ext}$major'
9666  shlibpath_var=LD_LIBRARY_PATH
9667  shlibpath_overrides_runpath=no
9668  hardcode_into_libs=yes
9669  dynamic_linker='GNU ld.so'
9670  ;;
9671
9672freebsd* | dragonfly*)
9673  # DragonFly does not have aout.  When/if they implement a new
9674  # versioning mechanism, adjust this.
9675  if test -x /usr/bin/objformat; then
9676    objformat=`/usr/bin/objformat`
9677  else
9678    case $host_os in
9679    freebsd[123]*) objformat=aout ;;
9680    *) objformat=elf ;;
9681    esac
9682  fi
9683  version_type=freebsd-$objformat
9684  case $version_type in
9685    freebsd-elf*)
9686      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9687      need_version=no
9688      need_lib_prefix=no
9689      ;;
9690    freebsd-*)
9691      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9692      need_version=yes
9693      ;;
9694  esac
9695  shlibpath_var=LD_LIBRARY_PATH
9696  case $host_os in
9697  freebsd2*)
9698    shlibpath_overrides_runpath=yes
9699    ;;
9700  freebsd3.[01]* | freebsdelf3.[01]*)
9701    shlibpath_overrides_runpath=yes
9702    hardcode_into_libs=yes
9703    ;;
9704  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9705  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9706    shlibpath_overrides_runpath=no
9707    hardcode_into_libs=yes
9708    ;;
9709  freebsd*) # from 4.6 on
9710    shlibpath_overrides_runpath=yes
9711    hardcode_into_libs=yes
9712    ;;
9713  esac
9714  ;;
9715
9716gnu*)
9717  version_type=linux
9718  need_lib_prefix=no
9719  need_version=no
9720  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9721  soname_spec='${libname}${release}${shared_ext}$major'
9722  shlibpath_var=LD_LIBRARY_PATH
9723  hardcode_into_libs=yes
9724  ;;
9725
9726hpux9* | hpux10* | hpux11*)
9727  # Give a soname corresponding to the major version so that dld.sl refuses to
9728  # link against other versions.
9729  version_type=sunos
9730  need_lib_prefix=no
9731  need_version=no
9732  case $host_cpu in
9733  ia64*)
9734    shrext_cmds='.so'
9735    hardcode_into_libs=yes
9736    dynamic_linker="$host_os dld.so"
9737    shlibpath_var=LD_LIBRARY_PATH
9738    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9739    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740    soname_spec='${libname}${release}${shared_ext}$major'
9741    if test "X$HPUX_IA64_MODE" = X32; then
9742      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9743    else
9744      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9745    fi
9746    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9747    ;;
9748   hppa*64*)
9749     shrext_cmds='.sl'
9750     hardcode_into_libs=yes
9751     dynamic_linker="$host_os dld.sl"
9752     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9753     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9754     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755     soname_spec='${libname}${release}${shared_ext}$major'
9756     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9757     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9758     ;;
9759   *)
9760    shrext_cmds='.sl'
9761    dynamic_linker="$host_os dld.sl"
9762    shlibpath_var=SHLIB_PATH
9763    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9764    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9765    soname_spec='${libname}${release}${shared_ext}$major'
9766    ;;
9767  esac
9768  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9769  postinstall_cmds='chmod 555 $lib'
9770  ;;
9771
9772interix3*)
9773  version_type=linux
9774  need_lib_prefix=no
9775  need_version=no
9776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9777  soname_spec='${libname}${release}${shared_ext}$major'
9778  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9779  shlibpath_var=LD_LIBRARY_PATH
9780  shlibpath_overrides_runpath=no
9781  hardcode_into_libs=yes
9782  ;;
9783
9784irix5* | irix6* | nonstopux*)
9785  case $host_os in
9786    nonstopux*) version_type=nonstopux ;;
9787    *)
9788        if test "$lt_cv_prog_gnu_ld" = yes; then
9789                version_type=linux
9790        else
9791                version_type=irix
9792        fi ;;
9793  esac
9794  need_lib_prefix=no
9795  need_version=no
9796  soname_spec='${libname}${release}${shared_ext}$major'
9797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9798  case $host_os in
9799  irix5* | nonstopux*)
9800    libsuff= shlibsuff=
9801    ;;
9802  *)
9803    case $LD in # libtool.m4 will add one of these switches to LD
9804    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9805      libsuff= shlibsuff= libmagic=32-bit;;
9806    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9807      libsuff=32 shlibsuff=N32 libmagic=N32;;
9808    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9809      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9810    *) libsuff= shlibsuff= libmagic=never-match;;
9811    esac
9812    ;;
9813  esac
9814  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9815  shlibpath_overrides_runpath=no
9816  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9817  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9818  hardcode_into_libs=yes
9819  ;;
9820
9821# No shared lib support for Linux oldld, aout, or coff.
9822linux*oldld* | linux*aout* | linux*coff*)
9823  dynamic_linker=no
9824  ;;
9825
9826# This must be Linux ELF.
9827linux*)
9828  version_type=linux
9829  need_lib_prefix=no
9830  need_version=no
9831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832  soname_spec='${libname}${release}${shared_ext}$major'
9833  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9834  shlibpath_var=LD_LIBRARY_PATH
9835  shlibpath_overrides_runpath=no
9836  # This implies no fast_install, which is unacceptable.
9837  # Some rework will be needed to allow for fast_install
9838  # before this can be enabled.
9839  hardcode_into_libs=yes
9840
9841  # Append ld.so.conf contents to the search path
9842  if test -f /etc/ld.so.conf; then
9843    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' ' '`
9844    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9845  fi
9846
9847  # We used to test for /lib/ld.so.1 and disable shared libraries on
9848  # powerpc, because MkLinux only supported shared libraries with the
9849  # GNU dynamic linker.  Since this was broken with cross compilers,
9850  # most powerpc-linux boxes support dynamic linking these days and
9851  # people can always --disable-shared, the test was removed, and we
9852  # assume the GNU/Linux dynamic linker is in use.
9853  dynamic_linker='GNU/Linux ld.so'
9854  ;;
9855
9856knetbsd*-gnu)
9857  version_type=linux
9858  need_lib_prefix=no
9859  need_version=no
9860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9861  soname_spec='${libname}${release}${shared_ext}$major'
9862  shlibpath_var=LD_LIBRARY_PATH
9863  shlibpath_overrides_runpath=no
9864  hardcode_into_libs=yes
9865  dynamic_linker='GNU ld.so'
9866  ;;
9867
9868netbsd*)
9869  version_type=sunos
9870  need_lib_prefix=no
9871  need_version=no
9872  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9873    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9874    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9875    dynamic_linker='NetBSD (a.out) ld.so'
9876  else
9877    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9878    soname_spec='${libname}${release}${shared_ext}$major'
9879    dynamic_linker='NetBSD ld.elf_so'
9880  fi
9881  shlibpath_var=LD_LIBRARY_PATH
9882  shlibpath_overrides_runpath=yes
9883  hardcode_into_libs=yes
9884  ;;
9885
9886newsos6)
9887  version_type=linux
9888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889  shlibpath_var=LD_LIBRARY_PATH
9890  shlibpath_overrides_runpath=yes
9891  ;;
9892
9893nto-qnx*)
9894  version_type=linux
9895  need_lib_prefix=no
9896  need_version=no
9897  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898  soname_spec='${libname}${release}${shared_ext}$major'
9899  shlibpath_var=LD_LIBRARY_PATH
9900  shlibpath_overrides_runpath=yes
9901  ;;
9902
9903openbsd*)
9904  version_type=sunos
9905  sys_lib_dlsearch_path_spec="/usr/lib"
9906  need_lib_prefix=no
9907  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9908  case $host_os in
9909    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9910    *)                         need_version=no  ;;
9911  esac
9912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9913  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9914  shlibpath_var=LD_LIBRARY_PATH
9915  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9916    case $host_os in
9917      openbsd2.[89] | openbsd2.[89].*)
9918        shlibpath_overrides_runpath=no
9919        ;;
9920      *)
9921        shlibpath_overrides_runpath=yes
9922        ;;
9923      esac
9924  else
9925    shlibpath_overrides_runpath=yes
9926  fi
9927  ;;
9928
9929os2*)
9930  libname_spec='$name'
9931  shrext_cmds=".dll"
9932  need_lib_prefix=no
9933  library_names_spec='$libname${shared_ext} $libname.a'
9934  dynamic_linker='OS/2 ld.exe'
9935  shlibpath_var=LIBPATH
9936  ;;
9937
9938osf3* | osf4* | osf5*)
9939  version_type=osf
9940  need_lib_prefix=no
9941  need_version=no
9942  soname_spec='${libname}${release}${shared_ext}$major'
9943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944  shlibpath_var=LD_LIBRARY_PATH
9945  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9946  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9947  ;;
9948
9949solaris*)
9950  version_type=linux
9951  need_lib_prefix=no
9952  need_version=no
9953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9954  soname_spec='${libname}${release}${shared_ext}$major'
9955  shlibpath_var=LD_LIBRARY_PATH
9956  shlibpath_overrides_runpath=yes
9957  hardcode_into_libs=yes
9958  # ldd complains unless libraries are executable
9959  postinstall_cmds='chmod +x $lib'
9960  ;;
9961
9962sunos4*)
9963  version_type=sunos
9964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9965  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9966  shlibpath_var=LD_LIBRARY_PATH
9967  shlibpath_overrides_runpath=yes
9968  if test "$with_gnu_ld" = yes; then
9969    need_lib_prefix=no
9970  fi
9971  need_version=yes
9972  ;;
9973
9974sysv4 | sysv4.3*)
9975  version_type=linux
9976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9977  soname_spec='${libname}${release}${shared_ext}$major'
9978  shlibpath_var=LD_LIBRARY_PATH
9979  case $host_vendor in
9980    sni)
9981      shlibpath_overrides_runpath=no
9982      need_lib_prefix=no
9983      export_dynamic_flag_spec='${wl}-Blargedynsym'
9984      runpath_var=LD_RUN_PATH
9985      ;;
9986    siemens)
9987      need_lib_prefix=no
9988      ;;
9989    motorola)
9990      need_lib_prefix=no
9991      need_version=no
9992      shlibpath_overrides_runpath=no
9993      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9994      ;;
9995  esac
9996  ;;
9997
9998sysv4*MP*)
9999  if test -d /usr/nec ;then
10000    version_type=linux
10001    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10002    soname_spec='$libname${shared_ext}.$major'
10003    shlibpath_var=LD_LIBRARY_PATH
10004  fi
10005  ;;
10006
10007sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10008  version_type=freebsd-elf
10009  need_lib_prefix=no
10010  need_version=no
10011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10012  soname_spec='${libname}${release}${shared_ext}$major'
10013  shlibpath_var=LD_LIBRARY_PATH
10014  hardcode_into_libs=yes
10015  if test "$with_gnu_ld" = yes; then
10016    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10017    shlibpath_overrides_runpath=no
10018  else
10019    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10020    shlibpath_overrides_runpath=yes
10021    case $host_os in
10022      sco3.2v5*)
10023        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10024        ;;
10025    esac
10026  fi
10027  sys_lib_dlsearch_path_spec='/usr/lib'
10028  ;;
10029
10030uts4*)
10031  version_type=linux
10032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033  soname_spec='${libname}${release}${shared_ext}$major'
10034  shlibpath_var=LD_LIBRARY_PATH
10035  ;;
10036
10037*)
10038  dynamic_linker=no
10039  ;;
10040esac
10041echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10042echo "${ECHO_T}$dynamic_linker" >&6
10043test "$dynamic_linker" = no && can_build_shared=no
10044
10045variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10046if test "$GCC" = yes; then
10047  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10048fi
10049
10050echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10051echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10052hardcode_action=
10053if test -n "$hardcode_libdir_flag_spec" || \
10054   test -n "$runpath_var" || \
10055   test "X$hardcode_automatic" = "Xyes" ; then
10056
10057  # We can hardcode non-existant directories.
10058  if test "$hardcode_direct" != no &&
10059     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10060     # have to relink, otherwise we might link with an installed library
10061     # when we should be linking with a yet-to-be-installed one
10062     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10063     test "$hardcode_minus_L" != no; then
10064    # Linking always hardcodes the temporary library directory.
10065    hardcode_action=relink
10066  else
10067    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10068    hardcode_action=immediate
10069  fi
10070else
10071  # We cannot hardcode anything, or else we can only hardcode existing
10072  # directories.
10073  hardcode_action=unsupported
10074fi
10075echo "$as_me:$LINENO: result: $hardcode_action" >&5
10076echo "${ECHO_T}$hardcode_action" >&6
10077
10078if test "$hardcode_action" = relink; then
10079  # Fast installation is not supported
10080  enable_fast_install=no
10081elif test "$shlibpath_overrides_runpath" = yes ||
10082     test "$enable_shared" = no; then
10083  # Fast installation is not necessary
10084  enable_fast_install=needless
10085fi
10086
10087striplib=
10088old_striplib=
10089echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10090echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10091if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10092  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10093  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10094  echo "$as_me:$LINENO: result: yes" >&5
10095echo "${ECHO_T}yes" >&6
10096else
10097# FIXME - insert some real tests, host_os isn't really good enough
10098  case $host_os in
10099   darwin*)
10100       if test -n "$STRIP" ; then
10101         striplib="$STRIP -x"
10102         echo "$as_me:$LINENO: result: yes" >&5
10103echo "${ECHO_T}yes" >&6
10104       else
10105  echo "$as_me:$LINENO: result: no" >&5
10106echo "${ECHO_T}no" >&6
10107fi
10108       ;;
10109   *)
10110  echo "$as_me:$LINENO: result: no" >&5
10111echo "${ECHO_T}no" >&6
10112    ;;
10113  esac
10114fi
10115
10116if test "x$enable_dlopen" != xyes; then
10117  enable_dlopen=unknown
10118  enable_dlopen_self=unknown
10119  enable_dlopen_self_static=unknown
10120else
10121  lt_cv_dlopen=no
10122  lt_cv_dlopen_libs=
10123
10124  case $host_os in
10125  beos*)
10126    lt_cv_dlopen="load_add_on"
10127    lt_cv_dlopen_libs=
10128    lt_cv_dlopen_self=yes
10129    ;;
10130
10131  mingw* | pw32*)
10132    lt_cv_dlopen="LoadLibrary"
10133    lt_cv_dlopen_libs=
10134   ;;
10135
10136  cygwin*)
10137    lt_cv_dlopen="dlopen"
10138    lt_cv_dlopen_libs=
10139   ;;
10140
10141  darwin*)
10142  # if libdl is installed we need to link against it
10143    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10144echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10145if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10146  echo $ECHO_N "(cached) $ECHO_C" >&6
10147else
10148  ac_check_lib_save_LIBS=$LIBS
10149LIBS="-ldl  $LIBS"
10150cat >conftest.$ac_ext <<_ACEOF
10151/* confdefs.h.  */
10152_ACEOF
10153cat confdefs.h >>conftest.$ac_ext
10154cat >>conftest.$ac_ext <<_ACEOF
10155/* end confdefs.h.  */
10156
10157/* Override any gcc2 internal prototype to avoid an error.  */
10158#ifdef __cplusplus
10159extern "C"
10160#endif
10161/* We use char because int might match the return type of a gcc2
10162   builtin and then its argument prototype would still apply.  */
10163char dlopen ();
10164int
10165main ()
10166{
10167dlopen ();
10168  ;
10169  return 0;
10170}
10171_ACEOF
10172rm -f conftest.$ac_objext conftest$ac_exeext
10173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174  (eval $ac_link) 2>conftest.er1
10175  ac_status=$?
10176  grep -v '^ *+' conftest.er1 >conftest.err
10177  rm -f conftest.er1
10178  cat conftest.err >&5
10179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180  (exit $ac_status); } &&
10181         { ac_try='test -z "$ac_c_werror_flag"
10182                         || test ! -s conftest.err'
10183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184  (eval $ac_try) 2>&5
10185  ac_status=$?
10186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187  (exit $ac_status); }; } &&
10188         { ac_try='test -s conftest$ac_exeext'
10189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190  (eval $ac_try) 2>&5
10191  ac_status=$?
10192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193  (exit $ac_status); }; }; then
10194  ac_cv_lib_dl_dlopen=yes
10195else
10196  echo "$as_me: failed program was:" >&5
10197sed 's/^/| /' conftest.$ac_ext >&5
10198
10199ac_cv_lib_dl_dlopen=no
10200fi
10201rm -f conftest.err conftest.$ac_objext \
10202      conftest$ac_exeext conftest.$ac_ext
10203LIBS=$ac_check_lib_save_LIBS
10204fi
10205echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10206echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10207if test $ac_cv_lib_dl_dlopen = yes; then
10208  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10209else
10210
10211    lt_cv_dlopen="dyld"
10212    lt_cv_dlopen_libs=
10213    lt_cv_dlopen_self=yes
10214
10215fi
10216
10217   ;;
10218
10219  *)
10220    echo "$as_me:$LINENO: checking for shl_load" >&5
10221echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10222if test "${ac_cv_func_shl_load+set}" = set; then
10223  echo $ECHO_N "(cached) $ECHO_C" >&6
10224else
10225  cat >conftest.$ac_ext <<_ACEOF
10226/* confdefs.h.  */
10227_ACEOF
10228cat confdefs.h >>conftest.$ac_ext
10229cat >>conftest.$ac_ext <<_ACEOF
10230/* end confdefs.h.  */
10231/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10232   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10233#define shl_load innocuous_shl_load
10234
10235/* System header to define __stub macros and hopefully few prototypes,
10236    which can conflict with char shl_load (); below.
10237    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10238    <limits.h> exists even on freestanding compilers.  */
10239
10240#ifdef __STDC__
10241# include <limits.h>
10242#else
10243# include <assert.h>
10244#endif
10245
10246#undef shl_load
10247
10248/* Override any gcc2 internal prototype to avoid an error.  */
10249#ifdef __cplusplus
10250extern "C"
10251{
10252#endif
10253/* We use char because int might match the return type of a gcc2
10254   builtin and then its argument prototype would still apply.  */
10255char shl_load ();
10256/* The GNU C library defines this for functions which it implements
10257    to always fail with ENOSYS.  Some functions are actually named
10258    something starting with __ and the normal name is an alias.  */
10259#if defined (__stub_shl_load) || defined (__stub___shl_load)
10260choke me
10261#else
10262char (*f) () = shl_load;
10263#endif
10264#ifdef __cplusplus
10265}
10266#endif
10267
10268int
10269main ()
10270{
10271return f != shl_load;
10272  ;
10273  return 0;
10274}
10275_ACEOF
10276rm -f conftest.$ac_objext conftest$ac_exeext
10277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10278  (eval $ac_link) 2>conftest.er1
10279  ac_status=$?
10280  grep -v '^ *+' conftest.er1 >conftest.err
10281  rm -f conftest.er1
10282  cat conftest.err >&5
10283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284  (exit $ac_status); } &&
10285         { ac_try='test -z "$ac_c_werror_flag"
10286                         || test ! -s conftest.err'
10287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288  (eval $ac_try) 2>&5
10289  ac_status=$?
10290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291  (exit $ac_status); }; } &&
10292         { ac_try='test -s conftest$ac_exeext'
10293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294  (eval $ac_try) 2>&5
10295  ac_status=$?
10296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297  (exit $ac_status); }; }; then
10298  ac_cv_func_shl_load=yes
10299else
10300  echo "$as_me: failed program was:" >&5
10301sed 's/^/| /' conftest.$ac_ext >&5
10302
10303ac_cv_func_shl_load=no
10304fi
10305rm -f conftest.err conftest.$ac_objext \
10306      conftest$ac_exeext conftest.$ac_ext
10307fi
10308echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10309echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10310if test $ac_cv_func_shl_load = yes; then
10311  lt_cv_dlopen="shl_load"
10312else
10313  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10314echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10315if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10316  echo $ECHO_N "(cached) $ECHO_C" >&6
10317else
10318  ac_check_lib_save_LIBS=$LIBS
10319LIBS="-ldld  $LIBS"
10320cat >conftest.$ac_ext <<_ACEOF
10321/* confdefs.h.  */
10322_ACEOF
10323cat confdefs.h >>conftest.$ac_ext
10324cat >>conftest.$ac_ext <<_ACEOF
10325/* end confdefs.h.  */
10326
10327/* Override any gcc2 internal prototype to avoid an error.  */
10328#ifdef __cplusplus
10329extern "C"
10330#endif
10331/* We use char because int might match the return type of a gcc2
10332   builtin and then its argument prototype would still apply.  */
10333char shl_load ();
10334int
10335main ()
10336{
10337shl_load ();
10338  ;
10339  return 0;
10340}
10341_ACEOF
10342rm -f conftest.$ac_objext conftest$ac_exeext
10343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10344  (eval $ac_link) 2>conftest.er1
10345  ac_status=$?
10346  grep -v '^ *+' conftest.er1 >conftest.err
10347  rm -f conftest.er1
10348  cat conftest.err >&5
10349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350  (exit $ac_status); } &&
10351         { ac_try='test -z "$ac_c_werror_flag"
10352                         || test ! -s conftest.err'
10353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354  (eval $ac_try) 2>&5
10355  ac_status=$?
10356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357  (exit $ac_status); }; } &&
10358         { ac_try='test -s conftest$ac_exeext'
10359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360  (eval $ac_try) 2>&5
10361  ac_status=$?
10362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363  (exit $ac_status); }; }; then
10364  ac_cv_lib_dld_shl_load=yes
10365else
10366  echo "$as_me: failed program was:" >&5
10367sed 's/^/| /' conftest.$ac_ext >&5
10368
10369ac_cv_lib_dld_shl_load=no
10370fi
10371rm -f conftest.err conftest.$ac_objext \
10372      conftest$ac_exeext conftest.$ac_ext
10373LIBS=$ac_check_lib_save_LIBS
10374fi
10375echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10376echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10377if test $ac_cv_lib_dld_shl_load = yes; then
10378  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10379else
10380  echo "$as_me:$LINENO: checking for dlopen" >&5
10381echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10382if test "${ac_cv_func_dlopen+set}" = set; then
10383  echo $ECHO_N "(cached) $ECHO_C" >&6
10384else
10385  cat >conftest.$ac_ext <<_ACEOF
10386/* confdefs.h.  */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h.  */
10391/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10392   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10393#define dlopen innocuous_dlopen
10394
10395/* System header to define __stub macros and hopefully few prototypes,
10396    which can conflict with char dlopen (); below.
10397    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10398    <limits.h> exists even on freestanding compilers.  */
10399
10400#ifdef __STDC__
10401# include <limits.h>
10402#else
10403# include <assert.h>
10404#endif
10405
10406#undef dlopen
10407
10408/* Override any gcc2 internal prototype to avoid an error.  */
10409#ifdef __cplusplus
10410extern "C"
10411{
10412#endif
10413/* We use char because int might match the return type of a gcc2
10414   builtin and then its argument prototype would still apply.  */
10415char dlopen ();
10416/* The GNU C library defines this for functions which it implements
10417    to always fail with ENOSYS.  Some functions are actually named
10418    something starting with __ and the normal name is an alias.  */
10419#if defined (__stub_dlopen) || defined (__stub___dlopen)
10420choke me
10421#else
10422char (*f) () = dlopen;
10423#endif
10424#ifdef __cplusplus
10425}
10426#endif
10427
10428int
10429main ()
10430{
10431return f != dlopen;
10432  ;
10433  return 0;
10434}
10435_ACEOF
10436rm -f conftest.$ac_objext conftest$ac_exeext
10437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438  (eval $ac_link) 2>conftest.er1
10439  ac_status=$?
10440  grep -v '^ *+' conftest.er1 >conftest.err
10441  rm -f conftest.er1
10442  cat conftest.err >&5
10443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444  (exit $ac_status); } &&
10445         { ac_try='test -z "$ac_c_werror_flag"
10446                         || test ! -s conftest.err'
10447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10448  (eval $ac_try) 2>&5
10449  ac_status=$?
10450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451  (exit $ac_status); }; } &&
10452         { ac_try='test -s conftest$ac_exeext'
10453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454  (eval $ac_try) 2>&5
10455  ac_status=$?
10456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457  (exit $ac_status); }; }; then
10458  ac_cv_func_dlopen=yes
10459else
10460  echo "$as_me: failed program was:" >&5
10461sed 's/^/| /' conftest.$ac_ext >&5
10462
10463ac_cv_func_dlopen=no
10464fi
10465rm -f conftest.err conftest.$ac_objext \
10466      conftest$ac_exeext conftest.$ac_ext
10467fi
10468echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10469echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10470if test $ac_cv_func_dlopen = yes; then
10471  lt_cv_dlopen="dlopen"
10472else
10473  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10474echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10475if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10476  echo $ECHO_N "(cached) $ECHO_C" >&6
10477else
10478  ac_check_lib_save_LIBS=$LIBS
10479LIBS="-ldl  $LIBS"
10480cat >conftest.$ac_ext <<_ACEOF
10481/* confdefs.h.  */
10482_ACEOF
10483cat confdefs.h >>conftest.$ac_ext
10484cat >>conftest.$ac_ext <<_ACEOF
10485/* end confdefs.h.  */
10486
10487/* Override any gcc2 internal prototype to avoid an error.  */
10488#ifdef __cplusplus
10489extern "C"
10490#endif
10491/* We use char because int might match the return type of a gcc2
10492   builtin and then its argument prototype would still apply.  */
10493char dlopen ();
10494int
10495main ()
10496{
10497dlopen ();
10498  ;
10499  return 0;
10500}
10501_ACEOF
10502rm -f conftest.$ac_objext conftest$ac_exeext
10503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504  (eval $ac_link) 2>conftest.er1
10505  ac_status=$?
10506  grep -v '^ *+' conftest.er1 >conftest.err
10507  rm -f conftest.er1
10508  cat conftest.err >&5
10509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510  (exit $ac_status); } &&
10511         { ac_try='test -z "$ac_c_werror_flag"
10512                         || test ! -s conftest.err'
10513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514  (eval $ac_try) 2>&5
10515  ac_status=$?
10516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517  (exit $ac_status); }; } &&
10518         { ac_try='test -s conftest$ac_exeext'
10519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520  (eval $ac_try) 2>&5
10521  ac_status=$?
10522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523  (exit $ac_status); }; }; then
10524  ac_cv_lib_dl_dlopen=yes
10525else
10526  echo "$as_me: failed program was:" >&5
10527sed 's/^/| /' conftest.$ac_ext >&5
10528
10529ac_cv_lib_dl_dlopen=no
10530fi
10531rm -f conftest.err conftest.$ac_objext \
10532      conftest$ac_exeext conftest.$ac_ext
10533LIBS=$ac_check_lib_save_LIBS
10534fi
10535echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10536echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10537if test $ac_cv_lib_dl_dlopen = yes; then
10538  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10539else
10540  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10541echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10542if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10543  echo $ECHO_N "(cached) $ECHO_C" >&6
10544else
10545  ac_check_lib_save_LIBS=$LIBS
10546LIBS="-lsvld  $LIBS"
10547cat >conftest.$ac_ext <<_ACEOF
10548/* confdefs.h.  */
10549_ACEOF
10550cat confdefs.h >>conftest.$ac_ext
10551cat >>conftest.$ac_ext <<_ACEOF
10552/* end confdefs.h.  */
10553
10554/* Override any gcc2 internal prototype to avoid an error.  */
10555#ifdef __cplusplus
10556extern "C"
10557#endif
10558/* We use char because int might match the return type of a gcc2
10559   builtin and then its argument prototype would still apply.  */
10560char dlopen ();
10561int
10562main ()
10563{
10564dlopen ();
10565  ;
10566  return 0;
10567}
10568_ACEOF
10569rm -f conftest.$ac_objext conftest$ac_exeext
10570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10571  (eval $ac_link) 2>conftest.er1
10572  ac_status=$?
10573  grep -v '^ *+' conftest.er1 >conftest.err
10574  rm -f conftest.er1
10575  cat conftest.err >&5
10576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577  (exit $ac_status); } &&
10578         { ac_try='test -z "$ac_c_werror_flag"
10579                         || test ! -s conftest.err'
10580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10581  (eval $ac_try) 2>&5
10582  ac_status=$?
10583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584  (exit $ac_status); }; } &&
10585         { ac_try='test -s conftest$ac_exeext'
10586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587  (eval $ac_try) 2>&5
10588  ac_status=$?
10589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590  (exit $ac_status); }; }; then
10591  ac_cv_lib_svld_dlopen=yes
10592else
10593  echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596ac_cv_lib_svld_dlopen=no
10597fi
10598rm -f conftest.err conftest.$ac_objext \
10599      conftest$ac_exeext conftest.$ac_ext
10600LIBS=$ac_check_lib_save_LIBS
10601fi
10602echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10603echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10604if test $ac_cv_lib_svld_dlopen = yes; then
10605  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10606else
10607  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10608echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10609if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10610  echo $ECHO_N "(cached) $ECHO_C" >&6
10611else
10612  ac_check_lib_save_LIBS=$LIBS
10613LIBS="-ldld  $LIBS"
10614cat >conftest.$ac_ext <<_ACEOF
10615/* confdefs.h.  */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h.  */
10620
10621/* Override any gcc2 internal prototype to avoid an error.  */
10622#ifdef __cplusplus
10623extern "C"
10624#endif
10625/* We use char because int might match the return type of a gcc2
10626   builtin and then its argument prototype would still apply.  */
10627char dld_link ();
10628int
10629main ()
10630{
10631dld_link ();
10632  ;
10633  return 0;
10634}
10635_ACEOF
10636rm -f conftest.$ac_objext conftest$ac_exeext
10637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10638  (eval $ac_link) 2>conftest.er1
10639  ac_status=$?
10640  grep -v '^ *+' conftest.er1 >conftest.err
10641  rm -f conftest.er1
10642  cat conftest.err >&5
10643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644  (exit $ac_status); } &&
10645         { ac_try='test -z "$ac_c_werror_flag"
10646                         || test ! -s conftest.err'
10647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648  (eval $ac_try) 2>&5
10649  ac_status=$?
10650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651  (exit $ac_status); }; } &&
10652         { ac_try='test -s conftest$ac_exeext'
10653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654  (eval $ac_try) 2>&5
10655  ac_status=$?
10656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657  (exit $ac_status); }; }; then
10658  ac_cv_lib_dld_dld_link=yes
10659else
10660  echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663ac_cv_lib_dld_dld_link=no
10664fi
10665rm -f conftest.err conftest.$ac_objext \
10666      conftest$ac_exeext conftest.$ac_ext
10667LIBS=$ac_check_lib_save_LIBS
10668fi
10669echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10670echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10671if test $ac_cv_lib_dld_dld_link = yes; then
10672  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10673fi
10674
10675
10676fi
10677
10678
10679fi
10680
10681
10682fi
10683
10684
10685fi
10686
10687
10688fi
10689
10690    ;;
10691  esac
10692
10693  if test "x$lt_cv_dlopen" != xno; then
10694    enable_dlopen=yes
10695  else
10696    enable_dlopen=no
10697  fi
10698
10699  case $lt_cv_dlopen in
10700  dlopen)
10701    save_CPPFLAGS="$CPPFLAGS"
10702    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10703
10704    save_LDFLAGS="$LDFLAGS"
10705    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10706
10707    save_LIBS="$LIBS"
10708    LIBS="$lt_cv_dlopen_libs $LIBS"
10709
10710    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10711echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10712if test "${lt_cv_dlopen_self+set}" = set; then
10713  echo $ECHO_N "(cached) $ECHO_C" >&6
10714else
10715          if test "$cross_compiling" = yes; then :
10716  lt_cv_dlopen_self=cross
10717else
10718  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10719  lt_status=$lt_dlunknown
10720  cat > conftest.$ac_ext <<EOF
10721#line 10721 "configure"
10722#include "confdefs.h"
10723
10724#if HAVE_DLFCN_H
10725#include <dlfcn.h>
10726#endif
10727
10728#include <stdio.h>
10729
10730#ifdef RTLD_GLOBAL
10731#  define LT_DLGLOBAL           RTLD_GLOBAL
10732#else
10733#  ifdef DL_GLOBAL
10734#    define LT_DLGLOBAL         DL_GLOBAL
10735#  else
10736#    define LT_DLGLOBAL         0
10737#  endif
10738#endif
10739
10740/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10741   find out it does not work in some plat