source: releases/1.2.0/configure @ 1995

Last change on this file since 1995 was 796, checked in by forrest, 12 years ago

temporarily committing release candidate to stable

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