source: branches/devel/Cbc/configure @ 425

Last change on this file since 425 was 416, checked in by forrest, 13 years ago

for allCuts

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