source: trunk/configure @ 1604

Last change on this file since 1604 was 1604, checked in by stefan, 8 years ago

remove unnessary last argument of AC_COIN_MAIN_PACKAGEDIR; rerun autotools

  • Property svn:executable set to *
File size: 776.9 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Cbc trunk.
5#
6# Report bugs to <cbc@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cbc'
432PACKAGE_TARNAME='cbc'
433PACKAGE_VERSION='trunk'
434PACKAGE_STRING='Cbc trunk'
435PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
480ac_subdirs_all="$ac_subdirs_all Data/Sample"
481ac_subdirs_all="$ac_subdirs_all Data/Netlib"
482ac_subdirs_all="$ac_subdirs_all Data/miplib3"
483ac_subdirs_all="$ac_subdirs_all CoinUtils"
484ac_subdirs_all="$ac_subdirs_all Osi"
485ac_subdirs_all="$ac_subdirs_all Clp"
486ac_subdirs_all="$ac_subdirs_all DyLP"
487ac_subdirs_all="$ac_subdirs_all Vol"
488ac_subdirs_all="$ac_subdirs_all Cgl"
489ac_subdirs_all="$ac_subdirs_all Cbc"
490ac_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 COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_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 COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP LN_S 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 ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
491ac_subst_files=''
492
493# Initialize some variables set by options.
494ac_init_help=
495ac_init_version=false
496# The variables have the same names as the options, with
497# dashes changed to underlines.
498cache_file=/dev/null
499exec_prefix=NONE
500no_create=
501no_recursion=
502prefix=NONE
503program_prefix=NONE
504program_suffix=NONE
505program_transform_name=s,x,x,
506silent=
507site=
508srcdir=
509verbose=
510x_includes=NONE
511x_libraries=NONE
512
513# Installation directory options.
514# These are left unexpanded so users can "make install exec_prefix=/foo"
515# and all the variables that are supposed to be based on exec_prefix
516# by default will actually change.
517# Use braces instead of parens because sh, perl, etc. also accept them.
518bindir='${exec_prefix}/bin'
519sbindir='${exec_prefix}/sbin'
520libexecdir='${exec_prefix}/libexec'
521datadir='${prefix}/share'
522sysconfdir='${prefix}/etc'
523sharedstatedir='${prefix}/com'
524localstatedir='${prefix}/var'
525libdir='${exec_prefix}/lib'
526includedir='${prefix}/include'
527oldincludedir='/usr/include'
528infodir='${prefix}/info'
529mandir='${prefix}/man'
530
531ac_prev=
532for ac_option
533do
534  # If the previous option needs an argument, assign it.
535  if test -n "$ac_prev"; then
536    eval "$ac_prev=\$ac_option"
537    ac_prev=
538    continue
539  fi
540
541  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
542
543  # Accept the important Cygnus configure options, so we can diagnose typos.
544
545  case $ac_option in
546
547  -bindir | --bindir | --bindi | --bind | --bin | --bi)
548    ac_prev=bindir ;;
549  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
550    bindir=$ac_optarg ;;
551
552  -build | --build | --buil | --bui | --bu)
553    ac_prev=build_alias ;;
554  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
555    build_alias=$ac_optarg ;;
556
557  -cache-file | --cache-file | --cache-fil | --cache-fi \
558  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
559    ac_prev=cache_file ;;
560  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
561  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
562    cache_file=$ac_optarg ;;
563
564  --config-cache | -C)
565    cache_file=config.cache ;;
566
567  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
568    ac_prev=datadir ;;
569  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
570  | --da=*)
571    datadir=$ac_optarg ;;
572
573  -disable-* | --disable-*)
574    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
575    # Reject names that are not valid shell variable names.
576    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
578   { (exit 1); exit 1; }; }
579    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
580    eval "enable_$ac_feature=no" ;;
581
582  -enable-* | --enable-*)
583    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
584    # Reject names that are not valid shell variable names.
585    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
587   { (exit 1); exit 1; }; }
588    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
589    case $ac_option in
590      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591      *) ac_optarg=yes ;;
592    esac
593    eval "enable_$ac_feature='$ac_optarg'" ;;
594
595  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
596  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
597  | --exec | --exe | --ex)
598    ac_prev=exec_prefix ;;
599  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
600  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
601  | --exec=* | --exe=* | --ex=*)
602    exec_prefix=$ac_optarg ;;
603
604  -gas | --gas | --ga | --g)
605    # Obsolete; use --with-gas.
606    with_gas=yes ;;
607
608  -help | --help | --hel | --he | -h)
609    ac_init_help=long ;;
610  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
611    ac_init_help=recursive ;;
612  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
613    ac_init_help=short ;;
614
615  -host | --host | --hos | --ho)
616    ac_prev=host_alias ;;
617  -host=* | --host=* | --hos=* | --ho=*)
618    host_alias=$ac_optarg ;;
619
620  -includedir | --includedir | --includedi | --included | --include \
621  | --includ | --inclu | --incl | --inc)
622    ac_prev=includedir ;;
623  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
624  | --includ=* | --inclu=* | --incl=* | --inc=*)
625    includedir=$ac_optarg ;;
626
627  -infodir | --infodir | --infodi | --infod | --info | --inf)
628    ac_prev=infodir ;;
629  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
630    infodir=$ac_optarg ;;
631
632  -libdir | --libdir | --libdi | --libd)
633    ac_prev=libdir ;;
634  -libdir=* | --libdir=* | --libdi=* | --libd=*)
635    libdir=$ac_optarg ;;
636
637  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
638  | --libexe | --libex | --libe)
639    ac_prev=libexecdir ;;
640  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
641  | --libexe=* | --libex=* | --libe=*)
642    libexecdir=$ac_optarg ;;
643
644  -localstatedir | --localstatedir | --localstatedi | --localstated \
645  | --localstate | --localstat | --localsta | --localst \
646  | --locals | --local | --loca | --loc | --lo)
647    ac_prev=localstatedir ;;
648  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
649  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
650  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
651    localstatedir=$ac_optarg ;;
652
653  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
654    ac_prev=mandir ;;
655  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
656    mandir=$ac_optarg ;;
657
658  -nfp | --nfp | --nf)
659    # Obsolete; use --without-fp.
660    with_fp=no ;;
661
662  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
663  | --no-cr | --no-c | -n)
664    no_create=yes ;;
665
666  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
667  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
668    no_recursion=yes ;;
669
670  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
671  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
672  | --oldin | --oldi | --old | --ol | --o)
673    ac_prev=oldincludedir ;;
674  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
675  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
676  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
677    oldincludedir=$ac_optarg ;;
678
679  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
680    ac_prev=prefix ;;
681  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
682    prefix=$ac_optarg ;;
683
684  -program-prefix | --program-prefix | --program-prefi | --program-pref \
685  | --program-pre | --program-pr | --program-p)
686    ac_prev=program_prefix ;;
687  -program-prefix=* | --program-prefix=* | --program-prefi=* \
688  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
689    program_prefix=$ac_optarg ;;
690
691  -program-suffix | --program-suffix | --program-suffi | --program-suff \
692  | --program-suf | --program-su | --program-s)
693    ac_prev=program_suffix ;;
694  -program-suffix=* | --program-suffix=* | --program-suffi=* \
695  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
696    program_suffix=$ac_optarg ;;
697
698  -program-transform-name | --program-transform-name \
699  | --program-transform-nam | --program-transform-na \
700  | --program-transform-n | --program-transform- \
701  | --program-transform | --program-transfor \
702  | --program-transfo | --program-transf \
703  | --program-trans | --program-tran \
704  | --progr-tra | --program-tr | --program-t)
705    ac_prev=program_transform_name ;;
706  -program-transform-name=* | --program-transform-name=* \
707  | --program-transform-nam=* | --program-transform-na=* \
708  | --program-transform-n=* | --program-transform-=* \
709  | --program-transform=* | --program-transfor=* \
710  | --program-transfo=* | --program-transf=* \
711  | --program-trans=* | --program-tran=* \
712  | --progr-tra=* | --program-tr=* | --program-t=*)
713    program_transform_name=$ac_optarg ;;
714
715  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
716  | -silent | --silent | --silen | --sile | --sil)
717    silent=yes ;;
718
719  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
720    ac_prev=sbindir ;;
721  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
722  | --sbi=* | --sb=*)
723    sbindir=$ac_optarg ;;
724
725  -sharedstatedir | --sharedstatedir | --sharedstatedi \
726  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
727  | --sharedst | --shareds | --shared | --share | --shar \
728  | --sha | --sh)
729    ac_prev=sharedstatedir ;;
730  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
731  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
732  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
733  | --sha=* | --sh=*)
734    sharedstatedir=$ac_optarg ;;
735
736  -site | --site | --sit)
737    ac_prev=site ;;
738  -site=* | --site=* | --sit=*)
739    site=$ac_optarg ;;
740
741  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
742    ac_prev=srcdir ;;
743  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
744    srcdir=$ac_optarg ;;
745
746  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
747  | --syscon | --sysco | --sysc | --sys | --sy)
748    ac_prev=sysconfdir ;;
749  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
750  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
751    sysconfdir=$ac_optarg ;;
752
753  -target | --target | --targe | --targ | --tar | --ta | --t)
754    ac_prev=target_alias ;;
755  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
756    target_alias=$ac_optarg ;;
757
758  -v | -verbose | --verbose | --verbos | --verbo | --verb)
759    verbose=yes ;;
760
761  -version | --version | --versio | --versi | --vers | -V)
762    ac_init_version=: ;;
763
764  -with-* | --with-*)
765    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
766    # Reject names that are not valid shell variable names.
767    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768      { echo "$as_me: error: invalid package name: $ac_package" >&2
769   { (exit 1); exit 1; }; }
770    ac_package=`echo $ac_package| sed 's/-/_/g'`
771    case $ac_option in
772      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
773      *) ac_optarg=yes ;;
774    esac
775    eval "with_$ac_package='$ac_optarg'" ;;
776
777  -without-* | --without-*)
778    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
779    # Reject names that are not valid shell variable names.
780    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
781      { echo "$as_me: error: invalid package name: $ac_package" >&2
782   { (exit 1); exit 1; }; }
783    ac_package=`echo $ac_package | sed 's/-/_/g'`
784    eval "with_$ac_package=no" ;;
785
786  --x)
787    # Obsolete; use --with-x.
788    with_x=yes ;;
789
790  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
791  | --x-incl | --x-inc | --x-in | --x-i)
792    ac_prev=x_includes ;;
793  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
794  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
795    x_includes=$ac_optarg ;;
796
797  -x-libraries | --x-libraries | --x-librarie | --x-librari \
798  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
799    ac_prev=x_libraries ;;
800  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
801  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
802    x_libraries=$ac_optarg ;;
803
804  -*) { echo "$as_me: error: unrecognized option: $ac_option
805Try \`$0 --help' for more information." >&2
806   { (exit 1); exit 1; }; }
807    ;;
808
809  *=*)
810    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
811    # Reject names that are not valid shell variable names.
812    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
813      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
814   { (exit 1); exit 1; }; }
815    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
816    eval "$ac_envvar='$ac_optarg'"
817    export $ac_envvar ;;
818
819  *)
820    # FIXME: should be removed in autoconf 3.0.
821    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
822    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
824    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
825    ;;
826
827  esac
828done
829
830if test -n "$ac_prev"; then
831  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
832  { echo "$as_me: error: missing argument to $ac_option" >&2
833   { (exit 1); exit 1; }; }
834fi
835
836# Be sure to have absolute paths.
837for ac_var in exec_prefix prefix
838do
839  eval ac_val=$`echo $ac_var`
840  case $ac_val in
841    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
842    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843   { (exit 1); exit 1; }; };;
844  esac
845done
846
847# Be sure to have absolute paths.
848for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
849              localstatedir libdir includedir oldincludedir infodir mandir
850do
851  eval ac_val=$`echo $ac_var`
852  case $ac_val in
853    [\\/$]* | ?:[\\/]* ) ;;
854    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
855   { (exit 1); exit 1; }; };;
856  esac
857done
858
859# There might be people who depend on the old broken behavior: `$host'
860# used to hold the argument of --host etc.
861# FIXME: To remove some day.
862build=$build_alias
863host=$host_alias
864target=$target_alias
865
866# FIXME: To remove some day.
867if test "x$host_alias" != x; then
868  if test "x$build_alias" = x; then
869    cross_compiling=maybe
870    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
871    If a cross compiler is detected then cross compile mode will be used." >&2
872  elif test "x$build_alias" != "x$host_alias"; then
873    cross_compiling=yes
874  fi
875fi
876
877ac_tool_prefix=
878test -n "$host_alias" && ac_tool_prefix=$host_alias-
879
880test "$silent" = yes && exec 6>/dev/null
881
882
883# Find the source files, if location was not specified.
884if test -z "$srcdir"; then
885  ac_srcdir_defaulted=yes
886  # Try the directory containing this script, then its parent.
887  ac_confdir=`(dirname "$0") 2>/dev/null ||
888$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
889         X"$0" : 'X\(//\)[^/]' \| \
890         X"$0" : 'X\(//\)$' \| \
891         X"$0" : 'X\(/\)' \| \
892         .     : '\(.\)' 2>/dev/null ||
893echo X"$0" |
894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
895          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
896          /^X\(\/\/\)$/{ s//\1/; q; }
897          /^X\(\/\).*/{ s//\1/; q; }
898          s/.*/./; q'`
899  srcdir=$ac_confdir
900  if test ! -r $srcdir/$ac_unique_file; then
901    srcdir=..
902  fi
903else
904  ac_srcdir_defaulted=no
905fi
906if test ! -r $srcdir/$ac_unique_file; then
907  if test "$ac_srcdir_defaulted" = yes; then
908    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
909   { (exit 1); exit 1; }; }
910  else
911    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
912   { (exit 1); exit 1; }; }
913  fi
914fi
915(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
916  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
917   { (exit 1); exit 1; }; }
918srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
919ac_env_build_alias_set=${build_alias+set}
920ac_env_build_alias_value=$build_alias
921ac_cv_env_build_alias_set=${build_alias+set}
922ac_cv_env_build_alias_value=$build_alias
923ac_env_host_alias_set=${host_alias+set}
924ac_env_host_alias_value=$host_alias
925ac_cv_env_host_alias_set=${host_alias+set}
926ac_cv_env_host_alias_value=$host_alias
927ac_env_target_alias_set=${target_alias+set}
928ac_env_target_alias_value=$target_alias
929ac_cv_env_target_alias_set=${target_alias+set}
930ac_cv_env_target_alias_value=$target_alias
931ac_env_CDEFS_set=${CDEFS+set}
932ac_env_CDEFS_value=$CDEFS
933ac_cv_env_CDEFS_set=${CDEFS+set}
934ac_cv_env_CDEFS_value=$CDEFS
935ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
936ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
937ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
938ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
939ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
940ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
941ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
942ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
943ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
944ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
945ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
946ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
947ac_env_CC_set=${CC+set}
948ac_env_CC_value=$CC
949ac_cv_env_CC_set=${CC+set}
950ac_cv_env_CC_value=$CC
951ac_env_CFLAGS_set=${CFLAGS+set}
952ac_env_CFLAGS_value=$CFLAGS
953ac_cv_env_CFLAGS_set=${CFLAGS+set}
954ac_cv_env_CFLAGS_value=$CFLAGS
955ac_env_LDFLAGS_set=${LDFLAGS+set}
956ac_env_LDFLAGS_value=$LDFLAGS
957ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
958ac_cv_env_LDFLAGS_value=$LDFLAGS
959ac_env_CPPFLAGS_set=${CPPFLAGS+set}
960ac_env_CPPFLAGS_value=$CPPFLAGS
961ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
962ac_cv_env_CPPFLAGS_value=$CPPFLAGS
963ac_env_MPICC_set=${MPICC+set}
964ac_env_MPICC_value=$MPICC
965ac_cv_env_MPICC_set=${MPICC+set}
966ac_cv_env_MPICC_value=$MPICC
967ac_env_CXXDEFS_set=${CXXDEFS+set}
968ac_env_CXXDEFS_value=$CXXDEFS
969ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
970ac_cv_env_CXXDEFS_value=$CXXDEFS
971ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
972ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
973ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
974ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
975ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
976ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
977ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
978ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
979ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
980ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
981ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
982ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
983ac_env_CXX_set=${CXX+set}
984ac_env_CXX_value=$CXX
985ac_cv_env_CXX_set=${CXX+set}
986ac_cv_env_CXX_value=$CXX
987ac_env_CXXFLAGS_set=${CXXFLAGS+set}
988ac_env_CXXFLAGS_value=$CXXFLAGS
989ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
990ac_cv_env_CXXFLAGS_value=$CXXFLAGS
991ac_env_MPICXX_set=${MPICXX+set}
992ac_env_MPICXX_value=$MPICXX
993ac_cv_env_MPICXX_set=${MPICXX+set}
994ac_cv_env_MPICXX_value=$MPICXX
995ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
996ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
997ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
998ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
999ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1000ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1001ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1002ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1003ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1004ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1005ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1006ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1007ac_env_F77_set=${F77+set}
1008ac_env_F77_value=$F77
1009ac_cv_env_F77_set=${F77+set}
1010ac_cv_env_F77_value=$F77
1011ac_env_FFLAGS_set=${FFLAGS+set}
1012ac_env_FFLAGS_value=$FFLAGS
1013ac_cv_env_FFLAGS_set=${FFLAGS+set}
1014ac_cv_env_FFLAGS_value=$FFLAGS
1015ac_env_MPIF77_set=${MPIF77+set}
1016ac_env_MPIF77_value=$MPIF77
1017ac_cv_env_MPIF77_set=${MPIF77+set}
1018ac_cv_env_MPIF77_value=$MPIF77
1019ac_env_CPP_set=${CPP+set}
1020ac_env_CPP_value=$CPP
1021ac_cv_env_CPP_set=${CPP+set}
1022ac_cv_env_CPP_value=$CPP
1023ac_env_CXXCPP_set=${CXXCPP+set}
1024ac_env_CXXCPP_value=$CXXCPP
1025ac_cv_env_CXXCPP_set=${CXXCPP+set}
1026ac_cv_env_CXXCPP_value=$CXXCPP
1027ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1028ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1029ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1030ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1031
1032#
1033# Report the --help message.
1034#
1035if test "$ac_init_help" = "long"; then
1036  # Omit some internal or obsolete options to make the list less imposing.
1037  # This message is too long to be a string in the A/UX 3.1 sh.
1038  cat <<_ACEOF
1039\`configure' configures Cbc trunk to adapt to many kinds of systems.
1040
1041Usage: $0 [OPTION]... [VAR=VALUE]...
1042
1043To assign environment variables (e.g., CC, CFLAGS...), specify them as
1044VAR=VALUE.  See below for descriptions of some of the useful variables.
1045
1046Defaults for the options are specified in brackets.
1047
1048Configuration:
1049  -h, --help              display this help and exit
1050      --help=short        display options specific to this package
1051      --help=recursive    display the short help of all the included packages
1052  -V, --version           display version information and exit
1053  -q, --quiet, --silent   do not print \`checking...' messages
1054      --cache-file=FILE   cache test results in FILE [disabled]
1055  -C, --config-cache      alias for \`--cache-file=config.cache'
1056  -n, --no-create         do not create output files
1057      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1058
1059_ACEOF
1060
1061  cat <<_ACEOF
1062Installation directories:
1063  --prefix=PREFIX         install architecture-independent files in PREFIX
1064                          [$ac_default_prefix]
1065  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1066                          [PREFIX]
1067
1068By default, \`make install' will install all the files in
1069\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1070an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1071for instance \`--prefix=\$HOME'.
1072
1073For better control, use the options below.
1074
1075Fine tuning of the installation directories:
1076  --bindir=DIR           user executables [EPREFIX/bin]
1077  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1078  --libexecdir=DIR       program executables [EPREFIX/libexec]
1079  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1080  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1081  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1082  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1083  --libdir=DIR           object code libraries [EPREFIX/lib]
1084  --includedir=DIR       C header files [PREFIX/include]
1085  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1086  --infodir=DIR          info documentation [PREFIX/info]
1087  --mandir=DIR           man documentation [PREFIX/man]
1088_ACEOF
1089
1090  cat <<\_ACEOF
1091
1092Program names:
1093  --program-prefix=PREFIX            prepend PREFIX to installed program names
1094  --program-suffix=SUFFIX            append SUFFIX to installed program names
1095  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1096
1097System types:
1098  --build=BUILD     configure for building on BUILD [guessed]
1099  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1100_ACEOF
1101fi
1102
1103if test -n "$ac_init_help"; then
1104  case $ac_init_help in
1105     short | recursive ) echo "Configuration of Cbc trunk:";;
1106   esac
1107  cat <<\_ACEOF
1108
1109Optional Features:
1110  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1111  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1112  --enable-debug          compile all projects with debug options tests
1113  --enable-doscompile     Under Cygwin, compile so that executables run under
1114                          DOS. Set to mingw to use gcc/g++/ld with
1115                          -mno-cygwin. Set to msvc to use cl/link (or
1116                          icl/link). Default when mentioned: mingw. Default
1117                          when not mentioned: disabled.
1118  --enable-static[=PKGS]
1119                          build static libraries [default=no]
1120  --disable-dependency-tracking  speeds up one-time build
1121  --enable-dependency-tracking   do not reject slow dependency extractors
1122  --enable-maintainer-mode  enable make rules and dependencies not useful
1123                          (and sometimes confusing) to the casual installer
1124  --enable-shared[=PKGS]
1125                          build shared libraries [default=yes]
1126  --enable-fast-install[=PKGS]
1127                          optimize for fast installation [default=yes]
1128  --disable-libtool-lock  avoid locking (might break parallel builds)
1129
1130Optional Packages:
1131  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1132  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1133  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1134  --with-pic              try to use only PIC/non-PIC objects [default=use
1135                          both]
1136  --with-tags[=TAGS]
1137                          include additional configurations [automatic]
1138  --with-asl-lib linker flags for using project ASL
1139  --with-asl-incdir directory with header files for using project ASL
1140  --with-asl-datadir directory with data files for using project ASL
1141  --with-blas-lib linker flags for using project Blas
1142  --with-blas-incdir directory with header files for using project Blas
1143  --with-blas-datadir directory with data files for using project Blas
1144  --with-blas             specify BLAS library (or BUILD to enforce use of
1145                          ThirdParty/Blas)
1146  --with-lapack-lib linker flags for using project Lapack
1147  --with-lapack-incdir directory with header files for using project Lapack
1148  --with-lapack-datadir directory with data files for using project Lapack
1149  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1150                          ThirdParty/Lapack)
1151  --with-glpk-lib linker flags for using project Glpk
1152  --with-glpk-incdir directory with header files for using project Glpk
1153  --with-glpk-datadir directory with data files for using project Glpk
1154  --with-sample-lib linker flags for using project Sample
1155  --with-sample-incdir directory with header files for using project Sample
1156  --with-sample-datadir directory with data files for using project Sample
1157  --with-netlib-lib linker flags for using project Netlib
1158  --with-netlib-incdir directory with header files for using project Netlib
1159  --with-netlib-datadir directory with data files for using project Netlib
1160  --with-miplib3-lib linker flags for using project miplib3
1161  --with-miplib3-incdir directory with header files for using project miplib3
1162  --with-miplib3-datadir directory with data files for using project miplib3
1163  --with-coinutils-lib linker flags for using project CoinUtils
1164  --with-coinutils-incdir directory with header files for using project
1165                          CoinUtils
1166  --with-coinutils-datadir
1167                          directory with data files for using project
1168                          CoinUtils
1169  --with-osi-lib linker flags for using project Osi
1170  --with-osi-incdir directory with header files for using project Osi
1171  --with-osi-datadir directory with data files for using project Osi
1172  --with-clp-lib linker flags for using project Clp
1173  --with-clp-incdir directory with header files for using project Clp
1174  --with-clp-datadir directory with data files for using project Clp
1175  --with-dylp-lib linker flags for using project DyLP
1176  --with-dylp-incdir directory with header files for using project DyLP
1177  --with-dylp-datadir directory with data files for using project DyLP
1178  --with-vol-lib linker flags for using project Vol
1179  --with-vol-incdir directory with header files for using project Vol
1180  --with-vol-datadir directory with data files for using project Vol
1181  --with-cgl-lib linker flags for using project Cgl
1182  --with-cgl-incdir directory with header files for using project Cgl
1183  --with-cgl-datadir directory with data files for using project Cgl
1184  --with-cbc-lib linker flags for using project Cbc
1185  --with-cbc-incdir directory with header files for using project Cbc
1186  --with-cbc-datadir directory with data files for using project Cbc
1187  --with-dot              use dot (from graphviz) when creating documentation
1188                          with doxygen if available; --without-dot to disable
1189
1190Some influential environment variables:
1191  CDEFS       Additional -D flags to be used when compiling C code.
1192  ADD_CFLAGS  Additional C compiler options
1193  DBG_CFLAGS  Debug C compiler options
1194  OPT_CFLAGS  Optimize C compiler options
1195  CC          C compiler command
1196  CFLAGS      C compiler flags
1197  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1198              nonstandard directory <lib dir>
1199  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1200              headers in a nonstandard directory <include dir>
1201  MPICC       C MPI Compiler
1202  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1203  ADD_CXXFLAGS
1204              Additional C++ compiler options
1205  DBG_CXXFLAGS
1206              Debug C++ compiler options
1207  OPT_CXXFLAGS
1208              Optimize C++ compiler options
1209  CXX         C++ compiler command
1210  CXXFLAGS    C++ compiler flags
1211  MPICXX      C++ MPI Compiler
1212  ADD_FFLAGS  Additional Fortran compiler options
1213  DBG_FFLAGS  Debug Fortran compiler options
1214  OPT_FFLAGS  Optimize Fortran compiler options
1215  F77         Fortran 77 compiler command
1216  FFLAGS      Fortran 77 compiler flags
1217  MPIF77      Fortran MPI Compiler
1218  CPP         C preprocessor
1219  CXXCPP      C++ preprocessor
1220  COIN_SKIP_PROJECTS
1221              Set to the subdirectories of projects that should be skipped in
1222              the configuration
1223
1224Use these variables to override the choices made by `configure' or to help
1225it to find libraries and programs with nonstandard names/locations.
1226
1227Report bugs to <cbc@lists.coin-or.org>.
1228_ACEOF
1229fi
1230
1231if test "$ac_init_help" = "recursive"; then
1232  # If there are subdirs, report their specific --help.
1233  ac_popdir=`pwd`
1234  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1235    test -d $ac_dir || continue
1236    ac_builddir=.
1237
1238if test "$ac_dir" != .; then
1239  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1240  # A "../" for each directory in $ac_dir_suffix.
1241  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1242else
1243  ac_dir_suffix= ac_top_builddir=
1244fi
1245
1246case $srcdir in
1247  .)  # No --srcdir option.  We are building in place.
1248    ac_srcdir=.
1249    if test -z "$ac_top_builddir"; then
1250       ac_top_srcdir=.
1251    else
1252       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1253    fi ;;
1254  [\\/]* | ?:[\\/]* )  # Absolute path.
1255    ac_srcdir=$srcdir$ac_dir_suffix;
1256    ac_top_srcdir=$srcdir ;;
1257  *) # Relative path.
1258    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1259    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1260esac
1261
1262# Do not use `cd foo && pwd` to compute absolute paths, because
1263# the directories may not exist.
1264case `pwd` in
1265.) ac_abs_builddir="$ac_dir";;
1266*)
1267  case "$ac_dir" in
1268  .) ac_abs_builddir=`pwd`;;
1269  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1270  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1271  esac;;
1272esac
1273case $ac_abs_builddir in
1274.) ac_abs_top_builddir=${ac_top_builddir}.;;
1275*)
1276  case ${ac_top_builddir}. in
1277  .) ac_abs_top_builddir=$ac_abs_builddir;;
1278  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1279  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1280  esac;;
1281esac
1282case $ac_abs_builddir in
1283.) ac_abs_srcdir=$ac_srcdir;;
1284*)
1285  case $ac_srcdir in
1286  .) ac_abs_srcdir=$ac_abs_builddir;;
1287  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1288  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1289  esac;;
1290esac
1291case $ac_abs_builddir in
1292.) ac_abs_top_srcdir=$ac_top_srcdir;;
1293*)
1294  case $ac_top_srcdir in
1295  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1296  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1297  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1298  esac;;
1299esac
1300
1301    cd $ac_dir
1302    # Check for guested configure; otherwise get Cygnus style configure.
1303    if test -f $ac_srcdir/configure.gnu; then
1304      echo
1305      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1306    elif test -f $ac_srcdir/configure; then
1307      echo
1308      $SHELL $ac_srcdir/configure  --help=recursive
1309    elif test -f $ac_srcdir/configure.ac ||
1310           test -f $ac_srcdir/configure.in; then
1311      echo
1312      $ac_configure --help
1313    else
1314      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1315    fi
1316    cd $ac_popdir
1317  done
1318fi
1319
1320test -n "$ac_init_help" && exit 0
1321if $ac_init_version; then
1322  cat <<\_ACEOF
1323Cbc configure trunk
1324generated by GNU Autoconf 2.59
1325
1326Copyright (C) 2003 Free Software Foundation, Inc.
1327This configure script is free software; the Free Software Foundation
1328gives unlimited permission to copy, distribute and modify it.
1329
1330
1331Copyright 2006 International Business Machines and others.
1332All Rights Reserved.
1333This file is part of the open source package Coin which is distributed
1334under the Eclipse Public License.
1335_ACEOF
1336  exit 0
1337fi
1338exec 5>config.log
1339cat >&5 <<_ACEOF
1340This file contains any messages produced by compilers while
1341running configure, to aid debugging if configure makes a mistake.
1342
1343It was created by Cbc $as_me trunk, which was
1344generated by GNU Autoconf 2.59.  Invocation command line was
1345
1346  $ $0 $@
1347
1348_ACEOF
1349{
1350cat <<_ASUNAME
1351## --------- ##
1352## Platform. ##
1353## --------- ##
1354
1355hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1356uname -m = `(uname -m) 2>/dev/null || echo unknown`
1357uname -r = `(uname -r) 2>/dev/null || echo unknown`
1358uname -s = `(uname -s) 2>/dev/null || echo unknown`
1359uname -v = `(uname -v) 2>/dev/null || echo unknown`
1360
1361/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1362/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1363
1364/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1365/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1366/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1367hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1368/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1369/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1370/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1371
1372_ASUNAME
1373
1374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1375for as_dir in $PATH
1376do
1377  IFS=$as_save_IFS
1378  test -z "$as_dir" && as_dir=.
1379  echo "PATH: $as_dir"
1380done
1381
1382} >&5
1383
1384cat >&5 <<_ACEOF
1385
1386
1387## ----------- ##
1388## Core tests. ##
1389## ----------- ##
1390
1391_ACEOF
1392
1393
1394# Keep a trace of the command line.
1395# Strip out --no-create and --no-recursion so they do not pile up.
1396# Strip out --silent because we don't want to record it for future runs.
1397# Also quote any args containing shell meta-characters.
1398# Make two passes to allow for proper duplicate-argument suppression.
1399ac_configure_args=
1400ac_configure_args0=
1401ac_configure_args1=
1402ac_sep=
1403ac_must_keep_next=false
1404for ac_pass in 1 2
1405do
1406  for ac_arg
1407  do
1408    case $ac_arg in
1409    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1410    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1411    | -silent | --silent | --silen | --sile | --sil)
1412      continue ;;
1413    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1414      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1415    esac
1416    case $ac_pass in
1417    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1418    2)
1419      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1420      if test $ac_must_keep_next = true; then
1421        ac_must_keep_next=false # Got value, back to normal.
1422      else
1423        case $ac_arg in
1424          *=* | --config-cache | -C | -disable-* | --disable-* \
1425          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1426          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1427          | -with-* | --with-* | -without-* | --without-* | --x)
1428            case "$ac_configure_args0 " in
1429              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1430            esac
1431            ;;
1432          -* ) ac_must_keep_next=true ;;
1433        esac
1434      fi
1435      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1436      # Get rid of the leading space.
1437      ac_sep=" "
1438      ;;
1439    esac
1440  done
1441done
1442$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1443$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1444
1445# When interrupted or exit'd, cleanup temporary files, and complete
1446# config.log.  We remove comments because anyway the quotes in there
1447# would cause problems or look ugly.
1448# WARNING: Be sure not to use single quotes in there, as some shells,
1449# such as our DU 5.0 friend, will then `close' the trap.
1450trap 'exit_status=$?
1451  # Save into config.log some information that might help in debugging.
1452  {
1453    echo
1454
1455    cat <<\_ASBOX
1456## ---------------- ##
1457## Cache variables. ##
1458## ---------------- ##
1459_ASBOX
1460    echo
1461    # The following way of writing the cache mishandles newlines in values,
1462{
1463  (set) 2>&1 |
1464    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1465    *ac_space=\ *)
1466      sed -n \
1467        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1468          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1469      ;;
1470    *)
1471      sed -n \
1472        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1473      ;;
1474    esac;
1475}
1476    echo
1477
1478    cat <<\_ASBOX
1479## ----------------- ##
1480## Output variables. ##
1481## ----------------- ##
1482_ASBOX
1483    echo
1484    for ac_var in $ac_subst_vars
1485    do
1486      eval ac_val=$`echo $ac_var`
1487      echo "$ac_var='"'"'$ac_val'"'"'"
1488    done | sort
1489    echo
1490
1491    if test -n "$ac_subst_files"; then
1492      cat <<\_ASBOX
1493## ------------- ##
1494## Output files. ##
1495## ------------- ##
1496_ASBOX
1497      echo
1498      for ac_var in $ac_subst_files
1499      do
1500        eval ac_val=$`echo $ac_var`
1501        echo "$ac_var='"'"'$ac_val'"'"'"
1502      done | sort
1503      echo
1504    fi
1505
1506    if test -s confdefs.h; then
1507      cat <<\_ASBOX
1508## ----------- ##
1509## confdefs.h. ##
1510## ----------- ##
1511_ASBOX
1512      echo
1513      sed "/^$/d" confdefs.h | sort
1514      echo
1515    fi
1516    test "$ac_signal" != 0 &&
1517      echo "$as_me: caught signal $ac_signal"
1518    echo "$as_me: exit $exit_status"
1519  } >&5
1520  rm -f core *.core &&
1521  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1522    exit $exit_status
1523     ' 0
1524for ac_signal in 1 2 13 15; do
1525  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1526done
1527ac_signal=0
1528
1529# confdefs.h avoids OS command line length limits that DEFS can exceed.
1530rm -rf conftest* confdefs.h
1531# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1532echo >confdefs.h
1533
1534# Predefined preprocessor variables.
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_NAME "$PACKAGE_NAME"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1543_ACEOF
1544
1545
1546cat >>confdefs.h <<_ACEOF
1547#define PACKAGE_VERSION "$PACKAGE_VERSION"
1548_ACEOF
1549
1550
1551cat >>confdefs.h <<_ACEOF
1552#define PACKAGE_STRING "$PACKAGE_STRING"
1553_ACEOF
1554
1555
1556cat >>confdefs.h <<_ACEOF
1557#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1558_ACEOF
1559
1560
1561# Let the site file select an alternate cache file if it wants to.
1562# Prefer explicitly selected file to automatically selected ones.
1563if test -z "$CONFIG_SITE"; then
1564  if test "x$prefix" != xNONE; then
1565    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1566  else
1567    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1568  fi
1569fi
1570for ac_site_file in $CONFIG_SITE; do
1571  if test -r "$ac_site_file"; then
1572    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1573echo "$as_me: loading site script $ac_site_file" >&6;}
1574    sed 's/^/| /' "$ac_site_file" >&5
1575    . "$ac_site_file"
1576  fi
1577done
1578
1579if test -r "$cache_file"; then
1580  # Some versions of bash will fail to source /dev/null (special
1581  # files actually), so we avoid doing that.
1582  if test -f "$cache_file"; then
1583    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1584echo "$as_me: loading cache $cache_file" >&6;}
1585    case $cache_file in
1586      [\\/]* | ?:[\\/]* ) . $cache_file;;
1587      *)                      . ./$cache_file;;
1588    esac
1589  fi
1590else
1591  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1592echo "$as_me: creating cache $cache_file" >&6;}
1593  >$cache_file
1594fi
1595
1596# Check that the precious variables saved in the cache have kept the same
1597# value.
1598ac_cache_corrupted=false
1599for ac_var in `(set) 2>&1 |
1600               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1601  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1602  eval ac_new_set=\$ac_env_${ac_var}_set
1603  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1604  eval ac_new_val="\$ac_env_${ac_var}_value"
1605  case $ac_old_set,$ac_new_set in
1606    set,)
1607      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1608echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1609      ac_cache_corrupted=: ;;
1610    ,set)
1611      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1612echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1613      ac_cache_corrupted=: ;;
1614    ,);;
1615    *)
1616      if test "x$ac_old_val" != "x$ac_new_val"; then
1617        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1618echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1619        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1620echo "$as_me:   former value:  $ac_old_val" >&2;}
1621        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1622echo "$as_me:   current value: $ac_new_val" >&2;}
1623        ac_cache_corrupted=:
1624      fi;;
1625  esac
1626  # Pass precious variables to config.status.
1627  if test "$ac_new_set" = set; then
1628    case $ac_new_val in
1629    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1630      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1631    *) ac_arg=$ac_var=$ac_new_val ;;
1632    esac
1633    case " $ac_configure_args " in
1634      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1635      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1636    esac
1637  fi
1638done
1639if $ac_cache_corrupted; then
1640  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1641echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1642  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1643echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1644   { (exit 1); exit 1; }; }
1645fi
1646
1647ac_ext=c
1648ac_cpp='$CPP $CPPFLAGS'
1649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1651ac_compiler_gnu=$ac_cv_c_compiler_gnu
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684# List one file in the package so that the configure script can test
1685# whether the package is actually there
1686
1687
1688# Where should everything be installed by default?  Here, we want it
1689# to be installed directly in 'bin', 'lib', 'include' subdirectories
1690# of the directory where configure is run.  The default would be
1691# /usr/local.
1692
1693
1694#############################################################################
1695#  Do the tests necessary to configure compilers and initialise autotools   #
1696#############################################################################
1697
1698ac_aux_dir=
1699for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1700  if test -f $ac_dir/install-sh; then
1701    ac_aux_dir=$ac_dir
1702    ac_install_sh="$ac_aux_dir/install-sh -c"
1703    break
1704  elif test -f $ac_dir/install.sh; then
1705    ac_aux_dir=$ac_dir
1706    ac_install_sh="$ac_aux_dir/install.sh -c"
1707    break
1708  elif test -f $ac_dir/shtool; then
1709    ac_aux_dir=$ac_dir
1710    ac_install_sh="$ac_aux_dir/shtool install -c"
1711    break
1712  fi
1713done
1714if test -z "$ac_aux_dir"; then
1715  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1716echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1717   { (exit 1); exit 1; }; }
1718fi
1719ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1720ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1721ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1722
1723# Make sure we can run config.sub.
1724$ac_config_sub sun4 >/dev/null 2>&1 ||
1725  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1726echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1727   { (exit 1); exit 1; }; }
1728
1729echo "$as_me:$LINENO: checking build system type" >&5
1730echo $ECHO_N "checking build system type... $ECHO_C" >&6
1731if test "${ac_cv_build+set}" = set; then
1732  echo $ECHO_N "(cached) $ECHO_C" >&6
1733else
1734  ac_cv_build_alias=$build_alias
1735test -z "$ac_cv_build_alias" &&
1736  ac_cv_build_alias=`$ac_config_guess`
1737test -z "$ac_cv_build_alias" &&
1738  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1739echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1740   { (exit 1); exit 1; }; }
1741ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1742  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1743echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1744   { (exit 1); exit 1; }; }
1745
1746fi
1747echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1748echo "${ECHO_T}$ac_cv_build" >&6
1749build=$ac_cv_build
1750build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1751build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1752build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1753
1754
1755
1756# Check if user wants to produce debugging code
1757
1758echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1759echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1760
1761# Check whether --enable-debug or --disable-debug was given.
1762if test "${enable_debug+set}" = set; then
1763  enableval="$enable_debug"
1764  case "${enableval}" in
1765   yes) coin_debug_compile=true
1766        if test "${enable_shared+set}" = set; then :; else
1767          enable_shared=no
1768        fi
1769        ;;
1770   no)  coin_debug_compile=false
1771        ;;
1772   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1773echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1774   { (exit 1); exit 1; }; }
1775        ;;
1776esac
1777else
1778  coin_debug_compile=false
1779fi;
1780
1781 # m4_ifvaln([],
1782
1783if test $coin_debug_compile = true; then
1784  echo "$as_me:$LINENO: result: yes" >&5
1785echo "${ECHO_T}yes" >&6
1786else
1787  echo "$as_me:$LINENO: result: no" >&5
1788echo "${ECHO_T}no" >&6
1789fi
1790
1791 # m4_ifvaln([],
1792
1793
1794
1795# Get the name of the C compiler and appropriate compiler options
1796case $build in
1797  *-mingw*)
1798    if test "${LD+set}" = set; then :; else
1799      LD=link
1800    fi
1801    ;;
1802 esac
1803 case $enable_doscompile in
1804   msvc)
1805     if test "x${LD+set}" = xset; then :; else
1806       LD=link
1807     fi
1808     ;;
1809 esac
1810
1811
1812 # Check whether --enable-doscompile or --disable-doscompile was given.
1813if test "${enable_doscompile+set}" = set; then
1814  enableval="$enable_doscompile"
1815  if test "$enable_doscompile" != no; then
1816     case $build in
1817       *-cygwin* | *-mingw*) ;;
1818       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1819echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1820   { (exit 1); exit 1; }; } ;;
1821     esac
1822   fi
1823else
1824  enable_doscompile=no
1825fi;
1826 case "$enable_doscompile" in
1827   mingw)
1828     case $build in
1829       *-mingw*) enable_doscompile=no ;;
1830     esac
1831     ;;
1832   msvc|no) ;;
1833   yes) enable_doscompile=mingw ;;
1834   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1835                    Try configure --help=recursive." >&5
1836echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1837                    Try configure --help=recursive." >&2;}
1838   { (exit 1); exit 1; }; }
1839      ;;
1840  esac
1841  if test "$enable_doscompile" != no ; then
1842    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1843echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1844  fi
1845
1846
1847
1848
1849ac_ext=c
1850ac_cpp='$CPP $CPPFLAGS'
1851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1853ac_compiler_gnu=$ac_cv_c_compiler_gnu
1854
1855
1856# For consistency, we set the C compiler to the same value of the C++
1857# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1858if test x"$CXX" != x; then
1859  case "$CXX" in
1860    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1861      if test x"$CC" = x; then
1862        CC="$CXX"
1863        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1864echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1865      fi
1866      ;;
1867  esac
1868fi
1869
1870# add automake conditional so we can recognize cl compiler in makefile
1871coin_cc_is_cl=false
1872if test x"$CXX" != x; then
1873  case "$CXX" in
1874    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1875      coin_cc_is_cl=true
1876      ;;
1877  esac
1878fi
1879
1880
1881if test $coin_cc_is_cl = true; then
1882  COIN_CC_IS_CL_TRUE=
1883  COIN_CC_IS_CL_FALSE='#'
1884else
1885  COIN_CC_IS_CL_TRUE='#'
1886  COIN_CC_IS_CL_FALSE=
1887fi
1888
1889
1890
1891
1892
1893
1894
1895coin_has_cc=yes
1896
1897save_cflags="$CFLAGS"
1898
1899# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1900# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1901# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1902# compiler. In this case, put cc after gcc.
1903
1904case $build in
1905  *-cygwin* | *-mingw*)
1906             if test "$enable_doscompile" = msvc ; then
1907               comps="icl cl"
1908             else
1909               comps="gcc cl"
1910             fi ;;
1911  *-*-solaris*)
1912             # Extract the first word of "cc", so it can be a program name with args.
1913set dummy cc; ac_word=$2
1914echo "$as_me:$LINENO: checking for $ac_word" >&5
1915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1917  echo $ECHO_N "(cached) $ECHO_C" >&6
1918else
1919  if test -n "$sol_cc_compiler"; then
1920  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1921else
1922  ac_prog_rejected=no
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926  IFS=$as_save_IFS
1927  test -z "$as_dir" && as_dir=.
1928  for ac_exec_ext in '' $ac_executable_extensions; do
1929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1931       ac_prog_rejected=yes
1932       continue
1933     fi
1934    ac_cv_prog_sol_cc_compiler="cc"
1935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936    break 2
1937  fi
1938done
1939done
1940
1941if test $ac_prog_rejected = yes; then
1942  # We found a bogon in the path, so make sure we never use it.
1943  set dummy $ac_cv_prog_sol_cc_compiler
1944  shift
1945  if test $# != 0; then
1946    # We chose a different compiler from the bogus one.
1947    # However, it has the same basename, so the bogon will be chosen
1948    # first if we set sol_cc_compiler to just the basename; use the full file name.
1949    shift
1950    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1951  fi
1952fi
1953fi
1954fi
1955sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1956if test -n "$sol_cc_compiler"; then
1957  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1958echo "${ECHO_T}$sol_cc_compiler" >&6
1959else
1960  echo "$as_me:$LINENO: result: no" >&5
1961echo "${ECHO_T}no" >&6
1962fi
1963
1964             if test "$sol_cc_compiler" = "cc" ; then
1965               comps="cc xlc gcc pgcc icc"
1966             else
1967               comps="xlc gcc pgcc icc cc"
1968             fi
1969             ;;
1970  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1971  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1972  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1973esac
1974
1975# We delete the cached value, since the test might not have been
1976# performed with our choice of compilers earlier
1977$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1978# AC_MSG_NOTICE([C compiler candidates: $comps])
1979ac_ext=c
1980ac_cpp='$CPP $CPPFLAGS'
1981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1983ac_compiler_gnu=$ac_cv_c_compiler_gnu
1984if test -n "$ac_tool_prefix"; then
1985  for ac_prog in $comps
1986  do
1987    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1988set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1989echo "$as_me:$LINENO: checking for $ac_word" >&5
1990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991if test "${ac_cv_prog_CC+set}" = set; then
1992  echo $ECHO_N "(cached) $ECHO_C" >&6
1993else
1994  if test -n "$CC"; then
1995  ac_cv_prog_CC="$CC" # Let the user override the test.
1996else
1997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998for as_dir in $PATH
1999do
2000  IFS=$as_save_IFS
2001  test -z "$as_dir" && as_dir=.
2002  for ac_exec_ext in '' $ac_executable_extensions; do
2003  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2005    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006    break 2
2007  fi
2008done
2009done
2010
2011fi
2012fi
2013CC=$ac_cv_prog_CC
2014if test -n "$CC"; then
2015  echo "$as_me:$LINENO: result: $CC" >&5
2016echo "${ECHO_T}$CC" >&6
2017else
2018  echo "$as_me:$LINENO: result: no" >&5
2019echo "${ECHO_T}no" >&6
2020fi
2021
2022    test -n "$CC" && break
2023  done
2024fi
2025if test -z "$CC"; then
2026  ac_ct_CC=$CC
2027  for ac_prog in $comps
2028do
2029  # Extract the first word of "$ac_prog", so it can be a program name with args.
2030set dummy $ac_prog; ac_word=$2
2031echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034  echo $ECHO_N "(cached) $ECHO_C" >&6
2035else
2036  if test -n "$ac_ct_CC"; then
2037  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038else
2039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040for as_dir in $PATH
2041do
2042  IFS=$as_save_IFS
2043  test -z "$as_dir" && as_dir=.
2044  for ac_exec_ext in '' $ac_executable_extensions; do
2045  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046    ac_cv_prog_ac_ct_CC="$ac_prog"
2047    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048    break 2
2049  fi
2050done
2051done
2052
2053fi
2054fi
2055ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056if test -n "$ac_ct_CC"; then
2057  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058echo "${ECHO_T}$ac_ct_CC" >&6
2059else
2060  echo "$as_me:$LINENO: result: no" >&5
2061echo "${ECHO_T}no" >&6
2062fi
2063
2064  test -n "$ac_ct_CC" && break
2065done
2066
2067  CC=$ac_ct_CC
2068fi
2069
2070
2071test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072See \`config.log' for more details." >&5
2073echo "$as_me: error: no acceptable C compiler found in \$PATH
2074See \`config.log' for more details." >&2;}
2075   { (exit 1); exit 1; }; }
2076
2077# Provide some information about the compiler.
2078echo "$as_me:$LINENO:" \
2079     "checking for C compiler version" >&5
2080ac_compiler=`set X $ac_compile; echo $2`
2081{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2082  (eval $ac_compiler --version </dev/null >&5) 2>&5
2083  ac_status=$?
2084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085  (exit $ac_status); }
2086{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2087  (eval $ac_compiler -v </dev/null >&5) 2>&5
2088  ac_status=$?
2089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090  (exit $ac_status); }
2091{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2092  (eval $ac_compiler -V </dev/null >&5) 2>&5
2093  ac_status=$?
2094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095  (exit $ac_status); }
2096
2097cat >conftest.$ac_ext <<_ACEOF
2098/* confdefs.h.  */
2099_ACEOF
2100cat confdefs.h >>conftest.$ac_ext
2101cat >>conftest.$ac_ext <<_ACEOF
2102/* end confdefs.h.  */
2103
2104int
2105main ()
2106{
2107
2108  ;
2109  return 0;
2110}
2111_ACEOF
2112ac_clean_files_save=$ac_clean_files
2113ac_clean_files="$ac_clean_files a.out a.exe b.out"
2114# Try to create an executable without -o first, disregard a.out.
2115# It will help us diagnose broken compilers, and finding out an intuition
2116# of exeext.
2117echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2118echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2119ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2120if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2121  (eval $ac_link_default) 2>&5
2122  ac_status=$?
2123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124  (exit $ac_status); }; then
2125  # Find the output, starting from the most likely.  This scheme is
2126# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2127# resort.
2128
2129# Be careful to initialize this variable, since it used to be cached.
2130# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2131ac_cv_exeext=
2132# b.out is created by i960 compilers.
2133for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2134do
2135  test -f "$ac_file" || continue
2136  case $ac_file in
2137    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2138        ;;
2139    conftest.$ac_ext )
2140        # This is the source file.
2141        ;;
2142    [ab].out )
2143        # We found the default executable, but exeext='' is most
2144        # certainly right.
2145        break;;
2146    *.* )
2147        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148        # FIXME: I believe we export ac_cv_exeext for Libtool,
2149        # but it would be cool to find out if it's true.  Does anybody
2150        # maintain Libtool? --akim.
2151        export ac_cv_exeext
2152        break;;
2153    * )
2154        break;;
2155  esac
2156done
2157else
2158  echo "$as_me: failed program was:" >&5
2159sed 's/^/| /' conftest.$ac_ext >&5
2160
2161{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2162See \`config.log' for more details." >&5
2163echo "$as_me: error: C compiler cannot create executables
2164See \`config.log' for more details." >&2;}
2165   { (exit 77); exit 77; }; }
2166fi
2167
2168ac_exeext=$ac_cv_exeext
2169echo "$as_me:$LINENO: result: $ac_file" >&5
2170echo "${ECHO_T}$ac_file" >&6
2171
2172# Check the compiler produces executables we can run.  If not, either
2173# the compiler is broken, or we cross compile.
2174echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2175echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2176# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2177# If not cross compiling, check that we can run a simple program.
2178if test "$cross_compiling" != yes; then
2179  if { ac_try='./$ac_file'
2180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181  (eval $ac_try) 2>&5
2182  ac_status=$?
2183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184  (exit $ac_status); }; }; then
2185    cross_compiling=no
2186  else
2187    if test "$cross_compiling" = maybe; then
2188        cross_compiling=yes
2189    else
2190        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2191If you meant to cross compile, use \`--host'.
2192See \`config.log' for more details." >&5
2193echo "$as_me: error: cannot run C compiled programs.
2194If you meant to cross compile, use \`--host'.
2195See \`config.log' for more details." >&2;}
2196   { (exit 1); exit 1; }; }
2197    fi
2198  fi
2199fi
2200echo "$as_me:$LINENO: result: yes" >&5
2201echo "${ECHO_T}yes" >&6
2202
2203rm -f a.out a.exe conftest$ac_cv_exeext b.out
2204ac_clean_files=$ac_clean_files_save
2205# Check the compiler produces executables we can run.  If not, either
2206# the compiler is broken, or we cross compile.
2207echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2208echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2209echo "$as_me:$LINENO: result: $cross_compiling" >&5
2210echo "${ECHO_T}$cross_compiling" >&6
2211
2212echo "$as_me:$LINENO: checking for suffix of executables" >&5
2213echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2215  (eval $ac_link) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }; then
2219  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2220# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2221# work properly (i.e., refer to `conftest.exe'), while it won't with
2222# `rm'.
2223for ac_file in conftest.exe conftest conftest.*; do
2224  test -f "$ac_file" || continue
2225  case $ac_file in
2226    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2227    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2228          export ac_cv_exeext
2229          break;;
2230    * ) break;;
2231  esac
2232done
2233else
2234  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2235See \`config.log' for more details." >&5
2236echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237See \`config.log' for more details." >&2;}
2238   { (exit 1); exit 1; }; }
2239fi
2240
2241rm -f conftest$ac_cv_exeext
2242echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243echo "${ECHO_T}$ac_cv_exeext" >&6
2244
2245rm -f conftest.$ac_ext
2246EXEEXT=$ac_cv_exeext
2247ac_exeext=$EXEEXT
2248echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2250if test "${ac_cv_objext+set}" = set; then
2251  echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253  cat >conftest.$ac_ext <<_ACEOF
2254/* confdefs.h.  */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h.  */
2259
2260int
2261main ()
2262{
2263
2264  ;
2265  return 0;
2266}
2267_ACEOF
2268rm -f conftest.o conftest.obj
2269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270  (eval $ac_compile) 2>&5
2271  ac_status=$?
2272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273  (exit $ac_status); }; then
2274  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2275  case $ac_file in
2276    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2277    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2278       break;;
2279  esac
2280done
2281else
2282  echo "$as_me: failed program was:" >&5
2283sed 's/^/| /' conftest.$ac_ext >&5
2284
2285{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot compute suffix of object files: cannot compile
2288See \`config.log' for more details." >&2;}
2289   { (exit 1); exit 1; }; }
2290fi
2291
2292rm -f conftest.$ac_cv_objext conftest.$ac_ext
2293fi
2294echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2295echo "${ECHO_T}$ac_cv_objext" >&6
2296OBJEXT=$ac_cv_objext
2297ac_objext=$OBJEXT
2298echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2299echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2300if test "${ac_cv_c_compiler_gnu+set}" = set; then
2301  echo $ECHO_N "(cached) $ECHO_C" >&6
2302else
2303  cat >conftest.$ac_ext <<_ACEOF
2304/* confdefs.h.  */
2305_ACEOF
2306cat confdefs.h >>conftest.$ac_ext
2307cat >>conftest.$ac_ext <<_ACEOF
2308/* end confdefs.h.  */
2309
2310int
2311main ()
2312{
2313#ifndef __GNUC__
2314       choke me
2315#endif
2316
2317  ;
2318  return 0;
2319}
2320_ACEOF
2321rm -f conftest.$ac_objext
2322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2323  (eval $ac_compile) 2>conftest.er1
2324  ac_status=$?
2325  grep -v '^ *+' conftest.er1 >conftest.err
2326  rm -f conftest.er1
2327  cat conftest.err >&5
2328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329  (exit $ac_status); } &&
2330         { ac_try='test -z "$ac_c_werror_flag"
2331                         || test ! -s conftest.err'
2332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333  (eval $ac_try) 2>&5
2334  ac_status=$?
2335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336  (exit $ac_status); }; } &&
2337         { ac_try='test -s conftest.$ac_objext'
2338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339  (eval $ac_try) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }; }; then
2343  ac_compiler_gnu=yes
2344else
2345  echo "$as_me: failed program was:" >&5
2346sed 's/^/| /' conftest.$ac_ext >&5
2347
2348ac_compiler_gnu=no
2349fi
2350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2351ac_cv_c_compiler_gnu=$ac_compiler_gnu
2352
2353fi
2354echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2355echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2356GCC=`test $ac_compiler_gnu = yes && echo yes`
2357ac_test_CFLAGS=${CFLAGS+set}
2358ac_save_CFLAGS=$CFLAGS
2359CFLAGS="-g"
2360echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2361echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2362if test "${ac_cv_prog_cc_g+set}" = set; then
2363  echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365  cat >conftest.$ac_ext <<_ACEOF
2366/* confdefs.h.  */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h.  */
2371
2372int
2373main ()
2374{
2375
2376  ;
2377  return 0;
2378}
2379_ACEOF
2380rm -f conftest.$ac_objext
2381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382  (eval $ac_compile) 2>conftest.er1
2383  ac_status=$?
2384  grep -v '^ *+' conftest.er1 >conftest.err
2385  rm -f conftest.er1
2386  cat conftest.err >&5
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); } &&
2389         { ac_try='test -z "$ac_c_werror_flag"
2390                         || test ! -s conftest.err'
2391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392  (eval $ac_try) 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; } &&
2396         { ac_try='test -s conftest.$ac_objext'
2397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398  (eval $ac_try) 2>&5
2399  ac_status=$?
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); }; }; then
2402  ac_cv_prog_cc_g=yes
2403else
2404  echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407ac_cv_prog_cc_g=no
2408fi
2409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410fi
2411echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2412echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2413if test "$ac_test_CFLAGS" = set; then
2414  CFLAGS=$ac_save_CFLAGS
2415elif test $ac_cv_prog_cc_g = yes; then
2416  if test "$GCC" = yes; then
2417    CFLAGS="-g -O2"
2418  else
2419    CFLAGS="-g"
2420  fi
2421else
2422  if test "$GCC" = yes; then
2423    CFLAGS="-O2"
2424  else
2425    CFLAGS=
2426  fi
2427fi
2428echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2429echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2430if test "${ac_cv_prog_cc_stdc+set}" = set; then
2431  echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433  ac_cv_prog_cc_stdc=no
2434ac_save_CC=$CC
2435cat >conftest.$ac_ext <<_ACEOF
2436/* confdefs.h.  */
2437_ACEOF
2438cat confdefs.h >>conftest.$ac_ext
2439cat >>conftest.$ac_ext <<_ACEOF
2440/* end confdefs.h.  */
2441#include <stdarg.h>
2442#include <stdio.h>
2443#include <sys/types.h>
2444#include <sys/stat.h>
2445/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2446struct buf { int x; };
2447FILE * (*rcsopen) (struct buf *, struct stat *, int);
2448static char *e (p, i)
2449     char **p;
2450     int i;
2451{
2452  return p[i];
2453}
2454static char *f (char * (*g) (char **, int), char **p, ...)
2455{
2456  char *s;
2457  va_list v;
2458  va_start (v,p);
2459  s = g (p, va_arg (v,int));
2460  va_end (v);
2461  return s;
2462}
2463
2464/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2465   function prototypes and stuff, but not '\xHH' hex character constants.
2466   These don't provoke an error unfortunately, instead are silently treated
2467   as 'x'.  The following induces an error, until -std1 is added to get
2468   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2469   array size at least.  It's necessary to write '\x00'==0 to get something
2470   that's true only with -std1.  */
2471int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2472
2473int test (int i, double x);
2474struct s1 {int (*f) (int a);};
2475struct s2 {int (*f) (double a);};
2476int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2477int argc;
2478char **argv;
2479int
2480main ()
2481{
2482return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2483  ;
2484  return 0;
2485}
2486_ACEOF
2487# Don't try gcc -ansi; that turns off useful extensions and
2488# breaks some systems' header files.
2489# AIX                   -qlanglvl=ansi
2490# Ultrix and OSF/1      -std1
2491# HP-UX 10.20 and later -Ae
2492# HP-UX older versions  -Aa -D_HPUX_SOURCE
2493# SVR4                  -Xc -D__EXTENSIONS__
2494for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2495do
2496  CC="$ac_save_CC $ac_arg"
2497  rm -f conftest.$ac_objext
2498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499  (eval $ac_compile) 2>conftest.er1
2500  ac_status=$?
2501  grep -v '^ *+' conftest.er1 >conftest.err
2502  rm -f conftest.er1
2503  cat conftest.err >&5
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); } &&
2506         { ac_try='test -z "$ac_c_werror_flag"
2507                         || test ! -s conftest.err'
2508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509  (eval $ac_try) 2>&5
2510  ac_status=$?
2511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512  (exit $ac_status); }; } &&
2513         { ac_try='test -s conftest.$ac_objext'
2514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515  (eval $ac_try) 2>&5
2516  ac_status=$?
2517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518  (exit $ac_status); }; }; then
2519  ac_cv_prog_cc_stdc=$ac_arg
2520break
2521else
2522  echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525fi
2526rm -f conftest.err conftest.$ac_objext
2527done
2528rm -f conftest.$ac_ext conftest.$ac_objext
2529CC=$ac_save_CC
2530
2531fi
2532
2533case "x$ac_cv_prog_cc_stdc" in
2534  x|xno)
2535    echo "$as_me:$LINENO: result: none needed" >&5
2536echo "${ECHO_T}none needed" >&6 ;;
2537  *)
2538    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540    CC="$CC $ac_cv_prog_cc_stdc" ;;
2541esac
2542
2543# Some people use a C++ compiler to compile C.  Since we use `exit',
2544# in C++ we need to declare it.  In case someone uses the same compiler
2545# for both compiling C and C++ we need to have the C++ compiler decide
2546# the declaration of exit, since it's the most demanding environment.
2547cat >conftest.$ac_ext <<_ACEOF
2548#ifndef __cplusplus
2549  choke me
2550#endif
2551_ACEOF
2552rm -f conftest.$ac_objext
2553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554  (eval $ac_compile) 2>conftest.er1
2555  ac_status=$?
2556  grep -v '^ *+' conftest.er1 >conftest.err
2557  rm -f conftest.er1
2558  cat conftest.err >&5
2559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560  (exit $ac_status); } &&
2561         { ac_try='test -z "$ac_c_werror_flag"
2562                         || test ! -s conftest.err'
2563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564  (eval $ac_try) 2>&5
2565  ac_status=$?
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); }; } &&
2568         { ac_try='test -s conftest.$ac_objext'
2569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570  (eval $ac_try) 2>&5
2571  ac_status=$?
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); }; }; then
2574  for ac_declaration in \
2575   '' \
2576   'extern "C" void std::exit (int) throw (); using std::exit;' \
2577   'extern "C" void std::exit (int); using std::exit;' \
2578   'extern "C" void exit (int) throw ();' \
2579   'extern "C" void exit (int);' \
2580   'void exit (int);'
2581do
2582  cat >conftest.$ac_ext <<_ACEOF
2583/* confdefs.h.  */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h.  */
2588$ac_declaration
2589#include <stdlib.h>
2590int
2591main ()
2592{
2593exit (42);
2594  ;
2595  return 0;
2596}
2597_ACEOF
2598rm -f conftest.$ac_objext
2599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600  (eval $ac_compile) 2>conftest.er1
2601  ac_status=$?
2602  grep -v '^ *+' conftest.er1 >conftest.err
2603  rm -f conftest.er1
2604  cat conftest.err >&5
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); } &&
2607         { ac_try='test -z "$ac_c_werror_flag"
2608                         || test ! -s conftest.err'
2609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610  (eval $ac_try) 2>&5
2611  ac_status=$?
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); }; } &&
2614         { ac_try='test -s conftest.$ac_objext'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; }; then
2620  :
2621else
2622  echo "$as_me: failed program was:" >&5
2623sed 's/^/| /' conftest.$ac_ext >&5
2624
2625continue
2626fi
2627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628  cat >conftest.$ac_ext <<_ACEOF
2629/* confdefs.h.  */
2630_ACEOF
2631cat confdefs.h >>conftest.$ac_ext
2632cat >>conftest.$ac_ext <<_ACEOF
2633/* end confdefs.h.  */
2634$ac_declaration
2635int
2636main ()
2637{
2638exit (42);
2639  ;
2640  return 0;
2641}
2642_ACEOF
2643rm -f conftest.$ac_objext
2644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645  (eval $ac_compile) 2>conftest.er1
2646  ac_status=$?
2647  grep -v '^ *+' conftest.er1 >conftest.err
2648  rm -f conftest.er1
2649  cat conftest.err >&5
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); } &&
2652         { ac_try='test -z "$ac_c_werror_flag"
2653                         || test ! -s conftest.err'
2654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655  (eval $ac_try) 2>&5
2656  ac_status=$?
2657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658  (exit $ac_status); }; } &&
2659         { ac_try='test -s conftest.$ac_objext'
2660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661  (eval $ac_try) 2>&5
2662  ac_status=$?
2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664  (exit $ac_status); }; }; then
2665  break
2666else
2667  echo "$as_me: failed program was:" >&5
2668sed 's/^/| /' conftest.$ac_ext >&5
2669
2670fi
2671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672done
2673rm -f conftest*
2674if test -n "$ac_declaration"; then
2675  echo '#ifdef __cplusplus' >>confdefs.h
2676  echo $ac_declaration      >>confdefs.h
2677  echo '#endif'             >>confdefs.h
2678fi
2679
2680else
2681  echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684fi
2685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686ac_ext=c
2687ac_cpp='$CPP $CPPFLAGS'
2688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691
2692if test -z "$CC" ; then
2693  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2694echo "$as_me: error: Failed to find a C compiler!" >&2;}
2695   { (exit 1); exit 1; }; }
2696fi
2697# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2698case "$CC" in
2699  cl* | */cl* | CL* | */CL* )
2700    if test "$ac_cv_prog_cc_g" = yes ; then
2701      ac_cv_prog_cc_g=no
2702      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2703echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2704    fi ;;
2705esac
2706CFLAGS="$save_cflags"
2707
2708# Check if a project specific CFLAGS variable has been set
2709if test x$COIN_PRJCT != x; then
2710  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2711  if test x$coin_tmp = xset; then
2712    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2713  fi
2714fi
2715
2716if test x"$CFLAGS" = x; then
2717
2718  coin_add_cflags=
2719  coin_opt_cflags=
2720  coin_dbg_cflags=
2721  coin_warn_cflags=
2722
2723  if test "$GCC" = "yes"; then
2724    case "$CC" in
2725      icc* | */icc*)
2726        ;;
2727      *)
2728        coin_opt_cflags="-O3"
2729        coin_add_cflags="-pipe"
2730        coin_dbg_cflags="-g"
2731        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2732        case $build in
2733          *-darwin*)
2734            ;;
2735          *)
2736            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2737            ;;
2738        esac
2739        case $enable_doscompile in
2740          mingw)
2741            CFLAGS="-mno-cygwin"
2742            cat >conftest.$ac_ext <<_ACEOF
2743/* confdefs.h.  */
2744_ACEOF
2745cat confdefs.h >>conftest.$ac_ext
2746cat >>conftest.$ac_ext <<_ACEOF
2747/* end confdefs.h.  */
2748
2749int
2750main ()
2751{
2752int i=0; i++;
2753  ;
2754  return 0;
2755}
2756_ACEOF
2757rm -f conftest.$ac_objext conftest$ac_exeext
2758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2759  (eval $ac_link) 2>conftest.er1
2760  ac_status=$?
2761  grep -v '^ *+' conftest.er1 >conftest.err
2762  rm -f conftest.er1
2763  cat conftest.err >&5
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); } &&
2766         { ac_try='test -z "$ac_c_werror_flag"
2767                         || test ! -s conftest.err'
2768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769  (eval $ac_try) 2>&5
2770  ac_status=$?
2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772  (exit $ac_status); }; } &&
2773         { ac_try='test -s conftest$ac_exeext'
2774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775  (eval $ac_try) 2>&5
2776  ac_status=$?
2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); }; }; then
2779  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2780else
2781  echo "$as_me: failed program was:" >&5
2782sed 's/^/| /' conftest.$ac_ext >&5
2783
2784fi
2785rm -f conftest.err conftest.$ac_objext \
2786      conftest$ac_exeext conftest.$ac_ext
2787            CFLAGS=
2788          ;;
2789        esac
2790    esac
2791  fi
2792  if test -z "$coin_opt_cflags"; then
2793    case $build in
2794      *-cygwin* | *-mingw*)
2795        case "$CC" in
2796          cl* | */cl* | CL* | */CL*)
2797            coin_opt_cflags='-MT -O2'
2798            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2799            coin_dbg_cflags='-MTd'
2800            ;;
2801          icl* | */icl* | ICL* | */ICL*)
2802            coin_opt_cflags='-MT -Ox'
2803            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2804            coin_dbg_cflags='-MTd -debug'
2805            ;;
2806        esac
2807        ;;
2808      *-linux-*)
2809        case "$CC" in
2810          icc* | */icc*)
2811            coin_opt_cflags="-O3 -ip -mp1"
2812            coin_add_cflags=""
2813            coin_dbg_cflags="-g"
2814            # Check if -i_dynamic is necessary (for new glibc library)
2815            CFLAGS=
2816            cat >conftest.$ac_ext <<_ACEOF
2817/* confdefs.h.  */
2818_ACEOF
2819cat confdefs.h >>conftest.$ac_ext
2820cat >>conftest.$ac_ext <<_ACEOF
2821/* end confdefs.h.  */
2822
2823int
2824main ()
2825{
2826int i=0; i++;
2827  ;
2828  return 0;
2829}
2830_ACEOF
2831rm -f conftest.$ac_objext conftest$ac_exeext
2832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2833  (eval $ac_link) 2>conftest.er1
2834  ac_status=$?
2835  grep -v '^ *+' conftest.er1 >conftest.err
2836  rm -f conftest.er1
2837  cat conftest.err >&5
2838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839  (exit $ac_status); } &&
2840         { ac_try='test -z "$ac_c_werror_flag"
2841                         || test ! -s conftest.err'
2842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843  (eval $ac_try) 2>&5
2844  ac_status=$?
2845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846  (exit $ac_status); }; } &&
2847         { ac_try='test -s conftest$ac_exeext'
2848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849  (eval $ac_try) 2>&5
2850  ac_status=$?
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); }; }; then
2853  :
2854else
2855  echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858coin_add_cflags="-i_dynamic $coin_add_cflags"
2859fi
2860rm -f conftest.err conftest.$ac_objext \
2861      conftest$ac_exeext conftest.$ac_ext
2862            ;;
2863          pgcc* | */pgcc*)
2864            coin_opt_cflags="-fast"
2865            coin_add_cflags="-Kieee -pc 64"
2866            coin_dbg_cflags="-g"
2867            ;;
2868        esac
2869        ;;
2870      *-ibm-*)
2871        case "$CC" in
2872          xlc* | */xlc* | mpxlc* | */mpxlc*)
2873            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2874            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2875            coin_dbg_cflags="-g"
2876          ;;
2877        esac
2878        ;;
2879      *-hp-*)
2880        coin_opt_cflags="-O"
2881        coin_add_cflags="-Ae"
2882        coin_dbg_cflags="-g"
2883        ;;
2884      *-*-solaris*)
2885        coin_opt_cflags="-xO4"
2886        coin_dbg_cflags="-g"
2887        ;;
2888      *-sgi-*)
2889        coin_opt_cflags="-O -OPT:Olimit=0"
2890        coin_dbg_cflags="-g"
2891        ;;
2892    esac
2893  fi
2894
2895  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2896    coin_dbg_cflags="-g"
2897  fi
2898
2899  if test -z "$coin_opt_cflags"; then
2900    # Try if -O option works if nothing else is set
2901    CFLAGS="-O"
2902    cat >conftest.$ac_ext <<_ACEOF
2903/* confdefs.h.  */
2904_ACEOF
2905cat confdefs.h >>conftest.$ac_ext
2906cat >>conftest.$ac_ext <<_ACEOF
2907/* end confdefs.h.  */
2908
2909int
2910main ()
2911{
2912int i=0; i++;
2913  ;
2914  return 0;
2915}
2916_ACEOF
2917rm -f conftest.$ac_objext conftest$ac_exeext
2918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2919  (eval $ac_link) 2>conftest.er1
2920  ac_status=$?
2921  grep -v '^ *+' conftest.er1 >conftest.err
2922  rm -f conftest.er1
2923  cat conftest.err >&5
2924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925  (exit $ac_status); } &&
2926         { ac_try='test -z "$ac_c_werror_flag"
2927                         || test ! -s conftest.err'
2928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929  (eval $ac_try) 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); }; } &&
2933         { ac_try='test -s conftest$ac_exeext'
2934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935  (eval $ac_try) 2>&5
2936  ac_status=$?
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); }; }; then
2939  coin_opt_cflags="-O"
2940else
2941  echo "$as_me: failed program was:" >&5
2942sed 's/^/| /' conftest.$ac_ext >&5
2943
2944fi
2945rm -f conftest.err conftest.$ac_objext \
2946      conftest$ac_exeext conftest.$ac_ext
2947  fi
2948
2949  # if PM doesn't want the warning messages, take them out
2950  if test x"$coin_skip_warn_cflags" = xyes; then
2951    coin_warn_cflags=
2952  fi
2953
2954  if test x${DBG_CFLAGS+set} != xset; then
2955    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2956  fi
2957  if test x${OPT_CFLAGS+set} != xset; then
2958    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2959  fi
2960
2961  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2962  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2963
2964  if test "$coin_debug_compile" = "true"; then
2965    CFLAGS="$DBG_CFLAGS"
2966  else
2967    CFLAGS="$OPT_CFLAGS"
2968  fi
2969else
2970  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2971  if test x${DBG_CFLAGS+set} != xset; then
2972    DBG_CFLAGS="$CFLAGS"
2973  fi
2974  if test x${OPT_CFLAGS+set} != xset; then
2975    OPT_CFLAGS="$CFLAGS"
2976  fi
2977fi
2978
2979# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2980
2981case "$CFLAGS" in
2982  *-mno-cygwin*)
2983    if test x${CPPFLAGS+set} != xset ; then
2984      CPPFLAGS="-mno-cygwin"
2985    else
2986      case "$CPPFLAGS" in
2987        *-mno-cygwin*)
2988          ;;
2989        *)
2990          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2991          ;;
2992      esac
2993    fi ;;
2994esac
2995
2996# Try if CFLAGS works
2997save_CFLAGS="$CFLAGS"
2998cat >conftest.$ac_ext <<_ACEOF
2999/* confdefs.h.  */
3000_ACEOF
3001cat confdefs.h >>conftest.$ac_ext
3002cat >>conftest.$ac_ext <<_ACEOF
3003/* end confdefs.h.  */
3004
3005int
3006main ()
3007{
3008int i=0; i++;
3009  ;
3010  return 0;
3011}
3012_ACEOF
3013rm -f conftest.$ac_objext conftest$ac_exeext
3014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3015  (eval $ac_link) 2>conftest.er1
3016  ac_status=$?
3017  grep -v '^ *+' conftest.er1 >conftest.err
3018  rm -f conftest.er1
3019  cat conftest.err >&5
3020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021  (exit $ac_status); } &&
3022         { ac_try='test -z "$ac_c_werror_flag"
3023                         || test ! -s conftest.err'
3024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025  (eval $ac_try) 2>&5
3026  ac_status=$?
3027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028  (exit $ac_status); }; } &&
3029         { ac_try='test -s conftest$ac_exeext'
3030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031  (eval $ac_try) 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; }; then
3035  :
3036else
3037  echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040CFLAGS=
3041fi
3042rm -f conftest.err conftest.$ac_objext \
3043      conftest$ac_exeext conftest.$ac_ext
3044if test -z "$CFLAGS"; then
3045  { 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
3046echo "$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;}
3047  CFLAGS='-O'
3048  cat >conftest.$ac_ext <<_ACEOF
3049/* confdefs.h.  */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h.  */
3054
3055int
3056main ()
3057{
3058int i=0; i++;
3059  ;
3060  return 0;
3061}
3062_ACEOF
3063rm -f conftest.$ac_objext conftest$ac_exeext
3064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3065  (eval $ac_link) 2>conftest.er1
3066  ac_status=$?
3067  grep -v '^ *+' conftest.er1 >conftest.err
3068  rm -f conftest.er1
3069  cat conftest.err >&5
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); } &&
3072         { ac_try='test -z "$ac_c_werror_flag"
3073                         || test ! -s conftest.err'
3074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075  (eval $ac_try) 2>&5
3076  ac_status=$?
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); }; } &&
3079         { ac_try='test -s conftest$ac_exeext'
3080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081  (eval $ac_try) 2>&5
3082  ac_status=$?
3083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084  (exit $ac_status); }; }; then
3085  :
3086else
3087  echo "$as_me: failed program was:" >&5
3088sed 's/^/| /' conftest.$ac_ext >&5
3089
3090CFLAGS=
3091fi
3092rm -f conftest.err conftest.$ac_objext \
3093      conftest$ac_exeext conftest.$ac_ext
3094  if test -z "$CFLAGS"; then
3095    { 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
3096echo "$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;}
3097  fi
3098fi
3099
3100{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3101echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3102
3103
3104if test x"$MPICC" = x; then :; else
3105  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3106echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3107  CC="$MPICC"
3108fi
3109
3110# Correct the LD variable if we are using the MS or Intel-windows compiler
3111case "$CC" in
3112  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3113    case $build in
3114  *-mingw*)
3115    if test "${LD+set}" = set; then :; else
3116      LD=link
3117    fi
3118    ;;
3119 esac
3120 case $enable_doscompile in
3121   msvc)
3122     if test "x${LD+set}" = xset; then :; else
3123       LD=link
3124     fi
3125     ;;
3126 esac
3127
3128    ;;
3129esac
3130
3131ac_ext=c
3132ac_cpp='$CPP $CPPFLAGS'
3133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3135ac_compiler_gnu=$ac_cv_c_compiler_gnu
3136
3137
3138
3139# Get the name of the C++ compiler and appropriate compiler options
3140
3141 #Let's try if that overcomes configuration problem with VC++ 6.0
3142
3143ac_ext=cc
3144ac_cpp='$CXXCPP $CPPFLAGS'
3145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3148
3149
3150
3151
3152
3153
3154
3155coin_has_cxx=yes
3156
3157save_cxxflags="$CXXFLAGS"
3158# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3159case $build in
3160  *-cygwin* | *-mingw*)
3161             if test "$enable_doscompile" = msvc ; then
3162               comps="icl cl"
3163             else
3164               comps="g++ cl"
3165             fi ;;
3166  *-*-solaris*)
3167             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3168  *-darwin*) comps="g++ c++ CC" ;;
3169  *-linux-gnu*)
3170             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3171          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3172esac
3173
3174# We delete the cached value, since the test might not have been
3175# performed with our choice of compilers earlier
3176$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3177# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3178ac_ext=cc
3179ac_cpp='$CXXCPP $CPPFLAGS'
3180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3183if test -n "$ac_tool_prefix"; then
3184  for ac_prog in $CCC $comps
3185  do
3186    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3187set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3188echo "$as_me:$LINENO: checking for $ac_word" >&5
3189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190if test "${ac_cv_prog_CXX+set}" = set; then
3191  echo $ECHO_N "(cached) $ECHO_C" >&6
3192else
3193  if test -n "$CXX"; then
3194  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201  for ac_exec_ext in '' $ac_executable_extensions; do
3202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208done
3209
3210fi
3211fi
3212CXX=$ac_cv_prog_CXX
3213if test -n "$CXX"; then
3214  echo "$as_me:$LINENO: result: $CXX" >&5
3215echo "${ECHO_T}$CXX" >&6
3216else
3217  echo "$as_me:$LINENO: result: no" >&5
3218echo "${ECHO_T}no" >&6
3219fi
3220
3221    test -n "$CXX" && break
3222  done
3223fi
3224if test -z "$CXX"; then
3225  ac_ct_CXX=$CXX
3226  for ac_prog in $CCC $comps
3227do
3228  # Extract the first word of "$ac_prog", so it can be a program name with args.
3229set dummy $ac_prog; ac_word=$2
3230echo "$as_me:$LINENO: checking for $ac_word" >&5
3231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3233  echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235  if test -n "$ac_ct_CXX"; then
3236  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243  for ac_exec_ext in '' $ac_executable_extensions; do
3244  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245    ac_cv_prog_ac_ct_CXX="$ac_prog"
3246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250done
3251
3252fi
3253fi
3254ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3255if test -n "$ac_ct_CXX"; then
3256  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3257echo "${ECHO_T}$ac_ct_CXX" >&6
3258else
3259  echo "$as_me:$LINENO: result: no" >&5
3260echo "${ECHO_T}no" >&6
3261fi
3262
3263  test -n "$ac_ct_CXX" && break
3264done
3265test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3266
3267  CXX=$ac_ct_CXX
3268fi
3269
3270
3271# Provide some information about the compiler.
3272echo "$as_me:$LINENO:" \
3273     "checking for C++ compiler version" >&5
3274ac_compiler=`set X $ac_compile; echo $2`
3275{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3276  (eval $ac_compiler --version </dev/null >&5) 2>&5
3277  ac_status=$?
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); }
3280{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3281  (eval $ac_compiler -v </dev/null >&5) 2>&5
3282  ac_status=$?
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); }
3285{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3286  (eval $ac_compiler -V </dev/null >&5) 2>&5
3287  ac_status=$?
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); }
3290
3291echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3292echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3293if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3294  echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296  cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h.  */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h.  */
3302
3303int
3304main ()
3305{
3306#ifndef __GNUC__
3307       choke me
3308#endif
3309
3310  ;
3311  return 0;
3312}
3313_ACEOF
3314rm -f conftest.$ac_objext
3315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3316  (eval $ac_compile) 2>conftest.er1
3317  ac_status=$?
3318  grep -v '^ *+' conftest.er1 >conftest.err
3319  rm -f conftest.er1
3320  cat conftest.err >&5
3321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322  (exit $ac_status); } &&
3323         { ac_try='test -z "$ac_cxx_werror_flag"
3324                         || test ! -s conftest.err'
3325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326  (eval $ac_try) 2>&5
3327  ac_status=$?
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; } &&
3330         { ac_try='test -s conftest.$ac_objext'
3331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332  (eval $ac_try) 2>&5
3333  ac_status=$?
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); }; }; then
3336  ac_compiler_gnu=yes
3337else
3338  echo "$as_me: failed program was:" >&5
3339sed 's/^/| /' conftest.$ac_ext >&5
3340
3341ac_compiler_gnu=no
3342fi
3343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3344ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3345
3346fi
3347echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3348echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3349GXX=`test $ac_compiler_gnu = yes && echo yes`
3350ac_test_CXXFLAGS=${CXXFLAGS+set}
3351ac_save_CXXFLAGS=$CXXFLAGS
3352CXXFLAGS="-g"
3353echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3354echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3355if test "${ac_cv_prog_cxx_g+set}" = set; then
3356  echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358  cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h.  */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h.  */
3364
3365int
3366main ()
3367{
3368
3369  ;
3370  return 0;
3371}
3372_ACEOF
3373rm -f conftest.$ac_objext
3374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375  (eval $ac_compile) 2>conftest.er1
3376  ac_status=$?
3377  grep -v '^ *+' conftest.er1 >conftest.err
3378  rm -f conftest.er1
3379  cat conftest.err >&5
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); } &&
3382         { ac_try='test -z "$ac_cxx_werror_flag"
3383                         || test ! -s conftest.err'
3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385  (eval $ac_try) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }; } &&
3389         { ac_try='test -s conftest.$ac_objext'
3390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391  (eval $ac_try) 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }; }; then
3395  ac_cv_prog_cxx_g=yes
3396else
3397  echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400ac_cv_prog_cxx_g=no
3401fi
3402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403fi
3404echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3405echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3406if test "$ac_test_CXXFLAGS" = set; then
3407  CXXFLAGS=$ac_save_CXXFLAGS
3408elif test $ac_cv_prog_cxx_g = yes; then
3409  if test "$GXX" = yes; then
3410    CXXFLAGS="-g -O2"
3411  else
3412    CXXFLAGS="-g"
3413  fi
3414else
3415  if test "$GXX" = yes; then
3416    CXXFLAGS="-O2"
3417  else
3418    CXXFLAGS=
3419  fi
3420fi
3421for ac_declaration in \
3422   '' \
3423   'extern "C" void std::exit (int) throw (); using std::exit;' \
3424   'extern "C" void std::exit (int); using std::exit;' \
3425   'extern "C" void exit (int) throw ();' \
3426   'extern "C" void exit (int);' \
3427   'void exit (int);'
3428do
3429  cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h.  */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h.  */
3435$ac_declaration
3436#include <stdlib.h>
3437int
3438main ()
3439{
3440exit (42);
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445rm -f conftest.$ac_objext
3446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3447  (eval $ac_compile) 2>conftest.er1
3448  ac_status=$?
3449  grep -v '^ *+' conftest.er1 >conftest.err
3450  rm -f conftest.er1
3451  cat conftest.err >&5
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); } &&
3454         { ac_try='test -z "$ac_cxx_werror_flag"
3455                         || test ! -s conftest.err'
3456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457  (eval $ac_try) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }; } &&
3461         { ac_try='test -s conftest.$ac_objext'
3462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463  (eval $ac_try) 2>&5
3464  ac_status=$?
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); }; }; then
3467  :
3468else
3469  echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472continue
3473fi
3474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3475  cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h.  */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h.  */
3481$ac_declaration
3482int
3483main ()
3484{
3485exit (42);
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492  (eval $ac_compile) 2>conftest.er1
3493  ac_status=$?
3494  grep -v '^ *+' conftest.er1 >conftest.err
3495  rm -f conftest.er1
3496  cat conftest.err >&5
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); } &&
3499         { ac_try='test -z "$ac_cxx_werror_flag"
3500                         || test ! -s conftest.err'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; } &&
3506         { ac_try='test -s conftest.$ac_objext'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; }; then
3512  break
3513else
3514  echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517fi
3518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3519done
3520rm -f conftest*
3521if test -n "$ac_declaration"; then
3522  echo '#ifdef __cplusplus' >>confdefs.h
3523  echo $ac_declaration      >>confdefs.h
3524  echo '#endif'             >>confdefs.h
3525fi
3526
3527ac_ext=cc
3528ac_cpp='$CXXCPP $CPPFLAGS'
3529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3532
3533
3534#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3535#thus, we test here whether $CXX is actually working
3536ac_ext=cc
3537ac_cpp='$CXXCPP $CPPFLAGS'
3538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3541
3542echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3543echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3544cat >conftest.$ac_ext <<_ACEOF
3545/* confdefs.h.  */
3546_ACEOF
3547cat confdefs.h >>conftest.$ac_ext
3548cat >>conftest.$ac_ext <<_ACEOF
3549/* end confdefs.h.  */
3550
3551int
3552main ()
3553{
3554int i=0;
3555  ;
3556  return 0;
3557}
3558_ACEOF
3559rm -f conftest.$ac_objext
3560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561  (eval $ac_compile) 2>conftest.er1
3562  ac_status=$?
3563  grep -v '^ *+' conftest.er1 >conftest.err
3564  rm -f conftest.er1
3565  cat conftest.err >&5
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); } &&
3568         { ac_try='test -z "$ac_cxx_werror_flag"
3569                         || test ! -s conftest.err'
3570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571  (eval $ac_try) 2>&5
3572  ac_status=$?
3573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574  (exit $ac_status); }; } &&
3575         { ac_try='test -s conftest.$ac_objext'
3576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577  (eval $ac_try) 2>&5
3578  ac_status=$?
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); }; }; then
3581  echo "$as_me:$LINENO: result: yes" >&5
3582echo "${ECHO_T}yes" >&6
3583else
3584  echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587echo "$as_me:$LINENO: result: no" >&5
3588echo "${ECHO_T}no" >&6
3589   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3590echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3591   { (exit 1); exit 1; }; }
3592
3593fi
3594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595ac_ext=cc
3596ac_cpp='$CXXCPP $CPPFLAGS'
3597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3600
3601
3602coin_cxx_is_cl=false
3603# It seems that we need to cleanup something here for the Windows
3604case "$CXX" in
3605  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3606    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3607    mv confdefs.hh confdefs.h
3608    coin_cxx_is_cl=true
3609    ;;
3610esac
3611
3612# add automake conditional so we can recognize cl compiler in makefile
3613
3614
3615if test $coin_cxx_is_cl = true; then
3616  COIN_CXX_IS_CL_TRUE=
3617  COIN_CXX_IS_CL_FALSE='#'
3618else
3619  COIN_CXX_IS_CL_TRUE='#'
3620  COIN_CXX_IS_CL_FALSE=
3621fi
3622
3623
3624# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3625case "$CXX" in
3626  cl* | */cl* | CL* | */CL* )
3627    if test "$ac_cv_prog_cxx_g" = yes ; then
3628      ac_cv_prog_cxx_g=no
3629      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3630echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3631    fi ;;
3632esac
3633CXXFLAGS="$save_cxxflags"
3634
3635# Check if a project specific CXXFLAGS variable has been set
3636if test x$COIN_PRJCT != x; then
3637  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3638  if test x$coin_tmp = xset; then
3639    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3640  fi
3641fi
3642
3643if test x"$CXXFLAGS" = x; then
3644
3645# ToDo decide whether we want -DNDEBUG for optimization
3646  coin_add_cxxflags=
3647  coin_opt_cxxflags=
3648  coin_dbg_cxxflags=
3649  coin_warn_cxxflags=
3650
3651  if test "$GXX" = "yes"; then
3652    case "$CXX" in
3653      icpc* | */icpc*)
3654        ;;
3655      *)
3656# ToDo decide about unroll-loops
3657        coin_opt_cxxflags="-O3"
3658        coin_add_cxxflags="-pipe"
3659        coin_dbg_cxxflags="-g"
3660        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3661        case $build in
3662          *-darwin*)
3663            ;;
3664          *)
3665            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3666            ;;
3667        esac
3668
3669        case $enable_doscompile in
3670          mingw)
3671            CXXFLAGS="-mno-cygwin"
3672            cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h.  */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h.  */
3678
3679int
3680main ()
3681{
3682int i=0; i++;
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext conftest$ac_exeext
3688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3689  (eval $ac_link) 2>conftest.er1
3690  ac_status=$?
3691  grep -v '^ *+' conftest.er1 >conftest.err
3692  rm -f conftest.er1
3693  cat conftest.err >&5
3694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695  (exit $ac_status); } &&
3696         { ac_try='test -z "$ac_cxx_werror_flag"
3697                         || test ! -s conftest.err'
3698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699  (eval $ac_try) 2>&5
3700  ac_status=$?
3701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702  (exit $ac_status); }; } &&
3703         { ac_try='test -s conftest$ac_exeext'
3704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705  (eval $ac_try) 2>&5
3706  ac_status=$?
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); }; }; then
3709  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3710else
3711  echo "$as_me: failed program was:" >&5
3712sed 's/^/| /' conftest.$ac_ext >&5
3713
3714fi
3715rm -f conftest.err conftest.$ac_objext \
3716      conftest$ac_exeext conftest.$ac_ext
3717            CXXFLAGS=
3718          ;;
3719        esac
3720    esac
3721  fi
3722
3723# Note that we do not need to cover GCC in the following tests.
3724
3725  if test -z "$coin_opt_cxxflags"; then
3726    case $build in
3727      *-cygwin* | *-mingw*)
3728        case "$CXX" in
3729          cl* | */cl* | CL* | */CL*)
3730            # The MT and MTd options are mutually exclusive
3731            coin_opt_cxxflags='-MT -O2'
3732            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3733            coin_dbg_cxxflags='-MTd'
3734            ;;
3735          icl* | */icl* | ICL* | */ICL*)
3736            # The MT and MTd options are mutually exclusive
3737            coin_opt_cxxflags='-MT -Ox'
3738            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3739            coin_dbg_cxxflags='-MTd -debug'
3740            ;;
3741        esac
3742        ;;
3743      *-linux-*)
3744        case "$CXX" in
3745          icpc* | */icpc*)
3746            coin_opt_cxxflags="-O3 -ip -mp1"
3747            coin_add_cxxflags=""
3748            coin_dbg_cxxflags="-g"
3749            # Check if -i_dynamic is necessary (for new glibc library)
3750            CXXFLAGS=
3751            cat >conftest.$ac_ext <<_ACEOF
3752/* confdefs.h.  */
3753_ACEOF
3754cat confdefs.h >>conftest.$ac_ext
3755cat >>conftest.$ac_ext <<_ACEOF
3756/* end confdefs.h.  */
3757
3758int
3759main ()
3760{
3761int i=0; i++;
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766rm -f conftest.$ac_objext conftest$ac_exeext
3767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3768  (eval $ac_link) 2>conftest.er1
3769  ac_status=$?
3770  grep -v '^ *+' conftest.er1 >conftest.err
3771  rm -f conftest.er1
3772  cat conftest.err >&5
3773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774  (exit $ac_status); } &&
3775         { ac_try='test -z "$ac_cxx_werror_flag"
3776                         || test ! -s conftest.err'
3777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778  (eval $ac_try) 2>&5
3779  ac_status=$?
3780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781  (exit $ac_status); }; } &&
3782         { ac_try='test -s conftest$ac_exeext'
3783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784  (eval $ac_try) 2>&5
3785  ac_status=$?
3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787  (exit $ac_status); }; }; then
3788  :
3789else
3790  echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3794fi
3795rm -f conftest.err conftest.$ac_objext \
3796      conftest$ac_exeext conftest.$ac_ext
3797            ;;
3798          pgCC* | */pgCC*)
3799            coin_opt_cxxflags="-fast"
3800            coin_add_cxxflags="-Kieee -pc 64"
3801            coin_dbg_cxxflags="-g"
3802            ;;
3803        esac
3804        ;;
3805      *-ibm-*)
3806        case "$CXX" in
3807          xlC* | */xlC* | mpxlC* | */mpxlC*)
3808            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3809            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3810            coin_dbg_cxxflags="-g"
3811            ;;
3812        esac
3813        ;;
3814      *-hp-*)
3815        case "$CXX" in
3816          aCC* | */aCC* )
3817            coin_opt_cxxflags="-O"
3818            coin_add_cxxflags="-AA"
3819            coin_dbg_cxxflags="-g"
3820            ;;
3821        esac
3822        ;;
3823      *-*-solaris*)
3824          coin_opt_cxxflags="-O4"
3825          coin_dbg_cxxflags="-g"
3826        ;;
3827    esac
3828  fi
3829
3830# Generic flag settings. If these don't work, add a case above.
3831
3832  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3833    coin_dbg_cxxflags="-g"
3834  fi
3835
3836  if test -z "$coin_opt_cxxflags"; then
3837    # Try if -O option works if nothing else is set
3838    CXXFLAGS=-O
3839    cat >conftest.$ac_ext <<_ACEOF
3840/* confdefs.h.  */
3841_ACEOF
3842cat confdefs.h >>conftest.$ac_ext
3843cat >>conftest.$ac_ext <<_ACEOF
3844/* end confdefs.h.  */
3845
3846int
3847main ()
3848{
3849int i=0; i++;
3850  ;
3851  return 0;
3852}
3853_ACEOF
3854rm -f conftest.$ac_objext conftest$ac_exeext
3855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3856  (eval $ac_link) 2>conftest.er1
3857  ac_status=$?
3858  grep -v '^ *+' conftest.er1 >conftest.err
3859  rm -f conftest.er1
3860  cat conftest.err >&5
3861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862  (exit $ac_status); } &&
3863         { ac_try='test -z "$ac_cxx_werror_flag"
3864                         || test ! -s conftest.err'
3865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866  (eval $ac_try) 2>&5
3867  ac_status=$?
3868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869  (exit $ac_status); }; } &&
3870         { ac_try='test -s conftest$ac_exeext'
3871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3872  (eval $ac_try) 2>&5
3873  ac_status=$?
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); }; }; then
3876  coin_opt_cxxflags="-O"
3877else
3878  echo "$as_me: failed program was:" >&5
3879sed 's/^/| /' conftest.$ac_ext >&5
3880
3881fi
3882rm -f conftest.err conftest.$ac_objext \
3883      conftest$ac_exeext conftest.$ac_ext
3884  fi
3885
3886  # if PM doesn't want the warning messages, take them out
3887  if test x"$coin_skip_warn_cxxflags" = xyes; then
3888    coin_warn_cxxflags=
3889  fi
3890
3891# Do final setup of flags based on values determined above.
3892
3893  if test x${DBG_CXXFLAGS+set} != xset; then
3894    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3895  fi
3896  if test x${OPT_CXXFLAGS+set} != xset; then
3897    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3898  fi
3899
3900  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3901  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3902
3903  if test "$coin_debug_compile" = "true"; then
3904    CXXFLAGS="$DBG_CXXFLAGS"
3905  else
3906    CXXFLAGS="$OPT_CXXFLAGS"
3907  fi
3908
3909# Handle the case where CXXFLAGS was set externally.
3910else
3911  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3912  if test x${DBG_CXXFLAGS+set} != xset; then
3913    DBG_CXXFLAGS="$CXXFLAGS"
3914  fi
3915  if test x${OPT_CXXFLAGS+set} != xset; then
3916    OPT_CXXFLAGS="$CXXFLAGS"
3917  fi
3918fi
3919
3920# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3921
3922case "$CXXFLAGS" in
3923  *-mno-cygwin*)
3924    if test x${CPPFLAGS+set} != xset ; then
3925      CPPFLAGS="-mno-cygwin"
3926    else
3927      case "$CPPFLAGS" in
3928        *-mno-cygwin*)
3929          ;;
3930        *)
3931          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3932          ;;
3933      esac
3934    fi ;;
3935esac
3936
3937# Try if CXXFLAGS works
3938save_CXXFLAGS="$CXXFLAGS"
3939cat >conftest.$ac_ext <<_ACEOF
3940/* confdefs.h.  */
3941_ACEOF
3942cat confdefs.h >>conftest.$ac_ext
3943cat >>conftest.$ac_ext <<_ACEOF
3944/* end confdefs.h.  */
3945
3946int
3947main ()
3948{
3949int i=0; i++;
3950  ;
3951  return 0;
3952}
3953_ACEOF
3954rm -f conftest.$ac_objext conftest$ac_exeext
3955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3956  (eval $ac_link) 2>conftest.er1
3957  ac_status=$?
3958  grep -v '^ *+' conftest.er1 >conftest.err
3959  rm -f conftest.er1
3960  cat conftest.err >&5
3961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962  (exit $ac_status); } &&
3963         { ac_try='test -z "$ac_cxx_werror_flag"
3964                         || test ! -s conftest.err'
3965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966  (eval $ac_try) 2>&5
3967  ac_status=$?
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); }; } &&
3970         { ac_try='test -s conftest$ac_exeext'
3971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3972  (eval $ac_try) 2>&5
3973  ac_status=$?
3974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975  (exit $ac_status); }; }; then
3976  :
3977else
3978  echo "$as_me: failed program was:" >&5
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
3981CXXFLAGS=
3982fi
3983rm -f conftest.err conftest.$ac_objext \
3984      conftest$ac_exeext conftest.$ac_ext
3985if test -z "$CXXFLAGS"; then
3986  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
3987echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
3988  CXXFLAGS='-O'
3989  cat >conftest.$ac_ext <<_ACEOF
3990/* confdefs.h.  */
3991_ACEOF
3992cat confdefs.h >>conftest.$ac_ext
3993cat >>conftest.$ac_ext <<_ACEOF
3994/* end confdefs.h.  */
3995
3996int
3997main ()
3998{
3999int i=0; i++;
4000  ;
4001  return 0;
4002}
4003_ACEOF
4004rm -f conftest.$ac_objext conftest$ac_exeext
4005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4006  (eval $ac_link) 2>conftest.er1
4007  ac_status=$?
4008  grep -v '^ *+' conftest.er1 >conftest.err
4009  rm -f conftest.er1
4010  cat conftest.err >&5
4011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4012  (exit $ac_status); } &&
4013         { ac_try='test -z "$ac_cxx_werror_flag"
4014                         || test ! -s conftest.err'
4015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4016  (eval $ac_try) 2>&5
4017  ac_status=$?
4018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019  (exit $ac_status); }; } &&
4020         { ac_try='test -s conftest$ac_exeext'
4021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022  (eval $ac_try) 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); }; }; then
4026  :
4027else
4028  echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031CXXFLAGS=
4032fi
4033rm -f conftest.err conftest.$ac_objext \
4034      conftest$ac_exeext conftest.$ac_ext
4035  if test -z "$CXXFLAGS"; then
4036    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
4037echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
4038  fi
4039fi
4040
4041{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4042echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4043
4044
4045if test x"$MPICXX" = x; then :; else
4046  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4047echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4048  CXX="$MPICXX"
4049fi
4050
4051# correct the LD variable in a mingw build with MS or intel compiler
4052case "$CXX" in
4053  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4054    case $build in
4055  *-mingw*)
4056    if test "${LD+set}" = set; then :; else
4057      LD=link
4058    fi
4059    ;;
4060 esac
4061 case $enable_doscompile in
4062   msvc)
4063     if test "x${LD+set}" = xset; then :; else
4064       LD=link
4065     fi
4066     ;;
4067 esac
4068
4069    ;;
4070esac
4071
4072ac_ext=c
4073ac_cpp='$CPP $CPPFLAGS'
4074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
4078
4079
4080# Get the name of the Fortran compiler and appropriate compiler options
4081case $build in
4082  *-cygwin* | *-mingw*)
4083     if test "$enable_doscompile" = msvc ; then
4084       coin_f77_comps="ifort fl32 compile_f2c"
4085     else
4086       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4087     fi ;;
4088  *-*-solaris*)
4089     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4090  *-linux-gnu*)
4091     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4092  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4093 esac
4094
4095
4096
4097
4098
4099
4100ac_ext=f
4101ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4102ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4104
4105
4106
4107
4108
4109
4110coin_has_f77=yes
4111
4112save_fflags="$FFLAGS"
4113
4114# We delete the cached value, since the test might not have been
4115# performed with our choice of compilers earlier
4116$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4117
4118# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4119# coin_f77_comps to see if there's a program that matches one of the names.
4120# If there's no such program, F77 = unavailable. If we match the name,
4121# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4122# compiler.
4123# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4124
4125
4126{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4127echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4128for ac_prog in $coin_f77_comps
4129do
4130  # Extract the first word of "$ac_prog", so it can be a program name with args.
4131set dummy $ac_prog; ac_word=$2
4132echo "$as_me:$LINENO: checking for $ac_word" >&5
4133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4134if test "${ac_cv_prog_F77+set}" = set; then
4135  echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137  if test -n "$F77"; then
4138  ac_cv_prog_F77="$F77" # Let the user override the test.
4139else
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143  IFS=$as_save_IFS
4144  test -z "$as_dir" && as_dir=.
4145  for ac_exec_ext in '' $ac_executable_extensions; do
4146  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147    ac_cv_prog_F77="$ac_prog"
4148    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149    break 2
4150  fi
4151done
4152done
4153
4154fi
4155fi
4156F77=$ac_cv_prog_F77
4157if test -n "$F77"; then
4158  echo "$as_me:$LINENO: result: $F77" >&5
4159echo "${ECHO_T}$F77" >&6
4160else
4161  echo "$as_me:$LINENO: result: no" >&5
4162echo "${ECHO_T}no" >&6
4163fi
4164
4165  test -n "$F77" && break
4166done
4167test -n "$F77" || F77="unavailable"
4168
4169
4170if test "$F77" != "unavailable" ; then
4171  ac_ext=f
4172ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4173ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4175if test -n "$ac_tool_prefix"; then
4176  for ac_prog in $coin_f77_comps
4177  do
4178    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4180echo "$as_me:$LINENO: checking for $ac_word" >&5
4181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4182if test "${ac_cv_prog_F77+set}" = set; then
4183  echo $ECHO_N "(cached) $ECHO_C" >&6
4184else
4185  if test -n "$F77"; then
4186  ac_cv_prog_F77="$F77" # Let the user override the test.
4187else
4188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189for as_dir in $PATH
4190do
4191  IFS=$as_save_IFS
4192  test -z "$as_dir" && as_dir=.
4193  for ac_exec_ext in '' $ac_executable_extensions; do
4194  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197    break 2
4198  fi
4199done
4200done
4201
4202fi
4203fi
4204F77=$ac_cv_prog_F77
4205if test -n "$F77"; then
4206  echo "$as_me:$LINENO: result: $F77" >&5
4207echo "${ECHO_T}$F77" >&6
4208else
4209  echo "$as_me:$LINENO: result: no" >&5
4210echo "${ECHO_T}no" >&6
4211fi
4212
4213    test -n "$F77" && break
4214  done
4215fi
4216if test -z "$F77"; then
4217  ac_ct_F77=$F77
4218  for ac_prog in $coin_f77_comps
4219do
4220  # Extract the first word of "$ac_prog", so it can be a program name with args.
4221set dummy $ac_prog; ac_word=$2
4222echo "$as_me:$LINENO: checking for $ac_word" >&5
4223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4224if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4225  echo $ECHO_N "(cached) $ECHO_C" >&6
4226else
4227  if test -n "$ac_ct_F77"; then
4228  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4229else
4230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233  IFS=$as_save_IFS
4234  test -z "$as_dir" && as_dir=.
4235  for ac_exec_ext in '' $ac_executable_extensions; do
4236  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4237    ac_cv_prog_ac_ct_F77="$ac_prog"
4238    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4239    break 2
4240  fi
4241done
4242done
4243
4244fi
4245fi
4246ac_ct_F77=$ac_cv_prog_ac_ct_F77
4247if test -n "$ac_ct_F77"; then
4248  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4249echo "${ECHO_T}$ac_ct_F77" >&6
4250else
4251  echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253fi
4254
4255  test -n "$ac_ct_F77" && break
4256done
4257
4258  F77=$ac_ct_F77
4259fi
4260
4261
4262# Provide some information about the compiler.
4263echo "$as_me:4263:" \
4264     "checking for Fortran 77 compiler version" >&5
4265ac_compiler=`set X $ac_compile; echo $2`
4266{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4267  (eval $ac_compiler --version </dev/null >&5) 2>&5
4268  ac_status=$?
4269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270  (exit $ac_status); }
4271{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4272  (eval $ac_compiler -v </dev/null >&5) 2>&5
4273  ac_status=$?
4274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275  (exit $ac_status); }
4276{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4277  (eval $ac_compiler -V </dev/null >&5) 2>&5
4278  ac_status=$?
4279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280  (exit $ac_status); }
4281rm -f a.out
4282
4283# If we don't use `.F' as extension, the preprocessor is not run on the
4284# input file.  (Note that this only needs to work for GNU compilers.)
4285ac_save_ext=$ac_ext
4286ac_ext=F
4287echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4288echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4289if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4290  echo $ECHO_N "(cached) $ECHO_C" >&6
4291else
4292  cat >conftest.$ac_ext <<_ACEOF
4293      program main
4294#ifndef __GNUC__
4295       choke me
4296#endif
4297
4298      end
4299_ACEOF
4300rm -f conftest.$ac_objext
4301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302  (eval $ac_compile) 2>conftest.er1
4303  ac_status=$?
4304  grep -v '^ *+' conftest.er1 >conftest.err
4305  rm -f conftest.er1
4306  cat conftest.err >&5
4307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308  (exit $ac_status); } &&
4309         { ac_try='test -z "$ac_f77_werror_flag"
4310                         || test ! -s conftest.err'
4311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312  (eval $ac_try) 2>&5
4313  ac_status=$?
4314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315  (exit $ac_status); }; } &&
4316         { ac_try='test -s conftest.$ac_objext'
4317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318  (eval $ac_try) 2>&5
4319  ac_status=$?
4320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321  (exit $ac_status); }; }; then
4322  ac_compiler_gnu=yes
4323else
4324  echo "$as_me: failed program was:" >&5
4325sed 's/^/| /' conftest.$ac_ext >&5
4326
4327ac_compiler_gnu=no
4328fi
4329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4330ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4331
4332fi
4333echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4334echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4335ac_ext=$ac_save_ext
4336ac_test_FFLAGS=${FFLAGS+set}
4337ac_save_FFLAGS=$FFLAGS
4338FFLAGS=
4339echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4340echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4341if test "${ac_cv_prog_f77_g+set}" = set; then
4342  echo $ECHO_N "(cached) $ECHO_C" >&6
4343else
4344  FFLAGS=-g
4345cat >conftest.$ac_ext <<_ACEOF
4346      program main
4347
4348      end
4349_ACEOF
4350rm -f conftest.$ac_objext
4351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352  (eval $ac_compile) 2>conftest.er1
4353  ac_status=$?
4354  grep -v '^ *+' conftest.er1 >conftest.err
4355  rm -f conftest.er1
4356  cat conftest.err >&5
4357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358  (exit $ac_status); } &&
4359         { ac_try='test -z "$ac_f77_werror_flag"
4360                         || test ! -s conftest.err'
4361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362  (eval $ac_try) 2>&5
4363  ac_status=$?
4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365  (exit $ac_status); }; } &&
4366         { ac_try='test -s conftest.$ac_objext'
4367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4368  (eval $ac_try) 2>&5
4369  ac_status=$?
4370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371  (exit $ac_status); }; }; then
4372  ac_cv_prog_f77_g=yes
4373else
4374  echo "$as_me: failed program was:" >&5
4375sed 's/^/| /' conftest.$ac_ext >&5
4376
4377ac_cv_prog_f77_g=no
4378fi
4379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4380
4381fi
4382echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4383echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4384if test "$ac_test_FFLAGS" = set; then
4385  FFLAGS=$ac_save_FFLAGS
4386elif test $ac_cv_prog_f77_g = yes; then
4387  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4388    FFLAGS="-g -O2"
4389  else
4390    FFLAGS="-g"
4391  fi
4392else
4393  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4394    FFLAGS="-O2"
4395  else
4396    FFLAGS=
4397  fi
4398fi
4399
4400G77=`test $ac_compiler_gnu = yes && echo yes`
4401ac_ext=f
4402ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4403ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4405
4406else
4407  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4408echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4409fi
4410
4411FFLAGS="$save_fflags"
4412
4413# Check if a project specific FFLAGS variable has been set
4414if test x$COIN_PRJCT != x; then
4415  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4416  if test x$coin_tmp = xset; then
4417    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4418  fi
4419fi
4420
4421if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4422
4423  coin_add_fflags=
4424  coin_opt_fflags=
4425  coin_dbg_fflags=
4426  coin_warn_fflags=
4427
4428  if test "$G77" = "yes"; then
4429    coin_opt_fflags="-O3"
4430    coin_add_fflags="-pipe"
4431    coin_dbg_fflags="-g"
4432    case $enable_doscompile in
4433      mingw)
4434        FFLAGS="-mno-cygwin"
4435        cat >conftest.$ac_ext <<_ACEOF
4436      program main
4437      write(*,*) 'Hello world'
4438      end
4439_ACEOF
4440rm -f conftest.$ac_objext conftest$ac_exeext
4441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4442  (eval $ac_link) 2>conftest.er1
4443  ac_status=$?
4444  grep -v '^ *+' conftest.er1 >conftest.err
4445  rm -f conftest.er1
4446  cat conftest.err >&5
4447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448  (exit $ac_status); } &&
4449         { ac_try='test -z "$ac_f77_werror_flag"
4450                         || test ! -s conftest.err'
4451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4452  (eval $ac_try) 2>&5
4453  ac_status=$?
4454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455  (exit $ac_status); }; } &&
4456         { ac_try='test -s conftest$ac_exeext'
4457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458  (eval $ac_try) 2>&5
4459  ac_status=$?
4460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461  (exit $ac_status); }; }; then
4462  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4463else
4464  echo "$as_me: failed program was:" >&5
4465sed 's/^/| /' conftest.$ac_ext >&5
4466
4467fi
4468rm -f conftest.err conftest.$ac_objext \
4469      conftest$ac_exeext conftest.$ac_ext
4470        FFLAGS=
4471      ;;
4472    esac
4473  else
4474    case $build in
4475      *-cygwin* | *-mingw*)
4476        case $F77 in
4477          ifort* | */ifort* | IFORT* | */IFORT* )
4478            coin_opt_fflags='-MT -O3'
4479            coin_add_fflags='-fpp -nologo'
4480            coin_dbg_fflags='-MTd -debug'
4481          ;;
4482          compile_f2c*)
4483            coin_opt_fflags='-MT -O2'
4484            coin_add_fflags='-nologo -wd4996'
4485            coin_dbg_fflags='-MTd'
4486          ;;
4487        esac
4488        ;;
4489      *-linux-*)
4490        case $F77 in
4491          ifc* | */ifc* | ifort* | */ifort*)
4492            coin_opt_fflags="-O3 -ip"
4493            coin_add_fflags="-cm -w90 -w95"
4494            coin_dbg_fflags="-g -CA -CB -CS"
4495            # Check if -i_dynamic is necessary (for new glibc library)
4496            FFLAGS=
4497            cat >conftest.$ac_ext <<_ACEOF
4498      program main
4499      write(*,*) 'Hello world'
4500      end
4501_ACEOF
4502rm -f conftest.$ac_objext conftest$ac_exeext
4503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4504  (eval $ac_link) 2>conftest.er1
4505  ac_status=$?
4506  grep -v '^ *+' conftest.er1 >conftest.err
4507  rm -f conftest.er1
4508  cat conftest.err >&5
4509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510  (exit $ac_status); } &&
4511         { ac_try='test -z "$ac_f77_werror_flag"
4512                         || test ! -s conftest.err'
4513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4514  (eval $ac_try) 2>&5
4515  ac_status=$?
4516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517  (exit $ac_status); }; } &&
4518         { ac_try='test -s conftest$ac_exeext'
4519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4520  (eval $ac_try) 2>&5
4521  ac_status=$?
4522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523  (exit $ac_status); }; }; then
4524  :
4525else
4526  echo "$as_me: failed program was:" >&5
4527sed 's/^/| /' conftest.$ac_ext >&5
4528
4529coin_add_fflags="-i_dynamic $coin_add_fflags"
4530fi
4531rm -f conftest.err conftest.$ac_objext \
4532      conftest$ac_exeext conftest.$ac_ext
4533            ;;
4534          pgf77* | */pgf77* | pgf90* | */pgf90*)
4535            coin_opt_fflags="-fast"
4536            coin_add_fflags="-Kieee -pc 64"
4537            coin_dbg_fflags="-g"
4538          ;;
4539        esac
4540        ;;
4541      *-ibm-*)
4542        case "$F77" in
4543          xlf* | */xlf* | mpxlf* | */mpxlf* )
4544            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4545            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4546            coin_dbg_fflags="-g -C"
4547            ;;
4548        esac
4549        ;;
4550      *-hp-*)
4551        coin_opt_fflags="+O3"
4552        coin_add_fflags="+U77"
4553        coin_dbg_fflags="-C -g"
4554        ;;
4555      *-*-solaris*)
4556        coin_opt_fflags="-O4"
4557        coin_dbg_fflags="-g"
4558        ;;
4559      *-sgi-*)
4560        coin_opt_fflags="-O5 -OPT:Olimit=0"
4561        coin_dbg_fflags="-g"
4562        ;;
4563    esac
4564  fi
4565
4566  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4567    coin_dbg_fflags="-g"
4568  fi
4569
4570  if test -z "$coin_opt_fflags"; then
4571    # Try if -O option works if nothing else is set
4572    FFLAGS=-O
4573    cat >conftest.$ac_ext <<_ACEOF
4574      program main
4575      integer i
4576      end
4577_ACEOF
4578rm -f conftest.$ac_objext conftest$ac_exeext
4579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4580  (eval $ac_link) 2>conftest.er1
4581  ac_status=$?
4582  grep -v '^ *+' conftest.er1 >conftest.err
4583  rm -f conftest.er1
4584  cat conftest.err >&5
4585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586  (exit $ac_status); } &&
4587         { ac_try='test -z "$ac_f77_werror_flag"
4588                         || test ! -s conftest.err'
4589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4590  (eval $ac_try) 2>&5
4591  ac_status=$?
4592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593  (exit $ac_status); }; } &&
4594         { ac_try='test -s conftest$ac_exeext'
4595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596  (eval $ac_try) 2>&5
4597  ac_status=$?
4598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599  (exit $ac_status); }; }; then
4600  coin_opt_fflags="-O"
4601else
4602  echo "$as_me: failed program was:" >&5
4603sed 's/^/| /' conftest.$ac_ext >&5
4604
4605fi
4606rm -f conftest.err conftest.$ac_objext \
4607      conftest$ac_exeext conftest.$ac_ext
4608  fi
4609
4610  # if PM doesn't want the warning messages, take them out
4611  if test x"$coin_skip_warn_fflags" = xyes; then
4612    coin_warn_fflags=
4613  fi
4614
4615  if test x${DBG_FFLAGS+set} != xset; then
4616    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4617  fi
4618  if test x${OPT_FFLAGS+set} != xset; then
4619    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4620  fi
4621
4622  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4623  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4624
4625  if test "$coin_debug_compile" = "true"; then
4626    FFLAGS="$DBG_FFLAGS"
4627  else
4628    FFLAGS="$OPT_FFLAGS"
4629  fi
4630else
4631  FFLAGS="$FFLAGS $ADD_FFLAGS"
4632  if test x${DBG_FFLAGS+set} != xset; then
4633    DBG_FFLAGS="$FFLAGS"
4634  fi
4635  if test x${OPT_FFLAGS+set} != xset; then
4636    OPT_FFLAGS="$FFLAGS"
4637  fi
4638fi
4639
4640# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4641case "$FFLAGS" in
4642  *-mno-cygwin*)
4643    if test x${CPPFLAGS+set} != xset ; then
4644      CPPFLAGS="-mno-cygwin"
4645    else
4646      case "$CPPFLAGS" in
4647        *-mno-cygwin*)
4648          ;;
4649        *)
4650          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4651          ;;
4652      esac
4653    fi ;;
4654esac
4655
4656# Try if FFLAGS works
4657if test "$F77" != "unavailable" ; then
4658  cat >conftest.$ac_ext <<_ACEOF
4659      program main
4660      integer i
4661      end
4662_ACEOF
4663rm -f conftest.$ac_objext conftest$ac_exeext
4664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4665  (eval $ac_link) 2>conftest.er1
4666  ac_status=$?
4667  grep -v '^ *+' conftest.er1 >conftest.err
4668  rm -f conftest.er1
4669  cat conftest.err >&5
4670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); } &&
4672         { ac_try='test -z "$ac_f77_werror_flag"
4673                         || test ! -s conftest.err'
4674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675  (eval $ac_try) 2>&5
4676  ac_status=$?
4677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678  (exit $ac_status); }; } &&
4679         { ac_try='test -s conftest$ac_exeext'
4680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681  (eval $ac_try) 2>&5
4682  ac_status=$?
4683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684  (exit $ac_status); }; }; then
4685  :
4686else
4687  echo "$as_me: failed program was:" >&5
4688sed 's/^/| /' conftest.$ac_ext >&5
4689
4690FFLAGS=
4691fi
4692rm -f conftest.err conftest.$ac_objext \
4693      conftest$ac_exeext conftest.$ac_ext
4694  if test -z "$FFLAGS"; then
4695    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4696echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4697    FFLAGS='-O'
4698    cat >conftest.$ac_ext <<_ACEOF
4699      program main
4700      integer i
4701      end
4702_ACEOF
4703rm -f conftest.$ac_objext conftest$ac_exeext
4704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4705  (eval $ac_link) 2>conftest.er1
4706  ac_status=$?
4707  grep -v '^ *+' conftest.er1 >conftest.err
4708  rm -f conftest.er1
4709  cat conftest.err >&5
4710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711  (exit $ac_status); } &&
4712         { ac_try='test -z "$ac_f77_werror_flag"
4713                         || test ! -s conftest.err'
4714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715  (eval $ac_try) 2>&5
4716  ac_status=$?
4717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718  (exit $ac_status); }; } &&
4719         { ac_try='test -s conftest$ac_exeext'
4720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721  (eval $ac_try) 2>&5
4722  ac_status=$?
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); }; }; then
4725  :
4726else
4727  echo "$as_me: failed program was:" >&5
4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730FFLAGS=
4731fi
4732rm -f conftest.err conftest.$ac_objext \
4733      conftest$ac_exeext conftest.$ac_ext
4734    if test -z "$FFLAGS"; then
4735      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4736echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4737    fi
4738  fi
4739fi
4740
4741{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4742echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4743
4744
4745if test x"$MPIF77" = x; then :; else
4746  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4747echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4748  F77="$MPIF77"
4749fi
4750
4751# correct the LD variable if we use the intel fortran compiler in windows
4752case "$F77" in
4753  ifort* | */ifort* | IFORT* | */IFORT*)
4754    case $build in
4755  *-mingw*)
4756    if test "${LD+set}" = set; then :; else
4757      LD=link
4758    fi
4759    ;;
4760 esac
4761 case $enable_doscompile in
4762   msvc)
4763     if test "x${LD+set}" = xset; then :; else
4764       LD=link
4765     fi
4766     ;;
4767 esac
4768
4769    ;;
4770esac
4771
4772ac_ext=c
4773ac_cpp='$CPP $CPPFLAGS'
4774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777
4778
4779
4780# Initialize automake and libtool
4781# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4782{
4783
4784
4785
4786# START
4787
4788# Test if force_shared has been set
4789if test "x" = xforce_shared; then
4790  if test x$enable_shared = xno; then
4791    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4792echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4793   { (exit 1); exit 1; }; }
4794  fi
4795  enable_shared=yes;
4796else
4797  # On Cygwin and AIX, building DLLs doesn't work
4798  case $build in
4799    *-cygwin*)
4800      coin_disable_shared=yes
4801      platform=Cygwin
4802    ;;
4803    *-aix*)
4804      coin_disable_shared=yes
4805      platform=AIX
4806    ;;
4807    *-mingw*)
4808      coin_disable_shared=yes
4809      platform="Msys"
4810#      case "$CXX" in
4811#        cl*)
4812#          coin_disable_shared=yes
4813#          platform="Msys with cl"
4814#      ;;
4815#      esac
4816    ;;
4817  esac
4818fi
4819if test x"$coin_disable_shared" = xyes; then
4820  if test x"$enable_shared" = xyes; then
4821    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4822echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4823  fi
4824  enable_shared=no
4825fi
4826# By default, we only want the shared objects to be compiled
4827# Check whether --enable-static or --disable-static was given.
4828if test "${enable_static+set}" = set; then
4829  enableval="$enable_static"
4830  p=${PACKAGE-default}
4831    case $enableval in
4832    yes) enable_static=yes ;;
4833    no) enable_static=no ;;
4834    *)
4835     enable_static=no
4836      # Look at the argument we got.  We use all the common list separators.
4837      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4838      for pkg in $enableval; do
4839        IFS="$lt_save_ifs"
4840        if test "X$pkg" = "X$p"; then
4841          enable_static=yes
4842        fi
4843      done
4844      IFS="$lt_save_ifs"
4845      ;;
4846    esac
4847else
4848  enable_static=no
4849fi;
4850
4851
4852
4853
4854# Initialize automake
4855echo "$as_me:$LINENO: checking for egrep" >&5
4856echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4857if test "${ac_cv_prog_egrep+set}" = set; then
4858  echo $ECHO_N "(cached) $ECHO_C" >&6
4859else
4860  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4861    then ac_cv_prog_egrep='grep -E'
4862    else ac_cv_prog_egrep='egrep'
4863    fi
4864fi
4865echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4866echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4867 EGREP=$ac_cv_prog_egrep
4868
4869
4870echo "$as_me:$LINENO: checking whether ln -s works" >&5
4871echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4872LN_S=$as_ln_s
4873if test "$LN_S" = "ln -s"; then
4874  echo "$as_me:$LINENO: result: yes" >&5
4875echo "${ECHO_T}yes" >&6
4876else
4877  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4878echo "${ECHO_T}no, using $LN_S" >&6
4879fi
4880
4881am__api_version="1.9"
4882# Find a good install program.  We prefer a C program (faster),
4883# so one script is as good as another.  But avoid the broken or
4884# incompatible versions:
4885# SysV /etc/install, /usr/sbin/install
4886# SunOS /usr/etc/install
4887# IRIX /sbin/install
4888# AIX /bin/install
4889# AmigaOS /C/install, which installs bootblocks on floppy discs
4890# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4891# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4892# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4893# OS/2's system install, which has a completely different semantic
4894# ./install, which can be erroneously created by make from ./install.sh.
4895echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4896echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4897if test -z "$INSTALL"; then
4898if test "${ac_cv_path_install+set}" = set; then
4899  echo $ECHO_N "(cached) $ECHO_C" >&6
4900else
4901  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904  IFS=$as_save_IFS
4905  test -z "$as_dir" && as_dir=.
4906  # Account for people who put trailing slashes in PATH elements.
4907case $as_dir/ in
4908  ./ | .// | /cC/* | \
4909  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4910  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4911  /usr/ucb/* ) ;;
4912  *)
4913    # OSF1 and SCO ODT 3.0 have their own names for install.
4914    # Don't use installbsd from OSF since it installs stuff as root
4915    # by default.
4916    for ac_prog in ginstall scoinst install; do
4917      for ac_exec_ext in '' $ac_executable_extensions; do
4918        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4919          if test $ac_prog = install &&
4920            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4921            # AIX install.  It has an incompatible calling convention.
4922            :
4923          elif test $ac_prog = install &&
4924            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4925            # program-specific install script used by HP pwplus--don't use.
4926            :
4927          else
4928            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4929            break 3
4930          fi
4931        fi
4932      done
4933    done
4934    ;;
4935esac
4936done
4937
4938
4939fi
4940  if test "${ac_cv_path_install+set}" = set; then
4941    INSTALL=$ac_cv_path_install
4942  else
4943    # As a last resort, use the slow shell script.  We don't cache a
4944    # path for INSTALL within a source directory, because that will
4945    # break other packages using the cache if that directory is
4946    # removed, or if the path is relative.
4947    INSTALL=$ac_install_sh
4948  fi
4949fi
4950echo "$as_me:$LINENO: result: $INSTALL" >&5
4951echo "${ECHO_T}$INSTALL" >&6
4952
4953# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4954# It thinks the first close brace ends the variable substitution.
4955test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4956
4957test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4958
4959test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4960
4961echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4962echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4963# Just in case
4964sleep 1
4965echo timestamp > conftest.file
4966# Do `set' in a subshell so we don't clobber the current shell's
4967# arguments.  Must try -L first in case configure is actually a
4968# symlink; some systems play weird games with the mod time of symlinks
4969# (eg FreeBSD returns the mod time of the symlink's containing
4970# directory).
4971if (
4972   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4973   if test "$*" = "X"; then
4974      # -L didn't work.
4975      set X `ls -t $srcdir/configure conftest.file`
4976   fi
4977   rm -f conftest.file
4978   if test "$*" != "X $srcdir/configure conftest.file" \
4979      && test "$*" != "X conftest.file $srcdir/configure"; then
4980
4981      # If neither matched, then we have a broken ls.  This can happen
4982      # if, for instance, CONFIG_SHELL is bash and it inherits a
4983      # broken ls alias from the environment.  This has actually
4984      # happened.  Such a system could not be considered "sane".
4985      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4986alias in your environment" >&5
4987echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4988alias in your environment" >&2;}
4989   { (exit 1); exit 1; }; }
4990   fi
4991
4992   test "$2" = conftest.file
4993   )
4994then
4995   # Ok.
4996   :
4997else
4998   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4999Check your system clock" >&5
5000echo "$as_me: error: newly created file is older than distributed files!
5001Check your system clock" >&2;}
5002   { (exit 1); exit 1; }; }
5003fi
5004echo "$as_me:$LINENO: result: yes" >&5
5005echo "${ECHO_T}yes" >&6
5006test "$program_prefix" != NONE &&
5007  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5008# Use a double $ so make ignores it.
5009test "$program_suffix" != NONE &&
5010  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5011# Double any \ or $.  echo might interpret backslashes.
5012# By default was `s,x,x', remove it if useless.
5013cat <<\_ACEOF >conftest.sed
5014s/[\\$]/&&/g;s/;s,x,x,$//
5015_ACEOF
5016program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5017rm conftest.sed
5018
5019# expand $ac_aux_dir to an absolute path
5020am_aux_dir=`cd $ac_aux_dir && pwd`
5021
5022test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5023# Use eval to expand $SHELL
5024if eval "$MISSING --run true"; then
5025  am_missing_run="$MISSING --run "
5026else
5027  am_missing_run=
5028  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5029echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5030fi
5031
5032if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5033  # We used to keeping the `.' as first argument, in order to
5034  # allow $(mkdir_p) to be used without argument.  As in
5035  #   $(mkdir_p) $(somedir)
5036  # where $(somedir) is conditionally defined.  However this is wrong
5037  # for two reasons:
5038  #  1. if the package is installed by a user who cannot write `.'
5039  #     make install will fail,
5040  #  2. the above comment should most certainly read
5041  #     $(mkdir_p) $(DESTDIR)$(somedir)
5042  #     so it does not work when $(somedir) is undefined and
5043  #     $(DESTDIR) is not.
5044  #  To support the latter case, we have to write
5045  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5046  #  so the `.' trick is pointless.
5047  mkdir_p='mkdir -p --'
5048else
5049  # On NextStep and OpenStep, the `mkdir' command does not
5050  # recognize any option.  It will interpret all options as
5051  # directories to create, and then abort because `.' already
5052  # exists.
5053  for d in ./-p ./--version;
5054  do
5055    test -d $d && rmdir $d
5056  done
5057  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5058  if test -f "$ac_aux_dir/mkinstalldirs"; then
5059    mkdir_p='$(mkinstalldirs)'
5060  else
5061    mkdir_p='$(install_sh) -d'
5062  fi
5063fi
5064
5065for ac_prog in gawk mawk nawk awk
5066do
5067  # Extract the first word of "$ac_prog", so it can be a program name with args.
5068set dummy $ac_prog; ac_word=$2
5069echo "$as_me:$LINENO: checking for $ac_word" >&5
5070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5071if test "${ac_cv_prog_AWK+set}" = set; then
5072  echo $ECHO_N "(cached) $ECHO_C" >&6
5073else
5074  if test -n "$AWK"; then
5075  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5076else
5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
5079do
5080  IFS=$as_save_IFS
5081  test -z "$as_dir" && as_dir=.
5082  for ac_exec_ext in '' $ac_executable_extensions; do
5083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084    ac_cv_prog_AWK="$ac_prog"
5085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086    break 2
5087  fi
5088done
5089done
5090
5091fi
5092fi
5093AWK=$ac_cv_prog_AWK
5094if test -n "$AWK"; then
5095  echo "$as_me:$LINENO: result: $AWK" >&5
5096echo "${ECHO_T}$AWK" >&6
5097else
5098  echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6
5100fi
5101
5102  test -n "$AWK" && break
5103done
5104
5105echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5106echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5107set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5108if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5109  echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111  cat >conftest.make <<\_ACEOF
5112all:
5113        @echo 'ac_maketemp="$(MAKE)"'
5114_ACEOF
5115# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5116eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5117if test -n "$ac_maketemp"; then
5118  eval ac_cv_prog_make_${ac_make}_set=yes
5119else
5120  eval ac_cv_prog_make_${ac_make}_set=no
5121fi
5122rm -f conftest.make
5123fi
5124if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5125  echo "$as_me:$LINENO: result: yes" >&5
5126echo "${ECHO_T}yes" >&6
5127  SET_MAKE=
5128else
5129  echo "$as_me:$LINENO: result: no" >&5
5130echo "${ECHO_T}no" >&6
5131  SET_MAKE="MAKE=${MAKE-make}"
5132fi
5133
5134rm -rf .tst 2>/dev/null
5135mkdir .tst 2>/dev/null
5136if test -d .tst; then
5137  am__leading_dot=.
5138else
5139  am__leading_dot=_
5140fi
5141rmdir .tst 2>/dev/null
5142
5143DEPDIR="${am__leading_dot}deps"
5144
5145          ac_config_commands="$ac_config_commands depfiles"
5146
5147
5148am_make=${MAKE-make}
5149cat > confinc << 'END'
5150am__doit:
5151        @echo done
5152.PHONY: am__doit
5153END
5154# If we don't find an include directive, just comment out the code.
5155echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5156echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5157am__include="#"
5158am__quote=
5159_am_result=none
5160# First try GNU make style include.
5161echo "include confinc" > confmf
5162# We grep out `Entering directory' and `Leaving directory'
5163# messages which can occur if `w' ends up in MAKEFLAGS.
5164# In particular we don't look at `^make:' because GNU make might
5165# be invoked under some other name (usually "gmake"), in which
5166# case it prints its new name instead of `make'.
5167if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5168   am__include=include
5169   am__quote=
5170   _am_result=GNU
5171fi
5172# Now try BSD make style include.
5173if test "$am__include" = "#"; then
5174   echo '.include "confinc"' > confmf
5175   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5176      am__include=.include
5177      am__quote="\""
5178      _am_result=BSD
5179   fi
5180fi
5181
5182
5183echo "$as_me:$LINENO: result: $_am_result" >&5
5184echo "${ECHO_T}$_am_result" >&6
5185rm -f confinc confmf
5186
5187# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5188if test "${enable_dependency_tracking+set}" = set; then
5189  enableval="$enable_dependency_tracking"
5190
5191fi;
5192if test "x$enable_dependency_tracking" != xno; then
5193  am_depcomp="$ac_aux_dir/depcomp"
5194  AMDEPBACKSLASH='\'
5195fi
5196
5197
5198if test "x$enable_dependency_tracking" != xno; then
5199  AMDEP_TRUE=
5200  AMDEP_FALSE='#'
5201else
5202  AMDEP_TRUE='#'
5203  AMDEP_FALSE=
5204fi
5205
5206
5207
5208
5209
5210
5211# AC_MSG_NOTICE([Beginning automake initialisation.])
5212# Stuff for automake
5213# test to see if srcdir already configured
5214if test "`cd $srcdir && pwd`" != "`pwd`" &&
5215   test -f $srcdir/config.status; then
5216  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5217echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5218   { (exit 1); exit 1; }; }
5219fi
5220
5221# test whether we have cygpath
5222if test -z "$CYGPATH_W"; then
5223  if (cygpath --version) >/dev/null 2>/dev/null; then
5224    CYGPATH_W='cygpath -w'
5225  else
5226    CYGPATH_W=echo
5227  fi
5228fi
5229
5230
5231# Define the identity of the package.
5232 PACKAGE='cbc'
5233 VERSION='trunk'
5234
5235
5236cat >>confdefs.h <<_ACEOF
5237#define PACKAGE "$PACKAGE"
5238_ACEOF
5239
5240
5241cat >>confdefs.h <<_ACEOF
5242#define VERSION "$VERSION"
5243_ACEOF
5244
5245# Some tools Automake needs.
5246
5247ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5248
5249
5250AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5251
5252
5253AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5254
5255
5256AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5257
5258
5259MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5260
5261install_sh=${install_sh-"$am_aux_dir/install-sh"}
5262
5263# Installed binaries are usually stripped using `strip' when the user
5264# run `make install-strip'.  However `strip' might not be the right
5265# tool to use in cross-compilation environments, therefore Automake
5266# will honor the `STRIP' environment variable to overrule this program.
5267if test "$cross_compiling" != no; then
5268  if test -n "$ac_tool_prefix"; then
5269  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5270set dummy ${ac_tool_prefix}strip; ac_word=$2
5271echo "$as_me:$LINENO: checking for $ac_word" >&5
5272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5273if test "${ac_cv_prog_STRIP+set}" = set; then
5274  echo $ECHO_N "(cached) $ECHO_C" >&6
5275else
5276  if test -n "$STRIP"; then
5277  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5278else
5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280for as_dir in $PATH
5281do
5282  IFS=$as_save_IFS
5283  test -z "$as_dir" && as_dir=.
5284  for ac_exec_ext in '' $ac_executable_extensions; do
5285  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5286    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5287    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288    break 2
5289  fi
5290done
5291done
5292
5293fi
5294fi
5295STRIP=$ac_cv_prog_STRIP
5296if test -n "$STRIP"; then
5297  echo "$as_me:$LINENO: result: $STRIP" >&5
5298echo "${ECHO_T}$STRIP" >&6
5299else
5300  echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6
5302fi
5303
5304fi
5305if test -z "$ac_cv_prog_STRIP"; then
5306  ac_ct_STRIP=$STRIP
5307  # Extract the first word of "strip", so it can be a program name with args.
5308set dummy strip; ac_word=$2
5309echo "$as_me:$LINENO: checking for $ac_word" >&5
5310echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5311if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5312  echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314  if test -n "$ac_ct_STRIP"; then
5315  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5316else
5317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318for as_dir in $PATH
5319do
5320  IFS=$as_save_IFS
5321  test -z "$as_dir" && as_dir=.
5322  for ac_exec_ext in '' $ac_executable_extensions; do
5323  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324    ac_cv_prog_ac_ct_STRIP="strip"
5325    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5326    break 2
5327  fi
5328done
5329done
5330
5331  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5332fi
5333fi
5334ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5335if test -n "$ac_ct_STRIP"; then
5336  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5337echo "${ECHO_T}$ac_ct_STRIP" >&6
5338else
5339  echo "$as_me:$LINENO: result: no" >&5
5340echo "${ECHO_T}no" >&6
5341fi
5342
5343  STRIP=$ac_ct_STRIP
5344else
5345  STRIP="$ac_cv_prog_STRIP"
5346fi
5347
5348fi
5349INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5350
5351# We need awk for the "check" target.  The system "awk" is bad on
5352# some platforms.
5353# Always define AMTAR for backward compatibility.
5354
5355AMTAR=${AMTAR-"${am_missing_run}tar"}
5356
5357am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5358
5359
5360
5361
5362depcc="$CC"   am_compiler_list=
5363
5364echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5365echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5366if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5367  echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5370  # We make a subdir and do the tests there.  Otherwise we can end up
5371  # making bogus files that we don't know about and never remove.  For
5372  # instance it was reported that on HP-UX the gcc test will end up
5373  # making a dummy file named `D' -- because `-MD' means `put the output
5374  # in D'.
5375  mkdir conftest.dir
5376  # Copy depcomp to subdir because otherwise we won't find it if we're
5377  # using a relative directory.
5378  cp "$am_depcomp" conftest.dir
5379  cd conftest.dir
5380  # We will build objects and dependencies in a subdirectory because
5381  # it helps to detect inapplicable dependency modes.  For instance
5382  # both Tru64's cc and ICC support -MD to output dependencies as a
5383  # side effect of compilation, but ICC will put the dependencies in
5384  # the current directory while Tru64 will put them in the object
5385  # directory.
5386  mkdir sub
5387
5388  am_cv_CC_dependencies_compiler_type=none
5389  if test "$am_compiler_list" = ""; then
5390     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5391  fi
5392  for depmode in $am_compiler_list; do
5393    # Setup a source with many dependencies, because some compilers
5394    # like to wrap large dependency lists on column 80 (with \), and
5395    # we should not choose a depcomp mode which is confused by this.
5396    #
5397    # We need to recreate these files for each test, as the compiler may
5398    # overwrite some of them when testing with obscure command lines.
5399    # This happens at least with the AIX C compiler.
5400    : > sub/conftest.c
5401    for i in 1 2 3 4 5 6; do
5402      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5404      # Solaris 8's {/usr,}/bin/sh.
5405      touch sub/conftst$i.h
5406    done
5407    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5408
5409    case $depmode in
5410    nosideeffect)
5411      # after this tag, mechanisms are not by side-effect, so they'll
5412      # only be used when explicitly requested
5413      if test "x$enable_dependency_tracking" = xyes; then
5414        continue
5415      else
5416        break
5417      fi
5418      ;;
5419    none) break ;;
5420    esac
5421    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5422    # mode.  It turns out that the SunPro C++ compiler does not properly
5423    # handle `-M -o', and we need to detect this.
5424    if depmode=$depmode \
5425       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5426       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5427       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5428         >/dev/null 2>conftest.err &&
5429       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5430       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5431       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5432      # icc doesn't choke on unknown options, it will just issue warnings
5433      # or remarks (even with -Werror).  So we grep stderr for any message
5434      # that says an option was ignored or not supported.
5435      # When given -MP, icc 7.0 and 7.1 complain thusly:
5436      #   icc: Command line warning: ignoring option '-M'; no argument required
5437      # The diagnosis changed in icc 8.0:
5438      #   icc: Command line remark: option '-MP' not supported
5439      if (grep 'ignoring option' conftest.err ||
5440          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5441        am_cv_CC_dependencies_compiler_type=$depmode
5442        break
5443      fi
5444    fi
5445  done
5446
5447  cd ..
5448  rm -rf conftest.dir
5449else
5450  am_cv_CC_dependencies_compiler_type=none
5451fi
5452
5453fi
5454echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5455echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5456CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5457
5458
5459
5460if
5461  test "x$enable_dependency_tracking" != xno \
5462  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5463  am__fastdepCC_TRUE=
5464  am__fastdepCC_FALSE='#'
5465else
5466  am__fastdepCC_TRUE='#'
5467  am__fastdepCC_FALSE=
5468fi
5469
5470
5471depcc="$CXX"  am_compiler_list=
5472
5473echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5474echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5475if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5476  echo $ECHO_N "(cached) $ECHO_C" >&6
5477else
5478  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5479  # We make a subdir and do the tests there.  Otherwise we can end up
5480  # making bogus files that we don't know about and never remove.  For
5481  # instance it was reported that on HP-UX the gcc test will end up
5482  # making a dummy file named `D' -- because `-MD' means `put the output
5483  # in D'.
5484  mkdir conftest.dir
5485  # Copy depcomp to subdir because otherwise we won't find it if we're
5486  # using a relative directory.
5487  cp "$am_depcomp" conftest.dir
5488  cd conftest.dir
5489  # We will build objects and dependencies in a subdirectory because
5490  # it helps to detect inapplicable dependency modes.  For instance
5491  # both Tru64's cc and ICC support -MD to output dependencies as a
5492  # side effect of compilation, but ICC will put the dependencies in
5493  # the current directory while Tru64 will put them in the object
5494  # directory.
5495  mkdir sub
5496
5497  am_cv_CXX_dependencies_compiler_type=none
5498  if test "$am_compiler_list" = ""; then
5499     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5500  fi
5501  for depmode in $am_compiler_list; do
5502    # Setup a source with many dependencies, because some compilers
5503    # like to wrap large dependency lists on column 80 (with \), and
5504    # we should not choose a depcomp mode which is confused by this.
5505    #
5506    # We need to recreate these files for each test, as the compiler may
5507    # overwrite some of them when testing with obscure command lines.
5508    # This happens at least with the AIX C compiler.
5509    : > sub/conftest.c
5510    for i in 1 2 3 4 5 6; do
5511      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5512      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5513      # Solaris 8's {/usr,}/bin/sh.
5514      touch sub/conftst$i.h
5515    done
5516    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5517
5518    case $depmode in
5519    nosideeffect)
5520      # after this tag, mechanisms are not by side-effect, so they'll
5521      # only be used when explicitly requested
5522      if test "x$enable_dependency_tracking" = xyes; then
5523        continue
5524      else
5525        break
5526      fi
5527      ;;
5528    none) break ;;
5529    esac
5530    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5531    # mode.  It turns out that the SunPro C++ compiler does not properly
5532    # handle `-M -o', and we need to detect this.
5533    if depmode=$depmode \
5534       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5535       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5536       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5537         >/dev/null 2>conftest.err &&
5538       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5539       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5540       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5541      # icc doesn't choke on unknown options, it will just issue warnings
5542      # or remarks (even with -Werror).  So we grep stderr for any message
5543      # that says an option was ignored or not supported.
5544      # When given -MP, icc 7.0 and 7.1 complain thusly:
5545      #   icc: Command line warning: ignoring option '-M'; no argument required
5546      # The diagnosis changed in icc 8.0:
5547      #   icc: Command line remark: option '-MP' not supported
5548      if (grep 'ignoring option' conftest.err ||
5549          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5550        am_cv_CXX_dependencies_compiler_type=$depmode
5551        break
5552      fi
5553    fi
5554  done
5555
5556  cd ..
5557  rm -rf conftest.dir
5558else
5559  am_cv_CXX_dependencies_compiler_type=none
5560fi
5561
5562fi
5563echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5564echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5565CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5566
5567
5568
5569if
5570  test "x$enable_dependency_tracking" != xno \
5571  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5572  am__fastdepCXX_TRUE=
5573  am__fastdepCXX_FALSE='#'
5574else
5575  am__fastdepCXX_TRUE='#'
5576  am__fastdepCXX_FALSE=
5577fi
5578
5579
5580
5581echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5582echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5583    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5584if test "${enable_maintainer_mode+set}" = set; then
5585  enableval="$enable_maintainer_mode"
5586  USE_MAINTAINER_MODE=$enableval
5587else
5588  USE_MAINTAINER_MODE=no
5589fi;
5590  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5591echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5592
5593
5594if test $USE_MAINTAINER_MODE = yes; then
5595  MAINTAINER_MODE_TRUE=
5596  MAINTAINER_MODE_FALSE='#'
5597else
5598  MAINTAINER_MODE_TRUE='#'
5599  MAINTAINER_MODE_FALSE=
5600fi
5601
5602  MAINT=$MAINTAINER_MODE_TRUE
5603
5604
5605
5606coin_have_externals=no
5607if test "$enable_maintainer_mode" = yes; then
5608
5609  # If maintainer mode is chosen, we make sure that the correct versions
5610  # of the tools are used, and that we know where libtool.m4 is (to
5611  # recreate acinclude.m4)
5612
5613
5614  LIBTOOLM4=
5615  # Normally, $HOME
5616  AUTOTOOLS_DFLT=$HOME
5617
5618  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5619echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5620if test "${ac_cv_use_correct_autotools+set}" = set; then
5621  echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623  ac_cv_use_correct_autotools=check
5624fi
5625echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5626echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5627
5628  if test $ac_cv_use_correct_autotools = check; then
5629    ac_cv_use_correct_autotools=yes
5630    # Check if we have autoconf
5631    # Extract the first word of "autoconf", so it can be a program name with args.
5632set dummy autoconf; ac_word=$2
5633echo "$as_me:$LINENO: checking for $ac_word" >&5
5634echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5635if test "${ac_cv_prog_have_autoconf+set}" = set; then
5636  echo $ECHO_N "(cached) $ECHO_C" >&6
5637else
5638  if test -n "$have_autoconf"; then
5639  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644  IFS=$as_save_IFS
5645  test -z "$as_dir" && as_dir=.
5646  for ac_exec_ext in '' $ac_executable_extensions; do
5647  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648    ac_cv_prog_have_autoconf="yes"
5649    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5650    break 2
5651  fi
5652done
5653done
5654
5655  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5656fi
5657fi
5658have_autoconf=$ac_cv_prog_have_autoconf
5659if test -n "$have_autoconf"; then
5660  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5661echo "${ECHO_T}$have_autoconf" >&6
5662else
5663  echo "$as_me:$LINENO: result: no" >&5
5664echo "${ECHO_T}no" >&6
5665fi
5666
5667    if test $have_autoconf = no; then
5668      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5669echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5670   { (exit 1); exit 1; }; }
5671    fi
5672
5673    # Check whether autoconf is the correct version
5674    correct_version='2.59'
5675    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5676    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5677echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5678    autoconf --version > confauto.out 2>&1
5679    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5680      echo "$as_me:$LINENO: result: yes" >&5
5681echo "${ECHO_T}yes" >&6
5682    else
5683      rm -f confauto.out
5684      echo "$as_me:$LINENO: result: no" >&5
5685echo "${ECHO_T}no" >&6
5686      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5687echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5688   { (exit 1); exit 1; }; }
5689    fi
5690    rm -f confauto.out
5691
5692    # Check if the executable autoconf is picked up from the correct location
5693    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5694echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5695    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5696    autoconf_dir=`cd $autoconf_dir; pwd`
5697    if test x$AUTOTOOLS_DIR = x; then
5698      want_dir=$AUTOTOOLS_DFLT/bin
5699    else
5700      want_dir=$AUTOTOOLS_DIR/bin
5701    fi
5702    if test $autoconf_dir = `cd $want_dir; pwd`; then
5703      echo "$as_me:$LINENO: result: yes" >&5
5704echo "${ECHO_T}yes" >&6
5705    else
5706      rm -f confauto.out
5707      echo "$as_me:$LINENO: result: no" >&5
5708echo "${ECHO_T}no" >&6
5709      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5710echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5711   { (exit 1); exit 1; }; }
5712    fi
5713
5714    # Check if we have automake
5715    # Extract the first word of "automake", so it can be a program name with args.
5716set dummy automake; ac_word=$2
5717echo "$as_me:$LINENO: checking for $ac_word" >&5
5718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719if test "${ac_cv_prog_have_automake+set}" = set; then
5720  echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722  if test -n "$have_automake"; then
5723  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730  for ac_exec_ext in '' $ac_executable_extensions; do
5731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_have_automake="yes"
5733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737done
5738
5739  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5740fi
5741fi
5742have_automake=$ac_cv_prog_have_automake
5743if test -n "$have_automake"; then
5744  echo "$as_me:$LINENO: result: $have_automake" >&5
5745echo "${ECHO_T}$have_automake" >&6
5746else
5747  echo "$as_me:$LINENO: result: no" >&5
5748echo "${ECHO_T}no" >&6
5749fi
5750
5751    if test $have_automake = no; then
5752      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5753echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5754   { (exit 1); exit 1; }; }
5755    fi
5756
5757    # Check whether automake is the correct version
5758    correct_version='1.9.6'
5759    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5760    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5761echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5762    automake --version > confauto.out 2>&1
5763    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5764      echo "$as_me:$LINENO: result: yes" >&5
5765echo "${ECHO_T}yes" >&6
5766    else
5767      rm -f confauto.out
5768      echo "$as_me:$LINENO: result: no" >&5
5769echo "${ECHO_T}no" >&6
5770      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5771echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5772   { (exit 1); exit 1; }; }
5773    fi
5774    rm -f confauto.out
5775
5776    # Check if the executable automake is picked up from the correct location
5777    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5778echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5779    automake_dir=`which automake | sed -e 's=/automake=='`
5780    automake_dir=`cd $automake_dir; pwd`
5781    if test x$AUTOTOOLS_DIR = x; then
5782      want_dir=$AUTOTOOLS_DFLT/bin
5783    else
5784      want_dir=$AUTOTOOLS_DIR/bin
5785    fi
5786    if test $automake_dir = `cd $want_dir; pwd`; then
5787      echo "$as_me:$LINENO: result: yes" >&5
5788echo "${ECHO_T}yes" >&6
5789    else
5790      rm -f confauto.out
5791      echo "$as_me:$LINENO: result: no" >&5
5792echo "${ECHO_T}no" >&6
5793      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5794echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5795   { (exit 1); exit 1; }; }
5796    fi
5797
5798    # Check if this is the correct version of libtool (with escaped dots)
5799    if test x$AUTOTOOLS_DIR = x; then
5800      want_dir=$AUTOTOOLS_DFLT/share
5801    else
5802      want_dir=$AUTOTOOLS_DIR/share
5803    fi
5804    correct_version='1.5.22'
5805    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5806    if test -r $want_dir/libtool/ltmain.sh; then
5807  have_ltmain=yes
5808  :
5809else
5810  have_ltmain=no
5811  :
5812fi
5813
5814    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5815echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5816    if test $have_ltmain = yes; then
5817    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5818        echo "$as_me:$LINENO: result: yes" >&5
5819echo "${ECHO_T}yes" >&6
5820      else
5821        echo "$as_me:$LINENO: result: no" >&5
5822echo "${ECHO_T}no" >&6
5823        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5824echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5825   { (exit 1); exit 1; }; }
5826      fi
5827    else
5828      echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6
5830      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5831echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5832   { (exit 1); exit 1; }; }
5833    fi
5834  fi
5835
5836  # Check if we can find the libtool file
5837  if test x$AUTOTOOLS_DIR = x; then
5838    want_dir=$AUTOTOOLS_DFLT/share
5839  else
5840    want_dir=$AUTOTOOLS_DIR/share
5841  fi
5842  if test -r $want_dir/aclocal/libtool.m4; then
5843  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5844  :
5845else
5846  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5847echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5848   { (exit 1); exit 1; }; }
5849  :
5850fi
5851
5852
5853  # Check if we have an Dependencies file
5854  if test -r $srcdir/Dependencies; then
5855    coin_have_externals=yes
5856  fi
5857  # Check if subversion is installed and understands https
5858  # Extract the first word of "svn", so it can be a program name with args.
5859set dummy svn; ac_word=$2
5860echo "$as_me:$LINENO: checking for $ac_word" >&5
5861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5862if test "${ac_cv_prog_have_svn+set}" = set; then
5863  echo $ECHO_N "(cached) $ECHO_C" >&6
5864else
5865  if test -n "$have_svn"; then
5866  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5867else
5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871  IFS=$as_save_IFS
5872  test -z "$as_dir" && as_dir=.
5873  for ac_exec_ext in '' $ac_executable_extensions; do
5874  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5875    ac_cv_prog_have_svn="yes"
5876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877    break 2
5878  fi
5879done
5880done
5881
5882  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5883fi
5884fi
5885have_svn=$ac_cv_prog_have_svn
5886if test -n "$have_svn"; then
5887  echo "$as_me:$LINENO: result: $have_svn" >&5
5888echo "${ECHO_T}$have_svn" >&6
5889else
5890  echo "$as_me:$LINENO: result: no" >&5
5891echo "${ECHO_T}no" >&6
5892fi
5893
5894  if test x$have_svn = xyes; then
5895    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5896echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5897if test "${ac_cv_svn_understands_https+set}" = set; then
5898  echo $ECHO_N "(cached) $ECHO_C" >&6
5899else
5900  svn --version > confauto.out 2>&1
5901                    if $EGREP https confauto.out >/dev/null 2>&1; then
5902                      ac_cv_svn_understands_https=yes
5903                    else
5904                      ac_cv_svn_understands_https=no
5905                      have_svn=no
5906                      ac_cv_prog_have_svn=no
5907                    fi
5908                    rm -f confauto.out
5909fi
5910echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5911echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5912  fi
5913
5914  # Find the location of the BuildTools directory
5915  BUILDTOOLSDIR=
5916  if test -r $srcdir/BuildTools/coin.m4; then
5917    BUILDTOOLSDIR=$srcdir/BuildTools
5918  else
5919    if test -r $srcdir/../BuildTools/coin.m4; then
5920      BUILDTOOLSDIR=$srcdir/../BuildTools
5921    else
5922      if test -r $srcdir/../../BuildTools/coin.m4; then
5923        BUILDTOOLSDIR=$srcdir/../../BuildTools
5924      else
5925        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5926echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5927   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5928      fi
5929    fi
5930  fi
5931
5932
5933  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5934  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5935    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5936  fi
5937
5938  # The following variable is set to the name of the directory where
5939  # the autotool scripts are located
5940
5941  AUX_DIR=$ac_aux_dir
5942fi
5943
5944# helpful variable for the base directory of this package
5945abs_source_dir=`cd $srcdir; pwd`
5946
5947
5948# Stuff for example Makefiles
5949if test x$prefix = xNONE; then
5950  full_prefix=$ac_default_prefix
5951else
5952  full_prefix=$prefix
5953fi
5954full_prefix=`cd $full_prefix ; pwd`
5955
5956abs_lib_dir=$full_prefix/lib
5957
5958abs_include_dir=$full_prefix/include
5959
5960abs_bin_dir=$full_prefix/bin
5961
5962
5963
5964if test $coin_have_externals = yes && test x$have_svn = xyes; then
5965  HAVE_EXTERNALS_TRUE=
5966  HAVE_EXTERNALS_FALSE='#'
5967else
5968  HAVE_EXTERNALS_TRUE='#'
5969  HAVE_EXTERNALS_FALSE=
5970fi
5971
5972
5973# AC_MSG_NOTICE([End automake initialisation.])
5974
5975
5976
5977LIBTOOL=
5978if test -r ../libtool; then
5979  coin_config_dir=..
5980  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5981fi
5982if test "x$LIBTOOL" = x; then
5983  if test -r ../../libtool; then
5984    coin_config_dir=../..
5985    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5986  fi
5987fi
5988
5989if test "x$LIBTOOL" = x; then
5990# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5991  # Stuff for libtool
5992  # Check whether --enable-shared or --disable-shared was given.
5993if test "${enable_shared+set}" = set; then
5994  enableval="$enable_shared"
5995  p=${PACKAGE-default}
5996    case $enableval in
5997    yes) enable_shared=yes ;;
5998    no) enable_shared=no ;;
5999    *)
6000      enable_shared=no
6001      # Look at the argument we got.  We use all the common list separators.
6002      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6003      for pkg in $enableval; do
6004        IFS="$lt_save_ifs"
6005        if test "X$pkg" = "X$p"; then
6006          enable_shared=yes
6007        fi
6008      done
6009      IFS="$lt_save_ifs"
6010      ;;
6011    esac
6012else
6013  enable_shared=yes
6014fi;
6015
6016# Check whether --enable-fast-install or --disable-fast-install was given.
6017if test "${enable_fast_install+set}" = set; then
6018  enableval="$enable_fast_install"
6019  p=${PACKAGE-default}
6020    case $enableval in
6021    yes) enable_fast_install=yes ;;
6022    no) enable_fast_install=no ;;
6023    *)
6024      enable_fast_install=no
6025      # Look at the argument we got.  We use all the common list separators.
6026      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6027      for pkg in $enableval; do
6028        IFS="$lt_save_ifs"
6029        if test "X$pkg" = "X$p"; then
6030          enable_fast_install=yes
6031        fi
6032      done
6033      IFS="$lt_save_ifs"
6034      ;;
6035    esac
6036else
6037  enable_fast_install=yes
6038fi;
6039
6040echo "$as_me:$LINENO: checking host system type" >&5
6041echo $ECHO_N "checking host system type... $ECHO_C" >&6
6042if test "${ac_cv_host+set}" = set; then
6043  echo $ECHO_N "(cached) $ECHO_C" >&6
6044else
6045  ac_cv_host_alias=$host_alias
6046test -z "$ac_cv_host_alias" &&
6047  ac_cv_host_alias=$ac_cv_build_alias
6048ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6049  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6050echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6051   { (exit 1); exit 1; }; }
6052
6053fi
6054echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6055echo "${ECHO_T}$ac_cv_host" >&6
6056host=$ac_cv_host
6057host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6058host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6059host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6060
6061
6062echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6063echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6064if test "${lt_cv_path_SED+set}" = set; then
6065  echo $ECHO_N "(cached) $ECHO_C" >&6
6066else
6067  # Loop through the user's path and test for sed and gsed.
6068# Then use that list of sed's as ones to test for truncation.
6069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070for as_dir in $PATH
6071do
6072  IFS=$as_save_IFS
6073  test -z "$as_dir" && as_dir=.
6074  for lt_ac_prog in sed gsed; do
6075    for ac_exec_ext in '' $ac_executable_extensions; do
6076      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6077        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6078      fi
6079    done
6080  done
6081done
6082lt_ac_max=0
6083lt_ac_count=0
6084# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6085# along with /bin/sed that truncates output.
6086for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6087  test ! -f $lt_ac_sed && continue
6088  cat /dev/null > conftest.in
6089  lt_ac_count=0
6090  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6091  # Check for GNU sed and select it if it is found.
6092  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6093    lt_cv_path_SED=$lt_ac_sed
6094    break
6095  fi
6096  while true; do
6097    cat conftest.in conftest.in >conftest.tmp
6098    mv conftest.tmp conftest.in
6099    cp conftest.in conftest.nl
6100    echo >>conftest.nl
6101    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6102    cmp -s conftest.out conftest.nl || break
6103    # 10000 chars as input seems more than enough
6104    test $lt_ac_count -gt 10 && break
6105    lt_ac_count=`expr $lt_ac_count + 1`
6106    if test $lt_ac_count -gt $lt_ac_max; then
6107      lt_ac_max=$lt_ac_count
6108      lt_cv_path_SED=$lt_ac_sed
6109    fi
6110  done
6111done
6112
6113fi
6114
6115SED=$lt_cv_path_SED
6116echo "$as_me:$LINENO: result: $SED" >&5
6117echo "${ECHO_T}$SED" >&6
6118
6119
6120# Check whether --with-gnu-ld or --without-gnu-ld was given.
6121if test "${with_gnu_ld+set}" = set; then
6122  withval="$with_gnu_ld"
6123  test "$withval" = no || with_gnu_ld=yes
6124else
6125  with_gnu_ld=no
6126fi;
6127ac_prog=ld
6128if test "$GCC" = yes; then
6129  # Check if gcc -print-prog-name=ld gives a path.
6130  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6131echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6132  case $host in
6133  *-*-mingw*)
6134    # gcc leaves a trailing carriage return which upsets mingw
6135    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6136  *)
6137    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6138  esac
6139  case $ac_prog in
6140    # Accept absolute paths.
6141    [\\/]* | ?:[\\/]*)
6142      re_direlt='/[^/][^/]*/\.\./'
6143      # Canonicalize the pathname of ld
6144      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6145      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6146        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6147      done
6148      test -z "$LD" && LD="$ac_prog"
6149      ;;
6150  "")
6151    # If it fails, then pretend we aren't using GCC.
6152    ac_prog=ld
6153    ;;
6154  *)
6155    # If it is relative, then search for the first ld in PATH.
6156    with_gnu_ld=unknown
6157    ;;
6158  esac
6159elif test "$with_gnu_ld" = yes; then
6160  echo "$as_me:$LINENO: checking for GNU ld" >&5
6161echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6162else
6163  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6164echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6165fi
6166if test "${lt_cv_path_LD+set}" = set; then
6167  echo $ECHO_N "(cached) $ECHO_C" >&6
6168else
6169  if test -z "$LD"; then
6170  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6171  for ac_dir in $PATH; do
6172    IFS="$lt_save_ifs"
6173    test -z "$ac_dir" && ac_dir=.
6174    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6175      lt_cv_path_LD="$ac_dir/$ac_prog"
6176      # Check to see if the program is GNU ld.  I'd rather use --version,
6177      # but apparently some variants of GNU ld only accept -v.
6178      # Break only if it was the GNU/non-GNU ld that we prefer.
6179      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6180      *GNU* | *'with BFD'*)
6181        test "$with_gnu_ld" != no && break
6182        ;;
6183      *)
6184        test "$with_gnu_ld" != yes && break
6185        ;;
6186      esac
6187    fi
6188  done
6189  IFS="$lt_save_ifs"
6190else
6191  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6192fi
6193fi
6194
6195LD="$lt_cv_path_LD"
6196if test -n "$LD"; then
6197  echo "$as_me:$LINENO: result: $LD" >&5
6198echo "${ECHO_T}$LD" >&6
6199else
6200  echo "$as_me:$LINENO: result: no" >&5
6201echo "${ECHO_T}no" >&6
6202fi
6203test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6204echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6205   { (exit 1); exit 1; }; }
6206echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6207echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6208if test "${lt_cv_prog_gnu_ld+set}" = set; then
6209  echo $ECHO_N "(cached) $ECHO_C" >&6
6210else
6211  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6212case `$LD -v 2>&1 </dev/null` in
6213*GNU* | *'with BFD'*)
6214  lt_cv_prog_gnu_ld=yes
6215  ;;
6216*)
6217  lt_cv_prog_gnu_ld=no
6218  ;;
6219esac
6220fi
6221echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6222echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6223with_gnu_ld=$lt_cv_prog_gnu_ld
6224
6225
6226echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6227echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6228if test "${lt_cv_ld_reload_flag+set}" = set; then
6229  echo $ECHO_N "(cached) $ECHO_C" >&6
6230else
6231  lt_cv_ld_reload_flag='-r'
6232fi
6233echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6234echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6235reload_flag=$lt_cv_ld_reload_flag
6236case $reload_flag in
6237"" | " "*) ;;
6238*) reload_flag=" $reload_flag" ;;
6239esac
6240reload_cmds='$LD$reload_flag -o $output$reload_objs'
6241case $host_os in
6242  darwin*)
6243    if test "$GCC" = yes; then
6244      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6245    else
6246      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6247    fi
6248    ;;
6249esac
6250
6251echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6252echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6253if test "${lt_cv_path_NM+set}" = set; then
6254  echo $ECHO_N "(cached) $ECHO_C" >&6
6255else
6256  if test -n "$NM"; then
6257  # Let the user override the test.
6258  lt_cv_path_NM="$NM"
6259else
6260  lt_nm_to_check="${ac_tool_prefix}nm"
6261  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6262    lt_nm_to_check="$lt_nm_to_check nm"
6263  fi
6264  for lt_tmp_nm in $lt_nm_to_check; do
6265    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6266    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6267      IFS="$lt_save_ifs"
6268      test -z "$ac_dir" && ac_dir=.
6269      tmp_nm="$ac_dir/$lt_tmp_nm"
6270      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6271        # Check to see if the nm accepts a BSD-compat flag.
6272        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6273        #   nm: unknown option "B" ignored
6274        # Tru64's nm complains that /dev/null is an invalid object file
6275        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6276        */dev/null* | *'Invalid file or object type'*)
6277          lt_cv_path_NM="$tmp_nm -B"
6278          break
6279          ;;
6280        *)
6281          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6282          */dev/null*)
6283            lt_cv_path_NM="$tmp_nm -p"
6284            break
6285            ;;
6286          *)
6287            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6288            continue # so that we can try to find one that supports BSD flags
6289            ;;
6290          esac
6291          ;;
6292        esac
6293      fi
6294    done
6295    IFS="$lt_save_ifs"
6296  done
6297  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6298fi
6299fi
6300echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6301echo "${ECHO_T}$lt_cv_path_NM" >&6
6302NM="$lt_cv_path_NM"
6303
6304echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6305echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6306if test "${lt_cv_deplibs_check_method+set}" = set; then
6307  echo $ECHO_N "(cached) $ECHO_C" >&6
6308else
6309  lt_cv_file_magic_cmd='$MAGIC_CMD'
6310lt_cv_file_magic_test_file=
6311lt_cv_deplibs_check_method='unknown'
6312# Need to set the preceding variable on all platforms that support
6313# interlibrary dependencies.
6314# 'none' -- dependencies not supported.
6315# `unknown' -- same as none, but documents that we really don't know.
6316# 'pass_all' -- all dependencies passed with no checks.
6317# 'test_compile' -- check by making test program.
6318# 'file_magic [[regex]]' -- check by looking for files in library path
6319# which responds to the $file_magic_cmd with a given extended regex.
6320# If you have `file' or equivalent on your system and you're not sure
6321# whether `pass_all' will *always* work, you probably want this one.
6322
6323case $host_os in
6324aix4* | aix5*)
6325  lt_cv_deplibs_check_method=pass_all
6326  ;;
6327
6328beos*)
6329  lt_cv_deplibs_check_method=pass_all
6330  ;;
6331
6332bsdi[45]*)
6333  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6334  lt_cv_file_magic_cmd='/usr/bin/file -L'
6335  lt_cv_file_magic_test_file=/shlib/libc.so
6336  ;;
6337
6338cygwin*)
6339  # func_win32_libid is a shell function defined in ltmain.sh
6340  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6341  lt_cv_file_magic_cmd='func_win32_libid'
6342  ;;
6343
6344mingw* | pw32*)
6345  # Base MSYS/MinGW do not provide the 'file' command needed by
6346  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6347  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6348  lt_cv_file_magic_cmd='$OBJDUMP -f'
6349  ;;
6350
6351darwin* | rhapsody*)
6352  lt_cv_deplibs_check_method=pass_all
6353  ;;
6354
6355freebsd* | kfreebsd*-gnu | dragonfly*)
6356  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6357    case $host_cpu in
6358    i*86 )
6359      # Not sure whether the presence of OpenBSD here was a mistake.
6360      # Let's accept both of them until this is cleared up.
6361      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6362      lt_cv_file_magic_cmd=/usr/bin/file
6363      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6364      ;;
6365    esac
6366  else
6367    lt_cv_deplibs_check_method=pass_all
6368  fi
6369  ;;
6370
6371gnu*)
6372  lt_cv_deplibs_check_method=pass_all
6373  ;;
6374
6375hpux10.20* | hpux11*)
6376  lt_cv_file_magic_cmd=/usr/bin/file
6377  case $host_cpu in
6378  ia64*)
6379    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6380    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6381    ;;
6382  hppa*64*)
6383    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]'
6384    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6385    ;;
6386  *)
6387    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6388    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6389    ;;
6390  esac
6391  ;;
6392
6393interix3*)
6394  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6395  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6396  ;;
6397
6398irix5* | irix6* | nonstopux*)
6399  case $LD in
6400  *-32|*"-32 ") libmagic=32-bit;;
6401  *-n32|*"-n32 ") libmagic=N32;;
6402  *-64|*"-64 ") libmagic=64-bit;;
6403  *) libmagic=never-match;;
6404  esac
6405  lt_cv_deplibs_check_method=pass_all
6406  ;;
6407
6408# This must be Linux ELF.
6409linux*)
6410  lt_cv_deplibs_check_method=pass_all
6411  ;;
6412
6413netbsd*)
6414  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6415    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6416  else
6417    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6418  fi
6419  ;;
6420
6421newos6*)
6422  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6423  lt_cv_file_magic_cmd=/usr/bin/file
6424  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6425  ;;
6426
6427nto-qnx*)
6428  lt_cv_deplibs_check_method=unknown
6429  ;;
6430
6431openbsd*)
6432  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6433    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6434  else
6435    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6436  fi
6437  ;;
6438
6439osf3* | osf4* | osf5*)
6440  lt_cv_deplibs_check_method=pass_all
6441  ;;
6442
6443solaris*)
6444  lt_cv_deplibs_check_method=pass_all
6445  ;;
6446
6447sysv4 | sysv4.3*)
6448  case $host_vendor in
6449  motorola)
6450    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]'
6451    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6452    ;;
6453  ncr)
6454    lt_cv_deplibs_check_method=pass_all
6455    ;;
6456  sequent)
6457    lt_cv_file_magic_cmd='/bin/file'
6458    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6459    ;;
6460  sni)
6461    lt_cv_file_magic_cmd='/bin/file'
6462    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6463    lt_cv_file_magic_test_file=/lib/libc.so
6464    ;;
6465  siemens)
6466    lt_cv_deplibs_check_method=pass_all
6467    ;;
6468  pc)
6469    lt_cv_deplibs_check_method=pass_all
6470    ;;
6471  esac
6472  ;;
6473
6474sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6475  lt_cv_deplibs_check_method=pass_all
6476  ;;
6477esac
6478
6479fi
6480echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6481echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6482file_magic_cmd=$lt_cv_file_magic_cmd
6483deplibs_check_method=$lt_cv_deplibs_check_method
6484test -z "$deplibs_check_method" && deplibs_check_method=unknown
6485
6486
6487
6488
6489# If no C compiler was specified, use CC.
6490LTCC=${LTCC-"$CC"}
6491
6492# If no C compiler flags were specified, use CFLAGS.
6493LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6494
6495# Allow CC to be a program name with arguments.
6496compiler=$CC
6497
6498# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6499if test "${enable_libtool_lock+set}" = set; then
6500  enableval="$enable_libtool_lock"
6501
6502fi;
6503test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6504
6505# Some flags need to be propagated to the compiler or linker for good
6506# libtool support.
6507case $host in
6508ia64-*-hpux*)
6509  # Find out which ABI we are using.
6510  echo 'int i;' > conftest.$ac_ext
6511  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6512  (eval $ac_compile) 2>&5
6513  ac_status=$?
6514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515  (exit $ac_status); }; then
6516    case `/usr/bin/file conftest.$ac_objext` in
6517    *ELF-32*)
6518      HPUX_IA64_MODE="32"
6519      ;;
6520    *ELF-64*)
6521      HPUX_IA64_MODE="64"
6522      ;;
6523    esac
6524  fi
6525  rm -rf conftest*
6526  ;;
6527*-*-irix6*)
6528  # Find out which ABI we are using.
6529  echo '#line 6529 "configure"' > conftest.$ac_ext
6530  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6531  (eval $ac_compile) 2>&5
6532  ac_status=$?
6533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534  (exit $ac_status); }; then
6535   if test "$lt_cv_prog_gnu_ld" = yes; then
6536    case `/usr/bin/file conftest.$ac_objext` in
6537    *32-bit*)
6538      LD="${LD-ld} -melf32bsmip"
6539      ;;
6540    *N32*)
6541      LD="${LD-ld} -melf32bmipn32"
6542      ;;
6543    *64-bit*)
6544      LD="${LD-ld} -melf64bmip"
6545      ;;
6546    esac
6547   else
6548    case `/usr/bin/file conftest.$ac_objext` in
6549    *32-bit*)
6550      LD="${LD-ld} -32"
6551      ;;
6552    *N32*)
6553      LD="${LD-ld} -n32"
6554      ;;
6555    *64-bit*)
6556      LD="${LD-ld} -64"
6557      ;;
6558    esac
6559   fi
6560  fi
6561  rm -rf conftest*
6562  ;;
6563
6564x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6565  # Find out which ABI we are using.
6566  echo 'int i;' > conftest.$ac_ext
6567  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568  (eval $ac_compile) 2>&5
6569  ac_status=$?
6570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571  (exit $ac_status); }; then
6572    case `/usr/bin/file conftest.o` in
6573    *32-bit*)
6574      case $host in
6575        x86_64-*linux*)
6576          LD="${LD-ld} -m elf_i386"
6577          ;;
6578        ppc64-*linux*|powerpc64-*linux*)
6579          LD="${LD-ld} -m elf32ppclinux"
6580          ;;
6581        s390x-*linux*)
6582          LD="${LD-ld} -m elf_s390"
6583          ;;
6584        sparc64-*linux*)
6585          LD="${LD-ld} -m elf32_sparc"
6586          ;;
6587      esac
6588      ;;
6589    *64-bit*)
6590      case $host in
6591        x86_64-*linux*)
6592          LD="${LD-ld} -m elf_x86_64"
6593          ;;
6594        ppc*-*linux*|powerpc*-*linux*)
6595          LD="${LD-ld} -m elf64ppc"
6596          ;;
6597        s390*-*linux*)
6598          LD="${LD-ld} -m elf64_s390"
6599          ;;
6600        sparc*-*linux*)
6601          LD="${LD-ld} -m elf64_sparc"
6602          ;;
6603      esac
6604      ;;
6605    esac
6606  fi
6607  rm -rf conftest*
6608  ;;
6609
6610*-*-sco3.2v5*)
6611  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6612  SAVE_CFLAGS="$CFLAGS"
6613  CFLAGS="$CFLAGS -belf"
6614  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6615echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6616if test "${lt_cv_cc_needs_belf+set}" = set; then
6617  echo $ECHO_N "(cached) $ECHO_C" >&6
6618else
6619  ac_ext=c
6620ac_cpp='$CPP $CPPFLAGS'
6621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6623ac_compiler_gnu=$ac_cv_c_compiler_gnu
6624
6625     cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h.  */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h.  */
6631
6632int
6633main ()
6634{
6635
6636  ;
6637  return 0;
6638}
6639_ACEOF
6640rm -f conftest.$ac_objext conftest$ac_exeext
6641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642  (eval $ac_link) 2>conftest.er1
6643  ac_status=$?
6644  grep -v '^ *+' conftest.er1 >conftest.err
6645  rm -f conftest.er1
6646  cat conftest.err >&5
6647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648  (exit $ac_status); } &&
6649         { ac_try='test -z "$ac_c_werror_flag"
6650                         || test ! -s conftest.err'
6651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652  (eval $ac_try) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; } &&
6656         { ac_try='test -s conftest$ac_exeext'
6657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658  (eval $ac_try) 2>&5
6659  ac_status=$?
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); }; }; then
6662  lt_cv_cc_needs_belf=yes
6663else
6664  echo "$as_me: failed program was:" >&5
6665sed 's/^/| /' conftest.$ac_ext >&5
6666
6667lt_cv_cc_needs_belf=no
6668fi
6669rm -f conftest.err conftest.$ac_objext \
6670      conftest$ac_exeext conftest.$ac_ext
6671     ac_ext=c
6672ac_cpp='$CPP $CPPFLAGS'
6673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6675ac_compiler_gnu=$ac_cv_c_compiler_gnu
6676
6677fi
6678echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6679echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6680  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6681    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6682    CFLAGS="$SAVE_CFLAGS"
6683  fi
6684  ;;
6685sparc*-*solaris*)
6686  # Find out which ABI we are using.
6687  echo 'int i;' > conftest.$ac_ext
6688  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6689  (eval $ac_compile) 2>&5
6690  ac_status=$?
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); }; then
6693    case `/usr/bin/file conftest.o` in
6694    *64-bit*)
6695      case $lt_cv_prog_gnu_ld in
6696      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6697      *)    LD="${LD-ld} -64" ;;
6698      esac
6699      ;;
6700    esac
6701  fi
6702  rm -rf conftest*
6703  ;;
6704
6705
6706esac
6707
6708need_locks="$enable_libtool_lock"
6709
6710
6711ac_ext=c
6712ac_cpp='$CPP $CPPFLAGS'
6713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6715ac_compiler_gnu=$ac_cv_c_compiler_gnu
6716echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6717echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6718# On Suns, sometimes $CPP names a directory.
6719if test -n "$CPP" && test -d "$CPP"; then
6720  CPP=
6721fi
6722if test -z "$CPP"; then
6723  if test "${ac_cv_prog_CPP+set}" = set; then
6724  echo $ECHO_N "(cached) $ECHO_C" >&6
6725else
6726      # Double quotes because CPP needs to be expanded
6727    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6728    do
6729      ac_preproc_ok=false
6730for ac_c_preproc_warn_flag in '' yes
6731do
6732  # Use a header file that comes with gcc, so configuring glibc
6733  # with a fresh cross-compiler works.
6734  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6735  # <limits.h> exists even on freestanding compilers.
6736  # On the NeXT, cc -E runs the code through the compiler's parser,
6737  # not just through cpp. "Syntax error" is here to catch this case.
6738  cat >conftest.$ac_ext <<_ACEOF
6739/* confdefs.h.  */
6740_ACEOF
6741cat confdefs.h >>conftest.$ac_ext
6742cat >>conftest.$ac_ext <<_ACEOF
6743/* end confdefs.h.  */
6744#ifdef __STDC__
6745# include <limits.h>
6746#else
6747# include <assert.h>
6748#endif
6749                     Syntax error
6750_ACEOF
6751if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6752  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6753  ac_status=$?
6754  grep -v '^ *+' conftest.er1 >conftest.err
6755  rm -f conftest.er1
6756  cat conftest.err >&5
6757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758  (exit $ac_status); } >/dev/null; then
6759  if test -s conftest.err; then
6760    ac_cpp_err=$ac_c_preproc_warn_flag
6761    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6762  else
6763    ac_cpp_err=
6764  fi
6765else
6766  ac_cpp_err=yes
6767fi
6768if test -z "$ac_cpp_err"; then
6769  :
6770else
6771  echo "$as_me: failed program was:" >&5
6772sed 's/^/| /' conftest.$ac_ext >&5
6773
6774  # Broken: fails on valid input.
6775continue
6776fi
6777rm -f conftest.err conftest.$ac_ext
6778
6779  # OK, works on sane cases.  Now check whether non-existent headers
6780  # can be detected and how.
6781  cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h.  */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h.  */
6787#include <ac_nonexistent.h>
6788_ACEOF
6789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6790  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6791  ac_status=$?
6792  grep -v '^ *+' conftest.er1 >conftest.err
6793  rm -f conftest.er1
6794  cat conftest.err >&5
6795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796  (exit $ac_status); } >/dev/null; then
6797  if test -s conftest.err; then
6798    ac_cpp_err=$ac_c_preproc_warn_flag
6799    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6800  else
6801    ac_cpp_err=
6802  fi
6803else
6804  ac_cpp_err=yes
6805fi
6806if test -z "$ac_cpp_err"; then
6807  # Broken: success on invalid input.
6808continue
6809else
6810  echo "$as_me: failed program was:" >&5
6811sed 's/^/| /' conftest.$ac_ext >&5
6812
6813  # Passes both tests.
6814ac_preproc_ok=:
6815break
6816fi
6817rm -f conftest.err conftest.$ac_ext
6818
6819done
6820# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6821rm -f conftest.err conftest.$ac_ext
6822if $ac_preproc_ok; then
6823  break
6824fi
6825
6826    done
6827    ac_cv_prog_CPP=$CPP
6828
6829fi
6830  CPP=$ac_cv_prog_CPP
6831else
6832  ac_cv_prog_CPP=$CPP
6833fi
6834echo "$as_me:$LINENO: result: $CPP" >&5
6835echo "${ECHO_T}$CPP" >&6
6836ac_preproc_ok=false
6837for ac_c_preproc_warn_flag in '' yes
6838do
6839  # Use a header file that comes with gcc, so configuring glibc
6840  # with a fresh cross-compiler works.
6841  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6842  # <limits.h> exists even on freestanding compilers.
6843  # On the NeXT, cc -E runs the code through the compiler's parser,
6844  # not just through cpp. "Syntax error" is here to catch this case.
6845  cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h.  */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h.  */
6851#ifdef __STDC__
6852# include <limits.h>
6853#else
6854# include <assert.h>
6855#endif
6856                     Syntax error
6857_ACEOF
6858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6859  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6860  ac_status=$?
6861  grep -v '^ *+' conftest.er1 >conftest.err
6862  rm -f conftest.er1
6863  cat conftest.err >&5
6864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865  (exit $ac_status); } >/dev/null; then
6866  if test -s conftest.err; then
6867    ac_cpp_err=$ac_c_preproc_warn_flag
6868    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6869  else
6870    ac_cpp_err=
6871  fi
6872else
6873  ac_cpp_err=yes
6874fi
6875if test -z "$ac_cpp_err"; then
6876  :
6877else
6878  echo "$as_me: failed program was:" >&5
6879sed 's/^/| /' conftest.$ac_ext >&5
6880
6881  # Broken: fails on valid input.
6882continue
6883fi
6884rm -f conftest.err conftest.$ac_ext
6885
6886  # OK, works on sane cases.  Now check whether non-existent headers
6887  # can be detected and how.
6888  cat >conftest.$ac_ext <<_ACEOF
6889/* confdefs.h.  */
6890_ACEOF
6891cat confdefs.h >>conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h.  */
6894#include <ac_nonexistent.h>
6895_ACEOF
6896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6897  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6898  ac_status=$?
6899  grep -v '^ *+' conftest.er1 >conftest.err
6900  rm -f conftest.er1
6901  cat conftest.err >&5
6902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903  (exit $ac_status); } >/dev/null; then
6904  if test -s conftest.err; then
6905    ac_cpp_err=$ac_c_preproc_warn_flag
6906    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6907  else
6908    ac_cpp_err=
6909  fi
6910else
6911  ac_cpp_err=yes
6912fi
6913if test -z "$ac_cpp_err"; then
6914  # Broken: success on invalid input.
6915continue
6916else
6917  echo "$as_me: failed program was:" >&5
6918sed 's/^/| /' conftest.$ac_ext >&5
6919
6920  # Passes both tests.
6921ac_preproc_ok=:
6922break
6923fi
6924rm -f conftest.err conftest.$ac_ext
6925
6926done
6927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6928rm -f conftest.err conftest.$ac_ext
6929if $ac_preproc_ok; then
6930  :
6931else
6932  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6933See \`config.log' for more details." >&5
6934echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6935See \`config.log' for more details." >&2;}
6936   { (exit 1); exit 1; }; }
6937fi
6938
6939ac_ext=c
6940ac_cpp='$CPP $CPPFLAGS'
6941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944
6945
6946echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6947echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6948if test "${ac_cv_header_stdc+set}" = set; then
6949  echo $ECHO_N "(cached) $ECHO_C" >&6
6950else
6951  cat >conftest.$ac_ext <<_ACEOF
6952/* confdefs.h.  */
6953_ACEOF
6954cat confdefs.h >>conftest.$ac_ext
6955cat >>conftest.$ac_ext <<_ACEOF
6956/* end confdefs.h.  */
6957#include <stdlib.h>
6958#include <stdarg.h>
6959#include <string.h>
6960#include <float.h>
6961
6962int
6963main ()
6964{
6965
6966  ;
6967  return 0;
6968}
6969_ACEOF
6970rm -f conftest.$ac_objext
6971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972  (eval $ac_compile) 2>conftest.er1
6973  ac_status=$?
6974  grep -v '^ *+' conftest.er1 >conftest.err
6975  rm -f conftest.er1
6976  cat conftest.err >&5
6977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978  (exit $ac_status); } &&
6979         { ac_try='test -z "$ac_c_werror_flag"
6980                         || test ! -s conftest.err'
6981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982  (eval $ac_try) 2>&5
6983  ac_status=$?
6984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985  (exit $ac_status); }; } &&
6986         { ac_try='test -s conftest.$ac_objext'
6987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988  (eval $ac_try) 2>&5
6989  ac_status=$?
6990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991  (exit $ac_status); }; }; then
6992  ac_cv_header_stdc=yes
6993else
6994  echo "$as_me: failed program was:" >&5
6995sed 's/^/| /' conftest.$ac_ext >&5
6996
6997ac_cv_header_stdc=no
6998fi
6999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7000
7001if test $ac_cv_header_stdc = yes; then
7002  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7003  cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h.  */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h.  */
7009#include <string.h>
7010
7011_ACEOF
7012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7013  $EGREP "memchr" >/dev/null 2>&1; then
7014  :
7015else
7016  ac_cv_header_stdc=no
7017fi
7018rm -f conftest*
7019
7020fi
7021
7022if test $ac_cv_header_stdc = yes; then
7023  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7024  cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h.  */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h.  */
7030#include <stdlib.h>
7031
7032_ACEOF
7033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034  $EGREP "free" >/dev/null 2>&1; then
7035  :
7036else
7037  ac_cv_header_stdc=no
7038fi
7039rm -f conftest*
7040
7041fi
7042
7043if test $ac_cv_header_stdc = yes; then
7044  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7045  if test "$cross_compiling" = yes; then
7046  :
7047else
7048  cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h.  */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h.  */
7054#include <ctype.h>
7055#if ((' ' & 0x0FF) == 0x020)
7056# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7057# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7058#else
7059# define ISLOWER(c) \
7060                   (('a' <= (c) && (c) <= 'i') \
7061                     || ('j' <= (c) && (c) <= 'r') \
7062                     || ('s' <= (c) && (c) <= 'z'))
7063# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7064#endif
7065
7066#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7067int
7068main ()
7069{
7070  int i;
7071  for (i = 0; i < 256; i++)
7072    if (XOR (islower (i), ISLOWER (i))
7073        || toupper (i) != TOUPPER (i))
7074      exit(2);
7075  exit (0);
7076}
7077_ACEOF
7078rm -f conftest$ac_exeext
7079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7080  (eval $ac_link) 2>&5
7081  ac_status=$?
7082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7085  (eval $ac_try) 2>&5
7086  ac_status=$?
7087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088  (exit $ac_status); }; }; then
7089  :
7090else
7091  echo "$as_me: program exited with status $ac_status" >&5
7092echo "$as_me: failed program was:" >&5
7093sed 's/^/| /' conftest.$ac_ext >&5
7094
7095( exit $ac_status )
7096ac_cv_header_stdc=no
7097fi
7098rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7099fi
7100fi
7101fi
7102echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7103echo "${ECHO_T}$ac_cv_header_stdc" >&6
7104if test $ac_cv_header_stdc = yes; then
7105
7106cat >>confdefs.h <<\_ACEOF
7107#define STDC_HEADERS 1
7108_ACEOF
7109
7110fi
7111
7112# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7123                  inttypes.h stdint.h unistd.h
7124do
7125as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7126echo "$as_me:$LINENO: checking for $ac_header" >&5
7127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7128if eval "test \"\${$as_ac_Header+set}\" = set"; then
7129  echo $ECHO_N "(cached) $ECHO_C" >&6
7130else
7131  cat >conftest.$ac_ext <<_ACEOF
7132/* confdefs.h.  */
7133_ACEOF
7134cat confdefs.h >>conftest.$ac_ext
7135cat >>conftest.$ac_ext <<_ACEOF
7136/* end confdefs.h.  */
7137$ac_includes_default
7138
7139#include <$ac_header>
7140_ACEOF
7141rm -f conftest.$ac_objext
7142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143  (eval $ac_compile) 2>conftest.er1
7144  ac_status=$?
7145  grep -v '^ *+' conftest.er1 >conftest.err
7146  rm -f conftest.er1
7147  cat conftest.err >&5
7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149  (exit $ac_status); } &&
7150         { ac_try='test -z "$ac_c_werror_flag"
7151                         || test ! -s conftest.err'
7152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7153  (eval $ac_try) 2>&5
7154  ac_status=$?
7155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156  (exit $ac_status); }; } &&
7157         { ac_try='test -s conftest.$ac_objext'
7158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7159  (eval $ac_try) 2>&5
7160  ac_status=$?
7161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162  (exit $ac_status); }; }; then
7163  eval "$as_ac_Header=yes"
7164else
7165  echo "$as_me: failed program was:" >&5
7166sed 's/^/| /' conftest.$ac_ext >&5
7167
7168eval "$as_ac_Header=no"
7169fi
7170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7171fi
7172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7174if test `eval echo '${'$as_ac_Header'}'` = yes; then
7175  cat >>confdefs.h <<_ACEOF
7176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7177_ACEOF
7178
7179fi
7180
7181done
7182
7183
7184
7185for ac_header in dlfcn.h
7186do
7187as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7188if eval "test \"\${$as_ac_Header+set}\" = set"; then
7189  echo "$as_me:$LINENO: checking for $ac_header" >&5
7190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7191if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192  echo $ECHO_N "(cached) $ECHO_C" >&6
7193fi
7194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7195echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7196else
7197  # Is the header compilable?
7198echo "$as_me:$LINENO: checking $ac_header usability" >&5
7199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7200cat >conftest.$ac_ext <<_ACEOF
7201/* confdefs.h.  */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h.  */
7206$ac_includes_default
7207#include <$ac_header>
7208_ACEOF
7209rm -f conftest.$ac_objext
7210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211  (eval $ac_compile) 2>conftest.er1
7212  ac_status=$?
7213  grep -v '^ *+' conftest.er1 >conftest.err
7214  rm -f conftest.er1
7215  cat conftest.err >&5
7216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217  (exit $ac_status); } &&
7218         { ac_try='test -z "$ac_c_werror_flag"
7219                         || test ! -s conftest.err'
7220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221  (eval $ac_try) 2>&5
7222  ac_status=$?
7223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224  (exit $ac_status); }; } &&
7225         { ac_try='test -s conftest.$ac_objext'
7226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227  (eval $ac_try) 2>&5
7228  ac_status=$?
7229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230  (exit $ac_status); }; }; then
7231  ac_header_compiler=yes
7232else
7233  echo "$as_me: failed program was:" >&5
7234sed 's/^/| /' conftest.$ac_ext >&5
7235
7236ac_header_compiler=no
7237fi
7238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7239echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7240echo "${ECHO_T}$ac_header_compiler" >&6
7241
7242# Is the header present?
7243echo "$as_me:$LINENO: checking $ac_header presence" >&5
7244echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7245cat >conftest.$ac_ext <<_ACEOF
7246/* confdefs.h.  */
7247_ACEOF
7248cat confdefs.h >>conftest.$ac_ext
7249cat >>conftest.$ac_ext <<_ACEOF
7250/* end confdefs.h.  */
7251#include <$ac_header>
7252_ACEOF
7253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7255  ac_status=$?
7256  grep -v '^ *+' conftest.er1 >conftest.err
7257  rm -f conftest.er1
7258  cat conftest.err >&5
7259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260  (exit $ac_status); } >/dev/null; then
7261  if test -s conftest.err; then
7262    ac_cpp_err=$ac_c_preproc_warn_flag
7263    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7264  else
7265    ac_cpp_err=
7266  fi
7267else
7268  ac_cpp_err=yes
7269fi
7270if test -z "$ac_cpp_err"; then
7271  ac_header_preproc=yes
7272else
7273  echo "$as_me: failed program was:" >&5
7274sed 's/^/| /' conftest.$ac_ext >&5
7275
7276  ac_header_preproc=no
7277fi
7278rm -f conftest.err conftest.$ac_ext
7279echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7280echo "${ECHO_T}$ac_header_preproc" >&6
7281
7282# So?  What about this header?
7283case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7284  yes:no: )
7285    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7286echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7287    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7288echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7289    ac_header_preproc=yes
7290    ;;
7291  no:yes:* )
7292    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7293echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7294    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7295echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7296    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7297echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7298    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7299echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7300    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7301echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7302    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7303echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7304    (
7305      cat <<\_ASBOX
7306## ------------------------------------ ##
7307## Report this to cbc@lists.coin-or.org ##
7308## ------------------------------------ ##
7309_ASBOX
7310    ) |
7311      sed "s/^/$as_me: WARNING:     /" >&2
7312    ;;
7313esac
7314echo "$as_me:$LINENO: checking for $ac_header" >&5
7315echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7316if eval "test \"\${$as_ac_Header+set}\" = set"; then
7317  echo $ECHO_N "(cached) $ECHO_C" >&6
7318else
7319  eval "$as_ac_Header=\$ac_header_preproc"
7320fi
7321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7323
7324fi
7325if test `eval echo '${'$as_ac_Header'}'` = yes; then
7326  cat >>confdefs.h <<_ACEOF
7327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7328_ACEOF
7329
7330fi
7331
7332done
7333
7334
7335
7336if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7337    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7338    (test "X$CXX" != "Xg++"))) ; then
7339  ac_ext=cc
7340ac_cpp='$CXXCPP $CPPFLAGS'
7341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7344echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7345echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7346if test -z "$CXXCPP"; then
7347  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7348  echo $ECHO_N "(cached) $ECHO_C" >&6
7349else
7350      # Double quotes because CXXCPP needs to be expanded
7351    for CXXCPP in "$CXX -E" "/lib/cpp"
7352    do
7353      ac_preproc_ok=false
7354for ac_cxx_preproc_warn_flag in '' yes
7355do
7356  # Use a header file that comes with gcc, so configuring glibc
7357  # with a fresh cross-compiler works.
7358  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7359  # <limits.h> exists even on freestanding compilers.
7360  # On the NeXT, cc -E runs the code through the compiler's parser,
7361  # not just through cpp. "Syntax error" is here to catch this case.
7362  cat >conftest.$ac_ext <<_ACEOF
7363/* confdefs.h.  */
7364_ACEOF
7365cat confdefs.h >>conftest.$ac_ext
7366cat >>conftest.$ac_ext <<_ACEOF
7367/* end confdefs.h.  */
7368#ifdef __STDC__
7369# include <limits.h>
7370#else
7371# include <assert.h>
7372#endif
7373                     Syntax error
7374_ACEOF
7375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7376  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7377  ac_status=$?
7378  grep -v '^ *+' conftest.er1 >conftest.err
7379  rm -f conftest.er1
7380  cat conftest.err >&5
7381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382  (exit $ac_status); } >/dev/null; then
7383  if test -s conftest.err; then
7384    ac_cpp_err=$ac_cxx_preproc_warn_flag
7385    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7386  else
7387    ac_cpp_err=
7388  fi
7389else
7390  ac_cpp_err=yes
7391fi
7392if test -z "$ac_cpp_err"; then
7393  :
7394else
7395  echo "$as_me: failed program was:" >&5
7396sed 's/^/| /' conftest.$ac_ext >&5
7397
7398  # Broken: fails on valid input.
7399continue
7400fi
7401rm -f conftest.err conftest.$ac_ext
7402
7403  # OK, works on sane cases.  Now check whether non-existent headers
7404  # can be detected and how.
7405  cat >conftest.$ac_ext <<_ACEOF
7406/* confdefs.h.  */
7407_ACEOF
7408cat confdefs.h >>conftest.$ac_ext
7409cat >>conftest.$ac_ext <<_ACEOF
7410/* end confdefs.h.  */
7411#include <ac_nonexistent.h>
7412_ACEOF
7413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7414  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7415  ac_status=$?
7416  grep -v '^ *+' conftest.er1 >conftest.err
7417  rm -f conftest.er1
7418  cat conftest.err >&5
7419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420  (exit $ac_status); } >/dev/null; then
7421  if test -s conftest.err; then
7422    ac_cpp_err=$ac_cxx_preproc_warn_flag
7423    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7424  else
7425    ac_cpp_err=
7426  fi
7427else
7428  ac_cpp_err=yes
7429fi
7430if test -z "$ac_cpp_err"; then
7431  # Broken: success on invalid input.
7432continue
7433else
7434  echo "$as_me: failed program was:" >&5
7435sed 's/^/| /' conftest.$ac_ext >&5
7436
7437  # Passes both tests.
7438ac_preproc_ok=:
7439break
7440fi
7441rm -f conftest.err conftest.$ac_ext
7442
7443done
7444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7445rm -f conftest.err conftest.$ac_ext
7446if $ac_preproc_ok; then
7447  break
7448fi
7449
7450    done
7451    ac_cv_prog_CXXCPP=$CXXCPP
7452
7453fi
7454  CXXCPP=$ac_cv_prog_CXXCPP
7455else
7456  ac_cv_prog_CXXCPP=$CXXCPP
7457fi
7458echo "$as_me:$LINENO: result: $CXXCPP" >&5
7459echo "${ECHO_T}$CXXCPP" >&6
7460ac_preproc_ok=false
7461for ac_cxx_preproc_warn_flag in '' yes
7462do
7463  # Use a header file that comes with gcc, so configuring glibc
7464  # with a fresh cross-compiler works.
7465  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7466  # <limits.h> exists even on freestanding compilers.
7467  # On the NeXT, cc -E runs the code through the compiler's parser,
7468  # not just through cpp. "Syntax error" is here to catch this case.
7469  cat >conftest.$ac_ext <<_ACEOF
7470/* confdefs.h.  */
7471_ACEOF
7472cat confdefs.h >>conftest.$ac_ext
7473cat >>conftest.$ac_ext <<_ACEOF
7474/* end confdefs.h.  */
7475#ifdef __STDC__
7476# include <limits.h>
7477#else
7478# include <assert.h>
7479#endif
7480                     Syntax error
7481_ACEOF
7482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7483  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7484  ac_status=$?
7485  grep -v '^ *+' conftest.er1 >conftest.err
7486  rm -f conftest.er1
7487  cat conftest.err >&5
7488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489  (exit $ac_status); } >/dev/null; then
7490  if test -s conftest.err; then
7491    ac_cpp_err=$ac_cxx_preproc_warn_flag
7492    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7493  else
7494    ac_cpp_err=
7495  fi
7496else
7497  ac_cpp_err=yes
7498fi
7499if test -z "$ac_cpp_err"; then
7500  :
7501else
7502  echo "$as_me: failed program was:" >&5
7503sed 's/^/| /' conftest.$ac_ext >&5
7504
7505  # Broken: fails on valid input.
7506continue
7507fi
7508rm -f conftest.err conftest.$ac_ext
7509
7510  # OK, works on sane cases.  Now check whether non-existent headers
7511  # can be detected and how.
7512  cat >conftest.$ac_ext <<_ACEOF
7513/* confdefs.h.  */
7514_ACEOF
7515cat confdefs.h >>conftest.$ac_ext
7516cat >>conftest.$ac_ext <<_ACEOF
7517/* end confdefs.h.  */
7518#include <ac_nonexistent.h>
7519_ACEOF
7520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7521  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7522  ac_status=$?
7523  grep -v '^ *+' conftest.er1 >conftest.err
7524  rm -f conftest.er1
7525  cat conftest.err >&5
7526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527  (exit $ac_status); } >/dev/null; then
7528  if test -s conftest.err; then
7529    ac_cpp_err=$ac_cxx_preproc_warn_flag
7530    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7531  else
7532    ac_cpp_err=
7533  fi
7534else
7535  ac_cpp_err=yes
7536fi
7537if test -z "$ac_cpp_err"; then
7538  # Broken: success on invalid input.
7539continue
7540else
7541  echo "$as_me: failed program was:" >&5
7542sed 's/^/| /' conftest.$ac_ext >&5
7543
7544  # Passes both tests.
7545ac_preproc_ok=:
7546break
7547fi
7548rm -f conftest.err conftest.$ac_ext
7549
7550done
7551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7552rm -f conftest.err conftest.$ac_ext
7553if $ac_preproc_ok; then
7554  :
7555else
7556  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7557See \`config.log' for more details." >&5
7558echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7559See \`config.log' for more details." >&2;}
7560   { (exit 1); exit 1; }; }
7561fi
7562
7563ac_ext=cc
7564ac_cpp='$CXXCPP $CPPFLAGS'
7565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7568
7569fi
7570
7571
7572# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7573
7574# find the maximum length of command line arguments
7575echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7576echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7577if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7578  echo $ECHO_N "(cached) $ECHO_C" >&6
7579else
7580    i=0
7581  teststring="ABCD"
7582
7583  case $build_os in
7584  msdosdjgpp*)
7585    # On DJGPP, this test can blow up pretty badly due to problems in libc
7586    # (any single argument exceeding 2000 bytes causes a buffer overrun
7587    # during glob expansion).  Even if it were fixed, the result of this
7588    # check would be larger than it should be.
7589    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7590    ;;
7591
7592  gnu*)
7593    # Under GNU Hurd, this test is not required because there is
7594    # no limit to the length of command line arguments.
7595    # Libtool will interpret -1 as no limit whatsoever
7596    lt_cv_sys_max_cmd_len=-1;
7597    ;;
7598
7599  cygwin* | mingw*)
7600    # On Win9x/ME, this test blows up -- it succeeds, but takes
7601    # about 5 minutes as the teststring grows exponentially.
7602    # Worse, since 9x/ME are not pre-emptively multitasking,
7603    # you end up with a "frozen" computer, even though with patience
7604    # the test eventually succeeds (with a max line length of 256k).
7605    # Instead, let's just punt: use the minimum linelength reported by
7606    # all of the supported platforms: 8192 (on NT/2K/XP).
7607    lt_cv_sys_max_cmd_len=8192;
7608    ;;
7609
7610  amigaos*)
7611    # On AmigaOS with pdksh, this test takes hours, literally.
7612    # So we just punt and use a minimum line length of 8192.
7613    lt_cv_sys_max_cmd_len=8192;
7614    ;;
7615
7616  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7617    # This has been around since 386BSD, at least.  Likely further.
7618    if test -x /sbin/sysctl; then
7619      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7620    elif test -x /usr/sbin/sysctl; then
7621      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7622    else
7623      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7624    fi
7625    # And add a safety zone
7626    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7627    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7628    ;;
7629
7630  interix*)
7631    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7632    lt_cv_sys_max_cmd_len=196608
7633    ;;
7634
7635  osf*)
7636    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7637    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7638    # nice to cause kernel panics so lets avoid the loop below.
7639    # First set a reasonable default.
7640    lt_cv_sys_max_cmd_len=16384
7641    #
7642    if test -x /sbin/sysconfig; then
7643      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7644        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7645      esac
7646    fi
7647    ;;
7648  sco3.2v5*)
7649    lt_cv_sys_max_cmd_len=102400
7650    ;;
7651  sysv5* | sco5v6* | sysv4.2uw2*)
7652    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7653    if test -n "$kargmax"; then
7654      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7655    else
7656      lt_cv_sys_max_cmd_len=32768
7657    fi
7658    ;;
7659  *)
7660    # If test is not a shell built-in, we'll probably end up computing a
7661    # maximum length that is only half of the actual maximum length, but
7662    # we can't tell.
7663    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7664    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7665               = "XX$teststring") >/dev/null 2>&1 &&
7666            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7667            lt_cv_sys_max_cmd_len=$new_result &&
7668            test $i != 17 # 1/2 MB should be enough
7669    do
7670      i=`expr $i + 1`
7671      teststring=$teststring$teststring
7672    done
7673    teststring=
7674    # Add a significant safety factor because C++ compilers can tack on massive
7675    # amounts of additional arguments before passing them to the linker.
7676    # It appears as though 1/2 is a usable value.
7677    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7678    ;;
7679  esac
7680
7681fi
7682
7683if test -n $lt_cv_sys_max_cmd_len ; then
7684  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7685echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7686else
7687  echo "$as_me:$LINENO: result: none" >&5
7688echo "${ECHO_T}none" >&6
7689fi
7690
7691
7692
7693
7694# Check for command to grab the raw symbol name followed by C symbol from nm.
7695echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7696echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7697if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7698  echo $ECHO_N "(cached) $ECHO_C" >&6
7699else
7700
7701# These are sane defaults that work on at least a few old systems.
7702# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7703
7704# Character class describing NM global symbol codes.
7705symcode='[BCDEGRST]'
7706
7707# Regexp to match symbols that can be accessed directly from C.
7708sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7709
7710# Transform an extracted symbol line into a proper C declaration
7711lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7712
7713# Transform an extracted symbol line into symbol name and symbol address
7714lt_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'"
7715
7716# Define system-specific variables.
7717case $host_os in
7718aix*)
7719  symcode='[BCDT]'
7720  ;;
7721cygwin* | mingw* | pw32*)
7722  symcode='[ABCDGISTW]'
7723  ;;
7724hpux*) # Its linker distinguishes data from code symbols
7725  if test "$host_cpu" = ia64; then
7726    symcode='[ABCDEGRST]'
7727  fi
7728  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7729  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'"
7730  ;;
7731linux*)
7732  if test "$host_cpu" = ia64; then
7733    symcode='[ABCDGIRSTW]'
7734    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7735    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'"
7736  fi
7737  ;;
7738irix* | nonstopux*)
7739  symcode='[BCDEGRST]'
7740  ;;
7741osf*)
7742  symcode='[BCDEGQRST]'
7743  ;;
7744solaris*)
7745  symcode='[BDRT]'
7746  ;;
7747sco3.2v5*)
7748  symcode='[DT]'
7749  ;;
7750sysv4.2uw2*)
7751  symcode='[DT]'
7752  ;;
7753sysv5* | sco5v6* | unixware* | OpenUNIX*)
7754  symcode='[ABDT]'
7755  ;;
7756sysv4)
7757  symcode='[DFNSTU]'
7758  ;;
7759esac
7760
7761# Handle CRLF in mingw tool chain
7762opt_cr=
7763case $build_os in
7764mingw*)
7765  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7766  ;;
7767esac
7768
7769# If we're using GNU nm, then use its standard symbol codes.
7770case `$NM -V 2>&1` in
7771*GNU* | *'with BFD'*)
7772  symcode='[ABCDGIRSTW]' ;;
7773esac
7774
7775# Try without a prefix undercore, then with it.
7776for ac_symprfx in "" "_"; do
7777
7778  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7779  symxfrm="\\1 $ac_symprfx\\2 \\2"
7780
7781  # Write the raw and C identifiers.
7782  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7783
7784  # Check to see that the pipe works correctly.
7785  pipe_works=no
7786
7787  rm -f conftest*
7788  cat > conftest.$ac_ext <<EOF
7789#ifdef __cplusplus
7790extern "C" {
7791#endif
7792char nm_test_var;
7793void nm_test_func(){}
7794#ifdef __cplusplus
7795}
7796#endif
7797int main(){nm_test_var='a';nm_test_func();return(0);}
7798EOF
7799
7800  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7801  (eval $ac_compile) 2>&5
7802  ac_status=$?
7803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804  (exit $ac_status); }; then
7805    # Now try to grab the symbols.
7806    nlist=conftest.nm
7807    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7808  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7809  ac_status=$?
7810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811  (exit $ac_status); } && test -s "$nlist"; then
7812      # Try sorting and uniquifying the output.
7813      if sort "$nlist" | uniq > "$nlist"T; then
7814        mv -f "$nlist"T "$nlist"
7815      else
7816        rm -f "$nlist"T
7817      fi
7818
7819      # Make sure that we snagged all the symbols we need.
7820      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7821        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7822          cat <<EOF > conftest.$ac_ext
7823#ifdef __cplusplus
7824extern "C" {
7825#endif
7826
7827EOF
7828          # Now generate the symbol file.
7829          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7830
7831          cat <<EOF >> conftest.$ac_ext
7832#if defined (__STDC__) && __STDC__
7833# define lt_ptr_t void *
7834#else
7835# define lt_ptr_t char *
7836# define const
7837#endif
7838
7839/* The mapping between symbol names and symbols. */
7840const struct {
7841  const char *name;
7842  lt_ptr_t address;
7843}
7844lt_preloaded_symbols[] =
7845{
7846EOF
7847          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7848          cat <<\EOF >> conftest.$ac_ext
7849  {0, (lt_ptr_t) 0}
7850};
7851
7852#ifdef __cplusplus
7853}
7854#endif
7855EOF
7856          # Now try linking the two files.
7857          mv conftest.$ac_objext conftstm.$ac_objext
7858          lt_save_LIBS="$LIBS"
7859          lt_save_CFLAGS="$CFLAGS"
7860          LIBS="conftstm.$ac_objext"
7861          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7862          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7863  (eval $ac_link) 2>&5
7864  ac_status=$?
7865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7867            pipe_works=yes
7868          fi
7869          LIBS="$lt_save_LIBS"
7870          CFLAGS="$lt_save_CFLAGS"
7871        else
7872          echo "cannot find nm_test_func in $nlist" >&5
7873        fi
7874      else
7875        echo "cannot find nm_test_var in $nlist" >&5
7876      fi
7877    else
7878      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7879    fi
7880  else
7881    echo "$progname: failed program was:" >&5
7882    cat conftest.$ac_ext >&5
7883  fi
7884  rm -f conftest* conftst*
7885
7886  # Do not use the global_symbol_pipe unless it works.
7887  if test "$pipe_works" = yes; then
7888    break
7889  else
7890    lt_cv_sys_global_symbol_pipe=
7891  fi
7892done
7893
7894fi
7895
7896if test -z "$lt_cv_sys_global_symbol_pipe"; then
7897  lt_cv_sys_global_symbol_to_cdecl=
7898fi
7899if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7900  echo "$as_me:$LINENO: result: failed" >&5
7901echo "${ECHO_T}failed" >&6
7902else
7903  echo "$as_me:$LINENO: result: ok" >&5
7904echo "${ECHO_T}ok" >&6
7905fi
7906
7907echo "$as_me:$LINENO: checking for objdir" >&5
7908echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7909if test "${lt_cv_objdir+set}" = set; then
7910  echo $ECHO_N "(cached) $ECHO_C" >&6
7911else
7912  rm -f .libs 2>/dev/null
7913mkdir .libs 2>/dev/null
7914if test -d .libs; then
7915  lt_cv_objdir=.libs
7916else
7917  # MS-DOS does not allow filenames that begin with a dot.
7918  lt_cv_objdir=_libs
7919fi
7920rmdir .libs 2>/dev/null
7921fi
7922echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7923echo "${ECHO_T}$lt_cv_objdir" >&6
7924objdir=$lt_cv_objdir
7925
7926
7927
7928
7929
7930case $host_os in
7931aix3*)
7932  # AIX sometimes has problems with the GCC collect2 program.  For some
7933  # reason, if we set the COLLECT_NAMES environment variable, the problems
7934  # vanish in a puff of smoke.
7935  if test "X${COLLECT_NAMES+set}" != Xset; then
7936    COLLECT_NAMES=
7937    export COLLECT_NAMES
7938  fi
7939  ;;
7940esac
7941
7942# Sed substitution that helps us do robust quoting.  It backslashifies
7943# metacharacters that are still active within double-quoted strings.
7944Xsed='sed -e 1s/^X//'
7945sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7946
7947# Same as above, but do not quote variable references.
7948double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7949
7950# Sed substitution to delay expansion of an escaped shell variable in a
7951# double_quote_subst'ed string.
7952delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7953
7954# Sed substitution to avoid accidental globbing in evaled expressions
7955no_glob_subst='s/\*/\\\*/g'
7956
7957# Constants:
7958rm="rm -f"
7959
7960# Global variables:
7961default_ofile=libtool
7962can_build_shared=yes
7963
7964# All known linkers require a `.a' archive for static linking (except MSVC,
7965# which needs '.lib').
7966libext=a
7967ltmain="$ac_aux_dir/ltmain.sh"
7968ofile="$default_ofile"
7969with_gnu_ld="$lt_cv_prog_gnu_ld"
7970
7971if test -n "$ac_tool_prefix"; then
7972  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7973set dummy ${ac_tool_prefix}ar; ac_word=$2
7974echo "$as_me:$LINENO: checking for $ac_word" >&5
7975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7976if test "${ac_cv_prog_AR+set}" = set; then
7977  echo $ECHO_N "(cached) $ECHO_C" >&6
7978else
7979  if test -n "$AR"; then
7980  ac_cv_prog_AR="$AR" # Let the user override the test.
7981else
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985  IFS=$as_save_IFS
7986  test -z "$as_dir" && as_dir=.
7987  for ac_exec_ext in '' $ac_executable_extensions; do
7988  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989    ac_cv_prog_AR="${ac_tool_prefix}ar"
7990    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991    break 2
7992  fi
7993done
7994done
7995
7996fi
7997fi
7998AR=$ac_cv_prog_AR
7999if test -n "$AR"; then
8000  echo "$as_me:$LINENO: result: $AR" >&5
8001echo "${ECHO_T}$AR" >&6
8002else
8003  echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6
8005fi
8006
8007fi
8008if test -z "$ac_cv_prog_AR"; then
8009  ac_ct_AR=$AR
8010  # Extract the first word of "ar", so it can be a program name with args.
8011set dummy ar; ac_word=$2
8012echo "$as_me:$LINENO: checking for $ac_word" >&5
8013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8014if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8015  echo $ECHO_N "(cached) $ECHO_C" >&6
8016else
8017  if test -n "$ac_ct_AR"; then
8018  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8019else
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023  IFS=$as_save_IFS
8024  test -z "$as_dir" && as_dir=.
8025  for ac_exec_ext in '' $ac_executable_extensions; do
8026  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8027    ac_cv_prog_ac_ct_AR="ar"
8028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029    break 2
8030  fi
8031done
8032done
8033
8034  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8035fi
8036fi
8037ac_ct_AR=$ac_cv_prog_ac_ct_AR
8038if test -n "$ac_ct_AR"; then
8039  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8040echo "${ECHO_T}$ac_ct_AR" >&6
8041else
8042  echo "$as_me:$LINENO: result: no" >&5
8043echo "${ECHO_T}no" >&6
8044fi
8045
8046  AR=$ac_ct_AR
8047else
8048  AR="$ac_cv_prog_AR"
8049fi
8050
8051if test -n "$ac_tool_prefix"; then
8052  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8053set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8054echo "$as_me:$LINENO: checking for $ac_word" >&5
8055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8056if test "${ac_cv_prog_RANLIB+set}" = set; then
8057  echo $ECHO_N "(cached) $ECHO_C" >&6
8058else
8059  if test -n "$RANLIB"; then
8060  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8061else
8062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063for as_dir in $PATH
8064do
8065  IFS=$as_save_IFS
8066  test -z "$as_dir" && as_dir=.
8067  for ac_exec_ext in '' $ac_executable_extensions; do
8068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8070    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8071    break 2
8072  fi
8073done
8074done
8075
8076fi
8077fi
8078RANLIB=$ac_cv_prog_RANLIB
8079if test -n "$RANLIB"; then
8080  echo "$as_me:$LINENO: result: $RANLIB" >&5
8081echo "${ECHO_T}$RANLIB" >&6
8082else
8083  echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6
8085fi
8086
8087fi
8088if test -z "$ac_cv_prog_RANLIB"; then
8089  ac_ct_RANLIB=$RANLIB
8090  # Extract the first word of "ranlib", so it can be a program name with args.
8091set dummy ranlib; ac_word=$2
8092echo "$as_me:$LINENO: checking for $ac_word" >&5
8093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8094if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8095  echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097  if test -n "$ac_ct_RANLIB"; then
8098  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8099else
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103  IFS=$as_save_IFS
8104  test -z "$as_dir" && as_dir=.
8105  for ac_exec_ext in '' $ac_executable_extensions; do
8106  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107    ac_cv_prog_ac_ct_RANLIB="ranlib"
8108    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8109    break 2
8110  fi
8111done
8112done
8113
8114  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8115fi
8116fi
8117ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8118if test -n "$ac_ct_RANLIB"; then
8119  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8120echo "${ECHO_T}$ac_ct_RANLIB" >&6
8121else
8122  echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
8124fi
8125
8126  RANLIB=$ac_ct_RANLIB
8127else
8128  RANLIB="$ac_cv_prog_RANLIB"
8129fi
8130
8131if test -n "$ac_tool_prefix"; then
8132  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8133set dummy ${ac_tool_prefix}strip; ac_word=$2
8134echo "$as_me:$LINENO: checking for $ac_word" >&5
8135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8136if test "${ac_cv_prog_STRIP+set}" = set; then
8137  echo $ECHO_N "(cached) $ECHO_C" >&6
8138else
8139  if test -n "$STRIP"; then
8140  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8141else
8142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8143for as_dir in $PATH
8144do
8145  IFS=$as_save_IFS
8146  test -z "$as_dir" && as_dir=.
8147  for ac_exec_ext in '' $ac_executable_extensions; do
8148  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8149    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8151    break 2
8152  fi
8153done
8154done
8155
8156fi
8157fi
8158STRIP=$ac_cv_prog_STRIP
8159if test -n "$STRIP"; then
8160  echo "$as_me:$LINENO: result: $STRIP" >&5
8161echo "${ECHO_T}$STRIP" >&6
8162else
8163  echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6
8165fi
8166
8167fi
8168if test -z "$ac_cv_prog_STRIP"; then
8169  ac_ct_STRIP=$STRIP
8170  # Extract the first word of "strip", so it can be a program name with args.
8171set dummy strip; ac_word=$2
8172echo "$as_me:$LINENO: checking for $ac_word" >&5
8173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8174if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8175  echo $ECHO_N "(cached) $ECHO_C" >&6
8176else
8177  if test -n "$ac_ct_STRIP"; then
8178  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8179else
8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181for as_dir in $PATH
8182do
8183  IFS=$as_save_IFS
8184  test -z "$as_dir" && as_dir=.
8185  for ac_exec_ext in '' $ac_executable_extensions; do
8186  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8187    ac_cv_prog_ac_ct_STRIP="strip"
8188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189    break 2
8190  fi
8191done
8192done
8193
8194  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8195fi
8196fi
8197ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8198if test -n "$ac_ct_STRIP"; then
8199  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8200echo "${ECHO_T}$ac_ct_STRIP" >&6
8201else
8202  echo "$as_me:$LINENO: result: no" >&5
8203echo "${ECHO_T}no" >&6
8204fi
8205
8206  STRIP=$ac_ct_STRIP
8207else
8208  STRIP="$ac_cv_prog_STRIP"
8209fi
8210
8211
8212old_CC="$CC"
8213old_CFLAGS="$CFLAGS"
8214
8215# Set sane defaults for various variables
8216test -z "$AR" && AR=ar
8217test -z "$AR_FLAGS" && AR_FLAGS=cru
8218test -z "$AS" && AS=as
8219test -z "$CC" && CC=cc
8220test -z "$LTCC" && LTCC=$CC
8221test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8222test -z "$DLLTOOL" && DLLTOOL=dlltool
8223test -z "$LD" && LD=ld
8224test -z "$LN_S" && LN_S="ln -s"
8225test -z "$MAGIC_CMD" && MAGIC_CMD=file
8226test -z "$NM" && NM=nm
8227test -z "$SED" && SED=sed
8228test -z "$OBJDUMP" && OBJDUMP=objdump
8229test -z "$RANLIB" && RANLIB=:
8230test -z "$STRIP" && STRIP=:
8231test -z "$ac_objext" && ac_objext=o
8232
8233# Determine commands to create old-style static archives.
8234old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8235old_postinstall_cmds='chmod 644 $oldlib'
8236old_postuninstall_cmds=
8237
8238if test -n "$RANLIB"; then
8239  case $host_os in
8240  openbsd*)
8241    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8242    ;;
8243  *)
8244    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8245    ;;
8246  esac
8247  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8248fi
8249
8250for cc_temp in $compiler""; do
8251  case $cc_temp in
8252    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8253    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8254    \-*) ;;
8255    *) break;;
8256  esac
8257done
8258cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8259
8260
8261# Only perform the check for file, if the check method requires it
8262case $deplibs_check_method in
8263file_magic*)
8264  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8265    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8266echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8267if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8268  echo $ECHO_N "(cached) $ECHO_C" >&6
8269else
8270  case $MAGIC_CMD in
8271[\\/*] |  ?:[\\/]*)
8272  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8273  ;;
8274*)
8275  lt_save_MAGIC_CMD="$MAGIC_CMD"
8276  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8277  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8278  for ac_dir in $ac_dummy; do
8279    IFS="$lt_save_ifs"
8280    test -z "$ac_dir" && ac_dir=.
8281    if test -f $ac_dir/${ac_tool_prefix}file; then
8282      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8283      if test -n "$file_magic_test_file"; then
8284        case $deplibs_check_method in
8285        "file_magic "*)
8286          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8287          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8288          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8289            $EGREP "$file_magic_regex" > /dev/null; then
8290            :
8291          else
8292            cat <<EOF 1>&2
8293
8294*** Warning: the command libtool uses to detect shared libraries,
8295*** $file_magic_cmd, produces output that libtool cannot recognize.
8296*** The result is that libtool may fail to recognize shared libraries
8297*** as such.  This will affect the creation of libtool libraries that
8298*** depend on shared libraries, but programs linked with such libtool
8299*** libraries will work regardless of this problem.  Nevertheless, you
8300*** may want to report the problem to your system manager and/or to
8301*** bug-libtool@gnu.org
8302
8303EOF
8304          fi ;;
8305        esac
8306      fi
8307      break
8308    fi
8309  done
8310  IFS="$lt_save_ifs"
8311  MAGIC_CMD="$lt_save_MAGIC_CMD"
8312  ;;
8313esac
8314fi
8315
8316MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8317if test -n "$MAGIC_CMD"; then
8318  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8319echo "${ECHO_T}$MAGIC_CMD" >&6
8320else
8321  echo "$as_me:$LINENO: result: no" >&5
8322echo "${ECHO_T}no" >&6
8323fi
8324
8325if test -z "$lt_cv_path_MAGIC_CMD"; then
8326  if test -n "$ac_tool_prefix"; then
8327    echo "$as_me:$LINENO: checking for file" >&5
8328echo $ECHO_N "checking for file... $ECHO_C" >&6
8329if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8330  echo $ECHO_N "(cached) $ECHO_C" >&6
8331else
8332  case $MAGIC_CMD in
8333[\\/*] |  ?:[\\/]*)
8334  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8335  ;;
8336*)
8337  lt_save_MAGIC_CMD="$MAGIC_CMD"
8338  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8339  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8340  for ac_dir in $ac_dummy; do
8341    IFS="$lt_save_ifs"
8342    test -z "$ac_dir" && ac_dir=.
8343    if test -f $ac_dir/file; then
8344      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8345      if test -n "$file_magic_test_file"; then
8346        case $deplibs_check_method in
8347        "file_magic "*)
8348          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8349          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8350          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8351            $EGREP "$file_magic_regex" > /dev/null; then
8352            :
8353          else
8354            cat <<EOF 1>&2
8355
8356*** Warning: the command libtool uses to detect shared libraries,
8357*** $file_magic_cmd, produces output that libtool cannot recognize.
8358*** The result is that libtool may fail to recognize shared libraries
8359*** as such.  This will affect the creation of libtool libraries that
8360*** depend on shared libraries, but programs linked with such libtool
8361*** libraries will work regardless of this problem.  Nevertheless, you
8362*** may want to report the problem to your system manager and/or to
8363*** bug-libtool@gnu.org
8364
8365EOF
8366          fi ;;
8367        esac
8368      fi
8369      break
8370    fi
8371  done
8372  IFS="$lt_save_ifs"
8373  MAGIC_CMD="$lt_save_MAGIC_CMD"
8374  ;;
8375esac
8376fi
8377
8378MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8379if test -n "$MAGIC_CMD"; then
8380  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8381echo "${ECHO_T}$MAGIC_CMD" >&6
8382else
8383  echo "$as_me:$LINENO: result: no" >&5
8384echo "${ECHO_T}no" >&6
8385fi
8386
8387  else
8388    MAGIC_CMD=:
8389  fi
8390fi
8391
8392  fi
8393  ;;
8394esac
8395
8396enable_dlopen=no
8397enable_win32_dll=no
8398
8399# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8400if test "${enable_libtool_lock+set}" = set; then
8401  enableval="$enable_libtool_lock"
8402
8403fi;
8404test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8405
8406
8407# Check whether --with-pic or --without-pic was given.
8408if test "${with_pic+set}" = set; then
8409  withval="$with_pic"
8410  pic_mode="$withval"
8411else
8412  pic_mode=default
8413fi;
8414test -z "$pic_mode" && pic_mode=default
8415
8416# Use C for the default configuration in the libtool script
8417tagname=
8418lt_save_CC="$CC"
8419ac_ext=c
8420ac_cpp='$CPP $CPPFLAGS'
8421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423ac_compiler_gnu=$ac_cv_c_compiler_gnu
8424
8425
8426# Source file extension for C test sources.
8427ac_ext=c
8428
8429# Object file extension for compiled C test sources.
8430objext=o
8431objext=$objext
8432
8433# Code to be used in simple compile tests
8434lt_simple_compile_test_code="int some_variable = 0;\n"
8435
8436# Code to be used in simple link tests
8437lt_simple_link_test_code='int main(){return(0);}\n'
8438
8439
8440# If no C compiler was specified, use CC.
8441LTCC=${LTCC-"$CC"}
8442
8443# If no C compiler flags were specified, use CFLAGS.
8444LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8445
8446# Allow CC to be a program name with arguments.
8447compiler=$CC
8448
8449
8450# save warnings/boilerplate of simple test code
8451ac_outfile=conftest.$ac_objext
8452printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8453eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8454_lt_compiler_boilerplate=`cat conftest.err`
8455$rm conftest*
8456
8457ac_outfile=conftest.$ac_objext
8458printf "$lt_simple_link_test_code" >conftest.$ac_ext
8459eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8460_lt_linker_boilerplate=`cat conftest.err`
8461$rm conftest*
8462
8463
8464## CAVEAT EMPTOR:
8465## There is no encapsulation within the following macros, do not change
8466## the running order or otherwise move them around unless you know exactly
8467## what you are doing...
8468
8469lt_prog_compiler_no_builtin_flag=
8470
8471if test "$GCC" = yes; then
8472  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8473
8474
8475echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8476echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8477if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8478  echo $ECHO_N "(cached) $ECHO_C" >&6
8479else
8480  lt_cv_prog_compiler_rtti_exceptions=no
8481  ac_outfile=conftest.$ac_objext
8482   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8483   lt_compiler_flag="-fno-rtti -fno-exceptions"
8484   # Insert the option either (1) after the last *FLAGS variable, or
8485   # (2) before a word containing "conftest.", or (3) at the end.
8486   # Note that $ac_compile itself does not contain backslashes and begins
8487   # with a dollar sign (not a hyphen), so the echo should work correctly.
8488   # The option is referenced via a variable to avoid confusing sed.
8489   lt_compile=`echo "$ac_compile" | $SED \
8490   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8491   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8492   -e 's:$: $lt_compiler_flag:'`
8493   (eval echo "\"\$as_me:8493: $lt_compile\"" >&5)
8494   (eval "$lt_compile" 2>conftest.err)
8495   ac_status=$?
8496   cat conftest.err >&5
8497   echo "$as_me:8497: \$? = $ac_status" >&5
8498   if (exit $ac_status) && test -s "$ac_outfile"; then
8499     # The compiler can only warn and ignore the option if not recognized
8500     # So say no if there are warnings other than the usual output.
8501     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8502     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8503     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8504       lt_cv_prog_compiler_rtti_exceptions=yes
8505     fi
8506   fi
8507   $rm conftest*
8508
8509fi
8510echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8511echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8512
8513if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8514    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8515else
8516    :
8517fi
8518
8519fi
8520
8521lt_prog_compiler_wl=
8522lt_prog_compiler_pic=
8523lt_prog_compiler_static=
8524
8525echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8526echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8527
8528  if test "$GCC" = yes; then
8529    lt_prog_compiler_wl='-Wl,'
8530    lt_prog_compiler_static='-static'
8531
8532    case $host_os in
8533      aix*)
8534      # All AIX code is PIC.
8535      if test "$host_cpu" = ia64; then
8536        # AIX 5 now supports IA64 processor
8537        lt_prog_compiler_static='-Bstatic'
8538      fi
8539      ;;
8540
8541    amigaos*)
8542      # FIXME: we need at least 68020 code to build shared libraries, but
8543      # adding the `-m68020' flag to GCC prevents building anything better,
8544      # like `-m68040'.
8545      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8546      ;;
8547
8548    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8549      # PIC is the default for these OSes.
8550      ;;
8551
8552    mingw* | pw32* | os2*)
8553      # This hack is so that the source file can tell whether it is being
8554      # built for inclusion in a dll (and should export symbols for example).
8555      lt_prog_compiler_pic='-DDLL_EXPORT'
8556      ;;
8557
8558    darwin* | rhapsody*)
8559      # PIC is the default on this platform
8560      # Common symbols not allowed in MH_DYLIB files
8561      lt_prog_compiler_pic='-fno-common'
8562      ;;
8563
8564    interix3*)
8565      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8566      # Instead, we relocate shared libraries at runtime.
8567      ;;
8568
8569    msdosdjgpp*)
8570      # Just because we use GCC doesn't mean we suddenly get shared libraries
8571      # on systems that don't support them.
8572      lt_prog_compiler_can_build_shared=no
8573      enable_shared=no
8574      ;;
8575
8576    sysv4*MP*)
8577      if test -d /usr/nec; then
8578        lt_prog_compiler_pic=-Kconform_pic
8579      fi
8580      ;;
8581
8582    hpux*)
8583      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8584      # not for PA HP-UX.
8585      case $host_cpu in
8586      hppa*64*|ia64*)
8587        # +Z the default
8588        ;;
8589      *)
8590        lt_prog_compiler_pic='-fPIC'
8591        ;;
8592      esac
8593      ;;
8594
8595    *)
8596      lt_prog_compiler_pic='-fPIC'
8597      ;;
8598    esac
8599  else
8600    # PORTME Check for flag to pass linker flags through the system compiler.
8601    case $host_os in
8602    aix*)
8603      lt_prog_compiler_wl='-Wl,'
8604      if test "$host_cpu" = ia64; then
8605        # AIX 5 now supports IA64 processor
8606        lt_prog_compiler_static='-Bstatic'
8607      else
8608        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8609      fi
8610      ;;
8611      darwin*)
8612        # PIC is the default on this platform
8613        # Common symbols not allowed in MH_DYLIB files
8614       case $cc_basename in
8615         xlc*)
8616         lt_prog_compiler_pic='-qnocommon'
8617         lt_prog_compiler_wl='-Wl,'
8618         ;;
8619       esac
8620       ;;
8621
8622    mingw* | pw32* | os2*)
8623      # This hack is so that the source file can tell whether it is being
8624      # built for inclusion in a dll (and should export symbols for example).
8625      lt_prog_compiler_pic='-DDLL_EXPORT'
8626      ;;
8627
8628    hpux9* | hpux10* | hpux11*)
8629      lt_prog_compiler_wl='-Wl,'
8630      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8631      # not for PA HP-UX.
8632      case $host_cpu in
8633      hppa*64*|ia64*)
8634        # +Z the default
8635        ;;
8636      *)
8637        lt_prog_compiler_pic='+Z'
8638        ;;
8639      esac
8640      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8641      lt_prog_compiler_static='${wl}-a ${wl}archive'
8642      ;;
8643
8644    irix5* | irix6* | nonstopux*)
8645      lt_prog_compiler_wl='-Wl,'
8646      # PIC (with -KPIC) is the default.
8647      lt_prog_compiler_static='-non_shared'
8648      ;;
8649
8650    newsos6)
8651      lt_prog_compiler_pic='-KPIC'
8652      lt_prog_compiler_static='-Bstatic'
8653      ;;
8654
8655    linux*)
8656      case $cc_basename in
8657      icc* | ecc*)
8658        lt_prog_compiler_wl='-Wl,'
8659        lt_prog_compiler_pic='-KPIC'
8660        lt_prog_compiler_static='-static'
8661        ;;
8662      pgcc* | pgf77* | pgf90* | pgf95*)
8663        # Portland Group compilers (*not* the Pentium gcc compiler,
8664        # which looks to be a dead project)
8665        lt_prog_compiler_wl='-Wl,'
8666        lt_prog_compiler_pic='-fpic'
8667        lt_prog_compiler_static='-Bstatic'
8668        ;;
8669      ccc*)
8670        lt_prog_compiler_wl='-Wl,'
8671        # All Alpha code is PIC.
8672        lt_prog_compiler_static='-non_shared'
8673        ;;
8674      esac
8675      ;;
8676
8677    osf3* | osf4* | osf5*)
8678      lt_prog_compiler_wl='-Wl,'
8679      # All OSF/1 code is PIC.
8680      lt_prog_compiler_static='-non_shared'
8681      ;;
8682
8683    solaris*)
8684      lt_prog_compiler_pic='-KPIC'
8685      lt_prog_compiler_static='-Bstatic'
8686      case $cc_basename in
8687      f77* | f90* | f95*)
8688        lt_prog_compiler_wl='-Qoption ld ';;
8689      *)
8690        lt_prog_compiler_wl='-Wl,';;
8691      esac
8692      ;;
8693
8694    sunos4*)
8695      lt_prog_compiler_wl='-Qoption ld '
8696      lt_prog_compiler_pic='-PIC'
8697      lt_prog_compiler_static='-Bstatic'
8698      ;;
8699
8700    sysv4 | sysv4.2uw2* | sysv4.3*)
8701      lt_prog_compiler_wl='-Wl,'
8702      lt_prog_compiler_pic='-KPIC'
8703      lt_prog_compiler_static='-Bstatic'
8704      ;;
8705
8706    sysv4*MP*)
8707      if test -d /usr/nec ;then
8708        lt_prog_compiler_pic='-Kconform_pic'
8709        lt_prog_compiler_static='-Bstatic'
8710      fi
8711      ;;
8712
8713    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8714      lt_prog_compiler_wl='-Wl,'
8715      lt_prog_compiler_pic='-KPIC'
8716      lt_prog_compiler_static='-Bstatic'
8717      ;;
8718
8719    unicos*)
8720      lt_prog_compiler_wl='-Wl,'
8721      lt_prog_compiler_can_build_shared=no
8722      ;;
8723
8724    uts4*)
8725      lt_prog_compiler_pic='-pic'
8726      lt_prog_compiler_static='-Bstatic'
8727      ;;
8728
8729    *)
8730      lt_prog_compiler_can_build_shared=no
8731      ;;
8732    esac
8733  fi
8734
8735echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8736echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8737
8738#
8739# Check to make sure the PIC flag actually works.
8740#
8741if test -n "$lt_prog_compiler_pic"; then
8742
8743echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8744echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8745if test "${lt_prog_compiler_pic_works+set}" = set; then
8746  echo $ECHO_N "(cached) $ECHO_C" >&6
8747else
8748  lt_prog_compiler_pic_works=no
8749  ac_outfile=conftest.$ac_objext
8750   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8751   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8752   # Insert the option either (1) after the last *FLAGS variable, or
8753   # (2) before a word containing "conftest.", or (3) at the end.
8754   # Note that $ac_compile itself does not contain backslashes and begins
8755   # with a dollar sign (not a hyphen), so the echo should work correctly.
8756   # The option is referenced via a variable to avoid confusing sed.
8757   lt_compile=`echo "$ac_compile" | $SED \
8758   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8759   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8760   -e 's:$: $lt_compiler_flag:'`
8761   (eval echo "\"\$as_me:8761: $lt_compile\"" >&5)
8762   (eval "$lt_compile" 2>conftest.err)
8763   ac_status=$?
8764   cat conftest.err >&5
8765   echo "$as_me:8765: \$? = $ac_status" >&5
8766   if (exit $ac_status) && test -s "$ac_outfile"; then
8767     # The compiler can only warn and ignore the option if not recognized
8768     # So say no if there are warnings other than the usual output.
8769     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8770     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8771     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8772       lt_prog_compiler_pic_works=yes
8773     fi
8774   fi
8775   $rm conftest*
8776
8777fi
8778echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8779echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8780
8781if test x"$lt_prog_compiler_pic_works" = xyes; then
8782    case $lt_prog_compiler_pic in
8783     "" | " "*) ;;
8784     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8785     esac
8786else
8787    lt_prog_compiler_pic=
8788     lt_prog_compiler_can_build_shared=no
8789fi
8790
8791fi
8792case $host_os in
8793  # For platforms which do not support PIC, -DPIC is meaningless:
8794  *djgpp*)
8795    lt_prog_compiler_pic=
8796    ;;
8797  *)
8798    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8799    ;;
8800esac
8801
8802#
8803# Check to make sure the static flag actually works.
8804#
8805wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8806echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8807echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8808if test "${lt_prog_compiler_static_works+set}" = set; then
8809  echo $ECHO_N "(cached) $ECHO_C" >&6
8810else
8811  lt_prog_compiler_static_works=no
8812   save_LDFLAGS="$LDFLAGS"
8813   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8814   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8815   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8816     # The linker can only warn and ignore the option if not recognized
8817     # So say no if there are warnings
8818     if test -s conftest.err; then
8819       # Append any errors to the config.log.
8820       cat conftest.err 1>&5
8821       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8822       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8823       if diff conftest.exp conftest.er2 >/dev/null; then
8824         lt_prog_compiler_static_works=yes
8825       fi
8826     else
8827       lt_prog_compiler_static_works=yes
8828     fi
8829   fi
8830   $rm conftest*
8831   LDFLAGS="$save_LDFLAGS"
8832
8833fi
8834echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8835echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8836
8837if test x"$lt_prog_compiler_static_works" = xyes; then
8838    :
8839else
8840    lt_prog_compiler_static=
8841fi
8842
8843
8844echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8845echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8846if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8847  echo $ECHO_N "(cached) $ECHO_C" >&6
8848else
8849  lt_cv_prog_compiler_c_o=no
8850   $rm -r conftest 2>/dev/null
8851   mkdir conftest
8852   cd conftest
8853   mkdir out
8854   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8855
8856   lt_compiler_flag="-o out/conftest2.$ac_objext"
8857   # Insert the option either (1) after the last *FLAGS variable, or
8858   # (2) before a word containing "conftest.", or (3) at the end.
8859   # Note that $ac_compile itself does not contain backslashes and begins
8860   # with a dollar sign (not a hyphen), so the echo should work correctly.
8861   lt_compile=`echo "$ac_compile" | $SED \
8862   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8863   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8864   -e 's:$: $lt_compiler_flag:'`
8865   (eval echo "\"\$as_me:8865: $lt_compile\"" >&5)
8866   (eval "$lt_compile" 2>out/conftest.err)
8867   ac_status=$?
8868   cat out/conftest.err >&5
8869   echo "$as_me:8869: \$? = $ac_status" >&5
8870   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8871   then
8872     # The compiler can only warn and ignore the option if not recognized
8873     # So say no if there are warnings
8874     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8875     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8876     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8877       lt_cv_prog_compiler_c_o=yes
8878     fi
8879   fi
8880   chmod u+w . 2>&5
8881   $rm conftest*
8882   # SGI C++ compiler will create directory out/ii_files/ for
8883   # template instantiation
8884   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8885   $rm out/* && rmdir out
8886   cd ..
8887   rmdir conftest
8888   $rm conftest*
8889
8890fi
8891echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8892echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8893
8894
8895hard_links="nottested"
8896if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8897  # do not overwrite the value of need_locks provided by the user
8898  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8899echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8900  hard_links=yes
8901  $rm conftest*
8902  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903  touch conftest.a
8904  ln conftest.a conftest.b 2>&5 || hard_links=no
8905  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8906  echo "$as_me:$LINENO: result: $hard_links" >&5
8907echo "${ECHO_T}$hard_links" >&6
8908  if test "$hard_links" = no; then
8909    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8910echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8911    need_locks=warn
8912  fi
8913else
8914  need_locks=no
8915fi
8916
8917echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8918echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8919
8920  runpath_var=
8921  allow_undefined_flag=
8922  enable_shared_with_static_runtimes=no
8923  archive_cmds=
8924  archive_expsym_cmds=
8925  old_archive_From_new_cmds=
8926  old_archive_from_expsyms_cmds=
8927  export_dynamic_flag_spec=
8928  whole_archive_flag_spec=
8929  thread_safe_flag_spec=
8930  hardcode_libdir_flag_spec=
8931  hardcode_libdir_flag_spec_ld=
8932  hardcode_libdir_separator=
8933  hardcode_direct=no
8934  hardcode_minus_L=no
8935  hardcode_shlibpath_var=unsupported
8936  link_all_deplibs=unknown
8937  hardcode_automatic=no
8938  module_cmds=
8939  module_expsym_cmds=
8940  always_export_symbols=no
8941  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8942  # include_expsyms should be a list of space-separated symbols to be *always*
8943  # included in the symbol list
8944  include_expsyms=
8945  # exclude_expsyms can be an extended regexp of symbols to exclude
8946  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8947  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8948  # as well as any symbol that contains `d'.
8949  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8950  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8951  # platforms (ab)use it in PIC code, but their linkers get confused if
8952  # the symbol is explicitly referenced.  Since portable code cannot
8953  # rely on this symbol name, it's probably fine to never include it in
8954  # preloaded symbol tables.
8955  extract_expsyms_cmds=
8956  # Just being paranoid about ensuring that cc_basename is set.
8957  for cc_temp in $compiler""; do
8958  case $cc_temp in
8959    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8960    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8961    \-*) ;;
8962    *) break;;
8963  esac
8964done
8965cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8966
8967  case $host_os in
8968  cygwin* | mingw* | pw32*)
8969    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8970    # When not using gcc, we currently assume that we are using
8971    # Microsoft Visual C++.
8972    if test "$GCC" != yes; then
8973      with_gnu_ld=no
8974    fi
8975    ;;
8976  interix*)
8977    # we just hope/assume this is gcc and not c89 (= MSVC++)
8978    with_gnu_ld=yes
8979    ;;
8980  openbsd*)
8981    with_gnu_ld=no
8982    ;;
8983  esac
8984
8985  ld_shlibs=yes
8986  if test "$with_gnu_ld" = yes; then
8987    # If archive_cmds runs LD, not CC, wlarc should be empty
8988    wlarc='${wl}'
8989
8990    # Set some defaults for GNU ld with shared library support. These
8991    # are reset later if shared libraries are not supported. Putting them
8992    # here allows them to be overridden if necessary.
8993    runpath_var=LD_RUN_PATH
8994    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8995    export_dynamic_flag_spec='${wl}--export-dynamic'
8996    # ancient GNU ld didn't support --whole-archive et. al.
8997    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8998        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8999      else
9000        whole_archive_flag_spec=
9001    fi
9002    supports_anon_versioning=no
9003    case `$LD -v 2>/dev/null` in
9004      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9005      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9006      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9007      *\ 2.11.*) ;; # other 2.11 versions
9008      *) supports_anon_versioning=yes ;;
9009    esac
9010
9011    # See if GNU ld supports shared libraries.
9012    case $host_os in
9013    aix3* | aix4* | aix5*)
9014      # On AIX/PPC, the GNU linker is very broken
9015      if test "$host_cpu" != ia64; then
9016        ld_shlibs=no
9017        cat <<EOF 1>&2
9018
9019*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9020*** to be unable to reliably create shared libraries on AIX.
9021*** Therefore, libtool is disabling shared libraries support.  If you
9022*** really care for shared libraries, you may want to modify your PATH
9023*** so that a non-GNU linker is found, and then restart.
9024
9025EOF
9026      fi
9027      ;;
9028
9029    amigaos*)
9030      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)'
9031      hardcode_libdir_flag_spec='-L$libdir'
9032      hardcode_minus_L=yes
9033
9034      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9035      # that the semantics of dynamic libraries on AmigaOS, at least up
9036      # to version 4, is to share data among multiple programs linked
9037      # with the same dynamic library.  Since this doesn't match the
9038      # behavior of shared libraries on other platforms, we can't use
9039      # them.
9040      ld_shlibs=no
9041      ;;
9042
9043    beos*)
9044      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9045        allow_undefined_flag=unsupported
9046        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9047        # support --undefined.  This deserves some investigation.  FIXME
9048        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9049      else
9050        ld_shlibs=no
9051      fi
9052      ;;
9053
9054    cygwin* | mingw* | pw32*)
9055      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9056      # as there is no search path for DLLs.
9057      hardcode_libdir_flag_spec='-L$libdir'
9058      allow_undefined_flag=unsupported
9059      always_export_symbols=no
9060      enable_shared_with_static_runtimes=yes
9061      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9062
9063      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9064        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9065        # If the export-symbols file already is a .def file (1st line
9066        # is EXPORTS), use it as is; otherwise, prepend...
9067        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9068          cp $export_symbols $output_objdir/$soname.def;
9069        else
9070          echo EXPORTS > $output_objdir/$soname.def;
9071          cat $export_symbols >> $output_objdir/$soname.def;
9072        fi~
9073        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9074      else
9075        ld_shlibs=no
9076      fi
9077      ;;
9078
9079    interix3*)
9080      hardcode_direct=no
9081      hardcode_shlibpath_var=no
9082      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9083      export_dynamic_flag_spec='${wl}-E'
9084      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9085      # Instead, shared libraries are loaded at an image base (0x10000000 by
9086      # default) and relocated if they conflict, which is a slow very memory
9087      # consuming and fragmenting process.  To avoid this, we pick a random,
9088      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9089      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9090      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9091      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'
9092      ;;
9093
9094    linux*)
9095      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9096        tmp_addflag=
9097        case $cc_basename,$host_cpu in
9098        pgcc*)                          # Portland Group C compiler
9099          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'
9100          tmp_addflag=' $pic_flag'
9101          ;;
9102        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9103          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'
9104          tmp_addflag=' $pic_flag -Mnomain' ;;
9105        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9106          tmp_addflag=' -i_dynamic' ;;
9107        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9108          tmp_addflag=' -i_dynamic -nofor_main' ;;
9109        ifc* | ifort*)                  # Intel Fortran compiler
9110          tmp_addflag=' -nofor_main' ;;
9111        esac
9112        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9113
9114        if test $supports_anon_versioning = yes; then
9115          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9116  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9117  $echo "local: *; };" >> $output_objdir/$libname.ver~
9118          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9119        fi
9120      else
9121        ld_shlibs=no
9122      fi
9123      ;;
9124
9125    netbsd*)
9126      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9127        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9128        wlarc=
9129      else
9130        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9131        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9132      fi
9133      ;;
9134
9135    solaris*)
9136      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9137        ld_shlibs=no
9138        cat <<EOF 1>&2
9139
9140*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9141*** create shared libraries on Solaris systems.  Therefore, libtool
9142*** is disabling shared libraries support.  We urge you to upgrade GNU
9143*** binutils to release 2.9.1 or newer.  Another option is to modify
9144*** your PATH or compiler configuration so that the native linker is
9145*** used, and then restart.
9146
9147EOF
9148      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9149        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9150        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9151      else
9152        ld_shlibs=no
9153      fi
9154      ;;
9155
9156    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9157      case `$LD -v 2>&1` in
9158        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9159        ld_shlibs=no
9160        cat <<_LT_EOF 1>&2
9161
9162*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9163*** reliably create shared libraries on SCO systems.  Therefore, libtool
9164*** is disabling shared libraries support.  We urge you to upgrade GNU
9165*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9166*** your PATH or compiler configuration so that the native linker is
9167*** used, and then restart.
9168
9169_LT_EOF
9170        ;;
9171        *)
9172          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9173            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9174            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9175            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9176          else
9177            ld_shlibs=no
9178          fi
9179        ;;
9180      esac
9181      ;;
9182
9183    sunos4*)
9184      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9185      wlarc=
9186      hardcode_direct=yes
9187      hardcode_shlibpath_var=no
9188      ;;
9189
9190    *)
9191      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9192        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9194      else
9195        ld_shlibs=no
9196      fi
9197      ;;
9198    esac
9199
9200    if test "$ld_shlibs" = no; then
9201      runpath_var=
9202      hardcode_libdir_flag_spec=
9203      export_dynamic_flag_spec=
9204      whole_archive_flag_spec=
9205    fi
9206  else
9207    # PORTME fill in a description of your system's linker (not GNU ld)
9208    case $host_os in
9209    aix3*)
9210      allow_undefined_flag=unsupported
9211      always_export_symbols=yes
9212      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'
9213      # Note: this linker hardcodes the directories in LIBPATH if there
9214      # are no directories specified by -L.
9215      hardcode_minus_L=yes
9216      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9217        # Neither direct hardcoding nor static linking is supported with a
9218        # broken collect2.
9219        hardcode_direct=unsupported
9220      fi
9221      ;;
9222
9223    aix4* | aix5*)
9224      if test "$host_cpu" = ia64; then
9225        # On IA64, the linker does run time linking by default, so we don't
9226        # have to do anything special.
9227        aix_use_runtimelinking=no
9228        exp_sym_flag='-Bexport'
9229        no_entry_flag=""
9230      else
9231        # If we're using GNU nm, then we don't want the "-C" option.
9232        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9233        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9234          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'
9235        else
9236          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'
9237        fi
9238        aix_use_runtimelinking=no
9239
9240        # Test if we are trying to use run time linking or normal
9241        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9242        # need to do runtime linking.
9243        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9244          for ld_flag in $LDFLAGS; do
9245          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9246            aix_use_runtimelinking=yes
9247            break
9248          fi
9249          done
9250          ;;
9251        esac
9252
9253        exp_sym_flag='-bexport'
9254        no_entry_flag='-bnoentry'
9255      fi
9256
9257      # When large executables or shared objects are built, AIX ld can
9258      # have problems creating the table of contents.  If linking a library
9259      # or program results in "error TOC overflow" add -mminimal-toc to
9260      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9261      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9262
9263      archive_cmds=''
9264      hardcode_direct=yes
9265      hardcode_libdir_separator=':'
9266      link_all_deplibs=yes
9267
9268      if test "$GCC" = yes; then
9269        case $host_os in aix4.[012]|aix4.[012].*)
9270        # We only want to do this on AIX 4.2 and lower, the check
9271        # below for broken collect2 doesn't work under 4.3+
9272          collect2name=`${CC} -print-prog-name=collect2`
9273          if test -f "$collect2name" && \
9274           strings "$collect2name" | grep resolve_lib_name >/dev/null
9275          then
9276          # We have reworked collect2
9277          hardcode_direct=yes
9278          else
9279          # We have old collect2
9280          hardcode_direct=unsupported
9281          # It fails to find uninstalled libraries when the uninstalled
9282          # path is not listed in the libpath.  Setting hardcode_minus_L
9283          # to unsupported forces relinking
9284          hardcode_minus_L=yes
9285          hardcode_libdir_flag_spec='-L$libdir'
9286          hardcode_libdir_separator=
9287          fi
9288          ;;
9289        esac
9290        shared_flag='-shared'
9291        if test "$aix_use_runtimelinking" = yes; then
9292          shared_flag="$shared_flag "'${wl}-G'
9293        fi
9294      else
9295        # not using gcc
9296        if test "$host_cpu" = ia64; then
9297        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9298        # chokes on -Wl,-G. The following line is correct:
9299          shared_flag='-G'
9300        else
9301          if test "$aix_use_runtimelinking" = yes; then
9302            shared_flag='${wl}-G'
9303          else
9304            shared_flag='${wl}-bM:SRE'
9305          fi
9306        fi
9307      fi
9308
9309      # It seems that -bexpall does not export symbols beginning with
9310      # underscore (_), so it is better to generate a list of symbols to export.
9311      always_export_symbols=yes
9312      if test "$aix_use_runtimelinking" = yes; then
9313        # Warning - without using the other runtime loading flags (-brtl),
9314        # -berok will link without error, but may produce a broken library.
9315        allow_undefined_flag='-berok'
9316       # Determine the default libpath from the value encoded in an empty executable.
9317       cat >conftest.$ac_ext <<_ACEOF
9318/* confdefs.h.  */
9319_ACEOF
9320cat confdefs.h >>conftest.$ac_ext
9321cat >>conftest.$ac_ext <<_ACEOF
9322/* end confdefs.h.  */
9323
9324int
9325main ()
9326{
9327
9328  ;
9329  return 0;
9330}
9331_ACEOF
9332rm -f conftest.$ac_objext conftest$ac_exeext
9333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9334  (eval $ac_link) 2>conftest.er1
9335  ac_status=$?
9336  grep -v '^ *+' conftest.er1 >conftest.err
9337  rm -f conftest.er1
9338  cat conftest.err >&5
9339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340  (exit $ac_status); } &&
9341         { ac_try='test -z "$ac_c_werror_flag"
9342                         || test ! -s conftest.err'
9343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344  (eval $ac_try) 2>&5
9345  ac_status=$?
9346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347  (exit $ac_status); }; } &&
9348         { ac_try='test -s conftest$ac_exeext'
9349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350  (eval $ac_try) 2>&5
9351  ac_status=$?
9352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353  (exit $ac_status); }; }; then
9354
9355aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9356}'`
9357# Check for a 64-bit object if we didn't find anything.
9358if 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; }
9359}'`; fi
9360else
9361  echo "$as_me: failed program was:" >&5
9362sed 's/^/| /' conftest.$ac_ext >&5
9363
9364fi
9365rm -f conftest.err conftest.$ac_objext \
9366      conftest$ac_exeext conftest.$ac_ext
9367if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9368
9369       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9370        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"
9371       else
9372        if test "$host_cpu" = ia64; then
9373          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9374          allow_undefined_flag="-z nodefs"
9375          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"
9376        else
9377         # Determine the default libpath from the value encoded in an empty executable.
9378         cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h.  */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h.  */
9384
9385int
9386main ()
9387{
9388
9389  ;
9390  return 0;
9391}
9392_ACEOF
9393rm -f conftest.$ac_objext conftest$ac_exeext
9394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395  (eval $ac_link) 2>conftest.er1
9396  ac_status=$?
9397  grep -v '^ *+' conftest.er1 >conftest.err
9398  rm -f conftest.er1
9399  cat conftest.err >&5
9400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401  (exit $ac_status); } &&
9402         { ac_try='test -z "$ac_c_werror_flag"
9403                         || test ! -s conftest.err'
9404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405  (eval $ac_try) 2>&5
9406  ac_status=$?
9407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408  (exit $ac_status); }; } &&
9409         { ac_try='test -s conftest$ac_exeext'
9410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411  (eval $ac_try) 2>&5
9412  ac_status=$?
9413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414  (exit $ac_status); }; }; then
9415
9416aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9417}'`
9418# Check for a 64-bit object if we didn't find anything.
9419if 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; }
9420}'`; fi
9421else
9422  echo "$as_me: failed program was:" >&5
9423sed 's/^/| /' conftest.$ac_ext >&5
9424
9425fi
9426rm -f conftest.err conftest.$ac_objext \
9427      conftest$ac_exeext conftest.$ac_ext
9428if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9429
9430         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9431          # Warning - without using the other run time loading flags,
9432          # -berok will link without error, but may produce a broken library.
9433          no_undefined_flag=' ${wl}-bernotok'
9434          allow_undefined_flag=' ${wl}-berok'
9435          # Exported symbols can be pulled into shared objects from archives
9436          whole_archive_flag_spec='$convenience'
9437          archive_cmds_need_lc=yes
9438          # This is similar to how AIX traditionally builds its shared libraries.
9439          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'
9440        fi
9441      fi
9442      ;;
9443
9444    amigaos*)
9445      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)'
9446      hardcode_libdir_flag_spec='-L$libdir'
9447      hardcode_minus_L=yes
9448      # see comment about different semantics on the GNU ld section
9449      ld_shlibs=no
9450      ;;
9451
9452    bsdi[45]*)
9453      export_dynamic_flag_spec=-rdynamic
9454      ;;
9455
9456    cygwin* | mingw* | pw32*)
9457      # When not using gcc, we currently assume that we are using
9458      # Microsoft Visual C++.
9459      # hardcode_libdir_flag_spec is actually meaningless, as there is
9460      # no search path for DLLs.
9461      hardcode_libdir_flag_spec=' '
9462      allow_undefined_flag=unsupported
9463      # Tell ltmain to make .lib files, not .a files.
9464      libext=lib
9465      # Tell ltmain to make .dll files, not .so files.
9466      shrext_cmds=".dll"
9467      # FIXME: Setting linknames here is a bad hack.
9468      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9469      # The linker will automatically build a .lib file if we build a DLL.
9470      old_archive_From_new_cmds='true'
9471      # FIXME: Should let the user specify the lib program.
9472      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9473      fix_srcfile_path='`cygpath -w "$srcfile"`'
9474      enable_shared_with_static_runtimes=yes
9475      ;;
9476
9477    darwin* | rhapsody*)
9478      case $host_os in
9479        rhapsody* | darwin1.[012])
9480         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9481         ;;
9482       *) # Darwin 1.3 on
9483         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9484           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9485         else
9486           case ${MACOSX_DEPLOYMENT_TARGET} in
9487             10.[012])
9488               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9489               ;;
9490             10.*)
9491               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9492               ;;
9493           esac
9494         fi
9495         ;;
9496      esac
9497      archive_cmds_need_lc=no
9498      hardcode_direct=no
9499      hardcode_automatic=yes
9500      hardcode_shlibpath_var=unsupported
9501      whole_archive_flag_spec=''
9502      link_all_deplibs=yes
9503    if test "$GCC" = yes ; then
9504        output_verbose_link_cmd='echo'
9505        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9506      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9507      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9508      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}'
9509      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}'
9510    else
9511      case $cc_basename in
9512        xlc*)
9513         output_verbose_link_cmd='echo'
9514         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9515         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9516          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9517         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}'
9518          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}'
9519          ;;
9520       *)
9521         ld_shlibs=no
9522          ;;
9523      esac
9524    fi
9525      ;;
9526
9527    dgux*)
9528      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9529      hardcode_libdir_flag_spec='-L$libdir'
9530      hardcode_shlibpath_var=no
9531      ;;
9532
9533    freebsd1*)
9534      ld_shlibs=no
9535      ;;
9536
9537    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9538    # support.  Future versions do this automatically, but an explicit c++rt0.o
9539    # does not break anything, and helps significantly (at the cost of a little
9540    # extra space).
9541    freebsd2.2*)
9542      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9543      hardcode_libdir_flag_spec='-R$libdir'
9544      hardcode_direct=yes
9545      hardcode_shlibpath_var=no
9546      ;;
9547
9548    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9549    freebsd2*)
9550      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9551      hardcode_direct=yes
9552      hardcode_minus_L=yes
9553      hardcode_shlibpath_var=no
9554      ;;
9555
9556    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9557    freebsd* | kfreebsd*-gnu | dragonfly*)
9558      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9559      hardcode_libdir_flag_spec='-R$libdir'
9560      hardcode_direct=yes
9561      hardcode_shlibpath_var=no
9562      ;;
9563
9564    hpux9*)
9565      if test "$GCC" = yes; then
9566        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'
9567      else
9568        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'
9569      fi
9570      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571      hardcode_libdir_separator=:
9572      hardcode_direct=yes
9573
9574      # hardcode_minus_L: Not really in the search PATH,
9575      # but as the default location of the library.
9576      hardcode_minus_L=yes
9577      export_dynamic_flag_spec='${wl}-E'
9578      ;;
9579
9580    hpux10*)
9581      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9582        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9583      else
9584        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9585      fi
9586      if test "$with_gnu_ld" = no; then
9587        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9588        hardcode_libdir_separator=:
9589
9590        hardcode_direct=yes
9591        export_dynamic_flag_spec='${wl}-E'
9592
9593        # hardcode_minus_L: Not really in the search PATH,
9594        # but as the default location of the library.
9595        hardcode_minus_L=yes
9596      fi
9597      ;;
9598
9599    hpux11*)
9600      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9601        case $host_cpu in
9602        hppa*64*)
9603          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9604          ;;
9605        ia64*)
9606          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9607          ;;
9608        *)
9609          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9610          ;;
9611        esac
9612      else
9613        case $host_cpu in
9614        hppa*64*)
9615          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9616          ;;
9617        ia64*)
9618          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9619          ;;
9620        *)
9621          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9622          ;;
9623        esac
9624      fi
9625      if test "$with_gnu_ld" = no; then
9626        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9627        hardcode_libdir_separator=:
9628
9629        case $host_cpu in
9630        hppa*64*|ia64*)
9631          hardcode_libdir_flag_spec_ld='+b $libdir'
9632          hardcode_direct=no
9633          hardcode_shlibpath_var=no
9634          ;;
9635        *)
9636          hardcode_direct=yes
9637          export_dynamic_flag_spec='${wl}-E'
9638
9639          # hardcode_minus_L: Not really in the search PATH,
9640          # but as the default location of the library.
9641          hardcode_minus_L=yes
9642          ;;
9643        esac
9644      fi
9645      ;;
9646
9647    irix5* | irix6* | nonstopux*)
9648      if test "$GCC" = yes; then
9649        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'
9650      else
9651        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'
9652        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9653      fi
9654      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655      hardcode_libdir_separator=:
9656      link_all_deplibs=yes
9657      ;;
9658
9659    netbsd*)
9660      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9661        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9662      else
9663        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9664      fi
9665      hardcode_libdir_flag_spec='-R$libdir'
9666      hardcode_direct=yes
9667      hardcode_shlibpath_var=no
9668      ;;
9669
9670    newsos6)
9671      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9672      hardcode_direct=yes
9673      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9674      hardcode_libdir_separator=:
9675      hardcode_shlibpath_var=no
9676      ;;
9677
9678    openbsd*)
9679      hardcode_direct=yes
9680      hardcode_shlibpath_var=no
9681      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9682        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9683        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9684        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9685        export_dynamic_flag_spec='${wl}-E'
9686      else
9687       case $host_os in
9688         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9689           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9690           hardcode_libdir_flag_spec='-R$libdir'
9691           ;;
9692         *)
9693           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9694           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9695           ;;
9696       esac
9697      fi
9698      ;;
9699
9700    os2*)
9701      hardcode_libdir_flag_spec='-L$libdir'
9702      hardcode_minus_L=yes
9703      allow_undefined_flag=unsupported
9704      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'
9705      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9706      ;;
9707
9708    osf3*)
9709      if test "$GCC" = yes; then
9710        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9711        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'
9712      else
9713        allow_undefined_flag=' -expect_unresolved \*'
9714        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'
9715      fi
9716      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9717      hardcode_libdir_separator=:
9718      ;;
9719
9720    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9721      if test "$GCC" = yes; then
9722        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9723        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'
9724        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9725      else
9726        allow_undefined_flag=' -expect_unresolved \*'
9727        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'
9728        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9729        $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'
9730
9731        # Both c and cxx compiler support -rpath directly
9732        hardcode_libdir_flag_spec='-rpath $libdir'
9733      fi
9734      hardcode_libdir_separator=:
9735      ;;
9736
9737    solaris*)
9738      no_undefined_flag=' -z text'
9739      if test "$GCC" = yes; then
9740        wlarc='${wl}'
9741        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9742        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9743          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9744      else
9745        wlarc=''
9746        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9748        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9749      fi
9750      hardcode_libdir_flag_spec='-R$libdir'
9751      hardcode_shlibpath_var=no
9752      case $host_os in
9753      solaris2.[0-5] | solaris2.[0-5].*) ;;
9754      *)
9755        # The compiler driver will combine linker options so we
9756        # cannot just pass the convience library names through
9757        # without $wl, iff we do not link with $LD.
9758        # Luckily, gcc supports the same syntax we need for Sun Studio.
9759        # Supported since Solaris 2.6 (maybe 2.5.1?)
9760        case $wlarc in
9761        '')
9762          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9763        *)
9764          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' ;;
9765        esac ;;
9766      esac
9767      link_all_deplibs=yes
9768      ;;
9769
9770    sunos4*)
9771      if test "x$host_vendor" = xsequent; then
9772        # Use $CC to link under sequent, because it throws in some extra .o
9773        # files that make .init and .fini sections work.
9774        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9775      else
9776        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9777      fi
9778      hardcode_libdir_flag_spec='-L$libdir'
9779      hardcode_direct=yes
9780      hardcode_minus_L=yes
9781      hardcode_shlibpath_var=no
9782      ;;
9783
9784    sysv4)
9785      case $host_vendor in
9786        sni)
9787          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9788          hardcode_direct=yes # is this really true???
9789        ;;
9790        siemens)
9791          ## LD is ld it makes a PLAMLIB
9792          ## CC just makes a GrossModule.
9793          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9794          reload_cmds='$CC -r -o $output$reload_objs'
9795          hardcode_direct=no
9796        ;;
9797        motorola)
9798          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9800        ;;
9801      esac
9802      runpath_var='LD_RUN_PATH'
9803      hardcode_shlibpath_var=no
9804      ;;
9805
9806    sysv4.3*)
9807      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9808      hardcode_shlibpath_var=no
9809      export_dynamic_flag_spec='-Bexport'
9810      ;;
9811
9812    sysv4*MP*)
9813      if test -d /usr/nec; then
9814        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9815        hardcode_shlibpath_var=no
9816        runpath_var=LD_RUN_PATH
9817        hardcode_runpath_var=yes
9818        ld_shlibs=yes
9819      fi
9820      ;;
9821
9822    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9823      no_undefined_flag='${wl}-z,text'
9824      archive_cmds_need_lc=no
9825      hardcode_shlibpath_var=no
9826      runpath_var='LD_RUN_PATH'
9827
9828      if test "$GCC" = yes; then
9829        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9830        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831      else
9832        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834      fi
9835      ;;
9836
9837    sysv5* | sco3.2v5* | sco5v6*)
9838      # Note: We can NOT use -z defs as we might desire, because we do not
9839      # link with -lc, and that would cause any symbols used from libc to
9840      # always be unresolved, which means just about no library would
9841      # ever link correctly.  If we're not using GNU ld we use -z text
9842      # though, which does catch some bad symbols but isn't as heavy-handed
9843      # as -z defs.
9844      no_undefined_flag='${wl}-z,text'
9845      allow_undefined_flag='${wl}-z,nodefs'
9846      archive_cmds_need_lc=no
9847      hardcode_shlibpath_var=no
9848      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9849      hardcode_libdir_separator=':'
9850      link_all_deplibs=yes
9851      export_dynamic_flag_spec='${wl}-Bexport'
9852      runpath_var='LD_RUN_PATH'
9853
9854      if test "$GCC" = yes; then
9855        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9856        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9857      else
9858        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9859        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9860      fi
9861      ;;
9862
9863    uts4*)
9864      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9865      hardcode_libdir_flag_spec='-L$libdir'
9866      hardcode_shlibpath_var=no
9867      ;;
9868
9869    *)
9870      ld_shlibs=no
9871      ;;
9872    esac
9873  fi
9874
9875echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9876echo "${ECHO_T}$ld_shlibs" >&6
9877test "$ld_shlibs" = no && can_build_shared=no
9878
9879#
9880# Do we need to explicitly link libc?
9881#
9882case "x$archive_cmds_need_lc" in
9883x|xyes)
9884  # Assume -lc should be added
9885  archive_cmds_need_lc=yes
9886
9887  if test "$enable_shared" = yes && test "$GCC" = yes; then
9888    case $archive_cmds in
9889    *'~'*)
9890      # FIXME: we may have to deal with multi-command sequences.
9891      ;;
9892    '$CC '*)
9893      # Test whether the compiler implicitly links with -lc since on some
9894      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9895      # to ld, don't add -lc before -lgcc.
9896      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9897echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9898      $rm conftest*
9899      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9900
9901      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9902  (eval $ac_compile) 2>&5
9903  ac_status=$?
9904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905  (exit $ac_status); } 2>conftest.err; then
9906        soname=conftest
9907        lib=conftest
9908        libobjs=conftest.$ac_objext
9909        deplibs=
9910        wl=$lt_prog_compiler_wl
9911        pic_flag=$lt_prog_compiler_pic
9912        compiler_flags=-v
9913        linker_flags=-v
9914        verstring=
9915        output_objdir=.
9916        libname=conftest
9917        lt_save_allow_undefined_flag=$allow_undefined_flag
9918        allow_undefined_flag=
9919        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9920  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9921  ac_status=$?
9922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923  (exit $ac_status); }
9924        then
9925          archive_cmds_need_lc=no
9926        else
9927          archive_cmds_need_lc=yes
9928        fi
9929        allow_undefined_flag=$lt_save_allow_undefined_flag
9930      else
9931        cat conftest.err 1>&5
9932      fi
9933      $rm conftest*
9934      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9935echo "${ECHO_T}$archive_cmds_need_lc" >&6
9936      ;;
9937    esac
9938  fi
9939  ;;
9940esac
9941
9942echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9943echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9944library_names_spec=
9945libname_spec='lib$name'
9946soname_spec=
9947shrext_cmds=".so"
9948postinstall_cmds=
9949postuninstall_cmds=
9950finish_cmds=
9951finish_eval=
9952shlibpath_var=
9953shlibpath_overrides_runpath=unknown
9954version_type=none
9955dynamic_linker="$host_os ld.so"
9956sys_lib_dlsearch_path_spec="/lib /usr/lib"
9957if test "$GCC" = yes; then
9958  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9959  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9960    # if the path contains ";" then we assume it to be the separator
9961    # otherwise default to the standard path separator (i.e. ":") - it is
9962    # assumed that no part of a normal pathname contains ";" but that should
9963    # okay in the real world where ";" in dirpaths is itself problematic.
9964    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9965  else
9966    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9967  fi
9968else
9969  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9970fi
9971need_lib_prefix=unknown
9972hardcode_into_libs=no
9973
9974# when you set need_version to no, make sure it does not cause -set_version
9975# flags to be left without arguments
9976need_version=unknown
9977
9978case $host_os in
9979aix3*)
9980  version_type=linux
9981  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9982  shlibpath_var=LIBPATH
9983
9984  # AIX 3 has no versioning support, so we append a major version to the name.
9985  soname_spec='${libname}${release}${shared_ext}$major'
9986  ;;
9987
9988aix4* | aix5*)
9989  version_type=linux
9990  need_lib_prefix=no
9991  need_version=no
9992  hardcode_into_libs=yes
9993  if test "$host_cpu" = ia64; then
9994    # AIX 5 supports IA64
9995    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9996    shlibpath_var=LD_LIBRARY_PATH
9997  else
9998    # With GCC up to 2.95.x, collect2 would create an import file
9999    # for dependence libraries.  The import file would start with
10000    # the line `#! .'.  This would cause the generated library to
10001    # depend on `.', always an invalid library.  This was fixed in
10002    # development snapshots of GCC prior to 3.0.
10003    case $host_os in
10004      aix4 | aix4.[01] | aix4.[01].*)
10005      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10006           echo ' yes '
10007           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10008        :
10009      else
10010        can_build_shared=no
10011      fi
10012      ;;
10013    esac
10014    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10015    # soname into executable. Probably we can add versioning support to
10016    # collect2, so additional links can be useful in future.
10017    if test "$aix_use_runtimelinking" = yes; then
10018      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10019      # instead of lib<name>.a to let people know that these are not
10020      # typical AIX shared libraries.
10021      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022    else
10023      # We preserve .a as extension for shared libraries through AIX4.2
10024      # and later when we are not doing run time linking.
10025      library_names_spec='${libname}${release}.a $libname.a'
10026      soname_spec='${libname}${release}${shared_ext}$major'
10027    fi
10028    shlibpath_var=LIBPATH
10029  fi
10030  ;;
10031
10032amigaos*)
10033  library_names_spec='$libname.ixlibrary $libname.a'
10034  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10035  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'
10036  ;;
10037
10038beos*)
10039  library_names_spec='${libname}${shared_ext}'
10040  dynamic_linker="$host_os ld.so"
10041  shlibpath_var=LIBRARY_PATH
10042  ;;
10043
10044bsdi[45]*)
10045  version_type=linux
10046  need_version=no
10047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048  soname_spec='${libname}${release}${shared_ext}$major'
10049  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10050  shlibpath_var=LD_LIBRARY_PATH
10051  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10052  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10053  # the default ld.so.conf also contains /usr/contrib/lib and
10054  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10055  # libtool to hard-code these into programs
10056  ;;
10057
10058cygwin* | mingw* | pw32*)
10059  version_type=windows
10060  shrext_cmds=".dll"
10061  need_version=no
10062  need_lib_prefix=no
10063
10064  case $GCC,$host_os in
10065  yes,cygwin* | yes,mingw* | yes,pw32*)
10066    library_names_spec='$libname.dll.a'
10067    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10068    postinstall_cmds='base_file=`basename \${file}`~
10069      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10070      dldir=$destdir/`dirname \$dlpath`~
10071      test -d \$dldir || mkdir -p \$dldir~
10072      $install_prog $dir/$dlname \$dldir/$dlname~
10073      chmod a+x \$dldir/$dlname'
10074    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10075      dlpath=$dir/\$dldll~
10076       $rm \$dlpath'
10077    shlibpath_overrides_runpath=yes
10078
10079    case $host_os in
10080    cygwin*)
10081      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10082      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10083      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10084      ;;
10085    mingw*)
10086      # MinGW DLLs use traditional 'lib' prefix
10087      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10088      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10089      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10090        # It is most probably a Windows format PATH printed by
10091        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10092        # path with ; separators, and with drive letters. We can handle the
10093        # drive letters (cygwin fileutils understands them), so leave them,
10094        # especially as we might pass files found there to a mingw objdump,
10095        # which wouldn't understand a cygwinified path. Ahh.
10096        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10097      else
10098        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10099      fi
10100      ;;
10101    pw32*)
10102      # pw32 DLLs use 'pw' prefix rather than 'lib'
10103      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10104      ;;
10105    esac
10106    ;;
10107
10108  *)
10109    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10110    ;;
10111  esac
10112  dynamic_linker='Win32 ld.exe'
10113  # FIXME: first we should search . and the directory the executable is in
10114  shlibpath_var=PATH
10115  ;;
10116
10117darwin* | rhapsody*)
10118  dynamic_linker="$host_os dyld"
10119  version_type=darwin
10120  need_lib_prefix=no
10121  need_version=no
10122  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10123  soname_spec='${libname}${release}${major}$shared_ext'
10124  shlibpath_overrides_runpath=yes
10125  shlibpath_var=DYLD_LIBRARY_PATH
10126  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10127  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10128  if test "$GCC" = yes; then
10129    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"`
10130  else
10131    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10132  fi
10133  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10134  ;;
10135
10136dgux*)
10137  version_type=linux
10138  need_lib_prefix=no
10139  need_version=no
10140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10141  soname_spec='${libname}${release}${shared_ext}$major'
10142  shlibpath_var=LD_LIBRARY_PATH
10143  ;;
10144
10145freebsd1*)
10146  dynamic_linker=no
10147  ;;
10148
10149kfreebsd*-gnu)
10150  version_type=linux
10151  need_lib_prefix=no
10152  need_version=no
10153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154  soname_spec='${libname}${release}${shared_ext}$major'
10155  shlibpath_var=LD_LIBRARY_PATH
10156  shlibpath_overrides_runpath=no
10157  hardcode_into_libs=yes
10158  dynamic_linker='GNU ld.so'
10159  ;;
10160
10161freebsd* | dragonfly*)
10162  # DragonFly does not have aout.  When/if they implement a new
10163  # versioning mechanism, adjust this.
10164  if test -x /usr/bin/objformat; then
10165    objformat=`/usr/bin/objformat`
10166  else
10167    case $host_os in
10168    freebsd[123]*) objformat=aout ;;
10169    *) objformat=elf ;;
10170    esac
10171  fi
10172  version_type=freebsd-$objformat
10173  case $version_type in
10174    freebsd-elf*)
10175      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10176      need_version=no
10177      need_lib_prefix=no
10178      ;;
10179    freebsd-*)
10180      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10181      need_version=yes
10182      ;;
10183  esac
10184  shlibpath_var=LD_LIBRARY_PATH
10185  case $host_os in
10186  freebsd2*)
10187    shlibpath_overrides_runpath=yes
10188    ;;
10189  freebsd3.[01]* | freebsdelf3.[01]*)
10190    shlibpath_overrides_runpath=yes
10191    hardcode_into_libs=yes
10192    ;;
10193  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10194  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10195    shlibpath_overrides_runpath=no
10196    hardcode_into_libs=yes
10197    ;;
10198  freebsd*) # from 4.6 on
10199    shlibpath_overrides_runpath=yes
10200    hardcode_into_libs=yes
10201    ;;
10202  esac
10203  ;;
10204
10205gnu*)
10206  version_type=linux
10207  need_lib_prefix=no
10208  need_version=no
10209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10210  soname_spec='${libname}${release}${shared_ext}$major'
10211  shlibpath_var=LD_LIBRARY_PATH
10212  hardcode_into_libs=yes
10213  ;;
10214
10215hpux9* | hpux10* | hpux11*)
10216  # Give a soname corresponding to the major version so that dld.sl refuses to
10217  # link against other versions.
10218  version_type=sunos
10219  need_lib_prefix=no
10220  need_version=no
10221  case $host_cpu in
10222  ia64*)
10223    shrext_cmds='.so'
10224    hardcode_into_libs=yes
10225    dynamic_linker="$host_os dld.so"
10226    shlibpath_var=LD_LIBRARY_PATH
10227    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10228    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229    soname_spec='${libname}${release}${shared_ext}$major'
10230    if test "X$HPUX_IA64_MODE" = X32; then
10231      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10232    else
10233      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10234    fi
10235    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10236    ;;
10237   hppa*64*)
10238     shrext_cmds='.sl'
10239     hardcode_into_libs=yes
10240     dynamic_linker="$host_os dld.sl"
10241     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10242     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10244     soname_spec='${libname}${release}${shared_ext}$major'
10245     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10246     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10247     ;;
10248   *)
10249    shrext_cmds='.sl'
10250    dynamic_linker="$host_os dld.sl"
10251    shlibpath_var=SHLIB_PATH
10252    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10253    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10254    soname_spec='${libname}${release}${shared_ext}$major'
10255    ;;
10256  esac
10257  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10258  postinstall_cmds='chmod 555 $lib'
10259  ;;
10260
10261interix3*)
10262  version_type=linux
10263  need_lib_prefix=no
10264  need_version=no
10265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266  soname_spec='${libname}${release}${shared_ext}$major'
10267  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10268  shlibpath_var=LD_LIBRARY_PATH
10269  shlibpath_overrides_runpath=no
10270  hardcode_into_libs=yes
10271  ;;
10272
10273irix5* | irix6* | nonstopux*)
10274  case $host_os in
10275    nonstopux*) version_type=nonstopux ;;
10276    *)
10277        if test "$lt_cv_prog_gnu_ld" = yes; then
10278                version_type=linux
10279        else
10280                version_type=irix
10281        fi ;;
10282  esac
10283  need_lib_prefix=no
10284  need_version=no
10285  soname_spec='${libname}${release}${shared_ext}$major'
10286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10287  case $host_os in
10288  irix5* | nonstopux*)
10289    libsuff= shlibsuff=
10290    ;;
10291  *)
10292    case $LD in # libtool.m4 will add one of these switches to LD
10293    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10294      libsuff= shlibsuff= libmagic=32-bit;;
10295    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10296      libsuff=32 shlibsuff=N32 libmagic=N32;;
10297    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10298      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10299    *) libsuff= shlibsuff= libmagic=never-match;;
10300    esac
10301    ;;
10302  esac
10303  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10304  shlibpath_overrides_runpath=no
10305  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10306  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10307  hardcode_into_libs=yes
10308  ;;
10309
10310# No shared lib support for Linux oldld, aout, or coff.
10311linux*oldld* | linux*aout* | linux*coff*)
10312  dynamic_linker=no
10313  ;;
10314
10315# This must be Linux ELF.
10316linux*)
10317  version_type=linux
10318  need_lib_prefix=no
10319  need_version=no
10320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321  soname_spec='${libname}${release}${shared_ext}$major'
10322  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10323  shlibpath_var=LD_LIBRARY_PATH
10324  shlibpath_overrides_runpath=no
10325  # This implies no fast_install, which is unacceptable.
10326  # Some rework will be needed to allow for fast_install
10327  # before this can be enabled.
10328  hardcode_into_libs=yes
10329
10330  # Append ld.so.conf contents to the search path
10331  if test -f /etc/ld.so.conf; then
10332    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' ' '`
10333    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10334  fi
10335
10336  # We used to test for /lib/ld.so.1 and disable shared libraries on
10337  # powerpc, because MkLinux only supported shared libraries with the
10338  # GNU dynamic linker.  Since this was broken with cross compilers,
10339  # most powerpc-linux boxes support dynamic linking these days and
10340  # people can always --disable-shared, the test was removed, and we
10341  # assume the GNU/Linux dynamic linker is in use.
10342  dynamic_linker='GNU/Linux ld.so'
10343  ;;
10344
10345knetbsd*-gnu)
10346  version_type=linux
10347  need_lib_prefix=no
10348  need_version=no
10349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10350  soname_spec='${libname}${release}${shared_ext}$major'
10351  shlibpath_var=LD_LIBRARY_PATH
10352  shlibpath_overrides_runpath=no
10353  hardcode_into_libs=yes
10354  dynamic_linker='GNU ld.so'
10355  ;;
10356
10357netbsd*)
10358  version_type=sunos
10359  need_lib_prefix=no
10360  need_version=no
10361  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10362    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10363    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10364    dynamic_linker='NetBSD (a.out) ld.so'
10365  else
10366    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10367    soname_spec='${libname}${release}${shared_ext}$major'
10368    dynamic_linker='NetBSD ld.elf_so'
10369  fi
10370  shlibpath_var=LD_LIBRARY_PATH
10371  shlibpath_overrides_runpath=yes
10372  hardcode_into_libs=yes
10373  ;;
10374
10375newsos6)
10376  version_type=linux
10377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378  shlibpath_var=LD_LIBRARY_PATH
10379  shlibpath_overrides_runpath=yes
10380  ;;
10381
10382nto-qnx*)
10383  version_type=linux
10384  need_lib_prefix=no
10385  need_version=no
10386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387  soname_spec='${libname}${release}${shared_ext}$major'
10388  shlibpath_var=LD_LIBRARY_PATH
10389  shlibpath_overrides_runpath=yes
10390  ;;
10391
10392openbsd*)
10393  version_type=sunos
10394  sys_lib_dlsearch_path_spec="/usr/lib"
10395  need_lib_prefix=no
10396  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10397  case $host_os in
10398    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10399    *)                         need_version=no  ;;
10400  esac
10401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10402  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10403  shlibpath_var=LD_LIBRARY_PATH
10404  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10405    case $host_os in
10406      openbsd2.[89] | openbsd2.[89].*)
10407        shlibpath_overrides_runpath=no
10408        ;;
10409      *)
10410        shlibpath_overrides_runpath=yes
10411        ;;
10412      esac
10413  else
10414    shlibpath_overrides_runpath=yes
10415  fi
10416  ;;
10417
10418os2*)
10419  libname_spec='$name'
10420  shrext_cmds=".dll"
10421  need_lib_prefix=no
10422  library_names_spec='$libname${shared_ext} $libname.a'
10423  dynamic_linker='OS/2 ld.exe'
10424  shlibpath_var=LIBPATH
10425  ;;
10426
10427osf3* | osf4* | osf5*)
10428  version_type=osf
10429  need_lib_prefix=no
10430  need_version=no
10431  soname_spec='${libname}${release}${shared_ext}$major'
10432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433  shlibpath_var=LD_LIBRARY_PATH
10434  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10435  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10436  ;;
10437
10438solaris*)
10439  version_type=linux
10440  need_lib_prefix=no
10441  need_version=no
10442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10443  soname_spec='${libname}${release}${shared_ext}$major'
10444  shlibpath_var=LD_LIBRARY_PATH
10445  shlibpath_overrides_runpath=yes
10446  hardcode_into_libs=yes
10447  # ldd complains unless libraries are executable
10448  postinstall_cmds='chmod +x $lib'
10449  ;;
10450
10451sunos4*)
10452  version_type=sunos
10453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10454  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10455  shlibpath_var=LD_LIBRARY_PATH
10456  shlibpath_overrides_runpath=yes
10457  if test "$with_gnu_ld" = yes; then
10458    need_lib_prefix=no
10459  fi
10460  need_version=yes
10461  ;;
10462
10463sysv4 | sysv4.3*)
10464  version_type=linux
10465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466  soname_spec='${libname}${release}${shared_ext}$major'
10467  shlibpath_var=LD_LIBRARY_PATH
10468  case $host_vendor in
10469    sni)
10470      shlibpath_overrides_runpath=no
10471      need_lib_prefix=no
10472      export_dynamic_flag_spec='${wl}-Blargedynsym'
10473      runpath_var=LD_RUN_PATH
10474      ;;
10475    siemens)
10476      need_lib_prefix=no
10477      ;;
10478    motorola)
10479      need_lib_prefix=no
10480      need_version=no
10481      shlibpath_overrides_runpath=no
10482      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10483      ;;
10484  esac
10485  ;;
10486
10487sysv4*MP*)
10488  if test -d /usr/nec ;then
10489    version_type=linux
10490    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10491    soname_spec='$libname${shared_ext}.$major'
10492    shlibpath_var=LD_LIBRARY_PATH
10493  fi
10494  ;;
10495
10496sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10497  version_type=freebsd-elf
10498  need_lib_prefix=no
10499  need_version=no
10500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10501  soname_spec='${libname}${release}${shared_ext}$major'
10502  shlibpath_var=LD_LIBRARY_PATH
10503  hardcode_into_libs=yes
10504  if test "$with_gnu_ld" = yes; then
10505    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10506    shlibpath_overrides_runpath=no
10507  else
10508    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10509    shlibpath_overrides_runpath=yes
10510    case $host_os in
10511      sco3.2v5*)
10512        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10513        ;;
10514    esac
10515  fi
10516  sys_lib_dlsearch_path_spec='/usr/lib'
10517  ;;
10518
10519uts4*)
10520  version_type=linux
10521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522  soname_spec='${libname}${release}${shared_ext}$major'
10523  shlibpath_var=LD_LIBRARY_PATH
10524  ;;
10525
10526*)
10527  dynamic_linker=no
10528  ;;
10529esac
10530echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10531echo "${ECHO_T}$dynamic_linker" >&6
10532test "$dynamic_linker" = no && can_build_shared=no
10533
10534variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10535if test "$GCC" = yes; then
10536  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10537fi
10538
10539echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10540echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10541hardcode_action=
10542if test -n "$hardcode_libdir_flag_spec" || \
10543   test -n "$runpath_var" || \
10544   test "X$hardcode_automatic" = "Xyes" ; then
10545
10546  # We can hardcode non-existant directories.
10547  if test "$hardcode_direct" != no &&
10548     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10549     # have to relink, otherwise we might link with an installed library
10550     # when we should be linking with a yet-to-be-installed one
10551     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10552     test "$hardcode_minus_L" != no; then
10553    # Linking always hardcodes the temporary library directory.
10554    hardcode_action=relink
10555  else
10556    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10557    hardcode_action=immediate
10558  fi
10559else
10560  # We cannot hardcode anything, or else we can only hardcode existing
10561  # directories.
10562  hardcode_action=unsupported
10563fi
10564echo "$as_me:$LINENO: result: $hardcode_action" >&5
10565echo "${ECHO_T}$hardcode_action" >&6
10566
10567if test "$hardcode_action" = relink; then
10568  # Fast installation is not supported
10569  enable_fast_install=no
10570elif test "$shlibpath_overrides_runpath" = yes ||
10571     test "$enable_shared" = no; then
10572  # Fast installation is not necessary
10573  enable_fast_install=needless
10574fi
10575
10576striplib=
10577old_striplib=
10578echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10579echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10580if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10581  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10582  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10583  echo "$as_me:$LINENO: result: yes" >&5
10584echo "${ECHO_T}yes" >&6
10585else
10586# FIXME - insert some real tests, host_os isn't really good enough
10587  case $host_os in
10588   darwin*)
10589       if test -n "$STRIP" ; then
10590         striplib="$STRIP -x"
10591         echo "$as_me:$LINENO: result: yes" >&5
10592echo "${ECHO_T}yes" >&6
10593       else
10594  echo "$as_me:$LINENO: result: no" >&5
10595echo "${ECHO_T}no" >&6
10596fi
10597       ;;
10598   *)
10599  echo "$as_me:$LINENO: result: no" >&5
10600echo "${ECHO_T}no" >&6
10601    ;;
10602  esac
10603fi
10604
10605if test "x$enable_dlopen" != xyes; then
10606  enable_dlopen=unknown
10607  enable_dlopen_self=unknown
10608  enable_dlopen_self_static=unknown
10609else
10610  lt_cv_dlopen=no
10611  lt_cv_dlopen_libs=
10612
10613  case $host_os in
10614  beos*)
10615    lt_cv_dlopen="load_add_on"
10616    lt_cv_dlopen_libs=
10617    lt_cv_dlopen_self=yes
10618    ;;
10619
10620  mingw* | pw32*)
10621    lt_cv_dlopen="LoadLibrary"
10622    lt_cv_dlopen_libs=
10623   ;;
10624
10625  cygwin*)
10626    lt_cv_dlopen="dlopen"
10627    lt_cv_dlopen_libs=
10628   ;;
10629
10630  darwin*)
10631  # if libdl is installed we need to link against it
10632    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10633echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10634if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10635  echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
10637  ac_check_lib_save_LIBS=$LIBS
10638LIBS="-ldl  $LIBS"
10639cat >conftest.$ac_ext <<_ACEOF
10640/* confdefs.h.  */
10641_ACEOF
10642cat confdefs.h >>conftest.$ac_ext
10643cat >>conftest.$ac_ext <<_ACEOF
10644/* end confdefs.h.  */
10645
10646/* Override any gcc2 internal prototype to avoid an error.  */
10647#ifdef __cplusplus
10648extern "C"
10649#endif
10650/* We use char because int might match the return type of a gcc2
10651   builtin and then its argument prototype would still apply.  */
10652char dlopen ();
10653int
10654main ()
10655{
10656dlopen ();
10657  ;
10658  return 0;
10659}
10660_ACEOF
10661rm -f conftest.$ac_objext conftest$ac_exeext
10662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663  (eval $ac_link) 2>conftest.er1
10664  ac_status=$?
10665  grep -v '^ *+' conftest.er1 >conftest.err
10666  rm -f conftest.er1
10667  cat conftest.err >&5
10668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669  (exit $ac_status); } &&
10670         { ac_try='test -z "$ac_c_werror_flag"
10671                         || test ! -s conftest.err'
10672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673  (eval $ac_try) 2>&5
10674  ac_status=$?
10675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676  (exit $ac_status); }; } &&
10677         { ac_try='test -s conftest$ac_exeext'
10678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679  (eval $ac_try) 2>&5
10680  ac_status=$?
10681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682  (exit $ac_status); }; }; then
10683  ac_cv_lib_dl_dlopen=yes
10684else
10685  echo "$as_me: failed program was:" >&5
10686sed 's/^/| /' conftest.$ac_ext >&5
10687
10688ac_cv_lib_dl_dlopen=no
10689fi
10690rm -f conftest.err conftest.$ac_objext \
10691      conftest$ac_exeext conftest.$ac_ext
10692LIBS=$ac_check_lib_save_LIBS
10693fi
10694echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10695echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10696if test $ac_cv_lib_dl_dlopen = yes; then
10697  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10698else
10699
10700    lt_cv_dlopen="dyld"
10701    lt_cv_dlopen_libs=
10702    lt_cv_dlopen_self=yes
10703
10704fi
10705
10706   ;;
10707
10708  *)
10709    echo "$as_me:$LINENO: checking for shl_load" >&5
10710echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10711if test "${ac_cv_func_shl_load+set}" = set; then
10712  echo $ECHO_N "(cached) $ECHO_C" >&6
10713else
10714  cat >conftest.$ac_ext <<_ACEOF
10715/* confdefs.h.  */
10716_ACEOF
10717cat confdefs.h >>conftest.$ac_ext
10718cat >>conftest.$ac_ext <<_ACEOF
10719/* end confdefs.h.  */
10720/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10721   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10722#define shl_load innocuous_shl_load
10723
10724/* System header to define __stub macros and hopefully few prototypes,
10725    which can conflict with char shl_load (); below.
10726    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10727    <limits.h> exists even on freestanding compilers.  */
10728
10729#ifdef __STDC__
10730# include <limits.h>
10731#else
10732# include <assert.h>
10733#endif
10734
10735#undef shl_load
10736
10737/* Override any gcc2 internal prototype to avoid an error.  */
10738#ifdef __cplusplus
10739extern "C"
10740{
10741#endif
10742/* We use char because int might match the return type of a gcc2
10743   builtin and then its argument prototype would still apply.  */
10744char shl_load ();
10745/* The GNU C library defines this for functions which it implements
10746    to always fail with ENOSYS.  Some functions are actually named
10747    something starting with __ and the normal name is an alias.  */
10748#if defined (__stub_shl_load) || defined (__stub___shl_load)
10749choke me
10750#else
10751char (*f) () = shl_load;
10752#endif