source: stable/0.60/Cgl/configure @ 1455

Last change on this file since 1455 was 1455, checked in by stefan, 3 months ago

restoring Cgl/stable/0.60

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