source: stable/1.15/Clp/configure @ 1942

Last change on this file since 1942 was 1942, checked in by stefan, 7 years ago

temporarily committing release candidate

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