source: stable/1.8/Clp/configure @ 1234

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

restoring stable/1.8

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