source: stable/2.2/Cbc/configure @ 1080

Last change on this file since 1080 was 1080, checked in by ladanyi, 11 years ago

restoring stable/2.2

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