source: trunk/Cbc/configure @ 892

Last change on this file since 892 was 865, checked in by tkr, 12 years ago

Changing installation location for addlibs.txt file

  • Property svn:executable set to *
File size: 783.2 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 1.2trunk.
4#
5# Report bugs to <coin-cbc@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='1.2trunk'
433PACKAGE_STRING='Cbc 1.2trunk'
434PACKAGE_BUGREPORT='coin-cbc@list.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS 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 CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE DYLPSRCDIR DYLPOBJDIR DYLPDOCDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE VOLSRCDIR VOLOBJDIR VOLDOCDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE SYMPHONYSRCDIR SYMPHONYOBJDIR SYMPHONYDOCDIR COIN_HAS_SYMPHONY_TRUE COIN_HAS_SYMPHONY_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Cbc 1.2trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Cbc 1.2trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-cbc compile this project (Cbc) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-cplex-libcheck use disable-cplex-libcheck to skip the
1096                          link check at configuration time
1097  --enable-fortmp-libcheck
1098                          use disable-fortmp-libcheck to skip the
1099                          link check at configuration time
1100  --enable-mosek-libcheck use disable-mosek-libcheck to skip the
1101                          link check at configuration time
1102  --enable-osl-libcheck use disable-osl-libcheck to skip the link
1103                          check at configuration time
1104  --enable-soplex-libcheck
1105                          use disable-soplex-libcheck to skip the
1106                          link check at configuration time
1107  --enable-xpress-libcheck
1108                          use disable-xpress-libcheck to skip the
1109                          link check at configuration time
1110  --enable-glpk-libcheck use disable-glpk-libcheck to skip the
1111                          link check at configuration time
1112  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1113
1114Optional Packages:
1115  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1116  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1117  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1118  --with-cbc-checklevel specify the sanity check level for project Cbc
1119  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1120  --with-pic              try to use only PIC/non-PIC objects [default=use
1121                          both]
1122  --with-tags[=TAGS]
1123                          include additional configurations [automatic]
1124  --with-cplex-incdir specify the header file directory for library Cplex
1125  --with-cplex-lib specify the flags used to link with the library Cplex
1126  --with-fortmp-incdir specify the header file directory for library FortMP
1127  --with-fortmp-lib specify the flags used to link with the library FortMP
1128  --with-mosek-incdir specify the header file directory for library Mosek
1129  --with-mosek-lib specify the flags used to link with the library Mosek
1130  --with-osl-incdir specify the header file directory for library Osl
1131  --with-osl-lib specify the flags used to link with the library Osl
1132  --with-soplex-incdir specify the header file directory for library Soplex
1133  --with-soplex-lib specify the flags used to link with the library Soplex
1134  --with-xpress-incdir specify the header file directory for library Xpress
1135  --with-xpress-lib specify the flags used to link with the library Xpress
1136  --with-glpk-incdir specify the header file directory for library Glpk
1137  --with-glpk-lib specify the flags used to link with the library Glpk
1138  --with-asldir           specify path to AMPL solver directory (or BUILD for
1139                          compilation, or "no" for disabling AMPL)
1140  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1141  --with-cbc-generic-solver
1142                          specify default solver for cbc-generic in lower case
1143                          letters (if not given, clp is assumed)
1144
1145Some influential environment variables:
1146  CDEFS       Additional -D flags to be used when compiling C code.
1147  ADD_CFLAGS  Additional C compiler options
1148  DBG_CFLAGS  Debug C compiler options
1149  OPT_CFLAGS  Optimize C compiler options
1150  CC          C compiler command
1151  CFLAGS      C compiler flags
1152  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1153              nonstandard directory <lib dir>
1154  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1155              headers in a nonstandard directory <include dir>
1156  MPICC       C MPI Compiler
1157  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1158  ADD_CXXFLAGS
1159              Additional C++ compiler options
1160  DBG_CXXFLAGS
1161              Debug C++ compiler options
1162  OPT_CXXFLAGS
1163              Optimize C++ compiler options
1164  CXX         C++ compiler command
1165  CXXFLAGS    C++ compiler flags
1166  MPICXX      C++ MPI Compiler
1167  CPP         C preprocessor
1168  CXXCPP      C++ preprocessor
1169  F77         Fortran 77 compiler command
1170  FFLAGS      Fortran 77 compiler flags
1171
1172Use these variables to override the choices made by `configure' or to help
1173it to find libraries and programs with nonstandard names/locations.
1174
1175Report bugs to <coin-cbc@list.coin-or.org>.
1176_ACEOF
1177fi
1178
1179if test "$ac_init_help" = "recursive"; then
1180  # If there are subdirs, report their specific --help.
1181  ac_popdir=`pwd`
1182  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1183    test -d $ac_dir || continue
1184    ac_builddir=.
1185
1186if test "$ac_dir" != .; then
1187  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1188  # A "../" for each directory in $ac_dir_suffix.
1189  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1190else
1191  ac_dir_suffix= ac_top_builddir=
1192fi
1193
1194case $srcdir in
1195  .)  # No --srcdir option.  We are building in place.
1196    ac_srcdir=.
1197    if test -z "$ac_top_builddir"; then
1198       ac_top_srcdir=.
1199    else
1200       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1201    fi ;;
1202  [\\/]* | ?:[\\/]* )  # Absolute path.
1203    ac_srcdir=$srcdir$ac_dir_suffix;
1204    ac_top_srcdir=$srcdir ;;
1205  *) # Relative path.
1206    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1207    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1208esac
1209
1210# Do not use `cd foo && pwd` to compute absolute paths, because
1211# the directories may not exist.
1212case `pwd` in
1213.) ac_abs_builddir="$ac_dir";;
1214*)
1215  case "$ac_dir" in
1216  .) ac_abs_builddir=`pwd`;;
1217  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1218  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1219  esac;;
1220esac
1221case $ac_abs_builddir in
1222.) ac_abs_top_builddir=${ac_top_builddir}.;;
1223*)
1224  case ${ac_top_builddir}. in
1225  .) ac_abs_top_builddir=$ac_abs_builddir;;
1226  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1227  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1228  esac;;
1229esac
1230case $ac_abs_builddir in
1231.) ac_abs_srcdir=$ac_srcdir;;
1232*)
1233  case $ac_srcdir in
1234  .) ac_abs_srcdir=$ac_abs_builddir;;
1235  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1236  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1237  esac;;
1238esac
1239case $ac_abs_builddir in
1240.) ac_abs_top_srcdir=$ac_top_srcdir;;
1241*)
1242  case $ac_top_srcdir in
1243  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1244  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1245  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1246  esac;;
1247esac
1248
1249    cd $ac_dir
1250    # Check for guested configure; otherwise get Cygnus style configure.
1251    if test -f $ac_srcdir/configure.gnu; then
1252      echo
1253      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1254    elif test -f $ac_srcdir/configure; then
1255      echo
1256      $SHELL $ac_srcdir/configure  --help=recursive
1257    elif test -f $ac_srcdir/configure.ac ||
1258           test -f $ac_srcdir/configure.in; then
1259      echo
1260      $ac_configure --help
1261    else
1262      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1263    fi
1264    cd $ac_popdir
1265  done
1266fi
1267
1268test -n "$ac_init_help" && exit 0
1269if $ac_init_version; then
1270  cat <<\_ACEOF
1271Cbc configure 1.2trunk
1272generated by GNU Autoconf 2.59
1273
1274Copyright (C) 2003 Free Software Foundation, Inc.
1275This configure script is free software; the Free Software Foundation
1276gives unlimited permission to copy, distribute and modify it.
1277
1278
1279Copyright 2006 International Business Machines and others.
1280All Rights Reserved.
1281This file is part of the open source package Coin which is distributed
1282under the Common Public License.
1283_ACEOF
1284  exit 0
1285fi
1286exec 5>config.log
1287cat >&5 <<_ACEOF
1288This file contains any messages produced by compilers while
1289running configure, to aid debugging if configure makes a mistake.
1290
1291It was created by Cbc $as_me 1.2trunk, which was
1292generated by GNU Autoconf 2.59.  Invocation command line was
1293
1294  $ $0 $@
1295
1296_ACEOF
1297{
1298cat <<_ASUNAME
1299## --------- ##
1300## Platform. ##
1301## --------- ##
1302
1303hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1304uname -m = `(uname -m) 2>/dev/null || echo unknown`
1305uname -r = `(uname -r) 2>/dev/null || echo unknown`
1306uname -s = `(uname -s) 2>/dev/null || echo unknown`
1307uname -v = `(uname -v) 2>/dev/null || echo unknown`
1308
1309/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1310/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1311
1312/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1313/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1314/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1315hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1316/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1317/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1318/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1319
1320_ASUNAME
1321
1322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1323for as_dir in $PATH
1324do
1325  IFS=$as_save_IFS
1326  test -z "$as_dir" && as_dir=.
1327  echo "PATH: $as_dir"
1328done
1329
1330} >&5
1331
1332cat >&5 <<_ACEOF
1333
1334
1335## ----------- ##
1336## Core tests. ##
1337## ----------- ##
1338
1339_ACEOF
1340
1341
1342# Keep a trace of the command line.
1343# Strip out --no-create and --no-recursion so they do not pile up.
1344# Strip out --silent because we don't want to record it for future runs.
1345# Also quote any args containing shell meta-characters.
1346# Make two passes to allow for proper duplicate-argument suppression.
1347ac_configure_args=
1348ac_configure_args0=
1349ac_configure_args1=
1350ac_sep=
1351ac_must_keep_next=false
1352for ac_pass in 1 2
1353do
1354  for ac_arg
1355  do
1356    case $ac_arg in
1357    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1358    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1359    | -silent | --silent | --silen | --sile | --sil)
1360      continue ;;
1361    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1362      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1363    esac
1364    case $ac_pass in
1365    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1366    2)
1367      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1368      if test $ac_must_keep_next = true; then
1369        ac_must_keep_next=false # Got value, back to normal.
1370      else
1371        case $ac_arg in
1372          *=* | --config-cache | -C | -disable-* | --disable-* \
1373          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1374          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1375          | -with-* | --with-* | -without-* | --without-* | --x)
1376            case "$ac_configure_args0 " in
1377              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1378            esac
1379            ;;
1380          -* ) ac_must_keep_next=true ;;
1381        esac
1382      fi
1383      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1384      # Get rid of the leading space.
1385      ac_sep=" "
1386      ;;
1387    esac
1388  done
1389done
1390$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1391$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1392
1393# When interrupted or exit'd, cleanup temporary files, and complete
1394# config.log.  We remove comments because anyway the quotes in there
1395# would cause problems or look ugly.
1396# WARNING: Be sure not to use single quotes in there, as some shells,
1397# such as our DU 5.0 friend, will then `close' the trap.
1398trap 'exit_status=$?
1399  # Save into config.log some information that might help in debugging.
1400  {
1401    echo
1402
1403    cat <<\_ASBOX
1404## ---------------- ##
1405## Cache variables. ##
1406## ---------------- ##
1407_ASBOX
1408    echo
1409    # The following way of writing the cache mishandles newlines in values,
1410{
1411  (set) 2>&1 |
1412    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1413    *ac_space=\ *)
1414      sed -n \
1415        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1416          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1417      ;;
1418    *)
1419      sed -n \
1420        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1421      ;;
1422    esac;
1423}
1424    echo
1425
1426    cat <<\_ASBOX
1427## ----------------- ##
1428## Output variables. ##
1429## ----------------- ##
1430_ASBOX
1431    echo
1432    for ac_var in $ac_subst_vars
1433    do
1434      eval ac_val=$`echo $ac_var`
1435      echo "$ac_var='"'"'$ac_val'"'"'"
1436    done | sort
1437    echo
1438
1439    if test -n "$ac_subst_files"; then
1440      cat <<\_ASBOX
1441## ------------- ##
1442## Output files. ##
1443## ------------- ##
1444_ASBOX
1445      echo
1446      for ac_var in $ac_subst_files
1447      do
1448        eval ac_val=$`echo $ac_var`
1449        echo "$ac_var='"'"'$ac_val'"'"'"
1450      done | sort
1451      echo
1452    fi
1453
1454    if test -s confdefs.h; then
1455      cat <<\_ASBOX
1456## ----------- ##
1457## confdefs.h. ##
1458## ----------- ##
1459_ASBOX
1460      echo
1461      sed "/^$/d" confdefs.h | sort
1462      echo
1463    fi
1464    test "$ac_signal" != 0 &&
1465      echo "$as_me: caught signal $ac_signal"
1466    echo "$as_me: exit $exit_status"
1467  } >&5
1468  rm -f core *.core &&
1469  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1470    exit $exit_status
1471     ' 0
1472for ac_signal in 1 2 13 15; do
1473  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1474done
1475ac_signal=0
1476
1477# confdefs.h avoids OS command line length limits that DEFS can exceed.
1478rm -rf conftest* confdefs.h
1479# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1480echo >confdefs.h
1481
1482# Predefined preprocessor variables.
1483
1484cat >>confdefs.h <<_ACEOF
1485#define PACKAGE_NAME "$PACKAGE_NAME"
1486_ACEOF
1487
1488
1489cat >>confdefs.h <<_ACEOF
1490#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1491_ACEOF
1492
1493
1494cat >>confdefs.h <<_ACEOF
1495#define PACKAGE_VERSION "$PACKAGE_VERSION"
1496_ACEOF
1497
1498
1499cat >>confdefs.h <<_ACEOF
1500#define PACKAGE_STRING "$PACKAGE_STRING"
1501_ACEOF
1502
1503
1504cat >>confdefs.h <<_ACEOF
1505#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1506_ACEOF
1507
1508
1509# Let the site file select an alternate cache file if it wants to.
1510# Prefer explicitly selected file to automatically selected ones.
1511if test -z "$CONFIG_SITE"; then
1512  if test "x$prefix" != xNONE; then
1513    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1514  else
1515    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1516  fi
1517fi
1518for ac_site_file in $CONFIG_SITE; do
1519  if test -r "$ac_site_file"; then
1520    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1521echo "$as_me: loading site script $ac_site_file" >&6;}
1522    sed 's/^/| /' "$ac_site_file" >&5
1523    . "$ac_site_file"
1524  fi
1525done
1526
1527if test -r "$cache_file"; then
1528  # Some versions of bash will fail to source /dev/null (special
1529  # files actually), so we avoid doing that.
1530  if test -f "$cache_file"; then
1531    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1532echo "$as_me: loading cache $cache_file" >&6;}
1533    case $cache_file in
1534      [\\/]* | ?:[\\/]* ) . $cache_file;;
1535      *)                      . ./$cache_file;;
1536    esac
1537  fi
1538else
1539  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1540echo "$as_me: creating cache $cache_file" >&6;}
1541  >$cache_file
1542fi
1543
1544# Check that the precious variables saved in the cache have kept the same
1545# value.
1546ac_cache_corrupted=false
1547for ac_var in `(set) 2>&1 |
1548               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1549  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1550  eval ac_new_set=\$ac_env_${ac_var}_set
1551  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1552  eval ac_new_val="\$ac_env_${ac_var}_value"
1553  case $ac_old_set,$ac_new_set in
1554    set,)
1555      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1556echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1557      ac_cache_corrupted=: ;;
1558    ,set)
1559      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1560echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1561      ac_cache_corrupted=: ;;
1562    ,);;
1563    *)
1564      if test "x$ac_old_val" != "x$ac_new_val"; then
1565        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1566echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1567        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1568echo "$as_me:   former value:  $ac_old_val" >&2;}
1569        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1570echo "$as_me:   current value: $ac_new_val" >&2;}
1571        ac_cache_corrupted=:
1572      fi;;
1573  esac
1574  # Pass precious variables to config.status.
1575  if test "$ac_new_set" = set; then
1576    case $ac_new_val in
1577    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1578      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1579    *) ac_arg=$ac_var=$ac_new_val ;;
1580    esac
1581    case " $ac_configure_args " in
1582      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1583      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1584    esac
1585  fi
1586done
1587if $ac_cache_corrupted; then
1588  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1589echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1590  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1591echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1592   { (exit 1); exit 1; }; }
1593fi
1594
1595ac_ext=c
1596ac_cpp='$CPP $CPPFLAGS'
1597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1599ac_compiler_gnu=$ac_cv_c_compiler_gnu
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630# List one file in the package so that the configure script can test
1631# whether the package is actually there
1632
1633
1634# Where should everything be installed by default?  Here, we want it
1635# to be installed directly in 'bin', 'lib', 'include' subdirectories
1636# of the directory where configure is run.  The default would be
1637# /usr/local.
1638
1639
1640#############################################################################
1641#                         Standard build tool stuff                         #
1642#############################################################################
1643
1644# Get the system type
1645ac_aux_dir=
1646for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1647  if test -f $ac_dir/install-sh; then
1648    ac_aux_dir=$ac_dir
1649    ac_install_sh="$ac_aux_dir/install-sh -c"
1650    break
1651  elif test -f $ac_dir/install.sh; then
1652    ac_aux_dir=$ac_dir
1653    ac_install_sh="$ac_aux_dir/install.sh -c"
1654    break
1655  elif test -f $ac_dir/shtool; then
1656    ac_aux_dir=$ac_dir
1657    ac_install_sh="$ac_aux_dir/shtool install -c"
1658    break
1659  fi
1660done
1661if test -z "$ac_aux_dir"; then
1662  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1663echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1664   { (exit 1); exit 1; }; }
1665fi
1666ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1667ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1668ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1669
1670# Make sure we can run config.sub.
1671$ac_config_sub sun4 >/dev/null 2>&1 ||
1672  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1673echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1674   { (exit 1); exit 1; }; }
1675
1676echo "$as_me:$LINENO: checking build system type" >&5
1677echo $ECHO_N "checking build system type... $ECHO_C" >&6
1678if test "${ac_cv_build+set}" = set; then
1679  echo $ECHO_N "(cached) $ECHO_C" >&6
1680else
1681  ac_cv_build_alias=$build_alias
1682test -z "$ac_cv_build_alias" &&
1683  ac_cv_build_alias=`$ac_config_guess`
1684test -z "$ac_cv_build_alias" &&
1685  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1686echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1687   { (exit 1); exit 1; }; }
1688ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1689  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1690echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1691   { (exit 1); exit 1; }; }
1692
1693fi
1694echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1695echo "${ECHO_T}$ac_cv_build" >&6
1696build=$ac_cv_build
1697build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1698build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1699build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1700
1701
1702
1703# If this project depends on external projects, the Externals file in
1704# the source root directory contains definition of where to find those
1705# externals.  The following macro ensures that those externals are
1706# retrieved by svn if they are not there yet.
1707# Initialize the ADDLIBS variable
1708ADDLIBS="-lm $LIBS"
1709
1710
1711# Initialize the FADDLIBS variable (which is to be used with a fortran
1712# compiler and will not include FLIBS)
1713FADDLIBS="$LIBS"
1714
1715
1716# A useful makefile conditional that is always false
1717
1718
1719if false; then
1720  ALWAYS_FALSE_TRUE=
1721  ALWAYS_FALSE_FALSE='#'
1722else
1723  ALWAYS_FALSE_TRUE='#'
1724  ALWAYS_FALSE_FALSE=
1725fi
1726
1727
1728# We set the following variable so that we know later in AC_COIN_FINALIZE
1729# that we are in a project main directory
1730coin_projectdir=yes
1731
1732
1733# Check if user wants to produce debugging code
1734
1735echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1736echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1737
1738# Check whether --enable-debug or --disable-debug was given.
1739if test "${enable_debug+set}" = set; then
1740  enableval="$enable_debug"
1741  case "${enableval}" in
1742   yes) coin_debug_compile=true
1743        if test "${enable_shared+set}" = set; then :; else
1744          enable_shared=no
1745        fi
1746        ;;
1747   no)  coin_debug_compile=false
1748        ;;
1749   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1750echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1751   { (exit 1); exit 1; }; }
1752        ;;
1753esac
1754else
1755  coin_debug_compile=false
1756fi;
1757
1758# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1759if test "${enable_debug_cbc+set}" = set; then
1760  enableval="$enable_debug_cbc"
1761  case "${enableval}" in
1762    yes) coin_debug_compile=true
1763         enable_shared=no
1764         ;;
1765    no)  coin_debug_compile=false
1766         ;;
1767    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1768echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1769   { (exit 1); exit 1; }; }
1770         ;;
1771 esac
1772else
1773  :
1774fi;
1775
1776 # m4_ifvaln([Cbc],
1777
1778if test $coin_debug_compile = true; then
1779  echo "$as_me:$LINENO: result: yes" >&5
1780echo "${ECHO_T}yes" >&6
1781else
1782  echo "$as_me:$LINENO: result: no" >&5
1783echo "${ECHO_T}no" >&6
1784fi
1785
1786
1787# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1788if test "${with_cbc_verbosity+set}" = set; then
1789  withval="$with_cbc_verbosity"
1790  if test "$withval" = yes; then
1791                withval=1
1792              fi
1793              coin_cbc_verbosity=$withval
1794else
1795  coin_cbc_verbosity=0
1796fi;
1797
1798cat >>confdefs.h <<_ACEOF
1799#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1800_ACEOF
1801
1802
1803
1804# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1805if test "${with_cbc_checklevel+set}" = set; then
1806  withval="$with_cbc_checklevel"
1807  if test "$withval" = yes; then
1808                withval=1
1809              fi
1810              coin_cbc_checklevel=$withval
1811else
1812  coin_cbc_checklevel=0
1813fi;
1814
1815cat >>confdefs.h <<_ACEOF
1816#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1817_ACEOF
1818
1819
1820# We use the following variable to have a string with the upper case
1821# version of the project name
1822COIN_PRJCT=CBC
1823
1824
1825 # m4_ifvaln([Cbc],
1826
1827
1828
1829# Get the name of the C++ compiler and appropriate compiler options
1830case $build in
1831  *-mingw*)
1832    if test "${LD+set}" = set; then :; else
1833      LD=link
1834    fi
1835    ;;
1836 esac
1837 case $enable_doscompile in
1838   msvc)
1839     if test "x${LD+set}" = xset; then :; else
1840       LD=link
1841     fi
1842     ;;
1843 esac
1844
1845
1846 # Check whether --enable-doscompile or --disable-doscompile was given.
1847if test "${enable_doscompile+set}" = set; then
1848  enableval="$enable_doscompile"
1849  if test "$enable_doscompile" != no; then
1850     case $build in
1851       *-cygwin* | *-mingw*) ;;
1852       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1853echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1854   { (exit 1); exit 1; }; } ;;
1855     esac
1856   fi
1857else
1858  enable_doscompile=no
1859fi;
1860 case "$enable_doscompile" in
1861   mingw)
1862     case $build in
1863       *-mingw*) enable_doscompile=no ;;
1864     esac
1865     ;;
1866   msvc|no) ;;
1867   yes) enable_doscompile=mingw ;;
1868   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1869                    Try configure --help=recursive." >&5
1870echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1871                    Try configure --help=recursive." >&2;}
1872   { (exit 1); exit 1; }; }
1873      ;;
1874  esac
1875  if test "$enable_doscompile" != no ; then
1876    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1877echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1878  fi
1879
1880
1881
1882
1883ac_ext=c
1884ac_cpp='$CPP $CPPFLAGS'
1885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888
1889
1890# For consistency, we set the C compiler to the same value of the C++
1891# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1892if test x"$CXX" != x; then
1893  case "$CXX" in
1894    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1895      if test x"$CC" = x; then
1896        CC="$CXX"
1897        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1898echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1899      fi
1900      ;;
1901  esac
1902fi
1903
1904
1905
1906
1907
1908
1909coin_has_cc=yes
1910
1911save_cflags="$CFLAGS"
1912
1913# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1914# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1915# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1916# compiler. In this case, put cc after gcc.
1917
1918case $build in
1919  *-cygwin* | *-mingw*)
1920             if test "$enable_doscompile" = msvc ; then
1921               comps="icl cl"
1922             else
1923               comps="gcc cl"
1924             fi ;;
1925  *-*-solaris*)
1926             # Extract the first word of "cc", so it can be a program name with args.
1927set dummy cc; ac_word=$2
1928echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1931  echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933  if test -n "$sol_cc_compiler"; then
1934  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1935else
1936  ac_prog_rejected=no
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940  IFS=$as_save_IFS
1941  test -z "$as_dir" && as_dir=.
1942  for ac_exec_ext in '' $ac_executable_extensions; do
1943  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1944    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1945       ac_prog_rejected=yes
1946       continue
1947     fi
1948    ac_cv_prog_sol_cc_compiler="cc"
1949    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1950    break 2
1951  fi
1952done
1953done
1954
1955if test $ac_prog_rejected = yes; then
1956  # We found a bogon in the path, so make sure we never use it.
1957  set dummy $ac_cv_prog_sol_cc_compiler
1958  shift
1959  if test $# != 0; then
1960    # We chose a different compiler from the bogus one.
1961    # However, it has the same basename, so the bogon will be chosen
1962    # first if we set sol_cc_compiler to just the basename; use the full file name.
1963    shift
1964    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1965  fi
1966fi
1967fi
1968fi
1969sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1970if test -n "$sol_cc_compiler"; then
1971  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1972echo "${ECHO_T}$sol_cc_compiler" >&6
1973else
1974  echo "$as_me:$LINENO: result: no" >&5
1975echo "${ECHO_T}no" >&6
1976fi
1977
1978             if test "$sol_cc_compiler" = "cc" ; then
1979               comps="cc xlc gcc pgcc icc"
1980             else
1981               comps="xlc gcc pgcc icc cc"
1982             fi
1983             ;;
1984  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1985  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1986esac
1987
1988# We delete the cached value, since the test might not have been
1989# performed with our choice of compilers earlier
1990$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1991# AC_MSG_NOTICE([C compiler candidates: $comps])
1992ac_ext=c
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997if test -n "$ac_tool_prefix"; then
1998  for ac_prog in $comps
1999  do
2000    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2002echo "$as_me:$LINENO: checking for $ac_word" >&5
2003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004if test "${ac_cv_prog_CC+set}" = set; then
2005  echo $ECHO_N "(cached) $ECHO_C" >&6
2006else
2007  if test -n "$CC"; then
2008  ac_cv_prog_CC="$CC" # Let the user override the test.
2009else
2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011for as_dir in $PATH
2012do
2013  IFS=$as_save_IFS
2014  test -z "$as_dir" && as_dir=.
2015  for ac_exec_ext in '' $ac_executable_extensions; do
2016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019    break 2
2020  fi
2021done
2022done
2023
2024fi
2025fi
2026CC=$ac_cv_prog_CC
2027if test -n "$CC"; then
2028  echo "$as_me:$LINENO: result: $CC" >&5
2029echo "${ECHO_T}$CC" >&6
2030else
2031  echo "$as_me:$LINENO: result: no" >&5
2032echo "${ECHO_T}no" >&6
2033fi
2034
2035    test -n "$CC" && break
2036  done
2037fi
2038if test -z "$CC"; then
2039  ac_ct_CC=$CC
2040  for ac_prog in $comps
2041do
2042  # Extract the first word of "$ac_prog", so it can be a program name with args.
2043set dummy $ac_prog; ac_word=$2
2044echo "$as_me:$LINENO: checking for $ac_word" >&5
2045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047  echo $ECHO_N "(cached) $ECHO_C" >&6
2048else
2049  if test -n "$ac_ct_CC"; then
2050  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2051else
2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053for as_dir in $PATH
2054do
2055  IFS=$as_save_IFS
2056  test -z "$as_dir" && as_dir=.
2057  for ac_exec_ext in '' $ac_executable_extensions; do
2058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059    ac_cv_prog_ac_ct_CC="$ac_prog"
2060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061    break 2
2062  fi
2063done
2064done
2065
2066fi
2067fi
2068ac_ct_CC=$ac_cv_prog_ac_ct_CC
2069if test -n "$ac_ct_CC"; then
2070  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2071echo "${ECHO_T}$ac_ct_CC" >&6
2072else
2073  echo "$as_me:$LINENO: result: no" >&5
2074echo "${ECHO_T}no" >&6
2075fi
2076
2077  test -n "$ac_ct_CC" && break
2078done
2079
2080  CC=$ac_ct_CC
2081fi
2082
2083
2084test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2085See \`config.log' for more details." >&5
2086echo "$as_me: error: no acceptable C compiler found in \$PATH
2087See \`config.log' for more details." >&2;}
2088   { (exit 1); exit 1; }; }
2089
2090# Provide some information about the compiler.
2091echo "$as_me:$LINENO:" \
2092     "checking for C compiler version" >&5
2093ac_compiler=`set X $ac_compile; echo $2`
2094{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2095  (eval $ac_compiler --version </dev/null >&5) 2>&5
2096  ac_status=$?
2097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098  (exit $ac_status); }
2099{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2100  (eval $ac_compiler -v </dev/null >&5) 2>&5
2101  ac_status=$?
2102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103  (exit $ac_status); }
2104{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2105  (eval $ac_compiler -V </dev/null >&5) 2>&5
2106  ac_status=$?
2107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108  (exit $ac_status); }
2109
2110cat >conftest.$ac_ext <<_ACEOF
2111/* confdefs.h.  */
2112_ACEOF
2113cat confdefs.h >>conftest.$ac_ext
2114cat >>conftest.$ac_ext <<_ACEOF
2115/* end confdefs.h.  */
2116
2117int
2118main ()
2119{
2120
2121  ;
2122  return 0;
2123}
2124_ACEOF
2125ac_clean_files_save=$ac_clean_files
2126ac_clean_files="$ac_clean_files a.out a.exe b.out"
2127# Try to create an executable without -o first, disregard a.out.
2128# It will help us diagnose broken compilers, and finding out an intuition
2129# of exeext.
2130echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2131echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2132ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2133if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2134  (eval $ac_link_default) 2>&5
2135  ac_status=$?
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); }; then
2138  # Find the output, starting from the most likely.  This scheme is
2139# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2140# resort.
2141
2142# Be careful to initialize this variable, since it used to be cached.
2143# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2144ac_cv_exeext=
2145# b.out is created by i960 compilers.
2146for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2147do
2148  test -f "$ac_file" || continue
2149  case $ac_file in
2150    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2151        ;;
2152    conftest.$ac_ext )
2153        # This is the source file.
2154        ;;
2155    [ab].out )
2156        # We found the default executable, but exeext='' is most
2157        # certainly right.
2158        break;;
2159    *.* )
2160        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2161        # FIXME: I believe we export ac_cv_exeext for Libtool,
2162        # but it would be cool to find out if it's true.  Does anybody
2163        # maintain Libtool? --akim.
2164        export ac_cv_exeext
2165        break;;
2166    * )
2167        break;;
2168  esac
2169done
2170else
2171  echo "$as_me: failed program was:" >&5
2172sed 's/^/| /' conftest.$ac_ext >&5
2173
2174{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2175See \`config.log' for more details." >&5
2176echo "$as_me: error: C compiler cannot create executables
2177See \`config.log' for more details." >&2;}
2178   { (exit 77); exit 77; }; }
2179fi
2180
2181ac_exeext=$ac_cv_exeext
2182echo "$as_me:$LINENO: result: $ac_file" >&5
2183echo "${ECHO_T}$ac_file" >&6
2184
2185# Check the compiler produces executables we can run.  If not, either
2186# the compiler is broken, or we cross compile.
2187echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2188echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2189# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2190# If not cross compiling, check that we can run a simple program.
2191if test "$cross_compiling" != yes; then
2192  if { ac_try='./$ac_file'
2193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2194  (eval $ac_try) 2>&5
2195  ac_status=$?
2196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197  (exit $ac_status); }; }; then
2198    cross_compiling=no
2199  else
2200    if test "$cross_compiling" = maybe; then
2201        cross_compiling=yes
2202    else
2203        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2204If you meant to cross compile, use \`--host'.
2205See \`config.log' for more details." >&5
2206echo "$as_me: error: cannot run C compiled programs.
2207If you meant to cross compile, use \`--host'.
2208See \`config.log' for more details." >&2;}
2209   { (exit 1); exit 1; }; }
2210    fi
2211  fi
2212fi
2213echo "$as_me:$LINENO: result: yes" >&5
2214echo "${ECHO_T}yes" >&6
2215
2216rm -f a.out a.exe conftest$ac_cv_exeext b.out
2217ac_clean_files=$ac_clean_files_save
2218# Check the compiler produces executables we can run.  If not, either
2219# the compiler is broken, or we cross compile.
2220echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2221echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2222echo "$as_me:$LINENO: result: $cross_compiling" >&5
2223echo "${ECHO_T}$cross_compiling" >&6
2224
2225echo "$as_me:$LINENO: checking for suffix of executables" >&5
2226echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2228  (eval $ac_link) 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }; then
2232  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2233# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2234# work properly (i.e., refer to `conftest.exe'), while it won't with
2235# `rm'.
2236for ac_file in conftest.exe conftest conftest.*; do
2237  test -f "$ac_file" || continue
2238  case $ac_file in
2239    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2240    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2241          export ac_cv_exeext
2242          break;;
2243    * ) break;;
2244  esac
2245done
2246else
2247  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2248See \`config.log' for more details." >&5
2249echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2250See \`config.log' for more details." >&2;}
2251   { (exit 1); exit 1; }; }
2252fi
2253
2254rm -f conftest$ac_cv_exeext
2255echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2256echo "${ECHO_T}$ac_cv_exeext" >&6
2257
2258rm -f conftest.$ac_ext
2259EXEEXT=$ac_cv_exeext
2260ac_exeext=$EXEEXT
2261echo "$as_me:$LINENO: checking for suffix of object files" >&5
2262echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2263if test "${ac_cv_objext+set}" = set; then
2264  echo $ECHO_N "(cached) $ECHO_C" >&6
2265else
2266  cat >conftest.$ac_ext <<_ACEOF
2267/* confdefs.h.  */
2268_ACEOF
2269cat confdefs.h >>conftest.$ac_ext
2270cat >>conftest.$ac_ext <<_ACEOF
2271/* end confdefs.h.  */
2272
2273int
2274main ()
2275{
2276
2277  ;
2278  return 0;
2279}
2280_ACEOF
2281rm -f conftest.o conftest.obj
2282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283  (eval $ac_compile) 2>&5
2284  ac_status=$?
2285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286  (exit $ac_status); }; then
2287  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2288  case $ac_file in
2289    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2290    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2291       break;;
2292  esac
2293done
2294else
2295  echo "$as_me: failed program was:" >&5
2296sed 's/^/| /' conftest.$ac_ext >&5
2297
2298{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2299See \`config.log' for more details." >&5
2300echo "$as_me: error: cannot compute suffix of object files: cannot compile
2301See \`config.log' for more details." >&2;}
2302   { (exit 1); exit 1; }; }
2303fi
2304
2305rm -f conftest.$ac_cv_objext conftest.$ac_ext
2306fi
2307echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2308echo "${ECHO_T}$ac_cv_objext" >&6
2309OBJEXT=$ac_cv_objext
2310ac_objext=$OBJEXT
2311echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2312echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2313if test "${ac_cv_c_compiler_gnu+set}" = set; then
2314  echo $ECHO_N "(cached) $ECHO_C" >&6
2315else
2316  cat >conftest.$ac_ext <<_ACEOF
2317/* confdefs.h.  */
2318_ACEOF
2319cat confdefs.h >>conftest.$ac_ext
2320cat >>conftest.$ac_ext <<_ACEOF
2321/* end confdefs.h.  */
2322
2323int
2324main ()
2325{
2326#ifndef __GNUC__
2327       choke me
2328#endif
2329
2330  ;
2331  return 0;
2332}
2333_ACEOF
2334rm -f conftest.$ac_objext
2335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2336  (eval $ac_compile) 2>conftest.er1
2337  ac_status=$?
2338  grep -v '^ *+' conftest.er1 >conftest.err
2339  rm -f conftest.er1
2340  cat conftest.err >&5
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); } &&
2343         { ac_try='test -z "$ac_c_werror_flag"
2344                         || test ! -s conftest.err'
2345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346  (eval $ac_try) 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; } &&
2350         { ac_try='test -s conftest.$ac_objext'
2351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352  (eval $ac_try) 2>&5
2353  ac_status=$?
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); }; }; then
2356  ac_compiler_gnu=yes
2357else
2358  echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361ac_compiler_gnu=no
2362fi
2363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2364ac_cv_c_compiler_gnu=$ac_compiler_gnu
2365
2366fi
2367echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2368echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2369GCC=`test $ac_compiler_gnu = yes && echo yes`
2370ac_test_CFLAGS=${CFLAGS+set}
2371ac_save_CFLAGS=$CFLAGS
2372CFLAGS="-g"
2373echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2374echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2375if test "${ac_cv_prog_cc_g+set}" = set; then
2376  echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378  cat >conftest.$ac_ext <<_ACEOF
2379/* confdefs.h.  */
2380_ACEOF
2381cat confdefs.h >>conftest.$ac_ext
2382cat >>conftest.$ac_ext <<_ACEOF
2383/* end confdefs.h.  */
2384
2385int
2386main ()
2387{
2388
2389  ;
2390  return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext
2394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395  (eval $ac_compile) 2>conftest.er1
2396  ac_status=$?
2397  grep -v '^ *+' conftest.er1 >conftest.err
2398  rm -f conftest.er1
2399  cat conftest.err >&5
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); } &&
2402         { ac_try='test -z "$ac_c_werror_flag"
2403                         || test ! -s conftest.err'
2404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405  (eval $ac_try) 2>&5
2406  ac_status=$?
2407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408  (exit $ac_status); }; } &&
2409         { ac_try='test -s conftest.$ac_objext'
2410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411  (eval $ac_try) 2>&5
2412  ac_status=$?
2413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414  (exit $ac_status); }; }; then
2415  ac_cv_prog_cc_g=yes
2416else
2417  echo "$as_me: failed program was:" >&5
2418sed 's/^/| /' conftest.$ac_ext >&5
2419
2420ac_cv_prog_cc_g=no
2421fi
2422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2423fi
2424echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2425echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2426if test "$ac_test_CFLAGS" = set; then
2427  CFLAGS=$ac_save_CFLAGS
2428elif test $ac_cv_prog_cc_g = yes; then
2429  if test "$GCC" = yes; then
2430    CFLAGS="-g -O2"
2431  else
2432    CFLAGS="-g"
2433  fi
2434else
2435  if test "$GCC" = yes; then
2436    CFLAGS="-O2"
2437  else
2438    CFLAGS=
2439  fi
2440fi
2441echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2442echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2443if test "${ac_cv_prog_cc_stdc+set}" = set; then
2444  echo $ECHO_N "(cached) $ECHO_C" >&6
2445else
2446  ac_cv_prog_cc_stdc=no
2447ac_save_CC=$CC
2448cat >conftest.$ac_ext <<_ACEOF
2449/* confdefs.h.  */
2450_ACEOF
2451cat confdefs.h >>conftest.$ac_ext
2452cat >>conftest.$ac_ext <<_ACEOF
2453/* end confdefs.h.  */
2454#include <stdarg.h>
2455#include <stdio.h>
2456#include <sys/types.h>
2457#include <sys/stat.h>
2458/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2459struct buf { int x; };
2460FILE * (*rcsopen) (struct buf *, struct stat *, int);
2461static char *e (p, i)
2462     char **p;
2463     int i;
2464{
2465  return p[i];
2466}
2467static char *f (char * (*g) (char **, int), char **p, ...)
2468{
2469  char *s;
2470  va_list v;
2471  va_start (v,p);
2472  s = g (p, va_arg (v,int));
2473  va_end (v);
2474  return s;
2475}
2476
2477/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2478   function prototypes and stuff, but not '\xHH' hex character constants.
2479   These don't provoke an error unfortunately, instead are silently treated
2480   as 'x'.  The following induces an error, until -std1 is added to get
2481   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2482   array size at least.  It's necessary to write '\x00'==0 to get something
2483   that's true only with -std1.  */
2484int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2485
2486int test (int i, double x);
2487struct s1 {int (*f) (int a);};
2488struct s2 {int (*f) (double a);};
2489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2490int argc;
2491char **argv;
2492int
2493main ()
2494{
2495return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2496  ;
2497  return 0;
2498}
2499_ACEOF
2500# Don't try gcc -ansi; that turns off useful extensions and
2501# breaks some systems' header files.
2502# AIX                   -qlanglvl=ansi
2503# Ultrix and OSF/1      -std1
2504# HP-UX 10.20 and later -Ae
2505# HP-UX older versions  -Aa -D_HPUX_SOURCE
2506# SVR4                  -Xc -D__EXTENSIONS__
2507for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2508do
2509  CC="$ac_save_CC $ac_arg"
2510  rm -f conftest.$ac_objext
2511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512  (eval $ac_compile) 2>conftest.er1
2513  ac_status=$?
2514  grep -v '^ *+' conftest.er1 >conftest.err
2515  rm -f conftest.er1
2516  cat conftest.err >&5
2517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518  (exit $ac_status); } &&
2519         { ac_try='test -z "$ac_c_werror_flag"
2520                         || test ! -s conftest.err'
2521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522  (eval $ac_try) 2>&5
2523  ac_status=$?
2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525  (exit $ac_status); }; } &&
2526         { ac_try='test -s conftest.$ac_objext'
2527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528  (eval $ac_try) 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }; }; then
2532  ac_cv_prog_cc_stdc=$ac_arg
2533break
2534else
2535  echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538fi
2539rm -f conftest.err conftest.$ac_objext
2540done
2541rm -f conftest.$ac_ext conftest.$ac_objext
2542CC=$ac_save_CC
2543
2544fi
2545
2546case "x$ac_cv_prog_cc_stdc" in
2547  x|xno)
2548    echo "$as_me:$LINENO: result: none needed" >&5
2549echo "${ECHO_T}none needed" >&6 ;;
2550  *)
2551    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2552echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2553    CC="$CC $ac_cv_prog_cc_stdc" ;;
2554esac
2555
2556# Some people use a C++ compiler to compile C.  Since we use `exit',
2557# in C++ we need to declare it.  In case someone uses the same compiler
2558# for both compiling C and C++ we need to have the C++ compiler decide
2559# the declaration of exit, since it's the most demanding environment.
2560cat >conftest.$ac_ext <<_ACEOF
2561#ifndef __cplusplus
2562  choke me
2563#endif
2564_ACEOF
2565rm -f conftest.$ac_objext
2566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567  (eval $ac_compile) 2>conftest.er1
2568  ac_status=$?
2569  grep -v '^ *+' conftest.er1 >conftest.err
2570  rm -f conftest.er1
2571  cat conftest.err >&5
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); } &&
2574         { ac_try='test -z "$ac_c_werror_flag"
2575                         || test ! -s conftest.err'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; } &&
2581         { ac_try='test -s conftest.$ac_objext'
2582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583  (eval $ac_try) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }; }; then
2587  for ac_declaration in \
2588   '' \
2589   'extern "C" void std::exit (int) throw (); using std::exit;' \
2590   'extern "C" void std::exit (int); using std::exit;' \
2591   'extern "C" void exit (int) throw ();' \
2592   'extern "C" void exit (int);' \
2593   'void exit (int);'
2594do
2595  cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h.  */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h.  */
2601$ac_declaration
2602#include <stdlib.h>
2603int
2604main ()
2605{
2606exit (42);
2607  ;
2608  return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613  (eval $ac_compile) 2>conftest.er1
2614  ac_status=$?
2615  grep -v '^ *+' conftest.er1 >conftest.err
2616  rm -f conftest.er1
2617  cat conftest.err >&5
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } &&
2620         { ac_try='test -z "$ac_c_werror_flag"
2621                         || test ! -s conftest.err'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; } &&
2627         { ac_try='test -s conftest.$ac_objext'
2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629  (eval $ac_try) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; }; then
2633  :
2634else
2635  echo "$as_me: failed program was:" >&5
2636sed 's/^/| /' conftest.$ac_ext >&5
2637
2638continue
2639fi
2640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641  cat >conftest.$ac_ext <<_ACEOF
2642/* confdefs.h.  */
2643_ACEOF
2644cat confdefs.h >>conftest.$ac_ext
2645cat >>conftest.$ac_ext <<_ACEOF
2646/* end confdefs.h.  */
2647$ac_declaration
2648int
2649main ()
2650{
2651exit (42);
2652  ;
2653  return 0;
2654}
2655_ACEOF
2656rm -f conftest.$ac_objext
2657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658  (eval $ac_compile) 2>conftest.er1
2659  ac_status=$?
2660  grep -v '^ *+' conftest.er1 >conftest.err
2661  rm -f conftest.er1
2662  cat conftest.err >&5
2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664  (exit $ac_status); } &&
2665         { ac_try='test -z "$ac_c_werror_flag"
2666                         || test ! -s conftest.err'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; } &&
2672         { ac_try='test -s conftest.$ac_objext'
2673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674  (eval $ac_try) 2>&5
2675  ac_status=$?
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); }; }; then
2678  break
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
2685done
2686rm -f conftest*
2687if test -n "$ac_declaration"; then
2688  echo '#ifdef __cplusplus' >>confdefs.h
2689  echo $ac_declaration      >>confdefs.h
2690  echo '#endif'             >>confdefs.h
2691fi
2692
2693else
2694  echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
2696
2697fi
2698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2699ac_ext=c
2700ac_cpp='$CPP $CPPFLAGS'
2701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2703ac_compiler_gnu=$ac_cv_c_compiler_gnu
2704
2705if test -z "$CC" ; then
2706  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2707echo "$as_me: error: Failed to find a C compiler!" >&2;}
2708   { (exit 1); exit 1; }; }
2709fi
2710# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2711case "$CC" in
2712  cl* | */cl* | CL* | */CL* )
2713    if test "$ac_cv_prog_cc_g" = yes ; then
2714      ac_cv_prog_cc_g=no
2715      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2716echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2717    fi ;;
2718esac
2719CFLAGS="$save_cflags"
2720
2721# Check if a project specific CFLAGS variable has been set
2722if test x$COIN_PRJCT != x; then
2723  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2724  if test x$coin_tmp = xset; then
2725    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2726  fi
2727fi
2728
2729if test x"$CFLAGS" = x; then
2730
2731  coin_add_cflags=
2732  coin_opt_cflags=
2733  coin_dbg_cflags=
2734  coin_warn_cflags=
2735
2736  if test "$GCC" = "yes"; then
2737    case "$CC" in
2738      icc* | */icc*)
2739        ;;
2740      *)
2741        coin_opt_cflags="-O3 -fomit-frame-pointer"
2742        coin_add_cflags="-pipe"
2743        coin_dbg_cflags="-g"
2744        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2745        case $enable_doscompile in
2746          mingw)
2747            CFLAGS="-mno-cygwin"
2748            cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h.  */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h.  */
2754
2755int
2756main ()
2757{
2758int i=0; i++;
2759  ;
2760  return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext conftest$ac_exeext
2764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2765  (eval $ac_link) 2>conftest.er1
2766  ac_status=$?
2767  grep -v '^ *+' conftest.er1 >conftest.err
2768  rm -f conftest.er1
2769  cat conftest.err >&5
2770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771  (exit $ac_status); } &&
2772         { ac_try='test -z "$ac_c_werror_flag"
2773                         || test ! -s conftest.err'
2774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775  (eval $ac_try) 2>&5
2776  ac_status=$?
2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); }; } &&
2779         { ac_try='test -s conftest$ac_exeext'
2780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781  (eval $ac_try) 2>&5
2782  ac_status=$?
2783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784  (exit $ac_status); }; }; then
2785  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2786else
2787  echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790fi
2791rm -f conftest.err conftest.$ac_objext \
2792      conftest$ac_exeext conftest.$ac_ext
2793            CFLAGS=
2794          ;;
2795        esac
2796    esac
2797  fi
2798  if test -z "$coin_opt_cflags"; then
2799    case $build in
2800      *-cygwin* | *-mingw*)
2801        case "$CC" in
2802          cl* | */cl* | CL* | */CL*)
2803            coin_opt_cflags='-MT -O2'
2804            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2805            coin_dbg_cflags='-MTd'
2806            ;;
2807          icl* | */icl* | ICL* | */ICL*)
2808            coin_opt_cflags='-MT -Ox'
2809            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2810            coin_dbg_cflags='-MTd -debug'
2811            ;;
2812        esac
2813        ;;
2814      *-linux-*)
2815        case "$CC" in
2816          icc* | */icc*)
2817            coin_opt_cflags="-O3 -ip"
2818            coin_add_cflags=""
2819            coin_dbg_cflags="-g"
2820            # Check if -i_dynamic is necessary (for new glibc library)
2821            CFLAGS=
2822            cat >conftest.$ac_ext <<_ACEOF
2823/* confdefs.h.  */
2824_ACEOF
2825cat confdefs.h >>conftest.$ac_ext
2826cat >>conftest.$ac_ext <<_ACEOF
2827/* end confdefs.h.  */
2828
2829int
2830main ()
2831{
2832int i=0; i++;
2833  ;
2834  return 0;
2835}
2836_ACEOF
2837rm -f conftest.$ac_objext conftest$ac_exeext
2838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2839  (eval $ac_link) 2>conftest.er1
2840  ac_status=$?
2841  grep -v '^ *+' conftest.er1 >conftest.err
2842  rm -f conftest.er1
2843  cat conftest.err >&5
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); } &&
2846         { ac_try='test -z "$ac_c_werror_flag"
2847                         || test ! -s conftest.err'
2848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849  (eval $ac_try) 2>&5
2850  ac_status=$?
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); }; } &&
2853         { ac_try='test -s conftest$ac_exeext'
2854  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855  (eval $ac_try) 2>&5
2856  ac_status=$?
2857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858  (exit $ac_status); }; }; then
2859  :
2860else
2861  echo "$as_me: failed program was:" >&5
2862sed 's/^/| /' conftest.$ac_ext >&5
2863
2864coin_add_cflags="-i_dynamic $coin_add_cflags"
2865fi
2866rm -f conftest.err conftest.$ac_objext \
2867      conftest$ac_exeext conftest.$ac_ext
2868            ;;
2869          pgcc* | */pgcc*)
2870            coin_opt_cflags="-fast"
2871            coin_add_cflags="-Kieee -pc 64"
2872            coin_dbg_cflags="-g"
2873            ;;
2874        esac
2875        ;;
2876      *-ibm-*)
2877        case "$CC" in
2878          xlc* | */xlc* | mpxlc* | */mpxlc*)
2879            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2880            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2881            coin_dbg_cflags="-g"
2882          ;;
2883        esac
2884        ;;
2885      *-hp-*)
2886        coin_opt_cflags="-O"
2887        coin_add_cflags="-Ae"
2888        coin_dbg_cflags="-g"
2889        ;;
2890      *-*-solaris*)
2891        coin_opt_cflags="-xO4"
2892        coin_dbg_cflags="-g"
2893        ;;
2894      *-sgi-*)
2895        coin_opt_cflags="-O -OPT:Olimit=0"
2896        coin_dbg_cflags="-g"
2897        ;;
2898    esac
2899  fi
2900
2901  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2902    coin_dbg_cflags="-g"
2903  fi
2904
2905  if test -z "$coin_opt_cflags"; then
2906    # Try if -O option works if nothing else is set
2907    CFLAGS="-O"
2908    cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h.  */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h.  */
2914
2915int
2916main ()
2917{
2918int i=0; i++;
2919  ;
2920  return 0;
2921}
2922_ACEOF
2923rm -f conftest.$ac_objext conftest$ac_exeext
2924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2925  (eval $ac_link) 2>conftest.er1
2926  ac_status=$?
2927  grep -v '^ *+' conftest.er1 >conftest.err
2928  rm -f conftest.er1
2929  cat conftest.err >&5
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); } &&
2932         { ac_try='test -z "$ac_c_werror_flag"
2933                         || test ! -s conftest.err'
2934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935  (eval $ac_try) 2>&5
2936  ac_status=$?
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); }; } &&
2939         { ac_try='test -s conftest$ac_exeext'
2940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941  (eval $ac_try) 2>&5
2942  ac_status=$?
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); }; }; then
2945  coin_opt_cflags="-O"
2946else
2947  echo "$as_me: failed program was:" >&5
2948sed 's/^/| /' conftest.$ac_ext >&5
2949
2950fi
2951rm -f conftest.err conftest.$ac_objext \
2952      conftest$ac_exeext conftest.$ac_ext
2953  fi
2954
2955  # if PM doesn't want the warning messages, take them out
2956  if test x"$coin_skip_warn_cflags" = xyes; then
2957    coin_warn_cflags=
2958  fi
2959
2960  if test x${DBG_CFLAGS+set} != xset; then
2961    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2962  fi
2963  if test x${OPT_CFLAGS+set} != xset; then
2964    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2965  fi
2966
2967  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2968  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2969
2970  if test "$coin_debug_compile" = "true"; then
2971    CFLAGS="$DBG_CFLAGS"
2972  else
2973    CFLAGS="$OPT_CFLAGS"
2974  fi
2975else
2976  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2977  if test x${DBG_CFLAGS+set} != xset; then
2978    DBG_CFLAGS="$CFLAGS"
2979  fi
2980  if test x${OPT_CFLAGS+set} != xset; then
2981    OPT_CFLAGS="$CFLAGS"
2982  fi
2983fi
2984
2985# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2986
2987case "$CFLAGS" in
2988  *-mno-cygwin*)
2989    if test x${CPPFLAGS+set} != xset ; then
2990      CPPFLAGS="-mno-cygwin"
2991    else
2992      case "$CPPFLAGS" in
2993        *-mno-cygwin*)
2994          ;;
2995        *)
2996          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2997          ;;
2998      esac
2999    fi ;;
3000esac
3001
3002# Try if CFLAGS works
3003save_CFLAGS="$CFLAGS"
3004cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h.  */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h.  */
3010
3011int
3012main ()
3013{
3014int i=0; i++;
3015  ;
3016  return 0;
3017}
3018_ACEOF
3019rm -f conftest.$ac_objext conftest$ac_exeext
3020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3021  (eval $ac_link) 2>conftest.er1
3022  ac_status=$?
3023  grep -v '^ *+' conftest.er1 >conftest.err
3024  rm -f conftest.er1
3025  cat conftest.err >&5
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); } &&
3028         { ac_try='test -z "$ac_c_werror_flag"
3029                         || test ! -s conftest.err'
3030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031  (eval $ac_try) 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; } &&
3035         { ac_try='test -s conftest$ac_exeext'
3036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037  (eval $ac_try) 2>&5
3038  ac_status=$?
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }; }; then
3041  :
3042else
3043  echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046CFLAGS=
3047fi
3048rm -f conftest.err conftest.$ac_objext \
3049      conftest$ac_exeext conftest.$ac_ext
3050if test -z "$CFLAGS"; then
3051  { 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
3052echo "$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;}
3053  CFLAGS='-O'
3054  cat >conftest.$ac_ext <<_ACEOF
3055/* confdefs.h.  */
3056_ACEOF
3057cat confdefs.h >>conftest.$ac_ext
3058cat >>conftest.$ac_ext <<_ACEOF
3059/* end confdefs.h.  */
3060
3061int
3062main ()
3063{
3064int i=0; i++;
3065  ;
3066  return 0;
3067}
3068_ACEOF
3069rm -f conftest.$ac_objext conftest$ac_exeext
3070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3071  (eval $ac_link) 2>conftest.er1
3072  ac_status=$?
3073  grep -v '^ *+' conftest.er1 >conftest.err
3074  rm -f conftest.er1
3075  cat conftest.err >&5
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); } &&
3078         { ac_try='test -z "$ac_c_werror_flag"
3079                         || test ! -s conftest.err'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; } &&
3085         { ac_try='test -s conftest$ac_exeext'
3086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087  (eval $ac_try) 2>&5
3088  ac_status=$?
3089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090  (exit $ac_status); }; }; then
3091  :
3092else
3093  echo "$as_me: failed program was:" >&5
3094sed 's/^/| /' conftest.$ac_ext >&5
3095
3096CFLAGS=
3097fi
3098rm -f conftest.err conftest.$ac_objext \
3099      conftest$ac_exeext conftest.$ac_ext
3100  if test -z "$CFLAGS"; then
3101    { 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
3102echo "$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;}
3103  fi
3104fi
3105
3106{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3107echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3108
3109
3110if test x"$MPICC" = x; then :; else
3111  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3112echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3113  CC="$MPICC"
3114fi
3115
3116# Correct ADDLIBS initialization if we are using the MS compiler
3117case "$CC" in
3118  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3119    ADDLIBS=
3120    case $build in
3121  *-mingw*)
3122    if test "${LD+set}" = set; then :; else
3123      LD=link
3124    fi
3125    ;;
3126 esac
3127 case $enable_doscompile in
3128   msvc)
3129     if test "x${LD+set}" = xset; then :; else
3130       LD=link
3131     fi
3132     ;;
3133 esac
3134
3135    ;;
3136esac
3137
3138ac_ext=c
3139ac_cpp='$CPP $CPPFLAGS'
3140ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3141ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3142ac_compiler_gnu=$ac_cv_c_compiler_gnu
3143
3144
3145
3146 #Let's try if that overcomes configuration problem with VC++ 6.0
3147
3148ac_ext=cc
3149ac_cpp='$CXXCPP $CPPFLAGS'
3150ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3151ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3152ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3153
3154
3155
3156
3157
3158
3159
3160coin_has_cxx=yes
3161
3162save_cxxflags="$CXXFLAGS"
3163# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3164case $build in
3165  *-cygwin* | *-mingw*)
3166             if test "$enable_doscompile" = msvc ; then
3167               comps="icl cl"
3168             else
3169               comps="g++ cl"
3170             fi ;;
3171  *-*-solaris*)
3172             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3173  *-darwin*) comps="g++ c++ CC" ;;
3174          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3175esac
3176
3177# We delete the cached value, since the test might not have been
3178# performed with our choice of compilers earlier
3179$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3180# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3181ac_ext=cc
3182ac_cpp='$CXXCPP $CPPFLAGS'
3183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3186if test -n "$ac_tool_prefix"; then
3187  for ac_prog in $CCC $comps
3188  do
3189    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3190set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3191echo "$as_me:$LINENO: checking for $ac_word" >&5
3192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3193if test "${ac_cv_prog_CXX+set}" = set; then
3194  echo $ECHO_N "(cached) $ECHO_C" >&6
3195else
3196  if test -n "$CXX"; then
3197  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3198else
3199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200for as_dir in $PATH
3201do
3202  IFS=$as_save_IFS
3203  test -z "$as_dir" && as_dir=.
3204  for ac_exec_ext in '' $ac_executable_extensions; do
3205  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3206    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3207    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208    break 2
3209  fi
3210done
3211done
3212
3213fi
3214fi
3215CXX=$ac_cv_prog_CXX
3216if test -n "$CXX"; then
3217  echo "$as_me:$LINENO: result: $CXX" >&5
3218echo "${ECHO_T}$CXX" >&6
3219else
3220  echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
3222fi
3223
3224    test -n "$CXX" && break
3225  done
3226fi
3227if test -z "$CXX"; then
3228  ac_ct_CXX=$CXX
3229  for ac_prog in $CCC $comps
3230do
3231  # Extract the first word of "$ac_prog", so it can be a program name with args.
3232set dummy $ac_prog; ac_word=$2
3233echo "$as_me:$LINENO: checking for $ac_word" >&5
3234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3235if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3236  echo $ECHO_N "(cached) $ECHO_C" >&6
3237else
3238  if test -n "$ac_ct_CXX"; then
3239  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3240else
3241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242for as_dir in $PATH
3243do
3244  IFS=$as_save_IFS
3245  test -z "$as_dir" && as_dir=.
3246  for ac_exec_ext in '' $ac_executable_extensions; do
3247  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248    ac_cv_prog_ac_ct_CXX="$ac_prog"
3249    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3250    break 2
3251  fi
3252done
3253done
3254
3255fi
3256fi
3257ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3258if test -n "$ac_ct_CXX"; then
3259  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3260echo "${ECHO_T}$ac_ct_CXX" >&6
3261else
3262  echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264fi
3265
3266  test -n "$ac_ct_CXX" && break
3267done
3268test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3269
3270  CXX=$ac_ct_CXX
3271fi
3272
3273
3274# Provide some information about the compiler.
3275echo "$as_me:$LINENO:" \
3276     "checking for C++ compiler version" >&5
3277ac_compiler=`set X $ac_compile; echo $2`
3278{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3279  (eval $ac_compiler --version </dev/null >&5) 2>&5
3280  ac_status=$?
3281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282  (exit $ac_status); }
3283{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3284  (eval $ac_compiler -v </dev/null >&5) 2>&5
3285  ac_status=$?
3286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287  (exit $ac_status); }
3288{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3289  (eval $ac_compiler -V </dev/null >&5) 2>&5
3290  ac_status=$?
3291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292  (exit $ac_status); }
3293
3294echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3295echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3296if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3297  echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299  cat >conftest.$ac_ext <<_ACEOF
3300/* confdefs.h.  */
3301_ACEOF
3302cat confdefs.h >>conftest.$ac_ext
3303cat >>conftest.$ac_ext <<_ACEOF
3304/* end confdefs.h.  */
3305
3306int
3307main ()
3308{
3309#ifndef __GNUC__
3310       choke me
3311#endif
3312
3313  ;
3314  return 0;
3315}
3316_ACEOF
3317rm -f conftest.$ac_objext
3318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319  (eval $ac_compile) 2>conftest.er1
3320  ac_status=$?
3321  grep -v '^ *+' conftest.er1 >conftest.err
3322  rm -f conftest.er1
3323  cat conftest.err >&5
3324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325  (exit $ac_status); } &&
3326         { ac_try='test -z "$ac_cxx_werror_flag"
3327                         || test ! -s conftest.err'
3328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329  (eval $ac_try) 2>&5
3330  ac_status=$?
3331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332  (exit $ac_status); }; } &&
3333         { ac_try='test -s conftest.$ac_objext'
3334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335  (eval $ac_try) 2>&5
3336  ac_status=$?
3337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338  (exit $ac_status); }; }; then
3339  ac_compiler_gnu=yes
3340else
3341  echo "$as_me: failed program was:" >&5
3342sed 's/^/| /' conftest.$ac_ext >&5
3343
3344ac_compiler_gnu=no
3345fi
3346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3348
3349fi
3350echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3351echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3352GXX=`test $ac_compiler_gnu = yes && echo yes`
3353ac_test_CXXFLAGS=${CXXFLAGS+set}
3354ac_save_CXXFLAGS=$CXXFLAGS
3355CXXFLAGS="-g"
3356echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3357echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3358if test "${ac_cv_prog_cxx_g+set}" = set; then
3359  echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361  cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h.  */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h.  */
3367
3368int
3369main ()
3370{
3371
3372  ;
3373  return 0;
3374}
3375_ACEOF
3376rm -f conftest.$ac_objext
3377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378  (eval $ac_compile) 2>conftest.er1
3379  ac_status=$?
3380  grep -v '^ *+' conftest.er1 >conftest.err
3381  rm -f conftest.er1
3382  cat conftest.err >&5
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); } &&
3385         { ac_try='test -z "$ac_cxx_werror_flag"
3386                         || test ! -s conftest.err'
3387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388  (eval $ac_try) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }; } &&
3392         { ac_try='test -s conftest.$ac_objext'
3393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394  (eval $ac_try) 2>&5
3395  ac_status=$?
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); }; }; then
3398  ac_cv_prog_cxx_g=yes
3399else
3400  echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403ac_cv_prog_cxx_g=no
3404fi
3405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406fi
3407echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3408echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3409if test "$ac_test_CXXFLAGS" = set; then
3410  CXXFLAGS=$ac_save_CXXFLAGS
3411elif test $ac_cv_prog_cxx_g = yes; then
3412  if test "$GXX" = yes; then
3413    CXXFLAGS="-g -O2"
3414  else
3415    CXXFLAGS="-g"
3416  fi
3417else
3418  if test "$GXX" = yes; then
3419    CXXFLAGS="-O2"
3420  else
3421    CXXFLAGS=
3422  fi
3423fi
3424for ac_declaration in \
3425   '' \
3426   'extern "C" void std::exit (int) throw (); using std::exit;' \
3427   'extern "C" void std::exit (int); using std::exit;' \
3428   'extern "C" void exit (int) throw ();' \
3429   'extern "C" void exit (int);' \
3430   'void exit (int);'
3431do
3432  cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h.  */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h.  */
3438$ac_declaration
3439#include <stdlib.h>
3440int
3441main ()
3442{
3443exit (42);
3444  ;
3445  return 0;
3446}
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450  (eval $ac_compile) 2>conftest.er1
3451  ac_status=$?
3452  grep -v '^ *+' conftest.er1 >conftest.err
3453  rm -f conftest.er1
3454  cat conftest.err >&5
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); } &&
3457         { ac_try='test -z "$ac_cxx_werror_flag"
3458                         || test ! -s conftest.err'
3459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460  (eval $ac_try) 2>&5
3461  ac_status=$?
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); }; } &&
3464         { ac_try='test -s conftest.$ac_objext'
3465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466  (eval $ac_try) 2>&5
3467  ac_status=$?
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); }; }; then
3470  :
3471else
3472  echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475continue
3476fi
3477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3478  cat >conftest.$ac_ext <<_ACEOF
3479/* confdefs.h.  */
3480_ACEOF
3481cat confdefs.h >>conftest.$ac_ext
3482cat >>conftest.$ac_ext <<_ACEOF
3483/* end confdefs.h.  */
3484$ac_declaration
3485int
3486main ()
3487{
3488exit (42);
3489  ;
3490  return 0;
3491}
3492_ACEOF
3493rm -f conftest.$ac_objext
3494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495  (eval $ac_compile) 2>conftest.er1
3496  ac_status=$?
3497  grep -v '^ *+' conftest.er1 >conftest.err
3498  rm -f conftest.er1
3499  cat conftest.err >&5
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); } &&
3502         { ac_try='test -z "$ac_cxx_werror_flag"
3503                         || test ! -s conftest.err'
3504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505  (eval $ac_try) 2>&5
3506  ac_status=$?
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); }; } &&
3509         { ac_try='test -s conftest.$ac_objext'
3510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511  (eval $ac_try) 2>&5
3512  ac_status=$?
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); }; }; then
3515  break
3516else
3517  echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520fi
3521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3522done
3523rm -f conftest*
3524if test -n "$ac_declaration"; then
3525  echo '#ifdef __cplusplus' >>confdefs.h
3526  echo $ac_declaration      >>confdefs.h
3527  echo '#endif'             >>confdefs.h
3528fi
3529
3530ac_ext=cc
3531ac_cpp='$CXXCPP $CPPFLAGS'
3532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3535
3536if test -z "$CXX" ; then
3537  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3538echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3539   { (exit 1); exit 1; }; }
3540fi
3541
3542# It seems that we need to cleanup something here for the Windows
3543case "$CXX" in
3544  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3545    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3546    mv confdefs.hh confdefs.h
3547    ;;
3548esac
3549
3550# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3551case "$CXX" in
3552  cl* | */cl* | CL* | */CL* )
3553    if test "$ac_cv_prog_cxx_g" = yes ; then
3554      ac_cv_prog_cxx_g=no
3555      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3556echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3557    fi ;;
3558esac
3559CXXFLAGS="$save_cxxflags"
3560
3561# Check if a project specific CXXFLAGS variable has been set
3562if test x$COIN_PRJCT != x; then
3563  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3564  if test x$coin_tmp = xset; then
3565    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3566  fi
3567fi
3568
3569if test x"$CXXFLAGS" = x; then
3570
3571# ToDo decide whether we want -DNDEBUG for optimization
3572  coin_add_cxxflags=
3573  coin_opt_cxxflags=
3574  coin_dbg_cxxflags=
3575  coin_warn_cxxflags=
3576
3577  if test "$GXX" = "yes"; then
3578    case "$CXX" in
3579      icpc* | */icpc*)
3580        ;;
3581      *)
3582# ToDo decide about unroll-loops
3583        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3584        coin_add_cxxflags="-pipe"
3585        coin_dbg_cxxflags="-g"
3586        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3587        case $enable_doscompile in
3588          mingw)
3589            CXXFLAGS="-mno-cygwin"
3590            cat >conftest.$ac_ext <<_ACEOF
3591/* confdefs.h.  */
3592_ACEOF
3593cat confdefs.h >>conftest.$ac_ext
3594cat >>conftest.$ac_ext <<_ACEOF
3595/* end confdefs.h.  */
3596
3597int
3598main ()
3599{
3600int i=0; i++;
3601  ;
3602  return 0;
3603}
3604_ACEOF
3605rm -f conftest.$ac_objext conftest$ac_exeext
3606if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3607  (eval $ac_link) 2>conftest.er1
3608  ac_status=$?
3609  grep -v '^ *+' conftest.er1 >conftest.err
3610  rm -f conftest.er1
3611  cat conftest.err >&5
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); } &&
3614         { ac_try='test -z "$ac_cxx_werror_flag"
3615                         || test ! -s conftest.err'
3616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3617  (eval $ac_try) 2>&5
3618  ac_status=$?
3619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620  (exit $ac_status); }; } &&
3621         { ac_try='test -s conftest$ac_exeext'
3622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623  (eval $ac_try) 2>&5
3624  ac_status=$?
3625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); }; }; then
3627  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3628else
3629  echo "$as_me: failed program was:" >&5
3630sed 's/^/| /' conftest.$ac_ext >&5
3631
3632fi
3633rm -f conftest.err conftest.$ac_objext \
3634      conftest$ac_exeext conftest.$ac_ext
3635            CXXFLAGS=
3636            ;;
3637        esac
3638    esac
3639  fi
3640
3641# Note that we do not need to cover GCC in the following tests.
3642
3643  if test -z "$coin_opt_cxxflags"; then
3644    case $build in
3645      *-cygwin* | *-mingw*)
3646        case "$CXX" in
3647          cl* | */cl* | CL* | */CL*)
3648            # The MT and MTd options are mutually exclusive
3649            coin_opt_cxxflags='-MT -O2'
3650            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3651            coin_dbg_cxxflags='-MTd'
3652            ;;
3653          icl* | */icl* | ICL* | */ICL*)
3654            # The MT and MTd options are mutually exclusive
3655            coin_opt_cxxflags='-MT -Ox'
3656            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3657            coin_dbg_cxxflags='-MTd -debug'
3658            ;;
3659        esac
3660        ;;
3661      *-linux-*)
3662        case "$CXX" in
3663          icpc* | */icpc*)
3664            coin_opt_cxxflags="-O3 -ip"
3665            coin_add_cxxflags=""
3666            coin_dbg_cxxflags="-g"
3667            # Check if -i_dynamic is necessary (for new glibc library)
3668            CXXFLAGS=
3669            cat >conftest.$ac_ext <<_ACEOF
3670/* confdefs.h.  */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h.  */
3675
3676int
3677main ()
3678{
3679int i=0; i++;
3680  ;
3681  return 0;
3682}
3683_ACEOF
3684rm -f conftest.$ac_objext conftest$ac_exeext
3685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3686  (eval $ac_link) 2>conftest.er1
3687  ac_status=$?
3688  grep -v '^ *+' conftest.er1 >conftest.err
3689  rm -f conftest.er1
3690  cat conftest.err >&5
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); } &&
3693         { ac_try='test -z "$ac_cxx_werror_flag"
3694                         || test ! -s conftest.err'
3695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696  (eval $ac_try) 2>&5
3697  ac_status=$?
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); }; } &&
3700         { ac_try='test -s conftest$ac_exeext'
3701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; }; then
3706  :
3707else
3708  echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
3711coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3712fi
3713rm -f conftest.err conftest.$ac_objext \
3714      conftest$ac_exeext conftest.$ac_ext
3715            ;;
3716          pgCC* | */pgCC*)
3717            coin_opt_cxxflags="-fast"
3718            coin_add_cxxflags="-Kieee -pc 64"
3719            coin_dbg_cxxflags="-g"
3720            ;;
3721        esac
3722        ;;
3723      *-ibm-*)
3724        case "$CXX" in
3725          xlC* | */xlC* | mpxlC* | */mpxlC*)
3726            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3727            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029"
3728            coin_dbg_cxxflags="-g"
3729            ;;
3730        esac
3731        ;;
3732      *-hp-*)
3733        case "$CXX" in
3734          aCC* | */aCC* )
3735            coin_opt_cxxflags="-O"
3736            coin_add_cxxflags="-AA"
3737            coin_dbg_cxxflags="-g"
3738            ;;
3739        esac
3740        ;;
3741      *-*-solaris*)
3742          coin_opt_cxxflags="-O4"
3743          coin_dbg_cxxflags="-g"
3744        ;;
3745    esac
3746  fi
3747
3748# Generic flag settings. If these don't work, add a case above.
3749
3750  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3751    coin_dbg_cxxflags="-g"
3752  fi
3753
3754  if test -z "$coin_opt_cxxflags"; then
3755    # Try if -O option works if nothing else is set
3756    CXXFLAGS=-O
3757    cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h.  */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h.  */
3763
3764int
3765main ()
3766{
3767int i=0; i++;
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772rm -f conftest.$ac_objext conftest$ac_exeext
3773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3774  (eval $ac_link) 2>conftest.er1
3775  ac_status=$?
3776  grep -v '^ *+' conftest.er1 >conftest.err
3777  rm -f conftest.er1
3778  cat conftest.err >&5
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); } &&
3781         { ac_try='test -z "$ac_cxx_werror_flag"
3782                         || test ! -s conftest.err'
3783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784  (eval $ac_try) 2>&5
3785  ac_status=$?
3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787  (exit $ac_status); }; } &&
3788         { ac_try='test -s conftest$ac_exeext'
3789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790  (eval $ac_try) 2>&5
3791  ac_status=$?
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); }; }; then
3794  coin_opt_cxxflags="-O"
3795else
3796  echo "$as_me: failed program was:" >&5
3797sed 's/^/| /' conftest.$ac_ext >&5
3798
3799fi
3800rm -f conftest.err conftest.$ac_objext \
3801      conftest$ac_exeext conftest.$ac_ext
3802  fi
3803
3804  # if PM doesn't want the warning messages, take them out
3805  if test x"$coin_skip_warn_cxxflags" = xyes; then
3806    coin_warn_cxxflags=
3807  fi
3808
3809# Do final setup of flags based on values determined above.
3810
3811  if test x${DBG_CXXFLAGS+set} != xset; then
3812    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3813  fi
3814  if test x${OPT_CXXFLAGS+set} != xset; then
3815    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3816  fi
3817
3818  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3819  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3820
3821  if test "$coin_debug_compile" = "true"; then
3822    CXXFLAGS="$DBG_CXXFLAGS"
3823  else
3824    CXXFLAGS="$OPT_CXXFLAGS"
3825  fi
3826
3827# Handle the case where CXXFLAGS was set externally.
3828else
3829  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3830  if test x${DBG_CXXFLAGS+set} != xset; then
3831    DBG_CXXFLAGS="$CXXFLAGS"
3832  fi
3833  if test x${OPT_CXXFLAGS+set} != xset; then
3834    OPT_CXXFLAGS="$CXXFLAGS"
3835  fi
3836fi
3837
3838# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3839
3840case "$CXXFLAGS" in
3841  *-mno-cygwin*)
3842    if test x${CPPFLAGS+set} != xset ; then
3843      CPPFLAGS="-mno-cygwin"
3844    else
3845      case "$CPPFLAGS" in
3846        *-mno-cygwin*)
3847          ;;
3848        *)
3849          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3850          ;;
3851      esac
3852    fi ;;
3853esac
3854
3855# Try if CXXFLAGS works
3856save_CXXFLAGS="$CXXFLAGS"
3857cat >conftest.$ac_ext <<_ACEOF
3858/* confdefs.h.  */
3859_ACEOF
3860cat confdefs.h >>conftest.$ac_ext
3861cat >>conftest.$ac_ext <<_ACEOF
3862/* end confdefs.h.  */
3863
3864int
3865main ()
3866{
3867int i=0; i++;
3868  ;
3869  return 0;
3870}
3871_ACEOF
3872rm -f conftest.$ac_objext conftest$ac_exeext
3873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3874  (eval $ac_link) 2>conftest.er1
3875  ac_status=$?
3876  grep -v '^ *+' conftest.er1 >conftest.err
3877  rm -f conftest.er1
3878  cat conftest.err >&5
3879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880  (exit $ac_status); } &&
3881         { ac_try='test -z "$ac_cxx_werror_flag"
3882                         || test ! -s conftest.err'
3883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884  (eval $ac_try) 2>&5
3885  ac_status=$?
3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887  (exit $ac_status); }; } &&
3888         { ac_try='test -s conftest$ac_exeext'
3889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890  (eval $ac_try) 2>&5
3891  ac_status=$?
3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); }; }; then
3894  :
3895else
3896  echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
3899CXXFLAGS=
3900fi
3901rm -f conftest.err conftest.$ac_objext \
3902      conftest$ac_exeext conftest.$ac_ext
3903if test -z "$CXXFLAGS"; then
3904  { 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
3905echo "$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;}
3906  CXXFLAGS='-O'
3907  cat >conftest.$ac_ext <<_ACEOF
3908/* confdefs.h.  */
3909_ACEOF
3910cat confdefs.h >>conftest.$ac_ext
3911cat >>conftest.$ac_ext <<_ACEOF
3912/* end confdefs.h.  */
3913
3914int
3915main ()
3916{
3917int i=0; i++;
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922rm -f conftest.$ac_objext conftest$ac_exeext
3923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3924  (eval $ac_link) 2>conftest.er1
3925  ac_status=$?
3926  grep -v '^ *+' conftest.er1 >conftest.err
3927  rm -f conftest.er1
3928  cat conftest.err >&5
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); } &&
3931         { ac_try='test -z "$ac_cxx_werror_flag"
3932                         || test ! -s conftest.err'
3933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934  (eval $ac_try) 2>&5
3935  ac_status=$?
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); }; } &&
3938         { ac_try='test -s conftest$ac_exeext'
3939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940  (eval $ac_try) 2>&5
3941  ac_status=$?
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); }; }; then
3944  :
3945else
3946  echo "$as_me: failed program was:" >&5
3947sed 's/^/| /' conftest.$ac_ext >&5
3948
3949CXXFLAGS=
3950fi
3951rm -f conftest.err conftest.$ac_objext \
3952      conftest$ac_exeext conftest.$ac_ext
3953  if test -z "$CXXFLAGS"; then
3954    { 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
3955echo "$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;}
3956  fi
3957fi
3958
3959{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3960echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3961
3962
3963if test x"$MPICXX" = x; then :; else
3964  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3965echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3966  CXX="$MPICXX"
3967fi
3968
3969case "$CXX" in
3970  cl* | */cl* | CL* | */CL* )
3971    case $build in
3972  *-mingw*)
3973    if test "${LD+set}" = set; then :; else
3974      LD=link
3975    fi
3976    ;;
3977 esac
3978 case $enable_doscompile in
3979   msvc)
3980     if test "x${LD+set}" = xset; then :; else
3981       LD=link
3982     fi
3983     ;;
3984 esac
3985
3986    ;;
3987esac
3988
3989ac_ext=c
3990ac_cpp='$CPP $CPPFLAGS'
3991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3993ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994
3995
3996
3997# Initialize automake and libtool
3998{
3999
4000
4001
4002# START
4003
4004# On Cygwin and AIX, building DLLs doesn't work
4005case $build in
4006  *-cygwin*)
4007    coin_disable_shared=yes
4008    platform=Cygwin
4009  ;;
4010  *-aix*)
4011    coin_disable_shared=yes
4012    platform=AIX
4013  ;;
4014  *-mingw*)
4015    coin_disable_shared=yes
4016    platform="Msys"
4017#    case "$CXX" in
4018#      cl*)
4019#        coin_disable_shared=yes
4020#        platform="Msys with cl"
4021#    ;;
4022#    esac
4023  ;;
4024esac
4025if test x"$coin_disable_shared" = xyes; then
4026  if test x"$enable_shared" = xyes; then
4027    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4028echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4029  fi
4030  enable_shared=no
4031fi
4032# By default, we only want the shared objects to be compiled
4033# Check whether --enable-static or --disable-static was given.
4034if test "${enable_static+set}" = set; then
4035  enableval="$enable_static"
4036  p=${PACKAGE-default}
4037    case $enableval in
4038    yes) enable_static=yes ;;
4039    no) enable_static=no ;;
4040    *)
4041     enable_static=no
4042      # Look at the argument we got.  We use all the common list separators.
4043      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4044      for pkg in $enableval; do
4045        IFS="$lt_save_ifs"
4046        if test "X$pkg" = "X$p"; then
4047          enable_static=yes
4048        fi
4049      done
4050      IFS="$lt_save_ifs"
4051      ;;
4052    esac
4053else
4054  enable_static=no
4055fi;
4056
4057
4058
4059
4060# Initialize automake
4061echo "$as_me:$LINENO: checking for egrep" >&5
4062echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4063if test "${ac_cv_prog_egrep+set}" = set; then
4064  echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4067    then ac_cv_prog_egrep='grep -E'
4068    else ac_cv_prog_egrep='egrep'
4069    fi
4070fi
4071echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4072echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4073 EGREP=$ac_cv_prog_egrep
4074
4075
4076am__api_version="1.9"
4077# Find a good install program.  We prefer a C program (faster),
4078# so one script is as good as another.  But avoid the broken or
4079# incompatible versions:
4080# SysV /etc/install, /usr/sbin/install
4081# SunOS /usr/etc/install
4082# IRIX /sbin/install
4083# AIX /bin/install
4084# AmigaOS /C/install, which installs bootblocks on floppy discs
4085# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4086# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4087# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4088# OS/2's system install, which has a completely different semantic
4089# ./install, which can be erroneously created by make from ./install.sh.
4090echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4091echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4092if test -z "$INSTALL"; then
4093if test "${ac_cv_path_install+set}" = set; then
4094  echo $ECHO_N "(cached) $ECHO_C" >&6
4095else
4096  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099  IFS=$as_save_IFS
4100  test -z "$as_dir" && as_dir=.
4101  # Account for people who put trailing slashes in PATH elements.
4102case $as_dir/ in
4103  ./ | .// | /cC/* | \
4104  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4105  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4106  /usr/ucb/* ) ;;
4107  *)
4108    # OSF1 and SCO ODT 3.0 have their own names for install.
4109    # Don't use installbsd from OSF since it installs stuff as root
4110    # by default.
4111    for ac_prog in ginstall scoinst install; do
4112      for ac_exec_ext in '' $ac_executable_extensions; do
4113        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4114          if test $ac_prog = install &&
4115            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4116            # AIX install.  It has an incompatible calling convention.
4117            :
4118          elif test $ac_prog = install &&
4119            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4120            # program-specific install script used by HP pwplus--don't use.
4121            :
4122          else
4123            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4124            break 3
4125          fi
4126        fi
4127      done
4128    done
4129    ;;
4130esac
4131done
4132
4133
4134fi
4135  if test "${ac_cv_path_install+set}" = set; then
4136    INSTALL=$ac_cv_path_install
4137  else
4138    # As a last resort, use the slow shell script.  We don't cache a
4139    # path for INSTALL within a source directory, because that will
4140    # break other packages using the cache if that directory is
4141    # removed, or if the path is relative.
4142    INSTALL=$ac_install_sh
4143  fi
4144fi
4145echo "$as_me:$LINENO: result: $INSTALL" >&5
4146echo "${ECHO_T}$INSTALL" >&6
4147
4148# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4149# It thinks the first close brace ends the variable substitution.
4150test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4151
4152test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4153
4154test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4155
4156echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4157echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4158# Just in case
4159sleep 1
4160echo timestamp > conftest.file
4161# Do `set' in a subshell so we don't clobber the current shell's
4162# arguments.  Must try -L first in case configure is actually a
4163# symlink; some systems play weird games with the mod time of symlinks
4164# (eg FreeBSD returns the mod time of the symlink's containing
4165# directory).
4166if (
4167   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4168   if test "$*" = "X"; then
4169      # -L didn't work.
4170      set X `ls -t $srcdir/configure conftest.file`
4171   fi
4172   rm -f conftest.file
4173   if test "$*" != "X $srcdir/configure conftest.file" \
4174      && test "$*" != "X conftest.file $srcdir/configure"; then
4175
4176      # If neither matched, then we have a broken ls.  This can happen
4177      # if, for instance, CONFIG_SHELL is bash and it inherits a
4178      # broken ls alias from the environment.  This has actually
4179      # happened.  Such a system could not be considered "sane".
4180      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4181alias in your environment" >&5
4182echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4183alias in your environment" >&2;}
4184   { (exit 1); exit 1; }; }
4185   fi
4186
4187   test "$2" = conftest.file
4188   )
4189then
4190   # Ok.
4191   :
4192else
4193   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4194Check your system clock" >&5
4195echo "$as_me: error: newly created file is older than distributed files!
4196Check your system clock" >&2;}
4197   { (exit 1); exit 1; }; }
4198fi
4199echo "$as_me:$LINENO: result: yes" >&5
4200echo "${ECHO_T}yes" >&6
4201test "$program_prefix" != NONE &&
4202  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4203# Use a double $ so make ignores it.
4204test "$program_suffix" != NONE &&
4205  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4206# Double any \ or $.  echo might interpret backslashes.
4207# By default was `s,x,x', remove it if useless.
4208cat <<\_ACEOF >conftest.sed
4209s/[\\$]/&&/g;s/;s,x,x,$//
4210_ACEOF
4211program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4212rm conftest.sed
4213
4214# expand $ac_aux_dir to an absolute path
4215am_aux_dir=`cd $ac_aux_dir && pwd`
4216
4217test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4218# Use eval to expand $SHELL
4219if eval "$MISSING --run true"; then
4220  am_missing_run="$MISSING --run "
4221else
4222  am_missing_run=
4223  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4224echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4225fi
4226
4227if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4228  # We used to keeping the `.' as first argument, in order to
4229  # allow $(mkdir_p) to be used without argument.  As in
4230  #   $(mkdir_p) $(somedir)
4231  # where $(somedir) is conditionally defined.  However this is wrong
4232  # for two reasons:
4233  #  1. if the package is installed by a user who cannot write `.'
4234  #     make install will fail,
4235  #  2. the above comment should most certainly read
4236  #     $(mkdir_p) $(DESTDIR)$(somedir)
4237  #     so it does not work when $(somedir) is undefined and
4238  #     $(DESTDIR) is not.
4239  #  To support the latter case, we have to write
4240  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4241  #  so the `.' trick is pointless.
4242  mkdir_p='mkdir -p --'
4243else
4244  # On NextStep and OpenStep, the `mkdir' command does not
4245  # recognize any option.  It will interpret all options as
4246  # directories to create, and then abort because `.' already
4247  # exists.
4248  for d in ./-p ./--version;
4249  do
4250    test -d $d && rmdir $d
4251  done
4252  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4253  if test -f "$ac_aux_dir/mkinstalldirs"; then
4254    mkdir_p='$(mkinstalldirs)'
4255  else
4256    mkdir_p='$(install_sh) -d'
4257  fi
4258fi
4259
4260for ac_prog in gawk mawk nawk awk
4261do
4262  # Extract the first word of "$ac_prog", so it can be a program name with args.
4263set dummy $ac_prog; ac_word=$2
4264echo "$as_me:$LINENO: checking for $ac_word" >&5
4265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266if test "${ac_cv_prog_AWK+set}" = set; then
4267  echo $ECHO_N "(cached) $ECHO_C" >&6
4268else
4269  if test -n "$AWK"; then
4270  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4271else
4272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273for as_dir in $PATH
4274do
4275  IFS=$as_save_IFS
4276  test -z "$as_dir" && as_dir=.
4277  for ac_exec_ext in '' $ac_executable_extensions; do
4278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279    ac_cv_prog_AWK="$ac_prog"
4280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4281    break 2
4282  fi
4283done
4284done
4285
4286fi
4287fi
4288AWK=$ac_cv_prog_AWK
4289if test -n "$AWK"; then
4290  echo "$as_me:$LINENO: result: $AWK" >&5
4291echo "${ECHO_T}$AWK" >&6
4292else
4293  echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6
4295fi
4296
4297  test -n "$AWK" && break
4298done
4299
4300echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4301echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4302set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4303if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4304  echo $ECHO_N "(cached) $ECHO_C" >&6
4305else
4306  cat >conftest.make <<\_ACEOF
4307all:
4308        @echo 'ac_maketemp="$(MAKE)"'
4309_ACEOF
4310# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4311eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4312if test -n "$ac_maketemp"; then
4313  eval ac_cv_prog_make_${ac_make}_set=yes
4314else
4315  eval ac_cv_prog_make_${ac_make}_set=no
4316fi
4317rm -f conftest.make
4318fi
4319if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4320  echo "$as_me:$LINENO: result: yes" >&5
4321echo "${ECHO_T}yes" >&6
4322  SET_MAKE=
4323else
4324  echo "$as_me:$LINENO: result: no" >&5
4325echo "${ECHO_T}no" >&6
4326  SET_MAKE="MAKE=${MAKE-make}"
4327fi
4328
4329rm -rf .tst 2>/dev/null
4330mkdir .tst 2>/dev/null
4331if test -d .tst; then
4332  am__leading_dot=.
4333else
4334  am__leading_dot=_
4335fi
4336rmdir .tst 2>/dev/null
4337
4338DEPDIR="${am__leading_dot}deps"
4339
4340          ac_config_commands="$ac_config_commands depfiles"
4341
4342
4343am_make=${MAKE-make}
4344cat > confinc << 'END'
4345am__doit:
4346        @echo done
4347.PHONY: am__doit
4348END
4349# If we don't find an include directive, just comment out the code.
4350echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4351echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4352am__include="#"
4353am__quote=
4354_am_result=none
4355# First try GNU make style include.
4356echo "include confinc" > confmf
4357# We grep out `Entering directory' and `Leaving directory'
4358# messages which can occur if `w' ends up in MAKEFLAGS.
4359# In particular we don't look at `^make:' because GNU make might
4360# be invoked under some other name (usually "gmake"), in which
4361# case it prints its new name instead of `make'.
4362if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4363   am__include=include
4364   am__quote=
4365   _am_result=GNU
4366fi
4367# Now try BSD make style include.
4368if test "$am__include" = "#"; then
4369   echo '.include "confinc"' > confmf
4370   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4371      am__include=.include
4372      am__quote="\""
4373      _am_result=BSD
4374   fi
4375fi
4376
4377
4378echo "$as_me:$LINENO: result: $_am_result" >&5
4379echo "${ECHO_T}$_am_result" >&6
4380rm -f confinc confmf
4381
4382# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4383if test "${enable_dependency_tracking+set}" = set; then
4384  enableval="$enable_dependency_tracking"
4385
4386fi;
4387if test "x$enable_dependency_tracking" != xno; then
4388  am_depcomp="$ac_aux_dir/depcomp"
4389  AMDEPBACKSLASH='\'
4390fi
4391
4392
4393if test "x$enable_dependency_tracking" != xno; then
4394  AMDEP_TRUE=
4395  AMDEP_FALSE='#'
4396else
4397  AMDEP_TRUE='#'
4398  AMDEP_FALSE=
4399fi
4400
4401
4402
4403
4404
4405# AC_MSG_NOTICE([Beginning automake initialisation.])
4406# Stuff for automake
4407# test to see if srcdir already configured
4408if test "`cd $srcdir && pwd`" != "`pwd`" &&
4409   test -f $srcdir/config.status; then
4410  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4411echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4412   { (exit 1); exit 1; }; }
4413fi
4414
4415# test whether we have cygpath
4416if test -z "$CYGPATH_W"; then
4417  if (cygpath --version) >/dev/null 2>/dev/null; then
4418    CYGPATH_W='cygpath -w'
4419  else
4420    CYGPATH_W=echo
4421  fi
4422fi
4423
4424
4425# Define the identity of the package.
4426 PACKAGE='cbc'
4427 VERSION='1.2trunk'
4428
4429
4430cat >>confdefs.h <<_ACEOF
4431#define PACKAGE "$PACKAGE"
4432_ACEOF
4433
4434
4435cat >>confdefs.h <<_ACEOF
4436#define VERSION "$VERSION"
4437_ACEOF
4438
4439# Some tools Automake needs.
4440
4441ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4442
4443
4444AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4445
4446
4447AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4448
4449
4450AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4451
4452
4453MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4454
4455install_sh=${install_sh-"$am_aux_dir/install-sh"}
4456
4457# Installed binaries are usually stripped using `strip' when the user
4458# run `make install-strip'.  However `strip' might not be the right
4459# tool to use in cross-compilation environments, therefore Automake
4460# will honor the `STRIP' environment variable to overrule this program.
4461if test "$cross_compiling" != no; then
4462  if test -n "$ac_tool_prefix"; then
4463  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4464set dummy ${ac_tool_prefix}strip; ac_word=$2
4465echo "$as_me:$LINENO: checking for $ac_word" >&5
4466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467if test "${ac_cv_prog_STRIP+set}" = set; then
4468  echo $ECHO_N "(cached) $ECHO_C" >&6
4469else
4470  if test -n "$STRIP"; then
4471  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4472else
4473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476  IFS=$as_save_IFS
4477  test -z "$as_dir" && as_dir=.
4478  for ac_exec_ext in '' $ac_executable_extensions; do
4479  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4481    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482    break 2
4483  fi
4484done
4485done
4486
4487fi
4488fi
4489STRIP=$ac_cv_prog_STRIP
4490if test -n "$STRIP"; then
4491  echo "$as_me:$LINENO: result: $STRIP" >&5
4492echo "${ECHO_T}$STRIP" >&6
4493else
4494  echo "$as_me:$LINENO: result: no" >&5
4495echo "${ECHO_T}no" >&6
4496fi
4497
4498fi
4499if test -z "$ac_cv_prog_STRIP"; then
4500  ac_ct_STRIP=$STRIP
4501  # Extract the first word of "strip", so it can be a program name with args.
4502set dummy strip; ac_word=$2
4503echo "$as_me:$LINENO: checking for $ac_word" >&5
4504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4506  echo $ECHO_N "(cached) $ECHO_C" >&6
4507else
4508  if test -n "$ac_ct_STRIP"; then
4509  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4510else
4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514  IFS=$as_save_IFS
4515  test -z "$as_dir" && as_dir=.
4516  for ac_exec_ext in '' $ac_executable_extensions; do
4517  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518    ac_cv_prog_ac_ct_STRIP="strip"
4519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520    break 2
4521  fi
4522done
4523done
4524
4525  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4526fi
4527fi
4528ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4529if test -n "$ac_ct_STRIP"; then
4530  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4531echo "${ECHO_T}$ac_ct_STRIP" >&6
4532else
4533  echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6
4535fi
4536
4537  STRIP=$ac_ct_STRIP
4538else
4539  STRIP="$ac_cv_prog_STRIP"
4540fi
4541
4542fi
4543INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4544
4545# We need awk for the "check" target.  The system "awk" is bad on
4546# some platforms.
4547# Always define AMTAR for backward compatibility.
4548
4549AMTAR=${AMTAR-"${am_missing_run}tar"}
4550
4551am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4552
4553
4554
4555
4556depcc="$CC"   am_compiler_list=
4557
4558echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4559echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4560if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4561  echo $ECHO_N "(cached) $ECHO_C" >&6
4562else
4563  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4564  # We make a subdir and do the tests there.  Otherwise we can end up
4565  # making bogus files that we don't know about and never remove.  For
4566  # instance it was reported that on HP-UX the gcc test will end up
4567  # making a dummy file named `D' -- because `-MD' means `put the output
4568  # in D'.
4569  mkdir conftest.dir
4570  # Copy depcomp to subdir because otherwise we won't find it if we're
4571  # using a relative directory.
4572  cp "$am_depcomp" conftest.dir
4573  cd conftest.dir
4574  # We will build objects and dependencies in a subdirectory because
4575  # it helps to detect inapplicable dependency modes.  For instance
4576  # both Tru64's cc and ICC support -MD to output dependencies as a
4577  # side effect of compilation, but ICC will put the dependencies in
4578  # the current directory while Tru64 will put them in the object
4579  # directory.
4580  mkdir sub
4581
4582  am_cv_CC_dependencies_compiler_type=none
4583  if test "$am_compiler_list" = ""; then
4584     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4585  fi
4586  for depmode in $am_compiler_list; do
4587    # Setup a source with many dependencies, because some compilers
4588    # like to wrap large dependency lists on column 80 (with \), and
4589    # we should not choose a depcomp mode which is confused by this.
4590    #
4591    # We need to recreate these files for each test, as the compiler may
4592    # overwrite some of them when testing with obscure command lines.
4593    # This happens at least with the AIX C compiler.
4594    : > sub/conftest.c
4595    for i in 1 2 3 4 5 6; do
4596      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4597      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4598      # Solaris 8's {/usr,}/bin/sh.
4599      touch sub/conftst$i.h
4600    done
4601    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4602
4603    case $depmode in
4604    nosideeffect)
4605      # after this tag, mechanisms are not by side-effect, so they'll
4606      # only be used when explicitly requested
4607      if test "x$enable_dependency_tracking" = xyes; then
4608        continue
4609      else
4610        break
4611      fi
4612      ;;
4613    none) break ;;
4614    esac
4615    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4616    # mode.  It turns out that the SunPro C++ compiler does not properly
4617    # handle `-M -o', and we need to detect this.
4618    if depmode=$depmode \
4619       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4620       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4621       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4622         >/dev/null 2>conftest.err &&
4623       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4624       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4625       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4626      # icc doesn't choke on unknown options, it will just issue warnings
4627      # or remarks (even with -Werror).  So we grep stderr for any message
4628      # that says an option was ignored or not supported.
4629      # When given -MP, icc 7.0 and 7.1 complain thusly:
4630      #   icc: Command line warning: ignoring option '-M'; no argument required
4631      # The diagnosis changed in icc 8.0:
4632      #   icc: Command line remark: option '-MP' not supported
4633      if (grep 'ignoring option' conftest.err ||
4634          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4635        am_cv_CC_dependencies_compiler_type=$depmode
4636        break
4637      fi
4638    fi
4639  done
4640
4641  cd ..
4642  rm -rf conftest.dir
4643else
4644  am_cv_CC_dependencies_compiler_type=none
4645fi
4646
4647fi
4648echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4649echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4650CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4651
4652
4653
4654if
4655  test "x$enable_dependency_tracking" != xno \
4656  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4657  am__fastdepCC_TRUE=
4658  am__fastdepCC_FALSE='#'
4659else
4660  am__fastdepCC_TRUE='#'
4661  am__fastdepCC_FALSE=
4662fi
4663
4664
4665depcc="$CXX"  am_compiler_list=
4666
4667echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4668echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4669if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4670  echo $ECHO_N "(cached) $ECHO_C" >&6
4671else
4672  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4673  # We make a subdir and do the tests there.  Otherwise we can end up
4674  # making bogus files that we don't know about and never remove.  For
4675  # instance it was reported that on HP-UX the gcc test will end up
4676  # making a dummy file named `D' -- because `-MD' means `put the output
4677  # in D'.
4678  mkdir conftest.dir
4679  # Copy depcomp to subdir because otherwise we won't find it if we're
4680  # using a relative directory.
4681  cp "$am_depcomp" conftest.dir
4682  cd conftest.dir
4683  # We will build objects and dependencies in a subdirectory because
4684  # it helps to detect inapplicable dependency modes.  For instance
4685  # both Tru64's cc and ICC support -MD to output dependencies as a
4686  # side effect of compilation, but ICC will put the dependencies in
4687  # the current directory while Tru64 will put them in the object
4688  # directory.
4689  mkdir sub
4690
4691  am_cv_CXX_dependencies_compiler_type=none
4692  if test "$am_compiler_list" = ""; then
4693     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4694  fi
4695  for depmode in $am_compiler_list; do
4696    # Setup a source with many dependencies, because some compilers
4697    # like to wrap large dependency lists on column 80 (with \), and
4698    # we should not choose a depcomp mode which is confused by this.
4699    #
4700    # We need to recreate these files for each test, as the compiler may
4701    # overwrite some of them when testing with obscure command lines.
4702    # This happens at least with the AIX C compiler.
4703    : > sub/conftest.c
4704    for i in 1 2 3 4 5 6; do
4705      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4706      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4707      # Solaris 8's {/usr,}/bin/sh.
4708      touch sub/conftst$i.h
4709    done
4710    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4711
4712    case $depmode in
4713    nosideeffect)
4714      # after this tag, mechanisms are not by side-effect, so they'll
4715      # only be used when explicitly requested
4716      if test "x$enable_dependency_tracking" = xyes; then
4717        continue
4718      else
4719        break
4720      fi
4721      ;;
4722    none) break ;;
4723    esac
4724    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4725    # mode.  It turns out that the SunPro C++ compiler does not properly
4726    # handle `-M -o', and we need to detect this.
4727    if depmode=$depmode \
4728       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4729       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4730       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4731         >/dev/null 2>conftest.err &&
4732       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4733       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4734       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4735      # icc doesn't choke on unknown options, it will just issue warnings
4736      # or remarks (even with -Werror).  So we grep stderr for any message
4737      # that says an option was ignored or not supported.
4738      # When given -MP, icc 7.0 and 7.1 complain thusly:
4739      #   icc: Command line warning: ignoring option '-M'; no argument required
4740      # The diagnosis changed in icc 8.0:
4741      #   icc: Command line remark: option '-MP' not supported
4742      if (grep 'ignoring option' conftest.err ||
4743          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4744        am_cv_CXX_dependencies_compiler_type=$depmode
4745        break
4746      fi
4747    fi
4748  done
4749
4750  cd ..
4751  rm -rf conftest.dir
4752else
4753  am_cv_CXX_dependencies_compiler_type=none
4754fi
4755
4756fi
4757echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4758echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4759CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4760
4761
4762
4763if
4764  test "x$enable_dependency_tracking" != xno \
4765  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4766  am__fastdepCXX_TRUE=
4767  am__fastdepCXX_FALSE='#'
4768else
4769  am__fastdepCXX_TRUE='#'
4770  am__fastdepCXX_FALSE=
4771fi
4772
4773
4774
4775echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4776echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4777    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4778if test "${enable_maintainer_mode+set}" = set; then
4779  enableval="$enable_maintainer_mode"
4780  USE_MAINTAINER_MODE=$enableval
4781else
4782  USE_MAINTAINER_MODE=no
4783fi;
4784  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4785echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4786
4787
4788if test $USE_MAINTAINER_MODE = yes; then
4789  MAINTAINER_MODE_TRUE=
4790  MAINTAINER_MODE_FALSE='#'
4791else
4792  MAINTAINER_MODE_TRUE='#'
4793  MAINTAINER_MODE_FALSE=
4794fi
4795
4796  MAINT=$MAINTAINER_MODE_TRUE
4797
4798
4799
4800coin_have_externals=no
4801if test "$enable_maintainer_mode" = yes; then
4802
4803  # If maintainer mode is chosen, we make sure that the correct versions
4804  # of the tools are used, and that we know where libtool.m4 is (to
4805  # recreate acinclude.m4)
4806
4807
4808  LIBTOOLM4=
4809  # Normally, $HOME
4810  AUTOTOOLS_DFLT=$HOME
4811
4812  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4813echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4814if test "${ac_cv_use_correct_autotools+set}" = set; then
4815  echo $ECHO_N "(cached) $ECHO_C" >&6
4816else
4817  ac_cv_use_correct_autotools=check
4818fi
4819echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4820echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4821
4822  if test $ac_cv_use_correct_autotools = check; then
4823    ac_cv_use_correct_autotools=yes
4824    # Check if we have autoconf
4825    # Extract the first word of "autoconf", so it can be a program name with args.
4826set dummy autoconf; ac_word=$2
4827echo "$as_me:$LINENO: checking for $ac_word" >&5
4828echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4829if test "${ac_cv_prog_have_autoconf+set}" = set; then
4830  echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832  if test -n "$have_autoconf"; then
4833  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4834else
4835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836for as_dir in $PATH
4837do
4838  IFS=$as_save_IFS
4839  test -z "$as_dir" && as_dir=.
4840  for ac_exec_ext in '' $ac_executable_extensions; do
4841  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842    ac_cv_prog_have_autoconf="yes"
4843    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844    break 2
4845  fi
4846done
4847done
4848
4849  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4850fi
4851fi
4852have_autoconf=$ac_cv_prog_have_autoconf
4853if test -n "$have_autoconf"; then
4854  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4855echo "${ECHO_T}$have_autoconf" >&6
4856else
4857  echo "$as_me:$LINENO: result: no" >&5
4858echo "${ECHO_T}no" >&6
4859fi
4860
4861    if test $have_autoconf = no; then
4862      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4863echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4864   { (exit 1); exit 1; }; }
4865    fi
4866
4867    # Check whether autoconf is the correct version
4868    correct_version='2.59'
4869    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4870    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4871echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4872    autoconf --version > confauto.out 2>&1
4873    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4874      echo "$as_me:$LINENO: result: yes" >&5
4875echo "${ECHO_T}yes" >&6
4876    else
4877      rm -f confauto.out
4878      echo "$as_me:$LINENO: result: no" >&5
4879echo "${ECHO_T}no" >&6
4880      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4881echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4882   { (exit 1); exit 1; }; }
4883    fi
4884    rm -f confauto.out
4885
4886    # Check if the executable autoconf is picked up from the correct location
4887    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4888echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4889    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4890    autoconf_dir=`cd $autoconf_dir; pwd`
4891    if test x$AUTOTOOLS_DIR = x; then
4892      want_dir=$AUTOTOOLS_DFLT/bin
4893    else
4894      want_dir=$AUTOTOOLS_DIR/bin
4895    fi
4896    if test $autoconf_dir = `cd $want_dir; pwd`; then
4897      echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
4899    else
4900      rm -f confauto.out
4901      echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6
4903      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4904echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4905   { (exit 1); exit 1; }; }
4906    fi
4907
4908    # Check if we have automake
4909    # Extract the first word of "automake", so it can be a program name with args.
4910set dummy automake; ac_word=$2
4911echo "$as_me:$LINENO: checking for $ac_word" >&5
4912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4913if test "${ac_cv_prog_have_automake+set}" = set; then
4914  echo $ECHO_N "(cached) $ECHO_C" >&6
4915else
4916  if test -n "$have_automake"; then
4917  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922  IFS=$as_save_IFS
4923  test -z "$as_dir" && as_dir=.
4924  for ac_exec_ext in '' $ac_executable_extensions; do
4925  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926    ac_cv_prog_have_automake="yes"
4927    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928    break 2
4929  fi
4930done
4931done
4932
4933  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4934fi
4935fi
4936have_automake=$ac_cv_prog_have_automake
4937if test -n "$have_automake"; then
4938  echo "$as_me:$LINENO: result: $have_automake" >&5
4939echo "${ECHO_T}$have_automake" >&6
4940else
4941  echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943fi
4944
4945    if test $have_automake = no; then
4946      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4947echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4948   { (exit 1); exit 1; }; }
4949    fi
4950
4951    # Check whether automake is the correct version
4952    correct_version='1.9.6'
4953    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4954    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4955echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4956    automake --version > confauto.out 2>&1
4957    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4958      echo "$as_me:$LINENO: result: yes" >&5
4959echo "${ECHO_T}yes" >&6
4960    else
4961      rm -f confauto.out
4962      echo "$as_me:$LINENO: result: no" >&5
4963echo "${ECHO_T}no" >&6
4964      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4965echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4966   { (exit 1); exit 1; }; }
4967    fi
4968    rm -f confauto.out
4969
4970    # Check if the executable automake is picked up from the correct location
4971    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4972echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4973    automake_dir=`which automake | sed -e 's=/automake=='`
4974    automake_dir=`cd $automake_dir; pwd`
4975    if test x$AUTOTOOLS_DIR = x; then
4976      want_dir=$AUTOTOOLS_DFLT/bin
4977    else
4978      want_dir=$AUTOTOOLS_DIR/bin
4979    fi
4980    if test $automake_dir = `cd $want_dir; pwd`; then
4981      echo "$as_me:$LINENO: result: yes" >&5
4982echo "${ECHO_T}yes" >&6
4983    else
4984      rm -f confauto.out
4985      echo "$as_me:$LINENO: result: no" >&5
4986echo "${ECHO_T}no" >&6
4987      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4988echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4989   { (exit 1); exit 1; }; }
4990    fi
4991
4992    # Check if this is the correct version of libtool (with escaped dots)
4993    if test x$AUTOTOOLS_DIR = x; then
4994      want_dir=$AUTOTOOLS_DFLT/share
4995    else
4996      want_dir=$AUTOTOOLS_DIR/share
4997    fi
4998    correct_version='1.5.22'
4999    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5000    if test -r $want_dir/libtool/ltmain.sh; then
5001  have_ltmain=yes
5002  :
5003else
5004  have_ltmain=no
5005  :
5006fi
5007
5008    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5009echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5010    if test $have_ltmain = yes; then
5011    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5012        echo "$as_me:$LINENO: result: yes" >&5
5013echo "${ECHO_T}yes" >&6
5014      else
5015        echo "$as_me:$LINENO: result: no" >&5
5016echo "${ECHO_T}no" >&6
5017        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5018echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5019   { (exit 1); exit 1; }; }
5020      fi
5021    else
5022      echo "$as_me:$LINENO: result: no" >&5
5023echo "${ECHO_T}no" >&6
5024      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5025echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5026   { (exit 1); exit 1; }; }
5027    fi
5028  fi
5029
5030  # Check if we can find the libtool file
5031  if test x$AUTOTOOLS_DIR = x; then
5032    want_dir=$AUTOTOOLS_DFLT/share
5033  else
5034    want_dir=$AUTOTOOLS_DIR/share
5035  fi
5036  if test -r $want_dir/aclocal/libtool.m4; then
5037  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5038  :
5039else
5040  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5041echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5042   { (exit 1); exit 1; }; }
5043  :
5044fi
5045
5046
5047  # Check if we have an Externals file
5048  if test -r $srcdir/Externals; then
5049    coin_have_externals=yes
5050  fi
5051  # Check if subversion is installed and understands https
5052  # Extract the first word of "svn", so it can be a program name with args.
5053set dummy svn; ac_word=$2
5054echo "$as_me:$LINENO: checking for $ac_word" >&5
5055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5056if test "${ac_cv_prog_have_svn+set}" = set; then
5057  echo $ECHO_N "(cached) $ECHO_C" >&6
5058else
5059  if test -n "$have_svn"; then
5060  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5061else
5062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063for as_dir in $PATH
5064do
5065  IFS=$as_save_IFS
5066  test -z "$as_dir" && as_dir=.
5067  for ac_exec_ext in '' $ac_executable_extensions; do
5068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5069    ac_cv_prog_have_svn="yes"
5070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071    break 2
5072  fi
5073done
5074done
5075
5076  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5077fi
5078fi
5079have_svn=$ac_cv_prog_have_svn
5080if test -n "$have_svn"; then
5081  echo "$as_me:$LINENO: result: $have_svn" >&5
5082echo "${ECHO_T}$have_svn" >&6
5083else
5084  echo "$as_me:$LINENO: result: no" >&5
5085echo "${ECHO_T}no" >&6
5086fi
5087
5088  if test x$have_svn = xyes; then
5089    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5090echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5091if test "${ac_cv_svn_understands_https+set}" = set; then
5092  echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094  svn --version > confauto.out 2>&1
5095                    if $EGREP https confauto.out >/dev/null 2>&1; then
5096                      ac_cv_svn_understands_https=yes
5097                    else
5098                      ac_cv_svn_understands_https=no
5099                      have_svn=no
5100                      ac_cv_prog_have_svn=no
5101                    fi
5102                    rm -f confauto.out
5103fi
5104echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5105echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5106  fi
5107
5108  # Find the location of the BuildTools directory
5109  BUILDTOOLSDIR=
5110  if test -r $srcdir/BuildTools/coin.m4; then
5111    BUILDTOOLSDIR=$srcdir/BuildTools
5112  else
5113    if test -r $srcdir/../BuildTools/coin.m4; then
5114      BUILDTOOLSDIR=$srcdir/../BuildTools
5115    else
5116      if test -r $srcdir/../../BuildTools/coin.m4; then
5117        BUILDTOOLSDIR=$srcdir/../../BuildTools
5118      else
5119        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5120echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5121   { (exit 1); exit 1; }; }
5122      fi
5123    fi
5124  fi
5125
5126
5127  # The following variable is set to the name of the directory where
5128  # the autotool scripts are located
5129
5130  AUX_DIR=$ac_aux_dir
5131fi
5132
5133# helpful variable for the base directory of this package
5134abs_source_dir=`cd $srcdir; pwd`
5135
5136
5137# Stuff for example Makefiles
5138if test x$prefix = xNONE; then
5139  full_prefix=$ac_default_prefix
5140else
5141  full_prefix=$prefix
5142fi
5143full_prefix=`cd $full_prefix ; pwd`
5144
5145abs_lib_dir=$full_prefix/lib
5146
5147abs_include_dir=$full_prefix/include
5148
5149abs_bin_dir=$full_prefix/bin
5150
5151
5152
5153if test $coin_have_externals = yes && test x$have_svn = xyes; then
5154  HAVE_EXTERNALS_TRUE=
5155  HAVE_EXTERNALS_FALSE='#'
5156else
5157  HAVE_EXTERNALS_TRUE='#'
5158  HAVE_EXTERNALS_FALSE=
5159fi
5160
5161
5162# AC_MSG_NOTICE([End automake initialisation.])
5163
5164
5165
5166LIBTOOL=
5167if test -r ../libtool; then
5168  coin_config_dir=..
5169  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5170fi
5171if test "x$LIBTOOL" = x; then
5172  if test -r ../../libtool; then
5173    coin_config_dir=../..
5174    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5175  fi
5176fi
5177
5178if test "x$LIBTOOL" = x; then
5179# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5180  # Stuff for libtool
5181  # Check whether --enable-shared or --disable-shared was given.
5182if test "${enable_shared+set}" = set; then
5183  enableval="$enable_shared"
5184  p=${PACKAGE-default}
5185    case $enableval in
5186    yes) enable_shared=yes ;;
5187    no) enable_shared=no ;;
5188    *)
5189      enable_shared=no
5190      # Look at the argument we got.  We use all the common list separators.
5191      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5192      for pkg in $enableval; do
5193        IFS="$lt_save_ifs"
5194        if test "X$pkg" = "X$p"; then
5195          enable_shared=yes
5196        fi
5197      done
5198      IFS="$lt_save_ifs"
5199      ;;
5200    esac
5201else
5202  enable_shared=yes
5203fi;
5204
5205# Check whether --enable-fast-install or --disable-fast-install was given.
5206if test "${enable_fast_install+set}" = set; then
5207  enableval="$enable_fast_install"
5208  p=${PACKAGE-default}
5209    case $enableval in
5210    yes) enable_fast_install=yes ;;
5211    no) enable_fast_install=no ;;
5212    *)
5213      enable_fast_install=no
5214      # Look at the argument we got.  We use all the common list separators.
5215      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5216      for pkg in $enableval; do
5217        IFS="$lt_save_ifs"
5218        if test "X$pkg" = "X$p"; then
5219          enable_fast_install=yes
5220        fi
5221      done
5222      IFS="$lt_save_ifs"
5223      ;;
5224    esac
5225else
5226  enable_fast_install=yes
5227fi;
5228
5229echo "$as_me:$LINENO: checking host system type" >&5
5230echo $ECHO_N "checking host system type... $ECHO_C" >&6
5231if test "${ac_cv_host+set}" = set; then
5232  echo $ECHO_N "(cached) $ECHO_C" >&6
5233else
5234  ac_cv_host_alias=$host_alias
5235test -z "$ac_cv_host_alias" &&
5236  ac_cv_host_alias=$ac_cv_build_alias
5237ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5238  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5239echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5240   { (exit 1); exit 1; }; }
5241
5242fi
5243echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5244echo "${ECHO_T}$ac_cv_host" >&6
5245host=$ac_cv_host
5246host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5247host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5248host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5249
5250
5251echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5252echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5253if test "${lt_cv_path_SED+set}" = set; then
5254  echo $ECHO_N "(cached) $ECHO_C" >&6
5255else
5256  # Loop through the user's path and test for sed and gsed.
5257# Then use that list of sed's as ones to test for truncation.
5258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259for as_dir in $PATH
5260do
5261  IFS=$as_save_IFS
5262  test -z "$as_dir" && as_dir=.
5263  for lt_ac_prog in sed gsed; do
5264    for ac_exec_ext in '' $ac_executable_extensions; do
5265      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5266        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5267      fi
5268    done
5269  done
5270done
5271lt_ac_max=0
5272lt_ac_count=0
5273# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5274# along with /bin/sed that truncates output.
5275for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5276  test ! -f $lt_ac_sed && continue
5277  cat /dev/null > conftest.in
5278  lt_ac_count=0
5279  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5280  # Check for GNU sed and select it if it is found.
5281  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5282    lt_cv_path_SED=$lt_ac_sed
5283    break
5284  fi
5285  while true; do
5286    cat conftest.in conftest.in >conftest.tmp
5287    mv conftest.tmp conftest.in
5288    cp conftest.in conftest.nl
5289    echo >>conftest.nl
5290    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5291    cmp -s conftest.out conftest.nl || break
5292    # 10000 chars as input seems more than enough
5293    test $lt_ac_count -gt 10 && break
5294    lt_ac_count=`expr $lt_ac_count + 1`
5295    if test $lt_ac_count -gt $lt_ac_max; then
5296      lt_ac_max=$lt_ac_count
5297      lt_cv_path_SED=$lt_ac_sed
5298    fi
5299  done
5300done
5301
5302fi
5303
5304SED=$lt_cv_path_SED
5305echo "$as_me:$LINENO: result: $SED" >&5
5306echo "${ECHO_T}$SED" >&6
5307
5308
5309# Check whether --with-gnu-ld or --without-gnu-ld was given.
5310if test "${with_gnu_ld+set}" = set; then
5311  withval="$with_gnu_ld"
5312  test "$withval" = no || with_gnu_ld=yes
5313else
5314  with_gnu_ld=no
5315fi;
5316ac_prog=ld
5317if test "$GCC" = yes; then
5318  # Check if gcc -print-prog-name=ld gives a path.
5319  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5320echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5321  case $host in
5322  *-*-mingw*)
5323    # gcc leaves a trailing carriage return which upsets mingw
5324    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5325  *)
5326    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5327  esac
5328  case $ac_prog in
5329    # Accept absolute paths.
5330    [\\/]* | ?:[\\/]*)
5331      re_direlt='/[^/][^/]*/\.\./'
5332      # Canonicalize the pathname of ld
5333      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5334      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5335        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5336      done
5337      test -z "$LD" && LD="$ac_prog"
5338      ;;
5339  "")
5340    # If it fails, then pretend we aren't using GCC.
5341    ac_prog=ld
5342    ;;
5343  *)
5344    # If it is relative, then search for the first ld in PATH.
5345    with_gnu_ld=unknown
5346    ;;
5347  esac
5348elif test "$with_gnu_ld" = yes; then
5349  echo "$as_me:$LINENO: checking for GNU ld" >&5
5350echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5351else
5352  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5353echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5354fi
5355if test "${lt_cv_path_LD+set}" = set; then
5356  echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358  if test -z "$LD"; then
5359  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5360  for ac_dir in $PATH; do
5361    IFS="$lt_save_ifs"
5362    test -z "$ac_dir" && ac_dir=.
5363    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5364      lt_cv_path_LD="$ac_dir/$ac_prog"
5365      # Check to see if the program is GNU ld.  I'd rather use --version,
5366      # but apparently some variants of GNU ld only accept -v.
5367      # Break only if it was the GNU/non-GNU ld that we prefer.
5368      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5369      *GNU* | *'with BFD'*)
5370        test "$with_gnu_ld" != no && break
5371        ;;
5372      *)
5373        test "$with_gnu_ld" != yes && break
5374        ;;
5375      esac
5376    fi
5377  done
5378  IFS="$lt_save_ifs"
5379else
5380  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5381fi
5382fi
5383
5384LD="$lt_cv_path_LD"
5385if test -n "$LD"; then
5386  echo "$as_me:$LINENO: result: $LD" >&5
5387echo "${ECHO_T}$LD" >&6
5388else
5389  echo "$as_me:$LINENO: result: no" >&5
5390echo "${ECHO_T}no" >&6
5391fi
5392test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5393echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5394   { (exit 1); exit 1; }; }
5395echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5396echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5397if test "${lt_cv_prog_gnu_ld+set}" = set; then
5398  echo $ECHO_N "(cached) $ECHO_C" >&6
5399else
5400  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5401case `$LD -v 2>&1 </dev/null` in
5402*GNU* | *'with BFD'*)
5403  lt_cv_prog_gnu_ld=yes
5404  ;;
5405*)
5406  lt_cv_prog_gnu_ld=no
5407  ;;
5408esac
5409fi
5410echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5411echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5412with_gnu_ld=$lt_cv_prog_gnu_ld
5413
5414
5415echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5416echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5417if test "${lt_cv_ld_reload_flag+set}" = set; then
5418  echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420  lt_cv_ld_reload_flag='-r'
5421fi
5422echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5423echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5424reload_flag=$lt_cv_ld_reload_flag
5425case $reload_flag in
5426"" | " "*) ;;
5427*) reload_flag=" $reload_flag" ;;
5428esac
5429reload_cmds='$LD$reload_flag -o $output$reload_objs'
5430case $host_os in
5431  darwin*)
5432    if test "$GCC" = yes; then
5433      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5434    else
5435      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5436    fi
5437    ;;
5438esac
5439
5440echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5441echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5442if test "${lt_cv_path_NM+set}" = set; then
5443  echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445  if test -n "$NM"; then
5446  # Let the user override the test.
5447  lt_cv_path_NM="$NM"
5448else
5449  lt_nm_to_check="${ac_tool_prefix}nm"
5450  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5451    lt_nm_to_check="$lt_nm_to_check nm"
5452  fi
5453  for lt_tmp_nm in $lt_nm_to_check; do
5454    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5455    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5456      IFS="$lt_save_ifs"
5457      test -z "$ac_dir" && ac_dir=.
5458      tmp_nm="$ac_dir/$lt_tmp_nm"
5459      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5460        # Check to see if the nm accepts a BSD-compat flag.
5461        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5462        #   nm: unknown option "B" ignored
5463        # Tru64's nm complains that /dev/null is an invalid object file
5464        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5465        */dev/null* | *'Invalid file or object type'*)
5466          lt_cv_path_NM="$tmp_nm -B"
5467          break
5468          ;;
5469        *)
5470          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5471          */dev/null*)
5472            lt_cv_path_NM="$tmp_nm -p"
5473            break
5474            ;;
5475          *)
5476            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5477            continue # so that we can try to find one that supports BSD flags
5478            ;;
5479          esac
5480          ;;
5481        esac
5482      fi
5483    done
5484    IFS="$lt_save_ifs"
5485  done
5486  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5487fi
5488fi
5489echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5490echo "${ECHO_T}$lt_cv_path_NM" >&6
5491NM="$lt_cv_path_NM"
5492
5493echo "$as_me:$LINENO: checking whether ln -s works" >&5
5494echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5495LN_S=$as_ln_s
5496if test "$LN_S" = "ln -s"; then
5497  echo "$as_me:$LINENO: result: yes" >&5
5498echo "${ECHO_T}yes" >&6
5499else
5500  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5501echo "${ECHO_T}no, using $LN_S" >&6
5502fi
5503
5504echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5505echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5506if test "${lt_cv_deplibs_check_method+set}" = set; then
5507  echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509  lt_cv_file_magic_cmd='$MAGIC_CMD'
5510lt_cv_file_magic_test_file=
5511lt_cv_deplibs_check_method='unknown'
5512# Need to set the preceding variable on all platforms that support
5513# interlibrary dependencies.
5514# 'none' -- dependencies not supported.
5515# `unknown' -- same as none, but documents that we really don't know.
5516# 'pass_all' -- all dependencies passed with no checks.
5517# 'test_compile' -- check by making test program.
5518# 'file_magic [[regex]]' -- check by looking for files in library path
5519# which responds to the $file_magic_cmd with a given extended regex.
5520# If you have `file' or equivalent on your system and you're not sure
5521# whether `pass_all' will *always* work, you probably want this one.
5522
5523case $host_os in
5524aix4* | aix5*)
5525  lt_cv_deplibs_check_method=pass_all
5526  ;;
5527
5528beos*)
5529  lt_cv_deplibs_check_method=pass_all
5530  ;;
5531
5532bsdi[45]*)
5533  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5534  lt_cv_file_magic_cmd='/usr/bin/file -L'
5535  lt_cv_file_magic_test_file=/shlib/libc.so
5536  ;;
5537
5538cygwin*)
5539  # func_win32_libid is a shell function defined in ltmain.sh
5540  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5541  lt_cv_file_magic_cmd='func_win32_libid'
5542  ;;
5543
5544mingw* | pw32*)
5545  # Base MSYS/MinGW do not provide the 'file' command needed by
5546  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5547  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5548  lt_cv_file_magic_cmd='$OBJDUMP -f'
5549  ;;
5550
5551darwin* | rhapsody*)
5552  lt_cv_deplibs_check_method=pass_all
5553  ;;
5554
5555freebsd* | kfreebsd*-gnu | dragonfly*)
5556  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5557    case $host_cpu in
5558    i*86 )
5559      # Not sure whether the presence of OpenBSD here was a mistake.
5560      # Let's accept both of them until this is cleared up.
5561      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5562      lt_cv_file_magic_cmd=/usr/bin/file
5563      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5564      ;;
5565    esac
5566  else
5567    lt_cv_deplibs_check_method=pass_all
5568  fi
5569  ;;
5570
5571gnu*)
5572  lt_cv_deplibs_check_method=pass_all
5573  ;;
5574
5575hpux10.20* | hpux11*)
5576  lt_cv_file_magic_cmd=/usr/bin/file
5577  case $host_cpu in
5578  ia64*)
5579    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5580    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5581    ;;
5582  hppa*64*)
5583    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]'
5584    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5585    ;;
5586  *)
5587    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5588    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5589    ;;
5590  esac
5591  ;;
5592
5593interix3*)
5594  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5595  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5596  ;;
5597
5598irix5* | irix6* | nonstopux*)
5599  case $LD in
5600  *-32|*"-32 ") libmagic=32-bit;;
5601  *-n32|*"-n32 ") libmagic=N32;;
5602  *-64|*"-64 ") libmagic=64-bit;;
5603  *) libmagic=never-match;;
5604  esac
5605  lt_cv_deplibs_check_method=pass_all
5606  ;;
5607
5608# This must be Linux ELF.
5609linux*)
5610  lt_cv_deplibs_check_method=pass_all
5611  ;;
5612
5613netbsd*)
5614  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5615    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5616  else
5617    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5618  fi
5619  ;;
5620
5621newos6*)
5622  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5623  lt_cv_file_magic_cmd=/usr/bin/file
5624  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5625  ;;
5626
5627nto-qnx*)
5628  lt_cv_deplibs_check_method=unknown
5629  ;;
5630
5631openbsd*)
5632  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5633    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5634  else
5635    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5636  fi
5637  ;;
5638
5639osf3* | osf4* | osf5*)
5640  lt_cv_deplibs_check_method=pass_all
5641  ;;
5642
5643solaris*)
5644  lt_cv_deplibs_check_method=pass_all
5645  ;;
5646
5647sysv4 | sysv4.3*)
5648  case $host_vendor in
5649  motorola)
5650    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]'
5651    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5652    ;;
5653  ncr)
5654    lt_cv_deplibs_check_method=pass_all
5655    ;;
5656  sequent)
5657    lt_cv_file_magic_cmd='/bin/file'
5658    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5659    ;;
5660  sni)
5661    lt_cv_file_magic_cmd='/bin/file'
5662    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5663    lt_cv_file_magic_test_file=/lib/libc.so
5664    ;;
5665  siemens)
5666    lt_cv_deplibs_check_method=pass_all
5667    ;;
5668  pc)
5669    lt_cv_deplibs_check_method=pass_all
5670    ;;
5671  esac
5672  ;;
5673
5674sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5675  lt_cv_deplibs_check_method=pass_all
5676  ;;
5677esac
5678
5679fi
5680echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5681echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5682file_magic_cmd=$lt_cv_file_magic_cmd
5683deplibs_check_method=$lt_cv_deplibs_check_method
5684test -z "$deplibs_check_method" && deplibs_check_method=unknown
5685
5686
5687
5688
5689# If no C compiler was specified, use CC.
5690LTCC=${LTCC-"$CC"}
5691
5692# If no C compiler flags were specified, use CFLAGS.
5693LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5694
5695# Allow CC to be a program name with arguments.
5696compiler=$CC
5697
5698# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5699if test "${enable_libtool_lock+set}" = set; then
5700  enableval="$enable_libtool_lock"
5701
5702fi;
5703test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5704
5705# Some flags need to be propagated to the compiler or linker for good
5706# libtool support.
5707case $host in
5708ia64-*-hpux*)
5709  # Find out which ABI we are using.
5710  echo 'int i;' > conftest.$ac_ext
5711  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712  (eval $ac_compile) 2>&5
5713  ac_status=$?
5714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715  (exit $ac_status); }; then
5716    case `/usr/bin/file conftest.$ac_objext` in
5717    *ELF-32*)
5718      HPUX_IA64_MODE="32"
5719      ;;
5720    *ELF-64*)
5721      HPUX_IA64_MODE="64"
5722      ;;
5723    esac
5724  fi
5725  rm -rf conftest*
5726  ;;
5727*-*-irix6*)
5728  # Find out which ABI we are using.
5729  echo '#line 5729 "configure"' > conftest.$ac_ext
5730  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5731  (eval $ac_compile) 2>&5
5732  ac_status=$?
5733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734  (exit $ac_status); }; then
5735   if test "$lt_cv_prog_gnu_ld" = yes; then
5736    case `/usr/bin/file conftest.$ac_objext` in
5737    *32-bit*)
5738      LD="${LD-ld} -melf32bsmip"
5739      ;;
5740    *N32*)
5741      LD="${LD-ld} -melf32bmipn32"
5742      ;;
5743    *64-bit*)
5744      LD="${LD-ld} -melf64bmip"
5745      ;;
5746    esac
5747   else
5748    case `/usr/bin/file conftest.$ac_objext` in
5749    *32-bit*)
5750      LD="${LD-ld} -32"
5751      ;;
5752    *N32*)
5753      LD="${LD-ld} -n32"
5754      ;;
5755    *64-bit*)
5756      LD="${LD-ld} -64"
5757      ;;
5758    esac
5759   fi
5760  fi
5761  rm -rf conftest*
5762  ;;
5763
5764x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5765  # Find out which ABI we are using.
5766  echo 'int i;' > conftest.$ac_ext
5767  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768  (eval $ac_compile) 2>&5
5769  ac_status=$?
5770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771  (exit $ac_status); }; then
5772    case `/usr/bin/file conftest.o` in
5773    *32-bit*)
5774      case $host in
5775        x86_64-*linux*)
5776          LD="${LD-ld} -m elf_i386"
5777          ;;
5778        ppc64-*linux*|powerpc64-*linux*)
5779          LD="${LD-ld} -m elf32ppclinux"
5780          ;;
5781        s390x-*linux*)
5782          LD="${LD-ld} -m elf_s390"
5783          ;;
5784        sparc64-*linux*)
5785          LD="${LD-ld} -m elf32_sparc"
5786          ;;
5787      esac
5788      ;;
5789    *64-bit*)
5790      case $host in
5791        x86_64-*linux*)
5792          LD="${LD-ld} -m elf_x86_64"
5793          ;;
5794        ppc*-*linux*|powerpc*-*linux*)
5795          LD="${LD-ld} -m elf64ppc"
5796          ;;
5797        s390*-*linux*)
5798          LD="${LD-ld} -m elf64_s390"
5799          ;;
5800        sparc*-*linux*)
5801          LD="${LD-ld} -m elf64_sparc"
5802          ;;
5803      esac
5804      ;;
5805    esac
5806  fi
5807  rm -rf conftest*
5808  ;;
5809
5810*-*-sco3.2v5*)
5811  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5812  SAVE_CFLAGS="$CFLAGS"
5813  CFLAGS="$CFLAGS -belf"
5814  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5815echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5816if test "${lt_cv_cc_needs_belf+set}" = set; then
5817  echo $ECHO_N "(cached) $ECHO_C" >&6
5818else
5819  ac_ext=c
5820ac_cpp='$CPP $CPPFLAGS'
5821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5823ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824
5825     cat >conftest.$ac_ext <<_ACEOF
5826/* confdefs.h.  */
5827_ACEOF
5828cat confdefs.h >>conftest.$ac_ext
5829cat >>conftest.$ac_ext <<_ACEOF
5830/* end confdefs.h.  */
5831
5832int
5833main ()
5834{
5835
5836  ;
5837  return 0;
5838}
5839_ACEOF
5840rm -f conftest.$ac_objext conftest$ac_exeext
5841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5842  (eval $ac_link) 2>conftest.er1
5843  ac_status=$?
5844  grep -v '^ *+' conftest.er1 >conftest.err
5845  rm -f conftest.er1
5846  cat conftest.err >&5
5847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848  (exit $ac_status); } &&
5849         { ac_try='test -z "$ac_c_werror_flag"
5850                         || test ! -s conftest.err'
5851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852  (eval $ac_try) 2>&5
5853  ac_status=$?
5854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855  (exit $ac_status); }; } &&
5856         { ac_try='test -s conftest$ac_exeext'
5857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858  (eval $ac_try) 2>&5
5859  ac_status=$?
5860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861  (exit $ac_status); }; }; then
5862  lt_cv_cc_needs_belf=yes
5863else
5864  echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867lt_cv_cc_needs_belf=no
5868fi
5869rm -f conftest.err conftest.$ac_objext \
5870      conftest$ac_exeext conftest.$ac_ext
5871     ac_ext=c
5872ac_cpp='$CPP $CPPFLAGS'
5873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875ac_compiler_gnu=$ac_cv_c_compiler_gnu
5876
5877fi
5878echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5879echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5880  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5881    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5882    CFLAGS="$SAVE_CFLAGS"
5883  fi
5884  ;;
5885sparc*-*solaris*)
5886  # Find out which ABI we are using.
5887  echo 'int i;' > conftest.$ac_ext
5888  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5889  (eval $ac_compile) 2>&5
5890  ac_status=$?
5891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892  (exit $ac_status); }; then
5893    case `/usr/bin/file conftest.o` in
5894    *64-bit*)
5895      case $lt_cv_prog_gnu_ld in
5896      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5897      *)    LD="${LD-ld} -64" ;;
5898      esac
5899      ;;
5900    esac
5901  fi
5902  rm -rf conftest*
5903  ;;
5904
5905
5906esac
5907
5908need_locks="$enable_libtool_lock"
5909
5910
5911ac_ext=c
5912ac_cpp='$CPP $CPPFLAGS'
5913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915ac_compiler_gnu=$ac_cv_c_compiler_gnu
5916echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5917echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5918# On Suns, sometimes $CPP names a directory.
5919if test -n "$CPP" && test -d "$CPP"; then
5920  CPP=
5921fi
5922if test -z "$CPP"; then
5923  if test "${ac_cv_prog_CPP+set}" = set; then
5924  echo $ECHO_N "(cached) $ECHO_C" >&6
5925else
5926      # Double quotes because CPP needs to be expanded
5927    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5928    do
5929      ac_preproc_ok=false
5930for ac_c_preproc_warn_flag in '' yes
5931do
5932  # Use a header file that comes with gcc, so configuring glibc
5933  # with a fresh cross-compiler works.
5934  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5935  # <limits.h> exists even on freestanding compilers.
5936  # On the NeXT, cc -E runs the code through the compiler's parser,
5937  # not just through cpp. "Syntax error" is here to catch this case.
5938  cat >conftest.$ac_ext <<_ACEOF
5939/* confdefs.h.  */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
5943/* end confdefs.h.  */
5944#ifdef __STDC__
5945# include <limits.h>
5946#else
5947# include <assert.h>
5948#endif
5949                     Syntax error
5950_ACEOF
5951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5952  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5953  ac_status=$?
5954  grep -v '^ *+' conftest.er1 >conftest.err
5955  rm -f conftest.er1
5956  cat conftest.err >&5
5957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958  (exit $ac_status); } >/dev/null; then
5959  if test -s conftest.err; then
5960    ac_cpp_err=$ac_c_preproc_warn_flag
5961    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5962  else
5963    ac_cpp_err=
5964  fi
5965else
5966  ac_cpp_err=yes
5967fi
5968if test -z "$ac_cpp_err"; then
5969  :
5970else
5971  echo "$as_me: failed program was:" >&5
5972sed 's/^/| /' conftest.$ac_ext >&5
5973
5974  # Broken: fails on valid input.
5975continue
5976fi
5977rm -f conftest.err conftest.$ac_ext
5978
5979  # OK, works on sane cases.  Now check whether non-existent headers
5980  # can be detected and how.
5981  cat >conftest.$ac_ext <<_ACEOF
5982/* confdefs.h.  */
5983_ACEOF
5984cat confdefs.h >>conftest.$ac_ext
5985cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h.  */
5987#include <ac_nonexistent.h>
5988_ACEOF
5989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5990  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5991  ac_status=$?
5992  grep -v '^ *+' conftest.er1 >conftest.err
5993  rm -f conftest.er1
5994  cat conftest.err >&5
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); } >/dev/null; then
5997  if test -s conftest.err; then
5998    ac_cpp_err=$ac_c_preproc_warn_flag
5999    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6000  else
6001    ac_cpp_err=
6002  fi
6003else
6004  ac_cpp_err=yes
6005fi
6006if test -z "$ac_cpp_err"; then
6007  # Broken: success on invalid input.
6008continue
6009else
6010  echo "$as_me: failed program was:" >&5
6011sed 's/^/| /' conftest.$ac_ext >&5
6012
6013  # Passes both tests.
6014ac_preproc_ok=:
6015break
6016fi
6017rm -f conftest.err conftest.$ac_ext
6018
6019done
6020# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6021rm -f conftest.err conftest.$ac_ext
6022if $ac_preproc_ok; then
6023  break
6024fi
6025
6026    done
6027    ac_cv_prog_CPP=$CPP
6028
6029fi
6030  CPP=$ac_cv_prog_CPP
6031else
6032  ac_cv_prog_CPP=$CPP
6033fi
6034echo "$as_me:$LINENO: result: $CPP" >&5
6035echo "${ECHO_T}$CPP" >&6
6036ac_preproc_ok=false
6037for ac_c_preproc_warn_flag in '' yes
6038do
6039  # Use a header file that comes with gcc, so configuring glibc
6040  # with a fresh cross-compiler works.
6041  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6042  # <limits.h> exists even on freestanding compilers.
6043  # On the NeXT, cc -E runs the code through the compiler's parser,
6044  # not just through cpp. "Syntax error" is here to catch this case.
6045  cat >conftest.$ac_ext <<_ACEOF
6046/* confdefs.h.  */
6047_ACEOF
6048cat confdefs.h >>conftest.$ac_ext
6049cat >>conftest.$ac_ext <<_ACEOF
6050/* end confdefs.h.  */
6051#ifdef __STDC__
6052# include <limits.h>
6053#else
6054# include <assert.h>
6055#endif
6056                     Syntax error
6057_ACEOF
6058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6059  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6060  ac_status=$?
6061  grep -v '^ *+' conftest.er1 >conftest.err
6062  rm -f conftest.er1
6063  cat conftest.err >&5
6064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065  (exit $ac_status); } >/dev/null; then
6066  if test -s conftest.err; then
6067    ac_cpp_err=$ac_c_preproc_warn_flag
6068    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6069  else
6070    ac_cpp_err=
6071  fi
6072else
6073  ac_cpp_err=yes
6074fi
6075if test -z "$ac_cpp_err"; then
6076  :
6077else
6078  echo "$as_me: failed program was:" >&5
6079sed 's/^/| /' conftest.$ac_ext >&5
6080
6081  # Broken: fails on valid input.
6082continue
6083fi
6084rm -f conftest.err conftest.$ac_ext
6085
6086  # OK, works on sane cases.  Now check whether non-existent headers
6087  # can be detected and how.
6088  cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h.  */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h.  */
6094#include <ac_nonexistent.h>
6095_ACEOF
6096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6097  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6098  ac_status=$?
6099  grep -v '^ *+' conftest.er1 >conftest.err
6100  rm -f conftest.er1
6101  cat conftest.err >&5
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); } >/dev/null; then
6104  if test -s conftest.err; then
6105    ac_cpp_err=$ac_c_preproc_warn_flag
6106    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6107  else
6108    ac_cpp_err=
6109  fi
6110else
6111  ac_cpp_err=yes
6112fi
6113if test -z "$ac_cpp_err"; then
6114  # Broken: success on invalid input.
6115continue
6116else
6117  echo "$as_me: failed program was:" >&5
6118sed 's/^/| /' conftest.$ac_ext >&5
6119
6120  # Passes both tests.
6121ac_preproc_ok=:
6122break
6123fi
6124rm -f conftest.err conftest.$ac_ext
6125
6126done
6127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6128rm -f conftest.err conftest.$ac_ext
6129if $ac_preproc_ok; then
6130  :
6131else
6132  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6133See \`config.log' for more details." >&5
6134echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6135See \`config.log' for more details." >&2;}
6136   { (exit 1); exit 1; }; }
6137fi
6138
6139ac_ext=c
6140ac_cpp='$CPP $CPPFLAGS'
6141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6143ac_compiler_gnu=$ac_cv_c_compiler_gnu
6144
6145
6146echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6147echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6148if test "${ac_cv_header_stdc+set}" = set; then
6149  echo $ECHO_N "(cached) $ECHO_C" >&6
6150else
6151  cat >conftest.$ac_ext <<_ACEOF
6152/* confdefs.h.  */
6153_ACEOF
6154cat confdefs.h >>conftest.$ac_ext
6155cat >>conftest.$ac_ext <<_ACEOF
6156/* end confdefs.h.  */
6157#include <stdlib.h>
6158#include <stdarg.h>
6159#include <string.h>
6160#include <float.h>
6161
6162int
6163main ()
6164{
6165
6166  ;
6167  return 0;
6168}
6169_ACEOF
6170rm -f conftest.$ac_objext
6171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172  (eval $ac_compile) 2>conftest.er1
6173  ac_status=$?
6174  grep -v '^ *+' conftest.er1 >conftest.err
6175  rm -f conftest.er1
6176  cat conftest.err >&5
6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178  (exit $ac_status); } &&
6179         { ac_try='test -z "$ac_c_werror_flag"
6180                         || test ! -s conftest.err'
6181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6182  (eval $ac_try) 2>&5
6183  ac_status=$?
6184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185  (exit $ac_status); }; } &&
6186         { ac_try='test -s conftest.$ac_objext'
6187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188  (eval $ac_try) 2>&5
6189  ac_status=$?
6190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191  (exit $ac_status); }; }; then
6192  ac_cv_header_stdc=yes
6193else
6194  echo "$as_me: failed program was:" >&5
6195sed 's/^/| /' conftest.$ac_ext >&5
6196
6197ac_cv_header_stdc=no
6198fi
6199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6200
6201if test $ac_cv_header_stdc = yes; then
6202  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6203  cat >conftest.$ac_ext <<_ACEOF
6204/* confdefs.h.  */
6205_ACEOF
6206cat confdefs.h >>conftest.$ac_ext
6207cat >>conftest.$ac_ext <<_ACEOF
6208/* end confdefs.h.  */
6209#include <string.h>
6210
6211_ACEOF
6212if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6213  $EGREP "memchr" >/dev/null 2>&1; then
6214  :
6215else
6216  ac_cv_header_stdc=no
6217fi
6218rm -f conftest*
6219
6220fi
6221
6222if test $ac_cv_header_stdc = yes; then
6223  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6224  cat >conftest.$ac_ext <<_ACEOF
6225/* confdefs.h.  */
6226_ACEOF
6227cat confdefs.h >>conftest.$ac_ext
6228cat >>conftest.$ac_ext <<_ACEOF
6229/* end confdefs.h.  */
6230#include <stdlib.h>
6231
6232_ACEOF
6233if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6234  $EGREP "free" >/dev/null 2>&1; then
6235  :
6236else
6237  ac_cv_header_stdc=no
6238fi
6239rm -f conftest*
6240
6241fi
6242
6243if test $ac_cv_header_stdc = yes; then
6244  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6245  if test "$cross_compiling" = yes; then
6246  :
6247else
6248  cat >conftest.$ac_ext <<_ACEOF
6249/* confdefs.h.  */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h.  */
6254#include <ctype.h>
6255#if ((' ' & 0x0FF) == 0x020)
6256# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6257# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6258#else
6259# define ISLOWER(c) \
6260                   (('a' <= (c) && (c) <= 'i') \
6261                     || ('j' <= (c) && (c) <= 'r') \
6262                     || ('s' <= (c) && (c) <= 'z'))
6263# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6264#endif
6265
6266#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6267int
6268main ()
6269{
6270  int i;
6271  for (i = 0; i < 256; i++)
6272    if (XOR (islower (i), ISLOWER (i))
6273        || toupper (i) != TOUPPER (i))
6274      exit(2);
6275  exit (0);
6276}
6277_ACEOF
6278rm -f conftest$ac_exeext
6279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6280  (eval $ac_link) 2>&5
6281  ac_status=$?
6282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285  (eval $ac_try) 2>&5
6286  ac_status=$?
6287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288  (exit $ac_status); }; }; then
6289  :
6290else
6291  echo "$as_me: program exited with status $ac_status" >&5
6292echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295( exit $ac_status )
6296ac_cv_header_stdc=no
6297fi
6298rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6299fi
6300fi
6301fi
6302echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6303echo "${ECHO_T}$ac_cv_header_stdc" >&6
6304if test $ac_cv_header_stdc = yes; then
6305
6306cat >>confdefs.h <<\_ACEOF
6307#define STDC_HEADERS 1
6308_ACEOF
6309
6310fi
6311
6312# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6323                  inttypes.h stdint.h unistd.h
6324do
6325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6326echo "$as_me:$LINENO: checking for $ac_header" >&5
6327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6328if eval "test \"\${$as_ac_Header+set}\" = set"; then
6329  echo $ECHO_N "(cached) $ECHO_C" >&6
6330else
6331  cat >conftest.$ac_ext <<_ACEOF
6332/* confdefs.h.  */
6333_ACEOF
6334cat confdefs.h >>conftest.$ac_ext
6335cat >>conftest.$ac_ext <<_ACEOF
6336/* end confdefs.h.  */
6337$ac_includes_default
6338
6339#include <$ac_header>
6340_ACEOF
6341rm -f conftest.$ac_objext
6342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343  (eval $ac_compile) 2>conftest.er1
6344  ac_status=$?
6345  grep -v '^ *+' conftest.er1 >conftest.err
6346  rm -f conftest.er1
6347  cat conftest.err >&5
6348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349  (exit $ac_status); } &&
6350         { ac_try='test -z "$ac_c_werror_flag"
6351                         || test ! -s conftest.err'
6352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353  (eval $ac_try) 2>&5
6354  ac_status=$?
6355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356  (exit $ac_status); }; } &&
6357         { ac_try='test -s conftest.$ac_objext'
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  eval "$as_ac_Header=yes"
6364else
6365  echo "$as_me: failed program was:" >&5
6366sed 's/^/| /' conftest.$ac_ext >&5
6367
6368eval "$as_ac_Header=no"
6369fi
6370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6371fi
6372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6373echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6374if test `eval echo '${'$as_ac_Header'}'` = yes; then
6375  cat >>confdefs.h <<_ACEOF
6376#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6377_ACEOF
6378
6379fi
6380
6381done
6382
6383
6384
6385for ac_header in dlfcn.h
6386do
6387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6388if eval "test \"\${$as_ac_Header+set}\" = set"; then
6389  echo "$as_me:$LINENO: checking for $ac_header" >&5
6390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392  echo $ECHO_N "(cached) $ECHO_C" >&6
6393fi
6394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6396else
6397  # Is the header compilable?
6398echo "$as_me:$LINENO: checking $ac_header usability" >&5
6399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6400cat >conftest.$ac_ext <<_ACEOF
6401/* confdefs.h.  */
6402_ACEOF
6403cat confdefs.h >>conftest.$ac_ext
6404cat >>conftest.$ac_ext <<_ACEOF
6405/* end confdefs.h.  */
6406$ac_includes_default
6407#include <$ac_header>
6408_ACEOF
6409rm -f conftest.$ac_objext
6410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411  (eval $ac_compile) 2>conftest.er1
6412  ac_status=$?
6413  grep -v '^ *+' conftest.er1 >conftest.err
6414  rm -f conftest.er1
6415  cat conftest.err >&5
6416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417  (exit $ac_status); } &&
6418         { ac_try='test -z "$ac_c_werror_flag"
6419                         || test ! -s conftest.err'
6420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421  (eval $ac_try) 2>&5
6422  ac_status=$?
6423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424  (exit $ac_status); }; } &&
6425         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6431  ac_header_compiler=yes
6432else
6433  echo "$as_me: failed program was:" >&5
6434sed 's/^/| /' conftest.$ac_ext >&5
6435
6436ac_header_compiler=no
6437fi
6438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6440echo "${ECHO_T}$ac_header_compiler" >&6
6441
6442# Is the header present?
6443echo "$as_me:$LINENO: checking $ac_header presence" >&5
6444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6445cat >conftest.$ac_ext <<_ACEOF
6446/* confdefs.h.  */
6447_ACEOF
6448cat confdefs.h >>conftest.$ac_ext
6449cat >>conftest.$ac_ext <<_ACEOF
6450/* end confdefs.h.  */
6451#include <$ac_header>
6452_ACEOF
6453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6454  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6455  ac_status=$?
6456  grep -v '^ *+' conftest.er1 >conftest.err
6457  rm -f conftest.er1
6458  cat conftest.err >&5
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); } >/dev/null; then
6461  if test -s conftest.err; then
6462    ac_cpp_err=$ac_c_preproc_warn_flag
6463    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6464  else
6465    ac_cpp_err=
6466  fi
6467else
6468  ac_cpp_err=yes
6469fi
6470if test -z "$ac_cpp_err"; then
6471  ac_header_preproc=yes
6472else
6473  echo "$as_me: failed program was:" >&5
6474sed 's/^/| /' conftest.$ac_ext >&5
6475
6476  ac_header_preproc=no
6477fi
6478rm -f conftest.err conftest.$ac_ext
6479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6480echo "${ECHO_T}$ac_header_preproc" >&6
6481
6482# So?  What about this header?
6483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6484  yes:no: )
6485    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6487    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6489    ac_header_preproc=yes
6490    ;;
6491  no:yes:* )
6492    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6494    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6495echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6496    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6498    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6499echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6500    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6502    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6504    (
6505      cat <<\_ASBOX
6506## ---------------------------------------- ##
6507## Report this to coin-cbc@list.coin-or.org ##
6508## ---------------------------------------- ##
6509_ASBOX
6510    ) |
6511      sed "s/^/$as_me: WARNING:     /" >&2
6512    ;;
6513esac
6514echo "$as_me:$LINENO: checking for $ac_header" >&5
6515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6516if eval "test \"\${$as_ac_Header+set}\" = set"; then
6517  echo $ECHO_N "(cached) $ECHO_C" >&6
6518else
6519  eval "$as_ac_Header=\$ac_header_preproc"
6520fi
6521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6523
6524fi
6525if test `eval echo '${'$as_ac_Header'}'` = yes; then
6526  cat >>confdefs.h <<_ACEOF
6527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6528_ACEOF
6529
6530fi
6531
6532done
6533
6534
6535
6536if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6537    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6538    (test "X$CXX" != "Xg++"))) ; then
6539  ac_ext=cc
6540ac_cpp='$CXXCPP $CPPFLAGS'
6541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6544echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6545echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6546if test -z "$CXXCPP"; then
6547  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6548  echo $ECHO_N "(cached) $ECHO_C" >&6
6549else
6550      # Double quotes because CXXCPP needs to be expanded
6551    for CXXCPP in "$CXX -E" "/lib/cpp"
6552    do
6553      ac_preproc_ok=false
6554for ac_cxx_preproc_warn_flag in '' yes
6555do
6556  # Use a header file that comes with gcc, so configuring glibc
6557  # with a fresh cross-compiler works.
6558  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6559  # <limits.h> exists even on freestanding compilers.
6560  # On the NeXT, cc -E runs the code through the compiler's parser,
6561  # not just through cpp. "Syntax error" is here to catch this case.
6562  cat >conftest.$ac_ext <<_ACEOF
6563/* confdefs.h.  */
6564_ACEOF
6565cat confdefs.h >>conftest.$ac_ext
6566cat >>conftest.$ac_ext <<_ACEOF
6567/* end confdefs.h.  */
6568#ifdef __STDC__
6569# include <limits.h>
6570#else
6571# include <assert.h>
6572#endif
6573                     Syntax error
6574_ACEOF
6575if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6576  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6577  ac_status=$?
6578  grep -v '^ *+' conftest.er1 >conftest.err
6579  rm -f conftest.er1
6580  cat conftest.err >&5
6581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582  (exit $ac_status); } >/dev/null; then
6583  if test -s conftest.err; then
6584    ac_cpp_err=$ac_cxx_preproc_warn_flag
6585    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6586  else
6587    ac_cpp_err=
6588  fi
6589else
6590  ac_cpp_err=yes
6591fi
6592if test -z "$ac_cpp_err"; then
6593  :
6594else
6595  echo "$as_me: failed program was:" >&5
6596sed 's/^/| /' conftest.$ac_ext >&5
6597
6598  # Broken: fails on valid input.
6599continue
6600fi
6601rm -f conftest.err conftest.$ac_ext
6602
6603  # OK, works on sane cases.  Now check whether non-existent headers
6604  # can be detected and how.
6605  cat >conftest.$ac_ext <<_ACEOF
6606/* confdefs.h.  */
6607_ACEOF
6608cat confdefs.h >>conftest.$ac_ext
6609cat >>conftest.$ac_ext <<_ACEOF
6610/* end confdefs.h.  */
6611#include <ac_nonexistent.h>
6612_ACEOF
6613if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6614  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6615  ac_status=$?
6616  grep -v '^ *+' conftest.er1 >conftest.err
6617  rm -f conftest.er1
6618  cat conftest.err >&5
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); } >/dev/null; then
6621  if test -s conftest.err; then
6622    ac_cpp_err=$ac_cxx_preproc_warn_flag
6623    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6624  else
6625    ac_cpp_err=
6626  fi
6627else
6628  ac_cpp_err=yes
6629fi
6630if test -z "$ac_cpp_err"; then
6631  # Broken: success on invalid input.
6632continue
6633else
6634  echo "$as_me: failed program was:" >&5
6635sed 's/^/| /' conftest.$ac_ext >&5
6636
6637  # Passes both tests.
6638ac_preproc_ok=:
6639break
6640fi
6641rm -f conftest.err conftest.$ac_ext
6642
6643done
6644# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6645rm -f conftest.err conftest.$ac_ext
6646if $ac_preproc_ok; then
6647  break
6648fi
6649
6650    done
6651    ac_cv_prog_CXXCPP=$CXXCPP
6652
6653fi
6654  CXXCPP=$ac_cv_prog_CXXCPP
6655else
6656  ac_cv_prog_CXXCPP=$CXXCPP
6657fi
6658echo "$as_me:$LINENO: result: $CXXCPP" >&5
6659echo "${ECHO_T}$CXXCPP" >&6
6660ac_preproc_ok=false
6661for ac_cxx_preproc_warn_flag in '' yes
6662do
6663  # Use a header file that comes with gcc, so configuring glibc
6664  # with a fresh cross-compiler works.
6665  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666  # <limits.h> exists even on freestanding compilers.
6667  # On the NeXT, cc -E runs the code through the compiler's parser,
6668  # not just through cpp. "Syntax error" is here to catch this case.
6669  cat >conftest.$ac_ext <<_ACEOF
6670/* confdefs.h.  */
6671_ACEOF
6672cat confdefs.h >>conftest.$ac_ext
6673cat >>conftest.$ac_ext <<_ACEOF
6674/* end confdefs.h.  */
6675#ifdef __STDC__
6676# include <limits.h>
6677#else
6678# include <assert.h>
6679#endif
6680                     Syntax error
6681_ACEOF
6682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6683  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6684  ac_status=$?
6685  grep -v '^ *+' conftest.er1 >conftest.err
6686  rm -f conftest.er1
6687  cat conftest.err >&5
6688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689  (exit $ac_status); } >/dev/null; then
6690  if test -s conftest.err; then
6691    ac_cpp_err=$ac_cxx_preproc_warn_flag
6692    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6693  else
6694    ac_cpp_err=
6695  fi
6696else
6697  ac_cpp_err=yes
6698fi
6699if test -z "$ac_cpp_err"; then
6700  :
6701else
6702  echo "$as_me: failed program was:" >&5
6703sed 's/^/| /' conftest.$ac_ext >&5
6704
6705  # Broken: fails on valid input.
6706continue
6707fi
6708rm -f conftest.err conftest.$ac_ext
6709
6710  # OK, works on sane cases.  Now check whether non-existent headers
6711  # can be detected and how.
6712  cat >conftest.$ac_ext <<_ACEOF
6713/* confdefs.h.  */
6714_ACEOF
6715cat confdefs.h >>conftest.$ac_ext
6716cat >>conftest.$ac_ext <<_ACEOF
6717/* end confdefs.h.  */
6718#include <ac_nonexistent.h>
6719_ACEOF
6720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6721  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6722  ac_status=$?
6723  grep -v '^ *+' conftest.er1 >conftest.err
6724  rm -f conftest.er1
6725  cat conftest.err >&5
6726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727  (exit $ac_status); } >/dev/null; then
6728  if test -s conftest.err; then
6729    ac_cpp_err=$ac_cxx_preproc_warn_flag
6730    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6731  else
6732    ac_cpp_err=
6733  fi
6734else
6735  ac_cpp_err=yes
6736fi
6737if test -z "$ac_cpp_err"; then
6738  # Broken: success on invalid input.
6739continue
6740else
6741  echo "$as_me: failed program was:" >&5
6742sed 's/^/| /' conftest.$ac_ext >&5
6743
6744  # Passes both tests.
6745ac_preproc_ok=:
6746break
6747fi
6748rm -f conftest.err conftest.$ac_ext
6749
6750done
6751# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6752rm -f conftest.err conftest.$ac_ext
6753if $ac_preproc_ok; then
6754  :
6755else
6756  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6757See \`config.log' for more details." >&5
6758echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6759See \`config.log' for more details." >&2;}
6760   { (exit 1); exit 1; }; }
6761fi
6762
6763ac_ext=cc
6764ac_cpp='$CXXCPP $CPPFLAGS'
6765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6768
6769fi
6770
6771ac_ext=f
6772ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6773ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6775if test -n "$ac_tool_prefix"; then
6776  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6777  do
6778    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6779set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6780echo "$as_me:$LINENO: checking for $ac_word" >&5
6781echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6782if test "${ac_cv_prog_F77+set}" = set; then
6783  echo $ECHO_N "(cached) $ECHO_C" >&6
6784else
6785  if test -n "$F77"; then
6786  ac_cv_prog_F77="$F77" # Let the user override the test.
6787else
6788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789for as_dir in $PATH
6790do
6791  IFS=$as_save_IFS
6792  test -z "$as_dir" && as_dir=.
6793  for ac_exec_ext in '' $ac_executable_extensions; do
6794  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6795    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6796    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6797    break 2
6798  fi
6799done
6800done
6801
6802fi
6803fi
6804F77=$ac_cv_prog_F77
6805if test -n "$F77"; then
6806  echo "$as_me:$LINENO: result: $F77" >&5
6807echo "${ECHO_T}$F77" >&6
6808else
6809  echo "$as_me:$LINENO: result: no" >&5
6810echo "${ECHO_T}no" >&6
6811fi
6812
6813    test -n "$F77" && break
6814  done
6815fi
6816if test -z "$F77"; then
6817  ac_ct_F77=$F77
6818  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6819do
6820  # Extract the first word of "$ac_prog", so it can be a program name with args.
6821set dummy $ac_prog; ac_word=$2
6822echo "$as_me:$LINENO: checking for $ac_word" >&5
6823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6824if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6825  echo $ECHO_N "(cached) $ECHO_C" >&6
6826else
6827  if test -n "$ac_ct_F77"; then
6828  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6829else
6830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831for as_dir in $PATH
6832do
6833  IFS=$as_save_IFS
6834  test -z "$as_dir" && as_dir=.
6835  for ac_exec_ext in '' $ac_executable_extensions; do
6836  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6837    ac_cv_prog_ac_ct_F77="$ac_prog"
6838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6839    break 2
6840  fi
6841done
6842done
6843
6844fi
6845fi
6846ac_ct_F77=$ac_cv_prog_ac_ct_F77
6847if test -n "$ac_ct_F77"; then
6848  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6849echo "${ECHO_T}$ac_ct_F77" >&6
6850else
6851  echo "$as_me:$LINENO: result: no" >&5
6852echo "${ECHO_T}no" >&6
6853fi
6854
6855  test -n "$ac_ct_F77" && break
6856done
6857
6858  F77=$ac_ct_F77
6859fi
6860
6861
6862# Provide some information about the compiler.
6863echo "$as_me:6863:" \
6864     "checking for Fortran 77 compiler version" >&5
6865ac_compiler=`set X $ac_compile; echo $2`
6866{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6867  (eval $ac_compiler --version </dev/null >&5) 2>&5
6868  ac_status=$?
6869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870  (exit $ac_status); }
6871{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6872  (eval $ac_compiler -v </dev/null >&5) 2>&5
6873  ac_status=$?
6874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875  (exit $ac_status); }
6876{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6877  (eval $ac_compiler -V </dev/null >&5) 2>&5
6878  ac_status=$?
6879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880  (exit $ac_status); }
6881rm -f a.out
6882
6883# If we don't use `.F' as extension, the preprocessor is not run on the
6884# input file.  (Note that this only needs to work for GNU compilers.)
6885ac_save_ext=$ac_ext
6886ac_ext=F
6887echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6888echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6889if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6890  echo $ECHO_N "(cached) $ECHO_C" >&6
6891else
6892  cat >conftest.$ac_ext <<_ACEOF
6893      program main
6894#ifndef __GNUC__
6895       choke me
6896#endif
6897
6898      end
6899_ACEOF
6900rm -f conftest.$ac_objext
6901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902  (eval $ac_compile) 2>conftest.er1
6903  ac_status=$?
6904  grep -v '^ *+' conftest.er1 >conftest.err
6905  rm -f conftest.er1
6906  cat conftest.err >&5
6907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908  (exit $ac_status); } &&
6909         { ac_try='test -z "$ac_f77_werror_flag"
6910                         || test ! -s conftest.err'
6911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6912  (eval $ac_try) 2>&5
6913  ac_status=$?
6914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915  (exit $ac_status); }; } &&
6916         { ac_try='test -s conftest.$ac_objext'
6917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918  (eval $ac_try) 2>&5
6919  ac_status=$?
6920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921  (exit $ac_status); }; }; then
6922  ac_compiler_gnu=yes
6923else
6924  echo "$as_me: failed program was:" >&5
6925sed 's/^/| /' conftest.$ac_ext >&5
6926
6927ac_compiler_gnu=no
6928fi
6929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6930ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6931
6932fi
6933echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6934echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6935ac_ext=$ac_save_ext
6936ac_test_FFLAGS=${FFLAGS+set}
6937ac_save_FFLAGS=$FFLAGS
6938FFLAGS=
6939echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6940echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6941if test "${ac_cv_prog_f77_g+set}" = set; then
6942  echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944  FFLAGS=-g
6945cat >conftest.$ac_ext <<_ACEOF
6946      program main
6947
6948      end
6949_ACEOF
6950rm -f conftest.$ac_objext
6951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6952  (eval $ac_compile) 2>conftest.er1
6953  ac_status=$?
6954  grep -v '^ *+' conftest.er1 >conftest.err
6955  rm -f conftest.er1
6956  cat conftest.err >&5
6957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958  (exit $ac_status); } &&
6959         { ac_try='test -z "$ac_f77_werror_flag"
6960                         || test ! -s conftest.err'
6961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6962  (eval $ac_try) 2>&5
6963  ac_status=$?
6964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6965  (exit $ac_status); }; } &&
6966         { ac_try='test -s conftest.$ac_objext'
6967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6968  (eval $ac_try) 2>&5
6969  ac_status=$?
6970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971  (exit $ac_status); }; }; then
6972  ac_cv_prog_f77_g=yes
6973else
6974  echo "$as_me: failed program was:" >&5
6975sed 's/^/| /' conftest.$ac_ext >&5
6976
6977ac_cv_prog_f77_g=no
6978fi
6979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6980
6981fi
6982echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6983echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6984if test "$ac_test_FFLAGS" = set; then
6985  FFLAGS=$ac_save_FFLAGS
6986elif test $ac_cv_prog_f77_g = yes; then
6987  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6988    FFLAGS="-g -O2"
6989  else
6990    FFLAGS="-g"
6991  fi
6992else
6993  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6994    FFLAGS="-O2"
6995  else
6996    FFLAGS=
6997  fi
6998fi
6999
7000G77=`test $ac_compiler_gnu = yes && echo yes`
7001ac_ext=c
7002ac_cpp='$CPP $CPPFLAGS'
7003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005ac_compiler_gnu=$ac_cv_c_compiler_gnu
7006
7007
7008
7009# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7010
7011# find the maximum length of command line arguments
7012echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7013echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7014if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7015  echo $ECHO_N "(cached) $ECHO_C" >&6
7016else
7017    i=0
7018  teststring="ABCD"
7019
7020  case $build_os in
7021  msdosdjgpp*)
7022    # On DJGPP, this test can blow up pretty badly due to problems in libc
7023    # (any single argument exceeding 2000 bytes causes a buffer overrun
7024    # during glob expansion).  Even if it were fixed, the result of this
7025    # check would be larger than it should be.
7026    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7027    ;;
7028
7029  gnu*)
7030    # Under GNU Hurd, this test is not required because there is
7031    # no limit to the length of command line arguments.
7032    # Libtool will interpret -1 as no limit whatsoever
7033    lt_cv_sys_max_cmd_len=-1;
7034    ;;
7035
7036  cygwin* | mingw*)
7037    # On Win9x/ME, this test blows up -- it succeeds, but takes
7038    # about 5 minutes as the teststring grows exponentially.
7039    # Worse, since 9x/ME are not pre-emptively multitasking,
7040    # you end up with a "frozen" computer, even though with patience
7041    # the test eventually succeeds (with a max line length of 256k).
7042    # Instead, let's just punt: use the minimum linelength reported by
7043    # all of the supported platforms: 8192 (on NT/2K/XP).
7044    lt_cv_sys_max_cmd_len=8192;
7045    ;;
7046
7047  amigaos*)
7048    # On AmigaOS with pdksh, this test takes hours, literally.
7049    # So we just punt and use a minimum line length of 8192.
7050    lt_cv_sys_max_cmd_len=8192;
7051    ;;
7052
7053  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7054    # This has been around since 386BSD, at least.  Likely further.
7055    if test -x /sbin/sysctl; then
7056      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7057    elif test -x /usr/sbin/sysctl; then
7058      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7059    else
7060      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7061    fi
7062    # And add a safety zone
7063    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7064    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7065    ;;
7066
7067  interix*)
7068    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7069    lt_cv_sys_max_cmd_len=196608
7070    ;;
7071
7072  osf*)
7073    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7074    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7075    # nice to cause kernel panics so lets avoid the loop below.
7076    # First set a reasonable default.
7077    lt_cv_sys_max_cmd_len=16384
7078    #
7079    if test -x /sbin/sysconfig; then
7080      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7081        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7082      esac
7083    fi
7084    ;;
7085  sco3.2v5*)
7086    lt_cv_sys_max_cmd_len=102400
7087    ;;
7088  sysv5* | sco5v6* | sysv4.2uw2*)
7089    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7090    if test -n "$kargmax"; then
7091      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7092    else
7093      lt_cv_sys_max_cmd_len=32768
7094    fi
7095    ;;
7096  *)
7097    # If test is not a shell built-in, we'll probably end up computing a
7098    # maximum length that is only half of the actual maximum length, but
7099    # we can't tell.
7100    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7101    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7102               = "XX$teststring") >/dev/null 2>&1 &&
7103            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7104            lt_cv_sys_max_cmd_len=$new_result &&
7105            test $i != 17 # 1/2 MB should be enough
7106    do
7107      i=`expr $i + 1`
7108      teststring=$teststring$teststring
7109    done
7110    teststring=
7111    # Add a significant safety factor because C++ compilers can tack on massive
7112    # amounts of additional arguments before passing them to the linker.
7113    # It appears as though 1/2 is a usable value.
7114    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7115    ;;
7116  esac
7117
7118fi
7119
7120if test -n $lt_cv_sys_max_cmd_len ; then
7121  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7122echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7123else
7124  echo "$as_me:$LINENO: result: none" >&5
7125echo "${ECHO_T}none" >&6
7126fi
7127
7128
7129
7130
7131# Check for command to grab the raw symbol name followed by C symbol from nm.
7132echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7133echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7134if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7135  echo $ECHO_N "(cached) $ECHO_C" >&6
7136else
7137
7138# These are sane defaults that work on at least a few old systems.
7139# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7140
7141# Character class describing NM global symbol codes.
7142symcode='[BCDEGRST]'
7143
7144# Regexp to match symbols that can be accessed directly from C.
7145sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7146
7147# Transform an extracted symbol line into a proper C declaration
7148lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7149
7150# Transform an extracted symbol line into symbol name and symbol address
7151lt_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'"
7152
7153# Define system-specific variables.
7154case $host_os in
7155aix*)
7156  symcode='[BCDT]'
7157  ;;
7158cygwin* | mingw* | pw32*)
7159  symcode='[ABCDGISTW]'
7160  ;;
7161hpux*) # Its linker distinguishes data from code symbols
7162  if test "$host_cpu" = ia64; then
7163    symcode='[ABCDEGRST]'
7164  fi
7165  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7166  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'"
7167  ;;
7168linux*)
7169  if test "$host_cpu" = ia64; then
7170    symcode='[ABCDGIRSTW]'
7171    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7172    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'"
7173  fi
7174  ;;
7175irix* | nonstopux*)
7176  symcode='[BCDEGRST]'
7177  ;;
7178osf*)
7179  symcode='[BCDEGQRST]'
7180  ;;
7181solaris*)
7182  symcode='[BDRT]'
7183  ;;
7184sco3.2v5*)
7185  symcode='[DT]'
7186  ;;
7187sysv4.2uw2*)
7188  symcode='[DT]'
7189  ;;
7190sysv5* | sco5v6* | unixware* | OpenUNIX*)
7191  symcode='[ABDT]'
7192  ;;
7193sysv4)
7194  symcode='[DFNSTU]'
7195  ;;
7196esac
7197
7198# Handle CRLF in mingw tool chain
7199opt_cr=
7200case $build_os in
7201mingw*)
7202  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7203  ;;
7204esac
7205
7206# If we're using GNU nm, then use its standard symbol codes.
7207case `$NM -V 2>&1` in
7208*GNU* | *'with BFD'*)
7209  symcode='[ABCDGIRSTW]' ;;
7210esac
7211
7212# Try without a prefix undercore, then with it.
7213for ac_symprfx in "" "_"; do
7214
7215  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7216  symxfrm="\\1 $ac_symprfx\\2 \\2"
7217
7218  # Write the raw and C identifiers.
7219  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7220
7221  # Check to see that the pipe works correctly.
7222  pipe_works=no
7223
7224  rm -f conftest*
7225  cat > conftest.$ac_ext <<EOF
7226#ifdef __cplusplus
7227extern "C" {
7228#endif
7229char nm_test_var;
7230void nm_test_func(){}
7231#ifdef __cplusplus
7232}
7233#endif
7234int main(){nm_test_var='a';nm_test_func();return(0);}
7235EOF
7236
7237  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238  (eval $ac_compile) 2>&5
7239  ac_status=$?
7240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241  (exit $ac_status); }; then
7242    # Now try to grab the symbols.
7243    nlist=conftest.nm
7244    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7245  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7246  ac_status=$?
7247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248  (exit $ac_status); } && test -s "$nlist"; then
7249      # Try sorting and uniquifying the output.
7250      if sort "$nlist" | uniq > "$nlist"T; then
7251        mv -f "$nlist"T "$nlist"
7252      else
7253        rm -f "$nlist"T
7254      fi
7255
7256      # Make sure that we snagged all the symbols we need.
7257      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7258        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7259          cat <<EOF > conftest.$ac_ext
7260#ifdef __cplusplus
7261extern "C" {
7262#endif
7263
7264EOF
7265          # Now generate the symbol file.
7266          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7267
7268          cat <<EOF >> conftest.$ac_ext
7269#if defined (__STDC__) && __STDC__
7270# define lt_ptr_t void *
7271#else
7272# define lt_ptr_t char *
7273# define const
7274#endif
7275
7276/* The mapping between symbol names and symbols. */
7277const struct {
7278  const char *name;
7279  lt_ptr_t address;
7280}
7281lt_preloaded_symbols[] =
7282{
7283EOF
7284          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7285          cat <<\EOF >> conftest.$ac_ext
7286  {0, (lt_ptr_t) 0}
7287};
7288
7289#ifdef __cplusplus
7290}
7291#endif
7292EOF
7293          # Now try linking the two files.
7294          mv conftest.$ac_objext conftstm.$ac_objext
7295          lt_save_LIBS="$LIBS"
7296          lt_save_CFLAGS="$CFLAGS"
7297          LIBS="conftstm.$ac_objext"
7298          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7299          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7300  (eval $ac_link) 2>&5
7301  ac_status=$?
7302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7304            pipe_works=yes
7305          fi
7306          LIBS="$lt_save_LIBS"
7307          CFLAGS="$lt_save_CFLAGS"
7308        else
7309          echo "cannot find nm_test_func in $nlist" >&5
7310        fi
7311      else
7312        echo "cannot find nm_test_var in $nlist" >&5
7313      fi
7314    else
7315      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7316    fi
7317  else
7318    echo "$progname: failed program was:" >&5
7319    cat conftest.$ac_ext >&5
7320  fi
7321  rm -f conftest* conftst*
7322
7323  # Do not use the global_symbol_pipe unless it works.
7324  if test "$pipe_works" = yes; then
7325    break
7326  else
7327    lt_cv_sys_global_symbol_pipe=
7328  fi
7329done
7330
7331fi
7332
7333if test -z "$lt_cv_sys_global_symbol_pipe"; then
7334  lt_cv_sys_global_symbol_to_cdecl=
7335fi
7336if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7337  echo "$as_me:$LINENO: result: failed" >&5
7338echo "${ECHO_T}failed" >&6
7339else
7340  echo "$as_me:$LINENO: result: ok" >&5
7341echo "${ECHO_T}ok" >&6
7342fi
7343
7344echo "$as_me:$LINENO: checking for objdir" >&5
7345echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7346if test "${lt_cv_objdir+set}" = set; then
7347  echo $ECHO_N "(cached) $ECHO_C" >&6
7348else
7349  rm -f .libs 2>/dev/null
7350mkdir .libs 2>/dev/null
7351if test -d .libs; then
7352  lt_cv_objdir=.libs
7353else
7354  # MS-DOS does not allow filenames that begin with a dot.
7355  lt_cv_objdir=_libs
7356fi
7357rmdir .libs 2>/dev/null
7358fi
7359echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7360echo "${ECHO_T}$lt_cv_objdir" >&6
7361objdir=$lt_cv_objdir
7362
7363
7364
7365
7366
7367case $host_os in
7368aix3*)
7369  # AIX sometimes has problems with the GCC collect2 program.  For some
7370  # reason, if we set the COLLECT_NAMES environment variable, the problems
7371  # vanish in a puff of smoke.
7372  if test "X${COLLECT_NAMES+set}" != Xset; then
7373    COLLECT_NAMES=
7374    export COLLECT_NAMES
7375  fi
7376  ;;
7377esac
7378
7379# Sed substitution that helps us do robust quoting.  It backslashifies
7380# metacharacters that are still active within double-quoted strings.
7381Xsed='sed -e 1s/^X//'
7382sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7383
7384# Same as above, but do not quote variable references.
7385double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7386
7387# Sed substitution to delay expansion of an escaped shell variable in a
7388# double_quote_subst'ed string.
7389delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7390
7391# Sed substitution to avoid accidental globbing in evaled expressions
7392no_glob_subst='s/\*/\\\*/g'
7393
7394# Constants:
7395rm="rm -f"
7396
7397# Global variables:
7398default_ofile=libtool
7399can_build_shared=yes
7400
7401# All known linkers require a `.a' archive for static linking (except MSVC,
7402# which needs '.lib').
7403libext=a
7404ltmain="$ac_aux_dir/ltmain.sh"
7405ofile="$default_ofile"
7406with_gnu_ld="$lt_cv_prog_gnu_ld"
7407
7408if test -n "$ac_tool_prefix"; then
7409  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7410set dummy ${ac_tool_prefix}ar; ac_word=$2
7411echo "$as_me:$LINENO: checking for $ac_word" >&5
7412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7413if test "${ac_cv_prog_AR+set}" = set; then
7414  echo $ECHO_N "(cached) $ECHO_C" >&6
7415else
7416  if test -n "$AR"; then
7417  ac_cv_prog_AR="$AR" # Let the user override the test.
7418else
7419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420for as_dir in $PATH
7421do
7422  IFS=$as_save_IFS
7423  test -z "$as_dir" && as_dir=.
7424  for ac_exec_ext in '' $ac_executable_extensions; do
7425  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426    ac_cv_prog_AR="${ac_tool_prefix}ar"
7427    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428    break 2
7429  fi
7430done
7431done
7432
7433fi
7434fi
7435AR=$ac_cv_prog_AR
7436if test -n "$AR"; then
7437  echo "$as_me:$LINENO: result: $AR" >&5
7438echo "${ECHO_T}$AR" >&6
7439else
7440  echo "$as_me:$LINENO: result: no" >&5
7441echo "${ECHO_T}no" >&6
7442fi
7443
7444fi
7445if test -z "$ac_cv_prog_AR"; then
7446  ac_ct_AR=$AR
7447  # Extract the first word of "ar", so it can be a program name with args.
7448set dummy ar; ac_word=$2
7449echo "$as_me:$LINENO: checking for $ac_word" >&5
7450echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7451if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7452  echo $ECHO_N "(cached) $ECHO_C" >&6
7453else
7454  if test -n "$ac_ct_AR"; then
7455  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7456else
7457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458for as_dir in $PATH
7459do
7460  IFS=$as_save_IFS
7461  test -z "$as_dir" && as_dir=.
7462  for ac_exec_ext in '' $ac_executable_extensions; do
7463  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7464    ac_cv_prog_ac_ct_AR="ar"
7465    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7466    break 2
7467  fi
7468done
7469done
7470
7471  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7472fi
7473fi
7474ac_ct_AR=$ac_cv_prog_ac_ct_AR
7475if test -n "$ac_ct_AR"; then
7476  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7477echo "${ECHO_T}$ac_ct_AR" >&6
7478else
7479  echo "$as_me:$LINENO: result: no" >&5
7480echo "${ECHO_T}no" >&6
7481fi
7482
7483  AR=$ac_ct_AR
7484else
7485  AR="$ac_cv_prog_AR"
7486fi
7487
7488if test -n "$ac_tool_prefix"; then
7489  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7490set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7491echo "$as_me:$LINENO: checking for $ac_word" >&5
7492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7493if test "${ac_cv_prog_RANLIB+set}" = set; then
7494  echo $ECHO_N "(cached) $ECHO_C" >&6
7495else
7496  if test -n "$RANLIB"; then
7497  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7498else
7499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7500for as_dir in $PATH
7501do
7502  IFS=$as_save_IFS
7503  test -z "$as_dir" && as_dir=.
7504  for ac_exec_ext in '' $ac_executable_extensions; do
7505  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7506    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7507    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508    break 2
7509  fi
7510done
7511done
7512
7513fi
7514fi
7515RANLIB=$ac_cv_prog_RANLIB
7516if test -n "$RANLIB"; then
7517  echo "$as_me:$LINENO: result: $RANLIB" >&5
7518echo "${ECHO_T}$RANLIB" >&6
7519else
7520  echo "$as_me:$LINENO: result: no" >&5
7521echo "${ECHO_T}no" >&6
7522fi
7523
7524fi
7525if test -z "$ac_cv_prog_RANLIB"; then
7526  ac_ct_RANLIB=$RANLIB
7527  # Extract the first word of "ranlib", so it can be a program name with args.
7528set dummy ranlib; ac_word=$2
7529echo "$as_me:$LINENO: checking for $ac_word" >&5
7530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7531if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7532  echo $ECHO_N "(cached) $ECHO_C" >&6
7533else
7534  if test -n "$ac_ct_RANLIB"; then
7535  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7536else
7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540  IFS=$as_save_IFS
7541  test -z "$as_dir" && as_dir=.
7542  for ac_exec_ext in '' $ac_executable_extensions; do
7543  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544    ac_cv_prog_ac_ct_RANLIB="ranlib"
7545    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7546    break 2
7547  fi
7548done
7549done
7550
7551  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7552fi
7553fi
7554ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7555if test -n "$ac_ct_RANLIB"; then
7556  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7557echo "${ECHO_T}$ac_ct_RANLIB" >&6
7558else
7559  echo "$as_me:$LINENO: result: no" >&5
7560echo "${ECHO_T}no" >&6
7561fi
7562
7563  RANLIB=$ac_ct_RANLIB
7564else
7565  RANLIB="$ac_cv_prog_RANLIB"
7566fi
7567
7568if test -n "$ac_tool_prefix"; then
7569  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7570set dummy ${ac_tool_prefix}strip; ac_word=$2
7571echo "$as_me:$LINENO: checking for $ac_word" >&5
7572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7573if test "${ac_cv_prog_STRIP+set}" = set; then
7574  echo $ECHO_N "(cached) $ECHO_C" >&6
7575else
7576  if test -n "$STRIP"; then
7577  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7578else
7579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580for as_dir in $PATH
7581do
7582  IFS=$as_save_IFS
7583  test -z "$as_dir" && as_dir=.
7584  for ac_exec_ext in '' $ac_executable_extensions; do
7585  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7586    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7587    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7588    break 2
7589  fi
7590done
7591done
7592
7593fi
7594fi
7595STRIP=$ac_cv_prog_STRIP
7596if test -n "$STRIP"; then
7597  echo "$as_me:$LINENO: result: $STRIP" >&5
7598echo "${ECHO_T}$STRIP" >&6
7599else
7600  echo "$as_me:$LINENO: result: no" >&5
7601echo "${ECHO_T}no" >&6
7602fi
7603
7604fi
7605if test -z "$ac_cv_prog_STRIP"; then
7606  ac_ct_STRIP=$STRIP
7607  # Extract the first word of "strip", so it can be a program name with args.
7608set dummy strip; ac_word=$2
7609echo "$as_me:$LINENO: checking for $ac_word" >&5
7610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7611if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7612  echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614  if test -n "$ac_ct_STRIP"; then
7615  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7616else
7617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618for as_dir in $PATH
7619do
7620  IFS=$as_save_IFS
7621  test -z "$as_dir" && as_dir=.
7622  for ac_exec_ext in '' $ac_executable_extensions; do
7623  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7624    ac_cv_prog_ac_ct_STRIP="strip"
7625    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626    break 2
7627  fi
7628done
7629done
7630
7631  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7632fi
7633fi
7634ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7635if test -n "$ac_ct_STRIP"; then
7636  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7637echo "${ECHO_T}$ac_ct_STRIP" >&6
7638else
7639  echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6
7641fi
7642
7643  STRIP=$ac_ct_STRIP
7644else
7645  STRIP="$ac_cv_prog_STRIP"
7646fi
7647
7648
7649old_CC="$CC"
7650old_CFLAGS="$CFLAGS"
7651
7652# Set sane defaults for various variables
7653test -z "$AR" && AR=ar
7654test -z "$AR_FLAGS" && AR_FLAGS=cru
7655test -z "$AS" && AS=as
7656test -z "$CC" && CC=cc
7657test -z "$LTCC" && LTCC=$CC
7658test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7659test -z "$DLLTOOL" && DLLTOOL=dlltool
7660test -z "$LD" && LD=ld
7661test -z "$LN_S" && LN_S="ln -s"
7662test -z "$MAGIC_CMD" && MAGIC_CMD=file
7663test -z "$NM" && NM=nm
7664test -z "$SED" && SED=sed
7665test -z "$OBJDUMP" && OBJDUMP=objdump
7666test -z "$RANLIB" && RANLIB=:
7667test -z "$STRIP" && STRIP=:
7668test -z "$ac_objext" && ac_objext=o
7669
7670# Determine commands to create old-style static archives.
7671old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7672old_postinstall_cmds='chmod 644 $oldlib'
7673old_postuninstall_cmds=
7674
7675if test -n "$RANLIB"; then
7676  case $host_os in
7677  openbsd*)
7678    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7679    ;;
7680  *)
7681    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7682    ;;
7683  esac
7684  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7685fi
7686
7687for cc_temp in $compiler""; do
7688  case $cc_temp in
7689    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7690    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7691    \-*) ;;
7692    *) break;;
7693  esac
7694done
7695cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7696
7697
7698# Only perform the check for file, if the check method requires it
7699case $deplibs_check_method in
7700file_magic*)
7701  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7702    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7703echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7704if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7705  echo $ECHO_N "(cached) $ECHO_C" >&6
7706else
7707  case $MAGIC_CMD in
7708[\\/*] |  ?:[\\/]*)
7709  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7710  ;;
7711*)
7712  lt_save_MAGIC_CMD="$MAGIC_CMD"
7713  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7714  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7715  for ac_dir in $ac_dummy; do
7716    IFS="$lt_save_ifs"
7717    test -z "$ac_dir" && ac_dir=.
7718    if test -f $ac_dir/${ac_tool_prefix}file; then
7719      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7720      if test -n "$file_magic_test_file"; then
7721        case $deplibs_check_method in
7722        "file_magic "*)
7723          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7724          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7725          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7726            $EGREP "$file_magic_regex" > /dev/null; then
7727            :
7728          else
7729            cat <<EOF 1>&2
7730
7731*** Warning: the command libtool uses to detect shared libraries,
7732*** $file_magic_cmd, produces output that libtool cannot recognize.
7733*** The result is that libtool may fail to recognize shared libraries
7734*** as such.  This will affect the creation of libtool libraries that
7735*** depend on shared libraries, but programs linked with such libtool
7736*** libraries will work regardless of this problem.  Nevertheless, you
7737*** may want to report the problem to your system manager and/or to
7738*** bug-libtool@gnu.org
7739
7740EOF
7741          fi ;;
7742        esac
7743      fi
7744      break
7745    fi
7746  done
7747  IFS="$lt_save_ifs"
7748  MAGIC_CMD="$lt_save_MAGIC_CMD"
7749  ;;
7750esac
7751fi
7752
7753MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7754if test -n "$MAGIC_CMD"; then
7755  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7756echo "${ECHO_T}$MAGIC_CMD" >&6
7757else
7758  echo "$as_me:$LINENO: result: no" >&5
7759echo "${ECHO_T}no" >&6
7760fi
7761
7762if test -z "$lt_cv_path_MAGIC_CMD"; then
7763  if test -n "$ac_tool_prefix"; then
7764    echo "$as_me:$LINENO: checking for file" >&5
7765echo $ECHO_N "checking for file... $ECHO_C" >&6
7766if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7767  echo $ECHO_N "(cached) $ECHO_C" >&6
7768else
7769  case $MAGIC_CMD in
7770[\\/*] |  ?:[\\/]*)
7771  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7772  ;;
7773*)
7774  lt_save_MAGIC_CMD="$MAGIC_CMD"
7775  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7776  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7777  for ac_dir in $ac_dummy; do
7778    IFS="$lt_save_ifs"
7779    test -z "$ac_dir" && ac_dir=.
7780    if test -f $ac_dir/file; then
7781      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7782      if test -n "$file_magic_test_file"; then
7783        case $deplibs_check_method in
7784        "file_magic "*)
7785          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7786          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7787          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7788            $EGREP "$file_magic_regex" > /dev/null; then
7789            :
7790          else
7791            cat <<EOF 1>&2
7792
7793*** Warning: the command libtool uses to detect shared libraries,
7794*** $file_magic_cmd, produces output that libtool cannot recognize.
7795*** The result is that libtool may fail to recognize shared libraries
7796*** as such.  This will affect the creation of libtool libraries that
7797*** depend on shared libraries, but programs linked with such libtool
7798*** libraries will work regardless of this problem.  Nevertheless, you
7799*** may want to report the problem to your system manager and/or to
7800*** bug-libtool@gnu.org
7801
7802EOF
7803          fi ;;
7804        esac
7805      fi
7806      break
7807    fi
7808  done
7809  IFS="$lt_save_ifs"
7810  MAGIC_CMD="$lt_save_MAGIC_CMD"
7811  ;;
7812esac
7813fi
7814
7815MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7816if test -n "$MAGIC_CMD"; then
7817  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7818echo "${ECHO_T}$MAGIC_CMD" >&6
7819else
7820  echo "$as_me:$LINENO: result: no" >&5
7821echo "${ECHO_T}no" >&6
7822fi
7823
7824  else
7825    MAGIC_CMD=:
7826  fi
7827fi
7828
7829  fi
7830  ;;
7831esac
7832
7833enable_dlopen=no
7834enable_win32_dll=no
7835
7836# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7837if test "${enable_libtool_lock+set}" = set; then
7838  enableval="$enable_libtool_lock"
7839
7840fi;
7841test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7842
7843
7844# Check whether --with-pic or --without-pic was given.
7845if test "${with_pic+set}" = set; then
7846  withval="$with_pic"
7847  pic_mode="$withval"
7848else
7849  pic_mode=default
7850fi;
7851test -z "$pic_mode" && pic_mode=default
7852
7853# Use C for the default configuration in the libtool script
7854tagname=
7855lt_save_CC="$CC"
7856ac_ext=c
7857ac_cpp='$CPP $CPPFLAGS'
7858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860ac_compiler_gnu=$ac_cv_c_compiler_gnu
7861
7862
7863# Source file extension for C test sources.
7864ac_ext=c
7865
7866# Object file extension for compiled C test sources.
7867objext=o
7868objext=$objext
7869
7870# Code to be used in simple compile tests
7871lt_simple_compile_test_code="int some_variable = 0;\n"
7872
7873# Code to be used in simple link tests
7874lt_simple_link_test_code='int main(){return(0);}\n'
7875
7876
7877# If no C compiler was specified, use CC.
7878LTCC=${LTCC-"$CC"}
7879
7880# If no C compiler flags were specified, use CFLAGS.
7881LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7882
7883# Allow CC to be a program name with arguments.
7884compiler=$CC
7885
7886
7887# save warnings/boilerplate of simple test code
7888ac_outfile=conftest.$ac_objext
7889printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7890eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7891_lt_compiler_boilerplate=`cat conftest.err`
7892$rm conftest*
7893
7894ac_outfile=conftest.$ac_objext
7895printf "$lt_simple_link_test_code" >conftest.$ac_ext
7896eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7897_lt_linker_boilerplate=`cat conftest.err`
7898$rm conftest*
7899
7900
7901## CAVEAT EMPTOR:
7902## There is no encapsulation within the following macros, do not change
7903## the running order or otherwise move them around unless you know exactly
7904## what you are doing...
7905
7906lt_prog_compiler_no_builtin_flag=
7907
7908if test "$GCC" = yes; then
7909  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7910
7911
7912echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7913echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7914if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7915  echo $ECHO_N "(cached) $ECHO_C" >&6
7916else
7917  lt_cv_prog_compiler_rtti_exceptions=no
7918  ac_outfile=conftest.$ac_objext
7919   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7920   lt_compiler_flag="-fno-rtti -fno-exceptions"
7921   # Insert the option either (1) after the last *FLAGS variable, or
7922   # (2) before a word containing "conftest.", or (3) at the end.
7923   # Note that $ac_compile itself does not contain backslashes and begins
7924   # with a dollar sign (not a hyphen), so the echo should work correctly.
7925   # The option is referenced via a variable to avoid confusing sed.
7926   lt_compile=`echo "$ac_compile" | $SED \
7927   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7928   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7929   -e 's:$: $lt_compiler_flag:'`
7930   (eval echo "\"\$as_me:7930: $lt_compile\"" >&5)
7931   (eval "$lt_compile" 2>conftest.err)
7932   ac_status=$?
7933   cat conftest.err >&5
7934   echo "$as_me:7934: \$? = $ac_status" >&5
7935   if (exit $ac_status) && test -s "$ac_outfile"; then
7936     # The compiler can only warn and ignore the option if not recognized
7937     # So say no if there are warnings other than the usual output.
7938     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7939     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7940     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7941       lt_cv_prog_compiler_rtti_exceptions=yes
7942     fi
7943   fi
7944   $rm conftest*
7945
7946fi
7947echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7948echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7949
7950if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7951    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7952else
7953    :
7954fi
7955
7956fi
7957
7958lt_prog_compiler_wl=
7959lt_prog_compiler_pic=
7960lt_prog_compiler_static=
7961
7962echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7963echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7964
7965  if test "$GCC" = yes; then
7966    lt_prog_compiler_wl='-Wl,'
7967    lt_prog_compiler_static='-static'
7968
7969    case $host_os in
7970      aix*)
7971      # All AIX code is PIC.
7972      if test "$host_cpu" = ia64; then
7973        # AIX 5 now supports IA64 processor
7974        lt_prog_compiler_static='-Bstatic'
7975      fi
7976      ;;
7977
7978    amigaos*)
7979      # FIXME: we need at least 68020 code to build shared libraries, but
7980      # adding the `-m68020' flag to GCC prevents building anything better,
7981      # like `-m68040'.
7982      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7983      ;;
7984
7985    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7986      # PIC is the default for these OSes.
7987      ;;
7988
7989    mingw* | pw32* | os2*)
7990      # This hack is so that the source file can tell whether it is being
7991      # built for inclusion in a dll (and should export symbols for example).
7992      lt_prog_compiler_pic='-DDLL_EXPORT'
7993      ;;
7994
7995    darwin* | rhapsody*)
7996      # PIC is the default on this platform
7997      # Common symbols not allowed in MH_DYLIB files
7998      lt_prog_compiler_pic='-fno-common'
7999      ;;
8000
8001    interix3*)
8002      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8003      # Instead, we relocate shared libraries at runtime.
8004      ;;
8005
8006    msdosdjgpp*)
8007      # Just because we use GCC doesn't mean we suddenly get shared libraries
8008      # on systems that don't support them.
8009      lt_prog_compiler_can_build_shared=no
8010      enable_shared=no
8011      ;;
8012
8013    sysv4*MP*)
8014      if test -d /usr/nec; then
8015        lt_prog_compiler_pic=-Kconform_pic
8016      fi
8017      ;;
8018
8019    hpux*)
8020      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8021      # not for PA HP-UX.
8022      case $host_cpu in
8023      hppa*64*|ia64*)
8024        # +Z the default
8025        ;;
8026      *)
8027        lt_prog_compiler_pic='-fPIC'
8028        ;;
8029      esac
8030      ;;
8031
8032    *)
8033      lt_prog_compiler_pic='-fPIC'
8034      ;;
8035    esac
8036  else
8037    # PORTME Check for flag to pass linker flags through the system compiler.
8038    case $host_os in
8039    aix*)
8040      lt_prog_compiler_wl='-Wl,'
8041      if test "$host_cpu" = ia64; then
8042        # AIX 5 now supports IA64 processor
8043        lt_prog_compiler_static='-Bstatic'
8044      else
8045        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8046      fi
8047      ;;
8048      darwin*)
8049        # PIC is the default on this platform
8050        # Common symbols not allowed in MH_DYLIB files
8051       case $cc_basename in
8052         xlc*)
8053         lt_prog_compiler_pic='-qnocommon'
8054         lt_prog_compiler_wl='-Wl,'
8055         ;;
8056       esac
8057       ;;
8058
8059    mingw* | pw32* | os2*)
8060      # This hack is so that the source file can tell whether it is being
8061      # built for inclusion in a dll (and should export symbols for example).
8062      lt_prog_compiler_pic='-DDLL_EXPORT'
8063      ;;
8064
8065    hpux9* | hpux10* | hpux11*)
8066      lt_prog_compiler_wl='-Wl,'
8067      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8068      # not for PA HP-UX.
8069      case $host_cpu in
8070      hppa*64*|ia64*)
8071        # +Z the default
8072        ;;
8073      *)
8074        lt_prog_compiler_pic='+Z'
8075        ;;
8076      esac
8077      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8078      lt_prog_compiler_static='${wl}-a ${wl}archive'
8079      ;;
8080
8081    irix5* | irix6* | nonstopux*)
8082      lt_prog_compiler_wl='-Wl,'
8083      # PIC (with -KPIC) is the default.
8084      lt_prog_compiler_static='-non_shared'
8085      ;;
8086
8087    newsos6)
8088      lt_prog_compiler_pic='-KPIC'
8089      lt_prog_compiler_static='-Bstatic'
8090      ;;
8091
8092    linux*)
8093      case $cc_basename in
8094      icc* | ecc*)
8095        lt_prog_compiler_wl='-Wl,'
8096        lt_prog_compiler_pic='-KPIC'
8097        lt_prog_compiler_static='-static'
8098        ;;
8099      pgcc* | pgf77* | pgf90* | pgf95*)
8100        # Portland Group compilers (*not* the Pentium gcc compiler,
8101        # which looks to be a dead project)
8102        lt_prog_compiler_wl='-Wl,'
8103        lt_prog_compiler_pic='-fpic'
8104        lt_prog_compiler_static='-Bstatic'
8105        ;;
8106      ccc*)
8107        lt_prog_compiler_wl='-Wl,'
8108        # All Alpha code is PIC.
8109        lt_prog_compiler_static='-non_shared'
8110        ;;
8111      esac
8112      ;;
8113
8114    osf3* | osf4* | osf5*)
8115      lt_prog_compiler_wl='-Wl,'
8116      # All OSF/1 code is PIC.
8117      lt_prog_compiler_static='-non_shared'
8118      ;;
8119
8120    solaris*)
8121      lt_prog_compiler_pic='-KPIC'
8122      lt_prog_compiler_static='-Bstatic'
8123      case $cc_basename in
8124      f77* | f90* | f95*)
8125        lt_prog_compiler_wl='-Qoption ld ';;
8126      *)
8127        lt_prog_compiler_wl='-Wl,';;
8128      esac
8129      ;;
8130
8131    sunos4*)
8132      lt_prog_compiler_wl='-Qoption ld '
8133      lt_prog_compiler_pic='-PIC'
8134      lt_prog_compiler_static='-Bstatic'
8135      ;;
8136
8137    sysv4 | sysv4.2uw2* | sysv4.3*)
8138      lt_prog_compiler_wl='-Wl,'
8139      lt_prog_compiler_pic='-KPIC'
8140      lt_prog_compiler_static='-Bstatic'
8141      ;;
8142
8143    sysv4*MP*)
8144      if test -d /usr/nec ;then
8145        lt_prog_compiler_pic='-Kconform_pic'
8146        lt_prog_compiler_static='-Bstatic'
8147      fi
8148      ;;
8149
8150    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8151      lt_prog_compiler_wl='-Wl,'
8152      lt_prog_compiler_pic='-KPIC'
8153      lt_prog_compiler_static='-Bstatic'
8154      ;;
8155
8156    unicos*)
8157      lt_prog_compiler_wl='-Wl,'
8158      lt_prog_compiler_can_build_shared=no
8159      ;;
8160
8161    uts4*)
8162      lt_prog_compiler_pic='-pic'
8163      lt_prog_compiler_static='-Bstatic'
8164      ;;
8165
8166    *)
8167      lt_prog_compiler_can_build_shared=no
8168      ;;
8169    esac
8170  fi
8171
8172echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8173echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8174
8175#
8176# Check to make sure the PIC flag actually works.
8177#
8178if test -n "$lt_prog_compiler_pic"; then
8179
8180echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8181echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8182if test "${lt_prog_compiler_pic_works+set}" = set; then
8183  echo $ECHO_N "(cached) $ECHO_C" >&6
8184else
8185  lt_prog_compiler_pic_works=no
8186  ac_outfile=conftest.$ac_objext
8187   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8188   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8189   # Insert the option either (1) after the last *FLAGS variable, or
8190   # (2) before a word containing "conftest.", or (3) at the end.
8191   # Note that $ac_compile itself does not contain backslashes and begins
8192   # with a dollar sign (not a hyphen), so the echo should work correctly.
8193   # The option is referenced via a variable to avoid confusing sed.
8194   lt_compile=`echo "$ac_compile" | $SED \
8195   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8196   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8197   -e 's:$: $lt_compiler_flag:'`
8198   (eval echo "\"\$as_me:8198: $lt_compile\"" >&5)
8199   (eval "$lt_compile" 2>conftest.err)
8200   ac_status=$?
8201   cat conftest.err >&5
8202   echo "$as_me:8202: \$? = $ac_status" >&5
8203   if (exit $ac_status) && test -s "$ac_outfile"; then
8204     # The compiler can only warn and ignore the option if not recognized
8205     # So say no if there are warnings other than the usual output.
8206     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8207     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8208     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8209       lt_prog_compiler_pic_works=yes
8210     fi
8211   fi
8212   $rm conftest*
8213
8214fi
8215echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8216echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8217
8218if test x"$lt_prog_compiler_pic_works" = xyes; then
8219    case $lt_prog_compiler_pic in
8220     "" | " "*) ;;
8221     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8222     esac
8223else
8224    lt_prog_compiler_pic=
8225     lt_prog_compiler_can_build_shared=no
8226fi
8227
8228fi
8229case $host_os in
8230  # For platforms which do not support PIC, -DPIC is meaningless:
8231  *djgpp*)
8232    lt_prog_compiler_pic=
8233    ;;
8234  *)
8235    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8236    ;;
8237esac
8238
8239#
8240# Check to make sure the static flag actually works.
8241#
8242wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8243echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8244echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8245if test "${lt_prog_compiler_static_works+set}" = set; then
8246  echo $ECHO_N "(cached) $ECHO_C" >&6
8247else
8248  lt_prog_compiler_static_works=no
8249   save_LDFLAGS="$LDFLAGS"
8250   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8251   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8252   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8253     # The linker can only warn and ignore the option if not recognized
8254     # So say no if there are warnings
8255     if test -s conftest.err; then
8256       # Append any errors to the config.log.
8257       cat conftest.err 1>&5
8258       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8259       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8260       if diff conftest.exp conftest.er2 >/dev/null; then
8261         lt_prog_compiler_static_works=yes
8262       fi
8263     else
8264       lt_prog_compiler_static_works=yes
8265     fi
8266   fi
8267   $rm conftest*
8268   LDFLAGS="$save_LDFLAGS"
8269
8270fi
8271echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8272echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8273
8274if test x"$lt_prog_compiler_static_works" = xyes; then
8275    :
8276else
8277    lt_prog_compiler_static=
8278fi
8279
8280
8281echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8282echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8283if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8284  echo $ECHO_N "(cached) $ECHO_C" >&6
8285else
8286  lt_cv_prog_compiler_c_o=no
8287   $rm -r conftest 2>/dev/null
8288   mkdir conftest
8289   cd conftest
8290   mkdir out
8291   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8292
8293   lt_compiler_flag="-o out/conftest2.$ac_objext"
8294   # Insert the option either (1) after the last *FLAGS variable, or
8295   # (2) before a word containing "conftest.", or (3) at the end.
8296   # Note that $ac_compile itself does not contain backslashes and begins
8297   # with a dollar sign (not a hyphen), so the echo should work correctly.
8298   lt_compile=`echo "$ac_compile" | $SED \
8299   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8300   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8301   -e 's:$: $lt_compiler_flag:'`
8302   (eval echo "\"\$as_me:8302: $lt_compile\"" >&5)
8303   (eval "$lt_compile" 2>out/conftest.err)
8304   ac_status=$?
8305   cat out/conftest.err >&5
8306   echo "$as_me:8306: \$? = $ac_status" >&5
8307   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8308   then
8309     # The compiler can only warn and ignore the option if not recognized
8310     # So say no if there are warnings
8311     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8312     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8313     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8314       lt_cv_prog_compiler_c_o=yes
8315     fi
8316   fi
8317   chmod u+w . 2>&5
8318   $rm conftest*
8319   # SGI C++ compiler will create directory out/ii_files/ for
8320   # template instantiation
8321   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8322   $rm out/* && rmdir out
8323   cd ..
8324   rmdir conftest
8325   $rm conftest*
8326
8327fi
8328echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8329echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8330
8331
8332hard_links="nottested"
8333if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8334  # do not overwrite the value of need_locks provided by the user
8335  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8336echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8337  hard_links=yes
8338  $rm conftest*
8339  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8340  touch conftest.a
8341  ln conftest.a conftest.b 2>&5 || hard_links=no
8342  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8343  echo "$as_me:$LINENO: result: $hard_links" >&5
8344echo "${ECHO_T}$hard_links" >&6
8345  if test "$hard_links" = no; then
8346    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8347echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8348    need_locks=warn
8349  fi
8350else
8351  need_locks=no
8352fi
8353
8354echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8355echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8356
8357  runpath_var=
8358  allow_undefined_flag=
8359  enable_shared_with_static_runtimes=no
8360  archive_cmds=
8361  archive_expsym_cmds=
8362  old_archive_From_new_cmds=
8363  old_archive_from_expsyms_cmds=
8364  export_dynamic_flag_spec=
8365  whole_archive_flag_spec=
8366  thread_safe_flag_spec=
8367  hardcode_libdir_flag_spec=
8368  hardcode_libdir_flag_spec_ld=
8369  hardcode_libdir_separator=
8370  hardcode_direct=no
8371  hardcode_minus_L=no
8372  hardcode_shlibpath_var=unsupported
8373  link_all_deplibs=unknown
8374  hardcode_automatic=no
8375  module_cmds=
8376  module_expsym_cmds=
8377  always_export_symbols=no
8378  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8379  # include_expsyms should be a list of space-separated symbols to be *always*
8380  # included in the symbol list
8381  include_expsyms=
8382  # exclude_expsyms can be an extended regexp of symbols to exclude
8383  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8384  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8385  # as well as any symbol that contains `d'.
8386  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8387  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8388  # platforms (ab)use it in PIC code, but their linkers get confused if
8389  # the symbol is explicitly referenced.  Since portable code cannot
8390  # rely on this symbol name, it's probably fine to never include it in
8391  # preloaded symbol tables.
8392  extract_expsyms_cmds=
8393  # Just being paranoid about ensuring that cc_basename is set.
8394  for cc_temp in $compiler""; do
8395  case $cc_temp in
8396    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8397    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8398    \-*) ;;
8399    *) break;;
8400  esac
8401done
8402cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8403
8404  case $host_os in
8405  cygwin* | mingw* | pw32*)
8406    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8407    # When not using gcc, we currently assume that we are using
8408    # Microsoft Visual C++.
8409    if test "$GCC" != yes; then
8410      with_gnu_ld=no
8411    fi
8412    ;;
8413  interix*)
8414    # we just hope/assume this is gcc and not c89 (= MSVC++)
8415    with_gnu_ld=yes
8416    ;;
8417  openbsd*)
8418    with_gnu_ld=no
8419    ;;
8420  esac
8421
8422  ld_shlibs=yes
8423  if test "$with_gnu_ld" = yes; then
8424    # If archive_cmds runs LD, not CC, wlarc should be empty
8425    wlarc='${wl}'
8426
8427    # Set some defaults for GNU ld with shared library support. These
8428    # are reset later if shared libraries are not supported. Putting them
8429    # here allows them to be overridden if necessary.
8430    runpath_var=LD_RUN_PATH
8431    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8432    export_dynamic_flag_spec='${wl}--export-dynamic'
8433    # ancient GNU ld didn't support --whole-archive et. al.
8434    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8435        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8436      else
8437        whole_archive_flag_spec=
8438    fi
8439    supports_anon_versioning=no
8440    case `$LD -v 2>/dev/null` in
8441      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8442      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8443      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8444      *\ 2.11.*) ;; # other 2.11 versions
8445      *) supports_anon_versioning=yes ;;
8446    esac
8447
8448    # See if GNU ld supports shared libraries.
8449    case $host_os in
8450    aix3* | aix4* | aix5*)
8451      # On AIX/PPC, the GNU linker is very broken
8452      if test "$host_cpu" != ia64; then
8453        ld_shlibs=no
8454        cat <<EOF 1>&2
8455
8456*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8457*** to be unable to reliably create shared libraries on AIX.
8458*** Therefore, libtool is disabling shared libraries support.  If you
8459*** really care for shared libraries, you may want to modify your PATH
8460*** so that a non-GNU linker is found, and then restart.
8461
8462EOF
8463      fi
8464      ;;
8465
8466    amigaos*)
8467      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)'
8468      hardcode_libdir_flag_spec='-L$libdir'
8469      hardcode_minus_L=yes
8470
8471      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8472      # that the semantics of dynamic libraries on AmigaOS, at least up
8473      # to version 4, is to share data among multiple programs linked
8474      # with the same dynamic library.  Since this doesn't match the
8475      # behavior of shared libraries on other platforms, we can't use
8476      # them.
8477      ld_shlibs=no
8478      ;;
8479
8480    beos*)
8481      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8482        allow_undefined_flag=unsupported
8483        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8484        # support --undefined.  This deserves some investigation.  FIXME
8485        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8486      else
8487        ld_shlibs=no
8488      fi
8489      ;;
8490
8491    cygwin* | mingw* | pw32*)
8492      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8493      # as there is no search path for DLLs.
8494      hardcode_libdir_flag_spec='-L$libdir'
8495      allow_undefined_flag=unsupported
8496      always_export_symbols=no
8497      enable_shared_with_static_runtimes=yes
8498      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8499
8500      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8501        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8502        # If the export-symbols file already is a .def file (1st line
8503        # is EXPORTS), use it as is; otherwise, prepend...
8504        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8505          cp $export_symbols $output_objdir/$soname.def;
8506        else
8507          echo EXPORTS > $output_objdir/$soname.def;
8508          cat $export_symbols >> $output_objdir/$soname.def;
8509        fi~
8510        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8511      else
8512        ld_shlibs=no
8513      fi
8514      ;;
8515
8516    interix3*)
8517      hardcode_direct=no
8518      hardcode_shlibpath_var=no
8519      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8520      export_dynamic_flag_spec='${wl}-E'
8521      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8522      # Instead, shared libraries are loaded at an image base (0x10000000 by
8523      # default) and relocated if they conflict, which is a slow very memory
8524      # consuming and fragmenting process.  To avoid this, we pick a random,
8525      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8526      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8527      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8528      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'
8529      ;;
8530
8531    linux*)
8532      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8533        tmp_addflag=
8534        case $cc_basename,$host_cpu in
8535        pgcc*)                          # Portland Group C compiler
8536          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'
8537          tmp_addflag=' $pic_flag'
8538          ;;
8539        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8540          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'
8541          tmp_addflag=' $pic_flag -Mnomain' ;;
8542        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8543          tmp_addflag=' -i_dynamic' ;;
8544        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8545          tmp_addflag=' -i_dynamic -nofor_main' ;;
8546        ifc* | ifort*)                  # Intel Fortran compiler
8547          tmp_addflag=' -nofor_main' ;;
8548        esac
8549        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8550
8551        if test $supports_anon_versioning = yes; then
8552          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8553  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8554  $echo "local: *; };" >> $output_objdir/$libname.ver~
8555          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8556        fi
8557      else
8558        ld_shlibs=no
8559      fi
8560      ;;
8561
8562    netbsd*)
8563      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8564        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8565        wlarc=
8566      else
8567        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8568        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8569      fi
8570      ;;
8571
8572    solaris*)
8573      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8574        ld_shlibs=no
8575        cat <<EOF 1>&2
8576
8577*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8578*** create shared libraries on Solaris systems.  Therefore, libtool
8579*** is disabling shared libraries support.  We urge you to upgrade GNU
8580*** binutils to release 2.9.1 or newer.  Another option is to modify
8581*** your PATH or compiler configuration so that the native linker is
8582*** used, and then restart.
8583
8584EOF
8585      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8586        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8587        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8588      else
8589        ld_shlibs=no
8590      fi
8591      ;;
8592
8593    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8594      case `$LD -v 2>&1` in
8595        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8596        ld_shlibs=no
8597        cat <<_LT_EOF 1>&2
8598
8599*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8600*** reliably create shared libraries on SCO systems.  Therefore, libtool
8601*** is disabling shared libraries support.  We urge you to upgrade GNU
8602*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8603*** your PATH or compiler configuration so that the native linker is
8604*** used, and then restart.
8605
8606_LT_EOF
8607        ;;
8608        *)
8609          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8610            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8611            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8612            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8613          else
8614            ld_shlibs=no
8615          fi
8616        ;;
8617      esac
8618      ;;
8619
8620    sunos4*)
8621      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8622      wlarc=
8623      hardcode_direct=yes
8624      hardcode_shlibpath_var=no
8625      ;;
8626
8627    *)
8628      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8629        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8630        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8631      else
8632        ld_shlibs=no
8633      fi
8634      ;;
8635    esac
8636
8637    if test "$ld_shlibs" = no; then
8638      runpath_var=
8639      hardcode_libdir_flag_spec=
8640      export_dynamic_flag_spec=
8641      whole_archive_flag_spec=
8642    fi
8643  else
8644    # PORTME fill in a description of your system's linker (not GNU ld)
8645    case $host_os in
8646    aix3*)
8647      allow_undefined_flag=unsupported
8648      always_export_symbols=yes
8649      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'
8650      # Note: this linker hardcodes the directories in LIBPATH if there
8651      # are no directories specified by -L.
8652      hardcode_minus_L=yes
8653      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8654        # Neither direct hardcoding nor static linking is supported with a
8655        # broken collect2.
8656        hardcode_direct=unsupported
8657      fi
8658      ;;
8659
8660    aix4* | aix5*)
8661      if test "$host_cpu" = ia64; then
8662        # On IA64, the linker does run time linking by default, so we don't
8663        # have to do anything special.
8664        aix_use_runtimelinking=no
8665        exp_sym_flag='-Bexport'
8666        no_entry_flag=""
8667      else
8668        # If we're using GNU nm, then we don't want the "-C" option.
8669        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8670        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8671          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'
8672        else
8673          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'
8674        fi
8675        aix_use_runtimelinking=no
8676
8677        # Test if we are trying to use run time linking or normal
8678        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8679        # need to do runtime linking.
8680        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8681          for ld_flag in $LDFLAGS; do
8682          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8683            aix_use_runtimelinking=yes
8684            break
8685          fi
8686          done
8687          ;;
8688        esac
8689
8690        exp_sym_flag='-bexport'
8691        no_entry_flag='-bnoentry'
8692      fi
8693
8694      # When large executables or shared objects are built, AIX ld can
8695      # have problems creating the table of contents.  If linking a library
8696      # or program results in "error TOC overflow" add -mminimal-toc to
8697      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8698      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8699
8700      archive_cmds=''
8701      hardcode_direct=yes
8702      hardcode_libdir_separator=':'
8703      link_all_deplibs=yes
8704
8705      if test "$GCC" = yes; then
8706        case $host_os in aix4.[012]|aix4.[012].*)
8707        # We only want to do this on AIX 4.2 and lower, the check
8708        # below for broken collect2 doesn't work under 4.3+
8709          collect2name=`${CC} -print-prog-name=collect2`
8710          if test -f "$collect2name" && \
8711           strings "$collect2name" | grep resolve_lib_name >/dev/null
8712          then
8713          # We have reworked collect2
8714          hardcode_direct=yes
8715          else
8716          # We have old collect2
8717          hardcode_direct=unsupported
8718          # It fails to find uninstalled libraries when the uninstalled
8719          # path is not listed in the libpath.  Setting hardcode_minus_L
8720          # to unsupported forces relinking
8721          hardcode_minus_L=yes
8722          hardcode_libdir_flag_spec='-L$libdir'
8723          hardcode_libdir_separator=
8724          fi
8725          ;;
8726        esac
8727        shared_flag='-shared'
8728        if test "$aix_use_runtimelinking" = yes; then
8729          shared_flag="$shared_flag "'${wl}-G'
8730        fi
8731      else
8732        # not using gcc
8733        if test "$host_cpu" = ia64; then
8734        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8735        # chokes on -Wl,-G. The following line is correct:
8736          shared_flag='-G'
8737        else
8738          if test "$aix_use_runtimelinking" = yes; then
8739            shared_flag='${wl}-G'
8740          else
8741            shared_flag='${wl}-bM:SRE'
8742          fi
8743        fi
8744      fi
8745
8746      # It seems that -bexpall does not export symbols beginning with
8747      # underscore (_), so it is better to generate a list of symbols to export.
8748      always_export_symbols=yes
8749      if test "$aix_use_runtimelinking" = yes; then
8750        # Warning - without using the other runtime loading flags (-brtl),
8751        # -berok will link without error, but may produce a broken library.
8752        allow_undefined_flag='-berok'
8753       # Determine the default libpath from the value encoded in an empty executable.
8754       cat >conftest.$ac_ext <<_ACEOF
8755/* confdefs.h.  */
8756_ACEOF
8757cat confdefs.h >>conftest.$ac_ext
8758cat >>conftest.$ac_ext <<_ACEOF
8759/* end confdefs.h.  */
8760
8761int
8762main ()
8763{
8764
8765  ;
8766  return 0;
8767}
8768_ACEOF
8769rm -f conftest.$ac_objext conftest$ac_exeext
8770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771  (eval $ac_link) 2>conftest.er1
8772  ac_status=$?
8773  grep -v '^ *+' conftest.er1 >conftest.err
8774  rm -f conftest.er1
8775  cat conftest.err >&5
8776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777  (exit $ac_status); } &&
8778         { ac_try='test -z "$ac_c_werror_flag"
8779                         || test ! -s conftest.err'
8780  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781  (eval $ac_try) 2>&5
8782  ac_status=$?
8783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784  (exit $ac_status); }; } &&
8785         { ac_try='test -s conftest$ac_exeext'
8786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787  (eval $ac_try) 2>&5
8788  ac_status=$?
8789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790  (exit $ac_status); }; }; then
8791
8792aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8793}'`
8794# Check for a 64-bit object if we didn't find anything.
8795if 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; }
8796}'`; fi
8797else
8798  echo "$as_me: failed program was:" >&5
8799sed 's/^/| /' conftest.$ac_ext >&5
8800
8801fi
8802rm -f conftest.err conftest.$ac_objext \
8803      conftest$ac_exeext conftest.$ac_ext
8804if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8805
8806       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8807        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"
8808       else
8809        if test "$host_cpu" = ia64; then
8810          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8811          allow_undefined_flag="-z nodefs"
8812          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"
8813        else
8814         # Determine the default libpath from the value encoded in an empty executable.
8815         cat >conftest.$ac_ext <<_ACEOF
8816/* confdefs.h.  */
8817_ACEOF
8818cat confdefs.h >>conftest.$ac_ext
8819cat >>conftest.$ac_ext <<_ACEOF
8820/* end confdefs.h.  */
8821
8822int
8823main ()
8824{
8825
8826  ;
8827  return 0;
8828}
8829_ACEOF
8830rm -f conftest.$ac_objext conftest$ac_exeext
8831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8832  (eval $ac_link) 2>conftest.er1
8833  ac_status=$?
8834  grep -v '^ *+' conftest.er1 >conftest.err
8835  rm -f conftest.er1
8836  cat conftest.err >&5
8837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838  (exit $ac_status); } &&
8839         { ac_try='test -z "$ac_c_werror_flag"
8840                         || test ! -s conftest.err'
8841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842  (eval $ac_try) 2>&5
8843  ac_status=$?
8844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845  (exit $ac_status); }; } &&
8846         { ac_try='test -s conftest$ac_exeext'
8847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848  (eval $ac_try) 2>&5
8849  ac_status=$?
8850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851  (exit $ac_status); }; }; then
8852
8853aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8854}'`
8855# Check for a 64-bit object if we didn't find anything.
8856if 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; }
8857}'`; fi
8858else
8859  echo "$as_me: failed program was:" >&5
8860sed 's/^/| /' conftest.$ac_ext >&5
8861
8862fi
8863rm -f conftest.err conftest.$ac_objext \
8864      conftest$ac_exeext conftest.$ac_ext
8865if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8866
8867         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8868          # Warning - without using the other run time loading flags,
8869          # -berok will link without error, but may produce a broken library.
8870          no_undefined_flag=' ${wl}-bernotok'
8871          allow_undefined_flag=' ${wl}-berok'
8872          # Exported symbols can be pulled into shared objects from archives
8873          whole_archive_flag_spec='$convenience'
8874          archive_cmds_need_lc=yes
8875          # This is similar to how AIX traditionally builds its shared libraries.
8876          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'
8877        fi
8878      fi
8879      ;;
8880
8881    amigaos*)
8882      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)'
8883      hardcode_libdir_flag_spec='-L$libdir'
8884      hardcode_minus_L=yes
8885      # see comment about different semantics on the GNU ld section
8886      ld_shlibs=no
8887      ;;
8888
8889    bsdi[45]*)
8890      export_dynamic_flag_spec=-rdynamic
8891      ;;
8892
8893    cygwin* | mingw* | pw32*)
8894      # When not using gcc, we currently assume that we are using
8895      # Microsoft Visual C++.
8896      # hardcode_libdir_flag_spec is actually meaningless, as there is
8897      # no search path for DLLs.
8898      hardcode_libdir_flag_spec=' '
8899      allow_undefined_flag=unsupported
8900      # Tell ltmain to make .lib files, not .a files.
8901      libext=lib
8902      # Tell ltmain to make .dll files, not .so files.
8903      shrext_cmds=".dll"
8904      # FIXME: Setting linknames here is a bad hack.
8905      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8906      # The linker will automatically build a .lib file if we build a DLL.
8907      old_archive_From_new_cmds='true'
8908      # FIXME: Should let the user specify the lib program.
8909      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8910      fix_srcfile_path='`cygpath -w "$srcfile"`'
8911      enable_shared_with_static_runtimes=yes
8912      ;;
8913
8914    darwin* | rhapsody*)
8915      case $host_os in
8916        rhapsody* | darwin1.[012])
8917         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8918         ;;
8919       *) # Darwin 1.3 on
8920         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8921           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8922         else
8923           case ${MACOSX_DEPLOYMENT_TARGET} in
8924             10.[012])
8925               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8926               ;;
8927             10.*)
8928               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8929               ;;
8930           esac
8931         fi
8932         ;;
8933      esac
8934      archive_cmds_need_lc=no
8935      hardcode_direct=no
8936      hardcode_automatic=yes
8937      hardcode_shlibpath_var=unsupported
8938      whole_archive_flag_spec=''
8939      link_all_deplibs=yes
8940    if test "$GCC" = yes ; then
8941        output_verbose_link_cmd='echo'
8942        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8943      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8944      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8945      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}'
8946      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}'
8947    else
8948      case $cc_basename in
8949        xlc*)
8950         output_verbose_link_cmd='echo'
8951         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8952         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8953          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8954         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}'
8955          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}'
8956          ;;
8957       *)
8958         ld_shlibs=no
8959          ;;
8960      esac
8961    fi
8962      ;;
8963
8964    dgux*)
8965      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8966      hardcode_libdir_flag_spec='-L$libdir'
8967      hardcode_shlibpath_var=no
8968      ;;
8969
8970    freebsd1*)
8971      ld_shlibs=no
8972      ;;
8973
8974    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8975    # support.  Future versions do this automatically, but an explicit c++rt0.o
8976    # does not break anything, and helps significantly (at the cost of a little
8977    # extra space).
8978    freebsd2.2*)
8979      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8980      hardcode_libdir_flag_spec='-R$libdir'
8981      hardcode_direct=yes
8982      hardcode_shlibpath_var=no
8983      ;;
8984
8985    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8986    freebsd2*)
8987      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8988      hardcode_direct=yes
8989      hardcode_minus_L=yes
8990      hardcode_shlibpath_var=no
8991      ;;
8992
8993    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8994    freebsd* | kfreebsd*-gnu | dragonfly*)
8995      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8996      hardcode_libdir_flag_spec='-R$libdir'
8997      hardcode_direct=yes
8998      hardcode_shlibpath_var=no
8999      ;;
9000
9001    hpux9*)
9002      if test "$GCC" = yes; then
9003        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'
9004      else
9005        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'
9006      fi
9007      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9008      hardcode_libdir_separator=:
9009      hardcode_direct=yes
9010
9011      # hardcode_minus_L: Not really in the search PATH,
9012      # but as the default location of the library.
9013      hardcode_minus_L=yes
9014      export_dynamic_flag_spec='${wl}-E'
9015      ;;
9016
9017    hpux10*)
9018      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9019        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9020      else
9021        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9022      fi
9023      if test "$with_gnu_ld" = no; then
9024        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9025        hardcode_libdir_separator=:
9026
9027        hardcode_direct=yes
9028        export_dynamic_flag_spec='${wl}-E'
9029
9030        # hardcode_minus_L: Not really in the search PATH,
9031        # but as the default location of the library.
9032        hardcode_minus_L=yes
9033      fi
9034      ;;
9035
9036    hpux11*)
9037      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9038        case $host_cpu in
9039        hppa*64*)
9040          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9041          ;;
9042        ia64*)
9043          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9044          ;;
9045        *)
9046          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9047          ;;
9048        esac
9049      else
9050        case $host_cpu in
9051        hppa*64*)
9052          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9053          ;;
9054        ia64*)
9055          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9056          ;;
9057        *)
9058          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9059          ;;
9060        esac
9061      fi
9062      if test "$with_gnu_ld" = no; then
9063        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9064        hardcode_libdir_separator=:
9065
9066        case $host_cpu in
9067        hppa*64*|ia64*)
9068          hardcode_libdir_flag_spec_ld='+b $libdir'
9069          hardcode_direct=no
9070          hardcode_shlibpath_var=no
9071          ;;
9072        *)
9073          hardcode_direct=yes
9074          export_dynamic_flag_spec='${wl}-E'
9075
9076          # hardcode_minus_L: Not really in the search PATH,
9077          # but as the default location of the library.
9078          hardcode_minus_L=yes
9079          ;;
9080        esac
9081      fi
9082      ;;
9083
9084    irix5* | irix6* | nonstopux*)
9085      if test "$GCC" = yes; then
9086        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'
9087      else
9088        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'
9089        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9090      fi
9091      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9092      hardcode_libdir_separator=:
9093      link_all_deplibs=yes
9094      ;;
9095
9096    netbsd*)
9097      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9098        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9099      else
9100        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9101      fi
9102      hardcode_libdir_flag_spec='-R$libdir'
9103      hardcode_direct=yes
9104      hardcode_shlibpath_var=no
9105      ;;
9106
9107    newsos6)
9108      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9109      hardcode_direct=yes
9110      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111      hardcode_libdir_separator=:
9112      hardcode_shlibpath_var=no
9113      ;;
9114
9115    openbsd*)
9116      hardcode_direct=yes
9117      hardcode_shlibpath_var=no
9118      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9119        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9120        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9121        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9122        export_dynamic_flag_spec='${wl}-E'
9123      else
9124       case $host_os in
9125         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9126           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9127           hardcode_libdir_flag_spec='-R$libdir'
9128           ;;
9129         *)
9130           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9131           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9132           ;;
9133       esac
9134      fi
9135      ;;
9136
9137    os2*)
9138      hardcode_libdir_flag_spec='-L$libdir'
9139      hardcode_minus_L=yes
9140      allow_undefined_flag=unsupported
9141      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'
9142      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9143      ;;
9144
9145    osf3*)
9146      if test "$GCC" = yes; then
9147        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9148        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'
9149      else
9150        allow_undefined_flag=' -expect_unresolved \*'
9151        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'
9152      fi
9153      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9154      hardcode_libdir_separator=:
9155      ;;
9156
9157    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9158      if test "$GCC" = yes; then
9159        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9160        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'
9161        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9162      else
9163        allow_undefined_flag=' -expect_unresolved \*'
9164        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'
9165        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9166        $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'
9167
9168        # Both c and cxx compiler support -rpath directly
9169        hardcode_libdir_flag_spec='-rpath $libdir'
9170      fi
9171      hardcode_libdir_separator=:
9172      ;;
9173
9174    solaris*)
9175      no_undefined_flag=' -z text'
9176      if test "$GCC" = yes; then
9177        wlarc='${wl}'
9178        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9180          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9181      else
9182        wlarc=''
9183        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9184        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9185        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9186      fi
9187      hardcode_libdir_flag_spec='-R$libdir'
9188      hardcode_shlibpath_var=no
9189      case $host_os in
9190      solaris2.[0-5] | solaris2.[0-5].*) ;;
9191      *)
9192        # The compiler driver will combine linker options so we
9193        # cannot just pass the convience library names through
9194        # without $wl, iff we do not link with $LD.
9195        # Luckily, gcc supports the same syntax we need for Sun Studio.
9196        # Supported since Solaris 2.6 (maybe 2.5.1?)
9197        case $wlarc in
9198        '')
9199          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9200        *)
9201          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' ;;
9202        esac ;;
9203      esac
9204      link_all_deplibs=yes
9205      ;;
9206
9207    sunos4*)
9208      if test "x$host_vendor" = xsequent; then
9209        # Use $CC to link under sequent, because it throws in some extra .o
9210        # files that make .init and .fini sections work.
9211        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9212      else
9213        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9214      fi
9215      hardcode_libdir_flag_spec='-L$libdir'
9216      hardcode_direct=yes
9217      hardcode_minus_L=yes
9218      hardcode_shlibpath_var=no
9219      ;;
9220
9221    sysv4)
9222      case $host_vendor in
9223        sni)
9224          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9225          hardcode_direct=yes # is this really true???
9226        ;;
9227        siemens)
9228          ## LD is ld it makes a PLAMLIB
9229          ## CC just makes a GrossModule.
9230          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9231          reload_cmds='$CC -r -o $output$reload_objs'
9232          hardcode_direct=no
9233        ;;
9234        motorola)
9235          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9237        ;;
9238      esac
9239      runpath_var='LD_RUN_PATH'
9240      hardcode_shlibpath_var=no
9241      ;;
9242
9243    sysv4.3*)
9244      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9245      hardcode_shlibpath_var=no
9246      export_dynamic_flag_spec='-Bexport'
9247      ;;
9248
9249    sysv4*MP*)
9250      if test -d /usr/nec; then
9251        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9252        hardcode_shlibpath_var=no
9253        runpath_var=LD_RUN_PATH
9254        hardcode_runpath_var=yes
9255        ld_shlibs=yes
9256      fi
9257      ;;
9258
9259    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9260      no_undefined_flag='${wl}-z,text'
9261      archive_cmds_need_lc=no
9262      hardcode_shlibpath_var=no
9263      runpath_var='LD_RUN_PATH'
9264
9265      if test "$GCC" = yes; then
9266        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9267        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9268      else
9269        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9270        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9271      fi
9272      ;;
9273
9274    sysv5* | sco3.2v5* | sco5v6*)
9275      # Note: We can NOT use -z defs as we might desire, because we do not
9276      # link with -lc, and that would cause any symbols used from libc to
9277      # always be unresolved, which means just about no library would
9278      # ever link correctly.  If we're not using GNU ld we use -z text
9279      # though, which does catch some bad symbols but isn't as heavy-handed
9280      # as -z defs.
9281      no_undefined_flag='${wl}-z,text'
9282      allow_undefined_flag='${wl}-z,nodefs'
9283      archive_cmds_need_lc=no
9284      hardcode_shlibpath_var=no
9285      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9286      hardcode_libdir_separator=':'
9287      link_all_deplibs=yes
9288      export_dynamic_flag_spec='${wl}-Bexport'
9289      runpath_var='LD_RUN_PATH'
9290
9291      if test "$GCC" = yes; then
9292        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9293        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9294      else
9295        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9296        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9297      fi
9298      ;;
9299
9300    uts4*)
9301      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9302      hardcode_libdir_flag_spec='-L$libdir'
9303      hardcode_shlibpath_var=no
9304      ;;
9305
9306    *)
9307      ld_shlibs=no
9308      ;;
9309    esac
9310  fi
9311
9312echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9313echo "${ECHO_T}$ld_shlibs" >&6
9314test "$ld_shlibs" = no && can_build_shared=no
9315
9316#
9317# Do we need to explicitly link libc?
9318#
9319case "x$archive_cmds_need_lc" in
9320x|xyes)
9321  # Assume -lc should be added
9322  archive_cmds_need_lc=yes
9323
9324  if test "$enable_shared" = yes && test "$GCC" = yes; then
9325    case $archive_cmds in
9326    *'~'*)
9327      # FIXME: we may have to deal with multi-command sequences.
9328      ;;
9329    '$CC '*)
9330      # Test whether the compiler implicitly links with -lc since on some
9331      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9332      # to ld, don't add -lc before -lgcc.
9333      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9334echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9335      $rm conftest*
9336      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9337
9338      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9339  (eval $ac_compile) 2>&5
9340  ac_status=$?
9341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342  (exit $ac_status); } 2>conftest.err; then
9343        soname=conftest
9344        lib=conftest
9345        libobjs=conftest.$ac_objext
9346        deplibs=
9347        wl=$lt_prog_compiler_wl
9348        pic_flag=$lt_prog_compiler_pic
9349        compiler_flags=-v
9350        linker_flags=-v
9351        verstring=
9352        output_objdir=.
9353        libname=conftest
9354        lt_save_allow_undefined_flag=$allow_undefined_flag
9355        allow_undefined_flag=
9356        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9357  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9358  ac_status=$?
9359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360  (exit $ac_status); }
9361        then
9362          archive_cmds_need_lc=no
9363        else
9364          archive_cmds_need_lc=yes
9365        fi
9366        allow_undefined_flag=$lt_save_allow_undefined_flag
9367      else
9368        cat conftest.err 1>&5
9369      fi
9370      $rm conftest*
9371      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9372echo "${ECHO_T}$archive_cmds_need_lc" >&6
9373      ;;
9374    esac
9375  fi
9376  ;;
9377esac
9378
9379echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9380echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9381library_names_spec=
9382libname_spec='lib$name'
9383soname_spec=
9384shrext_cmds=".so"
9385postinstall_cmds=
9386postuninstall_cmds=
9387finish_cmds=
9388finish_eval=
9389shlibpath_var=
9390shlibpath_overrides_runpath=unknown
9391version_type=none
9392dynamic_linker="$host_os ld.so"
9393sys_lib_dlsearch_path_spec="/lib /usr/lib"
9394if test "$GCC" = yes; then
9395  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9396  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9397    # if the path contains ";" then we assume it to be the separator
9398    # otherwise default to the standard path separator (i.e. ":") - it is
9399    # assumed that no part of a normal pathname contains ";" but that should
9400    # okay in the real world where ";" in dirpaths is itself problematic.
9401    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9402  else
9403    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9404  fi
9405else
9406  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9407fi
9408need_lib_prefix=unknown
9409hardcode_into_libs=no
9410
9411# when you set need_version to no, make sure it does not cause -set_version
9412# flags to be left without arguments
9413need_version=unknown
9414
9415case $host_os in
9416aix3*)
9417  version_type=linux
9418  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9419  shlibpath_var=LIBPATH
9420
9421  # AIX 3 has no versioning support, so we append a major version to the name.
9422  soname_spec='${libname}${release}${shared_ext}$major'
9423  ;;
9424
9425aix4* | aix5*)
9426  version_type=linux
9427  need_lib_prefix=no
9428  need_version=no
9429  hardcode_into_libs=yes
9430  if test "$host_cpu" = ia64; then
9431    # AIX 5 supports IA64
9432    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9433    shlibpath_var=LD_LIBRARY_PATH
9434  else
9435    # With GCC up to 2.95.x, collect2 would create an import file
9436    # for dependence libraries.  The import file would start with
9437    # the line `#! .'.  This would cause the generated library to
9438    # depend on `.', always an invalid library.  This was fixed in
9439    # development snapshots of GCC prior to 3.0.
9440    case $host_os in
9441      aix4 | aix4.[01] | aix4.[01].*)
9442      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9443           echo ' yes '
9444           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9445        :
9446      else
9447        can_build_shared=no
9448      fi
9449      ;;
9450    esac
9451    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9452    # soname into executable. Probably we can add versioning support to
9453    # collect2, so additional links can be useful in future.
9454    if test "$aix_use_runtimelinking" = yes; then
9455      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9456      # instead of lib<name>.a to let people know that these are not
9457      # typical AIX shared libraries.
9458      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9459    else
9460      # We preserve .a as extension for shared libraries through AIX4.2
9461      # and later when we are not doing run time linking.
9462      library_names_spec='${libname}${release}.a $libname.a'
9463      soname_spec='${libname}${release}${shared_ext}$major'
9464    fi
9465    shlibpath_var=LIBPATH
9466  fi
9467  ;;
9468
9469amigaos*)
9470  library_names_spec='$libname.ixlibrary $libname.a'
9471  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9472  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'
9473  ;;
9474
9475beos*)
9476  library_names_spec='${libname}${shared_ext}'
9477  dynamic_linker="$host_os ld.so"
9478  shlibpath_var=LIBRARY_PATH
9479  ;;
9480
9481bsdi[45]*)
9482  version_type=linux
9483  need_version=no
9484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9485  soname_spec='${libname}${release}${shared_ext}$major'
9486  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9487  shlibpath_var=LD_LIBRARY_PATH
9488  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9489  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9490  # the default ld.so.conf also contains /usr/contrib/lib and
9491  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9492  # libtool to hard-code these into programs
9493  ;;
9494
9495cygwin* | mingw* | pw32*)
9496  version_type=windows
9497  shrext_cmds=".dll"
9498  need_version=no
9499  need_lib_prefix=no
9500
9501  case $GCC,$host_os in
9502  yes,cygwin* | yes,mingw* | yes,pw32*)
9503    library_names_spec='$libname.dll.a'
9504    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9505    postinstall_cmds='base_file=`basename \${file}`~
9506      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9507      dldir=$destdir/`dirname \$dlpath`~
9508      test -d \$dldir || mkdir -p \$dldir~
9509      $install_prog $dir/$dlname \$dldir/$dlname~
9510      chmod a+x \$dldir/$dlname'
9511    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9512      dlpath=$dir/\$dldll~
9513       $rm \$dlpath'
9514    shlibpath_overrides_runpath=yes
9515
9516    case $host_os in
9517    cygwin*)
9518      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9519      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9520      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9521      ;;
9522    mingw*)
9523      # MinGW DLLs use traditional 'lib' prefix
9524      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9525      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9526      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9527        # It is most probably a Windows format PATH printed by
9528        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9529        # path with ; separators, and with drive letters. We can handle the
9530        # drive letters (cygwin fileutils understands them), so leave them,
9531        # especially as we might pass files found there to a mingw objdump,
9532        # which wouldn't understand a cygwinified path. Ahh.
9533        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9534      else
9535        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9536      fi
9537      ;;
9538    pw32*)
9539      # pw32 DLLs use 'pw' prefix rather than 'lib'
9540      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9541      ;;
9542    esac
9543    ;;
9544
9545  *)
9546    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9547    ;;
9548  esac
9549  dynamic_linker='Win32 ld.exe'
9550  # FIXME: first we should search . and the directory the executable is in
9551  shlibpath_var=PATH
9552  ;;
9553
9554darwin* | rhapsody*)
9555  dynamic_linker="$host_os dyld"
9556  version_type=darwin
9557  need_lib_prefix=no
9558  need_version=no
9559  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9560  soname_spec='${libname}${release}${major}$shared_ext'
9561  shlibpath_overrides_runpath=yes
9562  shlibpath_var=DYLD_LIBRARY_PATH
9563  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9564  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9565  if test "$GCC" = yes; then
9566    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"`
9567  else
9568    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9569  fi
9570  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9571  ;;
9572
9573dgux*)
9574  version_type=linux
9575  need_lib_prefix=no
9576  need_version=no
9577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9578  soname_spec='${libname}${release}${shared_ext}$major'
9579  shlibpath_var=LD_LIBRARY_PATH
9580  ;;
9581
9582freebsd1*)
9583  dynamic_linker=no
9584  ;;
9585
9586kfreebsd*-gnu)
9587  version_type=linux
9588  need_lib_prefix=no
9589  need_version=no
9590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9591  soname_spec='${libname}${release}${shared_ext}$major'
9592  shlibpath_var=LD_LIBRARY_PATH
9593  shlibpath_overrides_runpath=no
9594  hardcode_into_libs=yes
9595  dynamic_linker='GNU ld.so'
9596  ;;
9597
9598freebsd* | dragonfly*)
9599  # DragonFly does not have aout.  When/if they implement a new
9600  # versioning mechanism, adjust this.
9601  if test -x /usr/bin/objformat; then
9602    objformat=`/usr/bin/objformat`
9603  else
9604    case $host_os in
9605    freebsd[123]*) objformat=aout ;;
9606    *) objformat=elf ;;
9607    esac
9608  fi
9609  version_type=freebsd-$objformat
9610  case $version_type in
9611    freebsd-elf*)
9612      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9613      need_version=no
9614      need_lib_prefix=no
9615      ;;
9616    freebsd-*)
9617      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9618      need_version=yes
9619      ;;
9620  esac
9621  shlibpath_var=LD_LIBRARY_PATH
9622  case $host_os in
9623  freebsd2*)
9624    shlibpath_overrides_runpath=yes
9625    ;;
9626  freebsd3.[01]* | freebsdelf3.[01]*)
9627    shlibpath_overrides_runpath=yes
9628    hardcode_into_libs=yes
9629    ;;
9630  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9631  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9632    shlibpath_overrides_runpath=no
9633    hardcode_into_libs=yes
9634    ;;
9635  freebsd*) # from 4.6 on
9636    shlibpath_overrides_runpath=yes
9637    hardcode_into_libs=yes
9638    ;;
9639  esac
9640  ;;
9641
9642gnu*)
9643  version_type=linux
9644  need_lib_prefix=no
9645  need_version=no
9646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9647  soname_spec='${libname}${release}${shared_ext}$major'
9648  shlibpath_var=LD_LIBRARY_PATH
9649  hardcode_into_libs=yes
9650  ;;
9651
9652hpux9* | hpux10* | hpux11*)
9653  # Give a soname corresponding to the major version so that dld.sl refuses to
9654  # link against other versions.
9655  version_type=sunos
9656  need_lib_prefix=no
9657  need_version=no
9658  case $host_cpu in
9659  ia64*)
9660    shrext_cmds='.so'
9661    hardcode_into_libs=yes
9662    dynamic_linker="$host_os dld.so"
9663    shlibpath_var=LD_LIBRARY_PATH
9664    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9665    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9666    soname_spec='${libname}${release}${shared_ext}$major'
9667    if test "X$HPUX_IA64_MODE" = X32; then
9668      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9669    else
9670      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9671    fi
9672    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9673    ;;
9674   hppa*64*)
9675     shrext_cmds='.sl'
9676     hardcode_into_libs=yes
9677     dynamic_linker="$host_os dld.sl"
9678     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9679     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9680     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9681     soname_spec='${libname}${release}${shared_ext}$major'
9682     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9683     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9684     ;;
9685   *)
9686    shrext_cmds='.sl'
9687    dynamic_linker="$host_os dld.sl"
9688    shlibpath_var=SHLIB_PATH
9689    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9690    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9691    soname_spec='${libname}${release}${shared_ext}$major'
9692    ;;
9693  esac
9694  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9695  postinstall_cmds='chmod 555 $lib'
9696  ;;
9697
9698interix3*)
9699  version_type=linux
9700  need_lib_prefix=no
9701  need_version=no
9702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9703  soname_spec='${libname}${release}${shared_ext}$major'
9704  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9705  shlibpath_var=LD_LIBRARY_PATH
9706  shlibpath_overrides_runpath=no
9707  hardcode_into_libs=yes
9708  ;;
9709
9710irix5* | irix6* | nonstopux*)
9711  case $host_os in
9712    nonstopux*) version_type=nonstopux ;;
9713    *)
9714        if test "$lt_cv_prog_gnu_ld" = yes; then
9715                version_type=linux
9716        else
9717                version_type=irix
9718        fi ;;
9719  esac
9720  need_lib_prefix=no
9721  need_version=no
9722  soname_spec='${libname}${release}${shared_ext}$major'
9723  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9724  case $host_os in
9725  irix5* | nonstopux*)
9726    libsuff= shlibsuff=
9727    ;;
9728  *)
9729    case $LD in # libtool.m4 will add one of these switches to LD
9730    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9731      libsuff= shlibsuff= libmagic=32-bit;;
9732    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9733      libsuff=32 shlibsuff=N32 libmagic=N32;;
9734    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9735      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9736    *) libsuff= shlibsuff= libmagic=never-match;;
9737    esac
9738    ;;
9739  esac
9740  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9741  shlibpath_overrides_runpath=no
9742  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9743  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9744  hardcode_into_libs=yes
9745  ;;
9746
9747# No shared lib support for Linux oldld, aout, or coff.
9748linux*oldld* | linux*aout* | linux*coff*)
9749  dynamic_linker=no
9750  ;;
9751
9752# This must be Linux ELF.
9753linux*)
9754  version_type=linux
9755  need_lib_prefix=no
9756  need_version=no
9757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9758  soname_spec='${libname}${release}${shared_ext}$major'
9759  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9760  shlibpath_var=LD_LIBRARY_PATH
9761  shlibpath_overrides_runpath=no
9762  # This implies no fast_install, which is unacceptable.
9763  # Some rework will be needed to allow for fast_install
9764  # before this can be enabled.
9765  hardcode_into_libs=yes
9766
9767  # Append ld.so.conf contents to the search path
9768  if test -f /etc/ld.so.conf; then
9769    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' ' '`
9770    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9771  fi
9772
9773  # We used to test for /lib/ld.so.1 and disable shared libraries on
9774  # powerpc, because MkLinux only supported shared libraries with the
9775  # GNU dynamic linker.  Since this was broken with cross compilers,
9776  # most powerpc-linux boxes support dynamic linking these days and
9777  # people can always --disable-shared, the test was removed, and we
9778  # assume the GNU/Linux dynamic linker is in use.
9779  dynamic_linker='GNU/Linux ld.so'
9780  ;;
9781
9782knetbsd*-gnu)
9783  version_type=linux
9784  need_lib_prefix=no
9785  need_version=no
9786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9787  soname_spec='${libname}${release}${shared_ext}$major'
9788  shlibpath_var=LD_LIBRARY_PATH
9789  shlibpath_overrides_runpath=no
9790  hardcode_into_libs=yes
9791  dynamic_linker='GNU ld.so'
9792  ;;
9793
9794netbsd*)
9795  version_type=sunos
9796  need_lib_prefix=no
9797  need_version=no
9798  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9799    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9800    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9801    dynamic_linker='NetBSD (a.out) ld.so'
9802  else
9803    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9804    soname_spec='${libname}${release}${shared_ext}$major'
9805    dynamic_linker='NetBSD ld.elf_so'
9806  fi
9807  shlibpath_var=LD_LIBRARY_PATH
9808  shlibpath_overrides_runpath=yes
9809  hardcode_into_libs=yes
9810  ;;
9811
9812newsos6)
9813  version_type=linux
9814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815  shlibpath_var=LD_LIBRARY_PATH
9816  shlibpath_overrides_runpath=yes
9817  ;;
9818
9819nto-qnx*)
9820  version_type=linux
9821  need_lib_prefix=no
9822  need_version=no
9823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9824  soname_spec='${libname}${release}${shared_ext}$major'
9825  shlibpath_var=LD_LIBRARY_PATH
9826  shlibpath_overrides_runpath=yes
9827  ;;
9828
9829openbsd*)
9830  version_type=sunos
9831  sys_lib_dlsearch_path_spec="/usr/lib"
9832  need_lib_prefix=no
9833  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9834  case $host_os in
9835    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9836    *)                         need_version=no  ;;
9837  esac
9838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9839  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9840  shlibpath_var=LD_LIBRARY_PATH
9841  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9842    case $host_os in
9843      openbsd2.[89] | openbsd2.[89].*)
9844        shlibpath_overrides_runpath=no
9845        ;;
9846      *)
9847        shlibpath_overrides_runpath=yes
9848        ;;
9849      esac
9850  else
9851    shlibpath_overrides_runpath=yes
9852  fi
9853  ;;
9854
9855os2*)
9856  libname_spec='$name'
9857  shrext_cmds=".dll"
9858  need_lib_prefix=no
9859  library_names_spec='$libname${shared_ext} $libname.a'
9860  dynamic_linker='OS/2 ld.exe'
9861  shlibpath_var=LIBPATH
9862  ;;
9863
9864osf3* | osf4* | osf5*)
9865  version_type=osf
9866  need_lib_prefix=no
9867  need_version=no
9868  soname_spec='${libname}${release}${shared_ext}$major'
9869  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9870  shlibpath_var=LD_LIBRARY_PATH
9871  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9872  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9873  ;;
9874
9875solaris*)
9876  version_type=linux
9877  need_lib_prefix=no
9878  need_version=no
9879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880  soname_spec='${libname}${release}${shared_ext}$major'
9881  shlibpath_var=LD_LIBRARY_PATH
9882  shlibpath_overrides_runpath=yes
9883  hardcode_into_libs=yes
9884  # ldd complains unless libraries are executable
9885  postinstall_cmds='chmod +x $lib'
9886  ;;
9887
9888sunos4*)
9889  version_type=sunos
9890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9891  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9892  shlibpath_var=LD_LIBRARY_PATH
9893  shlibpath_overrides_runpath=yes
9894  if test "$with_gnu_ld" = yes; then
9895    need_lib_prefix=no
9896  fi
9897  need_version=yes
9898  ;;
9899
9900sysv4 | sysv4.3*)
9901  version_type=linux
9902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903  soname_spec='${libname}${release}${shared_ext}$major'
9904  shlibpath_var=LD_LIBRARY_PATH
9905  case $host_vendor in
9906    sni)
9907      shlibpath_overrides_runpath=no
9908      need_lib_prefix=no
9909      export_dynamic_flag_spec='${wl}-Blargedynsym'
9910      runpath_var=LD_RUN_PATH
9911      ;;
9912    siemens)
9913      need_lib_prefix=no
9914      ;;
9915    motorola)
9916      need_lib_prefix=no
9917      need_version=no
9918      shlibpath_overrides_runpath=no
9919      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9920      ;;
9921  esac
9922  ;;
9923
9924sysv4*MP*)
9925  if test -d /usr/nec ;then
9926    version_type=linux
9927    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9928    soname_spec='$libname${shared_ext}.$major'
9929    shlibpath_var=LD_LIBRARY_PATH
9930  fi
9931  ;;
9932
9933sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9934  version_type=freebsd-elf
9935  need_lib_prefix=no
9936  need_version=no
9937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9938  soname_spec='${libname}${release}${shared_ext}$major'
9939  shlibpath_var=LD_LIBRARY_PATH
9940  hardcode_into_libs=yes
9941  if test "$with_gnu_ld" = yes; then
9942    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9943    shlibpath_overrides_runpath=no
9944  else
9945    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9946    shlibpath_overrides_runpath=yes
9947    case $host_os in
9948      sco3.2v5*)
9949        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9950        ;;
9951    esac
9952  fi
9953  sys_lib_dlsearch_path_spec='/usr/lib'
9954  ;;
9955
9956uts4*)
9957  version_type=linux
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959  soname_spec='${libname}${release}${shared_ext}$major'
9960  shlibpath_var=LD_LIBRARY_PATH
9961  ;;
9962
9963*)
9964  dynamic_linker=no
9965  ;;
9966esac
9967echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9968echo "${ECHO_T}$dynamic_linker" >&6
9969test "$dynamic_linker" = no && can_build_shared=no
9970
9971variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9972if test "$GCC" = yes; then
9973  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9974fi
9975
9976echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9977echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9978hardcode_action=
9979if test -n "$hardcode_libdir_flag_spec" || \
9980   test -n "$runpath_var" || \
9981   test "X$hardcode_automatic" = "Xyes" ; then
9982
9983  # We can hardcode non-existant directories.
9984  if test "$hardcode_direct" != no &&
9985     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9986     # have to relink, otherwise we might link with an installed library
9987     # when we should be linking with a yet-to-be-installed one
9988     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9989     test "$hardcode_minus_L" != no; then
9990    # Linking always hardcodes the temporary library directory.
9991    hardcode_action=relink
9992  else
9993    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9994    hardcode_action=immediate
9995  fi
9996else
9997  # We cannot hardcode anything, or else we can only hardcode existing
9998  # directories.
9999  hardcode_action=unsupported
10000fi
10001echo "$as_me:$LINENO: result: $hardcode_action" >&5
10002echo "${ECHO_T}$hardcode_action" >&6
10003
10004if test "$hardcode_action" = relink; then
10005  # Fast installation is not supported
10006  enable_fast_install=no
10007elif test "$shlibpath_overrides_runpath" = yes ||
10008     test "$enable_shared" = no; then
10009  # Fast installation is not necessary
10010  enable_fast_install=needless
10011fi
10012
10013striplib=
10014old_striplib=
10015echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10016echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10017if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10018  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10019  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10020  echo "$as_me:$LINENO: result: yes" >&5
10021echo "${ECHO_T}yes" >&6
10022else
10023# FIXME - insert some real tests, host_os isn't really good enough
10024  case $host_os in
10025   darwin*)
10026       if test -n "$STRIP" ; then
10027         striplib="$STRIP -x"
10028         echo "$as_me:$LINENO: result: yes" >&5
10029echo "${ECHO_T}yes" >&6
10030       else
10031  echo "$as_me:$LINENO: result: no" >&5
10032echo "${ECHO_T}no" >&6
10033fi
10034       ;;
10035   *)
10036  echo "$as_me:$LINENO: result: no" >&5
10037echo "${ECHO_T}no" >&6
10038    ;;
10039  esac
10040fi
10041
10042if test "x$enable_dlopen" != xyes; then
10043  enable_dlopen=unknown
10044  enable_dlopen_self=unknown
10045  enable_dlopen_self_static=unknown
10046else
10047  lt_cv_dlopen=no
10048  lt_cv_dlopen_libs=
10049
10050  case $host_os in
10051  beos*)
10052    lt_cv_dlopen="load_add_on"
10053    lt_cv_dlopen_libs=
10054    lt_cv_dlopen_self=yes
10055    ;;
10056
10057  mingw* | pw32*)
10058    lt_cv_dlopen="LoadLibrary"
10059    lt_cv_dlopen_libs=
10060   ;;
10061
10062  cygwin*)
10063    lt_cv_dlopen="dlopen"
10064    lt_cv_dlopen_libs=
10065   ;;
10066
10067  darwin*)
10068  # if libdl is installed we need to link against it
10069    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10070echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10071if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10072  echo $ECHO_N "(cached) $ECHO_C" >&6
10073else
10074  ac_check_lib_save_LIBS=$LIBS
10075LIBS="-ldl  $LIBS"
10076cat >conftest.$ac_ext <<_ACEOF
10077/* confdefs.h.  */
10078_ACEOF
10079cat confdefs.h >>conftest.$ac_ext
10080cat >>conftest.$ac_ext <<_ACEOF
10081/* end confdefs.h.  */
10082
10083/* Override any gcc2 internal prototype to avoid an error.  */
10084#ifdef __cplusplus
10085extern "C"
10086#endif
10087/* We use char because int might match the return type of a gcc2
10088   builtin and then its argument prototype would still apply.  */
10089char dlopen ();
10090int
10091main ()
10092{
10093dlopen ();
10094  ;
10095  return 0;
10096}
10097_ACEOF
10098rm -f conftest.$ac_objext conftest$ac_exeext
10099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10100  (eval $ac_link) 2>conftest.er1
10101  ac_status=$?
10102  grep -v '^ *+' conftest.er1 >conftest.err
10103  rm -f conftest.er1
10104  cat conftest.err >&5
10105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106  (exit $ac_status); } &&
10107         { ac_try='test -z "$ac_c_werror_flag"
10108                         || test ! -s conftest.err'
10109  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110  (eval $ac_try) 2>&5
10111  ac_status=$?
10112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113  (exit $ac_status); }; } &&
10114         { ac_try='test -s conftest$ac_exeext'
10115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116  (eval $ac_try) 2>&5
10117  ac_status=$?
10118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119  (exit $ac_status); }; }; then
10120  ac_cv_lib_dl_dlopen=yes
10121else
10122  echo "$as_me: failed program was:" >&5
10123sed 's/^/| /' conftest.$ac_ext >&5
10124
10125ac_cv_lib_dl_dlopen=no
10126fi
10127rm -f conftest.err conftest.$ac_objext \
10128      conftest$ac_exeext conftest.$ac_ext
10129LIBS=$ac_check_lib_save_LIBS
10130fi
10131echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10132echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10133if test $ac_cv_lib_dl_dlopen = yes; then
10134  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10135else
10136
10137    lt_cv_dlopen="dyld"
10138    lt_cv_dlopen_libs=
10139    lt_cv_dlopen_self=yes
10140
10141fi
10142
10143   ;;
10144
10145  *)
10146    echo "$as_me:$LINENO: checking for shl_load" >&5
10147echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10148if test "${ac_cv_func_shl_load+set}" = set; then
10149  echo $ECHO_N "(cached) $ECHO_C" >&6
10150else
10151  cat >conftest.$ac_ext <<_ACEOF
10152/* confdefs.h.  */
10153_ACEOF
10154cat confdefs.h >>conftest.$ac_ext
10155cat >>conftest.$ac_ext <<_ACEOF
10156/* end confdefs.h.  */
10157/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10158   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10159#define shl_load innocuous_shl_load
10160
10161/* System header to define __stub macros and hopefully few prototypes,
10162    which can conflict with char shl_load (); below.
10163    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10164    <limits.h> exists even on freestanding compilers.  */
10165
10166#ifdef __STDC__
10167# include <limits.h>
10168#else
10169# include <assert.h>
10170#endif
10171
10172#undef shl_load
10173
10174/* Override any gcc2 internal prototype to avoid an error.  */
10175#ifdef __cplusplus
10176extern "C"
10177{
10178#endif
10179/* We use char because int might match the return type of a gcc2
10180   builtin and then its argument prototype would still apply.  */
10181char shl_load ();
10182/* The GNU C library defines this for functions which it implements
10183    to always fail with ENOSYS.  Some functions are actually named
10184    something starting with __ and the normal name is an alias.  */
10185#if defined (__stub_shl_load) || defined (__stub___shl_load)
10186choke me
10187#else
10188char (*f) () = shl_load;
10189#endif
10190#ifdef __cplusplus
10191}
10192#endif
10193
10194int
10195main ()
10196{
10197return f != shl_load;
10198  ;
10199  return 0;
10200}
10201_ACEOF
10202rm -f conftest.$ac_objext conftest$ac_exeext
10203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10204  (eval $ac_link) 2>conftest.er1
10205  ac_status=$?
10206  grep -v '^ *+' conftest.er1 >conftest.err
10207  rm -f conftest.er1
10208  cat conftest.err >&5
10209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210  (exit $ac_status); } &&
10211         { ac_try='test -z "$ac_c_werror_flag"
10212                         || test ! -s conftest.err'
10213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10214  (eval $ac_try) 2>&5
10215  ac_status=$?
10216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217  (exit $ac_status); }; } &&
10218         { ac_try='test -s conftest$ac_exeext'
10219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220  (eval $ac_try) 2>&5
10221  ac_status=$?
10222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223  (exit $ac_status); }; }; then
10224  ac_cv_func_shl_load=yes
10225else
10226  echo "$as_me: failed program was:" >&5
10227sed 's/^/| /' conftest.$ac_ext >&5
10228
10229ac_cv_func_shl_load=no
10230fi
10231rm -f conftest.err conftest.$ac_objext \
10232      conftest$ac_exeext conftest.$ac_ext
10233fi
10234echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10235echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10236if test $ac_cv_func_shl_load = yes; then
10237  lt_cv_dlopen="shl_load"
10238else
10239  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10240echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10241if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10242  echo $ECHO_N "(cached) $ECHO_C" >&6
10243else
10244  ac_check_lib_save_LIBS=$LIBS
10245LIBS="-ldld  $LIBS"
10246cat >conftest.$ac_ext <<_ACEOF
10247/* confdefs.h.  */
10248_ACEOF
10249cat confdefs.h >>conftest.$ac_ext
10250cat >>conftest.$ac_ext <<_ACEOF
10251/* end confdefs.h.  */
10252
10253/* Override any gcc2 internal prototype to avoid an error.  */
10254#ifdef __cplusplus
10255extern "C"
10256#endif
10257/* We use char because int might match the return type of a gcc2
10258   builtin and then its argument prototype would still apply.  */
10259char shl_load ();
10260int
10261main ()
10262{
10263shl_load ();
10264  ;
10265  return 0;
10266}
10267_ACEOF
10268rm -f conftest.$ac_objext conftest$ac_exeext
10269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10270  (eval $ac_link) 2>conftest.er1
10271  ac_status=$?
10272  grep -v '^ *+' conftest.er1 >conftest.err
10273  rm -f conftest.er1
10274  cat conftest.err >&5
10275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276  (exit $ac_status); } &&
10277         { ac_try='test -z "$ac_c_werror_flag"
10278                         || test ! -s conftest.err'
10279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280  (eval $ac_try) 2>&5
10281  ac_status=$?
10282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283  (exit $ac_status); }; } &&
10284         { ac_try='test -s conftest$ac_exeext'
10285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286  (eval $ac_try) 2>&5
10287  ac_status=$?
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); }; }; then
10290  ac_cv_lib_dld_shl_load=yes
10291else
10292  echo "$as_me: failed program was:" >&5
10293sed 's/^/| /' conftest.$ac_ext >&5
10294
10295ac_cv_lib_dld_shl_load=no
10296fi
10297rm -f conftest.err conftest.$ac_objext \
10298      conftest$ac_exeext conftest.$ac_ext
10299LIBS=$ac_check_lib_save_LIBS
10300fi
10301echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10302echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10303if test $ac_cv_lib_dld_shl_load = yes; then
10304  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10305else
10306  echo "$as_me:$LINENO: checking for dlopen" >&5
10307echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10308if test "${ac_cv_func_dlopen+set}" = set; then
10309  echo $ECHO_N "(cached) $ECHO_C" >&6
10310else
10311  cat >conftest.$ac_ext <<_ACEOF
10312/* confdefs.h.  */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h.  */
10317/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10318   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10319#define dlopen innocuous_dlopen
10320
10321/* System header to define __stub macros and hopefully few prototypes,
10322    which can conflict with char dlopen (); below.
10323    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10324    <limits.h> exists even on freestanding compilers.  */
10325
10326#ifdef __STDC__
10327# include <limits.h>
10328#else
10329# include <assert.h>
10330#endif
10331
10332#undef dlopen
10333
10334/* Override any gcc2 internal prototype to avoid an error.  */
10335#ifdef __cplusplus
10336extern "C"
10337{
10338#endif
10339/* We use char because int might match the return type of a gcc2
10340   builtin and then its argument prototype would still apply.  */
10341char dlopen ();
10342/* The GNU C library defines this for functions which it implements
10343    to always fail with ENOSYS.  Some functions are actually named
10344    something starting with __ and the normal name is an alias.  */
10345#if defined (__stub_dlopen) || defined (__stub___dlopen)
10346choke me
10347#else
10348char (*f) () = dlopen;
10349#endif
10350#ifdef __cplusplus
10351}
10352#endif
10353
10354int
10355main ()
10356{
10357return f != dlopen;
10358  ;
10359  return 0;
10360}
10361_ACEOF
10362rm -f conftest.$ac_objext conftest$ac_exeext
10363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364  (eval $ac_link) 2>conftest.er1
10365  ac_status=$?
10366  grep -v '^ *+' conftest.er1 >conftest.err
10367  rm -f conftest.er1
10368  cat conftest.err >&5
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); } &&
10371         { ac_try='test -z "$ac_c_werror_flag"
10372                         || test ! -s conftest.err'
10373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374  (eval $ac_try) 2>&5
10375  ac_status=$?
10376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377  (exit $ac_status); }; } &&
10378         { ac_try='test -s conftest$ac_exeext'
10379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380  (eval $ac_try) 2>&5
10381  ac_status=$?
10382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383  (exit $ac_status); }; }; then
10384  ac_cv_func_dlopen=yes
10385else
10386  echo "$as_me: failed program was:" >&5
10387sed 's/^/| /' conftest.$ac_ext >&5
10388
10389ac_cv_func_dlopen=no
10390fi
10391rm -f conftest.err conftest.$ac_objext \
10392      conftest$ac_exeext conftest.$ac_ext
10393fi
10394echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10395echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10396if test $ac_cv_func_dlopen = yes; then
10397  lt_cv_dlopen="dlopen"
10398else
10399  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10400echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10401if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10402  echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404  ac_check_lib_save_LIBS=$LIBS
10405LIBS="-ldl  $LIBS"
10406cat >conftest.$ac_ext <<_ACEOF
10407/* confdefs.h.  */
10408_ACEOF
10409cat confdefs.h >>conftest.$ac_ext
10410cat >>conftest.$ac_ext <<_ACEOF
10411/* end confdefs.h.  */
10412
10413/* Override any gcc2 internal prototype to avoid an error.  */
10414#ifdef __cplusplus
10415extern "C"
10416#endif
10417/* We use char because int might match the return type of a gcc2
10418   builtin and then its argument prototype would still apply.  */
10419char dlopen ();
10420int
10421main ()
10422{
10423dlopen ();
10424  ;
10425  return 0;
10426}
10427_ACEOF
10428rm -f conftest.$ac_objext conftest$ac_exeext
10429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10430  (eval $ac_link) 2>conftest.er1
10431  ac_status=$?
10432  grep -v '^ *+' conftest.er1 >conftest.err
10433  rm -f conftest.er1
10434  cat conftest.err >&5
10435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436  (exit $ac_status); } &&
10437         { ac_try='test -z "$ac_c_werror_flag"
10438                         || test ! -s conftest.err'
10439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440  (eval $ac_try) 2>&5
10441  ac_status=$?
10442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443  (exit $ac_status); }; } &&
10444         { ac_try='test -s conftest$ac_exeext'
10445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446  (eval $ac_try) 2>&5
10447  ac_status=$?
10448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449  (exit $ac_status); }; }; then
10450  ac_cv_lib_dl_dlopen=yes
10451else
10452  echo "$as_me: failed program was:" >&5
10453sed 's/^/| /' conftest.$ac_ext >&5
10454
10455ac_cv_lib_dl_dlopen=no
10456fi
10457rm -f conftest.err conftest.$ac_objext \
10458      conftest$ac_exeext conftest.$ac_ext
10459LIBS=$ac_check_lib_save_LIBS
10460fi
10461echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10462echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10463if test $ac_cv_lib_dl_dlopen = yes; then
10464  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10465else
10466  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10467echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10468if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10469  echo $ECHO_N "(cached) $ECHO_C" >&6
10470else
10471  ac_check_lib_save_LIBS=$LIBS
10472LIBS="-lsvld  $LIBS"
10473cat >conftest.$ac_ext <<_ACEOF
10474/* confdefs.h.  */
10475_ACEOF
10476cat confdefs.h >>conftest.$ac_ext
10477cat >>conftest.$ac_ext <<_ACEOF
10478/* end confdefs.h.  */
10479
10480/* Override any gcc2 internal prototype to avoid an error.  */
10481#ifdef __cplusplus
10482extern "C"
10483#endif
10484/* We use char because int might match the return type of a gcc2
10485   builtin and then its argument prototype would still apply.  */
10486char dlopen ();
10487int
10488main ()
10489{
10490dlopen ();
10491  ;
10492  return 0;
10493}
10494_ACEOF
10495rm -f conftest.$ac_objext conftest$ac_exeext
10496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10497  (eval $ac_link) 2>conftest.er1
10498  ac_status=$?
10499  grep -v '^ *+' conftest.er1 >conftest.err
10500  rm -f conftest.er1
10501  cat conftest.err >&5
10502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503  (exit $ac_status); } &&
10504         { ac_try='test -z "$ac_c_werror_flag"
10505                         || test ! -s conftest.err'
10506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507  (eval $ac_try) 2>&5
10508  ac_status=$?
10509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510  (exit $ac_status); }; } &&
10511         { ac_try='test -s conftest$ac_exeext'
10512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10513  (eval $ac_try) 2>&5
10514  ac_status=$?
10515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516  (exit $ac_status); }; }; then
10517  ac_cv_lib_svld_dlopen=yes
10518else
10519  echo "$as_me: failed program was:" >&5
10520sed 's/^/| /' conftest.$ac_ext >&5
10521
10522ac_cv_lib_svld_dlopen=no
10523fi
10524rm -f conftest.err conftest.$ac_objext \
10525      conftest$ac_exeext conftest.$ac_ext
10526LIBS=$ac_check_lib_save_LIBS
10527fi
10528echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10529echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10530if test $ac_cv_lib_svld_dlopen = yes; then
10531  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10532else
10533  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10534echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10535if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10536  echo $ECHO_N "(cached) $ECHO_C" >&6
10537else
10538  ac_check_lib_save_LIBS=$LIBS
10539LIBS="-ldld  $LIBS"
10540cat >conftest.$ac_ext <<_ACEOF
10541/* confdefs.h.  */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h.  */
10546
10547/* Override any gcc2 internal prototype to avoid an error.  */
10548#ifdef __cplusplus
10549extern "C"
10550#endif
10551/* We use char because int might match the return type of a gcc2
10552   builtin and then its argument prototype would still apply.  */
10553char dld_link ();
10554int
10555main ()
10556{
10557dld_link ();
10558  ;
10559  return 0;
10560}
10561_ACEOF
10562rm -f conftest.$ac_objext conftest$ac_exeext
10563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564  (eval $ac_link) 2>conftest.er1
10565  ac_status=$?
10566  grep -v '^ *+' conftest.er1 >conftest.err
10567  rm -f conftest.er1
10568  cat conftest.err >&5
10569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570  (exit $ac_status); } &&
10571         { ac_try='test -z "$ac_c_werror_flag"
10572                         || test ! -s conftest.err'
10573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574  (eval $ac_try) 2>&5
10575  ac_status=$?
10576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577  (exit $ac_status); }; } &&
10578         { ac_try='test -s conftest$ac_exeext'
10579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580  (eval $ac_try) 2>&5
10581  ac_status=$?
10582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583  (exit $ac_status); }; }; then
10584  ac_cv_lib_dld_dld_link=yes
10585else
10586  echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589ac_cv_lib_dld_dld_link=no
10590fi
10591rm -f conftest.err conftest.$ac_objext \
10592      conftest$ac_exeext conftest.$ac_ext
10593LIBS=$ac_check_lib_save_LIBS
10594fi
10595echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10596echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10597if test $ac_cv_lib_dld_dld_link = yes; then
10598  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10599fi
10600
10601
10602fi
10603
10604
10605fi
10606
10607
10608fi
10609
10610
10611fi
10612
10613
10614fi
10615
10616    ;;
10617  esac
10618
10619  if test "x$lt_cv_dlopen" != xno; then
10620    enable_dlopen=yes
10621  else
10622    enable_dlopen=no
10623  fi
10624
10625  case $lt_cv_dlopen in
10626  dlopen)
10627    save_CPPFLAGS="$CPPFLAGS"
10628    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10629
10630    save_LDFLAGS="$LDFLAGS"
10631    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10632
10633    save_LIBS="$LIBS"
10634    LIBS="$lt_cv_dlopen_libs $LIBS"
10635
10636    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10637echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10638if test "${lt_cv_dlopen_self+set}" = set; then
10639  echo $ECHO_N "(cached) $ECHO_C" >&6
10640else
10641          if test "$cross_compiling" = yes; then :
10642  lt_cv_dlopen_self=cross
10643else
10644  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10645  lt_status=$lt_dlunknown
10646  cat > conftest.$ac_ext <<EOF
10647#line 10647 "configure"
10648#include "confdefs.h"
10649
10650#if HAVE_DLFCN_H
10651#include <dlfcn.h>
10652#endif
10653
10654#include <stdio.h>
10655
10656#ifdef RTLD_GLOBAL
10657#  define LT_DLGLOBAL           RTLD_GLOBAL
10658#else
10659#  ifdef DL_GLOBAL
10660#    define LT_DLGLOBAL         DL_GLOBAL
10661#  else
10662#    define LT_DLGLOBAL         0
10663#  endif
10664#endif
10665
10666/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10667   find out it does not work in some platform. */
10668#ifndef LT_DLLAZY_OR_NOW
10669#  ifdef RTLD_LAZY
10670#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10671#  else
10672#    ifdef DL_LAZY
10673#      define LT_DLLAZY_OR_NOW          DL_LAZY
10674#    else
10675#      ifdef RTLD_NOW
10676#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10677#      else
10678#        ifdef DL_NOW
10679#          define LT_DLLAZY_OR_NOW      DL_NOW
10680#        else
10681#          define LT_DLLAZY_OR_NOW      0
10682#        endif
10683#      endif
10684#    endif
10685#  endif
10686#endif
10687
10688#ifdef __cplusplus
10689extern "C" void exit (int);
10690#endif
10691
10692void fnord() { int i=42;}
10693int main ()
10694{
10695  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10696  int status = $lt_dlunknown;
10697
10698  if (self)
10699    {
10700      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10701      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10702      /* dlclose (self); */
10703    }
10704  else
10705    puts (dlerror ());
10706
10707    exit (status);
10708}
10709EOF
10710  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10711  (eval $ac_link) 2>&5
10712  ac_status=$?
10713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10715    (./conftest; exit; ) >&5 2>/dev/null
10716    lt_status=$?
10717    case x$lt_status in
10718      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10719      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10720      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10721    esac
10722  else :
10723    # compilation failed
10724    lt_cv_dlopen_self=no
10725  fi
10726fi
10727rm -fr conftest*
10728
10729
10730fi
10731echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10732echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10733
10734    if test "x$lt_cv_dlopen_self" = xyes; then
10735      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10736      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10737echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10738if test "${lt_cv_dlopen_self_static+set}" = set; then
10739  echo $ECHO_N "(cached) $ECHO_C" >&6
10740else
10741          if test "$cross_compiling" = yes; then :
10742  lt_cv_dlopen_self_static=cross
10743else
10744  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10745  lt_status=$lt_dlunknown
10746  cat > conftest.$ac_ext <<EOF
10747#line 10747 "configure"
10748#include "confdefs.h"
10749
10750#if HAVE_DLFCN_H
10751#include <dlfcn.h>
10752#endif
10753
10754#include <stdio.h>
10755
10756#ifdef RTLD_GLOBAL
10757#  define LT_DLGLOBAL           RTLD_GLOBAL
10758#else
10759#  ifdef DL_GLOBAL
10760#    define LT_DLGLOBAL         DL_GLOBAL
10761#  else
10762#    define LT_DLGLOBAL         0
10763#  endif
10764#endif
10765
10766