source: stable/0.60/Cgl/configure @ 1453

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

temporarily committing release candidate

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