source: stable/1.1/CoinMP/configure @ 122

Last change on this file since 122 was 122, checked in by bjarni, 11 years ago

run autotools for stable 1.1

  • Property svn:executable set to *
File size: 722.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for CoinMP 1.1.
4#
5# Report bugs to <coin-discuss@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='CoinMP'
431PACKAGE_TARNAME='coinmp'
432PACKAGE_VERSION='1.1'
433PACKAGE_STRING='CoinMP 1.1'
434PACKAGE_BUGREPORT='coin-discuss@list.coin-or.org'
435
436ac_unique_file="src/CoinMP.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COINMPSRCDIR COINMPOBJDIR COINMPDOCDIR COIN_HAS_COINMP_TRUE COIN_HAS_COINMP_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures CoinMP 1.1 to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of CoinMP 1.1:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-doscompile     Under Cygwin, compile so that executables run under
1079                          DOS. Set to mingw to use gcc/g++/ld with
1080                          -mno-cygwin. Set to msvc to use cl/link (or
1081                          icl/link). Default when mentioned: mingw. Default
1082                          when not mentioned: disabled.
1083  --enable-static[=PKGS]
1084                          build static libraries [default=no]
1085  --disable-dependency-tracking  speeds up one-time build
1086  --enable-dependency-tracking   do not reject slow dependency extractors
1087  --enable-maintainer-mode  enable make rules and dependencies not useful
1088                          (and sometimes confusing) to the casual installer
1089  --enable-shared[=PKGS]
1090                          build shared libraries [default=yes]
1091  --enable-fast-install[=PKGS]
1092                          optimize for fast installation [default=yes]
1093  --disable-libtool-lock  avoid locking (might break parallel builds)
1094
1095Optional Packages:
1096  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1097  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1098  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1099  --with-pic              try to use only PIC/non-PIC objects [default=use
1100                          both]
1101  --with-tags[=TAGS]
1102                          include additional configurations [automatic]
1103
1104Some influential environment variables:
1105  CDEFS       Additional -D flags to be used when compiling C code.
1106  ADD_CFLAGS  Additional C compiler options
1107  DBG_CFLAGS  Debug C compiler options
1108  OPT_CFLAGS  Optimize C compiler options
1109  CC          C compiler command
1110  CFLAGS      C compiler flags
1111  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1112              nonstandard directory <lib dir>
1113  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1114              headers in a nonstandard directory <include dir>
1115  MPICC       C MPI Compiler
1116  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1117  ADD_CXXFLAGS
1118              Additional C++ compiler options
1119  DBG_CXXFLAGS
1120              Debug C++ compiler options
1121  OPT_CXXFLAGS
1122              Optimize C++ compiler options
1123  CXX         C++ compiler command
1124  CXXFLAGS    C++ compiler flags
1125  MPICXX      C++ MPI Compiler
1126  CPP         C preprocessor
1127  CXXCPP      C++ preprocessor
1128  F77         Fortran 77 compiler command
1129  FFLAGS      Fortran 77 compiler flags
1130
1131Use these variables to override the choices made by `configure' or to help
1132it to find libraries and programs with nonstandard names/locations.
1133
1134Report bugs to <coin-discuss@list.coin-or.org>.
1135_ACEOF
1136fi
1137
1138if test "$ac_init_help" = "recursive"; then
1139  # If there are subdirs, report their specific --help.
1140  ac_popdir=`pwd`
1141  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1142    test -d $ac_dir || continue
1143    ac_builddir=.
1144
1145if test "$ac_dir" != .; then
1146  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1147  # A "../" for each directory in $ac_dir_suffix.
1148  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1149else
1150  ac_dir_suffix= ac_top_builddir=
1151fi
1152
1153case $srcdir in
1154  .)  # No --srcdir option.  We are building in place.
1155    ac_srcdir=.
1156    if test -z "$ac_top_builddir"; then
1157       ac_top_srcdir=.
1158    else
1159       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1160    fi ;;
1161  [\\/]* | ?:[\\/]* )  # Absolute path.
1162    ac_srcdir=$srcdir$ac_dir_suffix;
1163    ac_top_srcdir=$srcdir ;;
1164  *) # Relative path.
1165    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1166    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1167esac
1168
1169# Do not use `cd foo && pwd` to compute absolute paths, because
1170# the directories may not exist.
1171case `pwd` in
1172.) ac_abs_builddir="$ac_dir";;
1173*)
1174  case "$ac_dir" in
1175  .) ac_abs_builddir=`pwd`;;
1176  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1177  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1178  esac;;
1179esac
1180case $ac_abs_builddir in
1181.) ac_abs_top_builddir=${ac_top_builddir}.;;
1182*)
1183  case ${ac_top_builddir}. in
1184  .) ac_abs_top_builddir=$ac_abs_builddir;;
1185  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1186  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1187  esac;;
1188esac
1189case $ac_abs_builddir in
1190.) ac_abs_srcdir=$ac_srcdir;;
1191*)
1192  case $ac_srcdir in
1193  .) ac_abs_srcdir=$ac_abs_builddir;;
1194  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1195  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1196  esac;;
1197esac
1198case $ac_abs_builddir in
1199.) ac_abs_top_srcdir=$ac_top_srcdir;;
1200*)
1201  case $ac_top_srcdir in
1202  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1203  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1204  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1205  esac;;
1206esac
1207
1208    cd $ac_dir
1209    # Check for guested configure; otherwise get Cygnus style configure.
1210    if test -f $ac_srcdir/configure.gnu; then
1211      echo
1212      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1213    elif test -f $ac_srcdir/configure; then
1214      echo
1215      $SHELL $ac_srcdir/configure  --help=recursive
1216    elif test -f $ac_srcdir/configure.ac ||
1217           test -f $ac_srcdir/configure.in; then
1218      echo
1219      $ac_configure --help
1220    else
1221      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1222    fi
1223    cd $ac_popdir
1224  done
1225fi
1226
1227test -n "$ac_init_help" && exit 0
1228if $ac_init_version; then
1229  cat <<\_ACEOF
1230CoinMP configure 1.1
1231generated by GNU Autoconf 2.59
1232
1233Copyright (C) 2003 Free Software Foundation, Inc.
1234This configure script is free software; the Free Software Foundation
1235gives unlimited permission to copy, distribute and modify it.
1236
1237
1238Copyright 2006 International Business Machines and others.
1239All Rights Reserved.
1240This file is part of the open source package Coin which is distributed
1241under the Common Public License.
1242_ACEOF
1243  exit 0
1244fi
1245exec 5>config.log
1246cat >&5 <<_ACEOF
1247This file contains any messages produced by compilers while
1248running configure, to aid debugging if configure makes a mistake.
1249
1250It was created by CoinMP $as_me 1.1, which was
1251generated by GNU Autoconf 2.59.  Invocation command line was
1252
1253  $ $0 $@
1254
1255_ACEOF
1256{
1257cat <<_ASUNAME
1258## --------- ##
1259## Platform. ##
1260## --------- ##
1261
1262hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1263uname -m = `(uname -m) 2>/dev/null || echo unknown`
1264uname -r = `(uname -r) 2>/dev/null || echo unknown`
1265uname -s = `(uname -s) 2>/dev/null || echo unknown`
1266uname -v = `(uname -v) 2>/dev/null || echo unknown`
1267
1268/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1269/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1270
1271/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1272/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1273/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1274hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1275/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1276/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1277/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1278
1279_ASUNAME
1280
1281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282for as_dir in $PATH
1283do
1284  IFS=$as_save_IFS
1285  test -z "$as_dir" && as_dir=.
1286  echo "PATH: $as_dir"
1287done
1288
1289} >&5
1290
1291cat >&5 <<_ACEOF
1292
1293
1294## ----------- ##
1295## Core tests. ##
1296## ----------- ##
1297
1298_ACEOF
1299
1300
1301# Keep a trace of the command line.
1302# Strip out --no-create and --no-recursion so they do not pile up.
1303# Strip out --silent because we don't want to record it for future runs.
1304# Also quote any args containing shell meta-characters.
1305# Make two passes to allow for proper duplicate-argument suppression.
1306ac_configure_args=
1307ac_configure_args0=
1308ac_configure_args1=
1309ac_sep=
1310ac_must_keep_next=false
1311for ac_pass in 1 2
1312do
1313  for ac_arg
1314  do
1315    case $ac_arg in
1316    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1317    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318    | -silent | --silent | --silen | --sile | --sil)
1319      continue ;;
1320    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1322    esac
1323    case $ac_pass in
1324    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1325    2)
1326      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1327      if test $ac_must_keep_next = true; then
1328        ac_must_keep_next=false # Got value, back to normal.
1329      else
1330        case $ac_arg in
1331          *=* | --config-cache | -C | -disable-* | --disable-* \
1332          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1333          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1334          | -with-* | --with-* | -without-* | --without-* | --x)
1335            case "$ac_configure_args0 " in
1336              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1337            esac
1338            ;;
1339          -* ) ac_must_keep_next=true ;;
1340        esac
1341      fi
1342      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1343      # Get rid of the leading space.
1344      ac_sep=" "
1345      ;;
1346    esac
1347  done
1348done
1349$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1350$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1351
1352# When interrupted or exit'd, cleanup temporary files, and complete
1353# config.log.  We remove comments because anyway the quotes in there
1354# would cause problems or look ugly.
1355# WARNING: Be sure not to use single quotes in there, as some shells,
1356# such as our DU 5.0 friend, will then `close' the trap.
1357trap 'exit_status=$?
1358  # Save into config.log some information that might help in debugging.
1359  {
1360    echo
1361
1362    cat <<\_ASBOX
1363## ---------------- ##
1364## Cache variables. ##
1365## ---------------- ##
1366_ASBOX
1367    echo
1368    # The following way of writing the cache mishandles newlines in values,
1369{
1370  (set) 2>&1 |
1371    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1372    *ac_space=\ *)
1373      sed -n \
1374        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1375          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1376      ;;
1377    *)
1378      sed -n \
1379        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1380      ;;
1381    esac;
1382}
1383    echo
1384
1385    cat <<\_ASBOX
1386## ----------------- ##
1387## Output variables. ##
1388## ----------------- ##
1389_ASBOX
1390    echo
1391    for ac_var in $ac_subst_vars
1392    do
1393      eval ac_val=$`echo $ac_var`
1394      echo "$ac_var='"'"'$ac_val'"'"'"
1395    done | sort
1396    echo
1397
1398    if test -n "$ac_subst_files"; then
1399      cat <<\_ASBOX
1400## ------------- ##
1401## Output files. ##
1402## ------------- ##
1403_ASBOX
1404      echo
1405      for ac_var in $ac_subst_files
1406      do
1407        eval ac_val=$`echo $ac_var`
1408        echo "$ac_var='"'"'$ac_val'"'"'"
1409      done | sort
1410      echo
1411    fi
1412
1413    if test -s confdefs.h; then
1414      cat <<\_ASBOX
1415## ----------- ##
1416## confdefs.h. ##
1417## ----------- ##
1418_ASBOX
1419      echo
1420      sed "/^$/d" confdefs.h | sort
1421      echo
1422    fi
1423    test "$ac_signal" != 0 &&
1424      echo "$as_me: caught signal $ac_signal"
1425    echo "$as_me: exit $exit_status"
1426  } >&5
1427  rm -f core *.core &&
1428  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1429    exit $exit_status
1430     ' 0
1431for ac_signal in 1 2 13 15; do
1432  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1433done
1434ac_signal=0
1435
1436# confdefs.h avoids OS command line length limits that DEFS can exceed.
1437rm -rf conftest* confdefs.h
1438# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1439echo >confdefs.h
1440
1441# Predefined preprocessor variables.
1442
1443cat >>confdefs.h <<_ACEOF
1444#define PACKAGE_NAME "$PACKAGE_NAME"
1445_ACEOF
1446
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_VERSION "$PACKAGE_VERSION"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_STRING "$PACKAGE_STRING"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1465_ACEOF
1466
1467
1468# Let the site file select an alternate cache file if it wants to.
1469# Prefer explicitly selected file to automatically selected ones.
1470if test -z "$CONFIG_SITE"; then
1471  if test "x$prefix" != xNONE; then
1472    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1473  else
1474    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1475  fi
1476fi
1477for ac_site_file in $CONFIG_SITE; do
1478  if test -r "$ac_site_file"; then
1479    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1480echo "$as_me: loading site script $ac_site_file" >&6;}
1481    sed 's/^/| /' "$ac_site_file" >&5
1482    . "$ac_site_file"
1483  fi
1484done
1485
1486if test -r "$cache_file"; then
1487  # Some versions of bash will fail to source /dev/null (special
1488  # files actually), so we avoid doing that.
1489  if test -f "$cache_file"; then
1490    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1491echo "$as_me: loading cache $cache_file" >&6;}
1492    case $cache_file in
1493      [\\/]* | ?:[\\/]* ) . $cache_file;;
1494      *)                      . ./$cache_file;;
1495    esac
1496  fi
1497else
1498  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1499echo "$as_me: creating cache $cache_file" >&6;}
1500  >$cache_file
1501fi
1502
1503# Check that the precious variables saved in the cache have kept the same
1504# value.
1505ac_cache_corrupted=false
1506for ac_var in `(set) 2>&1 |
1507               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1508  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1509  eval ac_new_set=\$ac_env_${ac_var}_set
1510  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1511  eval ac_new_val="\$ac_env_${ac_var}_value"
1512  case $ac_old_set,$ac_new_set in
1513    set,)
1514      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1515echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1516      ac_cache_corrupted=: ;;
1517    ,set)
1518      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1519echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1520      ac_cache_corrupted=: ;;
1521    ,);;
1522    *)
1523      if test "x$ac_old_val" != "x$ac_new_val"; then
1524        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1525echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1526        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1527echo "$as_me:   former value:  $ac_old_val" >&2;}
1528        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1529echo "$as_me:   current value: $ac_new_val" >&2;}
1530        ac_cache_corrupted=:
1531      fi;;
1532  esac
1533  # Pass precious variables to config.status.
1534  if test "$ac_new_set" = set; then
1535    case $ac_new_val in
1536    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1537      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1538    *) ac_arg=$ac_var=$ac_new_val ;;
1539    esac
1540    case " $ac_configure_args " in
1541      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1542      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1543    esac
1544  fi
1545done
1546if $ac_cache_corrupted; then
1547  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1548echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1549  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1550echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1551   { (exit 1); exit 1; }; }
1552fi
1553
1554ac_ext=c
1555ac_cpp='$CPP $CPPFLAGS'
1556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1558ac_compiler_gnu=$ac_cv_c_compiler_gnu
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589# List one file in the package so that the configure script can test
1590# whether the package is actually there
1591
1592
1593# Where should everything be installed by default?  Here, we want it
1594# to be installed directly in 'bin', 'lib', 'include' subdirectories
1595# of the directory where configure is run.  The default would be
1596# /usr/local.
1597
1598
1599#############################################################################
1600#                         Standard build tool stuff                         #
1601#############################################################################
1602
1603# Get the system type
1604ac_aux_dir=
1605for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1606  if test -f $ac_dir/install-sh; then
1607    ac_aux_dir=$ac_dir
1608    ac_install_sh="$ac_aux_dir/install-sh -c"
1609    break
1610  elif test -f $ac_dir/install.sh; then
1611    ac_aux_dir=$ac_dir
1612    ac_install_sh="$ac_aux_dir/install.sh -c"
1613    break
1614  elif test -f $ac_dir/shtool; then
1615    ac_aux_dir=$ac_dir
1616    ac_install_sh="$ac_aux_dir/shtool install -c"
1617    break
1618  fi
1619done
1620if test -z "$ac_aux_dir"; then
1621  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1622echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1623   { (exit 1); exit 1; }; }
1624fi
1625ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1626ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1627ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1628
1629# Make sure we can run config.sub.
1630$ac_config_sub sun4 >/dev/null 2>&1 ||
1631  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1632echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1633   { (exit 1); exit 1; }; }
1634
1635echo "$as_me:$LINENO: checking build system type" >&5
1636echo $ECHO_N "checking build system type... $ECHO_C" >&6
1637if test "${ac_cv_build+set}" = set; then
1638  echo $ECHO_N "(cached) $ECHO_C" >&6
1639else
1640  ac_cv_build_alias=$build_alias
1641test -z "$ac_cv_build_alias" &&
1642  ac_cv_build_alias=`$ac_config_guess`
1643test -z "$ac_cv_build_alias" &&
1644  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1645echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1646   { (exit 1); exit 1; }; }
1647ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1648  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1649echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1650   { (exit 1); exit 1; }; }
1651
1652fi
1653echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1654echo "${ECHO_T}$ac_cv_build" >&6
1655build=$ac_cv_build
1656build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1657build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1658build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1659
1660
1661
1662# If this project depends on external projects, the Externals file in
1663# the source root directory contains definition of where to find those
1664# externals.  The following macro ensures that those externals are
1665# retrieved by svn if they are not there yet.
1666# Initialize the ADDLIBS variable
1667ADDLIBS="-lm $LIBS"
1668
1669
1670# Initialize the FADDLIBS variable (which is to be used with a fortran
1671# compiler and will not include FLIBS)
1672FADDLIBS="$LIBS"
1673
1674
1675# A useful makefile conditional that is always false
1676
1677
1678if false; then
1679  ALWAYS_FALSE_TRUE=
1680  ALWAYS_FALSE_FALSE='#'
1681else
1682  ALWAYS_FALSE_TRUE='#'
1683  ALWAYS_FALSE_FALSE=
1684fi
1685
1686
1687# We set the following variable so that we know later in AC_COIN_FINALIZE
1688# that we are in a project main directory
1689coin_projectdir=yes
1690
1691
1692# Check if user wants to produce debugging code
1693
1694echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1695echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1696
1697# Check whether --enable-debug or --disable-debug was given.
1698if test "${enable_debug+set}" = set; then
1699  enableval="$enable_debug"
1700  case "${enableval}" in
1701   yes) coin_debug_compile=true
1702        if test "${enable_shared+set}" = set; then :; else
1703          enable_shared=no
1704        fi
1705        ;;
1706   no)  coin_debug_compile=false
1707        ;;
1708   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1709echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1710   { (exit 1); exit 1; }; }
1711        ;;
1712esac
1713else
1714  coin_debug_compile=false
1715fi;
1716
1717 # m4_ifvaln([],
1718
1719if test $coin_debug_compile = true; then
1720  echo "$as_me:$LINENO: result: yes" >&5
1721echo "${ECHO_T}yes" >&6
1722else
1723  echo "$as_me:$LINENO: result: no" >&5
1724echo "${ECHO_T}no" >&6
1725fi
1726
1727 # m4_ifvaln([],
1728
1729
1730
1731# Get the name of the C++ compiler and appropriate compiler options
1732case $build in
1733  *-mingw*)
1734    if test "${LD+set}" = set; then :; else
1735      LD=link
1736    fi
1737    ;;
1738 esac
1739 case $enable_doscompile in
1740   msvc)
1741     if test "x${LD+set}" = xset; then :; else
1742       LD=link
1743     fi
1744     ;;
1745 esac
1746
1747
1748 # Check whether --enable-doscompile or --disable-doscompile was given.
1749if test "${enable_doscompile+set}" = set; then
1750  enableval="$enable_doscompile"
1751  if test "$enable_doscompile" != no; then
1752     case $build in
1753       *-cygwin* | *-mingw*) ;;
1754       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1755echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1756   { (exit 1); exit 1; }; } ;;
1757     esac
1758   fi
1759else
1760  enable_doscompile=no
1761fi;
1762 case "$enable_doscompile" in
1763   mingw)
1764     case $build in
1765       *-mingw*) enable_doscompile=no ;;
1766     esac
1767     ;;
1768   msvc|no) ;;
1769   yes) enable_doscompile=mingw ;;
1770   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1771                    Try configure --help=recursive." >&5
1772echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1773                    Try configure --help=recursive." >&2;}
1774   { (exit 1); exit 1; }; }
1775      ;;
1776  esac
1777  if test "$enable_doscompile" != no ; then
1778    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1779echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1780  fi
1781
1782
1783
1784
1785ac_ext=c
1786ac_cpp='$CPP $CPPFLAGS'
1787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1789ac_compiler_gnu=$ac_cv_c_compiler_gnu
1790
1791
1792# For consistency, we set the C compiler to the same value of the C++
1793# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1794if test x"$CXX" != x; then
1795  case "$CXX" in
1796    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1797      if test x"$CC" = x; then
1798        CC="$CXX"
1799        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1800echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1801      fi
1802      ;;
1803  esac
1804fi
1805
1806
1807
1808
1809
1810
1811coin_has_cc=yes
1812
1813save_cflags="$CFLAGS"
1814
1815# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1816# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1817# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1818# compiler. In this case, put cc after gcc.
1819
1820case $build in
1821  *-cygwin* | *-mingw*)
1822             if test "$enable_doscompile" = msvc ; then
1823               comps="icl cl"
1824             else
1825               comps="gcc cl"
1826             fi ;;
1827  *-*-solaris*)
1828             # Extract the first word of "cc", so it can be a program name with args.
1829set dummy cc; ac_word=$2
1830echo "$as_me:$LINENO: checking for $ac_word" >&5
1831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1833  echo $ECHO_N "(cached) $ECHO_C" >&6
1834else
1835  if test -n "$sol_cc_compiler"; then
1836  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1837else
1838  ac_prog_rejected=no
1839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840for as_dir in $PATH
1841do
1842  IFS=$as_save_IFS
1843  test -z "$as_dir" && as_dir=.
1844  for ac_exec_ext in '' $ac_executable_extensions; do
1845  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1847       ac_prog_rejected=yes
1848       continue
1849     fi
1850    ac_cv_prog_sol_cc_compiler="cc"
1851    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1852    break 2
1853  fi
1854done
1855done
1856
1857if test $ac_prog_rejected = yes; then
1858  # We found a bogon in the path, so make sure we never use it.
1859  set dummy $ac_cv_prog_sol_cc_compiler
1860  shift
1861  if test $# != 0; then
1862    # We chose a different compiler from the bogus one.
1863    # However, it has the same basename, so the bogon will be chosen
1864    # first if we set sol_cc_compiler to just the basename; use the full file name.
1865    shift
1866    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1867  fi
1868fi
1869fi
1870fi
1871sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1872if test -n "$sol_cc_compiler"; then
1873  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1874echo "${ECHO_T}$sol_cc_compiler" >&6
1875else
1876  echo "$as_me:$LINENO: result: no" >&5
1877echo "${ECHO_T}no" >&6
1878fi
1879
1880             if test "$sol_cc_compiler" = "cc" ; then
1881               comps="cc xlc gcc pgcc icc"
1882             else
1883               comps="xlc gcc pgcc icc cc"
1884             fi
1885             ;;
1886  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1887  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1888esac
1889
1890# We delete the cached value, since the test might not have been
1891# performed with our choice of compilers earlier
1892$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1893# AC_MSG_NOTICE([C compiler candidates: $comps])
1894ac_ext=c
1895ac_cpp='$CPP $CPPFLAGS'
1896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1898ac_compiler_gnu=$ac_cv_c_compiler_gnu
1899if test -n "$ac_tool_prefix"; then
1900  for ac_prog in $comps
1901  do
1902    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1903set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1904echo "$as_me:$LINENO: checking for $ac_word" >&5
1905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1906if test "${ac_cv_prog_CC+set}" = set; then
1907  echo $ECHO_N "(cached) $ECHO_C" >&6
1908else
1909  if test -n "$CC"; then
1910  ac_cv_prog_CC="$CC" # Let the user override the test.
1911else
1912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1913for as_dir in $PATH
1914do
1915  IFS=$as_save_IFS
1916  test -z "$as_dir" && as_dir=.
1917  for ac_exec_ext in '' $ac_executable_extensions; do
1918  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1919    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921    break 2
1922  fi
1923done
1924done
1925
1926fi
1927fi
1928CC=$ac_cv_prog_CC
1929if test -n "$CC"; then
1930  echo "$as_me:$LINENO: result: $CC" >&5
1931echo "${ECHO_T}$CC" >&6
1932else
1933  echo "$as_me:$LINENO: result: no" >&5
1934echo "${ECHO_T}no" >&6
1935fi
1936
1937    test -n "$CC" && break
1938  done
1939fi
1940if test -z "$CC"; then
1941  ac_ct_CC=$CC
1942  for ac_prog in $comps
1943do
1944  # Extract the first word of "$ac_prog", so it can be a program name with args.
1945set dummy $ac_prog; ac_word=$2
1946echo "$as_me:$LINENO: checking for $ac_word" >&5
1947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949  echo $ECHO_N "(cached) $ECHO_C" >&6
1950else
1951  if test -n "$ac_ct_CC"; then
1952  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953else
1954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955for as_dir in $PATH
1956do
1957  IFS=$as_save_IFS
1958  test -z "$as_dir" && as_dir=.
1959  for ac_exec_ext in '' $ac_executable_extensions; do
1960  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961    ac_cv_prog_ac_ct_CC="$ac_prog"
1962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963    break 2
1964  fi
1965done
1966done
1967
1968fi
1969fi
1970ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971if test -n "$ac_ct_CC"; then
1972  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973echo "${ECHO_T}$ac_ct_CC" >&6
1974else
1975  echo "$as_me:$LINENO: result: no" >&5
1976echo "${ECHO_T}no" >&6
1977fi
1978
1979  test -n "$ac_ct_CC" && break
1980done
1981
1982  CC=$ac_ct_CC
1983fi
1984
1985
1986test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1987See \`config.log' for more details." >&5
1988echo "$as_me: error: no acceptable C compiler found in \$PATH
1989See \`config.log' for more details." >&2;}
1990   { (exit 1); exit 1; }; }
1991
1992# Provide some information about the compiler.
1993echo "$as_me:$LINENO:" \
1994     "checking for C compiler version" >&5
1995ac_compiler=`set X $ac_compile; echo $2`
1996{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1997  (eval $ac_compiler --version </dev/null >&5) 2>&5
1998  ac_status=$?
1999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000  (exit $ac_status); }
2001{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2002  (eval $ac_compiler -v </dev/null >&5) 2>&5
2003  ac_status=$?
2004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005  (exit $ac_status); }
2006{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2007  (eval $ac_compiler -V </dev/null >&5) 2>&5
2008  ac_status=$?
2009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010  (exit $ac_status); }
2011
2012cat >conftest.$ac_ext <<_ACEOF
2013/* confdefs.h.  */
2014_ACEOF
2015cat confdefs.h >>conftest.$ac_ext
2016cat >>conftest.$ac_ext <<_ACEOF
2017/* end confdefs.h.  */
2018
2019int
2020main ()
2021{
2022
2023  ;
2024  return 0;
2025}
2026_ACEOF
2027ac_clean_files_save=$ac_clean_files
2028ac_clean_files="$ac_clean_files a.out a.exe b.out"
2029# Try to create an executable without -o first, disregard a.out.
2030# It will help us diagnose broken compilers, and finding out an intuition
2031# of exeext.
2032echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2033echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2034ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2035if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2036  (eval $ac_link_default) 2>&5
2037  ac_status=$?
2038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039  (exit $ac_status); }; then
2040  # Find the output, starting from the most likely.  This scheme is
2041# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2042# resort.
2043
2044# Be careful to initialize this variable, since it used to be cached.
2045# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2046ac_cv_exeext=
2047# b.out is created by i960 compilers.
2048for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2049do
2050  test -f "$ac_file" || continue
2051  case $ac_file in
2052    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2053        ;;
2054    conftest.$ac_ext )
2055        # This is the source file.
2056        ;;
2057    [ab].out )
2058        # We found the default executable, but exeext='' is most
2059        # certainly right.
2060        break;;
2061    *.* )
2062        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2063        # FIXME: I believe we export ac_cv_exeext for Libtool,
2064        # but it would be cool to find out if it's true.  Does anybody
2065        # maintain Libtool? --akim.
2066        export ac_cv_exeext
2067        break;;
2068    * )
2069        break;;
2070  esac
2071done
2072else
2073  echo "$as_me: failed program was:" >&5
2074sed 's/^/| /' conftest.$ac_ext >&5
2075
2076{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2077See \`config.log' for more details." >&5
2078echo "$as_me: error: C compiler cannot create executables
2079See \`config.log' for more details." >&2;}
2080   { (exit 77); exit 77; }; }
2081fi
2082
2083ac_exeext=$ac_cv_exeext
2084echo "$as_me:$LINENO: result: $ac_file" >&5
2085echo "${ECHO_T}$ac_file" >&6
2086
2087# Check the compiler produces executables we can run.  If not, either
2088# the compiler is broken, or we cross compile.
2089echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2090echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2091# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2092# If not cross compiling, check that we can run a simple program.
2093if test "$cross_compiling" != yes; then
2094  if { ac_try='./$ac_file'
2095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096  (eval $ac_try) 2>&5
2097  ac_status=$?
2098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099  (exit $ac_status); }; }; then
2100    cross_compiling=no
2101  else
2102    if test "$cross_compiling" = maybe; then
2103        cross_compiling=yes
2104    else
2105        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2106If you meant to cross compile, use \`--host'.
2107See \`config.log' for more details." >&5
2108echo "$as_me: error: cannot run C compiled programs.
2109If you meant to cross compile, use \`--host'.
2110See \`config.log' for more details." >&2;}
2111   { (exit 1); exit 1; }; }
2112    fi
2113  fi
2114fi
2115echo "$as_me:$LINENO: result: yes" >&5
2116echo "${ECHO_T}yes" >&6
2117
2118rm -f a.out a.exe conftest$ac_cv_exeext b.out
2119ac_clean_files=$ac_clean_files_save
2120# Check the compiler produces executables we can run.  If not, either
2121# the compiler is broken, or we cross compile.
2122echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2123echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2124echo "$as_me:$LINENO: result: $cross_compiling" >&5
2125echo "${ECHO_T}$cross_compiling" >&6
2126
2127echo "$as_me:$LINENO: checking for suffix of executables" >&5
2128echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2130  (eval $ac_link) 2>&5
2131  ac_status=$?
2132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133  (exit $ac_status); }; then
2134  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2135# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2136# work properly (i.e., refer to `conftest.exe'), while it won't with
2137# `rm'.
2138for ac_file in conftest.exe conftest conftest.*; do
2139  test -f "$ac_file" || continue
2140  case $ac_file in
2141    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2142    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2143          export ac_cv_exeext
2144          break;;
2145    * ) break;;
2146  esac
2147done
2148else
2149  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2150See \`config.log' for more details." >&5
2151echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2152See \`config.log' for more details." >&2;}
2153   { (exit 1); exit 1; }; }
2154fi
2155
2156rm -f conftest$ac_cv_exeext
2157echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2158echo "${ECHO_T}$ac_cv_exeext" >&6
2159
2160rm -f conftest.$ac_ext
2161EXEEXT=$ac_cv_exeext
2162ac_exeext=$EXEEXT
2163echo "$as_me:$LINENO: checking for suffix of object files" >&5
2164echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2165if test "${ac_cv_objext+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
2179  ;
2180  return 0;
2181}
2182_ACEOF
2183rm -f conftest.o conftest.obj
2184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2185  (eval $ac_compile) 2>&5
2186  ac_status=$?
2187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188  (exit $ac_status); }; then
2189  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2190  case $ac_file in
2191    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2192    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2193       break;;
2194  esac
2195done
2196else
2197  echo "$as_me: failed program was:" >&5
2198sed 's/^/| /' conftest.$ac_ext >&5
2199
2200{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2201See \`config.log' for more details." >&5
2202echo "$as_me: error: cannot compute suffix of object files: cannot compile
2203See \`config.log' for more details." >&2;}
2204   { (exit 1); exit 1; }; }
2205fi
2206
2207rm -f conftest.$ac_cv_objext conftest.$ac_ext
2208fi
2209echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2210echo "${ECHO_T}$ac_cv_objext" >&6
2211OBJEXT=$ac_cv_objext
2212ac_objext=$OBJEXT
2213echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2214echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2215if test "${ac_cv_c_compiler_gnu+set}" = set; then
2216  echo $ECHO_N "(cached) $ECHO_C" >&6
2217else
2218  cat >conftest.$ac_ext <<_ACEOF
2219/* confdefs.h.  */
2220_ACEOF
2221cat confdefs.h >>conftest.$ac_ext
2222cat >>conftest.$ac_ext <<_ACEOF
2223/* end confdefs.h.  */
2224
2225int
2226main ()
2227{
2228#ifndef __GNUC__
2229       choke me
2230#endif
2231
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236rm -f conftest.$ac_objext
2237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2238  (eval $ac_compile) 2>conftest.er1
2239  ac_status=$?
2240  grep -v '^ *+' conftest.er1 >conftest.err
2241  rm -f conftest.er1
2242  cat conftest.err >&5
2243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244  (exit $ac_status); } &&
2245         { ac_try='test -z "$ac_c_werror_flag"
2246                         || test ! -s conftest.err'
2247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248  (eval $ac_try) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; } &&
2252         { ac_try='test -s conftest.$ac_objext'
2253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2254  (eval $ac_try) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); }; }; then
2258  ac_compiler_gnu=yes
2259else
2260  echo "$as_me: failed program was:" >&5
2261sed 's/^/| /' conftest.$ac_ext >&5
2262
2263ac_compiler_gnu=no
2264fi
2265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2266ac_cv_c_compiler_gnu=$ac_compiler_gnu
2267
2268fi
2269echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2270echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2271GCC=`test $ac_compiler_gnu = yes && echo yes`
2272ac_test_CFLAGS=${CFLAGS+set}
2273ac_save_CFLAGS=$CFLAGS
2274CFLAGS="-g"
2275echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2276echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2277if test "${ac_cv_prog_cc_g+set}" = set; then
2278  echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280  cat >conftest.$ac_ext <<_ACEOF
2281/* confdefs.h.  */
2282_ACEOF
2283cat confdefs.h >>conftest.$ac_ext
2284cat >>conftest.$ac_ext <<_ACEOF
2285/* end confdefs.h.  */
2286
2287int
2288main ()
2289{
2290
2291  ;
2292  return 0;
2293}
2294_ACEOF
2295rm -f conftest.$ac_objext
2296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2297  (eval $ac_compile) 2>conftest.er1
2298  ac_status=$?
2299  grep -v '^ *+' conftest.er1 >conftest.err
2300  rm -f conftest.er1
2301  cat conftest.err >&5
2302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303  (exit $ac_status); } &&
2304         { ac_try='test -z "$ac_c_werror_flag"
2305                         || test ! -s conftest.err'
2306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2307  (eval $ac_try) 2>&5
2308  ac_status=$?
2309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310  (exit $ac_status); }; } &&
2311         { ac_try='test -s conftest.$ac_objext'
2312  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2313  (eval $ac_try) 2>&5
2314  ac_status=$?
2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316  (exit $ac_status); }; }; then
2317  ac_cv_prog_cc_g=yes
2318else
2319  echo "$as_me: failed program was:" >&5
2320sed 's/^/| /' conftest.$ac_ext >&5
2321
2322ac_cv_prog_cc_g=no
2323fi
2324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2325fi
2326echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2327echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2328if test "$ac_test_CFLAGS" = set; then
2329  CFLAGS=$ac_save_CFLAGS
2330elif test $ac_cv_prog_cc_g = yes; then
2331  if test "$GCC" = yes; then
2332    CFLAGS="-g -O2"
2333  else
2334    CFLAGS="-g"
2335  fi
2336else
2337  if test "$GCC" = yes; then
2338    CFLAGS="-O2"
2339  else
2340    CFLAGS=
2341  fi
2342fi
2343echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2344echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2345if test "${ac_cv_prog_cc_stdc+set}" = set; then
2346  echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348  ac_cv_prog_cc_stdc=no
2349ac_save_CC=$CC
2350cat >conftest.$ac_ext <<_ACEOF
2351/* confdefs.h.  */
2352_ACEOF
2353cat confdefs.h >>conftest.$ac_ext
2354cat >>conftest.$ac_ext <<_ACEOF
2355/* end confdefs.h.  */
2356#include <stdarg.h>
2357#include <stdio.h>
2358#include <sys/types.h>
2359#include <sys/stat.h>
2360/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2361struct buf { int x; };
2362FILE * (*rcsopen) (struct buf *, struct stat *, int);
2363static char *e (p, i)
2364     char **p;
2365     int i;
2366{
2367  return p[i];
2368}
2369static char *f (char * (*g) (char **, int), char **p, ...)
2370{
2371  char *s;
2372  va_list v;
2373  va_start (v,p);
2374  s = g (p, va_arg (v,int));
2375  va_end (v);
2376  return s;
2377}
2378
2379/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2380   function prototypes and stuff, but not '\xHH' hex character constants.
2381   These don't provoke an error unfortunately, instead are silently treated
2382   as 'x'.  The following induces an error, until -std1 is added to get
2383   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2384   array size at least.  It's necessary to write '\x00'==0 to get something
2385   that's true only with -std1.  */
2386int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2387
2388int test (int i, double x);
2389struct s1 {int (*f) (int a);};
2390struct s2 {int (*f) (double a);};
2391int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2392int argc;
2393char **argv;
2394int
2395main ()
2396{
2397return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2398  ;
2399  return 0;
2400}
2401_ACEOF
2402# Don't try gcc -ansi; that turns off useful extensions and
2403# breaks some systems' header files.
2404# AIX                   -qlanglvl=ansi
2405# Ultrix and OSF/1      -std1
2406# HP-UX 10.20 and later -Ae
2407# HP-UX older versions  -Aa -D_HPUX_SOURCE
2408# SVR4                  -Xc -D__EXTENSIONS__
2409for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2410do
2411  CC="$ac_save_CC $ac_arg"
2412  rm -f conftest.$ac_objext
2413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414  (eval $ac_compile) 2>conftest.er1
2415  ac_status=$?
2416  grep -v '^ *+' conftest.er1 >conftest.err
2417  rm -f conftest.er1
2418  cat conftest.err >&5
2419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420  (exit $ac_status); } &&
2421         { ac_try='test -z "$ac_c_werror_flag"
2422                         || test ! -s conftest.err'
2423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424  (eval $ac_try) 2>&5
2425  ac_status=$?
2426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427  (exit $ac_status); }; } &&
2428         { ac_try='test -s conftest.$ac_objext'
2429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430  (eval $ac_try) 2>&5
2431  ac_status=$?
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); }; }; then
2434  ac_cv_prog_cc_stdc=$ac_arg
2435break
2436else
2437  echo "$as_me: failed program was:" >&5
2438sed 's/^/| /' conftest.$ac_ext >&5
2439
2440fi
2441rm -f conftest.err conftest.$ac_objext
2442done
2443rm -f conftest.$ac_ext conftest.$ac_objext
2444CC=$ac_save_CC
2445
2446fi
2447
2448case "x$ac_cv_prog_cc_stdc" in
2449  x|xno)
2450    echo "$as_me:$LINENO: result: none needed" >&5
2451echo "${ECHO_T}none needed" >&6 ;;
2452  *)
2453    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2454echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2455    CC="$CC $ac_cv_prog_cc_stdc" ;;
2456esac
2457
2458# Some people use a C++ compiler to compile C.  Since we use `exit',
2459# in C++ we need to declare it.  In case someone uses the same compiler
2460# for both compiling C and C++ we need to have the C++ compiler decide
2461# the declaration of exit, since it's the most demanding environment.
2462cat >conftest.$ac_ext <<_ACEOF
2463#ifndef __cplusplus
2464  choke me
2465#endif
2466_ACEOF
2467rm -f conftest.$ac_objext
2468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469  (eval $ac_compile) 2>conftest.er1
2470  ac_status=$?
2471  grep -v '^ *+' conftest.er1 >conftest.err
2472  rm -f conftest.er1
2473  cat conftest.err >&5
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); } &&
2476         { ac_try='test -z "$ac_c_werror_flag"
2477                         || test ! -s conftest.err'
2478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479  (eval $ac_try) 2>&5
2480  ac_status=$?
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); }; } &&
2483         { ac_try='test -s conftest.$ac_objext'
2484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485  (eval $ac_try) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; }; then
2489  for ac_declaration in \
2490   '' \
2491   'extern "C" void std::exit (int) throw (); using std::exit;' \
2492   'extern "C" void std::exit (int); using std::exit;' \
2493   'extern "C" void exit (int) throw ();' \
2494   'extern "C" void exit (int);' \
2495   'void exit (int);'
2496do
2497  cat >conftest.$ac_ext <<_ACEOF
2498/* confdefs.h.  */
2499_ACEOF
2500cat confdefs.h >>conftest.$ac_ext
2501cat >>conftest.$ac_ext <<_ACEOF
2502/* end confdefs.h.  */
2503$ac_declaration
2504#include <stdlib.h>
2505int
2506main ()
2507{
2508exit (42);
2509  ;
2510  return 0;
2511}
2512_ACEOF
2513rm -f conftest.$ac_objext
2514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2515  (eval $ac_compile) 2>conftest.er1
2516  ac_status=$?
2517  grep -v '^ *+' conftest.er1 >conftest.err
2518  rm -f conftest.er1
2519  cat conftest.err >&5
2520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521  (exit $ac_status); } &&
2522         { ac_try='test -z "$ac_c_werror_flag"
2523                         || test ! -s conftest.err'
2524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525  (eval $ac_try) 2>&5
2526  ac_status=$?
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); }; } &&
2529         { ac_try='test -s conftest.$ac_objext'
2530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531  (eval $ac_try) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; }; then
2535  :
2536else
2537  echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540continue
2541fi
2542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2543  cat >conftest.$ac_ext <<_ACEOF
2544/* confdefs.h.  */
2545_ACEOF
2546cat confdefs.h >>conftest.$ac_ext
2547cat >>conftest.$ac_ext <<_ACEOF
2548/* end confdefs.h.  */
2549$ac_declaration
2550int
2551main ()
2552{
2553exit (42);
2554  ;
2555  return 0;
2556}
2557_ACEOF
2558rm -f conftest.$ac_objext
2559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2560  (eval $ac_compile) 2>conftest.er1
2561  ac_status=$?
2562  grep -v '^ *+' conftest.er1 >conftest.err
2563  rm -f conftest.er1
2564  cat conftest.err >&5
2565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566  (exit $ac_status); } &&
2567         { ac_try='test -z "$ac_c_werror_flag"
2568                         || test ! -s conftest.err'
2569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570  (eval $ac_try) 2>&5
2571  ac_status=$?
2572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573  (exit $ac_status); }; } &&
2574         { ac_try='test -s conftest.$ac_objext'
2575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576  (eval $ac_try) 2>&5
2577  ac_status=$?
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); }; }; then
2580  break
2581else
2582  echo "$as_me: failed program was:" >&5
2583sed 's/^/| /' conftest.$ac_ext >&5
2584
2585fi
2586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2587done
2588rm -f conftest*
2589if test -n "$ac_declaration"; then
2590  echo '#ifdef __cplusplus' >>confdefs.h
2591  echo $ac_declaration      >>confdefs.h
2592  echo '#endif'             >>confdefs.h
2593fi
2594
2595else
2596  echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599fi
2600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2601ac_ext=c
2602ac_cpp='$CPP $CPPFLAGS'
2603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2605ac_compiler_gnu=$ac_cv_c_compiler_gnu
2606
2607if test -z "$CC" ; then
2608  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2609echo "$as_me: error: Failed to find a C compiler!" >&2;}
2610   { (exit 1); exit 1; }; }
2611fi
2612# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2613case "$CC" in
2614  cl* | */cl* | CL* | */CL* )
2615    if test "$ac_cv_prog_cc_g" = yes ; then
2616      ac_cv_prog_cc_g=no
2617      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2618echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2619    fi ;;
2620esac
2621CFLAGS="$save_cflags"
2622
2623# Check if a project specific CFLAGS variable has been set
2624if test x$COIN_PRJCT != x; then
2625  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2626  if test x$coin_tmp = xset; then
2627    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2628  fi
2629fi
2630
2631if test x"$CFLAGS" = x; then
2632
2633  coin_add_cflags=
2634  coin_opt_cflags=
2635  coin_dbg_cflags=
2636  coin_warn_cflags=
2637
2638  if test "$GCC" = "yes"; then
2639    case "$CC" in
2640      icc* | */icc*)
2641        ;;
2642      *)
2643        coin_opt_cflags="-O3 -fomit-frame-pointer"
2644        coin_add_cflags="-pipe"
2645        coin_dbg_cflags="-g"
2646        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2647        case $enable_doscompile in
2648          mingw)
2649            CFLAGS="-mno-cygwin"
2650            cat >conftest.$ac_ext <<_ACEOF
2651/* confdefs.h.  */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h.  */
2656
2657int
2658main ()
2659{
2660int i=0; i++;
2661  ;
2662  return 0;
2663}
2664_ACEOF
2665rm -f conftest.$ac_objext conftest$ac_exeext
2666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2667  (eval $ac_link) 2>conftest.er1
2668  ac_status=$?
2669  grep -v '^ *+' conftest.er1 >conftest.err
2670  rm -f conftest.er1
2671  cat conftest.err >&5
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); } &&
2674         { ac_try='test -z "$ac_c_werror_flag"
2675                         || test ! -s conftest.err'
2676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677  (eval $ac_try) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; } &&
2681         { ac_try='test -s conftest$ac_exeext'
2682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683  (eval $ac_try) 2>&5
2684  ac_status=$?
2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686  (exit $ac_status); }; }; then
2687  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2688else
2689  echo "$as_me: failed program was:" >&5
2690sed 's/^/| /' conftest.$ac_ext >&5
2691
2692fi
2693rm -f conftest.err conftest.$ac_objext \
2694      conftest$ac_exeext conftest.$ac_ext
2695            CFLAGS=
2696          ;;
2697        esac
2698    esac
2699  fi
2700  if test -z "$coin_opt_cflags"; then
2701    case $build in
2702      *-cygwin* | *-mingw*)
2703        case "$CC" in
2704          cl* | */cl* | CL* | */CL*)
2705            coin_opt_cflags='-MT -O2'
2706            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2707            coin_dbg_cflags='-MTd'
2708            ;;
2709          icl* | */icl* | ICL* | */ICL*)
2710            coin_opt_cflags='-MT -Ox'
2711            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2712            coin_dbg_cflags='-MTd -debug'
2713            ;;
2714        esac
2715        ;;
2716      *-linux-*)
2717        case "$CC" in
2718          icc* | */icc*)
2719            coin_opt_cflags="-O3 -ip"
2720            coin_add_cflags=""
2721            coin_dbg_cflags="-g"
2722            # Check if -i_dynamic is necessary (for new glibc library)
2723            CFLAGS=
2724            cat >conftest.$ac_ext <<_ACEOF
2725/* confdefs.h.  */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h.  */
2730
2731int
2732main ()
2733{
2734int i=0; i++;
2735  ;
2736  return 0;
2737}
2738_ACEOF
2739rm -f conftest.$ac_objext conftest$ac_exeext
2740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2741  (eval $ac_link) 2>conftest.er1
2742  ac_status=$?
2743  grep -v '^ *+' conftest.er1 >conftest.err
2744  rm -f conftest.er1
2745  cat conftest.err >&5
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); } &&
2748         { ac_try='test -z "$ac_c_werror_flag"
2749                         || test ! -s conftest.err'
2750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751  (eval $ac_try) 2>&5
2752  ac_status=$?
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); }; } &&
2755         { ac_try='test -s conftest$ac_exeext'
2756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757  (eval $ac_try) 2>&5
2758  ac_status=$?
2759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760  (exit $ac_status); }; }; then
2761  :
2762else
2763  echo "$as_me: failed program was:" >&5
2764sed 's/^/| /' conftest.$ac_ext >&5
2765
2766coin_add_cflags="-i_dynamic $coin_add_cflags"
2767fi
2768rm -f conftest.err conftest.$ac_objext \
2769      conftest$ac_exeext conftest.$ac_ext
2770            ;;
2771          pgcc* | */pgcc*)
2772            coin_opt_cflags="-fast"
2773            coin_add_cflags="-Kieee -pc 64"
2774            coin_dbg_cflags="-g"
2775            ;;
2776        esac
2777        ;;
2778      *-ibm-*)
2779        case "$CC" in
2780          xlc* | */xlc* | mpxlc* | */mpxlc*)
2781            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2782            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2783            coin_dbg_cflags="-g"
2784          ;;
2785        esac
2786        ;;
2787      *-hp-*)
2788        coin_opt_cflags="-O"
2789        coin_add_cflags="-Ae"
2790        coin_dbg_cflags="-g"
2791        ;;
2792      *-*-solaris*)
2793        coin_opt_cflags="-xO4"
2794        coin_dbg_cflags="-g"
2795        ;;
2796      *-sgi-*)
2797        coin_opt_cflags="-O -OPT:Olimit=0"
2798        coin_dbg_cflags="-g"
2799        ;;
2800    esac
2801  fi
2802
2803  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2804    coin_dbg_cflags="-g"
2805  fi
2806
2807  if test -z "$coin_opt_cflags"; then
2808    # Try if -O option works if nothing else is set
2809    CFLAGS="-O"
2810    cat >conftest.$ac_ext <<_ACEOF
2811/* confdefs.h.  */
2812_ACEOF
2813cat confdefs.h >>conftest.$ac_ext
2814cat >>conftest.$ac_ext <<_ACEOF
2815/* end confdefs.h.  */
2816
2817int
2818main ()
2819{
2820int i=0; i++;
2821  ;
2822  return 0;
2823}
2824_ACEOF
2825rm -f conftest.$ac_objext conftest$ac_exeext
2826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2827  (eval $ac_link) 2>conftest.er1
2828  ac_status=$?
2829  grep -v '^ *+' conftest.er1 >conftest.err
2830  rm -f conftest.er1
2831  cat conftest.err >&5
2832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833  (exit $ac_status); } &&
2834         { ac_try='test -z "$ac_c_werror_flag"
2835                         || test ! -s conftest.err'
2836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2837  (eval $ac_try) 2>&5
2838  ac_status=$?
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); }; } &&
2841         { ac_try='test -s conftest$ac_exeext'
2842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843  (eval $ac_try) 2>&5
2844  ac_status=$?
2845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846  (exit $ac_status); }; }; then
2847  coin_opt_cflags="-O"
2848else
2849  echo "$as_me: failed program was:" >&5
2850sed 's/^/| /' conftest.$ac_ext >&5
2851
2852fi
2853rm -f conftest.err conftest.$ac_objext \
2854      conftest$ac_exeext conftest.$ac_ext
2855  fi
2856
2857  # if PM doesn't want the warning messages, take them out
2858  if test x"$coin_skip_warn_cflags" = xyes; then
2859    coin_warn_cflags=
2860  fi
2861
2862  if test x${DBG_CFLAGS+set} != xset; then
2863    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2864  fi
2865  if test x${OPT_CFLAGS+set} != xset; then
2866    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2867  fi
2868
2869  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2870  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2871
2872  if test "$coin_debug_compile" = "true"; then
2873    CFLAGS="$DBG_CFLAGS"
2874  else
2875    CFLAGS="$OPT_CFLAGS"
2876  fi
2877else
2878  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2879  if test x${DBG_CFLAGS+set} != xset; then
2880    DBG_CFLAGS="$CFLAGS"
2881  fi
2882  if test x${OPT_CFLAGS+set} != xset; then
2883    OPT_CFLAGS="$CFLAGS"
2884  fi
2885fi
2886
2887# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2888
2889case "$CFLAGS" in
2890  *-mno-cygwin*)
2891    if test x${CPPFLAGS+set} != xset ; then
2892      CPPFLAGS="-mno-cygwin"
2893    else
2894      case "$CPPFLAGS" in
2895        *-mno-cygwin*)
2896          ;;
2897        *)
2898          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2899          ;;
2900      esac
2901    fi ;;
2902esac
2903
2904# Try if CFLAGS works
2905save_CFLAGS="$CFLAGS"
2906cat >conftest.$ac_ext <<_ACEOF
2907/* confdefs.h.  */
2908_ACEOF
2909cat confdefs.h >>conftest.$ac_ext
2910cat >>conftest.$ac_ext <<_ACEOF
2911/* end confdefs.h.  */
2912
2913int
2914main ()
2915{
2916int i=0; i++;
2917  ;
2918  return 0;
2919}
2920_ACEOF
2921rm -f conftest.$ac_objext conftest$ac_exeext
2922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2923  (eval $ac_link) 2>conftest.er1
2924  ac_status=$?
2925  grep -v '^ *+' conftest.er1 >conftest.err
2926  rm -f conftest.er1
2927  cat conftest.err >&5
2928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929  (exit $ac_status); } &&
2930         { ac_try='test -z "$ac_c_werror_flag"
2931                         || test ! -s conftest.err'
2932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2933  (eval $ac_try) 2>&5
2934  ac_status=$?
2935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936  (exit $ac_status); }; } &&
2937         { ac_try='test -s conftest$ac_exeext'
2938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939  (eval $ac_try) 2>&5
2940  ac_status=$?
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); }; }; then
2943  :
2944else
2945  echo "$as_me: failed program was:" >&5
2946sed 's/^/| /' conftest.$ac_ext >&5
2947
2948CFLAGS=
2949fi
2950rm -f conftest.err conftest.$ac_objext \
2951      conftest$ac_exeext conftest.$ac_ext
2952if test -z "$CFLAGS"; then
2953  { 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
2954echo "$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;}
2955  CFLAGS='-O'
2956  cat >conftest.$ac_ext <<_ACEOF
2957/* confdefs.h.  */
2958_ACEOF
2959cat confdefs.h >>conftest.$ac_ext
2960cat >>conftest.$ac_ext <<_ACEOF
2961/* end confdefs.h.  */
2962
2963int
2964main ()
2965{
2966int i=0; i++;
2967  ;
2968  return 0;
2969}
2970_ACEOF
2971rm -f conftest.$ac_objext conftest$ac_exeext
2972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2973  (eval $ac_link) 2>conftest.er1
2974  ac_status=$?
2975  grep -v '^ *+' conftest.er1 >conftest.err
2976  rm -f conftest.er1
2977  cat conftest.err >&5
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); } &&
2980         { ac_try='test -z "$ac_c_werror_flag"
2981                         || test ! -s conftest.err'
2982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983  (eval $ac_try) 2>&5
2984  ac_status=$?
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); }; } &&
2987         { ac_try='test -s conftest$ac_exeext'
2988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989  (eval $ac_try) 2>&5
2990  ac_status=$?
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); }; }; then
2993  :
2994else
2995  echo "$as_me: failed program was:" >&5
2996sed 's/^/| /' conftest.$ac_ext >&5
2997
2998CFLAGS=
2999fi
3000rm -f conftest.err conftest.$ac_objext \
3001      conftest$ac_exeext conftest.$ac_ext
3002  if test -z "$CFLAGS"; then
3003    { 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
3004echo "$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;}
3005  fi
3006fi
3007
3008{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3009echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3010
3011
3012if test x"$MPICC" = x; then :; else
3013  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3014echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3015  CC="$MPICC"
3016fi
3017
3018# Correct ADDLIBS initialization if we are using the MS compiler
3019case "$CC" in
3020  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3021    ADDLIBS=
3022    case $build in
3023  *-mingw*)
3024    if test "${LD+set}" = set; then :; else
3025      LD=link
3026    fi
3027    ;;
3028 esac
3029 case $enable_doscompile in
3030   msvc)
3031     if test "x${LD+set}" = xset; then :; else
3032       LD=link
3033     fi
3034     ;;
3035 esac
3036
3037    ;;
3038esac
3039
3040ac_ext=c
3041ac_cpp='$CPP $CPPFLAGS'
3042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045
3046
3047
3048 #Let's try if that overcomes configuration problem with VC++ 6.0
3049
3050ac_ext=cc
3051ac_cpp='$CXXCPP $CPPFLAGS'
3052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3055
3056
3057
3058
3059
3060
3061
3062coin_has_cxx=yes
3063
3064save_cxxflags="$CXXFLAGS"
3065# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3066case $build in
3067  *-cygwin* | *-mingw*)
3068             if test "$enable_doscompile" = msvc ; then
3069               comps="icl cl"
3070             else
3071               comps="g++ cl"
3072             fi ;;
3073  *-*-solaris*)
3074             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3075  *-darwin*) comps="g++ c++ CC" ;;
3076          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3077esac
3078
3079# We delete the cached value, since the test might not have been
3080# performed with our choice of compilers earlier
3081$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3082# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3083ac_ext=cc
3084ac_cpp='$CXXCPP $CPPFLAGS'
3085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3088if test -n "$ac_tool_prefix"; then
3089  for ac_prog in $CCC $comps
3090  do
3091    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3092set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3093echo "$as_me:$LINENO: checking for $ac_word" >&5
3094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3095if test "${ac_cv_prog_CXX+set}" = set; then
3096  echo $ECHO_N "(cached) $ECHO_C" >&6
3097else
3098  if test -n "$CXX"; then
3099  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3100else
3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104  IFS=$as_save_IFS
3105  test -z "$as_dir" && as_dir=.
3106  for ac_exec_ext in '' $ac_executable_extensions; do
3107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110    break 2
3111  fi
3112done
3113done
3114
3115fi
3116fi
3117CXX=$ac_cv_prog_CXX
3118if test -n "$CXX"; then
3119  echo "$as_me:$LINENO: result: $CXX" >&5
3120echo "${ECHO_T}$CXX" >&6
3121else
3122  echo "$as_me:$LINENO: result: no" >&5
3123echo "${ECHO_T}no" >&6
3124fi
3125
3126    test -n "$CXX" && break
3127  done
3128fi
3129if test -z "$CXX"; then
3130  ac_ct_CXX=$CXX
3131  for ac_prog in $CCC $comps
3132do
3133  # Extract the first word of "$ac_prog", so it can be a program name with args.
3134set dummy $ac_prog; ac_word=$2
3135echo "$as_me:$LINENO: checking for $ac_word" >&5
3136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3138  echo $ECHO_N "(cached) $ECHO_C" >&6
3139else
3140  if test -n "$ac_ct_CXX"; then
3141  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3142else
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146  IFS=$as_save_IFS
3147  test -z "$as_dir" && as_dir=.
3148  for ac_exec_ext in '' $ac_executable_extensions; do
3149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150    ac_cv_prog_ac_ct_CXX="$ac_prog"
3151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152    break 2
3153  fi
3154done
3155done
3156
3157fi
3158fi
3159ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3160if test -n "$ac_ct_CXX"; then
3161  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3162echo "${ECHO_T}$ac_ct_CXX" >&6
3163else
3164  echo "$as_me:$LINENO: result: no" >&5
3165echo "${ECHO_T}no" >&6
3166fi
3167
3168  test -n "$ac_ct_CXX" && break
3169done
3170test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3171
3172  CXX=$ac_ct_CXX
3173fi
3174
3175
3176# Provide some information about the compiler.
3177echo "$as_me:$LINENO:" \
3178     "checking for C++ compiler version" >&5
3179ac_compiler=`set X $ac_compile; echo $2`
3180{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3181  (eval $ac_compiler --version </dev/null >&5) 2>&5
3182  ac_status=$?
3183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184  (exit $ac_status); }
3185{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3186  (eval $ac_compiler -v </dev/null >&5) 2>&5
3187  ac_status=$?
3188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); }
3190{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3191  (eval $ac_compiler -V </dev/null >&5) 2>&5
3192  ac_status=$?
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); }
3195
3196echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3197echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3198if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3199  echo $ECHO_N "(cached) $ECHO_C" >&6
3200else
3201  cat >conftest.$ac_ext <<_ACEOF
3202/* confdefs.h.  */
3203_ACEOF
3204cat confdefs.h >>conftest.$ac_ext
3205cat >>conftest.$ac_ext <<_ACEOF
3206/* end confdefs.h.  */
3207
3208int
3209main ()
3210{
3211#ifndef __GNUC__
3212       choke me
3213#endif
3214
3215  ;
3216  return 0;
3217}
3218_ACEOF
3219rm -f conftest.$ac_objext
3220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3221  (eval $ac_compile) 2>conftest.er1
3222  ac_status=$?
3223  grep -v '^ *+' conftest.er1 >conftest.err
3224  rm -f conftest.er1
3225  cat conftest.err >&5
3226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227  (exit $ac_status); } &&
3228         { ac_try='test -z "$ac_cxx_werror_flag"
3229                         || test ! -s conftest.err'
3230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231  (eval $ac_try) 2>&5
3232  ac_status=$?
3233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); }; } &&
3235         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3241  ac_compiler_gnu=yes
3242else
3243  echo "$as_me: failed program was:" >&5
3244sed 's/^/| /' conftest.$ac_ext >&5
3245
3246ac_compiler_gnu=no
3247fi
3248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3249ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3250
3251fi
3252echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3253echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3254GXX=`test $ac_compiler_gnu = yes && echo yes`
3255ac_test_CXXFLAGS=${CXXFLAGS+set}
3256ac_save_CXXFLAGS=$CXXFLAGS
3257CXXFLAGS="-g"
3258echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3259echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3260if test "${ac_cv_prog_cxx_g+set}" = set; then
3261  echo $ECHO_N "(cached) $ECHO_C" >&6
3262else
3263  cat >conftest.$ac_ext <<_ACEOF
3264/* confdefs.h.  */
3265_ACEOF
3266cat confdefs.h >>conftest.$ac_ext
3267cat >>conftest.$ac_ext <<_ACEOF
3268/* end confdefs.h.  */
3269
3270int
3271main ()
3272{
3273
3274  ;
3275  return 0;
3276}
3277_ACEOF
3278rm -f conftest.$ac_objext
3279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3280  (eval $ac_compile) 2>conftest.er1
3281  ac_status=$?
3282  grep -v '^ *+' conftest.er1 >conftest.err
3283  rm -f conftest.er1
3284  cat conftest.err >&5
3285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286  (exit $ac_status); } &&
3287         { ac_try='test -z "$ac_cxx_werror_flag"
3288                         || test ! -s conftest.err'
3289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290  (eval $ac_try) 2>&5
3291  ac_status=$?
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); }; } &&
3294         { ac_try='test -s conftest.$ac_objext'
3295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296  (eval $ac_try) 2>&5
3297  ac_status=$?
3298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299  (exit $ac_status); }; }; then
3300  ac_cv_prog_cxx_g=yes
3301else
3302  echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305ac_cv_prog_cxx_g=no
3306fi
3307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3308fi
3309echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3310echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3311if test "$ac_test_CXXFLAGS" = set; then
3312  CXXFLAGS=$ac_save_CXXFLAGS
3313elif test $ac_cv_prog_cxx_g = yes; then
3314  if test "$GXX" = yes; then
3315    CXXFLAGS="-g -O2"
3316  else
3317    CXXFLAGS="-g"
3318  fi
3319else
3320  if test "$GXX" = yes; then
3321    CXXFLAGS="-O2"
3322  else
3323    CXXFLAGS=
3324  fi
3325fi
3326for ac_declaration in \
3327   '' \
3328   'extern "C" void std::exit (int) throw (); using std::exit;' \
3329   'extern "C" void std::exit (int); using std::exit;' \
3330   'extern "C" void exit (int) throw ();' \
3331   'extern "C" void exit (int);' \
3332   'void exit (int);'
3333do
3334  cat >conftest.$ac_ext <<_ACEOF
3335/* confdefs.h.  */
3336_ACEOF
3337cat confdefs.h >>conftest.$ac_ext
3338cat >>conftest.$ac_ext <<_ACEOF
3339/* end confdefs.h.  */
3340$ac_declaration
3341#include <stdlib.h>
3342int
3343main ()
3344{
3345exit (42);
3346  ;
3347  return 0;
3348}
3349_ACEOF
3350rm -f conftest.$ac_objext
3351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352  (eval $ac_compile) 2>conftest.er1
3353  ac_status=$?
3354  grep -v '^ *+' conftest.er1 >conftest.err
3355  rm -f conftest.er1
3356  cat conftest.err >&5
3357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358  (exit $ac_status); } &&
3359         { ac_try='test -z "$ac_cxx_werror_flag"
3360                         || test ! -s conftest.err'
3361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362  (eval $ac_try) 2>&5
3363  ac_status=$?
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); }; } &&
3366         { ac_try='test -s conftest.$ac_objext'
3367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368  (eval $ac_try) 2>&5
3369  ac_status=$?
3370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371  (exit $ac_status); }; }; then
3372  :
3373else
3374  echo "$as_me: failed program was:" >&5
3375sed 's/^/| /' conftest.$ac_ext >&5
3376
3377continue
3378fi
3379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3380  cat >conftest.$ac_ext <<_ACEOF
3381/* confdefs.h.  */
3382_ACEOF
3383cat confdefs.h >>conftest.$ac_ext
3384cat >>conftest.$ac_ext <<_ACEOF
3385/* end confdefs.h.  */
3386$ac_declaration
3387int
3388main ()
3389{
3390exit (42);
3391  ;
3392  return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397  (eval $ac_compile) 2>conftest.er1
3398  ac_status=$?
3399  grep -v '^ *+' conftest.er1 >conftest.err
3400  rm -f conftest.er1
3401  cat conftest.err >&5
3402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403  (exit $ac_status); } &&
3404         { ac_try='test -z "$ac_cxx_werror_flag"
3405                         || test ! -s conftest.err'
3406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407  (eval $ac_try) 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); }; } &&
3411         { ac_try='test -s conftest.$ac_objext'
3412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413  (eval $ac_try) 2>&5
3414  ac_status=$?
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); }; }; then
3417  break
3418else
3419  echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422fi
3423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424done
3425rm -f conftest*
3426if test -n "$ac_declaration"; then
3427  echo '#ifdef __cplusplus' >>confdefs.h
3428  echo $ac_declaration      >>confdefs.h
3429  echo '#endif'             >>confdefs.h
3430fi
3431
3432ac_ext=cc
3433ac_cpp='$CXXCPP $CPPFLAGS'
3434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3437
3438if test -z "$CXX" ; then
3439  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3440echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3441   { (exit 1); exit 1; }; }
3442fi
3443
3444# It seems that we need to cleanup something here for the Windows
3445case "$CXX" in
3446  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3447    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3448    mv confdefs.hh confdefs.h
3449    ;;
3450esac
3451
3452# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3453case "$CXX" in
3454  cl* | */cl* | CL* | */CL* )
3455    if test "$ac_cv_prog_cxx_g" = yes ; then
3456      ac_cv_prog_cxx_g=no
3457      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3458echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3459    fi ;;
3460esac
3461CXXFLAGS="$save_cxxflags"
3462
3463# Check if a project specific CXXFLAGS variable has been set
3464if test x$COIN_PRJCT != x; then
3465  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3466  if test x$coin_tmp = xset; then
3467    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3468  fi
3469fi
3470
3471if test x"$CXXFLAGS" = x; then
3472
3473# ToDo decide whether we want -DNDEBUG for optimization
3474  coin_add_cxxflags=
3475  coin_opt_cxxflags=
3476  coin_dbg_cxxflags=
3477  coin_warn_cxxflags=
3478
3479  if test "$GXX" = "yes"; then
3480    case "$CXX" in
3481      icpc* | */icpc*)
3482        ;;
3483      *)
3484# ToDo decide about unroll-loops
3485        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3486        coin_add_cxxflags="-pipe"
3487        coin_dbg_cxxflags="-g"
3488        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3489        case $enable_doscompile in
3490          mingw)
3491            CXXFLAGS="-mno-cygwin"
3492            cat >conftest.$ac_ext <<_ACEOF
3493/* confdefs.h.  */
3494_ACEOF
3495cat confdefs.h >>conftest.$ac_ext
3496cat >>conftest.$ac_ext <<_ACEOF
3497/* end confdefs.h.  */
3498
3499int
3500main ()
3501{
3502int i=0; i++;
3503  ;
3504  return 0;
3505}
3506_ACEOF
3507rm -f conftest.$ac_objext conftest$ac_exeext
3508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3509  (eval $ac_link) 2>conftest.er1
3510  ac_status=$?
3511  grep -v '^ *+' conftest.er1 >conftest.err
3512  rm -f conftest.er1
3513  cat conftest.err >&5
3514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515  (exit $ac_status); } &&
3516         { ac_try='test -z "$ac_cxx_werror_flag"
3517                         || test ! -s conftest.err'
3518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519  (eval $ac_try) 2>&5
3520  ac_status=$?
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); }; } &&
3523         { ac_try='test -s conftest$ac_exeext'
3524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525  (eval $ac_try) 2>&5
3526  ac_status=$?
3527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528  (exit $ac_status); }; }; then
3529  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3530else
3531  echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
3534fi
3535rm -f conftest.err conftest.$ac_objext \
3536      conftest$ac_exeext conftest.$ac_ext
3537            CXXFLAGS=
3538            ;;
3539        esac
3540    esac
3541  fi
3542
3543# Note that we do not need to cover GCC in the following tests.
3544
3545  if test -z "$coin_opt_cxxflags"; then
3546    case $build in
3547      *-cygwin* | *-mingw*)
3548        case "$CXX" in
3549          cl* | */cl* | CL* | */CL*)
3550            # The MT and MTd options are mutually exclusive
3551            coin_opt_cxxflags='-MT -O2'
3552            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3553            coin_dbg_cxxflags='-MTd'
3554            ;;
3555          icl* | */icl* | ICL* | */ICL*)
3556            # The MT and MTd options are mutually exclusive
3557            coin_opt_cxxflags='-MT -Ox'
3558            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3559            coin_dbg_cxxflags='-MTd -debug'
3560            ;;
3561        esac
3562        ;;
3563      *-linux-*)
3564        case "$CXX" in
3565          icpc* | */icpc*)
3566            coin_opt_cxxflags="-O3 -ip"
3567            coin_add_cxxflags=""
3568            coin_dbg_cxxflags="-g"
3569            # Check if -i_dynamic is necessary (for new glibc library)
3570            CXXFLAGS=
3571            cat >conftest.$ac_ext <<_ACEOF
3572/* confdefs.h.  */
3573_ACEOF
3574cat confdefs.h >>conftest.$ac_ext
3575cat >>conftest.$ac_ext <<_ACEOF
3576/* end confdefs.h.  */
3577
3578int
3579main ()
3580{
3581int i=0; i++;
3582  ;
3583  return 0;
3584}
3585_ACEOF
3586rm -f conftest.$ac_objext conftest$ac_exeext
3587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3588  (eval $ac_link) 2>conftest.er1
3589  ac_status=$?
3590  grep -v '^ *+' conftest.er1 >conftest.err
3591  rm -f conftest.er1
3592  cat conftest.err >&5
3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); } &&
3595         { ac_try='test -z "$ac_cxx_werror_flag"
3596                         || test ! -s conftest.err'
3597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598  (eval $ac_try) 2>&5
3599  ac_status=$?
3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); }; } &&
3602         { ac_try='test -s conftest$ac_exeext'
3603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604  (eval $ac_try) 2>&5
3605  ac_status=$?
3606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607  (exit $ac_status); }; }; then
3608  :
3609else
3610  echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3614fi
3615rm -f conftest.err conftest.$ac_objext \
3616      conftest$ac_exeext conftest.$ac_ext
3617            ;;
3618          pgCC* | */pgCC*)
3619            coin_opt_cxxflags="-fast"
3620            coin_add_cxxflags="-Kieee -pc 64"
3621            coin_dbg_cxxflags="-g"
3622            ;;
3623        esac
3624        ;;
3625      *-ibm-*)
3626        case "$CXX" in
3627          xlC* | */xlC* | mpxlC* | */mpxlC*)
3628            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3629            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029"
3630            coin_dbg_cxxflags="-g"
3631            ;;
3632        esac
3633        ;;
3634      *-hp-*)
3635        case "$CXX" in
3636          aCC* | */aCC* )
3637            coin_opt_cxxflags="-O"
3638            coin_add_cxxflags="-AA"
3639            coin_dbg_cxxflags="-g"
3640            ;;
3641        esac
3642        ;;
3643      *-*-solaris*)
3644          coin_opt_cxxflags="-O4"
3645          coin_dbg_cxxflags="-g"
3646        ;;
3647    esac
3648  fi
3649
3650# Generic flag settings. If these don't work, add a case above.
3651
3652  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3653    coin_dbg_cxxflags="-g"
3654  fi
3655
3656  if test -z "$coin_opt_cxxflags"; then
3657    # Try if -O option works if nothing else is set
3658    CXXFLAGS=-O
3659    cat >conftest.$ac_ext <<_ACEOF
3660/* confdefs.h.  */
3661_ACEOF
3662cat confdefs.h >>conftest.$ac_ext
3663cat >>conftest.$ac_ext <<_ACEOF
3664/* end confdefs.h.  */
3665
3666int
3667main ()
3668{
3669int i=0; i++;
3670  ;
3671  return 0;
3672}
3673_ACEOF
3674rm -f conftest.$ac_objext conftest$ac_exeext
3675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3676  (eval $ac_link) 2>conftest.er1
3677  ac_status=$?
3678  grep -v '^ *+' conftest.er1 >conftest.err
3679  rm -f conftest.er1
3680  cat conftest.err >&5
3681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682  (exit $ac_status); } &&
3683         { ac_try='test -z "$ac_cxx_werror_flag"
3684                         || test ! -s conftest.err'
3685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686  (eval $ac_try) 2>&5
3687  ac_status=$?
3688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689  (exit $ac_status); }; } &&
3690         { ac_try='test -s conftest$ac_exeext'
3691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692  (eval $ac_try) 2>&5
3693  ac_status=$?
3694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695  (exit $ac_status); }; }; then
3696  coin_opt_cxxflags="-O"
3697else
3698  echo "$as_me: failed program was:" >&5
3699sed 's/^/| /' conftest.$ac_ext >&5
3700
3701fi
3702rm -f conftest.err conftest.$ac_objext \
3703      conftest$ac_exeext conftest.$ac_ext
3704  fi
3705
3706  # if PM doesn't want the warning messages, take them out
3707  if test x"$coin_skip_warn_cxxflags" = xyes; then
3708    coin_warn_cxxflags=
3709  fi
3710
3711# Do final setup of flags based on values determined above.
3712
3713  if test x${DBG_CXXFLAGS+set} != xset; then
3714    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3715  fi
3716  if test x${OPT_CXXFLAGS+set} != xset; then
3717    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3718  fi
3719
3720  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3721  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3722
3723  if test "$coin_debug_compile" = "true"; then
3724    CXXFLAGS="$DBG_CXXFLAGS"
3725  else
3726    CXXFLAGS="$OPT_CXXFLAGS"
3727  fi
3728
3729# Handle the case where CXXFLAGS was set externally.
3730else
3731  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3732  if test x${DBG_CXXFLAGS+set} != xset; then
3733    DBG_CXXFLAGS="$CXXFLAGS"
3734  fi
3735  if test x${OPT_CXXFLAGS+set} != xset; then
3736    OPT_CXXFLAGS="$CXXFLAGS"
3737  fi
3738fi
3739
3740# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3741
3742case "$CXXFLAGS" in
3743  *-mno-cygwin*)
3744    if test x${CPPFLAGS+set} != xset ; then
3745      CPPFLAGS="-mno-cygwin"
3746    else
3747      case "$CPPFLAGS" in
3748        *-mno-cygwin*)
3749          ;;
3750        *)
3751          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3752          ;;
3753      esac
3754    fi ;;
3755esac
3756
3757# Try if CXXFLAGS works
3758save_CXXFLAGS="$CXXFLAGS"
3759cat >conftest.$ac_ext <<_ACEOF
3760/* confdefs.h.  */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h.  */
3765
3766int
3767main ()
3768{
3769int i=0; i++;
3770  ;
3771  return 0;
3772}
3773_ACEOF
3774rm -f conftest.$ac_objext conftest$ac_exeext
3775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776  (eval $ac_link) 2>conftest.er1
3777  ac_status=$?
3778  grep -v '^ *+' conftest.er1 >conftest.err
3779  rm -f conftest.er1
3780  cat conftest.err >&5
3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782  (exit $ac_status); } &&
3783         { ac_try='test -z "$ac_cxx_werror_flag"
3784                         || test ! -s conftest.err'
3785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786  (eval $ac_try) 2>&5
3787  ac_status=$?
3788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789  (exit $ac_status); }; } &&
3790         { ac_try='test -s conftest$ac_exeext'
3791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792  (eval $ac_try) 2>&5
3793  ac_status=$?
3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795  (exit $ac_status); }; }; then
3796  :
3797else
3798  echo "$as_me: failed program was:" >&5
3799sed 's/^/| /' conftest.$ac_ext >&5
3800
3801CXXFLAGS=
3802fi
3803rm -f conftest.err conftest.$ac_objext \
3804      conftest$ac_exeext conftest.$ac_ext
3805if test -z "$CXXFLAGS"; then
3806  { 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
3807echo "$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;}
3808  CXXFLAGS='-O'
3809  cat >conftest.$ac_ext <<_ACEOF
3810/* confdefs.h.  */
3811_ACEOF
3812cat confdefs.h >>conftest.$ac_ext
3813cat >>conftest.$ac_ext <<_ACEOF
3814/* end confdefs.h.  */
3815
3816int
3817main ()
3818{
3819int i=0; i++;
3820  ;
3821  return 0;
3822}
3823_ACEOF
3824rm -f conftest.$ac_objext conftest$ac_exeext
3825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3826  (eval $ac_link) 2>conftest.er1
3827  ac_status=$?
3828  grep -v '^ *+' conftest.er1 >conftest.err
3829  rm -f conftest.er1
3830  cat conftest.err >&5
3831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832  (exit $ac_status); } &&
3833         { ac_try='test -z "$ac_cxx_werror_flag"
3834                         || test ! -s conftest.err'
3835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836  (eval $ac_try) 2>&5
3837  ac_status=$?
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); }; } &&
3840         { ac_try='test -s conftest$ac_exeext'
3841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842  (eval $ac_try) 2>&5
3843  ac_status=$?
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); }; }; then
3846  :
3847else
3848  echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851CXXFLAGS=
3852fi
3853rm -f conftest.err conftest.$ac_objext \
3854      conftest$ac_exeext conftest.$ac_ext
3855  if test -z "$CXXFLAGS"; then
3856    { 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
3857echo "$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;}
3858  fi
3859fi
3860
3861{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3862echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3863
3864
3865if test x"$MPICXX" = x; then :; else
3866  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3867echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3868  CXX="$MPICXX"
3869fi
3870
3871case "$CXX" in
3872  cl* | */cl* | CL* | */CL* )
3873    case $build in
3874  *-mingw*)
3875    if test "${LD+set}" = set; then :; else
3876      LD=link
3877    fi
3878    ;;
3879 esac
3880 case $enable_doscompile in
3881   msvc)
3882     if test "x${LD+set}" = xset; then :; else
3883       LD=link
3884     fi
3885     ;;
3886 esac
3887
3888    ;;
3889esac
3890
3891ac_ext=c
3892ac_cpp='$CPP $CPPFLAGS'
3893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896
3897
3898
3899# Initialize automake and libtool
3900{
3901
3902
3903
3904# START
3905
3906# Test if force_shared has been set
3907if test "x" = xforce_shared; then
3908  if test x$enable_shared = xno; then
3909    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3910echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3911   { (exit 1); exit 1; }; }
3912  fi
3913  enable_shared=yes;
3914else
3915  # On Cygwin and AIX, building DLLs doesn't work
3916  case $build in
3917    *-cygwin*)
3918      coin_disable_shared=yes
3919      platform=Cygwin
3920    ;;
3921    *-aix*)
3922      coin_disable_shared=yes
3923      platform=AIX
3924    ;;
3925    *-mingw*)
3926      coin_disable_shared=yes
3927      platform="Msys"
3928#      case "$CXX" in
3929#        cl*)
3930#          coin_disable_shared=yes
3931#          platform="Msys with cl"
3932#      ;;
3933#      esac
3934    ;;
3935  esac
3936fi
3937if test x"$coin_disable_shared" = xyes; then
3938  if test x"$enable_shared" = xyes; then
3939    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3940echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3941  fi
3942  enable_shared=no
3943fi
3944# By default, we only want the shared objects to be compiled
3945# Check whether --enable-static or --disable-static was given.
3946if test "${enable_static+set}" = set; then
3947  enableval="$enable_static"
3948  p=${PACKAGE-default}
3949    case $enableval in
3950    yes) enable_static=yes ;;
3951    no) enable_static=no ;;
3952    *)
3953     enable_static=no
3954      # Look at the argument we got.  We use all the common list separators.
3955      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3956      for pkg in $enableval; do
3957        IFS="$lt_save_ifs"
3958        if test "X$pkg" = "X$p"; then
3959          enable_static=yes
3960        fi
3961      done
3962      IFS="$lt_save_ifs"
3963      ;;
3964    esac
3965else
3966  enable_static=no
3967fi;
3968
3969
3970
3971
3972# Initialize automake
3973echo "$as_me:$LINENO: checking for egrep" >&5
3974echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3975if test "${ac_cv_prog_egrep+set}" = set; then
3976  echo $ECHO_N "(cached) $ECHO_C" >&6
3977else
3978  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3979    then ac_cv_prog_egrep='grep -E'
3980    else ac_cv_prog_egrep='egrep'
3981    fi
3982fi
3983echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3984echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3985 EGREP=$ac_cv_prog_egrep
3986
3987
3988am__api_version="1.9"
3989# Find a good install program.  We prefer a C program (faster),
3990# so one script is as good as another.  But avoid the broken or
3991# incompatible versions:
3992# SysV /etc/install, /usr/sbin/install
3993# SunOS /usr/etc/install
3994# IRIX /sbin/install
3995# AIX /bin/install
3996# AmigaOS /C/install, which installs bootblocks on floppy discs
3997# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3998# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3999# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4000# OS/2's system install, which has a completely different semantic
4001# ./install, which can be erroneously created by make from ./install.sh.
4002echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4003echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4004if test -z "$INSTALL"; then
4005if test "${ac_cv_path_install+set}" = set; then
4006  echo $ECHO_N "(cached) $ECHO_C" >&6
4007else
4008  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011  IFS=$as_save_IFS
4012  test -z "$as_dir" && as_dir=.
4013  # Account for people who put trailing slashes in PATH elements.
4014case $as_dir/ in
4015  ./ | .// | /cC/* | \
4016  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4017  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4018  /usr/ucb/* ) ;;
4019  *)
4020    # OSF1 and SCO ODT 3.0 have their own names for install.
4021    # Don't use installbsd from OSF since it installs stuff as root
4022    # by default.
4023    for ac_prog in ginstall scoinst install; do
4024      for ac_exec_ext in '' $ac_executable_extensions; do
4025        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4026          if test $ac_prog = install &&
4027            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4028            # AIX install.  It has an incompatible calling convention.
4029            :
4030          elif test $ac_prog = install &&
4031            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4032            # program-specific install script used by HP pwplus--don't use.
4033            :
4034          else
4035            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4036            break 3
4037          fi
4038        fi
4039      done
4040    done
4041    ;;
4042esac
4043done
4044
4045
4046fi
4047  if test "${ac_cv_path_install+set}" = set; then
4048    INSTALL=$ac_cv_path_install
4049  else
4050    # As a last resort, use the slow shell script.  We don't cache a
4051    # path for INSTALL within a source directory, because that will
4052    # break other packages using the cache if that directory is
4053    # removed, or if the path is relative.
4054    INSTALL=$ac_install_sh
4055  fi
4056fi
4057echo "$as_me:$LINENO: result: $INSTALL" >&5
4058echo "${ECHO_T}$INSTALL" >&6
4059
4060# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4061# It thinks the first close brace ends the variable substitution.
4062test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4063
4064test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4065
4066test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4067
4068echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4069echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4070# Just in case
4071sleep 1
4072echo timestamp > conftest.file
4073# Do `set' in a subshell so we don't clobber the current shell's
4074# arguments.  Must try -L first in case configure is actually a
4075# symlink; some systems play weird games with the mod time of symlinks
4076# (eg FreeBSD returns the mod time of the symlink's containing
4077# directory).
4078if (
4079   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4080   if test "$*" = "X"; then
4081      # -L didn't work.
4082      set X `ls -t $srcdir/configure conftest.file`
4083   fi
4084   rm -f conftest.file
4085   if test "$*" != "X $srcdir/configure conftest.file" \
4086      && test "$*" != "X conftest.file $srcdir/configure"; then
4087
4088      # If neither matched, then we have a broken ls.  This can happen
4089      # if, for instance, CONFIG_SHELL is bash and it inherits a
4090      # broken ls alias from the environment.  This has actually
4091      # happened.  Such a system could not be considered "sane".
4092      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4093alias in your environment" >&5
4094echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4095alias in your environment" >&2;}
4096   { (exit 1); exit 1; }; }
4097   fi
4098
4099   test "$2" = conftest.file
4100   )
4101then
4102   # Ok.
4103   :
4104else
4105   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4106Check your system clock" >&5
4107echo "$as_me: error: newly created file is older than distributed files!
4108Check your system clock" >&2;}
4109   { (exit 1); exit 1; }; }
4110fi
4111echo "$as_me:$LINENO: result: yes" >&5
4112echo "${ECHO_T}yes" >&6
4113test "$program_prefix" != NONE &&
4114  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4115# Use a double $ so make ignores it.
4116test "$program_suffix" != NONE &&
4117  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4118# Double any \ or $.  echo might interpret backslashes.
4119# By default was `s,x,x', remove it if useless.
4120cat <<\_ACEOF >conftest.sed
4121s/[\\$]/&&/g;s/;s,x,x,$//
4122_ACEOF
4123program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4124rm conftest.sed
4125
4126# expand $ac_aux_dir to an absolute path
4127am_aux_dir=`cd $ac_aux_dir && pwd`
4128
4129test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4130# Use eval to expand $SHELL
4131if eval "$MISSING --run true"; then
4132  am_missing_run="$MISSING --run "
4133else
4134  am_missing_run=
4135  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4136echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4137fi
4138
4139if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4140  # We used to keeping the `.' as first argument, in order to
4141  # allow $(mkdir_p) to be used without argument.  As in
4142  #   $(mkdir_p) $(somedir)
4143  # where $(somedir) is conditionally defined.  However this is wrong
4144  # for two reasons:
4145  #  1. if the package is installed by a user who cannot write `.'
4146  #     make install will fail,
4147  #  2. the above comment should most certainly read
4148  #     $(mkdir_p) $(DESTDIR)$(somedir)
4149  #     so it does not work when $(somedir) is undefined and
4150  #     $(DESTDIR) is not.
4151  #  To support the latter case, we have to write
4152  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4153  #  so the `.' trick is pointless.
4154  mkdir_p='mkdir -p --'
4155else
4156  # On NextStep and OpenStep, the `mkdir' command does not
4157  # recognize any option.  It will interpret all options as
4158  # directories to create, and then abort because `.' already
4159  # exists.
4160  for d in ./-p ./--version;
4161  do
4162    test -d $d && rmdir $d
4163  done
4164  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4165  if test -f "$ac_aux_dir/mkinstalldirs"; then
4166    mkdir_p='$(mkinstalldirs)'
4167  else
4168    mkdir_p='$(install_sh) -d'
4169  fi
4170fi
4171
4172for ac_prog in gawk mawk nawk awk
4173do
4174  # Extract the first word of "$ac_prog", so it can be a program name with args.
4175set dummy $ac_prog; ac_word=$2
4176echo "$as_me:$LINENO: checking for $ac_word" >&5
4177echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4178if test "${ac_cv_prog_AWK+set}" = set; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181  if test -n "$AWK"; then
4182  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4183else
4184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185for as_dir in $PATH
4186do
4187  IFS=$as_save_IFS
4188  test -z "$as_dir" && as_dir=.
4189  for ac_exec_ext in '' $ac_executable_extensions; do
4190  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191    ac_cv_prog_AWK="$ac_prog"
4192    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4193    break 2
4194  fi
4195done
4196done
4197
4198fi
4199fi
4200AWK=$ac_cv_prog_AWK
4201if test -n "$AWK"; then
4202  echo "$as_me:$LINENO: result: $AWK" >&5
4203echo "${ECHO_T}$AWK" >&6
4204else
4205  echo "$as_me:$LINENO: result: no" >&5
4206echo "${ECHO_T}no" >&6
4207fi
4208
4209  test -n "$AWK" && break
4210done
4211
4212echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4213echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4214set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4215if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4216  echo $ECHO_N "(cached) $ECHO_C" >&6
4217else
4218  cat >conftest.make <<\_ACEOF
4219all:
4220        @echo 'ac_maketemp="$(MAKE)"'
4221_ACEOF
4222# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4223eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4224if test -n "$ac_maketemp"; then
4225  eval ac_cv_prog_make_${ac_make}_set=yes
4226else
4227  eval ac_cv_prog_make_${ac_make}_set=no
4228fi
4229rm -f conftest.make
4230fi
4231if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4232  echo "$as_me:$LINENO: result: yes" >&5
4233echo "${ECHO_T}yes" >&6
4234  SET_MAKE=
4235else
4236  echo "$as_me:$LINENO: result: no" >&5
4237echo "${ECHO_T}no" >&6
4238  SET_MAKE="MAKE=${MAKE-make}"
4239fi
4240
4241rm -rf .tst 2>/dev/null
4242mkdir .tst 2>/dev/null
4243if test -d .tst; then
4244  am__leading_dot=.
4245else
4246  am__leading_dot=_
4247fi
4248rmdir .tst 2>/dev/null
4249
4250DEPDIR="${am__leading_dot}deps"
4251
4252          ac_config_commands="$ac_config_commands depfiles"
4253
4254
4255am_make=${MAKE-make}
4256cat > confinc << 'END'
4257am__doit:
4258        @echo done
4259.PHONY: am__doit
4260END
4261# If we don't find an include directive, just comment out the code.
4262echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4263echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4264am__include="#"
4265am__quote=
4266_am_result=none
4267# First try GNU make style include.
4268echo "include confinc" > confmf
4269# We grep out `Entering directory' and `Leaving directory'
4270# messages which can occur if `w' ends up in MAKEFLAGS.
4271# In particular we don't look at `^make:' because GNU make might
4272# be invoked under some other name (usually "gmake"), in which
4273# case it prints its new name instead of `make'.
4274if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4275   am__include=include
4276   am__quote=
4277   _am_result=GNU
4278fi
4279# Now try BSD make style include.
4280if test "$am__include" = "#"; then
4281   echo '.include "confinc"' > confmf
4282   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4283      am__include=.include
4284      am__quote="\""
4285      _am_result=BSD
4286   fi
4287fi
4288
4289
4290echo "$as_me:$LINENO: result: $_am_result" >&5
4291echo "${ECHO_T}$_am_result" >&6
4292rm -f confinc confmf
4293
4294# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4295if test "${enable_dependency_tracking+set}" = set; then
4296  enableval="$enable_dependency_tracking"
4297
4298fi;
4299if test "x$enable_dependency_tracking" != xno; then
4300  am_depcomp="$ac_aux_dir/depcomp"
4301  AMDEPBACKSLASH='\'
4302fi
4303
4304
4305if test "x$enable_dependency_tracking" != xno; then
4306  AMDEP_TRUE=
4307  AMDEP_FALSE='#'
4308else
4309  AMDEP_TRUE='#'
4310  AMDEP_FALSE=
4311fi
4312
4313
4314
4315
4316
4317# AC_MSG_NOTICE([Beginning automake initialisation.])
4318# Stuff for automake
4319# test to see if srcdir already configured
4320if test "`cd $srcdir && pwd`" != "`pwd`" &&
4321   test -f $srcdir/config.status; then
4322  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4323echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4324   { (exit 1); exit 1; }; }
4325fi
4326
4327# test whether we have cygpath
4328if test -z "$CYGPATH_W"; then
4329  if (cygpath --version) >/dev/null 2>/dev/null; then
4330    CYGPATH_W='cygpath -w'
4331  else
4332    CYGPATH_W=echo
4333  fi
4334fi
4335
4336
4337# Define the identity of the package.
4338 PACKAGE='coinmp'
4339 VERSION='1.1'
4340
4341
4342cat >>confdefs.h <<_ACEOF
4343#define PACKAGE "$PACKAGE"
4344_ACEOF
4345
4346
4347cat >>confdefs.h <<_ACEOF
4348#define VERSION "$VERSION"
4349_ACEOF
4350
4351# Some tools Automake needs.
4352
4353ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4354
4355
4356AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4357
4358
4359AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4360
4361
4362AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4363
4364
4365MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4366
4367install_sh=${install_sh-"$am_aux_dir/install-sh"}
4368
4369# Installed binaries are usually stripped using `strip' when the user
4370# run `make install-strip'.  However `strip' might not be the right
4371# tool to use in cross-compilation environments, therefore Automake
4372# will honor the `STRIP' environment variable to overrule this program.
4373if test "$cross_compiling" != no; then
4374  if test -n "$ac_tool_prefix"; then
4375  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4376set dummy ${ac_tool_prefix}strip; ac_word=$2
4377echo "$as_me:$LINENO: checking for $ac_word" >&5
4378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4379if test "${ac_cv_prog_STRIP+set}" = set; then
4380  echo $ECHO_N "(cached) $ECHO_C" >&6
4381else
4382  if test -n "$STRIP"; then
4383  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4384else
4385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386for as_dir in $PATH
4387do
4388  IFS=$as_save_IFS
4389  test -z "$as_dir" && as_dir=.
4390  for ac_exec_ext in '' $ac_executable_extensions; do
4391  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4392    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4393    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4394    break 2
4395  fi
4396done
4397done
4398
4399fi
4400fi
4401STRIP=$ac_cv_prog_STRIP
4402if test -n "$STRIP"; then
4403  echo "$as_me:$LINENO: result: $STRIP" >&5
4404echo "${ECHO_T}$STRIP" >&6
4405else
4406  echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408fi
4409
4410fi
4411if test -z "$ac_cv_prog_STRIP"; then
4412  ac_ct_STRIP=$STRIP
4413  # Extract the first word of "strip", so it can be a program name with args.
4414set dummy strip; ac_word=$2
4415echo "$as_me:$LINENO: checking for $ac_word" >&5
4416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4417if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4418  echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420  if test -n "$ac_ct_STRIP"; then
4421  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426  IFS=$as_save_IFS
4427  test -z "$as_dir" && as_dir=.
4428  for ac_exec_ext in '' $ac_executable_extensions; do
4429  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430    ac_cv_prog_ac_ct_STRIP="strip"
4431    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432    break 2
4433  fi
4434done
4435done
4436
4437  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4438fi
4439fi
4440ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4441if test -n "$ac_ct_STRIP"; then
4442  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4443echo "${ECHO_T}$ac_ct_STRIP" >&6
4444else
4445  echo "$as_me:$LINENO: result: no" >&5
4446echo "${ECHO_T}no" >&6
4447fi
4448
4449  STRIP=$ac_ct_STRIP
4450else
4451  STRIP="$ac_cv_prog_STRIP"
4452fi
4453
4454fi
4455INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4456
4457# We need awk for the "check" target.  The system "awk" is bad on
4458# some platforms.
4459# Always define AMTAR for backward compatibility.
4460
4461AMTAR=${AMTAR-"${am_missing_run}tar"}
4462
4463am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4464
4465
4466
4467
4468depcc="$CC"   am_compiler_list=
4469
4470echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4471echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4472if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4473  echo $ECHO_N "(cached) $ECHO_C" >&6
4474else
4475  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4476  # We make a subdir and do the tests there.  Otherwise we can end up
4477  # making bogus files that we don't know about and never remove.  For
4478  # instance it was reported that on HP-UX the gcc test will end up
4479  # making a dummy file named `D' -- because `-MD' means `put the output
4480  # in D'.
4481  mkdir conftest.dir
4482  # Copy depcomp to subdir because otherwise we won't find it if we're
4483  # using a relative directory.
4484  cp "$am_depcomp" conftest.dir
4485  cd conftest.dir
4486  # We will build objects and dependencies in a subdirectory because
4487  # it helps to detect inapplicable dependency modes.  For instance
4488  # both Tru64's cc and ICC support -MD to output dependencies as a
4489  # side effect of compilation, but ICC will put the dependencies in
4490  # the current directory while Tru64 will put them in the object
4491  # directory.
4492  mkdir sub
4493
4494  am_cv_CC_dependencies_compiler_type=none
4495  if test "$am_compiler_list" = ""; then
4496     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4497  fi
4498  for depmode in $am_compiler_list; do
4499    # Setup a source with many dependencies, because some compilers
4500    # like to wrap large dependency lists on column 80 (with \), and
4501    # we should not choose a depcomp mode which is confused by this.
4502    #
4503    # We need to recreate these files for each test, as the compiler may
4504    # overwrite some of them when testing with obscure command lines.
4505    # This happens at least with the AIX C compiler.
4506    : > sub/conftest.c
4507    for i in 1 2 3 4 5 6; do
4508      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4509      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4510      # Solaris 8's {/usr,}/bin/sh.
4511      touch sub/conftst$i.h
4512    done
4513    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4514
4515    case $depmode in
4516    nosideeffect)
4517      # after this tag, mechanisms are not by side-effect, so they'll
4518      # only be used when explicitly requested
4519      if test "x$enable_dependency_tracking" = xyes; then
4520        continue
4521      else
4522        break
4523      fi
4524      ;;
4525    none) break ;;
4526    esac
4527    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4528    # mode.  It turns out that the SunPro C++ compiler does not properly
4529    # handle `-M -o', and we need to detect this.
4530    if depmode=$depmode \
4531       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4532       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4533       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4534         >/dev/null 2>conftest.err &&
4535       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4536       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4537       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4538      # icc doesn't choke on unknown options, it will just issue warnings
4539      # or remarks (even with -Werror).  So we grep stderr for any message
4540      # that says an option was ignored or not supported.
4541      # When given -MP, icc 7.0 and 7.1 complain thusly:
4542      #   icc: Command line warning: ignoring option '-M'; no argument required
4543      # The diagnosis changed in icc 8.0:
4544      #   icc: Command line remark: option '-MP' not supported
4545      if (grep 'ignoring option' conftest.err ||
4546          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4547        am_cv_CC_dependencies_compiler_type=$depmode
4548        break
4549      fi
4550    fi
4551  done
4552
4553  cd ..
4554  rm -rf conftest.dir
4555else
4556  am_cv_CC_dependencies_compiler_type=none
4557fi
4558
4559fi
4560echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4561echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4562CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4563
4564
4565
4566if
4567  test "x$enable_dependency_tracking" != xno \
4568  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4569  am__fastdepCC_TRUE=
4570  am__fastdepCC_FALSE='#'
4571else
4572  am__fastdepCC_TRUE='#'
4573  am__fastdepCC_FALSE=
4574fi
4575
4576
4577depcc="$CXX"  am_compiler_list=
4578
4579echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4580echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4581if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4582  echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4585  # We make a subdir and do the tests there.  Otherwise we can end up
4586  # making bogus files that we don't know about and never remove.  For
4587  # instance it was reported that on HP-UX the gcc test will end up
4588  # making a dummy file named `D' -- because `-MD' means `put the output
4589  # in D'.
4590  mkdir conftest.dir
4591  # Copy depcomp to subdir because otherwise we won't find it if we're
4592  # using a relative directory.
4593  cp "$am_depcomp" conftest.dir
4594  cd conftest.dir
4595  # We will build objects and dependencies in a subdirectory because
4596  # it helps to detect inapplicable dependency modes.  For instance
4597  # both Tru64's cc and ICC support -MD to output dependencies as a
4598  # side effect of compilation, but ICC will put the dependencies in
4599  # the current directory while Tru64 will put them in the object
4600  # directory.
4601  mkdir sub
4602
4603  am_cv_CXX_dependencies_compiler_type=none
4604  if test "$am_compiler_list" = ""; then
4605     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4606  fi
4607  for depmode in $am_compiler_list; do
4608    # Setup a source with many dependencies, because some compilers
4609    # like to wrap large dependency lists on column 80 (with \), and
4610    # we should not choose a depcomp mode which is confused by this.
4611    #
4612    # We need to recreate these files for each test, as the compiler may
4613    # overwrite some of them when testing with obscure command lines.
4614    # This happens at least with the AIX C compiler.
4615    : > sub/conftest.c
4616    for i in 1 2 3 4 5 6; do
4617      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4618      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4619      # Solaris 8's {/usr,}/bin/sh.
4620      touch sub/conftst$i.h
4621    done
4622    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4623
4624    case $depmode in
4625    nosideeffect)
4626      # after this tag, mechanisms are not by side-effect, so they'll
4627      # only be used when explicitly requested
4628      if test "x$enable_dependency_tracking" = xyes; then
4629        continue
4630      else
4631        break
4632      fi
4633      ;;
4634    none) break ;;
4635    esac
4636    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4637    # mode.  It turns out that the SunPro C++ compiler does not properly
4638    # handle `-M -o', and we need to detect this.
4639    if depmode=$depmode \
4640       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4641       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4642       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4643         >/dev/null 2>conftest.err &&
4644       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4645       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4646       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4647      # icc doesn't choke on unknown options, it will just issue warnings
4648      # or remarks (even with -Werror).  So we grep stderr for any message
4649      # that says an option was ignored or not supported.
4650      # When given -MP, icc 7.0 and 7.1 complain thusly:
4651      #   icc: Command line warning: ignoring option '-M'; no argument required
4652      # The diagnosis changed in icc 8.0:
4653      #   icc: Command line remark: option '-MP' not supported
4654      if (grep 'ignoring option' conftest.err ||
4655          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4656        am_cv_CXX_dependencies_compiler_type=$depmode
4657        break
4658      fi
4659    fi
4660  done
4661
4662  cd ..
4663  rm -rf conftest.dir
4664else
4665  am_cv_CXX_dependencies_compiler_type=none
4666fi
4667
4668fi
4669echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4670echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4671CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4672
4673
4674
4675if
4676  test "x$enable_dependency_tracking" != xno \
4677  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4678  am__fastdepCXX_TRUE=
4679  am__fastdepCXX_FALSE='#'
4680else
4681  am__fastdepCXX_TRUE='#'
4682  am__fastdepCXX_FALSE=
4683fi
4684
4685
4686
4687echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4688echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4689    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4690if test "${enable_maintainer_mode+set}" = set; then
4691  enableval="$enable_maintainer_mode"
4692  USE_MAINTAINER_MODE=$enableval
4693else
4694  USE_MAINTAINER_MODE=no
4695fi;
4696  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4697echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4698
4699
4700if test $USE_MAINTAINER_MODE = yes; then
4701  MAINTAINER_MODE_TRUE=
4702  MAINTAINER_MODE_FALSE='#'
4703else
4704  MAINTAINER_MODE_TRUE='#'
4705  MAINTAINER_MODE_FALSE=
4706fi
4707
4708  MAINT=$MAINTAINER_MODE_TRUE
4709
4710
4711
4712coin_have_externals=no
4713if test "$enable_maintainer_mode" = yes; then
4714
4715  # If maintainer mode is chosen, we make sure that the correct versions
4716  # of the tools are used, and that we know where libtool.m4 is (to
4717  # recreate acinclude.m4)
4718
4719
4720  LIBTOOLM4=
4721  # Normally, $HOME
4722  AUTOTOOLS_DFLT=$HOME
4723
4724  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4725echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4726if test "${ac_cv_use_correct_autotools+set}" = set; then
4727  echo $ECHO_N "(cached) $ECHO_C" >&6
4728else
4729  ac_cv_use_correct_autotools=check
4730fi
4731echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4732echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4733
4734  if test $ac_cv_use_correct_autotools = check; then
4735    ac_cv_use_correct_autotools=yes
4736    # Check if we have autoconf
4737    # Extract the first word of "autoconf", so it can be a program name with args.
4738set dummy autoconf; ac_word=$2
4739echo "$as_me:$LINENO: checking for $ac_word" >&5
4740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4741if test "${ac_cv_prog_have_autoconf+set}" = set; then
4742  echo $ECHO_N "(cached) $ECHO_C" >&6
4743else
4744  if test -n "$have_autoconf"; then
4745  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4746else
4747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748for as_dir in $PATH
4749do
4750  IFS=$as_save_IFS
4751  test -z "$as_dir" && as_dir=.
4752  for ac_exec_ext in '' $ac_executable_extensions; do
4753  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4754    ac_cv_prog_have_autoconf="yes"
4755    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4756    break 2
4757  fi
4758done
4759done
4760
4761  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4762fi
4763fi
4764have_autoconf=$ac_cv_prog_have_autoconf
4765if test -n "$have_autoconf"; then
4766  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4767echo "${ECHO_T}$have_autoconf" >&6
4768else
4769  echo "$as_me:$LINENO: result: no" >&5
4770echo "${ECHO_T}no" >&6
4771fi
4772
4773    if test $have_autoconf = no; then
4774      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4775echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4776   { (exit 1); exit 1; }; }
4777    fi
4778
4779    # Check whether autoconf is the correct version
4780    correct_version='2.59'
4781    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4782    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4783echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4784    autoconf --version > confauto.out 2>&1
4785    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4786      echo "$as_me:$LINENO: result: yes" >&5
4787echo "${ECHO_T}yes" >&6
4788    else
4789      rm -f confauto.out
4790      echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6
4792      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4793echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4794   { (exit 1); exit 1; }; }
4795    fi
4796    rm -f confauto.out
4797
4798    # Check if the executable autoconf is picked up from the correct location
4799    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4800echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4801    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4802    autoconf_dir=`cd $autoconf_dir; pwd`
4803    if test x$AUTOTOOLS_DIR = x; then
4804      want_dir=$AUTOTOOLS_DFLT/bin
4805    else
4806      want_dir=$AUTOTOOLS_DIR/bin
4807    fi
4808    if test $autoconf_dir = `cd $want_dir; pwd`; then
4809      echo "$as_me:$LINENO: result: yes" >&5
4810echo "${ECHO_T}yes" >&6
4811    else
4812      rm -f confauto.out
4813      echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4816echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4817   { (exit 1); exit 1; }; }
4818    fi
4819
4820    # Check if we have automake
4821    # Extract the first word of "automake", so it can be a program name with args.
4822set dummy automake; ac_word=$2
4823echo "$as_me:$LINENO: checking for $ac_word" >&5
4824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4825if test "${ac_cv_prog_have_automake+set}" = set; then
4826  echo $ECHO_N "(cached) $ECHO_C" >&6
4827else
4828  if test -n "$have_automake"; then
4829  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4830else
4831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832for as_dir in $PATH
4833do
4834  IFS=$as_save_IFS
4835  test -z "$as_dir" && as_dir=.
4836  for ac_exec_ext in '' $ac_executable_extensions; do
4837  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4838    ac_cv_prog_have_automake="yes"
4839    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840    break 2
4841  fi
4842done
4843done
4844
4845  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4846fi
4847fi
4848have_automake=$ac_cv_prog_have_automake
4849if test -n "$have_automake"; then
4850  echo "$as_me:$LINENO: result: $have_automake" >&5
4851echo "${ECHO_T}$have_automake" >&6
4852else
4853  echo "$as_me:$LINENO: result: no" >&5
4854echo "${ECHO_T}no" >&6
4855fi
4856
4857    if test $have_automake = no; then
4858      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4859echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4860   { (exit 1); exit 1; }; }
4861    fi
4862
4863    # Check whether automake is the correct version
4864    correct_version='1.9.6'
4865    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4866    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4867echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4868    automake --version > confauto.out 2>&1
4869    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4870      echo "$as_me:$LINENO: result: yes" >&5
4871echo "${ECHO_T}yes" >&6
4872    else
4873      rm -f confauto.out
4874      echo "$as_me:$LINENO: result: no" >&5
4875echo "${ECHO_T}no" >&6
4876      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4877echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4878   { (exit 1); exit 1; }; }
4879    fi
4880    rm -f confauto.out
4881
4882    # Check if the executable automake is picked up from the correct location
4883    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4884echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4885    automake_dir=`which automake | sed -e 's=/automake=='`
4886    automake_dir=`cd $automake_dir; pwd`
4887    if test x$AUTOTOOLS_DIR = x; then
4888      want_dir=$AUTOTOOLS_DFLT/bin
4889    else
4890      want_dir=$AUTOTOOLS_DIR/bin
4891    fi
4892    if test $automake_dir = `cd $want_dir; pwd`; then
4893      echo "$as_me:$LINENO: result: yes" >&5
4894echo "${ECHO_T}yes" >&6
4895    else
4896      rm -f confauto.out
4897      echo "$as_me:$LINENO: result: no" >&5
4898echo "${ECHO_T}no" >&6
4899      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4900echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4901   { (exit 1); exit 1; }; }
4902    fi
4903
4904    # Check if this is the correct version of libtool (with escaped dots)
4905    if test x$AUTOTOOLS_DIR = x; then
4906      want_dir=$AUTOTOOLS_DFLT/share
4907    else
4908      want_dir=$AUTOTOOLS_DIR/share
4909    fi
4910    correct_version='1.5.22'
4911    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4912    if test -r $want_dir/libtool/ltmain.sh; then
4913  have_ltmain=yes
4914  :
4915else
4916  have_ltmain=no
4917  :
4918fi
4919
4920    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4921echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4922    if test $have_ltmain = yes; then
4923    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4924        echo "$as_me:$LINENO: result: yes" >&5
4925echo "${ECHO_T}yes" >&6
4926      else
4927        echo "$as_me:$LINENO: result: no" >&5
4928echo "${ECHO_T}no" >&6
4929        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4930echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4931   { (exit 1); exit 1; }; }
4932      fi
4933    else
4934      echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4937echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4938   { (exit 1); exit 1; }; }
4939    fi
4940  fi
4941
4942  # Check if we can find the libtool file
4943  if test x$AUTOTOOLS_DIR = x; then
4944    want_dir=$AUTOTOOLS_DFLT/share
4945  else
4946    want_dir=$AUTOTOOLS_DIR/share
4947  fi
4948  if test -r $want_dir/aclocal/libtool.m4; then
4949  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4950  :
4951else
4952  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4953echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4954   { (exit 1); exit 1; }; }
4955  :
4956fi
4957
4958
4959  # Check if we have an Externals file
4960  if test -r $srcdir/Externals; then
4961    coin_have_externals=yes
4962  fi
4963  # Check if subversion is installed and understands https
4964  # Extract the first word of "svn", so it can be a program name with args.
4965set dummy svn; ac_word=$2
4966echo "$as_me:$LINENO: checking for $ac_word" >&5
4967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4968if test "${ac_cv_prog_have_svn+set}" = set; then
4969  echo $ECHO_N "(cached) $ECHO_C" >&6
4970else
4971  if test -n "$have_svn"; then
4972  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4973else
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977  IFS=$as_save_IFS
4978  test -z "$as_dir" && as_dir=.
4979  for ac_exec_ext in '' $ac_executable_extensions; do
4980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981    ac_cv_prog_have_svn="yes"
4982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4983    break 2
4984  fi
4985done
4986done
4987
4988  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4989fi
4990fi
4991have_svn=$ac_cv_prog_have_svn
4992if test -n "$have_svn"; then
4993  echo "$as_me:$LINENO: result: $have_svn" >&5
4994echo "${ECHO_T}$have_svn" >&6
4995else
4996  echo "$as_me:$LINENO: result: no" >&5
4997echo "${ECHO_T}no" >&6
4998fi
4999
5000  if test x$have_svn = xyes; then
5001    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5002echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5003if test "${ac_cv_svn_understands_https+set}" = set; then
5004  echo $ECHO_N "(cached) $ECHO_C" >&6
5005else
5006  svn --version > confauto.out 2>&1
5007                    if $EGREP https confauto.out >/dev/null 2>&1; then
5008                      ac_cv_svn_understands_https=yes
5009                    else
5010                      ac_cv_svn_understands_https=no
5011                      have_svn=no
5012                      ac_cv_prog_have_svn=no
5013                    fi
5014                    rm -f confauto.out
5015fi
5016echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5017echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5018  fi
5019
5020  # Find the location of the BuildTools directory
5021  BUILDTOOLSDIR=
5022  if test -r $srcdir/BuildTools/coin.m4; then
5023    BUILDTOOLSDIR=$srcdir/BuildTools
5024  else
5025    if test -r $srcdir/../BuildTools/coin.m4; then
5026      BUILDTOOLSDIR=$srcdir/../BuildTools
5027    else
5028      if test -r $srcdir/../../BuildTools/coin.m4; then
5029        BUILDTOOLSDIR=$srcdir/../../BuildTools
5030      else
5031        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5032echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5033   { (exit 1); exit 1; }; }
5034      fi
5035    fi
5036  fi
5037
5038
5039  # The following variable is set to the name of the directory where
5040  # the autotool scripts are located
5041
5042  AUX_DIR=$ac_aux_dir
5043fi
5044
5045# helpful variable for the base directory of this package
5046abs_source_dir=`cd $srcdir; pwd`
5047
5048
5049# Stuff for example Makefiles
5050if test x$prefix = xNONE; then
5051  full_prefix=$ac_default_prefix
5052else
5053  full_prefix=$prefix
5054fi
5055full_prefix=`cd $full_prefix ; pwd`
5056
5057abs_lib_dir=$full_prefix/lib
5058
5059abs_include_dir=$full_prefix/include
5060
5061abs_bin_dir=$full_prefix/bin
5062
5063
5064
5065if test $coin_have_externals = yes && test x$have_svn = xyes; then
5066  HAVE_EXTERNALS_TRUE=
5067  HAVE_EXTERNALS_FALSE='#'
5068else
5069  HAVE_EXTERNALS_TRUE='#'
5070  HAVE_EXTERNALS_FALSE=
5071fi
5072
5073
5074# AC_MSG_NOTICE([End automake initialisation.])
5075
5076
5077
5078LIBTOOL=
5079if test -r ../libtool; then
5080  coin_config_dir=..
5081  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5082fi
5083if test "x$LIBTOOL" = x; then
5084  if test -r ../../libtool; then
5085    coin_config_dir=../..
5086    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5087  fi
5088fi
5089
5090if test "x$LIBTOOL" = x; then
5091# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5092  # Stuff for libtool
5093  # Check whether --enable-shared or --disable-shared was given.
5094if test "${enable_shared+set}" = set; then
5095  enableval="$enable_shared"
5096  p=${PACKAGE-default}
5097    case $enableval in
5098    yes) enable_shared=yes ;;
5099    no) enable_shared=no ;;
5100    *)
5101      enable_shared=no
5102      # Look at the argument we got.  We use all the common list separators.
5103      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5104      for pkg in $enableval; do
5105        IFS="$lt_save_ifs"
5106        if test "X$pkg" = "X$p"; then
5107          enable_shared=yes
5108        fi
5109      done
5110      IFS="$lt_save_ifs"
5111      ;;
5112    esac
5113else
5114  enable_shared=yes
5115fi;
5116
5117# Check whether --enable-fast-install or --disable-fast-install was given.
5118if test "${enable_fast_install+set}" = set; then
5119  enableval="$enable_fast_install"
5120  p=${PACKAGE-default}
5121    case $enableval in
5122    yes) enable_fast_install=yes ;;
5123    no) enable_fast_install=no ;;
5124    *)
5125      enable_fast_install=no
5126      # Look at the argument we got.  We use all the common list separators.
5127      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5128      for pkg in $enableval; do
5129        IFS="$lt_save_ifs"
5130        if test "X$pkg" = "X$p"; then
5131          enable_fast_install=yes
5132        fi
5133      done
5134      IFS="$lt_save_ifs"
5135      ;;
5136    esac
5137else
5138  enable_fast_install=yes
5139fi;
5140
5141echo "$as_me:$LINENO: checking host system type" >&5
5142echo $ECHO_N "checking host system type... $ECHO_C" >&6
5143if test "${ac_cv_host+set}" = set; then
5144  echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146  ac_cv_host_alias=$host_alias
5147test -z "$ac_cv_host_alias" &&
5148  ac_cv_host_alias=$ac_cv_build_alias
5149ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5150  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5151echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5152   { (exit 1); exit 1; }; }
5153
5154fi
5155echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5156echo "${ECHO_T}$ac_cv_host" >&6
5157host=$ac_cv_host
5158host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5159host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5160host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5161
5162
5163echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5164echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5165if test "${lt_cv_path_SED+set}" = set; then
5166  echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168  # Loop through the user's path and test for sed and gsed.
5169# Then use that list of sed's as ones to test for truncation.
5170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171for as_dir in $PATH
5172do
5173  IFS=$as_save_IFS
5174  test -z "$as_dir" && as_dir=.
5175  for lt_ac_prog in sed gsed; do
5176    for ac_exec_ext in '' $ac_executable_extensions; do
5177      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5178        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5179      fi
5180    done
5181  done
5182done
5183lt_ac_max=0
5184lt_ac_count=0
5185# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5186# along with /bin/sed that truncates output.
5187for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5188  test ! -f $lt_ac_sed && continue
5189  cat /dev/null > conftest.in
5190  lt_ac_count=0
5191  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5192  # Check for GNU sed and select it if it is found.
5193  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5194    lt_cv_path_SED=$lt_ac_sed
5195    break
5196  fi
5197  while true; do
5198    cat conftest.in conftest.in >conftest.tmp
5199    mv conftest.tmp conftest.in
5200    cp conftest.in conftest.nl
5201    echo >>conftest.nl
5202    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5203    cmp -s conftest.out conftest.nl || break
5204    # 10000 chars as input seems more than enough
5205    test $lt_ac_count -gt 10 && break
5206    lt_ac_count=`expr $lt_ac_count + 1`
5207    if test $lt_ac_count -gt $lt_ac_max; then
5208      lt_ac_max=$lt_ac_count
5209      lt_cv_path_SED=$lt_ac_sed
5210    fi
5211  done
5212done
5213
5214fi
5215
5216SED=$lt_cv_path_SED
5217echo "$as_me:$LINENO: result: $SED" >&5
5218echo "${ECHO_T}$SED" >&6
5219
5220
5221# Check whether --with-gnu-ld or --without-gnu-ld was given.
5222if test "${with_gnu_ld+set}" = set; then
5223  withval="$with_gnu_ld"
5224  test "$withval" = no || with_gnu_ld=yes
5225else
5226  with_gnu_ld=no
5227fi;
5228ac_prog=ld
5229if test "$GCC" = yes; then
5230  # Check if gcc -print-prog-name=ld gives a path.
5231  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5232echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5233  case $host in
5234  *-*-mingw*)
5235    # gcc leaves a trailing carriage return which upsets mingw
5236    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5237  *)
5238    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5239  esac
5240  case $ac_prog in
5241    # Accept absolute paths.
5242    [\\/]* | ?:[\\/]*)
5243      re_direlt='/[^/][^/]*/\.\./'
5244      # Canonicalize the pathname of ld
5245      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5246      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5247        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5248      done
5249      test -z "$LD" && LD="$ac_prog"
5250      ;;
5251  "")
5252    # If it fails, then pretend we aren't using GCC.
5253    ac_prog=ld
5254    ;;
5255  *)
5256    # If it is relative, then search for the first ld in PATH.
5257    with_gnu_ld=unknown
5258    ;;
5259  esac
5260elif test "$with_gnu_ld" = yes; then
5261  echo "$as_me:$LINENO: checking for GNU ld" >&5
5262echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5263else
5264  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5265echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5266fi
5267if test "${lt_cv_path_LD+set}" = set; then
5268  echo $ECHO_N "(cached) $ECHO_C" >&6
5269else
5270  if test -z "$LD"; then
5271  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5272  for ac_dir in $PATH; do
5273    IFS="$lt_save_ifs"
5274    test -z "$ac_dir" && ac_dir=.
5275    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5276      lt_cv_path_LD="$ac_dir/$ac_prog"
5277      # Check to see if the program is GNU ld.  I'd rather use --version,
5278      # but apparently some variants of GNU ld only accept -v.
5279      # Break only if it was the GNU/non-GNU ld that we prefer.
5280      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5281      *GNU* | *'with BFD'*)
5282        test "$with_gnu_ld" != no && break
5283        ;;
5284      *)
5285        test "$with_gnu_ld" != yes && break
5286        ;;
5287      esac
5288    fi
5289  done
5290  IFS="$lt_save_ifs"
5291else
5292  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5293fi
5294fi
5295
5296LD="$lt_cv_path_LD"
5297if test -n "$LD"; then
5298  echo "$as_me:$LINENO: result: $LD" >&5
5299echo "${ECHO_T}$LD" >&6
5300else
5301  echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303fi
5304test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5305echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5306   { (exit 1); exit 1; }; }
5307echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5308echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5309if test "${lt_cv_prog_gnu_ld+set}" = set; then
5310  echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5313case `$LD -v 2>&1 </dev/null` in
5314*GNU* | *'with BFD'*)
5315  lt_cv_prog_gnu_ld=yes
5316  ;;
5317*)
5318  lt_cv_prog_gnu_ld=no
5319  ;;
5320esac
5321fi
5322echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5323echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5324with_gnu_ld=$lt_cv_prog_gnu_ld
5325
5326
5327echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5328echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5329if test "${lt_cv_ld_reload_flag+set}" = set; then
5330  echo $ECHO_N "(cached) $ECHO_C" >&6
5331else
5332  lt_cv_ld_reload_flag='-r'
5333fi
5334echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5335echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5336reload_flag=$lt_cv_ld_reload_flag
5337case $reload_flag in
5338"" | " "*) ;;
5339*) reload_flag=" $reload_flag" ;;
5340esac
5341reload_cmds='$LD$reload_flag -o $output$reload_objs'
5342case $host_os in
5343  darwin*)
5344    if test "$GCC" = yes; then
5345      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5346    else
5347      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5348    fi
5349    ;;
5350esac
5351
5352echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5353echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5354if test "${lt_cv_path_NM+set}" = set; then
5355  echo $ECHO_N "(cached) $ECHO_C" >&6
5356else
5357  if test -n "$NM"; then
5358  # Let the user override the test.
5359  lt_cv_path_NM="$NM"
5360else
5361  lt_nm_to_check="${ac_tool_prefix}nm"
5362  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5363    lt_nm_to_check="$lt_nm_to_check nm"
5364  fi
5365  for lt_tmp_nm in $lt_nm_to_check; do
5366    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5367    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5368      IFS="$lt_save_ifs"
5369      test -z "$ac_dir" && ac_dir=.
5370      tmp_nm="$ac_dir/$lt_tmp_nm"
5371      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5372        # Check to see if the nm accepts a BSD-compat flag.
5373        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5374        #   nm: unknown option "B" ignored
5375        # Tru64's nm complains that /dev/null is an invalid object file
5376        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5377        */dev/null* | *'Invalid file or object type'*)
5378          lt_cv_path_NM="$tmp_nm -B"
5379          break
5380          ;;
5381        *)
5382          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5383          */dev/null*)
5384            lt_cv_path_NM="$tmp_nm -p"
5385            break
5386            ;;
5387          *)
5388            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5389            continue # so that we can try to find one that supports BSD flags
5390            ;;
5391          esac
5392          ;;
5393        esac
5394      fi
5395    done
5396    IFS="$lt_save_ifs"
5397  done
5398  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5399fi
5400fi
5401echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5402echo "${ECHO_T}$lt_cv_path_NM" >&6
5403NM="$lt_cv_path_NM"
5404
5405echo "$as_me:$LINENO: checking whether ln -s works" >&5
5406echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5407LN_S=$as_ln_s
5408if test "$LN_S" = "ln -s"; then
5409  echo "$as_me:$LINENO: result: yes" >&5
5410echo "${ECHO_T}yes" >&6
5411else
5412  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5413echo "${ECHO_T}no, using $LN_S" >&6
5414fi
5415
5416echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5417echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5418if test "${lt_cv_deplibs_check_method+set}" = set; then
5419  echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421  lt_cv_file_magic_cmd='$MAGIC_CMD'
5422lt_cv_file_magic_test_file=
5423lt_cv_deplibs_check_method='unknown'
5424# Need to set the preceding variable on all platforms that support
5425# interlibrary dependencies.
5426# 'none' -- dependencies not supported.
5427# `unknown' -- same as none, but documents that we really don't know.
5428# 'pass_all' -- all dependencies passed with no checks.
5429# 'test_compile' -- check by making test program.
5430# 'file_magic [[regex]]' -- check by looking for files in library path
5431# which responds to the $file_magic_cmd with a given extended regex.
5432# If you have `file' or equivalent on your system and you're not sure
5433# whether `pass_all' will *always* work, you probably want this one.
5434
5435case $host_os in
5436aix4* | aix5*)
5437  lt_cv_deplibs_check_method=pass_all
5438  ;;
5439
5440beos*)
5441  lt_cv_deplibs_check_method=pass_all
5442  ;;
5443
5444bsdi[45]*)
5445  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5446  lt_cv_file_magic_cmd='/usr/bin/file -L'
5447  lt_cv_file_magic_test_file=/shlib/libc.so
5448  ;;
5449
5450cygwin*)
5451  # func_win32_libid is a shell function defined in ltmain.sh
5452  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5453  lt_cv_file_magic_cmd='func_win32_libid'
5454  ;;
5455
5456mingw* | pw32*)
5457  # Base MSYS/MinGW do not provide the 'file' command needed by
5458  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5459  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5460  lt_cv_file_magic_cmd='$OBJDUMP -f'
5461  ;;
5462
5463darwin* | rhapsody*)
5464  lt_cv_deplibs_check_method=pass_all
5465  ;;
5466
5467freebsd* | kfreebsd*-gnu | dragonfly*)
5468  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5469    case $host_cpu in
5470    i*86 )
5471      # Not sure whether the presence of OpenBSD here was a mistake.
5472      # Let's accept both of them until this is cleared up.
5473      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5474      lt_cv_file_magic_cmd=/usr/bin/file
5475      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5476      ;;
5477    esac
5478  else
5479    lt_cv_deplibs_check_method=pass_all
5480  fi
5481  ;;
5482
5483gnu*)
5484  lt_cv_deplibs_check_method=pass_all
5485  ;;
5486
5487hpux10.20* | hpux11*)
5488  lt_cv_file_magic_cmd=/usr/bin/file
5489  case $host_cpu in
5490  ia64*)
5491    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5492    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5493    ;;
5494  hppa*64*)
5495    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]'
5496    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5497    ;;
5498  *)
5499    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5500    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5501    ;;
5502  esac
5503  ;;
5504
5505interix3*)
5506  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5507  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5508  ;;
5509
5510irix5* | irix6* | nonstopux*)
5511  case $LD in
5512  *-32|*"-32 ") libmagic=32-bit;;
5513  *-n32|*"-n32 ") libmagic=N32;;
5514  *-64|*"-64 ") libmagic=64-bit;;
5515  *) libmagic=never-match;;
5516  esac
5517  lt_cv_deplibs_check_method=pass_all
5518  ;;
5519
5520# This must be Linux ELF.
5521linux*)
5522  lt_cv_deplibs_check_method=pass_all
5523  ;;
5524
5525netbsd*)
5526  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5527    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5528  else
5529    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5530  fi
5531  ;;
5532
5533newos6*)
5534  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5535  lt_cv_file_magic_cmd=/usr/bin/file
5536  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5537  ;;
5538
5539nto-qnx*)
5540  lt_cv_deplibs_check_method=unknown
5541  ;;
5542
5543openbsd*)
5544  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5545    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5546  else
5547    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5548  fi
5549  ;;
5550
5551osf3* | osf4* | osf5*)
5552  lt_cv_deplibs_check_method=pass_all
5553  ;;
5554
5555solaris*)
5556  lt_cv_deplibs_check_method=pass_all
5557  ;;
5558
5559sysv4 | sysv4.3*)
5560  case $host_vendor in
5561  motorola)
5562    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]'
5563    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5564    ;;
5565  ncr)
5566    lt_cv_deplibs_check_method=pass_all
5567    ;;
5568  sequent)
5569    lt_cv_file_magic_cmd='/bin/file'
5570    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5571    ;;
5572  sni)
5573    lt_cv_file_magic_cmd='/bin/file'
5574    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5575    lt_cv_file_magic_test_file=/lib/libc.so
5576    ;;
5577  siemens)
5578    lt_cv_deplibs_check_method=pass_all
5579    ;;
5580  pc)
5581    lt_cv_deplibs_check_method=pass_all
5582    ;;
5583  esac
5584  ;;
5585
5586sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5587  lt_cv_deplibs_check_method=pass_all
5588  ;;
5589esac
5590
5591fi
5592echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5593echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5594file_magic_cmd=$lt_cv_file_magic_cmd
5595deplibs_check_method=$lt_cv_deplibs_check_method
5596test -z "$deplibs_check_method" && deplibs_check_method=unknown
5597
5598
5599
5600
5601# If no C compiler was specified, use CC.
5602LTCC=${LTCC-"$CC"}
5603
5604# If no C compiler flags were specified, use CFLAGS.
5605LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5606
5607# Allow CC to be a program name with arguments.
5608compiler=$CC
5609
5610# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5611if test "${enable_libtool_lock+set}" = set; then
5612  enableval="$enable_libtool_lock"
5613
5614fi;
5615test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5616
5617# Some flags need to be propagated to the compiler or linker for good
5618# libtool support.
5619case $host in
5620ia64-*-hpux*)
5621  # Find out which ABI we are using.
5622  echo 'int i;' > conftest.$ac_ext
5623  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5624  (eval $ac_compile) 2>&5
5625  ac_status=$?
5626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627  (exit $ac_status); }; then
5628    case `/usr/bin/file conftest.$ac_objext` in
5629    *ELF-32*)
5630      HPUX_IA64_MODE="32"
5631      ;;
5632    *ELF-64*)
5633      HPUX_IA64_MODE="64"
5634      ;;
5635    esac
5636  fi
5637  rm -rf conftest*
5638  ;;
5639*-*-irix6*)
5640  # Find out which ABI we are using.
5641  echo '#line 5641 "configure"' > conftest.$ac_ext
5642  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643  (eval $ac_compile) 2>&5
5644  ac_status=$?
5645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646  (exit $ac_status); }; then
5647   if test "$lt_cv_prog_gnu_ld" = yes; then
5648    case `/usr/bin/file conftest.$ac_objext` in
5649    *32-bit*)
5650      LD="${LD-ld} -melf32bsmip"
5651      ;;
5652    *N32*)
5653      LD="${LD-ld} -melf32bmipn32"
5654      ;;
5655    *64-bit*)
5656      LD="${LD-ld} -melf64bmip"
5657      ;;
5658    esac
5659   else
5660    case `/usr/bin/file conftest.$ac_objext` in
5661    *32-bit*)
5662      LD="${LD-ld} -32"
5663      ;;
5664    *N32*)
5665      LD="${LD-ld} -n32"
5666      ;;
5667    *64-bit*)
5668      LD="${LD-ld} -64"
5669      ;;
5670    esac
5671   fi
5672  fi
5673  rm -rf conftest*
5674  ;;
5675
5676x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5677  # Find out which ABI we are using.
5678  echo 'int i;' > conftest.$ac_ext
5679  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680  (eval $ac_compile) 2>&5
5681  ac_status=$?
5682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683  (exit $ac_status); }; then
5684    case `/usr/bin/file conftest.o` in
5685    *32-bit*)
5686      case $host in
5687        x86_64-*linux*)
5688          LD="${LD-ld} -m elf_i386"
5689          ;;
5690        ppc64-*linux*|powerpc64-*linux*)
5691          LD="${LD-ld} -m elf32ppclinux"
5692          ;;
5693        s390x-*linux*)
5694          LD="${LD-ld} -m elf_s390"
5695          ;;
5696        sparc64-*linux*)
5697          LD="${LD-ld} -m elf32_sparc"
5698          ;;
5699      esac
5700      ;;
5701    *64-bit*)
5702      case $host in
5703        x86_64-*linux*)
5704          LD="${LD-ld} -m elf_x86_64"
5705          ;;
5706        ppc*-*linux*|powerpc*-*linux*)
5707          LD="${LD-ld} -m elf64ppc"
5708          ;;
5709        s390*-*linux*)
5710          LD="${LD-ld} -m elf64_s390"
5711          ;;
5712        sparc*-*linux*)
5713          LD="${LD-ld} -m elf64_sparc"
5714          ;;
5715      esac
5716      ;;
5717    esac
5718  fi
5719  rm -rf conftest*
5720  ;;
5721
5722*-*-sco3.2v5*)
5723  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5724  SAVE_CFLAGS="$CFLAGS"
5725  CFLAGS="$CFLAGS -belf"
5726  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5727echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5728if test "${lt_cv_cc_needs_belf+set}" = set; then
5729  echo $ECHO_N "(cached) $ECHO_C" >&6
5730else
5731  ac_ext=c
5732ac_cpp='$CPP $CPPFLAGS'
5733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735ac_compiler_gnu=$ac_cv_c_compiler_gnu
5736
5737     cat >conftest.$ac_ext <<_ACEOF
5738/* confdefs.h.  */
5739_ACEOF
5740cat confdefs.h >>conftest.$ac_ext
5741cat >>conftest.$ac_ext <<_ACEOF
5742/* end confdefs.h.  */
5743
5744int
5745main ()
5746{
5747
5748  ;
5749  return 0;
5750}
5751_ACEOF
5752rm -f conftest.$ac_objext conftest$ac_exeext
5753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754  (eval $ac_link) 2>conftest.er1
5755  ac_status=$?
5756  grep -v '^ *+' conftest.er1 >conftest.err
5757  rm -f conftest.er1
5758  cat conftest.err >&5
5759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760  (exit $ac_status); } &&
5761         { ac_try='test -z "$ac_c_werror_flag"
5762                         || test ! -s conftest.err'
5763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764  (eval $ac_try) 2>&5
5765  ac_status=$?
5766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767  (exit $ac_status); }; } &&
5768         { ac_try='test -s conftest$ac_exeext'
5769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770  (eval $ac_try) 2>&5
5771  ac_status=$?
5772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773  (exit $ac_status); }; }; then
5774  lt_cv_cc_needs_belf=yes
5775else
5776  echo "$as_me: failed program was:" >&5
5777sed 's/^/| /' conftest.$ac_ext >&5
5778
5779lt_cv_cc_needs_belf=no
5780fi
5781rm -f conftest.err conftest.$ac_objext \
5782      conftest$ac_exeext conftest.$ac_ext
5783     ac_ext=c
5784ac_cpp='$CPP $CPPFLAGS'
5785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788
5789fi
5790echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5791echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5792  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5793    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5794    CFLAGS="$SAVE_CFLAGS"
5795  fi
5796  ;;
5797sparc*-*solaris*)
5798  # Find out which ABI we are using.
5799  echo 'int i;' > conftest.$ac_ext
5800  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5801  (eval $ac_compile) 2>&5
5802  ac_status=$?
5803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804  (exit $ac_status); }; then
5805    case `/usr/bin/file conftest.o` in
5806    *64-bit*)
5807      case $lt_cv_prog_gnu_ld in
5808      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5809      *)    LD="${LD-ld} -64" ;;
5810      esac
5811      ;;
5812    esac
5813  fi
5814  rm -rf conftest*
5815  ;;
5816
5817
5818esac
5819
5820need_locks="$enable_libtool_lock"
5821
5822
5823ac_ext=c
5824ac_cpp='$CPP $CPPFLAGS'
5825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5827ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5829echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5830# On Suns, sometimes $CPP names a directory.
5831if test -n "$CPP" && test -d "$CPP"; then
5832  CPP=
5833fi
5834if test -z "$CPP"; then
5835  if test "${ac_cv_prog_CPP+set}" = set; then
5836  echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
5838      # Double quotes because CPP needs to be expanded
5839    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5840    do
5841      ac_preproc_ok=false
5842for ac_c_preproc_warn_flag in '' yes
5843do
5844  # Use a header file that comes with gcc, so configuring glibc
5845  # with a fresh cross-compiler works.
5846  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5847  # <limits.h> exists even on freestanding compilers.
5848  # On the NeXT, cc -E runs the code through the compiler's parser,
5849  # not just through cpp. "Syntax error" is here to catch this case.
5850  cat >conftest.$ac_ext <<_ACEOF
5851/* confdefs.h.  */
5852_ACEOF
5853cat confdefs.h >>conftest.$ac_ext
5854cat >>conftest.$ac_ext <<_ACEOF
5855/* end confdefs.h.  */
5856#ifdef __STDC__
5857# include <limits.h>
5858#else
5859# include <assert.h>
5860#endif
5861                     Syntax error
5862_ACEOF
5863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5864  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5865  ac_status=$?
5866  grep -v '^ *+' conftest.er1 >conftest.err
5867  rm -f conftest.er1
5868  cat conftest.err >&5
5869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870  (exit $ac_status); } >/dev/null; then
5871  if test -s conftest.err; then
5872    ac_cpp_err=$ac_c_preproc_warn_flag
5873    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5874  else
5875    ac_cpp_err=
5876  fi
5877else
5878  ac_cpp_err=yes
5879fi
5880if test -z "$ac_cpp_err"; then
5881  :
5882else
5883  echo "$as_me: failed program was:" >&5
5884sed 's/^/| /' conftest.$ac_ext >&5
5885
5886  # Broken: fails on valid input.
5887continue
5888fi
5889rm -f conftest.err conftest.$ac_ext
5890
5891  # OK, works on sane cases.  Now check whether non-existent headers
5892  # can be detected and how.
5893  cat >conftest.$ac_ext <<_ACEOF
5894/* confdefs.h.  */
5895_ACEOF
5896cat confdefs.h >>conftest.$ac_ext
5897cat >>conftest.$ac_ext <<_ACEOF
5898/* end confdefs.h.  */
5899#include <ac_nonexistent.h>
5900_ACEOF
5901if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5902  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5903  ac_status=$?
5904  grep -v '^ *+' conftest.er1 >conftest.err
5905  rm -f conftest.er1
5906  cat conftest.err >&5
5907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908  (exit $ac_status); } >/dev/null; then
5909  if test -s conftest.err; then
5910    ac_cpp_err=$ac_c_preproc_warn_flag
5911    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5912  else
5913    ac_cpp_err=
5914  fi
5915else
5916  ac_cpp_err=yes
5917fi
5918if test -z "$ac_cpp_err"; then
5919  # Broken: success on invalid input.
5920continue
5921else
5922  echo "$as_me: failed program was:" >&5
5923sed 's/^/| /' conftest.$ac_ext >&5
5924
5925  # Passes both tests.
5926ac_preproc_ok=:
5927break
5928fi
5929rm -f conftest.err conftest.$ac_ext
5930
5931done
5932# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5933rm -f conftest.err conftest.$ac_ext
5934if $ac_preproc_ok; then
5935  break
5936fi
5937
5938    done
5939    ac_cv_prog_CPP=$CPP
5940
5941fi
5942  CPP=$ac_cv_prog_CPP
5943else
5944  ac_cv_prog_CPP=$CPP
5945fi
5946echo "$as_me:$LINENO: result: $CPP" >&5
5947echo "${ECHO_T}$CPP" >&6
5948ac_preproc_ok=false
5949for ac_c_preproc_warn_flag in '' yes
5950do
5951  # Use a header file that comes with gcc, so configuring glibc
5952  # with a fresh cross-compiler works.
5953  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5954  # <limits.h> exists even on freestanding compilers.
5955  # On the NeXT, cc -E runs the code through the compiler's parser,
5956  # not just through cpp. "Syntax error" is here to catch this case.
5957  cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h.  */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h.  */
5963#ifdef __STDC__
5964# include <limits.h>
5965#else
5966# include <assert.h>
5967#endif
5968                     Syntax error
5969_ACEOF
5970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5971  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5972  ac_status=$?
5973  grep -v '^ *+' conftest.er1 >conftest.err
5974  rm -f conftest.er1
5975  cat conftest.err >&5
5976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977  (exit $ac_status); } >/dev/null; then
5978  if test -s conftest.err; then
5979    ac_cpp_err=$ac_c_preproc_warn_flag
5980    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5981  else
5982    ac_cpp_err=
5983  fi
5984else
5985  ac_cpp_err=yes
5986fi
5987if test -z "$ac_cpp_err"; then
5988  :
5989else
5990  echo "$as_me: failed program was:" >&5
5991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993  # Broken: fails on valid input.
5994continue
5995fi
5996rm -f conftest.err conftest.$ac_ext
5997
5998  # OK, works on sane cases.  Now check whether non-existent headers
5999  # can be detected and how.
6000  cat >conftest.$ac_ext <<_ACEOF
6001/* confdefs.h.  */
6002_ACEOF
6003cat confdefs.h >>conftest.$ac_ext
6004cat >>conftest.$ac_ext <<_ACEOF
6005/* end confdefs.h.  */
6006#include <ac_nonexistent.h>
6007_ACEOF
6008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6009  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6010  ac_status=$?
6011  grep -v '^ *+' conftest.er1 >conftest.err
6012  rm -f conftest.er1
6013  cat conftest.err >&5
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); } >/dev/null; then
6016  if test -s conftest.err; then
6017    ac_cpp_err=$ac_c_preproc_warn_flag
6018    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6019  else
6020    ac_cpp_err=
6021  fi
6022else
6023  ac_cpp_err=yes
6024fi
6025if test -z "$ac_cpp_err"; then
6026  # Broken: success on invalid input.
6027continue
6028else
6029  echo "$as_me: failed program was:" >&5
6030sed 's/^/| /' conftest.$ac_ext >&5
6031
6032  # Passes both tests.
6033ac_preproc_ok=:
6034break
6035fi
6036rm -f conftest.err conftest.$ac_ext
6037
6038done
6039# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6040rm -f conftest.err conftest.$ac_ext
6041if $ac_preproc_ok; then
6042  :
6043else
6044  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6045See \`config.log' for more details." >&5
6046echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6047See \`config.log' for more details." >&2;}
6048   { (exit 1); exit 1; }; }
6049fi
6050
6051ac_ext=c
6052ac_cpp='$CPP $CPPFLAGS'
6053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6055ac_compiler_gnu=$ac_cv_c_compiler_gnu
6056
6057
6058echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6059echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6060if test "${ac_cv_header_stdc+set}" = set; then
6061  echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
6063  cat >conftest.$ac_ext <<_ACEOF
6064/* confdefs.h.  */
6065_ACEOF
6066cat confdefs.h >>conftest.$ac_ext
6067cat >>conftest.$ac_ext <<_ACEOF
6068/* end confdefs.h.  */
6069#include <stdlib.h>
6070#include <stdarg.h>
6071#include <string.h>
6072#include <float.h>
6073
6074int
6075main ()
6076{
6077
6078  ;
6079  return 0;
6080}
6081_ACEOF
6082rm -f conftest.$ac_objext
6083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084  (eval $ac_compile) 2>conftest.er1
6085  ac_status=$?
6086  grep -v '^ *+' conftest.er1 >conftest.err
6087  rm -f conftest.er1
6088  cat conftest.err >&5
6089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090  (exit $ac_status); } &&
6091         { ac_try='test -z "$ac_c_werror_flag"
6092                         || test ! -s conftest.err'
6093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094  (eval $ac_try) 2>&5
6095  ac_status=$?
6096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097  (exit $ac_status); }; } &&
6098         { ac_try='test -s conftest.$ac_objext'
6099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100  (eval $ac_try) 2>&5
6101  ac_status=$?
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); }; }; then
6104  ac_cv_header_stdc=yes
6105else
6106  echo "$as_me: failed program was:" >&5
6107sed 's/^/| /' conftest.$ac_ext >&5
6108
6109ac_cv_header_stdc=no
6110fi
6111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112
6113if test $ac_cv_header_stdc = yes; then
6114  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6115  cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h.  */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h.  */
6121#include <string.h>
6122
6123_ACEOF
6124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125  $EGREP "memchr" >/dev/null 2>&1; then
6126  :
6127else
6128  ac_cv_header_stdc=no
6129fi
6130rm -f conftest*
6131
6132fi
6133
6134if test $ac_cv_header_stdc = yes; then
6135  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6136  cat >conftest.$ac_ext <<_ACEOF
6137/* confdefs.h.  */
6138_ACEOF
6139cat confdefs.h >>conftest.$ac_ext
6140cat >>conftest.$ac_ext <<_ACEOF
6141/* end confdefs.h.  */
6142#include <stdlib.h>
6143
6144_ACEOF
6145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6146  $EGREP "free" >/dev/null 2>&1; then
6147  :
6148else
6149  ac_cv_header_stdc=no
6150fi
6151rm -f conftest*
6152
6153fi
6154
6155if test $ac_cv_header_stdc = yes; then
6156  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6157  if test "$cross_compiling" = yes; then
6158  :
6159else
6160  cat >conftest.$ac_ext <<_ACEOF
6161/* confdefs.h.  */
6162_ACEOF
6163cat confdefs.h >>conftest.$ac_ext
6164cat >>conftest.$ac_ext <<_ACEOF
6165/* end confdefs.h.  */
6166#include <ctype.h>
6167#if ((' ' & 0x0FF) == 0x020)
6168# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6169# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6170#else
6171# define ISLOWER(c) \
6172                   (('a' <= (c) && (c) <= 'i') \
6173                     || ('j' <= (c) && (c) <= 'r') \
6174                     || ('s' <= (c) && (c) <= 'z'))
6175# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6176#endif
6177
6178#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6179int
6180main ()
6181{
6182  int i;
6183  for (i = 0; i < 256; i++)
6184    if (XOR (islower (i), ISLOWER (i))
6185        || toupper (i) != TOUPPER (i))
6186      exit(2);
6187  exit (0);
6188}
6189_ACEOF
6190rm -f conftest$ac_exeext
6191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192  (eval $ac_link) 2>&5
6193  ac_status=$?
6194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197  (eval $ac_try) 2>&5
6198  ac_status=$?
6199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200  (exit $ac_status); }; }; then
6201  :
6202else
6203  echo "$as_me: program exited with status $ac_status" >&5
6204echo "$as_me: failed program was:" >&5
6205sed 's/^/| /' conftest.$ac_ext >&5
6206
6207( exit $ac_status )
6208ac_cv_header_stdc=no
6209fi
6210rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6211fi
6212fi
6213fi
6214echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6215echo "${ECHO_T}$ac_cv_header_stdc" >&6
6216if test $ac_cv_header_stdc = yes; then
6217
6218cat >>confdefs.h <<\_ACEOF
6219#define STDC_HEADERS 1
6220_ACEOF
6221
6222fi
6223
6224# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6235                  inttypes.h stdint.h unistd.h
6236do
6237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6238echo "$as_me:$LINENO: checking for $ac_header" >&5
6239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6240if eval "test \"\${$as_ac_Header+set}\" = set"; then
6241  echo $ECHO_N "(cached) $ECHO_C" >&6
6242else
6243  cat >conftest.$ac_ext <<_ACEOF
6244/* confdefs.h.  */
6245_ACEOF
6246cat confdefs.h >>conftest.$ac_ext
6247cat >>conftest.$ac_ext <<_ACEOF
6248/* end confdefs.h.  */
6249$ac_includes_default
6250
6251#include <$ac_header>
6252_ACEOF
6253rm -f conftest.$ac_objext
6254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6255  (eval $ac_compile) 2>conftest.er1
6256  ac_status=$?
6257  grep -v '^ *+' conftest.er1 >conftest.err
6258  rm -f conftest.er1
6259  cat conftest.err >&5
6260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261  (exit $ac_status); } &&
6262         { ac_try='test -z "$ac_c_werror_flag"
6263                         || test ! -s conftest.err'
6264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265  (eval $ac_try) 2>&5
6266  ac_status=$?
6267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268  (exit $ac_status); }; } &&
6269         { ac_try='test -s conftest.$ac_objext'
6270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271  (eval $ac_try) 2>&5
6272  ac_status=$?
6273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274  (exit $ac_status); }; }; then
6275  eval "$as_ac_Header=yes"
6276else
6277  echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
6279
6280eval "$as_ac_Header=no"
6281fi
6282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6283fi
6284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6285echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6286if test `eval echo '${'$as_ac_Header'}'` = yes; then
6287  cat >>confdefs.h <<_ACEOF
6288#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6289_ACEOF
6290
6291fi
6292
6293done
6294
6295
6296
6297for ac_header in dlfcn.h
6298do
6299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6300if eval "test \"\${$as_ac_Header+set}\" = set"; then
6301  echo "$as_me:$LINENO: checking for $ac_header" >&5
6302echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6303if eval "test \"\${$as_ac_Header+set}\" = set"; then
6304  echo $ECHO_N "(cached) $ECHO_C" >&6
6305fi
6306echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6307echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6308else
6309  # Is the header compilable?
6310echo "$as_me:$LINENO: checking $ac_header usability" >&5
6311echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6312cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h.  */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h.  */
6318$ac_includes_default
6319#include <$ac_header>
6320_ACEOF
6321rm -f conftest.$ac_objext
6322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323  (eval $ac_compile) 2>conftest.er1
6324  ac_status=$?
6325  grep -v '^ *+' conftest.er1 >conftest.err
6326  rm -f conftest.er1
6327  cat conftest.err >&5
6328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329  (exit $ac_status); } &&
6330         { ac_try='test -z "$ac_c_werror_flag"
6331                         || test ! -s conftest.err'
6332  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6333  (eval $ac_try) 2>&5
6334  ac_status=$?
6335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336  (exit $ac_status); }; } &&
6337         { ac_try='test -s conftest.$ac_objext'
6338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6339  (eval $ac_try) 2>&5
6340  ac_status=$?
6341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342  (exit $ac_status); }; }; then
6343  ac_header_compiler=yes
6344else
6345  echo "$as_me: failed program was:" >&5
6346sed 's/^/| /' conftest.$ac_ext >&5
6347
6348ac_header_compiler=no
6349fi
6350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6351echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6352echo "${ECHO_T}$ac_header_compiler" >&6
6353
6354# Is the header present?
6355echo "$as_me:$LINENO: checking $ac_header presence" >&5
6356echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6357cat >conftest.$ac_ext <<_ACEOF
6358/* confdefs.h.  */
6359_ACEOF
6360cat confdefs.h >>conftest.$ac_ext
6361cat >>conftest.$ac_ext <<_ACEOF
6362/* end confdefs.h.  */
6363#include <$ac_header>
6364_ACEOF
6365if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6366  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6367  ac_status=$?
6368  grep -v '^ *+' conftest.er1 >conftest.err
6369  rm -f conftest.er1
6370  cat conftest.err >&5
6371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372  (exit $ac_status); } >/dev/null; then
6373  if test -s conftest.err; then
6374    ac_cpp_err=$ac_c_preproc_warn_flag
6375    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6376  else
6377    ac_cpp_err=
6378  fi
6379else
6380  ac_cpp_err=yes
6381fi
6382if test -z "$ac_cpp_err"; then
6383  ac_header_preproc=yes
6384else
6385  echo "$as_me: failed program was:" >&5
6386sed 's/^/| /' conftest.$ac_ext >&5
6387
6388  ac_header_preproc=no
6389fi
6390rm -f conftest.err conftest.$ac_ext
6391echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6392echo "${ECHO_T}$ac_header_preproc" >&6
6393
6394# So?  What about this header?
6395case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6396  yes:no: )
6397    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6398echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6399    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6400echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6401    ac_header_preproc=yes
6402    ;;
6403  no:yes:* )
6404    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6405echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6406    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6407echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6408    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6409echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6410    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6411echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6412    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6413echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6414    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6415echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6416    (
6417      cat <<\_ASBOX
6418## -------------------------------------------- ##
6419## Report this to coin-discuss@list.coin-or.org ##
6420## -------------------------------------------- ##
6421_ASBOX
6422    ) |
6423      sed "s/^/$as_me: WARNING:     /" >&2
6424    ;;
6425esac
6426echo "$as_me:$LINENO: checking for $ac_header" >&5
6427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6428if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429  echo $ECHO_N "(cached) $ECHO_C" >&6
6430else
6431  eval "$as_ac_Header=\$ac_header_preproc"
6432fi
6433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6435
6436fi
6437if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438  cat >>confdefs.h <<_ACEOF
6439#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6440_ACEOF
6441
6442fi
6443
6444done
6445
6446
6447
6448if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6449    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6450    (test "X$CXX" != "Xg++"))) ; then
6451  ac_ext=cc
6452ac_cpp='$CXXCPP $CPPFLAGS'
6453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6456echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6457echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6458if test -z "$CXXCPP"; then
6459  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6460  echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462      # Double quotes because CXXCPP needs to be expanded
6463    for CXXCPP in "$CXX -E" "/lib/cpp"
6464    do
6465      ac_preproc_ok=false
6466for ac_cxx_preproc_warn_flag in '' yes
6467do
6468  # Use a header file that comes with gcc, so configuring glibc
6469  # with a fresh cross-compiler works.
6470  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6471  # <limits.h> exists even on freestanding compilers.
6472  # On the NeXT, cc -E runs the code through the compiler's parser,
6473  # not just through cpp. "Syntax error" is here to catch this case.
6474  cat >conftest.$ac_ext <<_ACEOF
6475/* confdefs.h.  */
6476_ACEOF
6477cat confdefs.h >>conftest.$ac_ext
6478cat >>conftest.$ac_ext <<_ACEOF
6479/* end confdefs.h.  */
6480#ifdef __STDC__
6481# include <limits.h>
6482#else
6483# include <assert.h>
6484#endif
6485                     Syntax error
6486_ACEOF
6487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6488  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6489  ac_status=$?
6490  grep -v '^ *+' conftest.er1 >conftest.err
6491  rm -f conftest.er1
6492  cat conftest.err >&5
6493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494  (exit $ac_status); } >/dev/null; then
6495  if test -s conftest.err; then
6496    ac_cpp_err=$ac_cxx_preproc_warn_flag
6497    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6498  else
6499    ac_cpp_err=
6500  fi
6501else
6502  ac_cpp_err=yes
6503fi
6504if test -z "$ac_cpp_err"; then
6505  :
6506else
6507  echo "$as_me: failed program was:" >&5
6508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510  # Broken: fails on valid input.
6511continue
6512fi
6513rm -f conftest.err conftest.$ac_ext
6514
6515  # OK, works on sane cases.  Now check whether non-existent headers
6516  # can be detected and how.
6517  cat >conftest.$ac_ext <<_ACEOF
6518/* confdefs.h.  */
6519_ACEOF
6520cat confdefs.h >>conftest.$ac_ext
6521cat >>conftest.$ac_ext <<_ACEOF
6522/* end confdefs.h.  */
6523#include <ac_nonexistent.h>
6524_ACEOF
6525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6526  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6527  ac_status=$?
6528  grep -v '^ *+' conftest.er1 >conftest.err
6529  rm -f conftest.er1
6530  cat conftest.err >&5
6531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532  (exit $ac_status); } >/dev/null; then
6533  if test -s conftest.err; then
6534    ac_cpp_err=$ac_cxx_preproc_warn_flag
6535    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6536  else
6537    ac_cpp_err=
6538  fi
6539else
6540  ac_cpp_err=yes
6541fi
6542if test -z "$ac_cpp_err"; then
6543  # Broken: success on invalid input.
6544continue
6545else
6546  echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549  # Passes both tests.
6550ac_preproc_ok=:
6551break
6552fi
6553rm -f conftest.err conftest.$ac_ext
6554
6555done
6556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6557rm -f conftest.err conftest.$ac_ext
6558if $ac_preproc_ok; then
6559  break
6560fi
6561
6562    done
6563    ac_cv_prog_CXXCPP=$CXXCPP
6564
6565fi
6566  CXXCPP=$ac_cv_prog_CXXCPP
6567else
6568  ac_cv_prog_CXXCPP=$CXXCPP
6569fi
6570echo "$as_me:$LINENO: result: $CXXCPP" >&5
6571echo "${ECHO_T}$CXXCPP" >&6
6572ac_preproc_ok=false
6573for ac_cxx_preproc_warn_flag in '' yes
6574do
6575  # Use a header file that comes with gcc, so configuring glibc
6576  # with a fresh cross-compiler works.
6577  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6578  # <limits.h> exists even on freestanding compilers.
6579  # On the NeXT, cc -E runs the code through the compiler's parser,
6580  # not just through cpp. "Syntax error" is here to catch this case.
6581  cat >conftest.$ac_ext <<_ACEOF
6582/* confdefs.h.  */
6583_ACEOF
6584cat confdefs.h >>conftest.$ac_ext
6585cat >>conftest.$ac_ext <<_ACEOF
6586/* end confdefs.h.  */
6587#ifdef __STDC__
6588# include <limits.h>
6589#else
6590# include <assert.h>
6591#endif
6592                     Syntax error
6593_ACEOF
6594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6595  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6596  ac_status=$?
6597  grep -v '^ *+' conftest.er1 >conftest.err
6598  rm -f conftest.er1
6599  cat conftest.err >&5
6600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601  (exit $ac_status); } >/dev/null; then
6602  if test -s conftest.err; then
6603    ac_cpp_err=$ac_cxx_preproc_warn_flag
6604    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6605  else
6606    ac_cpp_err=
6607  fi
6608else
6609  ac_cpp_err=yes
6610fi
6611if test -z "$ac_cpp_err"; then
6612  :
6613else
6614  echo "$as_me: failed program was:" >&5
6615sed 's/^/| /' conftest.$ac_ext >&5
6616
6617  # Broken: fails on valid input.
6618continue
6619fi
6620rm -f conftest.err conftest.$ac_ext
6621
6622  # OK, works on sane cases.  Now check whether non-existent headers
6623  # can be detected and how.
6624  cat >conftest.$ac_ext <<_ACEOF
6625/* confdefs.h.  */
6626_ACEOF
6627cat confdefs.h >>conftest.$ac_ext
6628cat >>conftest.$ac_ext <<_ACEOF
6629/* end confdefs.h.  */
6630#include <ac_nonexistent.h>
6631_ACEOF
6632if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6633  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6634  ac_status=$?
6635  grep -v '^ *+' conftest.er1 >conftest.err
6636  rm -f conftest.er1
6637  cat conftest.err >&5
6638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639  (exit $ac_status); } >/dev/null; then
6640  if test -s conftest.err; then
6641    ac_cpp_err=$ac_cxx_preproc_warn_flag
6642    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6643  else
6644    ac_cpp_err=
6645  fi
6646else
6647  ac_cpp_err=yes
6648fi
6649if test -z "$ac_cpp_err"; then
6650  # Broken: success on invalid input.
6651continue
6652else
6653  echo "$as_me: failed program was:" >&5
6654sed 's/^/| /' conftest.$ac_ext >&5
6655
6656  # Passes both tests.
6657ac_preproc_ok=:
6658break
6659fi
6660rm -f conftest.err conftest.$ac_ext
6661
6662done
6663# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6664rm -f conftest.err conftest.$ac_ext
6665if $ac_preproc_ok; then
6666  :
6667else
6668  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6669See \`config.log' for more details." >&5
6670echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6671See \`config.log' for more details." >&2;}
6672   { (exit 1); exit 1; }; }
6673fi
6674
6675ac_ext=cc
6676ac_cpp='$CXXCPP $CPPFLAGS'
6677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6680
6681fi
6682
6683ac_ext=f
6684ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6685ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6686ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6687if test -n "$ac_tool_prefix"; then
6688  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6689  do
6690    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6691set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6692echo "$as_me:$LINENO: checking for $ac_word" >&5
6693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6694if test "${ac_cv_prog_F77+set}" = set; then
6695  echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697  if test -n "$F77"; then
6698  ac_cv_prog_F77="$F77" # Let the user override the test.
6699else
6700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701for as_dir in $PATH
6702do
6703  IFS=$as_save_IFS
6704  test -z "$as_dir" && as_dir=.
6705  for ac_exec_ext in '' $ac_executable_extensions; do
6706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709    break 2
6710  fi
6711done
6712done
6713
6714fi
6715fi
6716F77=$ac_cv_prog_F77
6717if test -n "$F77"; then
6718  echo "$as_me:$LINENO: result: $F77" >&5
6719echo "${ECHO_T}$F77" >&6
6720else
6721  echo "$as_me:$LINENO: result: no" >&5
6722echo "${ECHO_T}no" >&6
6723fi
6724
6725    test -n "$F77" && break
6726  done
6727fi
6728if test -z "$F77"; then
6729  ac_ct_F77=$F77
6730  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6731do
6732  # Extract the first word of "$ac_prog", so it can be a program name with args.
6733set dummy $ac_prog; ac_word=$2
6734echo "$as_me:$LINENO: checking for $ac_word" >&5
6735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6736if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6737  echo $ECHO_N "(cached) $ECHO_C" >&6
6738else
6739  if test -n "$ac_ct_F77"; then
6740  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745  IFS=$as_save_IFS
6746  test -z "$as_dir" && as_dir=.
6747  for ac_exec_ext in '' $ac_executable_extensions; do
6748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749    ac_cv_prog_ac_ct_F77="$ac_prog"
6750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751    break 2
6752  fi
6753done
6754done
6755
6756fi
6757fi
6758ac_ct_F77=$ac_cv_prog_ac_ct_F77
6759if test -n "$ac_ct_F77"; then
6760  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6761echo "${ECHO_T}$ac_ct_F77" >&6
6762else
6763  echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
6765fi
6766
6767  test -n "$ac_ct_F77" && break
6768done
6769
6770  F77=$ac_ct_F77
6771fi
6772
6773
6774# Provide some information about the compiler.
6775echo "$as_me:6775:" \
6776     "checking for Fortran 77 compiler version" >&5
6777ac_compiler=`set X $ac_compile; echo $2`
6778{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6779  (eval $ac_compiler --version </dev/null >&5) 2>&5
6780  ac_status=$?
6781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782  (exit $ac_status); }
6783{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6784  (eval $ac_compiler -v </dev/null >&5) 2>&5
6785  ac_status=$?
6786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787  (exit $ac_status); }
6788{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6789  (eval $ac_compiler -V </dev/null >&5) 2>&5
6790  ac_status=$?
6791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792  (exit $ac_status); }
6793rm -f a.out
6794
6795# If we don't use `.F' as extension, the preprocessor is not run on the
6796# input file.  (Note that this only needs to work for GNU compilers.)
6797ac_save_ext=$ac_ext
6798ac_ext=F
6799echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6800echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6801if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6802  echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804  cat >conftest.$ac_ext <<_ACEOF
6805      program main
6806#ifndef __GNUC__
6807       choke me
6808#endif
6809
6810      end
6811_ACEOF
6812rm -f conftest.$ac_objext
6813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814  (eval $ac_compile) 2>conftest.er1
6815  ac_status=$?
6816  grep -v '^ *+' conftest.er1 >conftest.err
6817  rm -f conftest.er1
6818  cat conftest.err >&5
6819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820  (exit $ac_status); } &&
6821         { ac_try='test -z "$ac_f77_werror_flag"
6822                         || test ! -s conftest.err'
6823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824  (eval $ac_try) 2>&5
6825  ac_status=$?
6826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827  (exit $ac_status); }; } &&
6828         { ac_try='test -s conftest.$ac_objext'
6829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830  (eval $ac_try) 2>&5
6831  ac_status=$?
6832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833  (exit $ac_status); }; }; then
6834  ac_compiler_gnu=yes
6835else
6836  echo "$as_me: failed program was:" >&5
6837sed 's/^/| /' conftest.$ac_ext >&5
6838
6839ac_compiler_gnu=no
6840fi
6841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6842ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6843
6844fi
6845echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6846echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6847ac_ext=$ac_save_ext
6848ac_test_FFLAGS=${FFLAGS+set}
6849ac_save_FFLAGS=$FFLAGS
6850FFLAGS=
6851echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6852echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6853if test "${ac_cv_prog_f77_g+set}" = set; then
6854  echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856  FFLAGS=-g
6857cat >conftest.$ac_ext <<_ACEOF
6858      program main
6859
6860      end
6861_ACEOF
6862rm -f conftest.$ac_objext
6863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6864  (eval $ac_compile) 2>conftest.er1
6865  ac_status=$?
6866  grep -v '^ *+' conftest.er1 >conftest.err
6867  rm -f conftest.er1
6868  cat conftest.err >&5
6869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870  (exit $ac_status); } &&
6871         { ac_try='test -z "$ac_f77_werror_flag"
6872                         || test ! -s conftest.err'
6873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874  (eval $ac_try) 2>&5
6875  ac_status=$?
6876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877  (exit $ac_status); }; } &&
6878         { ac_try='test -s conftest.$ac_objext'
6879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880  (eval $ac_try) 2>&5
6881  ac_status=$?
6882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883  (exit $ac_status); }; }; then
6884  ac_cv_prog_f77_g=yes
6885else
6886  echo "$as_me: failed program was:" >&5
6887sed 's/^/| /' conftest.$ac_ext >&5
6888
6889ac_cv_prog_f77_g=no
6890fi
6891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6892
6893fi
6894echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6895echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6896if test "$ac_test_FFLAGS" = set; then
6897  FFLAGS=$ac_save_FFLAGS
6898elif test $ac_cv_prog_f77_g = yes; then
6899  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6900    FFLAGS="-g -O2"
6901  else
6902    FFLAGS="-g"
6903  fi
6904else
6905  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6906    FFLAGS="-O2"
6907  else
6908    FFLAGS=
6909  fi
6910fi
6911
6912G77=`test $ac_compiler_gnu = yes && echo yes`
6913ac_ext=c
6914ac_cpp='$CPP $CPPFLAGS'
6915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917ac_compiler_gnu=$ac_cv_c_compiler_gnu
6918
6919
6920
6921# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6922
6923# find the maximum length of command line arguments
6924echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6925echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6926if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6927  echo $ECHO_N "(cached) $ECHO_C" >&6
6928else
6929    i=0
6930  teststring="ABCD"
6931
6932  case $build_os in
6933  msdosdjgpp*)
6934    # On DJGPP, this test can blow up pretty badly due to problems in libc
6935    # (any single argument exceeding 2000 bytes causes a buffer overrun
6936    # during glob expansion).  Even if it were fixed, the result of this
6937    # check would be larger than it should be.
6938    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6939    ;;
6940
6941  gnu*)
6942    # Under GNU Hurd, this test is not required because there is
6943    # no limit to the length of command line arguments.
6944    # Libtool will interpret -1 as no limit whatsoever
6945    lt_cv_sys_max_cmd_len=-1;
6946    ;;
6947
6948  cygwin* | mingw*)
6949    # On Win9x/ME, this test blows up -- it succeeds, but takes
6950    # about 5 minutes as the teststring grows exponentially.
6951    # Worse, since 9x/ME are not pre-emptively multitasking,
6952    # you end up with a "frozen" computer, even though with patience
6953    # the test eventually succeeds (with a max line length of 256k).
6954    # Instead, let's just punt: use the minimum linelength reported by
6955    # all of the supported platforms: 8192 (on NT/2K/XP).
6956    lt_cv_sys_max_cmd_len=8192;
6957    ;;
6958
6959  amigaos*)
6960    # On AmigaOS with pdksh, this test takes hours, literally.
6961    # So we just punt and use a minimum line length of 8192.
6962    lt_cv_sys_max_cmd_len=8192;
6963    ;;
6964
6965  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6966    # This has been around since 386BSD, at least.  Likely further.
6967    if test -x /sbin/sysctl; then
6968      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6969    elif test -x /usr/sbin/sysctl; then
6970      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6971    else
6972      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6973    fi
6974    # And add a safety zone
6975    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6976    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6977    ;;
6978
6979  interix*)
6980    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6981    lt_cv_sys_max_cmd_len=196608
6982    ;;
6983
6984  osf*)
6985    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6986    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6987    # nice to cause kernel panics so lets avoid the loop below.
6988    # First set a reasonable default.
6989    lt_cv_sys_max_cmd_len=16384
6990    #
6991    if test -x /sbin/sysconfig; then
6992      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6993        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6994      esac
6995    fi
6996    ;;
6997  sco3.2v5*)
6998    lt_cv_sys_max_cmd_len=102400
6999    ;;
7000  sysv5* | sco5v6* | sysv4.2uw2*)
7001    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7002    if test -n "$kargmax"; then
7003      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7004    else
7005      lt_cv_sys_max_cmd_len=32768
7006    fi
7007    ;;
7008  *)
7009    # If test is not a shell built-in, we'll probably end up computing a
7010    # maximum length that is only half of the actual maximum length, but
7011    # we can't tell.
7012    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7013    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7014               = "XX$teststring") >/dev/null 2>&1 &&
7015            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7016            lt_cv_sys_max_cmd_len=$new_result &&
7017            test $i != 17 # 1/2 MB should be enough
7018    do
7019      i=`expr $i + 1`
7020      teststring=$teststring$teststring
7021    done
7022    teststring=
7023    # Add a significant safety factor because C++ compilers can tack on massive
7024    # amounts of additional arguments before passing them to the linker.
7025    # It appears as though 1/2 is a usable value.
7026    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7027    ;;
7028  esac
7029
7030fi
7031
7032if test -n $lt_cv_sys_max_cmd_len ; then
7033  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7034echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7035else
7036  echo "$as_me:$LINENO: result: none" >&5
7037echo "${ECHO_T}none" >&6
7038fi
7039
7040
7041
7042
7043# Check for command to grab the raw symbol name followed by C symbol from nm.
7044echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7045echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7046if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7047  echo $ECHO_N "(cached) $ECHO_C" >&6
7048else
7049
7050# These are sane defaults that work on at least a few old systems.
7051# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7052
7053# Character class describing NM global symbol codes.
7054symcode='[BCDEGRST]'
7055
7056# Regexp to match symbols that can be accessed directly from C.
7057sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7058
7059# Transform an extracted symbol line into a proper C declaration
7060lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7061
7062# Transform an extracted symbol line into symbol name and symbol address
7063lt_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'"
7064
7065# Define system-specific variables.
7066case $host_os in
7067aix*)
7068  symcode='[BCDT]'
7069  ;;
7070cygwin* | mingw* | pw32*)
7071  symcode='[ABCDGISTW]'
7072  ;;
7073hpux*) # Its linker distinguishes data from code symbols
7074  if test "$host_cpu" = ia64; then
7075    symcode='[ABCDEGRST]'
7076  fi
7077  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7078  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'"
7079  ;;
7080linux*)
7081  if test "$host_cpu" = ia64; then
7082    symcode='[ABCDGIRSTW]'
7083    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7084    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'"
7085  fi
7086  ;;
7087irix* | nonstopux*)
7088  symcode='[BCDEGRST]'
7089  ;;
7090osf*)
7091  symcode='[BCDEGQRST]'
7092  ;;
7093solaris*)
7094  symcode='[BDRT]'
7095  ;;
7096sco3.2v5*)
7097  symcode='[DT]'
7098  ;;
7099sysv4.2uw2*)
7100  symcode='[DT]'
7101  ;;
7102sysv5* | sco5v6* | unixware* | OpenUNIX*)
7103  symcode='[ABDT]'
7104  ;;
7105sysv4)
7106  symcode='[DFNSTU]'
7107  ;;
7108esac
7109
7110# Handle CRLF in mingw tool chain
7111opt_cr=
7112case $build_os in
7113mingw*)
7114  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7115  ;;
7116esac
7117
7118# If we're using GNU nm, then use its standard symbol codes.
7119case `$NM -V 2>&1` in
7120*GNU* | *'with BFD'*)
7121  symcode='[ABCDGIRSTW]' ;;
7122esac
7123
7124# Try without a prefix undercore, then with it.
7125for ac_symprfx in "" "_"; do
7126
7127  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7128  symxfrm="\\1 $ac_symprfx\\2 \\2"
7129
7130  # Write the raw and C identifiers.
7131  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7132
7133  # Check to see that the pipe works correctly.
7134  pipe_works=no
7135
7136  rm -f conftest*
7137  cat > conftest.$ac_ext <<EOF
7138#ifdef __cplusplus
7139extern "C" {
7140#endif
7141char nm_test_var;
7142void nm_test_func(){}
7143#ifdef __cplusplus
7144}
7145#endif
7146int main(){nm_test_var='a';nm_test_func();return(0);}
7147EOF
7148
7149  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7150  (eval $ac_compile) 2>&5
7151  ac_status=$?
7152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153  (exit $ac_status); }; then
7154    # Now try to grab the symbols.
7155    nlist=conftest.nm
7156    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7157  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7158  ac_status=$?
7159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160  (exit $ac_status); } && test -s "$nlist"; then
7161      # Try sorting and uniquifying the output.
7162      if sort "$nlist" | uniq > "$nlist"T; then
7163        mv -f "$nlist"T "$nlist"
7164      else
7165        rm -f "$nlist"T
7166      fi
7167
7168      # Make sure that we snagged all the symbols we need.
7169      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7170        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7171          cat <<EOF > conftest.$ac_ext
7172#ifdef __cplusplus
7173extern "C" {
7174#endif
7175
7176EOF
7177          # Now generate the symbol file.
7178          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7179
7180          cat <<EOF >> conftest.$ac_ext
7181#if defined (__STDC__) && __STDC__
7182# define lt_ptr_t void *
7183#else
7184# define lt_ptr_t char *
7185# define const
7186#endif
7187
7188/* The mapping between symbol names and symbols. */
7189const struct {
7190  const char *name;
7191  lt_ptr_t address;
7192}
7193lt_preloaded_symbols[] =
7194{
7195EOF
7196          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7197          cat <<\EOF >> conftest.$ac_ext
7198  {0, (lt_ptr_t) 0}
7199};
7200
7201#ifdef __cplusplus
7202}
7203#endif
7204EOF
7205          # Now try linking the two files.
7206          mv conftest.$ac_objext conftstm.$ac_objext
7207          lt_save_LIBS="$LIBS"
7208          lt_save_CFLAGS="$CFLAGS"
7209          LIBS="conftstm.$ac_objext"
7210          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7211          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7212  (eval $ac_link) 2>&5
7213  ac_status=$?
7214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7216            pipe_works=yes
7217          fi
7218          LIBS="$lt_save_LIBS"
7219          CFLAGS="$lt_save_CFLAGS"
7220        else
7221          echo "cannot find nm_test_func in $nlist" >&5
7222        fi
7223      else
7224        echo "cannot find nm_test_var in $nlist" >&5
7225      fi
7226    else
7227      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7228    fi
7229  else
7230    echo "$progname: failed program was:" >&5
7231    cat conftest.$ac_ext >&5
7232  fi
7233  rm -f conftest* conftst*
7234
7235  # Do not use the global_symbol_pipe unless it works.
7236  if test "$pipe_works" = yes; then
7237    break
7238  else
7239    lt_cv_sys_global_symbol_pipe=
7240  fi
7241done
7242
7243fi
7244
7245if test -z "$lt_cv_sys_global_symbol_pipe"; then
7246  lt_cv_sys_global_symbol_to_cdecl=
7247fi
7248if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7249  echo "$as_me:$LINENO: result: failed" >&5
7250echo "${ECHO_T}failed" >&6
7251else
7252  echo "$as_me:$LINENO: result: ok" >&5
7253echo "${ECHO_T}ok" >&6
7254fi
7255
7256echo "$as_me:$LINENO: checking for objdir" >&5
7257echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7258if test "${lt_cv_objdir+set}" = set; then
7259  echo $ECHO_N "(cached) $ECHO_C" >&6
7260else
7261  rm -f .libs 2>/dev/null
7262mkdir .libs 2>/dev/null
7263if test -d .libs; then
7264  lt_cv_objdir=.libs
7265else
7266  # MS-DOS does not allow filenames that begin with a dot.
7267  lt_cv_objdir=_libs
7268fi
7269rmdir .libs 2>/dev/null
7270fi
7271echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7272echo "${ECHO_T}$lt_cv_objdir" >&6
7273objdir=$lt_cv_objdir
7274
7275
7276
7277
7278
7279case $host_os in
7280aix3*)
7281  # AIX sometimes has problems with the GCC collect2 program.  For some
7282  # reason, if we set the COLLECT_NAMES environment variable, the problems
7283  # vanish in a puff of smoke.
7284  if test "X${COLLECT_NAMES+set}" != Xset; then
7285    COLLECT_NAMES=
7286    export COLLECT_NAMES
7287  fi
7288  ;;
7289esac
7290
7291# Sed substitution that helps us do robust quoting.  It backslashifies
7292# metacharacters that are still active within double-quoted strings.
7293Xsed='sed -e 1s/^X//'
7294sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7295
7296# Same as above, but do not quote variable references.
7297double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7298
7299# Sed substitution to delay expansion of an escaped shell variable in a
7300# double_quote_subst'ed string.
7301delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7302
7303# Sed substitution to avoid accidental globbing in evaled expressions
7304no_glob_subst='s/\*/\\\*/g'
7305
7306# Constants:
7307rm="rm -f"
7308
7309# Global variables:
7310default_ofile=libtool
7311can_build_shared=yes
7312
7313# All known linkers require a `.a' archive for static linking (except MSVC,
7314# which needs '.lib').
7315libext=a
7316ltmain="$ac_aux_dir/ltmain.sh"
7317ofile="$default_ofile"
7318with_gnu_ld="$lt_cv_prog_gnu_ld"
7319
7320if test -n "$ac_tool_prefix"; then
7321  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7322set dummy ${ac_tool_prefix}ar; ac_word=$2
7323echo "$as_me:$LINENO: checking for $ac_word" >&5
7324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7325if test "${ac_cv_prog_AR+set}" = set; then
7326  echo $ECHO_N "(cached) $ECHO_C" >&6
7327else
7328  if test -n "$AR"; then
7329  ac_cv_prog_AR="$AR" # Let the user override the test.
7330else
7331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332for as_dir in $PATH
7333do
7334  IFS=$as_save_IFS
7335  test -z "$as_dir" && as_dir=.
7336  for ac_exec_ext in '' $ac_executable_extensions; do
7337  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338    ac_cv_prog_AR="${ac_tool_prefix}ar"
7339    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7340    break 2
7341  fi
7342done
7343done
7344
7345fi
7346fi
7347AR=$ac_cv_prog_AR
7348if test -n "$AR"; then
7349  echo "$as_me:$LINENO: result: $AR" >&5
7350echo "${ECHO_T}$AR" >&6
7351else
7352  echo "$as_me:$LINENO: result: no" >&5
7353echo "${ECHO_T}no" >&6
7354fi
7355
7356fi
7357if test -z "$ac_cv_prog_AR"; then
7358  ac_ct_AR=$AR
7359  # Extract the first word of "ar", so it can be a program name with args.
7360set dummy ar; ac_word=$2
7361echo "$as_me:$LINENO: checking for $ac_word" >&5
7362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7363if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7364  echo $ECHO_N "(cached) $ECHO_C" >&6
7365else
7366  if test -n "$ac_ct_AR"; then
7367  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7368else
7369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370for as_dir in $PATH
7371do
7372  IFS=$as_save_IFS
7373  test -z "$as_dir" && as_dir=.
7374  for ac_exec_ext in '' $ac_executable_extensions; do
7375  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376    ac_cv_prog_ac_ct_AR="ar"
7377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7378    break 2
7379  fi
7380done
7381done
7382
7383  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7384fi
7385fi
7386ac_ct_AR=$ac_cv_prog_ac_ct_AR
7387if test -n "$ac_ct_AR"; then
7388  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7389echo "${ECHO_T}$ac_ct_AR" >&6
7390else
7391  echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6
7393fi
7394
7395  AR=$ac_ct_AR
7396else
7397  AR="$ac_cv_prog_AR"
7398fi
7399
7400if test -n "$ac_tool_prefix"; then
7401  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7402set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7403echo "$as_me:$LINENO: checking for $ac_word" >&5
7404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7405if test "${ac_cv_prog_RANLIB+set}" = set; then
7406  echo $ECHO_N "(cached) $ECHO_C" >&6
7407else
7408  if test -n "$RANLIB"; then
7409  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7410else
7411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414  IFS=$as_save_IFS
7415  test -z "$as_dir" && as_dir=.
7416  for ac_exec_ext in '' $ac_executable_extensions; do
7417  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7419    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7420    break 2
7421  fi
7422done
7423done
7424
7425fi
7426fi
7427RANLIB=$ac_cv_prog_RANLIB
7428if test -n "$RANLIB"; then
7429  echo "$as_me:$LINENO: result: $RANLIB" >&5
7430echo "${ECHO_T}$RANLIB" >&6
7431else
7432  echo "$as_me:$LINENO: result: no" >&5
7433echo "${ECHO_T}no" >&6
7434fi
7435
7436fi
7437if test -z "$ac_cv_prog_RANLIB"; then
7438  ac_ct_RANLIB=$RANLIB
7439  # Extract the first word of "ranlib", so it can be a program name with args.
7440set dummy ranlib; ac_word=$2
7441echo "$as_me:$LINENO: checking for $ac_word" >&5
7442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7443if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7444  echo $ECHO_N "(cached) $ECHO_C" >&6
7445else
7446  if test -n "$ac_ct_RANLIB"; then
7447  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7448else
7449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452  IFS=$as_save_IFS
7453  test -z "$as_dir" && as_dir=.
7454  for ac_exec_ext in '' $ac_executable_extensions; do
7455  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456    ac_cv_prog_ac_ct_RANLIB="ranlib"
7457    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458    break 2
7459  fi
7460done
7461done
7462
7463  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7464fi
7465fi
7466ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7467if test -n "$ac_ct_RANLIB"; then
7468  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7469echo "${ECHO_T}$ac_ct_RANLIB" >&6
7470else
7471  echo "$as_me:$LINENO: result: no" >&5
7472echo "${ECHO_T}no" >&6
7473fi
7474
7475  RANLIB=$ac_ct_RANLIB
7476else
7477  RANLIB="$ac_cv_prog_RANLIB"
7478fi
7479
7480if test -n "$ac_tool_prefix"; then
7481  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7482set dummy ${ac_tool_prefix}strip; ac_word=$2
7483echo "$as_me:$LINENO: checking for $ac_word" >&5
7484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7485if test "${ac_cv_prog_STRIP+set}" = set; then
7486  echo $ECHO_N "(cached) $ECHO_C" >&6
7487else
7488  if test -n "$STRIP"; then
7489  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494  IFS=$as_save_IFS
7495  test -z "$as_dir" && as_dir=.
7496  for ac_exec_ext in '' $ac_executable_extensions; do
7497  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500    break 2
7501  fi
7502done
7503done
7504
7505fi
7506fi
7507STRIP=$ac_cv_prog_STRIP
7508if test -n "$STRIP"; then
7509  echo "$as_me:$LINENO: result: $STRIP" >&5
7510echo "${ECHO_T}$STRIP" >&6
7511else
7512  echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6
7514fi
7515
7516fi
7517if test -z "$ac_cv_prog_STRIP"; then
7518  ac_ct_STRIP=$STRIP
7519  # Extract the first word of "strip", so it can be a program name with args.
7520set dummy strip; ac_word=$2
7521echo "$as_me:$LINENO: checking for $ac_word" >&5
7522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7523if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7524  echo $ECHO_N "(cached) $ECHO_C" >&6
7525else
7526  if test -n "$ac_ct_STRIP"; then
7527  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7528else
7529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530for as_dir in $PATH
7531do
7532  IFS=$as_save_IFS
7533  test -z "$as_dir" && as_dir=.
7534  for ac_exec_ext in '' $ac_executable_extensions; do
7535  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7536    ac_cv_prog_ac_ct_STRIP="strip"
7537    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7538    break 2
7539  fi
7540done
7541done
7542
7543  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7544fi
7545fi
7546ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7547if test -n "$ac_ct_STRIP"; then
7548  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7549echo "${ECHO_T}$ac_ct_STRIP" >&6
7550else
7551  echo "$as_me:$LINENO: result: no" >&5
7552echo "${ECHO_T}no" >&6
7553fi
7554
7555  STRIP=$ac_ct_STRIP
7556else
7557  STRIP="$ac_cv_prog_STRIP"
7558fi
7559
7560
7561old_CC="$CC"
7562old_CFLAGS="$CFLAGS"
7563
7564# Set sane defaults for various variables
7565test -z "$AR" && AR=ar
7566test -z "$AR_FLAGS" && AR_FLAGS=cru
7567test -z "$AS" && AS=as
7568test -z "$CC" && CC=cc
7569test -z "$LTCC" && LTCC=$CC
7570test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7571test -z "$DLLTOOL" && DLLTOOL=dlltool
7572test -z "$LD" && LD=ld
7573test -z "$LN_S" && LN_S="ln -s"
7574test -z "$MAGIC_CMD" && MAGIC_CMD=file
7575test -z "$NM" && NM=nm
7576test -z "$SED" && SED=sed
7577test -z "$OBJDUMP" && OBJDUMP=objdump
7578test -z "$RANLIB" && RANLIB=:
7579test -z "$STRIP" && STRIP=:
7580test -z "$ac_objext" && ac_objext=o
7581
7582# Determine commands to create old-style static archives.
7583old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7584old_postinstall_cmds='chmod 644 $oldlib'
7585old_postuninstall_cmds=
7586
7587if test -n "$RANLIB"; then
7588  case $host_os in
7589  openbsd*)
7590    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7591    ;;
7592  *)
7593    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7594    ;;
7595  esac
7596  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7597fi
7598
7599for cc_temp in $compiler""; do
7600  case $cc_temp in
7601    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7602    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7603    \-*) ;;
7604    *) break;;
7605  esac
7606done
7607cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7608
7609
7610# Only perform the check for file, if the check method requires it
7611case $deplibs_check_method in
7612file_magic*)
7613  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7614    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7615echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7616if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7617  echo $ECHO_N "(cached) $ECHO_C" >&6
7618else
7619  case $MAGIC_CMD in
7620[\\/*] |  ?:[\\/]*)
7621  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7622  ;;
7623*)
7624  lt_save_MAGIC_CMD="$MAGIC_CMD"
7625  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7626  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7627  for ac_dir in $ac_dummy; do
7628    IFS="$lt_save_ifs"
7629    test -z "$ac_dir" && ac_dir=.
7630    if test -f $ac_dir/${ac_tool_prefix}file; then
7631      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7632      if test -n "$file_magic_test_file"; then
7633        case $deplibs_check_method in
7634        "file_magic "*)
7635          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7636          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7637          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7638            $EGREP "$file_magic_regex" > /dev/null; then
7639            :
7640          else
7641            cat <<EOF 1>&2
7642
7643*** Warning: the command libtool uses to detect shared libraries,
7644*** $file_magic_cmd, produces output that libtool cannot recognize.
7645*** The result is that libtool may fail to recognize shared libraries
7646*** as such.  This will affect the creation of libtool libraries that
7647*** depend on shared libraries, but programs linked with such libtool
7648*** libraries will work regardless of this problem.  Nevertheless, you
7649*** may want to report the problem to your system manager and/or to
7650*** bug-libtool@gnu.org
7651
7652EOF
7653          fi ;;
7654        esac
7655      fi
7656      break
7657    fi
7658  done
7659  IFS="$lt_save_ifs"
7660  MAGIC_CMD="$lt_save_MAGIC_CMD"
7661  ;;
7662esac
7663fi
7664
7665MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7666if test -n "$MAGIC_CMD"; then
7667  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7668echo "${ECHO_T}$MAGIC_CMD" >&6
7669else
7670  echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6
7672fi
7673
7674if test -z "$lt_cv_path_MAGIC_CMD"; then
7675  if test -n "$ac_tool_prefix"; then
7676    echo "$as_me:$LINENO: checking for file" >&5
7677echo $ECHO_N "checking for file... $ECHO_C" >&6
7678if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7679  echo $ECHO_N "(cached) $ECHO_C" >&6
7680else
7681  case $MAGIC_CMD in
7682[\\/*] |  ?:[\\/]*)
7683  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7684  ;;
7685*)
7686  lt_save_MAGIC_CMD="$MAGIC_CMD"
7687  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7688  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7689  for ac_dir in $ac_dummy; do
7690    IFS="$lt_save_ifs"
7691    test -z "$ac_dir" && ac_dir=.
7692    if test -f $ac_dir/file; then
7693      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7694      if test -n "$file_magic_test_file"; then
7695        case $deplibs_check_method in
7696        "file_magic "*)
7697          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7698          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7699          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7700            $EGREP "$file_magic_regex" > /dev/null; then
7701            :
7702          else
7703            cat <<EOF 1>&2
7704
7705*** Warning: the command libtool uses to detect shared libraries,
7706*** $file_magic_cmd, produces output that libtool cannot recognize.
7707*** The result is that libtool may fail to recognize shared libraries
7708*** as such.  This will affect the creation of libtool libraries that
7709*** depend on shared libraries, but programs linked with such libtool
7710*** libraries will work regardless of this problem.  Nevertheless, you
7711*** may want to report the problem to your system manager and/or to
7712*** bug-libtool@gnu.org
7713
7714EOF
7715          fi ;;
7716        esac
7717      fi
7718      break
7719    fi
7720  done
7721  IFS="$lt_save_ifs"
7722  MAGIC_CMD="$lt_save_MAGIC_CMD"
7723  ;;
7724esac
7725fi
7726
7727MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7728if test -n "$MAGIC_CMD"; then
7729  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7730echo "${ECHO_T}$MAGIC_CMD" >&6
7731else
7732  echo "$as_me:$LINENO: result: no" >&5
7733echo "${ECHO_T}no" >&6
7734fi
7735
7736  else
7737    MAGIC_CMD=:
7738  fi
7739fi
7740
7741  fi
7742  ;;
7743esac
7744
7745enable_dlopen=no
7746enable_win32_dll=no
7747
7748# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7749if test "${enable_libtool_lock+set}" = set; then
7750  enableval="$enable_libtool_lock"
7751
7752fi;
7753test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7754
7755
7756# Check whether --with-pic or --without-pic was given.
7757if test "${with_pic+set}" = set; then
7758  withval="$with_pic"
7759  pic_mode="$withval"
7760else
7761  pic_mode=default
7762fi;
7763test -z "$pic_mode" && pic_mode=default
7764
7765# Use C for the default configuration in the libtool script
7766tagname=
7767lt_save_CC="$CC"
7768ac_ext=c
7769ac_cpp='$CPP $CPPFLAGS'
7770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7772ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773
7774
7775# Source file extension for C test sources.
7776ac_ext=c
7777
7778# Object file extension for compiled C test sources.
7779objext=o
7780objext=$objext
7781
7782# Code to be used in simple compile tests
7783lt_simple_compile_test_code="int some_variable = 0;\n"
7784
7785# Code to be used in simple link tests
7786lt_simple_link_test_code='int main(){return(0);}\n'
7787
7788
7789# If no C compiler was specified, use CC.
7790LTCC=${LTCC-"$CC"}
7791
7792# If no C compiler flags were specified, use CFLAGS.
7793LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7794
7795# Allow CC to be a program name with arguments.
7796compiler=$CC
7797
7798
7799# save warnings/boilerplate of simple test code
7800ac_outfile=conftest.$ac_objext
7801printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7802eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7803_lt_compiler_boilerplate=`cat conftest.err`
7804$rm conftest*
7805
7806ac_outfile=conftest.$ac_objext
7807printf "$lt_simple_link_test_code" >conftest.$ac_ext
7808eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7809_lt_linker_boilerplate=`cat conftest.err`
7810$rm conftest*
7811
7812
7813## CAVEAT EMPTOR:
7814## There is no encapsulation within the following macros, do not change
7815## the running order or otherwise move them around unless you know exactly
7816## what you are doing...
7817
7818lt_prog_compiler_no_builtin_flag=
7819
7820if test "$GCC" = yes; then
7821  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7822
7823
7824echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7825echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7826if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7827  echo $ECHO_N "(cached) $ECHO_C" >&6
7828else
7829  lt_cv_prog_compiler_rtti_exceptions=no
7830  ac_outfile=conftest.$ac_objext
7831   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7832   lt_compiler_flag="-fno-rtti -fno-exceptions"
7833   # Insert the option either (1) after the last *FLAGS variable, or
7834   # (2) before a word containing "conftest.", or (3) at the end.
7835   # Note that $ac_compile itself does not contain backslashes and begins
7836   # with a dollar sign (not a hyphen), so the echo should work correctly.
7837   # The option is referenced via a variable to avoid confusing sed.
7838   lt_compile=`echo "$ac_compile" | $SED \
7839   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7840   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7841   -e 's:$: $lt_compiler_flag:'`
7842   (eval echo "\"\$as_me:7842: $lt_compile\"" >&5)
7843   (eval "$lt_compile" 2>conftest.err)
7844   ac_status=$?
7845   cat conftest.err >&5
7846   echo "$as_me:7846: \$? = $ac_status" >&5
7847   if (exit $ac_status) && test -s "$ac_outfile"; then
7848     # The compiler can only warn and ignore the option if not recognized
7849     # So say no if there are warnings other than the usual output.
7850     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7851     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7852     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7853       lt_cv_prog_compiler_rtti_exceptions=yes
7854     fi
7855   fi
7856   $rm conftest*
7857
7858fi
7859echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7860echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7861
7862if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7863    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7864else
7865    :
7866fi
7867
7868fi
7869
7870lt_prog_compiler_wl=
7871lt_prog_compiler_pic=
7872lt_prog_compiler_static=
7873
7874echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7875echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7876
7877  if test "$GCC" = yes; then
7878    lt_prog_compiler_wl='-Wl,'
7879    lt_prog_compiler_static='-static'
7880
7881    case $host_os in
7882      aix*)
7883      # All AIX code is PIC.
7884      if test "$host_cpu" = ia64; then
7885        # AIX 5 now supports IA64 processor
7886        lt_prog_compiler_static='-Bstatic'
7887      fi
7888      ;;
7889
7890    amigaos*)
7891      # FIXME: we need at least 68020 code to build shared libraries, but
7892      # adding the `-m68020' flag to GCC prevents building anything better,
7893      # like `-m68040'.
7894      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7895      ;;
7896
7897    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7898      # PIC is the default for these OSes.
7899      ;;
7900
7901    mingw* | pw32* | os2*)
7902      # This hack is so that the source file can tell whether it is being
7903      # built for inclusion in a dll (and should export symbols for example).
7904      lt_prog_compiler_pic='-DDLL_EXPORT'
7905      ;;
7906
7907    darwin* | rhapsody*)
7908      # PIC is the default on this platform
7909      # Common symbols not allowed in MH_DYLIB files
7910      lt_prog_compiler_pic='-fno-common'
7911      ;;
7912
7913    interix3*)
7914      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7915      # Instead, we relocate shared libraries at runtime.
7916      ;;
7917
7918    msdosdjgpp*)
7919      # Just because we use GCC doesn't mean we suddenly get shared libraries
7920      # on systems that don't support them.
7921      lt_prog_compiler_can_build_shared=no
7922      enable_shared=no
7923      ;;
7924
7925    sysv4*MP*)
7926      if test -d /usr/nec; then
7927        lt_prog_compiler_pic=-Kconform_pic
7928      fi
7929      ;;
7930
7931    hpux*)
7932      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7933      # not for PA HP-UX.
7934      case $host_cpu in
7935      hppa*64*|ia64*)
7936        # +Z the default
7937        ;;
7938      *)
7939        lt_prog_compiler_pic='-fPIC'
7940        ;;
7941      esac
7942      ;;
7943
7944    *)
7945      lt_prog_compiler_pic='-fPIC'
7946      ;;
7947    esac
7948  else
7949    # PORTME Check for flag to pass linker flags through the system compiler.
7950    case $host_os in
7951    aix*)
7952      lt_prog_compiler_wl='-Wl,'
7953      if test "$host_cpu" = ia64; then
7954        # AIX 5 now supports IA64 processor
7955        lt_prog_compiler_static='-Bstatic'
7956      else
7957        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7958      fi
7959      ;;
7960      darwin*)
7961        # PIC is the default on this platform
7962        # Common symbols not allowed in MH_DYLIB files
7963       case $cc_basename in
7964         xlc*)
7965         lt_prog_compiler_pic='-qnocommon'
7966         lt_prog_compiler_wl='-Wl,'
7967         ;;
7968       esac
7969       ;;
7970
7971    mingw* | pw32* | os2*)
7972      # This hack is so that the source file can tell whether it is being
7973      # built for inclusion in a dll (and should export symbols for example).
7974      lt_prog_compiler_pic='-DDLL_EXPORT'
7975      ;;
7976
7977    hpux9* | hpux10* | hpux11*)
7978      lt_prog_compiler_wl='-Wl,'
7979      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7980      # not for PA HP-UX.
7981      case $host_cpu in
7982      hppa*64*|ia64*)
7983        # +Z the default
7984        ;;
7985      *)
7986        lt_prog_compiler_pic='+Z'
7987        ;;
7988      esac
7989      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7990      lt_prog_compiler_static='${wl}-a ${wl}archive'
7991      ;;
7992
7993    irix5* | irix6* | nonstopux*)
7994      lt_prog_compiler_wl='-Wl,'
7995      # PIC (with -KPIC) is the default.
7996      lt_prog_compiler_static='-non_shared'
7997      ;;
7998
7999    newsos6)
8000      lt_prog_compiler_pic='-KPIC'
8001      lt_prog_compiler_static='-Bstatic'
8002      ;;
8003
8004    linux*)
8005      case $cc_basename in
8006      icc* | ecc*)
8007        lt_prog_compiler_wl='-Wl,'
8008        lt_prog_compiler_pic='-KPIC'
8009        lt_prog_compiler_static='-static'
8010        ;;
8011      pgcc* | pgf77* | pgf90* | pgf95*)
8012        # Portland Group compilers (*not* the Pentium gcc compiler,
8013        # which looks to be a dead project)
8014        lt_prog_compiler_wl='-Wl,'
8015        lt_prog_compiler_pic='-fpic'
8016        lt_prog_compiler_static='-Bstatic'
8017        ;;
8018      ccc*)
8019        lt_prog_compiler_wl='-Wl,'
8020        # All Alpha code is PIC.
8021        lt_prog_compiler_static='-non_shared'
8022        ;;
8023      esac
8024      ;;
8025
8026    osf3* | osf4* | osf5*)
8027      lt_prog_compiler_wl='-Wl,'
8028      # All OSF/1 code is PIC.
8029      lt_prog_compiler_static='-non_shared'
8030      ;;
8031
8032    solaris*)
8033      lt_prog_compiler_pic='-KPIC'
8034      lt_prog_compiler_static='-Bstatic'
8035      case $cc_basename in
8036      f77* | f90* | f95*)
8037        lt_prog_compiler_wl='-Qoption ld ';;
8038      *)
8039        lt_prog_compiler_wl='-Wl,';;
8040      esac
8041      ;;
8042
8043    sunos4*)
8044      lt_prog_compiler_wl='-Qoption ld '
8045      lt_prog_compiler_pic='-PIC'
8046      lt_prog_compiler_static='-Bstatic'
8047      ;;
8048
8049    sysv4 | sysv4.2uw2* | sysv4.3*)
8050      lt_prog_compiler_wl='-Wl,'
8051      lt_prog_compiler_pic='-KPIC'
8052      lt_prog_compiler_static='-Bstatic'
8053      ;;
8054
8055    sysv4*MP*)
8056      if test -d /usr/nec ;then
8057        lt_prog_compiler_pic='-Kconform_pic'
8058        lt_prog_compiler_static='-Bstatic'
8059      fi
8060      ;;
8061
8062    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8063      lt_prog_compiler_wl='-Wl,'
8064      lt_prog_compiler_pic='-KPIC'
8065      lt_prog_compiler_static='-Bstatic'
8066      ;;
8067
8068    unicos*)
8069      lt_prog_compiler_wl='-Wl,'
8070      lt_prog_compiler_can_build_shared=no
8071      ;;
8072
8073    uts4*)
8074      lt_prog_compiler_pic='-pic'
8075      lt_prog_compiler_static='-Bstatic'
8076      ;;
8077
8078    *)
8079      lt_prog_compiler_can_build_shared=no
8080      ;;
8081    esac
8082  fi
8083
8084echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8085echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8086
8087#
8088# Check to make sure the PIC flag actually works.
8089#
8090if test -n "$lt_prog_compiler_pic"; then
8091
8092echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8093echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8094if test "${lt_prog_compiler_pic_works+set}" = set; then
8095  echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097  lt_prog_compiler_pic_works=no
8098  ac_outfile=conftest.$ac_objext
8099   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8100   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8101   # Insert the option either (1) after the last *FLAGS variable, or
8102   # (2) before a word containing "conftest.", or (3) at the end.
8103   # Note that $ac_compile itself does not contain backslashes and begins
8104   # with a dollar sign (not a hyphen), so the echo should work correctly.
8105   # The option is referenced via a variable to avoid confusing sed.
8106   lt_compile=`echo "$ac_compile" | $SED \
8107   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8108   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8109   -e 's:$: $lt_compiler_flag:'`
8110   (eval echo "\"\$as_me:8110: $lt_compile\"" >&5)
8111   (eval "$lt_compile" 2>conftest.err)
8112   ac_status=$?
8113   cat conftest.err >&5
8114   echo "$as_me:8114: \$? = $ac_status" >&5
8115   if (exit $ac_status) && test -s "$ac_outfile"; then
8116     # The compiler can only warn and ignore the option if not recognized
8117     # So say no if there are warnings other than the usual output.
8118     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8119     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8120     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8121       lt_prog_compiler_pic_works=yes
8122     fi
8123   fi
8124   $rm conftest*
8125
8126fi
8127echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8128echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8129
8130if test x"$lt_prog_compiler_pic_works" = xyes; then
8131    case $lt_prog_compiler_pic in
8132     "" | " "*) ;;
8133     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8134     esac
8135else
8136    lt_prog_compiler_pic=
8137     lt_prog_compiler_can_build_shared=no
8138fi
8139
8140fi
8141case $host_os in
8142  # For platforms which do not support PIC, -DPIC is meaningless:
8143  *djgpp*)
8144    lt_prog_compiler_pic=
8145    ;;
8146  *)
8147    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8148    ;;
8149esac
8150
8151#
8152# Check to make sure the static flag actually works.
8153#
8154wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8155echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8156echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8157if test "${lt_prog_compiler_static_works+set}" = set; then
8158  echo $ECHO_N "(cached) $ECHO_C" >&6
8159else
8160  lt_prog_compiler_static_works=no
8161   save_LDFLAGS="$LDFLAGS"
8162   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8163   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8164   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8165     # The linker can only warn and ignore the option if not recognized
8166     # So say no if there are warnings
8167     if test -s conftest.err; then
8168       # Append any errors to the config.log.
8169       cat conftest.err 1>&5
8170       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8171       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8172       if diff conftest.exp conftest.er2 >/dev/null; then
8173         lt_prog_compiler_static_works=yes
8174       fi
8175     else
8176       lt_prog_compiler_static_works=yes
8177     fi
8178   fi
8179   $rm conftest*
8180   LDFLAGS="$save_LDFLAGS"
8181
8182fi
8183echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8184echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8185
8186if test x"$lt_prog_compiler_static_works" = xyes; then
8187    :
8188else
8189    lt_prog_compiler_static=
8190fi
8191
8192
8193echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8194echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8195if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8196  echo $ECHO_N "(cached) $ECHO_C" >&6
8197else
8198  lt_cv_prog_compiler_c_o=no
8199   $rm -r conftest 2>/dev/null
8200   mkdir conftest
8201   cd conftest
8202   mkdir out
8203   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8204
8205   lt_compiler_flag="-o out/conftest2.$ac_objext"
8206   # Insert the option either (1) after the last *FLAGS variable, or
8207   # (2) before a word containing "conftest.", or (3) at the end.
8208   # Note that $ac_compile itself does not contain backslashes and begins
8209   # with a dollar sign (not a hyphen), so the echo should work correctly.
8210   lt_compile=`echo "$ac_compile" | $SED \
8211   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8212   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8213   -e 's:$: $lt_compiler_flag:'`
8214   (eval echo "\"\$as_me:8214: $lt_compile\"" >&5)
8215   (eval "$lt_compile" 2>out/conftest.err)
8216   ac_status=$?
8217   cat out/conftest.err >&5
8218   echo "$as_me:8218: \$? = $ac_status" >&5
8219   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8220   then
8221     # The compiler can only warn and ignore the option if not recognized
8222     # So say no if there are warnings
8223     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8224     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8225     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8226       lt_cv_prog_compiler_c_o=yes
8227     fi
8228   fi
8229   chmod u+w . 2>&5
8230   $rm conftest*
8231   # SGI C++ compiler will create directory out/ii_files/ for
8232   # template instantiation
8233   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8234   $rm out/* && rmdir out
8235   cd ..
8236   rmdir conftest
8237   $rm conftest*
8238
8239fi
8240echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8241echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8242
8243
8244hard_links="nottested"
8245if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8246  # do not overwrite the value of need_locks provided by the user
8247  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8248echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8249  hard_links=yes
8250  $rm conftest*
8251  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8252  touch conftest.a
8253  ln conftest.a conftest.b 2>&5 || hard_links=no
8254  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8255  echo "$as_me:$LINENO: result: $hard_links" >&5
8256echo "${ECHO_T}$hard_links" >&6
8257  if test "$hard_links" = no; then
8258    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8259echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8260    need_locks=warn
8261  fi
8262else
8263  need_locks=no
8264fi
8265
8266echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8267echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8268
8269  runpath_var=
8270  allow_undefined_flag=
8271  enable_shared_with_static_runtimes=no
8272  archive_cmds=
8273  archive_expsym_cmds=
8274  old_archive_From_new_cmds=
8275  old_archive_from_expsyms_cmds=
8276  export_dynamic_flag_spec=
8277  whole_archive_flag_spec=
8278  thread_safe_flag_spec=
8279  hardcode_libdir_flag_spec=
8280  hardcode_libdir_flag_spec_ld=
8281  hardcode_libdir_separator=
8282  hardcode_direct=no
8283  hardcode_minus_L=no
8284  hardcode_shlibpath_var=unsupported
8285  link_all_deplibs=unknown
8286  hardcode_automatic=no
8287  module_cmds=
8288  module_expsym_cmds=
8289  always_export_symbols=no
8290  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8291  # include_expsyms should be a list of space-separated symbols to be *always*
8292  # included in the symbol list
8293  include_expsyms=
8294  # exclude_expsyms can be an extended regexp of symbols to exclude
8295  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8296  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8297  # as well as any symbol that contains `d'.
8298  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8299  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8300  # platforms (ab)use it in PIC code, but their linkers get confused if
8301  # the symbol is explicitly referenced.  Since portable code cannot
8302  # rely on this symbol name, it's probably fine to never include it in
8303  # preloaded symbol tables.
8304  extract_expsyms_cmds=
8305  # Just being paranoid about ensuring that cc_basename is set.
8306  for cc_temp in $compiler""; do
8307  case $cc_temp in
8308    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8309    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8310    \-*) ;;
8311    *) break;;
8312  esac
8313done
8314cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8315
8316  case $host_os in
8317  cygwin* | mingw* | pw32*)
8318    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8319    # When not using gcc, we currently assume that we are using
8320    # Microsoft Visual C++.
8321    if test "$GCC" != yes; then
8322      with_gnu_ld=no
8323    fi
8324    ;;
8325  interix*)
8326    # we just hope/assume this is gcc and not c89 (= MSVC++)
8327    with_gnu_ld=yes
8328    ;;
8329  openbsd*)
8330    with_gnu_ld=no
8331    ;;
8332  esac
8333
8334  ld_shlibs=yes
8335  if test "$with_gnu_ld" = yes; then
8336    # If archive_cmds runs LD, not CC, wlarc should be empty
8337    wlarc='${wl}'
8338
8339    # Set some defaults for GNU ld with shared library support. These
8340    # are reset later if shared libraries are not supported. Putting them
8341    # here allows them to be overridden if necessary.
8342    runpath_var=LD_RUN_PATH
8343    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8344    export_dynamic_flag_spec='${wl}--export-dynamic'
8345    # ancient GNU ld didn't support --whole-archive et. al.
8346    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8347        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8348      else
8349        whole_archive_flag_spec=
8350    fi
8351    supports_anon_versioning=no
8352    case `$LD -v 2>/dev/null` in
8353      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8354      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8355      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8356      *\ 2.11.*) ;; # other 2.11 versions
8357      *) supports_anon_versioning=yes ;;
8358    esac
8359
8360    # See if GNU ld supports shared libraries.
8361    case $host_os in
8362    aix3* | aix4* | aix5*)
8363      # On AIX/PPC, the GNU linker is very broken
8364      if test "$host_cpu" != ia64; then
8365        ld_shlibs=no
8366        cat <<EOF 1>&2
8367
8368*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8369*** to be unable to reliably create shared libraries on AIX.
8370*** Therefore, libtool is disabling shared libraries support.  If you
8371*** really care for shared libraries, you may want to modify your PATH
8372*** so that a non-GNU linker is found, and then restart.
8373
8374EOF
8375      fi
8376      ;;
8377
8378    amigaos*)
8379      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)'
8380      hardcode_libdir_flag_spec='-L$libdir'
8381      hardcode_minus_L=yes
8382
8383      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8384      # that the semantics of dynamic libraries on AmigaOS, at least up
8385      # to version 4, is to share data among multiple programs linked
8386      # with the same dynamic library.  Since this doesn't match the
8387      # behavior of shared libraries on other platforms, we can't use
8388      # them.
8389      ld_shlibs=no
8390      ;;
8391
8392    beos*)
8393      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8394        allow_undefined_flag=unsupported
8395        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8396        # support --undefined.  This deserves some investigation.  FIXME
8397        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8398      else
8399        ld_shlibs=no
8400      fi
8401      ;;
8402
8403    cygwin* | mingw* | pw32*)
8404      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8405      # as there is no search path for DLLs.
8406      hardcode_libdir_flag_spec='-L$libdir'
8407      allow_undefined_flag=unsupported
8408      always_export_symbols=no
8409      enable_shared_with_static_runtimes=yes
8410      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8411
8412      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8413        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8414        # If the export-symbols file already is a .def file (1st line
8415        # is EXPORTS), use it as is; otherwise, prepend...
8416        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8417          cp $export_symbols $output_objdir/$soname.def;
8418        else
8419          echo EXPORTS > $output_objdir/$soname.def;
8420          cat $export_symbols >> $output_objdir/$soname.def;
8421        fi~
8422        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8423      else
8424        ld_shlibs=no
8425      fi
8426      ;;
8427
8428    interix3*)
8429      hardcode_direct=no
8430      hardcode_shlibpath_var=no
8431      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8432      export_dynamic_flag_spec='${wl}-E'
8433      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8434      # Instead, shared libraries are loaded at an image base (0x10000000 by
8435      # default) and relocated if they conflict, which is a slow very memory
8436      # consuming and fragmenting process.  To avoid this, we pick a random,
8437      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8438      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8439      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8440      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'
8441      ;;
8442
8443    linux*)
8444      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8445        tmp_addflag=
8446        case $cc_basename,$host_cpu in
8447        pgcc*)                          # Portland Group C compiler
8448          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'
8449          tmp_addflag=' $pic_flag'
8450          ;;
8451        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8452          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'
8453          tmp_addflag=' $pic_flag -Mnomain' ;;
8454        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8455          tmp_addflag=' -i_dynamic' ;;
8456        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8457          tmp_addflag=' -i_dynamic -nofor_main' ;;
8458        ifc* | ifort*)                  # Intel Fortran compiler
8459          tmp_addflag=' -nofor_main' ;;
8460        esac
8461        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8462
8463        if test $supports_anon_versioning = yes; then
8464          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8465  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8466  $echo "local: *; };" >> $output_objdir/$libname.ver~
8467          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8468        fi
8469      else
8470        ld_shlibs=no
8471      fi
8472      ;;
8473
8474    netbsd*)
8475      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8476        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8477        wlarc=
8478      else
8479        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8480        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8481      fi
8482      ;;
8483
8484    solaris*)
8485      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8486        ld_shlibs=no
8487        cat <<EOF 1>&2
8488
8489*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8490*** create shared libraries on Solaris systems.  Therefore, libtool
8491*** is disabling shared libraries support.  We urge you to upgrade GNU
8492*** binutils to release 2.9.1 or newer.  Another option is to modify
8493*** your PATH or compiler configuration so that the native linker is
8494*** used, and then restart.
8495
8496EOF
8497      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8498        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8499        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8500      else
8501        ld_shlibs=no
8502      fi
8503      ;;
8504
8505    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8506      case `$LD -v 2>&1` in
8507        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8508        ld_shlibs=no
8509        cat <<_LT_EOF 1>&2
8510
8511*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8512*** reliably create shared libraries on SCO systems.  Therefore, libtool
8513*** is disabling shared libraries support.  We urge you to upgrade GNU
8514*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8515*** your PATH or compiler configuration so that the native linker is
8516*** used, and then restart.
8517
8518_LT_EOF
8519        ;;
8520        *)
8521          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8522            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8523            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8524            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8525          else
8526            ld_shlibs=no
8527          fi
8528        ;;
8529      esac
8530      ;;
8531
8532    sunos4*)
8533      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8534      wlarc=
8535      hardcode_direct=yes
8536      hardcode_shlibpath_var=no
8537      ;;
8538
8539    *)
8540      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8541        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8542        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8543      else
8544        ld_shlibs=no
8545      fi
8546      ;;
8547    esac
8548
8549    if test "$ld_shlibs" = no; then
8550      runpath_var=
8551      hardcode_libdir_flag_spec=
8552      export_dynamic_flag_spec=
8553      whole_archive_flag_spec=
8554    fi
8555  else
8556    # PORTME fill in a description of your system's linker (not GNU ld)
8557    case $host_os in
8558    aix3*)
8559      allow_undefined_flag=unsupported
8560      always_export_symbols=yes
8561      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'
8562      # Note: this linker hardcodes the directories in LIBPATH if there
8563      # are no directories specified by -L.
8564      hardcode_minus_L=yes
8565      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8566        # Neither direct hardcoding nor static linking is supported with a
8567        # broken collect2.
8568        hardcode_direct=unsupported
8569      fi
8570      ;;
8571
8572    aix4* | aix5*)
8573      if test "$host_cpu" = ia64; then
8574        # On IA64, the linker does run time linking by default, so we don't
8575        # have to do anything special.
8576        aix_use_runtimelinking=no
8577        exp_sym_flag='-Bexport'
8578        no_entry_flag=""
8579      else
8580        # If we're using GNU nm, then we don't want the "-C" option.
8581        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8582        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8583          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'
8584        else
8585          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'
8586        fi
8587        aix_use_runtimelinking=no
8588
8589        # Test if we are trying to use run time linking or normal
8590        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8591        # need to do runtime linking.
8592        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8593          for ld_flag in $LDFLAGS; do
8594          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8595            aix_use_runtimelinking=yes
8596            break
8597          fi
8598          done
8599          ;;
8600        esac
8601
8602        exp_sym_flag='-bexport'
8603        no_entry_flag='-bnoentry'
8604      fi
8605
8606      # When large executables or shared objects are built, AIX ld can
8607      # have problems creating the table of contents.  If linking a library
8608      # or program results in "error TOC overflow" add -mminimal-toc to
8609      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8610      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8611
8612      archive_cmds=''
8613      hardcode_direct=yes
8614      hardcode_libdir_separator=':'
8615      link_all_deplibs=yes
8616
8617      if test "$GCC" = yes; then
8618        case $host_os in aix4.[012]|aix4.[012].*)
8619        # We only want to do this on AIX 4.2 and lower, the check
8620        # below for broken collect2 doesn't work under 4.3+
8621          collect2name=`${CC} -print-prog-name=collect2`
8622          if test -f "$collect2name" && \
8623           strings "$collect2name" | grep resolve_lib_name >/dev/null
8624          then
8625          # We have reworked collect2
8626          hardcode_direct=yes
8627          else
8628          # We have old collect2
8629          hardcode_direct=unsupported
8630          # It fails to find uninstalled libraries when the uninstalled
8631          # path is not listed in the libpath.  Setting hardcode_minus_L
8632          # to unsupported forces relinking
8633          hardcode_minus_L=yes
8634          hardcode_libdir_flag_spec='-L$libdir'
8635          hardcode_libdir_separator=
8636          fi
8637          ;;
8638        esac
8639        shared_flag='-shared'
8640        if test "$aix_use_runtimelinking" = yes; then
8641          shared_flag="$shared_flag "'${wl}-G'
8642        fi
8643      else
8644        # not using gcc
8645        if test "$host_cpu" = ia64; then
8646        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8647        # chokes on -Wl,-G. The following line is correct:
8648          shared_flag='-G'
8649        else
8650          if test "$aix_use_runtimelinking" = yes; then
8651            shared_flag='${wl}-G'
8652          else
8653            shared_flag='${wl}-bM:SRE'
8654          fi
8655        fi
8656      fi
8657
8658      # It seems that -bexpall does not export symbols beginning with
8659      # underscore (_), so it is better to generate a list of symbols to export.
8660      always_export_symbols=yes
8661      if test "$aix_use_runtimelinking" = yes; then
8662        # Warning - without using the other runtime loading flags (-brtl),
8663        # -berok will link without error, but may produce a broken library.
8664        allow_undefined_flag='-berok'
8665       # Determine the default libpath from the value encoded in an empty executable.
8666       cat >conftest.$ac_ext <<_ACEOF
8667/* confdefs.h.  */
8668_ACEOF
8669cat confdefs.h >>conftest.$ac_ext
8670cat >>conftest.$ac_ext <<_ACEOF
8671/* end confdefs.h.  */
8672
8673int
8674main ()
8675{
8676
8677  ;
8678  return 0;
8679}
8680_ACEOF
8681rm -f conftest.$ac_objext conftest$ac_exeext
8682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8683  (eval $ac_link) 2>conftest.er1
8684  ac_status=$?
8685  grep -v '^ *+' conftest.er1 >conftest.err
8686  rm -f conftest.er1
8687  cat conftest.err >&5
8688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689  (exit $ac_status); } &&
8690         { ac_try='test -z "$ac_c_werror_flag"
8691                         || test ! -s conftest.err'
8692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8693  (eval $ac_try) 2>&5
8694  ac_status=$?
8695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696  (exit $ac_status); }; } &&
8697         { ac_try='test -s conftest$ac_exeext'
8698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8699  (eval $ac_try) 2>&5
8700  ac_status=$?
8701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702  (exit $ac_status); }; }; then
8703
8704aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8705}'`
8706# Check for a 64-bit object if we didn't find anything.
8707if 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; }
8708}'`; fi
8709else
8710  echo "$as_me: failed program was:" >&5
8711sed 's/^/| /' conftest.$ac_ext >&5
8712
8713fi
8714rm -f conftest.err conftest.$ac_objext \
8715      conftest$ac_exeext conftest.$ac_ext
8716if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8717
8718       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8719        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"
8720       else
8721        if test "$host_cpu" = ia64; then
8722          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8723          allow_undefined_flag="-z nodefs"
8724          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"
8725        else
8726         # Determine the default libpath from the value encoded in an empty executable.
8727         cat >conftest.$ac_ext <<_ACEOF
8728/* confdefs.h.  */
8729_ACEOF
8730cat confdefs.h >>conftest.$ac_ext
8731cat >>conftest.$ac_ext <<_ACEOF
8732/* end confdefs.h.  */
8733
8734int
8735main ()
8736{
8737
8738  ;
8739  return 0;
8740}
8741_ACEOF
8742rm -f conftest.$ac_objext conftest$ac_exeext
8743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744  (eval $ac_link) 2>conftest.er1
8745  ac_status=$?
8746  grep -v '^ *+' conftest.er1 >conftest.err
8747  rm -f conftest.er1
8748  cat conftest.err >&5
8749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750  (exit $ac_status); } &&
8751         { ac_try='test -z "$ac_c_werror_flag"
8752                         || test ! -s conftest.err'
8753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8754  (eval $ac_try) 2>&5
8755  ac_status=$?
8756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757  (exit $ac_status); }; } &&
8758         { ac_try='test -s conftest$ac_exeext'
8759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760  (eval $ac_try) 2>&5
8761  ac_status=$?
8762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763  (exit $ac_status); }; }; then
8764
8765aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8766}'`
8767# Check for a 64-bit object if we didn't find anything.
8768if 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; }
8769}'`; fi
8770else
8771  echo "$as_me: failed program was:" >&5
8772sed 's/^/| /' conftest.$ac_ext >&5
8773
8774fi
8775rm -f conftest.err conftest.$ac_objext \
8776      conftest$ac_exeext conftest.$ac_ext
8777if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8778
8779         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8780          # Warning - without using the other run time loading flags,
8781          # -berok will link without error, but may produce a broken library.
8782          no_undefined_flag=' ${wl}-bernotok'
8783          allow_undefined_flag=' ${wl}-berok'
8784          # Exported symbols can be pulled into shared objects from archives
8785          whole_archive_flag_spec='$convenience'
8786          archive_cmds_need_lc=yes
8787          # This is similar to how AIX traditionally builds its shared libraries.
8788          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'
8789        fi
8790      fi
8791      ;;
8792
8793    amigaos*)
8794      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)'
8795      hardcode_libdir_flag_spec='-L$libdir'
8796      hardcode_minus_L=yes
8797      # see comment about different semantics on the GNU ld section
8798      ld_shlibs=no
8799      ;;
8800
8801    bsdi[45]*)
8802      export_dynamic_flag_spec=-rdynamic
8803      ;;
8804
8805    cygwin* | mingw* | pw32*)
8806      # When not using gcc, we currently assume that we are using
8807      # Microsoft Visual C++.
8808      # hardcode_libdir_flag_spec is actually meaningless, as there is
8809      # no search path for DLLs.
8810      hardcode_libdir_flag_spec=' '
8811      allow_undefined_flag=unsupported
8812      # Tell ltmain to make .lib files, not .a files.
8813      libext=lib
8814      # Tell ltmain to make .dll files, not .so files.
8815      shrext_cmds=".dll"
8816      # FIXME: Setting linknames here is a bad hack.
8817      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8818      # The linker will automatically build a .lib file if we build a DLL.
8819      old_archive_From_new_cmds='true'
8820      # FIXME: Should let the user specify the lib program.
8821      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8822      fix_srcfile_path='`cygpath -w "$srcfile"`'
8823      enable_shared_with_static_runtimes=yes
8824      ;;
8825
8826    darwin* | rhapsody*)
8827      case $host_os in
8828        rhapsody* | darwin1.[012])
8829         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8830         ;;
8831       *) # Darwin 1.3 on
8832         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8833           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8834         else
8835           case ${MACOSX_DEPLOYMENT_TARGET} in
8836             10.[012])
8837               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8838               ;;
8839             10.*)
8840               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8841               ;;
8842           esac
8843         fi
8844         ;;
8845      esac
8846      archive_cmds_need_lc=no
8847      hardcode_direct=no
8848      hardcode_automatic=yes
8849      hardcode_shlibpath_var=unsupported
8850      whole_archive_flag_spec=''
8851      link_all_deplibs=yes
8852    if test "$GCC" = yes ; then
8853        output_verbose_link_cmd='echo'
8854        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8855      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8856      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8857      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}'
8858      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}'
8859    else
8860      case $cc_basename in
8861        xlc*)
8862         output_verbose_link_cmd='echo'
8863         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8864         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8865          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8866         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}'
8867          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}'
8868          ;;
8869       *)
8870         ld_shlibs=no
8871          ;;
8872      esac
8873    fi
8874      ;;
8875
8876    dgux*)
8877      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878      hardcode_libdir_flag_spec='-L$libdir'
8879      hardcode_shlibpath_var=no
8880      ;;
8881
8882    freebsd1*)
8883      ld_shlibs=no
8884      ;;
8885
8886    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8887    # support.  Future versions do this automatically, but an explicit c++rt0.o
8888    # does not break anything, and helps significantly (at the cost of a little
8889    # extra space).
8890    freebsd2.2*)
8891      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8892      hardcode_libdir_flag_spec='-R$libdir'
8893      hardcode_direct=yes
8894      hardcode_shlibpath_var=no
8895      ;;
8896
8897    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8898    freebsd2*)
8899      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8900      hardcode_direct=yes
8901      hardcode_minus_L=yes
8902      hardcode_shlibpath_var=no
8903      ;;
8904
8905    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8906    freebsd* | kfreebsd*-gnu | dragonfly*)
8907      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8908      hardcode_libdir_flag_spec='-R$libdir'
8909      hardcode_direct=yes
8910      hardcode_shlibpath_var=no
8911      ;;
8912
8913    hpux9*)
8914      if test "$GCC" = yes; then
8915        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'
8916      else
8917        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'
8918      fi
8919      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8920      hardcode_libdir_separator=:
8921      hardcode_direct=yes
8922
8923      # hardcode_minus_L: Not really in the search PATH,
8924      # but as the default location of the library.
8925      hardcode_minus_L=yes
8926      export_dynamic_flag_spec='${wl}-E'
8927      ;;
8928
8929    hpux10*)
8930      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8931        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8932      else
8933        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8934      fi
8935      if test "$with_gnu_ld" = no; then
8936        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8937        hardcode_libdir_separator=:
8938
8939        hardcode_direct=yes
8940        export_dynamic_flag_spec='${wl}-E'
8941
8942        # hardcode_minus_L: Not really in the search PATH,
8943        # but as the default location of the library.
8944        hardcode_minus_L=yes
8945      fi
8946      ;;
8947
8948    hpux11*)
8949      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8950        case $host_cpu in
8951        hppa*64*)
8952          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953          ;;
8954        ia64*)
8955          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8956          ;;
8957        *)
8958          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8959          ;;
8960        esac
8961      else
8962        case $host_cpu in
8963        hppa*64*)
8964          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8965          ;;
8966        ia64*)
8967          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8968          ;;
8969        *)
8970          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8971          ;;
8972        esac
8973      fi
8974      if test "$with_gnu_ld" = no; then
8975        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8976        hardcode_libdir_separator=:
8977
8978        case $host_cpu in
8979        hppa*64*|ia64*)
8980          hardcode_libdir_flag_spec_ld='+b $libdir'
8981          hardcode_direct=no
8982          hardcode_shlibpath_var=no
8983          ;;
8984        *)
8985          hardcode_direct=yes
8986          export_dynamic_flag_spec='${wl}-E'
8987
8988          # hardcode_minus_L: Not really in the search PATH,
8989          # but as the default location of the library.
8990          hardcode_minus_L=yes
8991          ;;
8992        esac
8993      fi
8994      ;;
8995
8996    irix5* | irix6* | nonstopux*)
8997      if test "$GCC" = yes; then
8998        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'
8999      else
9000        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'
9001        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9002      fi
9003      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9004      hardcode_libdir_separator=:
9005      link_all_deplibs=yes
9006      ;;
9007
9008    netbsd*)
9009      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9010        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9011      else
9012        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9013      fi
9014      hardcode_libdir_flag_spec='-R$libdir'
9015      hardcode_direct=yes
9016      hardcode_shlibpath_var=no
9017      ;;
9018
9019    newsos6)
9020      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9021      hardcode_direct=yes
9022      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9023      hardcode_libdir_separator=:
9024      hardcode_shlibpath_var=no
9025      ;;
9026
9027    openbsd*)
9028      hardcode_direct=yes
9029      hardcode_shlibpath_var=no
9030      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9031        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9032        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9033        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9034        export_dynamic_flag_spec='${wl}-E'
9035      else
9036       case $host_os in
9037         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9038           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9039           hardcode_libdir_flag_spec='-R$libdir'
9040           ;;
9041         *)
9042           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9043           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9044           ;;
9045       esac
9046      fi
9047      ;;
9048
9049    os2*)
9050      hardcode_libdir_flag_spec='-L$libdir'
9051      hardcode_minus_L=yes
9052      allow_undefined_flag=unsupported
9053      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'
9054      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9055      ;;
9056
9057    osf3*)
9058      if test "$GCC" = yes; then
9059        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9060        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'
9061      else
9062        allow_undefined_flag=' -expect_unresolved \*'
9063        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'
9064      fi
9065      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9066      hardcode_libdir_separator=:
9067      ;;
9068
9069    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9070      if test "$GCC" = yes; then
9071        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9072        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'
9073        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9074      else
9075        allow_undefined_flag=' -expect_unresolved \*'
9076        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'
9077        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9078        $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'
9079
9080        # Both c and cxx compiler support -rpath directly
9081        hardcode_libdir_flag_spec='-rpath $libdir'
9082      fi
9083      hardcode_libdir_separator=:
9084      ;;
9085
9086    solaris*)
9087      no_undefined_flag=' -z text'
9088      if test "$GCC" = yes; then
9089        wlarc='${wl}'
9090        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9091        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9092          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9093      else
9094        wlarc=''
9095        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9096        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9097        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9098      fi
9099      hardcode_libdir_flag_spec='-R$libdir'
9100      hardcode_shlibpath_var=no
9101      case $host_os in
9102      solaris2.[0-5] | solaris2.[0-5].*) ;;
9103      *)
9104        # The compiler driver will combine linker options so we
9105        # cannot just pass the convience library names through
9106        # without $wl, iff we do not link with $LD.
9107        # Luckily, gcc supports the same syntax we need for Sun Studio.
9108        # Supported since Solaris 2.6 (maybe 2.5.1?)
9109        case $wlarc in
9110        '')
9111          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9112        *)
9113          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' ;;
9114        esac ;;
9115      esac
9116      link_all_deplibs=yes
9117      ;;
9118
9119    sunos4*)
9120      if test "x$host_vendor" = xsequent; then
9121        # Use $CC to link under sequent, because it throws in some extra .o
9122        # files that make .init and .fini sections work.
9123        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9124      else
9125        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9126      fi
9127      hardcode_libdir_flag_spec='-L$libdir'
9128      hardcode_direct=yes
9129      hardcode_minus_L=yes
9130      hardcode_shlibpath_var=no
9131      ;;
9132
9133    sysv4)
9134      case $host_vendor in
9135        sni)
9136          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9137          hardcode_direct=yes # is this really true???
9138        ;;
9139        siemens)
9140          ## LD is ld it makes a PLAMLIB
9141          ## CC just makes a GrossModule.
9142          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9143          reload_cmds='$CC -r -o $output$reload_objs'
9144          hardcode_direct=no
9145        ;;
9146        motorola)
9147          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9148          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9149        ;;
9150      esac
9151      runpath_var='LD_RUN_PATH'
9152      hardcode_shlibpath_var=no
9153      ;;
9154
9155    sysv4.3*)
9156      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9157      hardcode_shlibpath_var=no
9158      export_dynamic_flag_spec='-Bexport'
9159      ;;
9160
9161    sysv4*MP*)
9162      if test -d /usr/nec; then
9163        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9164        hardcode_shlibpath_var=no
9165        runpath_var=LD_RUN_PATH
9166        hardcode_runpath_var=yes
9167        ld_shlibs=yes
9168      fi
9169      ;;
9170
9171    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9172      no_undefined_flag='${wl}-z,text'
9173      archive_cmds_need_lc=no
9174      hardcode_shlibpath_var=no
9175      runpath_var='LD_RUN_PATH'
9176
9177      if test "$GCC" = yes; then
9178        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9179        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9180      else
9181        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9182        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9183      fi
9184      ;;
9185
9186    sysv5* | sco3.2v5* | sco5v6*)
9187      # Note: We can NOT use -z defs as we might desire, because we do not
9188      # link with -lc, and that would cause any symbols used from libc to
9189      # always be unresolved, which means just about no library would
9190      # ever link correctly.  If we're not using GNU ld we use -z text
9191      # though, which does catch some bad symbols but isn't as heavy-handed
9192      # as -z defs.
9193      no_undefined_flag='${wl}-z,text'
9194      allow_undefined_flag='${wl}-z,nodefs'
9195      archive_cmds_need_lc=no
9196      hardcode_shlibpath_var=no
9197      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9198      hardcode_libdir_separator=':'
9199      link_all_deplibs=yes
9200      export_dynamic_flag_spec='${wl}-Bexport'
9201      runpath_var='LD_RUN_PATH'
9202
9203      if test "$GCC" = yes; then
9204        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9205        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9206      else
9207        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9208        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9209      fi
9210      ;;
9211
9212    uts4*)
9213      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9214      hardcode_libdir_flag_spec='-L$libdir'
9215      hardcode_shlibpath_var=no
9216      ;;
9217
9218    *)
9219      ld_shlibs=no
9220      ;;
9221    esac
9222  fi
9223
9224echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9225echo "${ECHO_T}$ld_shlibs" >&6
9226test "$ld_shlibs" = no && can_build_shared=no
9227
9228#
9229# Do we need to explicitly link libc?
9230#
9231case "x$archive_cmds_need_lc" in
9232x|xyes)
9233  # Assume -lc should be added
9234  archive_cmds_need_lc=yes
9235
9236  if test "$enable_shared" = yes && test "$GCC" = yes; then
9237    case $archive_cmds in
9238    *'~'*)
9239      # FIXME: we may have to deal with multi-command sequences.
9240      ;;
9241    '$CC '*)
9242      # Test whether the compiler implicitly links with -lc since on some
9243      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9244      # to ld, don't add -lc before -lgcc.
9245      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9246echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9247      $rm conftest*
9248      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9249
9250      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251  (eval $ac_compile) 2>&5
9252  ac_status=$?
9253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254  (exit $ac_status); } 2>conftest.err; then
9255        soname=conftest
9256        lib=conftest
9257        libobjs=conftest.$ac_objext
9258        deplibs=
9259        wl=$lt_prog_compiler_wl
9260        pic_flag=$lt_prog_compiler_pic
9261        compiler_flags=-v
9262        linker_flags=-v
9263        verstring=
9264        output_objdir=.
9265        libname=conftest
9266        lt_save_allow_undefined_flag=$allow_undefined_flag
9267        allow_undefined_flag=
9268        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9269  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9270  ac_status=$?
9271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272  (exit $ac_status); }
9273        then
9274          archive_cmds_need_lc=no
9275        else
9276          archive_cmds_need_lc=yes
9277        fi
9278        allow_undefined_flag=$lt_save_allow_undefined_flag
9279      else
9280        cat conftest.err 1>&5
9281      fi
9282      $rm conftest*
9283      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9284echo "${ECHO_T}$archive_cmds_need_lc" >&6
9285      ;;
9286    esac
9287  fi
9288  ;;
9289esac
9290
9291echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9292echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9293library_names_spec=
9294libname_spec='lib$name'
9295soname_spec=
9296shrext_cmds=".so"
9297postinstall_cmds=
9298postuninstall_cmds=
9299finish_cmds=
9300finish_eval=
9301shlibpath_var=
9302shlibpath_overrides_runpath=unknown
9303version_type=none
9304dynamic_linker="$host_os ld.so"
9305sys_lib_dlsearch_path_spec="/lib /usr/lib"
9306if test "$GCC" = yes; then
9307  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9308  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9309    # if the path contains ";" then we assume it to be the separator
9310    # otherwise default to the standard path separator (i.e. ":") - it is
9311    # assumed that no part of a normal pathname contains ";" but that should
9312    # okay in the real world where ";" in dirpaths is itself problematic.
9313    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9314  else
9315    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9316  fi
9317else
9318  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9319fi
9320need_lib_prefix=unknown
9321hardcode_into_libs=no
9322
9323# when you set need_version to no, make sure it does not cause -set_version
9324# flags to be left without arguments
9325need_version=unknown
9326
9327case $host_os in
9328aix3*)
9329  version_type=linux
9330  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9331  shlibpath_var=LIBPATH
9332
9333  # AIX 3 has no versioning support, so we append a major version to the name.
9334  soname_spec='${libname}${release}${shared_ext}$major'
9335  ;;
9336
9337aix4* | aix5*)
9338  version_type=linux
9339  need_lib_prefix=no
9340  need_version=no
9341  hardcode_into_libs=yes
9342  if test "$host_cpu" = ia64; then
9343    # AIX 5 supports IA64
9344    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9345    shlibpath_var=LD_LIBRARY_PATH
9346  else
9347    # With GCC up to 2.95.x, collect2 would create an import file
9348    # for dependence libraries.  The import file would start with
9349    # the line `#! .'.  This would cause the generated library to
9350    # depend on `.', always an invalid library.  This was fixed in
9351    # development snapshots of GCC prior to 3.0.
9352    case $host_os in
9353      aix4 | aix4.[01] | aix4.[01].*)
9354      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9355           echo ' yes '
9356           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9357        :
9358      else
9359        can_build_shared=no
9360      fi
9361      ;;
9362    esac
9363    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9364    # soname into executable. Probably we can add versioning support to
9365    # collect2, so additional links can be useful in future.
9366    if test "$aix_use_runtimelinking" = yes; then
9367      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9368      # instead of lib<name>.a to let people know that these are not
9369      # typical AIX shared libraries.
9370      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9371    else
9372      # We preserve .a as extension for shared libraries through AIX4.2
9373      # and later when we are not doing run time linking.
9374      library_names_spec='${libname}${release}.a $libname.a'
9375      soname_spec='${libname}${release}${shared_ext}$major'
9376    fi
9377    shlibpath_var=LIBPATH
9378  fi
9379  ;;
9380
9381amigaos*)
9382  library_names_spec='$libname.ixlibrary $libname.a'
9383  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9384  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'
9385  ;;
9386
9387beos*)
9388  library_names_spec='${libname}${shared_ext}'
9389  dynamic_linker="$host_os ld.so"
9390  shlibpath_var=LIBRARY_PATH
9391  ;;
9392
9393bsdi[45]*)
9394  version_type=linux
9395  need_version=no
9396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397  soname_spec='${libname}${release}${shared_ext}$major'
9398  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9399  shlibpath_var=LD_LIBRARY_PATH
9400  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9401  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9402  # the default ld.so.conf also contains /usr/contrib/lib and
9403  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9404  # libtool to hard-code these into programs
9405  ;;
9406
9407cygwin* | mingw* | pw32*)
9408  version_type=windows
9409  shrext_cmds=".dll"
9410  need_version=no
9411  need_lib_prefix=no
9412
9413  case $GCC,$host_os in
9414  yes,cygwin* | yes,mingw* | yes,pw32*)
9415    library_names_spec='$libname.dll.a'
9416    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9417    postinstall_cmds='base_file=`basename \${file}`~
9418      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9419      dldir=$destdir/`dirname \$dlpath`~
9420      test -d \$dldir || mkdir -p \$dldir~
9421      $install_prog $dir/$dlname \$dldir/$dlname~
9422      chmod a+x \$dldir/$dlname'
9423    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9424      dlpath=$dir/\$dldll~
9425       $rm \$dlpath'
9426    shlibpath_overrides_runpath=yes
9427
9428    case $host_os in
9429    cygwin*)
9430      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9431      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9432      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9433      ;;
9434    mingw*)
9435      # MinGW DLLs use traditional 'lib' prefix
9436      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9437      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9438      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9439        # It is most probably a Windows format PATH printed by
9440        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9441        # path with ; separators, and with drive letters. We can handle the
9442        # drive letters (cygwin fileutils understands them), so leave them,
9443        # especially as we might pass files found there to a mingw objdump,
9444        # which wouldn't understand a cygwinified path. Ahh.
9445        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9446      else
9447        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9448      fi
9449      ;;
9450    pw32*)
9451      # pw32 DLLs use 'pw' prefix rather than 'lib'
9452      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9453      ;;
9454    esac
9455    ;;
9456
9457  *)
9458    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9459    ;;
9460  esac
9461  dynamic_linker='Win32 ld.exe'
9462  # FIXME: first we should search . and the directory the executable is in
9463  shlibpath_var=PATH
9464  ;;
9465
9466darwin* | rhapsody*)
9467  dynamic_linker="$host_os dyld"
9468  version_type=darwin
9469  need_lib_prefix=no
9470  need_version=no
9471  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9472  soname_spec='${libname}${release}${major}$shared_ext'
9473  shlibpath_overrides_runpath=yes
9474  shlibpath_var=DYLD_LIBRARY_PATH
9475  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9476  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9477  if test "$GCC" = yes; then
9478    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"`
9479  else
9480    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9481  fi
9482  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9483  ;;
9484
9485dgux*)
9486  version_type=linux
9487  need_lib_prefix=no
9488  need_version=no
9489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9490  soname_spec='${libname}${release}${shared_ext}$major'
9491  shlibpath_var=LD_LIBRARY_PATH
9492  ;;
9493
9494freebsd1*)
9495  dynamic_linker=no
9496  ;;
9497
9498kfreebsd*-gnu)
9499  version_type=linux
9500  need_lib_prefix=no
9501  need_version=no
9502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9503  soname_spec='${libname}${release}${shared_ext}$major'
9504  shlibpath_var=LD_LIBRARY_PATH
9505  shlibpath_overrides_runpath=no
9506  hardcode_into_libs=yes
9507  dynamic_linker='GNU ld.so'
9508  ;;
9509
9510freebsd* | dragonfly*)
9511  # DragonFly does not have aout.  When/if they implement a new
9512  # versioning mechanism, adjust this.
9513  if test -x /usr/bin/objformat; then
9514    objformat=`/usr/bin/objformat`
9515  else
9516    case $host_os in
9517    freebsd[123]*) objformat=aout ;;
9518    *) objformat=elf ;;
9519    esac
9520  fi
9521  version_type=freebsd-$objformat
9522  case $version_type in
9523    freebsd-elf*)
9524      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9525      need_version=no
9526      need_lib_prefix=no
9527      ;;
9528    freebsd-*)
9529      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9530      need_version=yes
9531      ;;
9532  esac
9533  shlibpath_var=LD_LIBRARY_PATH
9534  case $host_os in
9535  freebsd2*)
9536    shlibpath_overrides_runpath=yes
9537    ;;
9538  freebsd3.[01]* | freebsdelf3.[01]*)
9539    shlibpath_overrides_runpath=yes
9540    hardcode_into_libs=yes
9541    ;;
9542  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9543  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9544    shlibpath_overrides_runpath=no
9545    hardcode_into_libs=yes
9546    ;;
9547  freebsd*) # from 4.6 on
9548    shlibpath_overrides_runpath=yes
9549    hardcode_into_libs=yes
9550    ;;
9551  esac
9552  ;;
9553
9554gnu*)
9555  version_type=linux
9556  need_lib_prefix=no
9557  need_version=no
9558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9559  soname_spec='${libname}${release}${shared_ext}$major'
9560  shlibpath_var=LD_LIBRARY_PATH
9561  hardcode_into_libs=yes
9562  ;;
9563
9564hpux9* | hpux10* | hpux11*)
9565  # Give a soname corresponding to the major version so that dld.sl refuses to
9566  # link against other versions.
9567  version_type=sunos
9568  need_lib_prefix=no
9569  need_version=no
9570  case $host_cpu in
9571  ia64*)
9572    shrext_cmds='.so'
9573    hardcode_into_libs=yes
9574    dynamic_linker="$host_os dld.so"
9575    shlibpath_var=LD_LIBRARY_PATH
9576    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9577    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9578    soname_spec='${libname}${release}${shared_ext}$major'
9579    if test "X$HPUX_IA64_MODE" = X32; then
9580      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9581    else
9582      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9583    fi
9584    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9585    ;;
9586   hppa*64*)
9587     shrext_cmds='.sl'
9588     hardcode_into_libs=yes
9589     dynamic_linker="$host_os dld.sl"
9590     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9591     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593     soname_spec='${libname}${release}${shared_ext}$major'
9594     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9595     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9596     ;;
9597   *)
9598    shrext_cmds='.sl'
9599    dynamic_linker="$host_os dld.sl"
9600    shlibpath_var=SHLIB_PATH
9601    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9602    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603    soname_spec='${libname}${release}${shared_ext}$major'
9604    ;;
9605  esac
9606  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9607  postinstall_cmds='chmod 555 $lib'
9608  ;;
9609
9610interix3*)
9611  version_type=linux
9612  need_lib_prefix=no
9613  need_version=no
9614  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9615  soname_spec='${libname}${release}${shared_ext}$major'
9616  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9617  shlibpath_var=LD_LIBRARY_PATH
9618  shlibpath_overrides_runpath=no
9619  hardcode_into_libs=yes
9620  ;;
9621
9622irix5* | irix6* | nonstopux*)
9623  case $host_os in
9624    nonstopux*) version_type=nonstopux ;;
9625    *)
9626        if test "$lt_cv_prog_gnu_ld" = yes; then
9627                version_type=linux
9628        else
9629                version_type=irix
9630        fi ;;
9631  esac
9632  need_lib_prefix=no
9633  need_version=no
9634  soname_spec='${libname}${release}${shared_ext}$major'
9635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9636  case $host_os in
9637  irix5* | nonstopux*)
9638    libsuff= shlibsuff=
9639    ;;
9640  *)
9641    case $LD in # libtool.m4 will add one of these switches to LD
9642    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9643      libsuff= shlibsuff= libmagic=32-bit;;
9644    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9645      libsuff=32 shlibsuff=N32 libmagic=N32;;
9646    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9647      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9648    *) libsuff= shlibsuff= libmagic=never-match;;
9649    esac
9650    ;;
9651  esac
9652  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9653  shlibpath_overrides_runpath=no
9654  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9655  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9656  hardcode_into_libs=yes
9657  ;;
9658
9659# No shared lib support for Linux oldld, aout, or coff.
9660linux*oldld* | linux*aout* | linux*coff*)
9661  dynamic_linker=no
9662  ;;
9663
9664# This must be Linux ELF.
9665linux*)
9666  version_type=linux
9667  need_lib_prefix=no
9668  need_version=no
9669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9670  soname_spec='${libname}${release}${shared_ext}$major'
9671  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9672  shlibpath_var=LD_LIBRARY_PATH
9673  shlibpath_overrides_runpath=no
9674  # This implies no fast_install, which is unacceptable.
9675  # Some rework will be needed to allow for fast_install
9676  # before this can be enabled.
9677  hardcode_into_libs=yes
9678
9679  # Append ld.so.conf contents to the search path
9680  if test -f /etc/ld.so.conf; then
9681    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' ' '`
9682    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9683  fi
9684
9685  # We used to test for /lib/ld.so.1 and disable shared libraries on
9686  # powerpc, because MkLinux only supported shared libraries with the
9687  # GNU dynamic linker.  Since this was broken with cross compilers,
9688  # most powerpc-linux boxes support dynamic linking these days and
9689  # people can always --disable-shared, the test was removed, and we
9690  # assume the GNU/Linux dynamic linker is in use.
9691  dynamic_linker='GNU/Linux ld.so'
9692  ;;
9693
9694knetbsd*-gnu)
9695  version_type=linux
9696  need_lib_prefix=no
9697  need_version=no
9698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9699  soname_spec='${libname}${release}${shared_ext}$major'
9700  shlibpath_var=LD_LIBRARY_PATH
9701  shlibpath_overrides_runpath=no
9702  hardcode_into_libs=yes
9703  dynamic_linker='GNU ld.so'
9704  ;;
9705
9706netbsd*)
9707  version_type=sunos
9708  need_lib_prefix=no
9709  need_version=no
9710  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9711    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9712    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9713    dynamic_linker='NetBSD (a.out) ld.so'
9714  else
9715    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9716    soname_spec='${libname}${release}${shared_ext}$major'
9717    dynamic_linker='NetBSD ld.elf_so'
9718  fi
9719  shlibpath_var=LD_LIBRARY_PATH
9720  shlibpath_overrides_runpath=yes
9721  hardcode_into_libs=yes
9722  ;;
9723
9724newsos6)
9725  version_type=linux
9726  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727  shlibpath_var=LD_LIBRARY_PATH
9728  shlibpath_overrides_runpath=yes
9729  ;;
9730
9731nto-qnx*)
9732  version_type=linux
9733  need_lib_prefix=no
9734  need_version=no
9735  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9736  soname_spec='${libname}${release}${shared_ext}$major'
9737  shlibpath_var=LD_LIBRARY_PATH
9738  shlibpath_overrides_runpath=yes
9739  ;;
9740
9741openbsd*)
9742  version_type=sunos
9743  sys_lib_dlsearch_path_spec="/usr/lib"
9744  need_lib_prefix=no
9745  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9746  case $host_os in
9747    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9748    *)                         need_version=no  ;;
9749  esac
9750  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9751  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9752  shlibpath_var=LD_LIBRARY_PATH
9753  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9754    case $host_os in
9755      openbsd2.[89] | openbsd2.[89].*)
9756        shlibpath_overrides_runpath=no
9757        ;;
9758      *)
9759        shlibpath_overrides_runpath=yes
9760        ;;
9761      esac
9762  else
9763    shlibpath_overrides_runpath=yes
9764  fi
9765  ;;
9766
9767os2*)
9768  libname_spec='$name'
9769  shrext_cmds=".dll"
9770  need_lib_prefix=no
9771  library_names_spec='$libname${shared_ext} $libname.a'
9772  dynamic_linker='OS/2 ld.exe'
9773  shlibpath_var=LIBPATH
9774  ;;
9775
9776osf3* | osf4* | osf5*)
9777  version_type=osf
9778  need_lib_prefix=no
9779  need_version=no
9780  soname_spec='${libname}${release}${shared_ext}$major'
9781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782  shlibpath_var=LD_LIBRARY_PATH
9783  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9784  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9785  ;;
9786
9787solaris*)
9788  version_type=linux
9789  need_lib_prefix=no
9790  need_version=no
9791  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792  soname_spec='${libname}${release}${shared_ext}$major'
9793  shlibpath_var=LD_LIBRARY_PATH
9794  shlibpath_overrides_runpath=yes
9795  hardcode_into_libs=yes
9796  # ldd complains unless libraries are executable
9797  postinstall_cmds='chmod +x $lib'
9798  ;;
9799
9800sunos4*)
9801  version_type=sunos
9802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9803  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9804  shlibpath_var=LD_LIBRARY_PATH
9805  shlibpath_overrides_runpath=yes
9806  if test "$with_gnu_ld" = yes; then
9807    need_lib_prefix=no
9808  fi
9809  need_version=yes
9810  ;;
9811
9812sysv4 | sysv4.3*)
9813  version_type=linux
9814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815  soname_spec='${libname}${release}${shared_ext}$major'
9816  shlibpath_var=LD_LIBRARY_PATH
9817  case $host_vendor in
9818    sni)
9819      shlibpath_overrides_runpath=no
9820      need_lib_prefix=no
9821      export_dynamic_flag_spec='${wl}-Blargedynsym'
9822      runpath_var=LD_RUN_PATH
9823      ;;
9824    siemens)
9825      need_lib_prefix=no
9826      ;;
9827    motorola)
9828      need_lib_prefix=no
9829      need_version=no
9830      shlibpath_overrides_runpath=no
9831      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9832      ;;
9833  esac
9834  ;;
9835
9836sysv4*MP*)
9837  if test -d /usr/nec ;then
9838    version_type=linux
9839    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9840    soname_spec='$libname${shared_ext}.$major'
9841    shlibpath_var=LD_LIBRARY_PATH
9842  fi
9843  ;;
9844
9845sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9846  version_type=freebsd-elf
9847  need_lib_prefix=no
9848  need_version=no
9849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9850  soname_spec='${libname}${release}${shared_ext}$major'
9851  shlibpath_var=LD_LIBRARY_PATH
9852  hardcode_into_libs=yes
9853  if test "$with_gnu_ld" = yes; then
9854    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9855    shlibpath_overrides_runpath=no
9856  else
9857    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9858    shlibpath_overrides_runpath=yes
9859    case $host_os in
9860      sco3.2v5*)
9861        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9862        ;;
9863    esac
9864  fi
9865  sys_lib_dlsearch_path_spec='/usr/lib'
9866  ;;
9867
9868uts4*)
9869  version_type=linux
9870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9871  soname_spec='${libname}${release}${shared_ext}$major'
9872  shlibpath_var=LD_LIBRARY_PATH
9873  ;;
9874
9875*)
9876  dynamic_linker=no
9877  ;;
9878esac
9879echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9880echo "${ECHO_T}$dynamic_linker" >&6
9881test "$dynamic_linker" = no && can_build_shared=no
9882
9883variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9884if test "$GCC" = yes; then
9885  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9886fi
9887
9888echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9889echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9890hardcode_action=
9891if test -n "$hardcode_libdir_flag_spec" || \
9892   test -n "$runpath_var" || \
9893   test "X$hardcode_automatic" = "Xyes" ; then
9894
9895  # We can hardcode non-existant directories.
9896  if test "$hardcode_direct" != no &&
9897     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9898     # have to relink, otherwise we might link with an installed library
9899     # when we should be linking with a yet-to-be-installed one
9900     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9901     test "$hardcode_minus_L" != no; then
9902    # Linking always hardcodes the temporary library directory.
9903    hardcode_action=relink
9904  else
9905    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9906    hardcode_action=immediate
9907  fi
9908else
9909  # We cannot hardcode anything, or else we can only hardcode existing
9910  # directories.
9911  hardcode_action=unsupported
9912fi
9913echo "$as_me:$LINENO: result: $hardcode_action" >&5
9914echo "${ECHO_T}$hardcode_action" >&6
9915
9916if test "$hardcode_action" = relink; then
9917  # Fast installation is not supported
9918  enable_fast_install=no
9919elif test "$shlibpath_overrides_runpath" = yes ||
9920     test "$enable_shared" = no; then
9921  # Fast installation is not necessary
9922  enable_fast_install=needless
9923fi
9924
9925striplib=
9926old_striplib=
9927echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9928echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9929if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9930  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9931  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9932  echo "$as_me:$LINENO: result: yes" >&5
9933echo "${ECHO_T}yes" >&6
9934else
9935# FIXME - insert some real tests, host_os isn't really good enough
9936  case $host_os in
9937   darwin*)
9938       if test -n "$STRIP" ; then
9939         striplib="$STRIP -x"
9940         echo "$as_me:$LINENO: result: yes" >&5
9941echo "${ECHO_T}yes" >&6
9942       else
9943  echo "$as_me:$LINENO: result: no" >&5
9944echo "${ECHO_T}no" >&6
9945fi
9946       ;;
9947   *)
9948  echo "$as_me:$LINENO: result: no" >&5
9949echo "${ECHO_T}no" >&6
9950    ;;
9951  esac
9952fi
9953
9954if test "x$enable_dlopen" != xyes; then
9955  enable_dlopen=unknown
9956  enable_dlopen_self=unknown
9957  enable_dlopen_self_static=unknown
9958else
9959  lt_cv_dlopen=no
9960  lt_cv_dlopen_libs=
9961
9962  case $host_os in
9963  beos*)
9964    lt_cv_dlopen="load_add_on"
9965    lt_cv_dlopen_libs=
9966    lt_cv_dlopen_self=yes
9967    ;;
9968
9969  mingw* | pw32*)
9970    lt_cv_dlopen="LoadLibrary"
9971    lt_cv_dlopen_libs=
9972   ;;
9973
9974  cygwin*)
9975    lt_cv_dlopen="dlopen"
9976    lt_cv_dlopen_libs=
9977   ;;
9978
9979  darwin*)
9980  # if libdl is installed we need to link against it
9981    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9982echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9983if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9984  echo $ECHO_N "(cached) $ECHO_C" >&6
9985else
9986  ac_check_lib_save_LIBS=$LIBS
9987LIBS="-ldl  $LIBS"
9988cat >conftest.$ac_ext <<_ACEOF
9989/* confdefs.h.  */
9990_ACEOF
9991cat confdefs.h >>conftest.$ac_ext
9992cat >>conftest.$ac_ext <<_ACEOF
9993/* end confdefs.h.  */
9994
9995/* Override any gcc2 internal prototype to avoid an error.  */
9996#ifdef __cplusplus
9997extern "C"
9998#endif
9999/* We use char because int might match the return type of a gcc2
10000   builtin and then its argument prototype would still apply.  */
10001char dlopen ();
10002int
10003main ()
10004{
10005dlopen ();
10006  ;
10007  return 0;
10008}
10009_ACEOF
10010rm -f conftest.$ac_objext conftest$ac_exeext
10011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012  (eval $ac_link) 2>conftest.er1
10013  ac_status=$?
10014  grep -v '^ *+' conftest.er1 >conftest.err
10015  rm -f conftest.er1
10016  cat conftest.err >&5
10017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018  (exit $ac_status); } &&
10019         { ac_try='test -z "$ac_c_werror_flag"
10020                         || test ! -s conftest.err'
10021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022  (eval $ac_try) 2>&5
10023  ac_status=$?
10024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025  (exit $ac_status); }; } &&
10026         { ac_try='test -s conftest$ac_exeext'
10027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028  (eval $ac_try) 2>&5
10029  ac_status=$?
10030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031  (exit $ac_status); }; }; then
10032  ac_cv_lib_dl_dlopen=yes
10033else
10034  echo "$as_me: failed program was:" >&5
10035sed 's/^/| /' conftest.$ac_ext >&5
10036
10037ac_cv_lib_dl_dlopen=no
10038fi
10039rm -f conftest.err conftest.$ac_objext \
10040      conftest$ac_exeext conftest.$ac_ext
10041LIBS=$ac_check_lib_save_LIBS
10042fi
10043echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10044echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10045if test $ac_cv_lib_dl_dlopen = yes; then
10046  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10047else
10048
10049    lt_cv_dlopen="dyld"
10050    lt_cv_dlopen_libs=
10051    lt_cv_dlopen_self=yes
10052
10053fi
10054
10055   ;;
10056
10057  *)
10058    echo "$as_me:$LINENO: checking for shl_load" >&5
10059echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10060if test "${ac_cv_func_shl_load+set}" = set; then
10061  echo $ECHO_N "(cached) $ECHO_C" >&6
10062else
10063  cat >conftest.$ac_ext <<_ACEOF
10064/* confdefs.h.  */
10065_ACEOF
10066cat confdefs.h >>conftest.$ac_ext
10067cat >>conftest.$ac_ext <<_ACEOF
10068/* end confdefs.h.  */
10069/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10070   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10071#define shl_load innocuous_shl_load
10072
10073/* System header to define __stub macros and hopefully few prototypes,
10074    which can conflict with char shl_load (); below.
10075    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10076    <limits.h> exists even on freestanding compilers.  */
10077
10078#ifdef __STDC__
10079# include <limits.h>
10080#else
10081# include <assert.h>
10082#endif
10083
10084#undef shl_load
10085
10086/* Override any gcc2 internal prototype to avoid an error.  */
10087#ifdef __cplusplus
10088extern "C"
10089{
10090#endif
10091/* We use char because int might match the return type of a gcc2
10092   builtin and then its argument prototype would still apply.  */
10093char shl_load ();
10094/* The GNU C library defines this for functions which it implements
10095    to always fail with ENOSYS.  Some functions are actually named
10096    something starting with __ and the normal name is an alias.  */
10097#if defined (__stub_shl_load) || defined (__stub___shl_load)
10098choke me
10099#else
10100char (*f) () = shl_load;
10101#endif
10102#ifdef __cplusplus
10103}
10104#endif
10105
10106int
10107main ()
10108{
10109return f != shl_load;
10110  ;
10111  return 0;
10112}
10113_ACEOF
10114rm -f conftest.$ac_objext conftest$ac_exeext
10115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116  (eval $ac_link) 2>conftest.er1
10117  ac_status=$?
10118  grep -v '^ *+' conftest.er1 >conftest.err
10119  rm -f conftest.er1
10120  cat conftest.err >&5
10121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122  (exit $ac_status); } &&
10123         { ac_try='test -z "$ac_c_werror_flag"
10124                         || test ! -s conftest.err'
10125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10126  (eval $ac_try) 2>&5
10127  ac_status=$?
10128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129  (exit $ac_status); }; } &&
10130         { ac_try='test -s conftest$ac_exeext'
10131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132  (eval $ac_try) 2>&5
10133  ac_status=$?
10134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135  (exit $ac_status); }; }; then
10136  ac_cv_func_shl_load=yes
10137else
10138  echo "$as_me: failed program was:" >&5
10139sed 's/^/| /' conftest.$ac_ext >&5
10140
10141ac_cv_func_shl_load=no
10142fi
10143rm -f conftest.err conftest.$ac_objext \
10144      conftest$ac_exeext conftest.$ac_ext
10145fi
10146echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10147echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10148if test $ac_cv_func_shl_load = yes; then
10149  lt_cv_dlopen="shl_load"
10150else
10151  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10152echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10153if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10154  echo $ECHO_N "(cached) $ECHO_C" >&6
10155else
10156  ac_check_lib_save_LIBS=$LIBS
10157LIBS="-ldld  $LIBS"
10158cat >conftest.$ac_ext <<_ACEOF
10159/* confdefs.h.  */
10160_ACEOF
10161cat confdefs.h >>conftest.$ac_ext
10162cat >>conftest.$ac_ext <<_ACEOF
10163/* end confdefs.h.  */
10164
10165/* Override any gcc2 internal prototype to avoid an error.  */
10166#ifdef __cplusplus
10167extern "C"
10168#endif
10169/* We use char because int might match the return type of a gcc2
10170   builtin and then its argument prototype would still apply.  */
10171char shl_load ();
10172int
10173main ()
10174{
10175shl_load ();
10176  ;
10177  return 0;
10178}
10179_ACEOF
10180rm -f conftest.$ac_objext conftest$ac_exeext
10181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10182  (eval $ac_link) 2>conftest.er1
10183  ac_status=$?
10184  grep -v '^ *+' conftest.er1 >conftest.err
10185  rm -f conftest.er1
10186  cat conftest.err >&5
10187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188  (exit $ac_status); } &&
10189         { ac_try='test -z "$ac_c_werror_flag"
10190                         || test ! -s conftest.err'
10191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10192  (eval $ac_try) 2>&5
10193  ac_status=$?
10194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195  (exit $ac_status); }; } &&
10196         { ac_try='test -s conftest$ac_exeext'
10197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198  (eval $ac_try) 2>&5
10199  ac_status=$?
10200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201  (exit $ac_status); }; }; then
10202  ac_cv_lib_dld_shl_load=yes
10203else
10204  echo "$as_me: failed program was:" >&5
10205sed 's/^/| /' conftest.$ac_ext >&5
10206
10207ac_cv_lib_dld_shl_load=no
10208fi
10209rm -f conftest.err conftest.$ac_objext \
10210      conftest$ac_exeext conftest.$ac_ext
10211LIBS=$ac_check_lib_save_LIBS
10212fi
10213echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10214echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10215if test $ac_cv_lib_dld_shl_load = yes; then
10216  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10217else
10218  echo "$as_me:$LINENO: checking for dlopen" >&5
10219echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10220if test "${ac_cv_func_dlopen+set}" = set; then
10221  echo $ECHO_N "(cached) $ECHO_C" >&6
10222else
10223  cat >conftest.$ac_ext <<_ACEOF
10224/* confdefs.h.  */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h.  */
10229/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10230   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10231#define dlopen innocuous_dlopen
10232
10233/* System header to define __stub macros and hopefully few prototypes,
10234    which can conflict with char dlopen (); below.
10235    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10236    <limits.h> exists even on freestanding compilers.  */
10237
10238#ifdef __STDC__
10239# include <limits.h>
10240#else
10241# include <assert.h>
10242#endif
10243
10244#undef dlopen
10245
10246/* Override any gcc2 internal prototype to avoid an error.  */
10247#ifdef __cplusplus
10248extern "C"
10249{
10250#endif
10251/* We use char because int might match the return type of a gcc2
10252   builtin and then its argument prototype would still apply.  */
10253char dlopen ();
10254/* The GNU C library defines this for functions which it implements
10255    to always fail with ENOSYS.  Some functions are actually named
10256    something starting with __ and the normal name is an alias.  */
10257#if defined (__stub_dlopen) || defined (__stub___dlopen)
10258choke me
10259#else
10260char (*f) () = dlopen;
10261#endif
10262#ifdef __cplusplus
10263}
10264#endif
10265
10266int
10267main ()
10268{
10269return f != dlopen;
10270  ;
10271  return 0;
10272}
10273_ACEOF
10274rm -f conftest.$ac_objext conftest$ac_exeext
10275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10276  (eval $ac_link) 2>conftest.er1
10277  ac_status=$?
10278  grep -v '^ *+' conftest.er1 >conftest.err
10279  rm -f conftest.er1
10280  cat conftest.err >&5
10281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282  (exit $ac_status); } &&
10283         { ac_try='test -z "$ac_c_werror_flag"
10284                         || test ! -s conftest.err'
10285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286  (eval $ac_try) 2>&5
10287  ac_status=$?
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); }; } &&
10290         { ac_try='test -s conftest$ac_exeext'
10291  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292  (eval $ac_try) 2>&5
10293  ac_status=$?
10294  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295  (exit $ac_status); }; }; then
10296  ac_cv_func_dlopen=yes
10297else
10298  echo "$as_me: failed program was:" >&5
10299sed 's/^/| /' conftest.$ac_ext >&5
10300
10301ac_cv_func_dlopen=no
10302fi
10303rm -f conftest.err conftest.$ac_objext \
10304      conftest$ac_exeext conftest.$ac_ext
10305fi
10306echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10307echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10308if test $ac_cv_func_dlopen = yes; then
10309  lt_cv_dlopen="dlopen"
10310else
10311  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10312echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10313if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10314  echo $ECHO_N "(cached) $ECHO_C" >&6
10315else
10316  ac_check_lib_save_LIBS=$LIBS
10317LIBS="-ldl  $LIBS"
10318cat >conftest.$ac_ext <<_ACEOF
10319/* confdefs.h.  */
10320_ACEOF
10321cat confdefs.h >>conftest.$ac_ext
10322cat >>conftest.$ac_ext <<_ACEOF
10323/* end confdefs.h.  */
10324
10325/* Override any gcc2 internal prototype to avoid an error.  */
10326#ifdef __cplusplus
10327extern "C"
10328#endif
10329/* We use char because int might match the return type of a gcc2
10330   builtin and then its argument prototype would still apply.  */
10331char dlopen ();
10332int
10333main ()
10334{
10335dlopen ();
10336  ;
10337  return 0;
10338}
10339_ACEOF
10340rm -f conftest.$ac_objext conftest$ac_exeext
10341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10342  (eval $ac_link) 2>conftest.er1
10343  ac_status=$?
10344  grep -v '^ *+' conftest.er1 >conftest.err
10345  rm -f conftest.er1
10346  cat conftest.err >&5
10347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348  (exit $ac_status); } &&
10349         { ac_try='test -z "$ac_c_werror_flag"
10350                         || test ! -s conftest.err'
10351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352  (eval $ac_try) 2>&5
10353  ac_status=$?
10354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355  (exit $ac_status); }; } &&
10356         { ac_try='test -s conftest$ac_exeext'
10357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358  (eval $ac_try) 2>&5
10359  ac_status=$?
10360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361  (exit $ac_status); }; }; then
10362  ac_cv_lib_dl_dlopen=yes
10363else
10364  echo "$as_me: failed program was:" >&5
10365sed 's/^/| /' conftest.$ac_ext >&5
10366
10367ac_cv_lib_dl_dlopen=no
10368fi
10369rm -f conftest.err conftest.$ac_objext \
10370      conftest$ac_exeext conftest.$ac_ext
10371LIBS=$ac_check_lib_save_LIBS
10372fi
10373echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10374echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10375if test $ac_cv_lib_dl_dlopen = yes; then
10376  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10377else
10378  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10379echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10380if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10381  echo $ECHO_N "(cached) $ECHO_C" >&6
10382else
10383  ac_check_lib_save_LIBS=$LIBS
10384LIBS="-lsvld  $LIBS"
10385cat >conftest.$ac_ext <<_ACEOF
10386/* confdefs.h.  */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h.  */
10391
10392/* Override any gcc2 internal prototype to avoid an error.  */
10393#ifdef __cplusplus
10394extern "C"
10395#endif
10396/* We use char because int might match the return type of a gcc2
10397   builtin and then its argument prototype would still apply.  */
10398char dlopen ();
10399int
10400main ()
10401{
10402dlopen ();
10403  ;
10404  return 0;
10405}
10406_ACEOF
10407rm -f conftest.$ac_objext conftest$ac_exeext
10408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10409  (eval $ac_link) 2>conftest.er1
10410  ac_status=$?
10411  grep -v '^ *+' conftest.er1 >conftest.err
10412  rm -f conftest.er1
10413  cat conftest.err >&5
10414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415  (exit $ac_status); } &&
10416         { ac_try='test -z "$ac_c_werror_flag"
10417                         || test ! -s conftest.err'
10418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419  (eval $ac_try) 2>&5
10420  ac_status=$?
10421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); }; } &&
10423         { ac_try='test -s conftest$ac_exeext'
10424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10425  (eval $ac_try) 2>&5
10426  ac_status=$?
10427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428  (exit $ac_status); }; }; then
10429  ac_cv_lib_svld_dlopen=yes
10430else
10431  echo "$as_me: failed program was:" >&5
10432sed 's/^/| /' conftest.$ac_ext >&5
10433
10434ac_cv_lib_svld_dlopen=no
10435fi
10436rm -f conftest.err conftest.$ac_objext \
10437      conftest$ac_exeext conftest.$ac_ext
10438LIBS=$ac_check_lib_save_LIBS
10439fi
10440echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10441echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10442if test $ac_cv_lib_svld_dlopen = yes; then
10443  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10444else
10445  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10446echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10447if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10448  echo $ECHO_N "(cached) $ECHO_C" >&6
10449else
10450  ac_check_lib_save_LIBS=$LIBS
10451LIBS="-ldld  $LIBS"
10452cat >conftest.$ac_ext <<_ACEOF
10453/* confdefs.h.  */
10454_ACEOF
10455cat confdefs.h >>conftest.$ac_ext
10456cat >>conftest.$ac_ext <<_ACEOF
10457/* end confdefs.h.  */
10458
10459/* Override any gcc2 internal prototype to avoid an error.  */
10460#ifdef __cplusplus
10461extern "C"
10462#endif
10463/* We use char because int might match the return type of a gcc2
10464   builtin and then its argument prototype would still apply.  */
10465char dld_link ();
10466int
10467main ()
10468{
10469dld_link ();
10470  ;
10471  return 0;
10472}
10473_ACEOF
10474rm -f conftest.$ac_objext conftest$ac_exeext
10475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476  (eval $ac_link) 2>conftest.er1
10477  ac_status=$?
10478  grep -v '^ *+' conftest.er1 >conftest.err
10479  rm -f conftest.er1
10480  cat conftest.err >&5
10481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482  (exit $ac_status); } &&
10483         { ac_try='test -z "$ac_c_werror_flag"
10484                         || test ! -s conftest.err'
10485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486  (eval $ac_try) 2>&5
10487  ac_status=$?
10488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489  (exit $ac_status); }; } &&
10490         { ac_try='test -s conftest$ac_exeext'
10491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492  (eval $ac_try) 2>&5
10493  ac_status=$?
10494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495  (exit $ac_status); }; }; then
10496  ac_cv_lib_dld_dld_link=yes
10497else
10498  echo "$as_me: failed program was:" >&5
10499sed 's/^/| /' conftest.$ac_ext >&5
10500
10501ac_cv_lib_dld_dld_link=no
10502fi
10503rm -f conftest.err conftest.$ac_objext \
10504      conftest$ac_exeext conftest.$ac_ext
10505LIBS=$ac_check_lib_save_LIBS
10506fi
10507echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10508echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10509if test $ac_cv_lib_dld_dld_link = yes; then
10510  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10511fi
10512
10513
10514fi
10515
10516
10517fi
10518
10519
10520fi
10521
10522
10523fi
10524
10525
10526fi
10527
10528    ;;
10529  esac
10530
10531  if test "x$lt_cv_dlopen" != xno; then
10532    enable_dlopen=yes
10533  else
10534    enable_dlopen=no
10535  fi
10536
10537  case $lt_cv_dlopen in
10538  dlopen)
10539    save_CPPFLAGS="$CPPFLAGS"
10540    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10541
10542    save_LDFLAGS="$LDFLAGS"
10543    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10544
10545    save_LIBS="$LIBS"
10546    LIBS="$lt_cv_dlopen_libs $LIBS"
10547
10548    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10549echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10550if test "${lt_cv_dlopen_self+set}" = set; then
10551  echo $ECHO_N "(cached) $ECHO_C" >&6
10552else
10553          if test "$cross_compiling" = yes; then :
10554  lt_cv_dlopen_self=cross
10555else
10556  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10557  lt_status=$lt_dlunknown
10558  cat > conftest.$ac_ext <<EOF
10559#line 10559 "configure"
10560#include "confdefs.h"
10561
10562#if HAVE_DLFCN_H
10563#include <dlfcn.h>
10564#endif
10565
10566#include <stdio.h>
10567
10568#ifdef RTLD_GLOBAL
10569#  define LT_DLGLOBAL           RTLD_GLOBAL
10570#else
10571#  ifdef DL_GLOBAL
10572#    define LT_DLGLOBAL         DL_GLOBAL
10573#  else
10574#    define LT_DLGLOBAL         0
10575#  endif
10576#endif
10577
10578/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10579   find out it does not work in some platform. */
10580#ifndef LT_DLLAZY_OR_NOW
10581#  ifdef RTLD_LAZY
10582#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10583#  else
10584#    ifdef DL_LAZY
10585#      define LT_DLLAZY_OR_NOW          DL_LAZY
10586#    else
10587#      ifdef RTLD_NOW
10588#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10589#      else
10590#        ifdef DL_NOW
10591#          define LT_DLLAZY_OR_NOW      DL_NOW
10592#        else
10593#          define LT_DLLAZY_OR_NOW      0
10594#        endif
10595#      endif
10596#    endif
10597#  endif
10598#endif
10599
10600#ifdef __cplusplus
10601extern "C" void exit (int);
10602#endif
10603
10604void fnord() { int i=42;}
10605int main ()
10606{
10607  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10608  int status = $lt_dlunknown;
10609
10610  if (self)
10611    {
10612      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10613      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10614      /* dlclose (self); */
10615    }
10616  else
10617    puts (dlerror ());
10618
10619    exit (status);
10620}
10621EOF
10622  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623  (eval $ac_link) 2>&5
10624  ac_status=$?
10625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10627    (./conftest; exit; ) >&5 2>/dev/null
10628    lt_status=$?
10629    case x$lt_status in
10630      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10631      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10632      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10633    esac
10634  else :
10635    # compilation failed
10636    lt_cv_dlopen_self=no
10637  fi
10638fi
10639rm -fr conftest*
10640
10641
10642fi
10643echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10644echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10645
10646    if test "x$lt_cv_dlopen_self" = xyes; then
10647      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10648      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10649echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10650if test "${lt_cv_dlopen_self_static+set}" = set; then
10651  echo $ECHO_N "(cached) $ECHO_C" >&6
10652else
10653          if test "$cross_compiling" = yes; then :
10654  lt_cv_dlopen_self_static=cross
10655else
10656  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10657  lt_status=$lt_dlunknown
10658  cat > conftest.$ac_ext <<EOF
10659#line 10659 "configure"
10660#include "confdefs.h"
10661
10662#if HAVE_DLFCN_H
10663#include <dlfcn.h>
10664#endif
10665
10666#include <stdio.h>
10667
10668#ifdef RTLD_GLOBAL
10669#  define LT_DLGLOBAL           RTLD_GLOBAL
10670#else
10671#  ifdef DL_GLOBAL
10672#    define LT_DLGLOBAL         DL_GLOBAL
10673#  else
10674#    define LT_DLGLOBAL         0
10675#  endif
10676#endif
10677
10678/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10679   find out it does not work in some platform. */
10680#ifndef LT_DLLAZY_OR_NOW
10681#  ifdef RTLD_LAZY
10682#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10683#  else
10684#    ifdef DL_LAZY
10685#      define LT_DLLAZY_OR_NOW          DL_LAZY
10686#    else
10687#      ifdef RTLD_NOW
10688#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10689#      else
10690#        ifdef DL_NOW
10691#          define LT_DLLAZY_OR_NOW      DL_NOW
10692#        else
10693#          define LT_DLLAZY_OR_NOW      0
10694#        endif
10695#      endif
10696#    endif
10697#  endif
10698#endif
10699
10700#ifdef __cplusplus
10701extern "C" void exit (int);
10702#endif
10703
10704void fnord() { int i=42;}
10705int main ()
10706{
10707  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10708  int status = $lt_dlunknown;
10709
10710  if (self)
10711    {
10712      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10713      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10714      /* dlclose (self); */
10715    }
10716  else
10717    puts (dlerror ());
10718
10719    exit (status);
10720}
10721EOF
10722  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10723  (eval $ac_link) 2>&5
10724  ac_status=$?
10725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10727    (./conftest; exit; ) >&5 2>/dev/null
10728    lt_status=$?
10729    case x$lt_status in
10730      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10731      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10732      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10733    esac
10734  else :
10735    # compilation failed
10736    lt_cv_dlopen_self_static=no
10737  fi
10738fi
10739rm -fr conftest*
10740
10741
10742fi
10743echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10744echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10745    fi
10746
10747    CPPFLAGS="$save_CPPFLAGS"
10748    LDFLAGS="$save_LDFLAGS"
10749    LIBS="$save_LIBS"
10750    ;;
10751  esac
10752
10753  case $lt_cv_dlopen_self in
10754  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10755  *) enable_dlopen_self=unknown ;;
10756  esac
10757
10758  case $lt_cv_dlopen_self_static in
10759  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10760  *) enable_dlopen_self_static=unknown ;;
10761  esac
10762fi
10763
10764
10765# Report which library types will actually be built
10766echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10767echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10768echo "$as_me:$LINENO: result: $can_build_shared" >&5
10769echo "${ECHO_T}$can_build_shared" >&6
10770
10771echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10772echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10773test "$can_build_shared" = "no" && enable_shared=no
10774
10775# On AIX, shared libraries and static libraries use the same namespace, and
10776# are all built from PIC.
10777case $host_os in
10778aix3*)
10779  test "$enable_shared" = yes && enable_static=no
10780  if test -n "$RANLIB"; then
10781    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10782    postinstall_cmds='$RANLIB $lib'
10783  fi
10784  ;;
10785
10786aix4* | aix5*)
10787  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10788    test "$enable_shared" = yes && enable_static=no
10789  fi
10790    ;;
10791esac
10792echo "$as_me:$LINENO: result: $enable_shared" >&5
10793echo "${ECHO_T}$enable_shared" >&6
10794