source: trunk/Clp/configure @ 1691

Last change on this file since 1691 was 1691, checked in by stefan, 9 years ago

check for AMD and CHOLMOD and GLPK's AMD in configure; compile ClpCholeskyUfl? only if AMD, CHOLMOD, or GLPK available

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