source: trunk/Clp/configure @ 1735

Last change on this file since 1735 was 1735, checked in by stefan, 8 years ago

rerun autotools

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