source: stable/1.15/Clp/configure @ 1991

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