source: trunk/Clp/configure @ 2470

Last change on this file since 2470 was 2396, checked in by stefan, 5 months ago

restoring Clp/trunk

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