source: stable/2.0/configure @ 807

Last change on this file since 807 was 803, checked in by ladanyi, 12 years ago

the result of run_autotools

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