source: stable/2.4/Cbc/configure @ 1415

Last change on this file since 1415 was 1415, checked in by tkr, 9 years ago

temporarily committing release candidate to stable

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