source: stable/1.13/Clp/configure @ 1898

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

rerun autotools; merge fixes in example Makefiles for mingw/cl from trunk

  • Property svn:executable set to *
File size: 832.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.13.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.13'
433PACKAGE_STRING='Clp 1.13'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CLPLIB_CFLAGS CLPLIB_LIBS CLPLIB_PCLIBS CLPLIB_PCREQUIRES CLPLIB_DEPENDENCIES CLPLIB_CFLAGS_INSTALLED CLPLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSICLPLIB_CFLAGS OSICLPLIB_LIBS OSICLPLIB_PCLIBS OSICLPLIB_PCREQUIRES OSICLPLIB_DEPENDENCIES OSICLPLIB_CFLAGS_INSTALLED OSICLPLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Clp 1.13 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Clp 1.13:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-clp compile this project (Clp) with debug options
1083  --enable-doscompile     Under Cygwin, compile so that executables run under
1084                          DOS. Set to mingw to use gcc/g++/ld with
1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --disable-dependency-tracking  speeds up one-time build
1091  --enable-dependency-tracking   do not reject slow dependency extractors
1092  --enable-maintainer-mode  enable make rules and dependencies not useful
1093                          (and sometimes confusing) to the casual installer
1094  --enable-shared[=PKGS]
1095                          build shared libraries [default=yes]
1096  --enable-fast-install[=PKGS]
1097                          optimize for fast installation [default=yes]
1098  --disable-libtool-lock  avoid locking (might break parallel builds)
1099  --enable-pkg-config     use pkg-config if available (default is yes)
1100  --enable-interpackage-dependencies
1101                          whether to deduce Makefile dependencies from package
1102                          linker flags (default: yes)
1103  --enable-gnu-packages   compile with GNU packages (disabled by default)
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-clp-verbosity specify the debug verbosity level for project Clp
1109  --with-clp-checklevel specify the sanity check level for project Clp
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  --with-coinutils-lib linker flags for using package CoinUtils
1118  --with-coinutils-incdir directory with header files for using package
1119                          CoinUtils
1120  --with-coinutils-datadir
1121                          directory with data files for using package
1122                          CoinUtils
1123  --with-osi-lib linker flags for using package Osi
1124  --with-osi-incdir directory with header files for using package Osi
1125  --with-osi-datadir directory with data files for using package Osi
1126  --with-ositests-lib linker flags for using package OsiTests
1127  --with-ositests-incdir directory with header files for using package
1128                          OsiTests
1129  --with-ositests-datadir directory with data files for using package OsiTests
1130  --with-sample-lib linker flags for using package Sample
1131  --with-sample-incdir directory with header files for using package Sample
1132  --with-sample-datadir directory with data files for using package Sample
1133  --with-netlib-lib linker flags for using package Netlib
1134  --with-netlib-incdir directory with header files for using package Netlib
1135  --with-netlib-datadir directory with data files for using package Netlib
1136  --with-wsmp             specify WSMP library
1137  --with-dot              use dot (from graphviz) when creating documentation
1138                          with doxygen if available; --without-dot to disable
1139
1140Some influential environment variables:
1141  CDEFS       Additional -D flags to be used when compiling C code.
1142  ADD_CFLAGS  Additional C compiler options
1143  DBG_CFLAGS  Debug C compiler options
1144  OPT_CFLAGS  Optimize C compiler options
1145  CC          C compiler command
1146  CFLAGS      C compiler flags
1147  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1148              nonstandard directory <lib dir>
1149  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1150              headers in a nonstandard directory <include dir>
1151  MPICC       C MPI Compiler
1152  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1153  ADD_CXXFLAGS
1154              Additional C++ compiler options
1155  DBG_CXXFLAGS
1156              Debug C++ compiler options
1157  OPT_CXXFLAGS
1158              Optimize C++ compiler options
1159  CXX         C++ compiler command
1160  CXXFLAGS    C++ compiler flags
1161  MPICXX      C++ MPI Compiler
1162  CPP         C preprocessor
1163  CXXCPP      C++ preprocessor
1164  F77         Fortran 77 compiler command
1165  FFLAGS      Fortran 77 compiler flags
1166  PKG_CONFIG  path to pkg-config utility
1167
1168Use these variables to override the choices made by `configure' or to help
1169it to find libraries and programs with nonstandard names/locations.
1170
1171Report bugs to <clp@list.coin-or.org>.
1172_ACEOF
1173fi
1174
1175if test "$ac_init_help" = "recursive"; then
1176  # If there are subdirs, report their specific --help.
1177  ac_popdir=`pwd`
1178  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1179    test -d $ac_dir || continue
1180    ac_builddir=.
1181
1182if test "$ac_dir" != .; then
1183  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1184  # A "../" for each directory in $ac_dir_suffix.
1185  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1186else
1187  ac_dir_suffix= ac_top_builddir=
1188fi
1189
1190case $srcdir in
1191  .)  # No --srcdir option.  We are building in place.
1192    ac_srcdir=.
1193    if test -z "$ac_top_builddir"; then
1194       ac_top_srcdir=.
1195    else
1196       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1197    fi ;;
1198  [\\/]* | ?:[\\/]* )  # Absolute path.
1199    ac_srcdir=$srcdir$ac_dir_suffix;
1200    ac_top_srcdir=$srcdir ;;
1201  *) # Relative path.
1202    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1203    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1204esac
1205
1206# Do not use `cd foo && pwd` to compute absolute paths, because
1207# the directories may not exist.
1208case `pwd` in
1209.) ac_abs_builddir="$ac_dir";;
1210*)
1211  case "$ac_dir" in
1212  .) ac_abs_builddir=`pwd`;;
1213  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1214  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1215  esac;;
1216esac
1217case $ac_abs_builddir in
1218.) ac_abs_top_builddir=${ac_top_builddir}.;;
1219*)
1220  case ${ac_top_builddir}. in
1221  .) ac_abs_top_builddir=$ac_abs_builddir;;
1222  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1223  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1224  esac;;
1225esac
1226case $ac_abs_builddir in
1227.) ac_abs_srcdir=$ac_srcdir;;
1228*)
1229  case $ac_srcdir in
1230  .) ac_abs_srcdir=$ac_abs_builddir;;
1231  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1232  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1233  esac;;
1234esac
1235case $ac_abs_builddir in
1236.) ac_abs_top_srcdir=$ac_top_srcdir;;
1237*)
1238  case $ac_top_srcdir in
1239  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1240  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1241  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1242  esac;;
1243esac
1244
1245    cd $ac_dir
1246    # Check for guested configure; otherwise get Cygnus style configure.
1247    if test -f $ac_srcdir/configure.gnu; then
1248      echo
1249      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1250    elif test -f $ac_srcdir/configure; then
1251      echo
1252      $SHELL $ac_srcdir/configure  --help=recursive
1253    elif test -f $ac_srcdir/configure.ac ||
1254           test -f $ac_srcdir/configure.in; then
1255      echo
1256      $ac_configure --help
1257    else
1258      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1259    fi
1260    cd $ac_popdir
1261  done
1262fi
1263
1264test -n "$ac_init_help" && exit 0
1265if $ac_init_version; then
1266  cat <<\_ACEOF
1267Clp configure 1.13
1268generated by GNU Autoconf 2.59
1269
1270Copyright (C) 2003 Free Software Foundation, Inc.
1271This configure script is free software; the Free Software Foundation
1272gives unlimited permission to copy, distribute and modify it.
1273
1274
1275Copyright 2006 International Business Machines and others.
1276All Rights Reserved.
1277This file is part of the open source package Coin which is distributed
1278under the Common Public License.
1279_ACEOF
1280  exit 0
1281fi
1282exec 5>config.log
1283cat >&5 <<_ACEOF
1284This file contains any messages produced by compilers while
1285running configure, to aid debugging if configure makes a mistake.
1286
1287It was created by Clp $as_me 1.13, which was
1288generated by GNU Autoconf 2.59.  Invocation command line was
1289
1290  $ $0 $@
1291
1292_ACEOF
1293{
1294cat <<_ASUNAME
1295## --------- ##
1296## Platform. ##
1297## --------- ##
1298
1299hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1300uname -m = `(uname -m) 2>/dev/null || echo unknown`
1301uname -r = `(uname -r) 2>/dev/null || echo unknown`
1302uname -s = `(uname -s) 2>/dev/null || echo unknown`
1303uname -v = `(uname -v) 2>/dev/null || echo unknown`
1304
1305/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1306/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1307
1308/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1309/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1310/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1311hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1312/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1313/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1314/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1315
1316_ASUNAME
1317
1318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1319for as_dir in $PATH
1320do
1321  IFS=$as_save_IFS
1322  test -z "$as_dir" && as_dir=.
1323  echo "PATH: $as_dir"
1324done
1325
1326} >&5
1327
1328cat >&5 <<_ACEOF
1329
1330
1331## ----------- ##
1332## Core tests. ##
1333## ----------- ##
1334
1335_ACEOF
1336
1337
1338# Keep a trace of the command line.
1339# Strip out --no-create and --no-recursion so they do not pile up.
1340# Strip out --silent because we don't want to record it for future runs.
1341# Also quote any args containing shell meta-characters.
1342# Make two passes to allow for proper duplicate-argument suppression.
1343ac_configure_args=
1344ac_configure_args0=
1345ac_configure_args1=
1346ac_sep=
1347ac_must_keep_next=false
1348for ac_pass in 1 2
1349do
1350  for ac_arg
1351  do
1352    case $ac_arg in
1353    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1354    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1355    | -silent | --silent | --silen | --sile | --sil)
1356      continue ;;
1357    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1358      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1359    esac
1360    case $ac_pass in
1361    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1362    2)
1363      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1364      if test $ac_must_keep_next = true; then
1365        ac_must_keep_next=false # Got value, back to normal.
1366      else
1367        case $ac_arg in
1368          *=* | --config-cache | -C | -disable-* | --disable-* \
1369          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1370          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1371          | -with-* | --with-* | -without-* | --without-* | --x)
1372            case "$ac_configure_args0 " in
1373              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1374            esac
1375            ;;
1376          -* ) ac_must_keep_next=true ;;
1377        esac
1378      fi
1379      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1380      # Get rid of the leading space.
1381      ac_sep=" "
1382      ;;
1383    esac
1384  done
1385done
1386$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1387$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1388
1389# When interrupted or exit'd, cleanup temporary files, and complete
1390# config.log.  We remove comments because anyway the quotes in there
1391# would cause problems or look ugly.
1392# WARNING: Be sure not to use single quotes in there, as some shells,
1393# such as our DU 5.0 friend, will then `close' the trap.
1394trap 'exit_status=$?
1395  # Save into config.log some information that might help in debugging.
1396  {
1397    echo
1398
1399    cat <<\_ASBOX
1400## ---------------- ##
1401## Cache variables. ##
1402## ---------------- ##
1403_ASBOX
1404    echo
1405    # The following way of writing the cache mishandles newlines in values,
1406{
1407  (set) 2>&1 |
1408    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1409    *ac_space=\ *)
1410      sed -n \
1411        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1412          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1413      ;;
1414    *)
1415      sed -n \
1416        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1417      ;;
1418    esac;
1419}
1420    echo
1421
1422    cat <<\_ASBOX
1423## ----------------- ##
1424## Output variables. ##
1425## ----------------- ##
1426_ASBOX
1427    echo
1428    for ac_var in $ac_subst_vars
1429    do
1430      eval ac_val=$`echo $ac_var`
1431      echo "$ac_var='"'"'$ac_val'"'"'"
1432    done | sort
1433    echo
1434
1435    if test -n "$ac_subst_files"; then
1436      cat <<\_ASBOX
1437## ------------- ##
1438## Output files. ##
1439## ------------- ##
1440_ASBOX
1441      echo
1442      for ac_var in $ac_subst_files
1443      do
1444        eval ac_val=$`echo $ac_var`
1445        echo "$ac_var='"'"'$ac_val'"'"'"
1446      done | sort
1447      echo
1448    fi
1449
1450    if test -s confdefs.h; then
1451      cat <<\_ASBOX
1452## ----------- ##
1453## confdefs.h. ##
1454## ----------- ##
1455_ASBOX
1456      echo
1457      sed "/^$/d" confdefs.h | sort
1458      echo
1459    fi
1460    test "$ac_signal" != 0 &&
1461      echo "$as_me: caught signal $ac_signal"
1462    echo "$as_me: exit $exit_status"
1463  } >&5
1464  rm -f core *.core &&
1465  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1466    exit $exit_status
1467     ' 0
1468for ac_signal in 1 2 13 15; do
1469  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1470done
1471ac_signal=0
1472
1473# confdefs.h avoids OS command line length limits that DEFS can exceed.
1474rm -rf conftest* confdefs.h
1475# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1476echo >confdefs.h
1477
1478# Predefined preprocessor variables.
1479
1480cat >>confdefs.h <<_ACEOF
1481#define PACKAGE_NAME "$PACKAGE_NAME"
1482_ACEOF
1483
1484
1485cat >>confdefs.h <<_ACEOF
1486#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1487_ACEOF
1488
1489
1490cat >>confdefs.h <<_ACEOF
1491#define PACKAGE_VERSION "$PACKAGE_VERSION"
1492_ACEOF
1493
1494
1495cat >>confdefs.h <<_ACEOF
1496#define PACKAGE_STRING "$PACKAGE_STRING"
1497_ACEOF
1498
1499
1500cat >>confdefs.h <<_ACEOF
1501#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1502_ACEOF
1503
1504
1505# Let the site file select an alternate cache file if it wants to.
1506# Prefer explicitly selected file to automatically selected ones.
1507if test -z "$CONFIG_SITE"; then
1508  if test "x$prefix" != xNONE; then
1509    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1510  else
1511    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1512  fi
1513fi
1514for ac_site_file in $CONFIG_SITE; do
1515  if test -r "$ac_site_file"; then
1516    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1517echo "$as_me: loading site script $ac_site_file" >&6;}
1518    sed 's/^/| /' "$ac_site_file" >&5
1519    . "$ac_site_file"
1520  fi
1521done
1522
1523if test -r "$cache_file"; then
1524  # Some versions of bash will fail to source /dev/null (special
1525  # files actually), so we avoid doing that.
1526  if test -f "$cache_file"; then
1527    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1528echo "$as_me: loading cache $cache_file" >&6;}
1529    case $cache_file in
1530      [\\/]* | ?:[\\/]* ) . $cache_file;;
1531      *)                      . ./$cache_file;;
1532    esac
1533  fi
1534else
1535  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1536echo "$as_me: creating cache $cache_file" >&6;}
1537  >$cache_file
1538fi
1539
1540# Check that the precious variables saved in the cache have kept the same
1541# value.
1542ac_cache_corrupted=false
1543for ac_var in `(set) 2>&1 |
1544               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1545  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1546  eval ac_new_set=\$ac_env_${ac_var}_set
1547  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1548  eval ac_new_val="\$ac_env_${ac_var}_value"
1549  case $ac_old_set,$ac_new_set in
1550    set,)
1551      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1552echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1553      ac_cache_corrupted=: ;;
1554    ,set)
1555      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1556echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1557      ac_cache_corrupted=: ;;
1558    ,);;
1559    *)
1560      if test "x$ac_old_val" != "x$ac_new_val"; then
1561        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1562echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1563        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1564echo "$as_me:   former value:  $ac_old_val" >&2;}
1565        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1566echo "$as_me:   current value: $ac_new_val" >&2;}
1567        ac_cache_corrupted=:
1568      fi;;
1569  esac
1570  # Pass precious variables to config.status.
1571  if test "$ac_new_set" = set; then
1572    case $ac_new_val in
1573    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1574      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1575    *) ac_arg=$ac_var=$ac_new_val ;;
1576    esac
1577    case " $ac_configure_args " in
1578      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1579      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1580    esac
1581  fi
1582done
1583if $ac_cache_corrupted; then
1584  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1585echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1586  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1587echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1588   { (exit 1); exit 1; }; }
1589fi
1590
1591ac_ext=c
1592ac_cpp='$CPP $CPPFLAGS'
1593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1595ac_compiler_gnu=$ac_cv_c_compiler_gnu
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626# List one file in the package so that the configure script can test
1627# whether the package is actually there
1628
1629
1630# Where should everything be installed by default?  Here, we want it
1631# to be installed directly in 'bin', 'lib', 'include' subdirectories
1632# of the directory where configure is run.  The default would be
1633# /usr/local.
1634
1635
1636#############################################################################
1637#                         Standard build tool stuff                         #
1638#############################################################################
1639
1640# Get the system type
1641ac_aux_dir=
1642for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1643  if test -f $ac_dir/install-sh; then
1644    ac_aux_dir=$ac_dir
1645    ac_install_sh="$ac_aux_dir/install-sh -c"
1646    break
1647  elif test -f $ac_dir/install.sh; then
1648    ac_aux_dir=$ac_dir
1649    ac_install_sh="$ac_aux_dir/install.sh -c"
1650    break
1651  elif test -f $ac_dir/shtool; then
1652    ac_aux_dir=$ac_dir
1653    ac_install_sh="$ac_aux_dir/shtool install -c"
1654    break
1655  fi
1656done
1657if test -z "$ac_aux_dir"; then
1658  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1659echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1660   { (exit 1); exit 1; }; }
1661fi
1662ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1663ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1664ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1665
1666# Make sure we can run config.sub.
1667$ac_config_sub sun4 >/dev/null 2>&1 ||
1668  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1669echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1670   { (exit 1); exit 1; }; }
1671
1672echo "$as_me:$LINENO: checking build system type" >&5
1673echo $ECHO_N "checking build system type... $ECHO_C" >&6
1674if test "${ac_cv_build+set}" = set; then
1675  echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677  ac_cv_build_alias=$build_alias
1678test -z "$ac_cv_build_alias" &&
1679  ac_cv_build_alias=`$ac_config_guess`
1680test -z "$ac_cv_build_alias" &&
1681  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1682echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1683   { (exit 1); exit 1; }; }
1684ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1685  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1686echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1687   { (exit 1); exit 1; }; }
1688
1689fi
1690echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1691echo "${ECHO_T}$ac_cv_build" >&6
1692build=$ac_cv_build
1693build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1694build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1695build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1696
1697
1698
1699# If this project depends on external projects, the Externals file in
1700# the source root directory contains definition of where to find those
1701# externals.  The following macro ensures that those externals are
1702# retrieved by svn if they are not there yet.
1703# Initialize the ADDLIBS variable
1704ADDLIBS="-lm $LIBS"
1705
1706
1707# Initialize the PCADDLIBS variable.
1708# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1709# In certain cases, it may contain more flags than the ADDLIBS variable.
1710PCADDLIBS=""
1711
1712
1713# As backup, we make sure we don't loose an FLIBS if it has been set
1714# by the user
1715save_FLIBS="$FLIBS"
1716
1717# Initialize the FADDLIBS variable (which is to be used with a fortran
1718# compiler and will not include FLIBS)
1719FADDLIBS="$LIBS"
1720
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 number
1739if test "xClp" != x; then
1740
1741cat >>confdefs.h <<_ACEOF
1742#define CLP_VERSION "$PACKAGE_VERSION"
1743_ACEOF
1744
1745fi
1746
1747# Set the project's SVN revision number. The complicated sed expression
1748# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1749# as a single number.
1750# Extract the first word of "svnversion", so it can be a program name with args.
1751set dummy svnversion; ac_word=$2
1752echo "$as_me:$LINENO: checking for $ac_word" >&5
1753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754if test "${ac_cv_prog_have_svnversion+set}" = set; then
1755  echo $ECHO_N "(cached) $ECHO_C" >&6
1756else
1757  if test -n "$have_svnversion"; then
1758  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1759else
1760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761for as_dir in $PATH
1762do
1763  IFS=$as_save_IFS
1764  test -z "$as_dir" && as_dir=.
1765  for ac_exec_ext in '' $ac_executable_extensions; do
1766  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767    ac_cv_prog_have_svnversion="yes"
1768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769    break 2
1770  fi
1771done
1772done
1773
1774  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1775fi
1776fi
1777have_svnversion=$ac_cv_prog_have_svnversion
1778if test -n "$have_svnversion"; then
1779  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1780echo "${ECHO_T}$have_svnversion" >&6
1781else
1782  echo "$as_me:$LINENO: result: no" >&5
1783echo "${ECHO_T}no" >&6
1784fi
1785
1786if test "x$have_svnversion" = xyes && test "xClp" != x; then
1787
1788  svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1789  if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1790    CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1791
1792cat >>confdefs.h <<_ACEOF
1793#define CLP_SVN_REV $CLP_SVN_REV
1794_ACEOF
1795
1796  fi
1797fi
1798
1799# Capture libtool library version, if given.
1800
1801
1802
1803# Check if user wants to produce debugging code
1804
1805echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1806echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1807
1808# Check whether --enable-debug or --disable-debug was given.
1809if test "${enable_debug+set}" = set; then
1810  enableval="$enable_debug"
1811  case "${enableval}" in
1812   yes) coin_debug_compile=true
1813        if test "${enable_shared+set}" = set; then :; else
1814          enable_shared=no
1815        fi
1816        ;;
1817   no)  coin_debug_compile=false
1818        ;;
1819   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1820echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1821   { (exit 1); exit 1; }; }
1822        ;;
1823esac
1824else
1825  coin_debug_compile=false
1826fi;
1827
1828# Check whether --enable-debug-clp or --disable-debug-clp was given.
1829if test "${enable_debug_clp+set}" = set; then
1830  enableval="$enable_debug_clp"
1831  case "${enableval}" in
1832    yes) coin_debug_compile=true
1833         enable_shared=no
1834         ;;
1835    no)  coin_debug_compile=false
1836         ;;
1837    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1838echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1839   { (exit 1); exit 1; }; }
1840         ;;
1841 esac
1842else
1843  :
1844fi;
1845
1846 # m4_ifvaln([Clp],
1847
1848if test $coin_debug_compile = true; then
1849  echo "$as_me:$LINENO: result: yes" >&5
1850echo "${ECHO_T}yes" >&6
1851else
1852  echo "$as_me:$LINENO: result: no" >&5
1853echo "${ECHO_T}no" >&6
1854fi
1855
1856
1857# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1858if test "${with_clp_verbosity+set}" = set; then
1859  withval="$with_clp_verbosity"
1860  if test "$withval" = yes; then
1861                withval=1
1862              fi
1863              coin_clp_verbosity=$withval
1864else
1865  coin_clp_verbosity=0
1866fi;
1867
1868cat >>confdefs.h <<_ACEOF
1869#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1870_ACEOF
1871
1872
1873
1874# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1875if test "${with_clp_checklevel+set}" = set; then
1876  withval="$with_clp_checklevel"
1877  if test "$withval" = yes; then
1878                withval=1
1879              fi
1880              coin_clp_checklevel=$withval
1881else
1882  coin_clp_checklevel=0
1883fi;
1884
1885cat >>confdefs.h <<_ACEOF
1886#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1887_ACEOF
1888
1889
1890# We use the following variable to have a string with the upper case
1891# version of the project name
1892COIN_PRJCT=CLP
1893
1894
1895 # m4_ifvaln([Clp],
1896
1897
1898
1899# Get the name of the C++ compiler and appropriate compiler options
1900case $build in
1901  *-mingw*)
1902    if test "${LD+set}" = set; then :; else
1903      LD=link
1904    fi
1905    ;;
1906 esac
1907 case $enable_doscompile in
1908   msvc)
1909     if test "x${LD+set}" = xset; then :; else
1910       LD=link
1911     fi
1912     ;;
1913 esac
1914
1915
1916 # Check whether --enable-doscompile or --disable-doscompile was given.
1917if test "${enable_doscompile+set}" = set; then
1918  enableval="$enable_doscompile"
1919  if test "$enable_doscompile" != no; then
1920     case $build in
1921       *-cygwin* | *-mingw*) ;;
1922       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1923echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1924   { (exit 1); exit 1; }; } ;;
1925     esac
1926   fi
1927else
1928  enable_doscompile=no
1929fi;
1930 case "$enable_doscompile" in
1931   mingw)
1932     case $build in
1933       *-mingw*) enable_doscompile=no ;;
1934     esac
1935     ;;
1936   msvc|no) ;;
1937   yes) enable_doscompile=mingw ;;
1938   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1939                    Try configure --help=recursive." >&5
1940echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1941                    Try configure --help=recursive." >&2;}
1942   { (exit 1); exit 1; }; }
1943      ;;
1944  esac
1945  if test "$enable_doscompile" != no ; then
1946    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1947echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1948  fi
1949
1950
1951
1952
1953ac_ext=c
1954ac_cpp='$CPP $CPPFLAGS'
1955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1957ac_compiler_gnu=$ac_cv_c_compiler_gnu
1958
1959
1960# For consistency, we set the C compiler to the same value of the C++
1961# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1962if test x"$CXX" != x; then
1963  case "$CXX" in
1964    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1965      if test x"$CC" = x; then
1966        CC="$CXX"
1967        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1968echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1969      fi
1970      ;;
1971  esac
1972fi
1973
1974
1975
1976
1977
1978
1979coin_has_cc=yes
1980
1981save_cflags="$CFLAGS"
1982
1983# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1984# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1985# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1986# compiler. In this case, put cc after gcc.
1987
1988case $build in
1989  *-cygwin* | *-mingw*)
1990             if test "$enable_doscompile" = msvc ; then
1991               comps="icl cl"
1992             else
1993               comps="gcc cl"
1994             fi ;;
1995  *-*-solaris*)
1996             # Extract the first word of "cc", so it can be a program name with args.
1997set dummy cc; ac_word=$2
1998echo "$as_me:$LINENO: checking for $ac_word" >&5
1999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2000if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2001  echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003  if test -n "$sol_cc_compiler"; then
2004  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2005else
2006  ac_prog_rejected=no
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010  IFS=$as_save_IFS
2011  test -z "$as_dir" && as_dir=.
2012  for ac_exec_ext in '' $ac_executable_extensions; do
2013  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2015       ac_prog_rejected=yes
2016       continue
2017     fi
2018    ac_cv_prog_sol_cc_compiler="cc"
2019    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020    break 2
2021  fi
2022done
2023done
2024
2025if test $ac_prog_rejected = yes; then
2026  # We found a bogon in the path, so make sure we never use it.
2027  set dummy $ac_cv_prog_sol_cc_compiler
2028  shift
2029  if test $# != 0; then
2030    # We chose a different compiler from the bogus one.
2031    # However, it has the same basename, so the bogon will be chosen
2032    # first if we set sol_cc_compiler to just the basename; use the full file name.
2033    shift
2034    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2035  fi
2036fi
2037fi
2038fi
2039sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2040if test -n "$sol_cc_compiler"; then
2041  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2042echo "${ECHO_T}$sol_cc_compiler" >&6
2043else
2044  echo "$as_me:$LINENO: result: no" >&5
2045echo "${ECHO_T}no" >&6
2046fi
2047
2048             if test "$sol_cc_compiler" = "cc" ; then
2049               comps="cc xlc gcc pgcc icc"
2050             else
2051               comps="xlc gcc pgcc icc cc"
2052             fi
2053             ;;
2054  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2055  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2056  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2057esac
2058
2059# We delete the cached value, since the test might not have been
2060# performed with our choice of compilers earlier
2061$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2062# AC_MSG_NOTICE([C compiler candidates: $comps])
2063ac_ext=c
2064ac_cpp='$CPP $CPPFLAGS'
2065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2067ac_compiler_gnu=$ac_cv_c_compiler_gnu
2068if test -n "$ac_tool_prefix"; then
2069  for ac_prog in $comps
2070  do
2071    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2072set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2073echo "$as_me:$LINENO: checking for $ac_word" >&5
2074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075if test "${ac_cv_prog_CC+set}" = set; then
2076  echo $ECHO_N "(cached) $ECHO_C" >&6
2077else
2078  if test -n "$CC"; then
2079  ac_cv_prog_CC="$CC" # Let the user override the test.
2080else
2081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082for as_dir in $PATH
2083do
2084  IFS=$as_save_IFS
2085  test -z "$as_dir" && as_dir=.
2086  for ac_exec_ext in '' $ac_executable_extensions; do
2087  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090    break 2
2091  fi
2092done
2093done
2094
2095fi
2096fi
2097CC=$ac_cv_prog_CC
2098if test -n "$CC"; then
2099  echo "$as_me:$LINENO: result: $CC" >&5
2100echo "${ECHO_T}$CC" >&6
2101else
2102  echo "$as_me:$LINENO: result: no" >&5
2103echo "${ECHO_T}no" >&6
2104fi
2105
2106    test -n "$CC" && break
2107  done
2108fi
2109if test -z "$CC"; then
2110  ac_ct_CC=$CC
2111  for ac_prog in $comps
2112do
2113  # Extract the first word of "$ac_prog", so it can be a program name with args.
2114set dummy $ac_prog; ac_word=$2
2115echo "$as_me:$LINENO: checking for $ac_word" >&5
2116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2118  echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120  if test -n "$ac_ct_CC"; then
2121  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2122else
2123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124for as_dir in $PATH
2125do
2126  IFS=$as_save_IFS
2127  test -z "$as_dir" && as_dir=.
2128  for ac_exec_ext in '' $ac_executable_extensions; do
2129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130    ac_cv_prog_ac_ct_CC="$ac_prog"
2131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132    break 2
2133  fi
2134done
2135done
2136
2137fi
2138fi
2139ac_ct_CC=$ac_cv_prog_ac_ct_CC
2140if test -n "$ac_ct_CC"; then
2141  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2142echo "${ECHO_T}$ac_ct_CC" >&6
2143else
2144  echo "$as_me:$LINENO: result: no" >&5
2145echo "${ECHO_T}no" >&6
2146fi
2147
2148  test -n "$ac_ct_CC" && break
2149done
2150
2151  CC=$ac_ct_CC
2152fi
2153
2154
2155test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2156See \`config.log' for more details." >&5
2157echo "$as_me: error: no acceptable C compiler found in \$PATH
2158See \`config.log' for more details." >&2;}
2159   { (exit 1); exit 1; }; }
2160
2161# Provide some information about the compiler.
2162echo "$as_me:$LINENO:" \
2163     "checking for C compiler version" >&5
2164ac_compiler=`set X $ac_compile; echo $2`
2165{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2166  (eval $ac_compiler --version </dev/null >&5) 2>&5
2167  ac_status=$?
2168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169  (exit $ac_status); }
2170{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2171  (eval $ac_compiler -v </dev/null >&5) 2>&5
2172  ac_status=$?
2173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174  (exit $ac_status); }
2175{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2176  (eval $ac_compiler -V </dev/null >&5) 2>&5
2177  ac_status=$?
2178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179  (exit $ac_status); }
2180
2181cat >conftest.$ac_ext <<_ACEOF
2182/* confdefs.h.  */
2183_ACEOF
2184cat confdefs.h >>conftest.$ac_ext
2185cat >>conftest.$ac_ext <<_ACEOF
2186/* end confdefs.h.  */
2187
2188int
2189main ()
2190{
2191
2192  ;
2193  return 0;
2194}
2195_ACEOF
2196ac_clean_files_save=$ac_clean_files
2197ac_clean_files="$ac_clean_files a.out a.exe b.out"
2198# Try to create an executable without -o first, disregard a.out.
2199# It will help us diagnose broken compilers, and finding out an intuition
2200# of exeext.
2201echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2202echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2203ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2204if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2205  (eval $ac_link_default) 2>&5
2206  ac_status=$?
2207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208  (exit $ac_status); }; then
2209  # Find the output, starting from the most likely.  This scheme is
2210# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2211# resort.
2212
2213# Be careful to initialize this variable, since it used to be cached.
2214# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2215ac_cv_exeext=
2216# b.out is created by i960 compilers.
2217for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2218do
2219  test -f "$ac_file" || continue
2220  case $ac_file in
2221    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2222        ;;
2223    conftest.$ac_ext )
2224        # This is the source file.
2225        ;;
2226    [ab].out )
2227        # We found the default executable, but exeext='' is most
2228        # certainly right.
2229        break;;
2230    *.* )
2231        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2232        # FIXME: I believe we export ac_cv_exeext for Libtool,
2233        # but it would be cool to find out if it's true.  Does anybody
2234        # maintain Libtool? --akim.
2235        export ac_cv_exeext
2236        break;;
2237    * )
2238        break;;
2239  esac
2240done
2241else
2242  echo "$as_me: failed program was:" >&5
2243sed 's/^/| /' conftest.$ac_ext >&5
2244
2245{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2246See \`config.log' for more details." >&5
2247echo "$as_me: error: C compiler cannot create executables
2248See \`config.log' for more details." >&2;}
2249   { (exit 77); exit 77; }; }
2250fi
2251
2252ac_exeext=$ac_cv_exeext
2253echo "$as_me:$LINENO: result: $ac_file" >&5
2254echo "${ECHO_T}$ac_file" >&6
2255
2256# Check the compiler produces executables we can run.  If not, either
2257# the compiler is broken, or we cross compile.
2258echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2259echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2260# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2261# If not cross compiling, check that we can run a simple program.
2262if test "$cross_compiling" != yes; then
2263  if { ac_try='./$ac_file'
2264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265  (eval $ac_try) 2>&5
2266  ac_status=$?
2267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268  (exit $ac_status); }; }; then
2269    cross_compiling=no
2270  else
2271    if test "$cross_compiling" = maybe; then
2272        cross_compiling=yes
2273    else
2274        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2275If you meant to cross compile, use \`--host'.
2276See \`config.log' for more details." >&5
2277echo "$as_me: error: cannot run C compiled programs.
2278If you meant to cross compile, use \`--host'.
2279See \`config.log' for more details." >&2;}
2280   { (exit 1); exit 1; }; }
2281    fi
2282  fi
2283fi
2284echo "$as_me:$LINENO: result: yes" >&5
2285echo "${ECHO_T}yes" >&6
2286
2287rm -f a.out a.exe conftest$ac_cv_exeext b.out
2288ac_clean_files=$ac_clean_files_save
2289# Check the compiler produces executables we can run.  If not, either
2290# the compiler is broken, or we cross compile.
2291echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2292echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2293echo "$as_me:$LINENO: result: $cross_compiling" >&5
2294echo "${ECHO_T}$cross_compiling" >&6
2295
2296echo "$as_me:$LINENO: checking for suffix of executables" >&5
2297echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2299  (eval $ac_link) 2>&5
2300  ac_status=$?
2301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302  (exit $ac_status); }; then
2303  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2304# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2305# work properly (i.e., refer to `conftest.exe'), while it won't with
2306# `rm'.
2307for ac_file in conftest.exe conftest conftest.*; do
2308  test -f "$ac_file" || continue
2309  case $ac_file in
2310    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2311    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2312          export ac_cv_exeext
2313          break;;
2314    * ) break;;
2315  esac
2316done
2317else
2318  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2319See \`config.log' for more details." >&5
2320echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2321See \`config.log' for more details." >&2;}
2322   { (exit 1); exit 1; }; }
2323fi
2324
2325rm -f conftest$ac_cv_exeext
2326echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2327echo "${ECHO_T}$ac_cv_exeext" >&6
2328
2329rm -f conftest.$ac_ext
2330EXEEXT=$ac_cv_exeext
2331ac_exeext=$EXEEXT
2332echo "$as_me:$LINENO: checking for suffix of object files" >&5
2333echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2334if test "${ac_cv_objext+set}" = set; then
2335  echo $ECHO_N "(cached) $ECHO_C" >&6
2336else
2337  cat >conftest.$ac_ext <<_ACEOF
2338/* confdefs.h.  */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h.  */
2343
2344int
2345main ()
2346{
2347
2348  ;
2349  return 0;
2350}
2351_ACEOF
2352rm -f conftest.o conftest.obj
2353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2354  (eval $ac_compile) 2>&5
2355  ac_status=$?
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); }; then
2358  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2359  case $ac_file in
2360    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2361    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2362       break;;
2363  esac
2364done
2365else
2366  echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2370See \`config.log' for more details." >&5
2371echo "$as_me: error: cannot compute suffix of object files: cannot compile
2372See \`config.log' for more details." >&2;}
2373   { (exit 1); exit 1; }; }
2374fi
2375
2376rm -f conftest.$ac_cv_objext conftest.$ac_ext
2377fi
2378echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2379echo "${ECHO_T}$ac_cv_objext" >&6
2380OBJEXT=$ac_cv_objext
2381ac_objext=$OBJEXT
2382echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2383echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2384if test "${ac_cv_c_compiler_gnu+set}" = set; then
2385  echo $ECHO_N "(cached) $ECHO_C" >&6
2386else
2387  cat >conftest.$ac_ext <<_ACEOF
2388/* confdefs.h.  */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h.  */
2393
2394int
2395main ()
2396{
2397#ifndef __GNUC__
2398       choke me
2399#endif
2400
2401  ;
2402  return 0;
2403}
2404_ACEOF
2405rm -f conftest.$ac_objext
2406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2407  (eval $ac_compile) 2>conftest.er1
2408  ac_status=$?
2409  grep -v '^ *+' conftest.er1 >conftest.err
2410  rm -f conftest.er1
2411  cat conftest.err >&5
2412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413  (exit $ac_status); } &&
2414         { ac_try='test -z "$ac_c_werror_flag"
2415                         || test ! -s conftest.err'
2416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417  (eval $ac_try) 2>&5
2418  ac_status=$?
2419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420  (exit $ac_status); }; } &&
2421         { ac_try='test -s conftest.$ac_objext'
2422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423  (eval $ac_try) 2>&5
2424  ac_status=$?
2425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426  (exit $ac_status); }; }; then
2427  ac_compiler_gnu=yes
2428else
2429  echo "$as_me: failed program was:" >&5
2430sed 's/^/| /' conftest.$ac_ext >&5
2431
2432ac_compiler_gnu=no
2433fi
2434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2435ac_cv_c_compiler_gnu=$ac_compiler_gnu
2436
2437fi
2438echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2439echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2440GCC=`test $ac_compiler_gnu = yes && echo yes`
2441ac_test_CFLAGS=${CFLAGS+set}
2442ac_save_CFLAGS=$CFLAGS
2443CFLAGS="-g"
2444echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2445echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2446if test "${ac_cv_prog_cc_g+set}" = set; then
2447  echo $ECHO_N "(cached) $ECHO_C" >&6
2448else
2449  cat >conftest.$ac_ext <<_ACEOF
2450/* confdefs.h.  */
2451_ACEOF
2452cat confdefs.h >>conftest.$ac_ext
2453cat >>conftest.$ac_ext <<_ACEOF
2454/* end confdefs.h.  */
2455
2456int
2457main ()
2458{
2459
2460  ;
2461  return 0;
2462}
2463_ACEOF
2464rm -f conftest.$ac_objext
2465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2466  (eval $ac_compile) 2>conftest.er1
2467  ac_status=$?
2468  grep -v '^ *+' conftest.er1 >conftest.err
2469  rm -f conftest.er1
2470  cat conftest.err >&5
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); } &&
2473         { ac_try='test -z "$ac_c_werror_flag"
2474                         || test ! -s conftest.err'
2475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2476  (eval $ac_try) 2>&5
2477  ac_status=$?
2478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479  (exit $ac_status); }; } &&
2480         { ac_try='test -s conftest.$ac_objext'
2481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482  (eval $ac_try) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }; }; then
2486  ac_cv_prog_cc_g=yes
2487else
2488  echo "$as_me: failed program was:" >&5
2489sed 's/^/| /' conftest.$ac_ext >&5
2490
2491ac_cv_prog_cc_g=no
2492fi
2493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494fi
2495echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2496echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2497if test "$ac_test_CFLAGS" = set; then
2498  CFLAGS=$ac_save_CFLAGS
2499elif test $ac_cv_prog_cc_g = yes; then
2500  if test "$GCC" = yes; then
2501    CFLAGS="-g -O2"
2502  else
2503    CFLAGS="-g"
2504  fi
2505else
2506  if test "$GCC" = yes; then
2507    CFLAGS="-O2"
2508  else
2509    CFLAGS=
2510  fi
2511fi
2512echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2513echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2514if test "${ac_cv_prog_cc_stdc+set}" = set; then
2515  echo $ECHO_N "(cached) $ECHO_C" >&6
2516else
2517  ac_cv_prog_cc_stdc=no
2518ac_save_CC=$CC
2519cat >conftest.$ac_ext <<_ACEOF
2520/* confdefs.h.  */
2521_ACEOF
2522cat confdefs.h >>conftest.$ac_ext
2523cat >>conftest.$ac_ext <<_ACEOF
2524/* end confdefs.h.  */
2525#include <stdarg.h>
2526#include <stdio.h>
2527#include <sys/types.h>
2528#include <sys/stat.h>
2529/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2530struct buf { int x; };
2531FILE * (*rcsopen) (struct buf *, struct stat *, int);
2532static char *e (p, i)
2533     char **p;
2534     int i;
2535{
2536  return p[i];
2537}
2538static char *f (char * (*g) (char **, int), char **p, ...)
2539{
2540  char *s;
2541  va_list v;
2542  va_start (v,p);
2543  s = g (p, va_arg (v,int));
2544  va_end (v);
2545  return s;
2546}
2547
2548/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2549   function prototypes and stuff, but not '\xHH' hex character constants.
2550   These don't provoke an error unfortunately, instead are silently treated
2551   as 'x'.  The following induces an error, until -std1 is added to get
2552   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2553   array size at least.  It's necessary to write '\x00'==0 to get something
2554   that's true only with -std1.  */
2555int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2556
2557int test (int i, double x);
2558struct s1 {int (*f) (int a);};
2559struct s2 {int (*f) (double a);};
2560int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2561int argc;
2562char **argv;
2563int
2564main ()
2565{
2566return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2567  ;
2568  return 0;
2569}
2570_ACEOF
2571# Don't try gcc -ansi; that turns off useful extensions and
2572# breaks some systems' header files.
2573# AIX                   -qlanglvl=ansi
2574# Ultrix and OSF/1      -std1
2575# HP-UX 10.20 and later -Ae
2576# HP-UX older versions  -Aa -D_HPUX_SOURCE
2577# SVR4                  -Xc -D__EXTENSIONS__
2578for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2579do
2580  CC="$ac_save_CC $ac_arg"
2581  rm -f conftest.$ac_objext
2582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583  (eval $ac_compile) 2>conftest.er1
2584  ac_status=$?
2585  grep -v '^ *+' conftest.er1 >conftest.err
2586  rm -f conftest.er1
2587  cat conftest.err >&5
2588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589  (exit $ac_status); } &&
2590         { ac_try='test -z "$ac_c_werror_flag"
2591                         || test ! -s conftest.err'
2592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593  (eval $ac_try) 2>&5
2594  ac_status=$?
2595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); }; } &&
2597         { ac_try='test -s conftest.$ac_objext'
2598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599  (eval $ac_try) 2>&5
2600  ac_status=$?
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); }; }; then
2603  ac_cv_prog_cc_stdc=$ac_arg
2604break
2605else
2606  echo "$as_me: failed program was:" >&5
2607sed 's/^/| /' conftest.$ac_ext >&5
2608
2609fi
2610rm -f conftest.err conftest.$ac_objext
2611done
2612rm -f conftest.$ac_ext conftest.$ac_objext
2613CC=$ac_save_CC
2614
2615fi
2616
2617case "x$ac_cv_prog_cc_stdc" in
2618  x|xno)
2619    echo "$as_me:$LINENO: result: none needed" >&5
2620echo "${ECHO_T}none needed" >&6 ;;
2621  *)
2622    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2623echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2624    CC="$CC $ac_cv_prog_cc_stdc" ;;
2625esac
2626
2627# Some people use a C++ compiler to compile C.  Since we use `exit',
2628# in C++ we need to declare it.  In case someone uses the same compiler
2629# for both compiling C and C++ we need to have the C++ compiler decide
2630# the declaration of exit, since it's the most demanding environment.
2631cat >conftest.$ac_ext <<_ACEOF
2632#ifndef __cplusplus
2633  choke me
2634#endif
2635_ACEOF
2636rm -f conftest.$ac_objext
2637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638  (eval $ac_compile) 2>conftest.er1
2639  ac_status=$?
2640  grep -v '^ *+' conftest.er1 >conftest.err
2641  rm -f conftest.er1
2642  cat conftest.err >&5
2643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644  (exit $ac_status); } &&
2645         { ac_try='test -z "$ac_c_werror_flag"
2646                         || test ! -s conftest.err'
2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648  (eval $ac_try) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; } &&
2652         { ac_try='test -s conftest.$ac_objext'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; }; then
2658  for ac_declaration in \
2659   '' \
2660   'extern "C" void std::exit (int) throw (); using std::exit;' \
2661   'extern "C" void std::exit (int); using std::exit;' \
2662   'extern "C" void exit (int) throw ();' \
2663   'extern "C" void exit (int);' \
2664   'void exit (int);'
2665do
2666  cat >conftest.$ac_ext <<_ACEOF
2667/* confdefs.h.  */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
2671/* end confdefs.h.  */
2672$ac_declaration
2673#include <stdlib.h>
2674int
2675main ()
2676{
2677exit (42);
2678  ;
2679  return 0;
2680}
2681_ACEOF
2682rm -f conftest.$ac_objext
2683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684  (eval $ac_compile) 2>conftest.er1
2685  ac_status=$?
2686  grep -v '^ *+' conftest.er1 >conftest.err
2687  rm -f conftest.er1
2688  cat conftest.err >&5
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); } &&
2691         { ac_try='test -z "$ac_c_werror_flag"
2692                         || test ! -s conftest.err'
2693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694  (eval $ac_try) 2>&5
2695  ac_status=$?
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); }; } &&
2698         { ac_try='test -s conftest.$ac_objext'
2699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700  (eval $ac_try) 2>&5
2701  ac_status=$?
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); }; }; then
2704  :
2705else
2706  echo "$as_me: failed program was:" >&5
2707sed 's/^/| /' conftest.$ac_ext >&5
2708
2709continue
2710fi
2711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2712  cat >conftest.$ac_ext <<_ACEOF
2713/* confdefs.h.  */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h.  */
2718$ac_declaration
2719int
2720main ()
2721{
2722exit (42);
2723  ;
2724  return 0;
2725}
2726_ACEOF
2727rm -f conftest.$ac_objext
2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729  (eval $ac_compile) 2>conftest.er1
2730  ac_status=$?
2731  grep -v '^ *+' conftest.er1 >conftest.err
2732  rm -f conftest.er1
2733  cat conftest.err >&5
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); } &&
2736         { ac_try='test -z "$ac_c_werror_flag"
2737                         || test ! -s conftest.err'
2738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739  (eval $ac_try) 2>&5
2740  ac_status=$?
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); }; } &&
2743         { ac_try='test -s conftest.$ac_objext'
2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745  (eval $ac_try) 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; }; then
2749  break
2750else
2751  echo "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754fi
2755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756done
2757rm -f conftest*
2758if test -n "$ac_declaration"; then
2759  echo '#ifdef __cplusplus' >>confdefs.h
2760  echo $ac_declaration      >>confdefs.h
2761  echo '#endif'             >>confdefs.h
2762fi
2763
2764else
2765  echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768fi
2769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770ac_ext=c
2771ac_cpp='$CPP $CPPFLAGS'
2772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775
2776if test -z "$CC" ; then
2777  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2778echo "$as_me: error: Failed to find a C compiler!" >&2;}
2779   { (exit 1); exit 1; }; }
2780fi
2781# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2782case "$CC" in
2783  cl* | */cl* | CL* | */CL* )
2784    if test "$ac_cv_prog_cc_g" = yes ; then
2785      ac_cv_prog_cc_g=no
2786      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2787echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2788    fi ;;
2789esac
2790CFLAGS="$save_cflags"
2791
2792# add automake conditional so we can recognize cl compiler in makefile
2793coin_cc_is_cl=false
2794case "$CC" in
2795  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2796    coin_cc_is_cl=true
2797    ;;
2798esac
2799
2800
2801if test $coin_cc_is_cl = true; then
2802  COIN_CC_IS_CL_TRUE=
2803  COIN_CC_IS_CL_FALSE='#'
2804else
2805  COIN_CC_IS_CL_TRUE='#'
2806  COIN_CC_IS_CL_FALSE=
2807fi
2808
2809
2810# Check if a project specific CFLAGS variable has been set
2811if test x$COIN_PRJCT != x; then
2812  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2813  if test x$coin_tmp = xset; then
2814    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2815  fi
2816fi
2817
2818if test x"$CFLAGS" = x; then
2819
2820  coin_add_cflags=
2821  coin_opt_cflags=
2822  coin_dbg_cflags=
2823  coin_warn_cflags=
2824
2825  if test "$GCC" = "yes"; then
2826    case "$CC" in
2827      icc* | */icc*)
2828        ;;
2829      *)
2830        coin_opt_cflags="-O3"
2831        coin_add_cflags="-pipe"
2832        coin_dbg_cflags="-g -O0"
2833        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2834        case $build in
2835          *-darwin*)
2836            ;;
2837          *)
2838            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2839            ;;
2840        esac
2841        case $enable_doscompile in
2842          mingw)
2843            CFLAGS="-mno-cygwin"
2844            cat >conftest.$ac_ext <<_ACEOF
2845/* confdefs.h.  */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h.  */
2850
2851int
2852main ()
2853{
2854int i=0; i++;
2855  ;
2856  return 0;
2857}
2858_ACEOF
2859rm -f conftest.$ac_objext conftest$ac_exeext
2860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2861  (eval $ac_link) 2>conftest.er1
2862  ac_status=$?
2863  grep -v '^ *+' conftest.er1 >conftest.err
2864  rm -f conftest.er1
2865  cat conftest.err >&5
2866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867  (exit $ac_status); } &&
2868         { ac_try='test -z "$ac_c_werror_flag"
2869                         || test ! -s conftest.err'
2870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871  (eval $ac_try) 2>&5
2872  ac_status=$?
2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874  (exit $ac_status); }; } &&
2875         { ac_try='test -s conftest$ac_exeext'
2876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877  (eval $ac_try) 2>&5
2878  ac_status=$?
2879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880  (exit $ac_status); }; }; then
2881  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2882else
2883  echo "$as_me: failed program was:" >&5
2884sed 's/^/| /' conftest.$ac_ext >&5
2885
2886fi
2887rm -f conftest.err conftest.$ac_objext \
2888      conftest$ac_exeext conftest.$ac_ext
2889            CFLAGS=
2890          ;;
2891        esac
2892    esac
2893  fi
2894  if test -z "$coin_opt_cflags"; then
2895    case $build in
2896      *-cygwin* | *-mingw*)
2897        case "$CC" in
2898          cl* | */cl* | CL* | */CL*)
2899            coin_opt_cflags='-MT -O2'
2900            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2901            coin_dbg_cflags='-MTd'
2902            ;;
2903          icl* | */icl* | ICL* | */ICL*)
2904            coin_opt_cflags='-MT -Ox'
2905            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2906            coin_dbg_cflags='-MTd -debug'
2907            ;;
2908        esac
2909        ;;
2910      *-linux-*)
2911        case "$CC" in
2912          icc* | */icc*)
2913            coin_opt_cflags="-O3 -ip -mp1"
2914            coin_add_cflags=""
2915            coin_dbg_cflags="-g"
2916            # Check if -i_dynamic is necessary (for new glibc library)
2917            CFLAGS=
2918            cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h.  */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h.  */
2924
2925int
2926main ()
2927{
2928int i=0; i++;
2929  ;
2930  return 0;
2931}
2932_ACEOF
2933rm -f conftest.$ac_objext conftest$ac_exeext
2934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935  (eval $ac_link) 2>conftest.er1
2936  ac_status=$?
2937  grep -v '^ *+' conftest.er1 >conftest.err
2938  rm -f conftest.er1
2939  cat conftest.err >&5
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); } &&
2942         { ac_try='test -z "$ac_c_werror_flag"
2943                         || test ! -s conftest.err'
2944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945  (eval $ac_try) 2>&5
2946  ac_status=$?
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); }; } &&
2949         { ac_try='test -s conftest$ac_exeext'
2950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951  (eval $ac_try) 2>&5
2952  ac_status=$?
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); }; }; then
2955  :
2956else
2957  echo "$as_me: failed program was:" >&5
2958sed 's/^/| /' conftest.$ac_ext >&5
2959
2960coin_add_cflags="-i_dynamic $coin_add_cflags"
2961fi
2962rm -f conftest.err conftest.$ac_objext \
2963      conftest$ac_exeext conftest.$ac_ext
2964            ;;
2965          pgcc* | */pgcc*)
2966            coin_opt_cflags="-fast"
2967            coin_add_cflags="-Kieee -pc 64"
2968            coin_dbg_cflags="-g"
2969            ;;
2970        esac
2971        ;;
2972      *-ibm-*)
2973        case "$CC" in
2974          xlc* | */xlc* | mpxlc* | */mpxlc*)
2975            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2976            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2977            coin_dbg_cflags="-g"
2978          ;;
2979        esac
2980        ;;
2981      *-hp-*)
2982        coin_opt_cflags="-O"
2983        coin_add_cflags="-Ae"
2984        coin_dbg_cflags="-g"
2985        ;;
2986      *-*-solaris*)
2987        coin_opt_cflags="-xO4"
2988        coin_dbg_cflags="-g"
2989        ;;
2990      *-sgi-*)
2991        coin_opt_cflags="-O -OPT:Olimit=0"
2992        coin_dbg_cflags="-g"
2993        ;;
2994    esac
2995  fi
2996
2997  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2998    coin_dbg_cflags="-g"
2999  fi
3000
3001  if test -z "$coin_opt_cflags"; then
3002    # Try if -O option works if nothing else is set
3003    CFLAGS="-O"
3004    cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h.  */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h.  */
3010
3011int
3012main ()
3013{
3014int i=0; i++;
3015  ;
3016  return 0;
3017}
3018_ACEOF
3019rm -f conftest.$ac_objext conftest$ac_exeext
3020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3021  (eval $ac_link) 2>conftest.er1
3022  ac_status=$?
3023  grep -v '^ *+' conftest.er1 >conftest.err
3024  rm -f conftest.er1
3025  cat conftest.err >&5
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); } &&
3028         { ac_try='test -z "$ac_c_werror_flag"
3029                         || test ! -s conftest.err'
3030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031  (eval $ac_try) 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; } &&
3035         { ac_try='test -s conftest$ac_exeext'
3036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037  (eval $ac_try) 2>&5
3038  ac_status=$?
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }; }; then
3041  coin_opt_cflags="-O"
3042else
3043  echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046fi
3047rm -f conftest.err conftest.$ac_objext \
3048      conftest$ac_exeext conftest.$ac_ext
3049  fi
3050
3051  # if PM doesn't want the warning messages, take them out
3052  if test x"$coin_skip_warn_cflags" = xyes; then
3053    coin_warn_cflags=
3054  fi
3055
3056  if test x${DBG_CFLAGS+set} != xset; then
3057    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3058  fi
3059  if test x${OPT_CFLAGS+set} != xset; then
3060    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3061  fi
3062
3063  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3064  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3065
3066  if test "$coin_debug_compile" = "true"; then
3067    CFLAGS="$DBG_CFLAGS"
3068  else
3069    CFLAGS="$OPT_CFLAGS"
3070  fi
3071else
3072  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3073  if test x${DBG_CFLAGS+set} != xset; then
3074    DBG_CFLAGS="$CFLAGS"
3075  fi
3076  if test x${OPT_CFLAGS+set} != xset; then
3077    OPT_CFLAGS="$CFLAGS"
3078  fi
3079fi
3080
3081# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3082
3083case "$CFLAGS" in
3084  *-mno-cygwin*)
3085    if test x${CPPFLAGS+set} != xset ; then
3086      CPPFLAGS="-mno-cygwin"
3087    else
3088      case "$CPPFLAGS" in
3089        *-mno-cygwin*)
3090          ;;
3091        *)
3092          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3093          ;;
3094      esac
3095    fi ;;
3096esac
3097
3098# Try if CFLAGS works
3099save_CFLAGS="$CFLAGS"
3100cat >conftest.$ac_ext <<_ACEOF
3101/* confdefs.h.  */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h.  */
3106
3107int
3108main ()
3109{
3110int i=0; i++;
3111  ;
3112  return 0;
3113}
3114_ACEOF
3115rm -f conftest.$ac_objext conftest$ac_exeext
3116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3117  (eval $ac_link) 2>conftest.er1
3118  ac_status=$?
3119  grep -v '^ *+' conftest.er1 >conftest.err
3120  rm -f conftest.er1
3121  cat conftest.err >&5
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); } &&
3124         { ac_try='test -z "$ac_c_werror_flag"
3125                         || test ! -s conftest.err'
3126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3127  (eval $ac_try) 2>&5
3128  ac_status=$?
3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); }; } &&
3131         { ac_try='test -s conftest$ac_exeext'
3132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3133  (eval $ac_try) 2>&5
3134  ac_status=$?
3135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136  (exit $ac_status); }; }; then
3137  :
3138else
3139  echo "$as_me: failed program was:" >&5
3140sed 's/^/| /' conftest.$ac_ext >&5
3141
3142CFLAGS=
3143fi
3144rm -f conftest.err conftest.$ac_objext \
3145      conftest$ac_exeext conftest.$ac_ext
3146if test -z "$CFLAGS"; then
3147  { 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
3148echo "$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;}
3149  CFLAGS='-O'
3150  cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h.  */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h.  */
3156
3157int
3158main ()
3159{
3160int i=0; i++;
3161  ;
3162  return 0;
3163}
3164_ACEOF
3165rm -f conftest.$ac_objext conftest$ac_exeext
3166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3167  (eval $ac_link) 2>conftest.er1
3168  ac_status=$?
3169  grep -v '^ *+' conftest.er1 >conftest.err
3170  rm -f conftest.er1
3171  cat conftest.err >&5
3172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); } &&
3174         { ac_try='test -z "$ac_c_werror_flag"
3175                         || test ! -s conftest.err'
3176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3177  (eval $ac_try) 2>&5
3178  ac_status=$?
3179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180  (exit $ac_status); }; } &&
3181         { ac_try='test -s conftest$ac_exeext'
3182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3183  (eval $ac_try) 2>&5
3184  ac_status=$?
3185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186  (exit $ac_status); }; }; then
3187  :
3188else
3189  echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192CFLAGS=
3193fi
3194rm -f conftest.err conftest.$ac_objext \
3195      conftest$ac_exeext conftest.$ac_ext
3196  if test -z "$CFLAGS"; then
3197    { 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
3198echo "$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;}
3199  fi
3200fi
3201
3202{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3203echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3204
3205
3206if test x"$MPICC" = x; then :; else
3207  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3208echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3209  CC="$MPICC"
3210fi
3211
3212# Correct ADDLIBS initialization if we are using the MS compiler
3213case "$CC" in
3214  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3215    ADDLIBS=
3216    case $build in
3217  *-mingw*)
3218    if test "${LD+set}" = set; then :; else
3219      LD=link
3220    fi
3221    ;;
3222 esac
3223 case $enable_doscompile in
3224   msvc)
3225     if test "x${LD+set}" = xset; then :; else
3226       LD=link
3227     fi
3228     ;;
3229 esac
3230
3231    ;;
3232esac
3233
3234ac_ext=c
3235ac_cpp='$CPP $CPPFLAGS'
3236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_c_compiler_gnu
3239
3240
3241
3242 #Let's try if that overcomes configuration problem with VC++ 6.0
3243
3244ac_ext=cc
3245ac_cpp='$CXXCPP $CPPFLAGS'
3246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3249
3250
3251
3252
3253
3254
3255
3256coin_has_cxx=yes
3257
3258save_cxxflags="$CXXFLAGS"
3259# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3260case $build in
3261  *-cygwin* | *-mingw*)
3262             if test "$enable_doscompile" = msvc ; then
3263               comps="icl cl"
3264             else
3265               comps="g++ cl"
3266             fi ;;
3267  *-*-solaris*)
3268             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3269  *-darwin*) comps="g++ c++ CC" ;;
3270  *-linux-gnu*)
3271             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3272          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3273esac
3274
3275# We delete the cached value, since the test might not have been
3276# performed with our choice of compilers earlier
3277$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3278# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3279ac_ext=cc
3280ac_cpp='$CXXCPP $CPPFLAGS'
3281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3284if test -n "$ac_tool_prefix"; then
3285  for ac_prog in $CCC $comps
3286  do
3287    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3289echo "$as_me:$LINENO: checking for $ac_word" >&5
3290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291if test "${ac_cv_prog_CXX+set}" = set; then
3292  echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294  if test -n "$CXX"; then
3295  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3296else
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300  IFS=$as_save_IFS
3301  test -z "$as_dir" && as_dir=.
3302  for ac_exec_ext in '' $ac_executable_extensions; do
3303  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3305    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306    break 2
3307  fi
3308done
3309done
3310
3311fi
3312fi
3313CXX=$ac_cv_prog_CXX
3314if test -n "$CXX"; then
3315  echo "$as_me:$LINENO: result: $CXX" >&5
3316echo "${ECHO_T}$CXX" >&6
3317else
3318  echo "$as_me:$LINENO: result: no" >&5
3319echo "${ECHO_T}no" >&6
3320fi
3321
3322    test -n "$CXX" && break
3323  done
3324fi
3325if test -z "$CXX"; then
3326  ac_ct_CXX=$CXX
3327  for ac_prog in $CCC $comps
3328do
3329  # Extract the first word of "$ac_prog", so it can be a program name with args.
3330set dummy $ac_prog; ac_word=$2
3331echo "$as_me:$LINENO: checking for $ac_word" >&5
3332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3334  echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
3336  if test -n "$ac_ct_CXX"; then
3337  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3338else
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342  IFS=$as_save_IFS
3343  test -z "$as_dir" && as_dir=.
3344  for ac_exec_ext in '' $ac_executable_extensions; do
3345  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346    ac_cv_prog_ac_ct_CXX="$ac_prog"
3347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348    break 2
3349  fi
3350done
3351done
3352
3353fi
3354fi
3355ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3356if test -n "$ac_ct_CXX"; then
3357  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3358echo "${ECHO_T}$ac_ct_CXX" >&6
3359else
3360  echo "$as_me:$LINENO: result: no" >&5
3361echo "${ECHO_T}no" >&6
3362fi
3363
3364  test -n "$ac_ct_CXX" && break
3365done
3366test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3367
3368  CXX=$ac_ct_CXX
3369fi
3370
3371
3372# Provide some information about the compiler.
3373echo "$as_me:$LINENO:" \
3374     "checking for C++ compiler version" >&5
3375ac_compiler=`set X $ac_compile; echo $2`
3376{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3377  (eval $ac_compiler --version </dev/null >&5) 2>&5
3378  ac_status=$?
3379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380  (exit $ac_status); }
3381{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3382  (eval $ac_compiler -v </dev/null >&5) 2>&5
3383  ac_status=$?
3384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385  (exit $ac_status); }
3386{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3387  (eval $ac_compiler -V </dev/null >&5) 2>&5
3388  ac_status=$?
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); }
3391
3392echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3393echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3394if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3395  echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397  cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h.  */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h.  */
3403
3404int
3405main ()
3406{
3407#ifndef __GNUC__
3408       choke me
3409#endif
3410
3411  ;
3412  return 0;
3413}
3414_ACEOF
3415rm -f conftest.$ac_objext
3416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417  (eval $ac_compile) 2>conftest.er1
3418  ac_status=$?
3419  grep -v '^ *+' conftest.er1 >conftest.err
3420  rm -f conftest.er1
3421  cat conftest.err >&5
3422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423  (exit $ac_status); } &&
3424         { ac_try='test -z "$ac_cxx_werror_flag"
3425                         || test ! -s conftest.err'
3426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427  (eval $ac_try) 2>&5
3428  ac_status=$?
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); }; } &&
3431         { ac_try='test -s conftest.$ac_objext'
3432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433  (eval $ac_try) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }; }; then
3437  ac_compiler_gnu=yes
3438else
3439  echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
3442ac_compiler_gnu=no
3443fi
3444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3446
3447fi
3448echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3449echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3450GXX=`test $ac_compiler_gnu = yes && echo yes`
3451ac_test_CXXFLAGS=${CXXFLAGS+set}
3452ac_save_CXXFLAGS=$CXXFLAGS
3453CXXFLAGS="-g"
3454echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3455echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3456if test "${ac_cv_prog_cxx_g+set}" = set; then
3457  echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459  cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h.  */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h.  */
3465
3466int
3467main ()
3468{
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476  (eval $ac_compile) 2>conftest.er1
3477  ac_status=$?
3478  grep -v '^ *+' conftest.er1 >conftest.err
3479  rm -f conftest.er1
3480  cat conftest.err >&5
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); } &&
3483         { ac_try='test -z "$ac_cxx_werror_flag"
3484                         || test ! -s conftest.err'
3485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486  (eval $ac_try) 2>&5
3487  ac_status=$?
3488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489  (exit $ac_status); }; } &&
3490         { ac_try='test -s conftest.$ac_objext'
3491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492  (eval $ac_try) 2>&5
3493  ac_status=$?
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); }; }; then
3496  ac_cv_prog_cxx_g=yes
3497else
3498  echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501ac_cv_prog_cxx_g=no
3502fi
3503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504fi
3505echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3506echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3507if test "$ac_test_CXXFLAGS" = set; then
3508  CXXFLAGS=$ac_save_CXXFLAGS
3509elif test $ac_cv_prog_cxx_g = yes; then
3510  if test "$GXX" = yes; then
3511    CXXFLAGS="-g -O2"
3512  else
3513    CXXFLAGS="-g"
3514  fi
3515else
3516  if test "$GXX" = yes; then
3517    CXXFLAGS="-O2"
3518  else
3519    CXXFLAGS=
3520  fi
3521fi
3522for ac_declaration in \
3523   '' \
3524   'extern "C" void std::exit (int) throw (); using std::exit;' \
3525   'extern "C" void std::exit (int); using std::exit;' \
3526   'extern "C" void exit (int) throw ();' \
3527   'extern "C" void exit (int);' \
3528   'void exit (int);'
3529do
3530  cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h.  */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h.  */
3536$ac_declaration
3537#include <stdlib.h>
3538int
3539main ()
3540{
3541exit (42);
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546rm -f conftest.$ac_objext
3547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548  (eval $ac_compile) 2>conftest.er1
3549  ac_status=$?
3550  grep -v '^ *+' conftest.er1 >conftest.err
3551  rm -f conftest.er1
3552  cat conftest.err >&5
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); } &&
3555         { ac_try='test -z "$ac_cxx_werror_flag"
3556                         || test ! -s conftest.err'
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); }; } &&
3562         { ac_try='test -s conftest.$ac_objext'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; }; then
3568  :
3569else
3570  echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573continue
3574fi
3575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3576  cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h.  */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h.  */
3582$ac_declaration
3583int
3584main ()
3585{
3586exit (42);
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591rm -f conftest.$ac_objext
3592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3593  (eval $ac_compile) 2>conftest.er1
3594  ac_status=$?
3595  grep -v '^ *+' conftest.er1 >conftest.err
3596  rm -f conftest.er1
3597  cat conftest.err >&5
3598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); } &&
3600         { ac_try='test -z "$ac_cxx_werror_flag"
3601                         || test ! -s conftest.err'
3602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603  (eval $ac_try) 2>&5
3604  ac_status=$?
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); }; } &&
3607         { ac_try='test -s conftest.$ac_objext'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; }; then
3613  break
3614else
3615  echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
3618fi
3619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620done
3621rm -f conftest*
3622if test -n "$ac_declaration"; then
3623  echo '#ifdef __cplusplus' >>confdefs.h
3624  echo $ac_declaration      >>confdefs.h
3625  echo '#endif'             >>confdefs.h
3626fi
3627
3628ac_ext=cc
3629ac_cpp='$CXXCPP $CPPFLAGS'
3630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3633
3634
3635#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3636#thus, we test here whether $CXX is actually working
3637ac_ext=cc
3638ac_cpp='$CXXCPP $CPPFLAGS'
3639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3642
3643echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3644echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3645cat >conftest.$ac_ext <<_ACEOF
3646/* confdefs.h.  */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h.  */
3651
3652int
3653main ()
3654{
3655int i=0;
3656  ;
3657  return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext
3661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662  (eval $ac_compile) 2>conftest.er1
3663  ac_status=$?
3664  grep -v '^ *+' conftest.er1 >conftest.err
3665  rm -f conftest.er1
3666  cat conftest.err >&5
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); } &&
3669         { ac_try='test -z "$ac_cxx_werror_flag"
3670                         || test ! -s conftest.err'
3671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672  (eval $ac_try) 2>&5
3673  ac_status=$?
3674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675  (exit $ac_status); }; } &&
3676         { ac_try='test -s conftest.$ac_objext'
3677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678  (eval $ac_try) 2>&5
3679  ac_status=$?
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); }; }; then
3682  echo "$as_me:$LINENO: result: yes" >&5
3683echo "${ECHO_T}yes" >&6
3684else
3685  echo "$as_me: failed program was:" >&5
3686sed 's/^/| /' conftest.$ac_ext >&5
3687
3688echo "$as_me:$LINENO: result: no" >&5
3689echo "${ECHO_T}no" >&6
3690   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3691echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3692   { (exit 1); exit 1; }; }
3693
3694fi
3695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3696ac_ext=cc
3697ac_cpp='$CXXCPP $CPPFLAGS'
3698ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3699ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3700ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3701
3702
3703coin_cxx_is_cl=false
3704# It seems that we need to cleanup something here for the Windows
3705case "$CXX" in
3706  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3707    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3708    mv confdefs.hh confdefs.h
3709    coin_cxx_is_cl=true
3710    ;;
3711esac
3712
3713# add automake conditional so we can recognize cl compiler in makefile
3714
3715
3716if test $coin_cxx_is_cl = true; then
3717  COIN_CXX_IS_CL_TRUE=
3718  COIN_CXX_IS_CL_FALSE='#'
3719else
3720  COIN_CXX_IS_CL_TRUE='#'
3721  COIN_CXX_IS_CL_FALSE=
3722fi
3723
3724
3725# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3726case "$CXX" in
3727  cl* | */cl* | CL* | */CL* )
3728    if test "$ac_cv_prog_cxx_g" = yes ; then
3729      ac_cv_prog_cxx_g=no
3730      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3731echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3732    fi ;;
3733esac
3734CXXFLAGS="$save_cxxflags"
3735
3736# Check if a project specific CXXFLAGS variable has been set
3737if test x$COIN_PRJCT != x; then
3738  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3739  if test x$coin_tmp = xset; then
3740    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3741  fi
3742fi
3743
3744if test x"$CXXFLAGS" = x; then
3745
3746# ToDo decide whether we want -DNDEBUG for optimization
3747  coin_add_cxxflags=
3748  coin_opt_cxxflags=
3749  coin_dbg_cxxflags=
3750  coin_warn_cxxflags=
3751
3752  if test "$GXX" = "yes"; then
3753    case "$CXX" in
3754      icpc* | */icpc*)
3755        ;;
3756      *)
3757# ToDo decide about unroll-loops
3758        coin_opt_cxxflags="-O3"
3759        coin_add_cxxflags="-pipe"
3760        coin_dbg_cxxflags="-g -O0"
3761        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3762        case $build in
3763          *-darwin*)
3764            ;;
3765          *)
3766            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3767            ;;
3768        esac
3769
3770        case $enable_doscompile in
3771          mingw)
3772            CXXFLAGS="-mno-cygwin"
3773            cat >conftest.$ac_ext <<_ACEOF
3774/* confdefs.h.  */
3775_ACEOF
3776cat confdefs.h >>conftest.$ac_ext
3777cat >>conftest.$ac_ext <<_ACEOF
3778/* end confdefs.h.  */
3779
3780int
3781main ()
3782{
3783int i=0; i++;
3784  ;
3785  return 0;
3786}
3787_ACEOF
3788rm -f conftest.$ac_objext conftest$ac_exeext
3789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3790  (eval $ac_link) 2>conftest.er1
3791  ac_status=$?
3792  grep -v '^ *+' conftest.er1 >conftest.err
3793  rm -f conftest.er1
3794  cat conftest.err >&5
3795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796  (exit $ac_status); } &&
3797         { ac_try='test -z "$ac_cxx_werror_flag"
3798                         || test ! -s conftest.err'
3799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800  (eval $ac_try) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); }; } &&
3804         { ac_try='test -s conftest$ac_exeext'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; }; then
3810  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3811else
3812  echo "$as_me: failed program was:" >&5
3813sed 's/^/| /' conftest.$ac_ext >&5
3814
3815fi
3816rm -f conftest.err conftest.$ac_objext \
3817      conftest$ac_exeext conftest.$ac_ext
3818            CXXFLAGS=
3819          ;;
3820        esac
3821    esac
3822  fi
3823
3824# Note that we do not need to cover GCC in the following tests.
3825
3826  if test -z "$coin_opt_cxxflags"; then
3827    case $build in
3828      *-cygwin* | *-mingw*)
3829        case "$CXX" in
3830          cl* | */cl* | CL* | */CL*)
3831            # The MT and MTd options are mutually exclusive
3832            coin_opt_cxxflags='-MT -O2'
3833            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3834            coin_dbg_cxxflags='-MTd'
3835            ;;
3836          icl* | */icl* | ICL* | */ICL*)
3837            # The MT and MTd options are mutually exclusive
3838            coin_opt_cxxflags='-MT -Ox'
3839            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3840            coin_dbg_cxxflags='-MTd -debug'
3841            ;;
3842        esac
3843        ;;
3844      *-linux-*)
3845        case "$CXX" in
3846          icpc* | */icpc*)
3847            coin_opt_cxxflags="-O3 -ip -mp1"
3848            coin_add_cxxflags=""
3849            coin_dbg_cxxflags="-g"
3850            # Check if -i_dynamic is necessary (for new glibc library)
3851            CXXFLAGS=
3852            cat >conftest.$ac_ext <<_ACEOF
3853/* confdefs.h.  */
3854_ACEOF
3855cat confdefs.h >>conftest.$ac_ext
3856cat >>conftest.$ac_ext <<_ACEOF
3857/* end confdefs.h.  */
3858
3859int
3860main ()
3861{
3862int i=0; i++;
3863  ;
3864  return 0;
3865}
3866_ACEOF
3867rm -f conftest.$ac_objext conftest$ac_exeext
3868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3869  (eval $ac_link) 2>conftest.er1
3870  ac_status=$?
3871  grep -v '^ *+' conftest.er1 >conftest.err
3872  rm -f conftest.er1
3873  cat conftest.err >&5
3874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3875  (exit $ac_status); } &&
3876         { ac_try='test -z "$ac_cxx_werror_flag"
3877                         || test ! -s conftest.err'
3878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879  (eval $ac_try) 2>&5
3880  ac_status=$?
3881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3882  (exit $ac_status); }; } &&
3883         { ac_try='test -s conftest$ac_exeext'
3884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3885  (eval $ac_try) 2>&5
3886  ac_status=$?
3887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888  (exit $ac_status); }; }; then
3889  :
3890else
3891  echo "$as_me: failed program was:" >&5
3892sed 's/^/| /' conftest.$ac_ext >&5
3893
3894coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3895fi
3896rm -f conftest.err conftest.$ac_objext \
3897      conftest$ac_exeext conftest.$ac_ext
3898            ;;
3899          pgCC* | */pgCC*)
3900            coin_opt_cxxflags="-fast"
3901            coin_add_cxxflags="-Kieee -pc 64"
3902            coin_dbg_cxxflags="-g"
3903            ;;
3904        esac
3905        ;;
3906      *-ibm-*)
3907        case "$CXX" in
3908          xlC* | */xlC* | mpxlC* | */mpxlC*)
3909            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3910            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3911            coin_dbg_cxxflags="-g"
3912            ;;
3913        esac
3914        ;;
3915      *-hp-*)
3916        case "$CXX" in
3917          aCC* | */aCC* )
3918            coin_opt_cxxflags="-O"
3919            coin_add_cxxflags="-AA"
3920            coin_dbg_cxxflags="-g"
3921            ;;
3922        esac
3923        ;;
3924      *-*-solaris*)
3925          coin_opt_cxxflags="-O4"
3926          coin_dbg_cxxflags="-g"
3927        ;;
3928    esac
3929  fi
3930
3931# Generic flag settings. If these don't work, add a case above.
3932
3933  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3934    coin_dbg_cxxflags="-g"
3935  fi
3936
3937  if test -z "$coin_opt_cxxflags"; then
3938    # Try if -O option works if nothing else is set
3939    CXXFLAGS=-O
3940    cat >conftest.$ac_ext <<_ACEOF
3941/* confdefs.h.  */
3942_ACEOF
3943cat confdefs.h >>conftest.$ac_ext
3944cat >>conftest.$ac_ext <<_ACEOF
3945/* end confdefs.h.  */
3946
3947int
3948main ()
3949{
3950int i=0; i++;
3951  ;
3952  return 0;
3953}
3954_ACEOF
3955rm -f conftest.$ac_objext conftest$ac_exeext
3956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3957  (eval $ac_link) 2>conftest.er1
3958  ac_status=$?
3959  grep -v '^ *+' conftest.er1 >conftest.err
3960  rm -f conftest.er1
3961  cat conftest.err >&5
3962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963  (exit $ac_status); } &&
3964         { ac_try='test -z "$ac_cxx_werror_flag"
3965                         || test ! -s conftest.err'
3966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967  (eval $ac_try) 2>&5
3968  ac_status=$?
3969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970  (exit $ac_status); }; } &&
3971         { ac_try='test -s conftest$ac_exeext'
3972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973  (eval $ac_try) 2>&5
3974  ac_status=$?
3975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976  (exit $ac_status); }; }; then
3977  coin_opt_cxxflags="-O"
3978else
3979  echo "$as_me: failed program was:" >&5
3980sed 's/^/| /' conftest.$ac_ext >&5
3981
3982fi
3983rm -f conftest.err conftest.$ac_objext \
3984      conftest$ac_exeext conftest.$ac_ext
3985  fi
3986
3987  # if PM doesn't want the warning messages, take them out
3988  if test x"$coin_skip_warn_cxxflags" = xyes; then
3989    coin_warn_cxxflags=
3990  fi
3991
3992# Do final setup of flags based on values determined above.
3993
3994  if test x${DBG_CXXFLAGS+set} != xset; then
3995    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3996  fi
3997  if test x${OPT_CXXFLAGS+set} != xset; then
3998    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3999  fi
4000
4001  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4002  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4003
4004  if test "$coin_debug_compile" = "true"; then
4005    CXXFLAGS="$DBG_CXXFLAGS"
4006  else
4007    CXXFLAGS="$OPT_CXXFLAGS"
4008  fi
4009
4010# Handle the case where CXXFLAGS was set externally.
4011else
4012  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4013  if test x${DBG_CXXFLAGS+set} != xset; then
4014    DBG_CXXFLAGS="$CXXFLAGS"
4015  fi
4016  if test x${OPT_CXXFLAGS+set} != xset; then
4017    OPT_CXXFLAGS="$CXXFLAGS"
4018  fi
4019fi
4020
4021# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4022
4023case "$CXXFLAGS" in
4024  *-mno-cygwin*)
4025    if test x${CPPFLAGS+set} != xset ; then
4026      CPPFLAGS="-mno-cygwin"
4027    else
4028      case "$CPPFLAGS" in
4029        *-mno-cygwin*)
4030          ;;
4031        *)
4032          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4033          ;;
4034      esac
4035    fi ;;
4036esac
4037
4038# Try if CXXFLAGS works
4039save_CXXFLAGS="$CXXFLAGS"
4040cat >conftest.$ac_ext <<_ACEOF
4041/* confdefs.h.  */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h.  */
4046
4047int
4048main ()
4049{
4050int i=0; i++;
4051  ;
4052  return 0;
4053}
4054_ACEOF
4055rm -f conftest.$ac_objext conftest$ac_exeext
4056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4057  (eval $ac_link) 2>conftest.er1
4058  ac_status=$?
4059  grep -v '^ *+' conftest.er1 >conftest.err
4060  rm -f conftest.er1
4061  cat conftest.err >&5
4062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4063  (exit $ac_status); } &&
4064         { ac_try='test -z "$ac_cxx_werror_flag"
4065                         || test ! -s conftest.err'
4066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067  (eval $ac_try) 2>&5
4068  ac_status=$?
4069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070  (exit $ac_status); }; } &&
4071         { ac_try='test -s conftest$ac_exeext'
4072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073  (eval $ac_try) 2>&5
4074  ac_status=$?
4075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076  (exit $ac_status); }; }; then
4077  :
4078else
4079  echo "$as_me: failed program was:" >&5
4080sed 's/^/| /' conftest.$ac_ext >&5
4081
4082CXXFLAGS=
4083fi
4084rm -f conftest.err conftest.$ac_objext \
4085      conftest$ac_exeext conftest.$ac_ext
4086if test -z "$CXXFLAGS"; then
4087  { 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
4088echo "$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;}
4089  CXXFLAGS='-O'
4090  cat >conftest.$ac_ext <<_ACEOF
4091/* confdefs.h.  */
4092_ACEOF
4093cat confdefs.h >>conftest.$ac_ext
4094cat >>conftest.$ac_ext <<_ACEOF
4095/* end confdefs.h.  */
4096
4097int
4098main ()
4099{
4100int i=0; i++;
4101  ;
4102  return 0;
4103}
4104_ACEOF
4105rm -f conftest.$ac_objext conftest$ac_exeext
4106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4107  (eval $ac_link) 2>conftest.er1
4108  ac_status=$?
4109  grep -v '^ *+' conftest.er1 >conftest.err
4110  rm -f conftest.er1
4111  cat conftest.err >&5
4112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113  (exit $ac_status); } &&
4114         { ac_try='test -z "$ac_cxx_werror_flag"
4115                         || test ! -s conftest.err'
4116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117  (eval $ac_try) 2>&5
4118  ac_status=$?
4119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120  (exit $ac_status); }; } &&
4121         { ac_try='test -s conftest$ac_exeext'
4122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4123  (eval $ac_try) 2>&5
4124  ac_status=$?
4125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126  (exit $ac_status); }; }; then
4127  :
4128else
4129  echo "$as_me: failed program was:" >&5
4130sed 's/^/| /' conftest.$ac_ext >&5
4131
4132CXXFLAGS=
4133fi
4134rm -f conftest.err conftest.$ac_objext \
4135      conftest$ac_exeext conftest.$ac_ext
4136  if test -z "$CXXFLAGS"; then
4137    { 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
4138echo "$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;}
4139  fi
4140fi
4141
4142{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4143echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4144
4145
4146if test x"$MPICXX" = x; then :; else
4147  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4148echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4149  CXX="$MPICXX"
4150fi
4151
4152case "$CXX" in
4153  cl* | */cl* | CL* | */CL* )
4154    case $build in
4155  *-mingw*)
4156    if test "${LD+set}" = set; then :; else
4157      LD=link
4158    fi
4159    ;;
4160 esac
4161 case $enable_doscompile in
4162   msvc)
4163     if test "x${LD+set}" = xset; then :; else
4164       LD=link
4165     fi
4166     ;;
4167 esac
4168
4169    ;;
4170esac
4171
4172ac_ext=c
4173ac_cpp='$CPP $CPPFLAGS'
4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177
4178
4179
4180# Initialize automake and libtool
4181{
4182
4183
4184
4185# START
4186
4187# Test if force_shared has been set
4188if test "x" = xforce_shared; then
4189  if test x$enable_shared = xno; then
4190    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4191echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4192   { (exit 1); exit 1; }; }
4193  fi
4194  enable_shared=yes;
4195else
4196  # On Cygwin and AIX, building DLLs doesn't work
4197  case $build in
4198    *-cygwin*)
4199      coin_disable_shared=yes
4200      platform=Cygwin
4201    ;;
4202    *-aix*)
4203      coin_disable_shared=yes
4204      platform=AIX
4205    ;;
4206    *-mingw*)
4207      coin_disable_shared=yes
4208      platform="Msys"
4209#      case "$CXX" in
4210#        cl*)
4211#          coin_disable_shared=yes
4212#          platform="Msys with cl"
4213#      ;;
4214#      esac
4215    ;;
4216  esac
4217fi
4218if test x"$coin_disable_shared" = xyes; then
4219  if test x"$enable_shared" = xyes; then
4220    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4221echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4222  fi
4223  enable_shared=no
4224fi
4225# By default, we only want the shared objects to be compiled
4226# Check whether --enable-static or --disable-static was given.
4227if test "${enable_static+set}" = set; then
4228  enableval="$enable_static"
4229  p=${PACKAGE-default}
4230    case $enableval in
4231    yes) enable_static=yes ;;
4232    no) enable_static=no ;;
4233    *)
4234     enable_static=no
4235      # Look at the argument we got.  We use all the common list separators.
4236      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4237      for pkg in $enableval; do
4238        IFS="$lt_save_ifs"
4239        if test "X$pkg" = "X$p"; then
4240          enable_static=yes
4241        fi
4242      done
4243      IFS="$lt_save_ifs"
4244      ;;
4245    esac
4246else
4247  enable_static=no
4248fi;
4249
4250
4251
4252
4253# Initialize automake
4254echo "$as_me:$LINENO: checking for egrep" >&5
4255echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4256if test "${ac_cv_prog_egrep+set}" = set; then
4257  echo $ECHO_N "(cached) $ECHO_C" >&6
4258else
4259  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4260    then ac_cv_prog_egrep='grep -E'
4261    else ac_cv_prog_egrep='egrep'
4262    fi
4263fi
4264echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4265echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4266 EGREP=$ac_cv_prog_egrep
4267
4268
4269echo "$as_me:$LINENO: checking whether ln -s works" >&5
4270echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4271LN_S=$as_ln_s
4272if test "$LN_S" = "ln -s"; then
4273  echo "$as_me:$LINENO: result: yes" >&5
4274echo "${ECHO_T}yes" >&6
4275else
4276  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4277echo "${ECHO_T}no, using $LN_S" >&6
4278fi
4279
4280am__api_version="1.9"
4281# Find a good install program.  We prefer a C program (faster),
4282# so one script is as good as another.  But avoid the broken or
4283# incompatible versions:
4284# SysV /etc/install, /usr/sbin/install
4285# SunOS /usr/etc/install
4286# IRIX /sbin/install
4287# AIX /bin/install
4288# AmigaOS /C/install, which installs bootblocks on floppy discs
4289# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4290# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4291# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4292# OS/2's system install, which has a completely different semantic
4293# ./install, which can be erroneously created by make from ./install.sh.
4294echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4295echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4296if test -z "$INSTALL"; then
4297if test "${ac_cv_path_install+set}" = set; then
4298  echo $ECHO_N "(cached) $ECHO_C" >&6
4299else
4300  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303  IFS=$as_save_IFS
4304  test -z "$as_dir" && as_dir=.
4305  # Account for people who put trailing slashes in PATH elements.
4306case $as_dir/ in
4307  ./ | .// | /cC/* | \
4308  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4309  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4310  /usr/ucb/* ) ;;
4311  *)
4312    # OSF1 and SCO ODT 3.0 have their own names for install.
4313    # Don't use installbsd from OSF since it installs stuff as root
4314    # by default.
4315    for ac_prog in ginstall scoinst install; do
4316      for ac_exec_ext in '' $ac_executable_extensions; do
4317        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4318          if test $ac_prog = install &&
4319            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4320            # AIX install.  It has an incompatible calling convention.
4321            :
4322          elif test $ac_prog = install &&
4323            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4324            # program-specific install script used by HP pwplus--don't use.
4325            :
4326          else
4327            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4328            break 3
4329          fi
4330        fi
4331      done
4332    done
4333    ;;
4334esac
4335done
4336
4337
4338fi
4339  if test "${ac_cv_path_install+set}" = set; then
4340    INSTALL=$ac_cv_path_install
4341  else
4342    # As a last resort, use the slow shell script.  We don't cache a
4343    # path for INSTALL within a source directory, because that will
4344    # break other packages using the cache if that directory is
4345    # removed, or if the path is relative.
4346    INSTALL=$ac_install_sh
4347  fi
4348fi
4349echo "$as_me:$LINENO: result: $INSTALL" >&5
4350echo "${ECHO_T}$INSTALL" >&6
4351
4352# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4353# It thinks the first close brace ends the variable substitution.
4354test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4355
4356test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4357
4358test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4359
4360echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4361echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4362# Just in case
4363sleep 1
4364echo timestamp > conftest.file
4365# Do `set' in a subshell so we don't clobber the current shell's
4366# arguments.  Must try -L first in case configure is actually a
4367# symlink; some systems play weird games with the mod time of symlinks
4368# (eg FreeBSD returns the mod time of the symlink's containing
4369# directory).
4370if (
4371   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4372   if test "$*" = "X"; then
4373      # -L didn't work.
4374      set X `ls -t $srcdir/configure conftest.file`
4375   fi
4376   rm -f conftest.file
4377   if test "$*" != "X $srcdir/configure conftest.file" \
4378      && test "$*" != "X conftest.file $srcdir/configure"; then
4379
4380      # If neither matched, then we have a broken ls.  This can happen
4381      # if, for instance, CONFIG_SHELL is bash and it inherits a
4382      # broken ls alias from the environment.  This has actually
4383      # happened.  Such a system could not be considered "sane".
4384      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4385alias in your environment" >&5
4386echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4387alias in your environment" >&2;}
4388   { (exit 1); exit 1; }; }
4389   fi
4390
4391   test "$2" = conftest.file
4392   )
4393then
4394   # Ok.
4395   :
4396else
4397   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4398Check your system clock" >&5
4399echo "$as_me: error: newly created file is older than distributed files!
4400Check your system clock" >&2;}
4401   { (exit 1); exit 1; }; }
4402fi
4403echo "$as_me:$LINENO: result: yes" >&5
4404echo "${ECHO_T}yes" >&6
4405test "$program_prefix" != NONE &&
4406  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4407# Use a double $ so make ignores it.
4408test "$program_suffix" != NONE &&
4409  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4410# Double any \ or $.  echo might interpret backslashes.
4411# By default was `s,x,x', remove it if useless.
4412cat <<\_ACEOF >conftest.sed
4413s/[\\$]/&&/g;s/;s,x,x,$//
4414_ACEOF
4415program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4416rm conftest.sed
4417
4418# expand $ac_aux_dir to an absolute path
4419am_aux_dir=`cd $ac_aux_dir && pwd`
4420
4421test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4422# Use eval to expand $SHELL
4423if eval "$MISSING --run true"; then
4424  am_missing_run="$MISSING --run "
4425else
4426  am_missing_run=
4427  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4428echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4429fi
4430
4431if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4432  # We used to keeping the `.' as first argument, in order to
4433  # allow $(mkdir_p) to be used without argument.  As in
4434  #   $(mkdir_p) $(somedir)
4435  # where $(somedir) is conditionally defined.  However this is wrong
4436  # for two reasons:
4437  #  1. if the package is installed by a user who cannot write `.'
4438  #     make install will fail,
4439  #  2. the above comment should most certainly read
4440  #     $(mkdir_p) $(DESTDIR)$(somedir)
4441  #     so it does not work when $(somedir) is undefined and
4442  #     $(DESTDIR) is not.
4443  #  To support the latter case, we have to write
4444  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4445  #  so the `.' trick is pointless.
4446  mkdir_p='mkdir -p --'
4447else
4448  # On NextStep and OpenStep, the `mkdir' command does not
4449  # recognize any option.  It will interpret all options as
4450  # directories to create, and then abort because `.' already
4451  # exists.
4452  for d in ./-p ./--version;
4453  do
4454    test -d $d && rmdir $d
4455  done
4456  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4457  if test -f "$ac_aux_dir/mkinstalldirs"; then
4458    mkdir_p='$(mkinstalldirs)'
4459  else
4460    mkdir_p='$(install_sh) -d'
4461  fi
4462fi
4463
4464for ac_prog in gawk mawk nawk awk
4465do
4466  # Extract the first word of "$ac_prog", so it can be a program name with args.
4467set dummy $ac_prog; ac_word=$2
4468echo "$as_me:$LINENO: checking for $ac_word" >&5
4469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470if test "${ac_cv_prog_AWK+set}" = set; then
4471  echo $ECHO_N "(cached) $ECHO_C" >&6
4472else
4473  if test -n "$AWK"; then
4474  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4475else
4476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477for as_dir in $PATH
4478do
4479  IFS=$as_save_IFS
4480  test -z "$as_dir" && as_dir=.
4481  for ac_exec_ext in '' $ac_executable_extensions; do
4482  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483    ac_cv_prog_AWK="$ac_prog"
4484    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4485    break 2
4486  fi
4487done
4488done
4489
4490fi
4491fi
4492AWK=$ac_cv_prog_AWK
4493if test -n "$AWK"; then
4494  echo "$as_me:$LINENO: result: $AWK" >&5
4495echo "${ECHO_T}$AWK" >&6
4496else
4497  echo "$as_me:$LINENO: result: no" >&5
4498echo "${ECHO_T}no" >&6
4499fi
4500
4501  test -n "$AWK" && break
4502done
4503
4504echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4505echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4506set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4507if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4508  echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510  cat >conftest.make <<\_ACEOF
4511all:
4512        @echo 'ac_maketemp="$(MAKE)"'
4513_ACEOF
4514# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4515eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4516if test -n "$ac_maketemp"; then
4517  eval ac_cv_prog_make_${ac_make}_set=yes
4518else
4519  eval ac_cv_prog_make_${ac_make}_set=no
4520fi
4521rm -f conftest.make
4522fi
4523if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4524  echo "$as_me:$LINENO: result: yes" >&5
4525echo "${ECHO_T}yes" >&6
4526  SET_MAKE=
4527else
4528  echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6
4530  SET_MAKE="MAKE=${MAKE-make}"
4531fi
4532
4533rm -rf .tst 2>/dev/null
4534mkdir .tst 2>/dev/null
4535if test -d .tst; then
4536  am__leading_dot=.
4537else
4538  am__leading_dot=_
4539fi
4540rmdir .tst 2>/dev/null
4541
4542DEPDIR="${am__leading_dot}deps"
4543
4544          ac_config_commands="$ac_config_commands depfiles"
4545
4546
4547am_make=${MAKE-make}
4548cat > confinc << 'END'
4549am__doit:
4550        @echo done
4551.PHONY: am__doit
4552END
4553# If we don't find an include directive, just comment out the code.
4554echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4555echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4556am__include="#"
4557am__quote=
4558_am_result=none
4559# First try GNU make style include.
4560echo "include confinc" > confmf
4561# We grep out `Entering directory' and `Leaving directory'
4562# messages which can occur if `w' ends up in MAKEFLAGS.
4563# In particular we don't look at `^make:' because GNU make might
4564# be invoked under some other name (usually "gmake"), in which
4565# case it prints its new name instead of `make'.
4566if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4567   am__include=include
4568   am__quote=
4569   _am_result=GNU
4570fi
4571# Now try BSD make style include.
4572if test "$am__include" = "#"; then
4573   echo '.include "confinc"' > confmf
4574   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4575      am__include=.include
4576      am__quote="\""
4577      _am_result=BSD
4578   fi
4579fi
4580
4581
4582echo "$as_me:$LINENO: result: $_am_result" >&5
4583echo "${ECHO_T}$_am_result" >&6
4584rm -f confinc confmf
4585
4586# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4587if test "${enable_dependency_tracking+set}" = set; then
4588  enableval="$enable_dependency_tracking"
4589
4590fi;
4591if test "x$enable_dependency_tracking" != xno; then
4592  am_depcomp="$ac_aux_dir/depcomp"
4593  AMDEPBACKSLASH='\'
4594fi
4595
4596
4597if test "x$enable_dependency_tracking" != xno; then
4598  AMDEP_TRUE=
4599  AMDEP_FALSE='#'
4600else
4601  AMDEP_TRUE='#'
4602  AMDEP_FALSE=
4603fi
4604
4605
4606
4607
4608
4609
4610# AC_MSG_NOTICE([Beginning automake initialisation.])
4611# Stuff for automake
4612# test to see if srcdir already configured
4613if test "`cd $srcdir && pwd`" != "`pwd`" &&
4614   test -f $srcdir/config.status; then
4615  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4616echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4617   { (exit 1); exit 1; }; }
4618fi
4619
4620# test whether we have cygpath
4621if test -z "$CYGPATH_W"; then
4622  if (cygpath --version) >/dev/null 2>/dev/null; then
4623    CYGPATH_W='cygpath -w'
4624  else
4625    CYGPATH_W=echo
4626  fi
4627fi
4628
4629
4630# Define the identity of the package.
4631 PACKAGE='clp'
4632 VERSION='1.13'
4633
4634
4635cat >>confdefs.h <<_ACEOF
4636#define PACKAGE "$PACKAGE"
4637_ACEOF
4638
4639
4640cat >>confdefs.h <<_ACEOF
4641#define VERSION "$VERSION"
4642_ACEOF
4643
4644# Some tools Automake needs.
4645
4646ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4647
4648
4649AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4650
4651
4652AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4653
4654
4655AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4656
4657
4658MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4659
4660install_sh=${install_sh-"$am_aux_dir/install-sh"}
4661
4662# Installed binaries are usually stripped using `strip' when the user
4663# run `make install-strip'.  However `strip' might not be the right
4664# tool to use in cross-compilation environments, therefore Automake
4665# will honor the `STRIP' environment variable to overrule this program.
4666if test "$cross_compiling" != no; then
4667  if test -n "$ac_tool_prefix"; then
4668  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4669set dummy ${ac_tool_prefix}strip; ac_word=$2
4670echo "$as_me:$LINENO: checking for $ac_word" >&5
4671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4672if test "${ac_cv_prog_STRIP+set}" = set; then
4673  echo $ECHO_N "(cached) $ECHO_C" >&6
4674else
4675  if test -n "$STRIP"; then
4676  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4677else
4678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH
4680do
4681  IFS=$as_save_IFS
4682  test -z "$as_dir" && as_dir=.
4683  for ac_exec_ext in '' $ac_executable_extensions; do
4684  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4685    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4686    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687    break 2
4688  fi
4689done
4690done
4691
4692fi
4693fi
4694STRIP=$ac_cv_prog_STRIP
4695if test -n "$STRIP"; then
4696  echo "$as_me:$LINENO: result: $STRIP" >&5
4697echo "${ECHO_T}$STRIP" >&6
4698else
4699  echo "$as_me:$LINENO: result: no" >&5
4700echo "${ECHO_T}no" >&6
4701fi
4702
4703fi
4704if test -z "$ac_cv_prog_STRIP"; then
4705  ac_ct_STRIP=$STRIP
4706  # Extract the first word of "strip", so it can be a program name with args.
4707set dummy strip; ac_word=$2
4708echo "$as_me:$LINENO: checking for $ac_word" >&5
4709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4710if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4711  echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713  if test -n "$ac_ct_STRIP"; then
4714  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4715else
4716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717for as_dir in $PATH
4718do
4719  IFS=$as_save_IFS
4720  test -z "$as_dir" && as_dir=.
4721  for ac_exec_ext in '' $ac_executable_extensions; do
4722  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723    ac_cv_prog_ac_ct_STRIP="strip"
4724    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725    break 2
4726  fi
4727done
4728done
4729
4730  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4731fi
4732fi
4733ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4734if test -n "$ac_ct_STRIP"; then
4735  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4736echo "${ECHO_T}$ac_ct_STRIP" >&6
4737else
4738  echo "$as_me:$LINENO: result: no" >&5
4739echo "${ECHO_T}no" >&6
4740fi
4741
4742  STRIP=$ac_ct_STRIP
4743else
4744  STRIP="$ac_cv_prog_STRIP"
4745fi
4746
4747fi
4748INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4749
4750# We need awk for the "check" target.  The system "awk" is bad on
4751# some platforms.
4752# Always define AMTAR for backward compatibility.
4753
4754AMTAR=${AMTAR-"${am_missing_run}tar"}
4755
4756am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4757
4758
4759
4760
4761depcc="$CC"   am_compiler_list=
4762
4763echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4764echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4765if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4766  echo $ECHO_N "(cached) $ECHO_C" >&6
4767else
4768  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4769  # We make a subdir and do the tests there.  Otherwise we can end up
4770  # making bogus files that we don't know about and never remove.  For
4771  # instance it was reported that on HP-UX the gcc test will end up
4772  # making a dummy file named `D' -- because `-MD' means `put the output
4773  # in D'.
4774  mkdir conftest.dir
4775  # Copy depcomp to subdir because otherwise we won't find it if we're
4776  # using a relative directory.
4777  cp "$am_depcomp" conftest.dir
4778  cd conftest.dir
4779  # We will build objects and dependencies in a subdirectory because
4780  # it helps to detect inapplicable dependency modes.  For instance
4781  # both Tru64's cc and ICC support -MD to output dependencies as a
4782  # side effect of compilation, but ICC will put the dependencies in
4783  # the current directory while Tru64 will put them in the object
4784  # directory.
4785  mkdir sub
4786
4787  am_cv_CC_dependencies_compiler_type=none
4788  if test "$am_compiler_list" = ""; then
4789     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4790  fi
4791  for depmode in $am_compiler_list; do
4792    # Setup a source with many dependencies, because some compilers
4793    # like to wrap large dependency lists on column 80 (with \), and
4794    # we should not choose a depcomp mode which is confused by this.
4795    #
4796    # We need to recreate these files for each test, as the compiler may
4797    # overwrite some of them when testing with obscure command lines.
4798    # This happens at least with the AIX C compiler.
4799    : > sub/conftest.c
4800    for i in 1 2 3 4 5 6; do
4801      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4802      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4803      # Solaris 8's {/usr,}/bin/sh.
4804      touch sub/conftst$i.h
4805    done
4806    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4807
4808    case $depmode in
4809    nosideeffect)
4810      # after this tag, mechanisms are not by side-effect, so they'll
4811      # only be used when explicitly requested
4812      if test "x$enable_dependency_tracking" = xyes; then
4813        continue
4814      else
4815        break
4816      fi
4817      ;;
4818    none) break ;;
4819    esac
4820    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4821    # mode.  It turns out that the SunPro C++ compiler does not properly
4822    # handle `-M -o', and we need to detect this.
4823    if depmode=$depmode \
4824       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4825       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4826       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4827         >/dev/null 2>conftest.err &&
4828       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4829       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4830       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4831      # icc doesn't choke on unknown options, it will just issue warnings
4832      # or remarks (even with -Werror).  So we grep stderr for any message
4833      # that says an option was ignored or not supported.
4834      # When given -MP, icc 7.0 and 7.1 complain thusly:
4835      #   icc: Command line warning: ignoring option '-M'; no argument required
4836      # The diagnosis changed in icc 8.0:
4837      #   icc: Command line remark: option '-MP' not supported
4838      if (grep 'ignoring option' conftest.err ||
4839          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4840        am_cv_CC_dependencies_compiler_type=$depmode
4841        break
4842      fi
4843    fi
4844  done
4845
4846  cd ..
4847  rm -rf conftest.dir
4848else
4849  am_cv_CC_dependencies_compiler_type=none
4850fi
4851
4852fi
4853echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4854echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4855CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4856
4857
4858
4859if
4860  test "x$enable_dependency_tracking" != xno \
4861  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4862  am__fastdepCC_TRUE=
4863  am__fastdepCC_FALSE='#'
4864else
4865  am__fastdepCC_TRUE='#'
4866  am__fastdepCC_FALSE=
4867fi
4868
4869
4870depcc="$CXX"  am_compiler_list=
4871
4872echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4873echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4874if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4875  echo $ECHO_N "(cached) $ECHO_C" >&6
4876else
4877  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4878  # We make a subdir and do the tests there.  Otherwise we can end up
4879  # making bogus files that we don't know about and never remove.  For
4880  # instance it was reported that on HP-UX the gcc test will end up
4881  # making a dummy file named `D' -- because `-MD' means `put the output
4882  # in D'.
4883  mkdir conftest.dir
4884  # Copy depcomp to subdir because otherwise we won't find it if we're
4885  # using a relative directory.
4886  cp "$am_depcomp" conftest.dir
4887  cd conftest.dir
4888  # We will build objects and dependencies in a subdirectory because
4889  # it helps to detect inapplicable dependency modes.  For instance
4890  # both Tru64's cc and ICC support -MD to output dependencies as a
4891  # side effect of compilation, but ICC will put the dependencies in
4892  # the current directory while Tru64 will put them in the object
4893  # directory.
4894  mkdir sub
4895
4896  am_cv_CXX_dependencies_compiler_type=none
4897  if test "$am_compiler_list" = ""; then
4898     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4899  fi
4900  for depmode in $am_compiler_list; do
4901    # Setup a source with many dependencies, because some compilers
4902    # like to wrap large dependency lists on column 80 (with \), and
4903    # we should not choose a depcomp mode which is confused by this.
4904    #
4905    # We need to recreate these files for each test, as the compiler may
4906    # overwrite some of them when testing with obscure command lines.
4907    # This happens at least with the AIX C compiler.
4908    : > sub/conftest.c
4909    for i in 1 2 3 4 5 6; do
4910      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4911      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4912      # Solaris 8's {/usr,}/bin/sh.
4913      touch sub/conftst$i.h
4914    done
4915    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4916
4917    case $depmode in
4918    nosideeffect)
4919      # after this tag, mechanisms are not by side-effect, so they'll
4920      # only be used when explicitly requested
4921      if test "x$enable_dependency_tracking" = xyes; then
4922        continue
4923      else
4924        break
4925      fi
4926      ;;
4927    none) break ;;
4928    esac
4929    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4930    # mode.  It turns out that the SunPro C++ compiler does not properly
4931    # handle `-M -o', and we need to detect this.
4932    if depmode=$depmode \
4933       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4934       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4935       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4936         >/dev/null 2>conftest.err &&
4937       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4938       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4939       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4940      # icc doesn't choke on unknown options, it will just issue warnings
4941      # or remarks (even with -Werror).  So we grep stderr for any message
4942      # that says an option was ignored or not supported.
4943      # When given -MP, icc 7.0 and 7.1 complain thusly:
4944      #   icc: Command line warning: ignoring option '-M'; no argument required
4945      # The diagnosis changed in icc 8.0:
4946      #   icc: Command line remark: option '-MP' not supported
4947      if (grep 'ignoring option' conftest.err ||
4948          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4949        am_cv_CXX_dependencies_compiler_type=$depmode
4950        break
4951      fi
4952    fi
4953  done
4954
4955  cd ..
4956  rm -rf conftest.dir
4957else
4958  am_cv_CXX_dependencies_compiler_type=none
4959fi
4960
4961fi
4962echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4963echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4964CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4965
4966
4967
4968if
4969  test "x$enable_dependency_tracking" != xno \
4970  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4971  am__fastdepCXX_TRUE=
4972  am__fastdepCXX_FALSE='#'
4973else
4974  am__fastdepCXX_TRUE='#'
4975  am__fastdepCXX_FALSE=
4976fi
4977
4978
4979
4980echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4981echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4982    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4983if test "${enable_maintainer_mode+set}" = set; then
4984  enableval="$enable_maintainer_mode"
4985  USE_MAINTAINER_MODE=$enableval
4986else
4987  USE_MAINTAINER_MODE=no
4988fi;
4989  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4990echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4991
4992
4993if test $USE_MAINTAINER_MODE = yes; then
4994  MAINTAINER_MODE_TRUE=
4995  MAINTAINER_MODE_FALSE='#'
4996else
4997  MAINTAINER_MODE_TRUE='#'
4998  MAINTAINER_MODE_FALSE=
4999fi
5000
5001  MAINT=$MAINTAINER_MODE_TRUE
5002
5003
5004
5005coin_have_externals=no
5006if test "$enable_maintainer_mode" = yes; then
5007
5008  # If maintainer mode is chosen, we make sure that the correct versions
5009  # of the tools are used, and that we know where libtool.m4 is (to
5010  # recreate acinclude.m4)
5011
5012
5013  LIBTOOLM4=
5014  # Normally, $HOME
5015  AUTOTOOLS_DFLT=$HOME
5016
5017  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5018echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5019if test "${ac_cv_use_correct_autotools+set}" = set; then
5020  echo $ECHO_N "(cached) $ECHO_C" >&6
5021else
5022  ac_cv_use_correct_autotools=check
5023fi
5024echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5025echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5026
5027  if test $ac_cv_use_correct_autotools = check; then
5028    ac_cv_use_correct_autotools=yes
5029    # Check if we have autoconf
5030    # Extract the first word of "autoconf", so it can be a program name with args.
5031set dummy autoconf; ac_word=$2
5032echo "$as_me:$LINENO: checking for $ac_word" >&5
5033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034if test "${ac_cv_prog_have_autoconf+set}" = set; then
5035  echo $ECHO_N "(cached) $ECHO_C" >&6
5036else
5037  if test -n "$have_autoconf"; then
5038  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5039else
5040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041for as_dir in $PATH
5042do
5043  IFS=$as_save_IFS
5044  test -z "$as_dir" && as_dir=.
5045  for ac_exec_ext in '' $ac_executable_extensions; do
5046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047    ac_cv_prog_have_autoconf="yes"
5048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049    break 2
5050  fi
5051done
5052done
5053
5054  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5055fi
5056fi
5057have_autoconf=$ac_cv_prog_have_autoconf
5058if test -n "$have_autoconf"; then
5059  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5060echo "${ECHO_T}$have_autoconf" >&6
5061else
5062  echo "$as_me:$LINENO: result: no" >&5
5063echo "${ECHO_T}no" >&6
5064fi
5065
5066    if test $have_autoconf = no; then
5067      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5068echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5069   { (exit 1); exit 1; }; }
5070    fi
5071
5072    # Check whether autoconf is the correct version
5073    correct_version='2.59'
5074    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5075    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5076echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5077    autoconf --version > confauto.out 2>&1
5078    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5079      echo "$as_me:$LINENO: result: yes" >&5
5080echo "${ECHO_T}yes" >&6
5081    else
5082      rm -f confauto.out
5083      echo "$as_me:$LINENO: result: no" >&5
5084echo "${ECHO_T}no" >&6
5085      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5086echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5087   { (exit 1); exit 1; }; }
5088    fi
5089    rm -f confauto.out
5090
5091    # Check if the executable autoconf is picked up from the correct location
5092    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5093echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5094    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5095    autoconf_dir=`cd $autoconf_dir; pwd`
5096    if test x$AUTOTOOLS_DIR = x; then
5097      want_dir=$AUTOTOOLS_DFLT/bin
5098    else
5099      want_dir=$AUTOTOOLS_DIR/bin
5100    fi
5101    if test $autoconf_dir = `cd $want_dir; pwd`; then
5102      echo "$as_me:$LINENO: result: yes" >&5
5103echo "${ECHO_T}yes" >&6
5104    else
5105      rm -f confauto.out
5106      echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
5108      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5109echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5110   { (exit 1); exit 1; }; }
5111    fi
5112
5113    # Check if we have automake
5114    # Extract the first word of "automake", so it can be a program name with args.
5115set dummy automake; ac_word=$2
5116echo "$as_me:$LINENO: checking for $ac_word" >&5
5117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5118if test "${ac_cv_prog_have_automake+set}" = set; then
5119  echo $ECHO_N "(cached) $ECHO_C" >&6
5120else
5121  if test -n "$have_automake"; then
5122  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5123else
5124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH
5126do
5127  IFS=$as_save_IFS
5128  test -z "$as_dir" && as_dir=.
5129  for ac_exec_ext in '' $ac_executable_extensions; do
5130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131    ac_cv_prog_have_automake="yes"
5132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133    break 2
5134  fi
5135done
5136done
5137
5138  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5139fi
5140fi
5141have_automake=$ac_cv_prog_have_automake
5142if test -n "$have_automake"; then
5143  echo "$as_me:$LINENO: result: $have_automake" >&5
5144echo "${ECHO_T}$have_automake" >&6
5145else
5146  echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
5148fi
5149
5150    if test $have_automake = no; then
5151      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5152echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5153   { (exit 1); exit 1; }; }
5154    fi
5155
5156    # Check whether automake is the correct version
5157    correct_version='1.9.6'
5158    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5159    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5160echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5161    automake --version > confauto.out 2>&1
5162    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5163      echo "$as_me:$LINENO: result: yes" >&5
5164echo "${ECHO_T}yes" >&6
5165    else
5166      rm -f confauto.out
5167      echo "$as_me:$LINENO: result: no" >&5
5168echo "${ECHO_T}no" >&6
5169      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5170echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5171   { (exit 1); exit 1; }; }
5172    fi
5173    rm -f confauto.out
5174
5175    # Check if the executable automake is picked up from the correct location
5176    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5177echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5178    automake_dir=`which automake | sed -e 's=/automake=='`
5179    automake_dir=`cd $automake_dir; pwd`
5180    if test x$AUTOTOOLS_DIR = x; then
5181      want_dir=$AUTOTOOLS_DFLT/bin
5182    else
5183      want_dir=$AUTOTOOLS_DIR/bin
5184    fi
5185    if test $automake_dir = `cd $want_dir; pwd`; then
5186      echo "$as_me:$LINENO: result: yes" >&5
5187echo "${ECHO_T}yes" >&6
5188    else
5189      rm -f confauto.out
5190      echo "$as_me:$LINENO: result: no" >&5
5191echo "${ECHO_T}no" >&6
5192      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5193echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5194   { (exit 1); exit 1; }; }
5195    fi
5196
5197    # Check if this is the correct version of libtool (with escaped dots)
5198    if test x$AUTOTOOLS_DIR = x; then
5199      want_dir=$AUTOTOOLS_DFLT/share
5200    else
5201      want_dir=$AUTOTOOLS_DIR/share
5202    fi
5203    correct_version='1.5.22'
5204    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5205    if test -r $want_dir/libtool/ltmain.sh; then
5206  have_ltmain=yes
5207  :
5208else
5209  have_ltmain=no
5210  :
5211fi
5212
5213    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5214echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5215    if test $have_ltmain = yes; then
5216    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5217        echo "$as_me:$LINENO: result: yes" >&5
5218echo "${ECHO_T}yes" >&6
5219      else
5220        echo "$as_me:$LINENO: result: no" >&5
5221echo "${ECHO_T}no" >&6
5222        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5223echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5224   { (exit 1); exit 1; }; }
5225      fi
5226    else
5227      echo "$as_me:$LINENO: result: no" >&5
5228echo "${ECHO_T}no" >&6
5229      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5230echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5231   { (exit 1); exit 1; }; }
5232    fi
5233  fi
5234
5235  # Check if we can find the libtool file
5236  if test x$AUTOTOOLS_DIR = x; then
5237    want_dir=$AUTOTOOLS_DFLT/share
5238  else
5239    want_dir=$AUTOTOOLS_DIR/share
5240  fi
5241  if test -r $want_dir/aclocal/libtool.m4; then
5242  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5243  :
5244else
5245  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5246echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5247   { (exit 1); exit 1; }; }
5248  :
5249fi
5250
5251
5252  # Check if we have an Dependencies file
5253  if test -r $srcdir/Dependencies; then
5254    coin_have_externals=yes
5255  fi
5256  # Check if subversion is installed and understands https
5257  # Extract the first word of "svn", so it can be a program name with args.
5258set dummy svn; ac_word=$2
5259echo "$as_me:$LINENO: checking for $ac_word" >&5
5260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5261if test "${ac_cv_prog_have_svn+set}" = set; then
5262  echo $ECHO_N "(cached) $ECHO_C" >&6
5263else
5264  if test -n "$have_svn"; then
5265  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5266else
5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268for as_dir in $PATH
5269do
5270  IFS=$as_save_IFS
5271  test -z "$as_dir" && as_dir=.
5272  for ac_exec_ext in '' $ac_executable_extensions; do
5273  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274    ac_cv_prog_have_svn="yes"
5275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276    break 2
5277  fi
5278done
5279done
5280
5281  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5282fi
5283fi
5284have_svn=$ac_cv_prog_have_svn
5285if test -n "$have_svn"; then
5286  echo "$as_me:$LINENO: result: $have_svn" >&5
5287echo "${ECHO_T}$have_svn" >&6
5288else
5289  echo "$as_me:$LINENO: result: no" >&5
5290echo "${ECHO_T}no" >&6
5291fi
5292
5293  if test x$have_svn = xyes; then
5294    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5295echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5296if test "${ac_cv_svn_understands_https+set}" = set; then
5297  echo $ECHO_N "(cached) $ECHO_C" >&6
5298else
5299  svn --version > confauto.out 2>&1
5300                    if $EGREP https confauto.out >/dev/null 2>&1; then
5301                      ac_cv_svn_understands_https=yes
5302                    else
5303                      ac_cv_svn_understands_https=no
5304                      have_svn=no
5305                      ac_cv_prog_have_svn=no
5306                    fi
5307                    rm -f confauto.out
5308fi
5309echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5310echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5311  fi
5312
5313  # Find the location of the BuildTools directory
5314  BUILDTOOLSDIR=
5315  if test -r $srcdir/BuildTools/coin.m4; then
5316    BUILDTOOLSDIR=$srcdir/BuildTools
5317  else
5318    if test -r $srcdir/../BuildTools/coin.m4; then
5319      BUILDTOOLSDIR=$srcdir/../BuildTools
5320    else
5321      if test -r $srcdir/../../BuildTools/coin.m4; then
5322        BUILDTOOLSDIR=$srcdir/../../BuildTools
5323      else
5324        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5325echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5326   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5327      fi
5328    fi
5329  fi
5330
5331
5332  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5333  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5334    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5335  fi
5336
5337  # The following variable is set to the name of the directory where
5338  # the autotool scripts are located
5339
5340  AUX_DIR=$ac_aux_dir
5341fi
5342
5343# helpful variable for the base directory of this package
5344abs_source_dir=`cd $srcdir; pwd`
5345
5346
5347# Stuff for example Makefiles
5348if test x$prefix = xNONE; then
5349  full_prefix=$ac_default_prefix
5350else
5351  full_prefix=$prefix
5352fi
5353full_prefix=`cd $full_prefix ; pwd`
5354
5355abs_lib_dir=$full_prefix/lib/coin
5356
5357abs_include_dir=$full_prefix/include
5358
5359abs_bin_dir=$full_prefix/bin
5360
5361
5362
5363if test $coin_have_externals = yes && test x$have_svn = xyes; then
5364  HAVE_EXTERNALS_TRUE=
5365  HAVE_EXTERNALS_FALSE='#'
5366else
5367  HAVE_EXTERNALS_TRUE='#'
5368  HAVE_EXTERNALS_FALSE=
5369fi
5370
5371
5372# AC_MSG_NOTICE([End automake initialisation.])
5373
5374
5375
5376LIBTOOL=
5377if test -r ../libtool; then
5378  coin_config_dir=..
5379  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5380fi
5381if test "x$LIBTOOL" = x; then
5382  if test -r ../../libtool; then
5383    coin_config_dir=../..
5384    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5385  fi
5386fi
5387
5388if test "x$LIBTOOL" = x; then
5389# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5390  # Stuff for libtool
5391  # Check whether --enable-shared or --disable-shared was given.
5392if test "${enable_shared+set}" = set; then
5393  enableval="$enable_shared"
5394  p=${PACKAGE-default}
5395    case $enableval in
5396    yes) enable_shared=yes ;;
5397    no) enable_shared=no ;;
5398    *)
5399      enable_shared=no
5400      # Look at the argument we got.  We use all the common list separators.
5401      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5402      for pkg in $enableval; do
5403        IFS="$lt_save_ifs"
5404        if test "X$pkg" = "X$p"; then
5405          enable_shared=yes
5406        fi
5407      done
5408      IFS="$lt_save_ifs"
5409      ;;
5410    esac
5411else
5412  enable_shared=yes
5413fi;
5414
5415# Check whether --enable-fast-install or --disable-fast-install was given.
5416if test "${enable_fast_install+set}" = set; then
5417  enableval="$enable_fast_install"
5418  p=${PACKAGE-default}
5419    case $enableval in
5420    yes) enable_fast_install=yes ;;
5421    no) enable_fast_install=no ;;
5422    *)
5423      enable_fast_install=no
5424      # Look at the argument we got.  We use all the common list separators.
5425      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5426      for pkg in $enableval; do
5427        IFS="$lt_save_ifs"
5428        if test "X$pkg" = "X$p"; then
5429          enable_fast_install=yes
5430        fi
5431      done
5432      IFS="$lt_save_ifs"
5433      ;;
5434    esac
5435else
5436  enable_fast_install=yes
5437fi;
5438
5439echo "$as_me:$LINENO: checking host system type" >&5
5440echo $ECHO_N "checking host system type... $ECHO_C" >&6
5441if test "${ac_cv_host+set}" = set; then
5442  echo $ECHO_N "(cached) $ECHO_C" >&6
5443else
5444  ac_cv_host_alias=$host_alias
5445test -z "$ac_cv_host_alias" &&
5446  ac_cv_host_alias=$ac_cv_build_alias
5447ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5448  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5449echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5450   { (exit 1); exit 1; }; }
5451
5452fi
5453echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5454echo "${ECHO_T}$ac_cv_host" >&6
5455host=$ac_cv_host
5456host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5457host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5458host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5459
5460
5461echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5462echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5463if test "${lt_cv_path_SED+set}" = set; then
5464  echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466  # Loop through the user's path and test for sed and gsed.
5467# Then use that list of sed's as ones to test for truncation.
5468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469for as_dir in $PATH
5470do
5471  IFS=$as_save_IFS
5472  test -z "$as_dir" && as_dir=.
5473  for lt_ac_prog in sed gsed; do
5474    for ac_exec_ext in '' $ac_executable_extensions; do
5475      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5476        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5477      fi
5478    done
5479  done
5480done
5481lt_ac_max=0
5482lt_ac_count=0
5483# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5484# along with /bin/sed that truncates output.
5485for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5486  test ! -f $lt_ac_sed && continue
5487  cat /dev/null > conftest.in
5488  lt_ac_count=0
5489  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5490  # Check for GNU sed and select it if it is found.
5491  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5492    lt_cv_path_SED=$lt_ac_sed
5493    break
5494  fi
5495  while true; do
5496    cat conftest.in conftest.in >conftest.tmp
5497    mv conftest.tmp conftest.in
5498    cp conftest.in conftest.nl
5499    echo >>conftest.nl
5500    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5501    cmp -s conftest.out conftest.nl || break
5502    # 10000 chars as input seems more than enough
5503    test $lt_ac_count -gt 10 && break
5504    lt_ac_count=`expr $lt_ac_count + 1`
5505    if test $lt_ac_count -gt $lt_ac_max; then
5506      lt_ac_max=$lt_ac_count
5507      lt_cv_path_SED=$lt_ac_sed
5508    fi
5509  done
5510done
5511
5512fi
5513
5514SED=$lt_cv_path_SED
5515echo "$as_me:$LINENO: result: $SED" >&5
5516echo "${ECHO_T}$SED" >&6
5517
5518
5519# Check whether --with-gnu-ld or --without-gnu-ld was given.
5520if test "${with_gnu_ld+set}" = set; then
5521  withval="$with_gnu_ld"
5522  test "$withval" = no || with_gnu_ld=yes
5523else
5524  with_gnu_ld=no
5525fi;
5526ac_prog=ld
5527if test "$GCC" = yes; then
5528  # Check if gcc -print-prog-name=ld gives a path.
5529  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5530echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5531  case $host in
5532  *-*-mingw*)
5533    # gcc leaves a trailing carriage return which upsets mingw
5534    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5535  *)
5536    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5537  esac
5538  case $ac_prog in
5539    # Accept absolute paths.
5540    [\\/]* | ?:[\\/]*)
5541      re_direlt='/[^/][^/]*/\.\./'
5542      # Canonicalize the pathname of ld
5543      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5544      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5545        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5546      done
5547      test -z "$LD" && LD="$ac_prog"
5548      ;;
5549  "")
5550    # If it fails, then pretend we aren't using GCC.
5551    ac_prog=ld
5552    ;;
5553  *)
5554    # If it is relative, then search for the first ld in PATH.
5555    with_gnu_ld=unknown
5556    ;;
5557  esac
5558elif test "$with_gnu_ld" = yes; then
5559  echo "$as_me:$LINENO: checking for GNU ld" >&5
5560echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5561else
5562  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5563echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5564fi
5565if test "${lt_cv_path_LD+set}" = set; then
5566  echo $ECHO_N "(cached) $ECHO_C" >&6
5567else
5568  if test -z "$LD"; then
5569  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5570  for ac_dir in $PATH; do
5571    IFS="$lt_save_ifs"
5572    test -z "$ac_dir" && ac_dir=.
5573    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5574      lt_cv_path_LD="$ac_dir/$ac_prog"
5575      # Check to see if the program is GNU ld.  I'd rather use --version,
5576      # but apparently some variants of GNU ld only accept -v.
5577      # Break only if it was the GNU/non-GNU ld that we prefer.
5578      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5579      *GNU* | *'with BFD'*)
5580        test "$with_gnu_ld" != no && break
5581        ;;
5582      *)
5583        test "$with_gnu_ld" != yes && break
5584        ;;
5585      esac
5586    fi
5587  done
5588  IFS="$lt_save_ifs"
5589else
5590  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5591fi
5592fi
5593
5594LD="$lt_cv_path_LD"
5595if test -n "$LD"; then
5596  echo "$as_me:$LINENO: result: $LD" >&5
5597echo "${ECHO_T}$LD" >&6
5598else
5599  echo "$as_me:$LINENO: result: no" >&5
5600echo "${ECHO_T}no" >&6
5601fi
5602test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5603echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5604   { (exit 1); exit 1; }; }
5605echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5606echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5607if test "${lt_cv_prog_gnu_ld+set}" = set; then
5608  echo $ECHO_N "(cached) $ECHO_C" >&6
5609else
5610  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5611case `$LD -v 2>&1 </dev/null` in
5612*GNU* | *'with BFD'*)
5613  lt_cv_prog_gnu_ld=yes
5614  ;;
5615*)
5616  lt_cv_prog_gnu_ld=no
5617  ;;
5618esac
5619fi
5620echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5621echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5622with_gnu_ld=$lt_cv_prog_gnu_ld
5623
5624
5625echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5626echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5627if test "${lt_cv_ld_reload_flag+set}" = set; then
5628  echo $ECHO_N "(cached) $ECHO_C" >&6
5629else
5630  lt_cv_ld_reload_flag='-r'
5631fi
5632echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5633echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5634reload_flag=$lt_cv_ld_reload_flag
5635case $reload_flag in
5636"" | " "*) ;;
5637*) reload_flag=" $reload_flag" ;;
5638esac
5639reload_cmds='$LD$reload_flag -o $output$reload_objs'
5640case $host_os in
5641  darwin*)
5642    if test "$GCC" = yes; then
5643      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5644    else
5645      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5646    fi
5647    ;;
5648esac
5649
5650echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5651echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5652if test "${lt_cv_path_NM+set}" = set; then
5653  echo $ECHO_N "(cached) $ECHO_C" >&6
5654else
5655  if test -n "$NM"; then
5656  # Let the user override the test.
5657  lt_cv_path_NM="$NM"
5658else
5659  lt_nm_to_check="${ac_tool_prefix}nm"
5660  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5661    lt_nm_to_check="$lt_nm_to_check nm"
5662  fi
5663  for lt_tmp_nm in $lt_nm_to_check; do
5664    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5665    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5666      IFS="$lt_save_ifs"
5667      test -z "$ac_dir" && ac_dir=.
5668      tmp_nm="$ac_dir/$lt_tmp_nm"
5669      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5670        # Check to see if the nm accepts a BSD-compat flag.
5671        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5672        #   nm: unknown option "B" ignored
5673        # Tru64's nm complains that /dev/null is an invalid object file
5674        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5675        */dev/null* | *'Invalid file or object type'*)
5676          lt_cv_path_NM="$tmp_nm -B"
5677          break
5678          ;;
5679        *)
5680          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5681          */dev/null*)
5682            lt_cv_path_NM="$tmp_nm -p"
5683            break
5684            ;;
5685          *)
5686            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5687            continue # so that we can try to find one that supports BSD flags
5688            ;;
5689          esac
5690          ;;
5691        esac
5692      fi
5693    done
5694    IFS="$lt_save_ifs"
5695  done
5696  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5697fi
5698fi
5699echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5700echo "${ECHO_T}$lt_cv_path_NM" >&6
5701NM="$lt_cv_path_NM"
5702
5703echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5704echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5705if test "${lt_cv_deplibs_check_method+set}" = set; then
5706  echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708  lt_cv_file_magic_cmd='$MAGIC_CMD'
5709lt_cv_file_magic_test_file=
5710lt_cv_deplibs_check_method='unknown'
5711# Need to set the preceding variable on all platforms that support
5712# interlibrary dependencies.
5713# 'none' -- dependencies not supported.
5714# `unknown' -- same as none, but documents that we really don't know.
5715# 'pass_all' -- all dependencies passed with no checks.
5716# 'test_compile' -- check by making test program.
5717# 'file_magic [[regex]]' -- check by looking for files in library path
5718# which responds to the $file_magic_cmd with a given extended regex.
5719# If you have `file' or equivalent on your system and you're not sure
5720# whether `pass_all' will *always* work, you probably want this one.
5721
5722case $host_os in
5723aix4* | aix5*)
5724  lt_cv_deplibs_check_method=pass_all
5725  ;;
5726
5727beos*)
5728  lt_cv_deplibs_check_method=pass_all
5729  ;;
5730
5731bsdi[45]*)
5732  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5733  lt_cv_file_magic_cmd='/usr/bin/file -L'
5734  lt_cv_file_magic_test_file=/shlib/libc.so
5735  ;;
5736
5737cygwin*)
5738  # func_win32_libid is a shell function defined in ltmain.sh
5739  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5740  lt_cv_file_magic_cmd='func_win32_libid'
5741  ;;
5742
5743mingw* | pw32*)
5744  # Base MSYS/MinGW do not provide the 'file' command needed by
5745  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5746  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5747  lt_cv_file_magic_cmd='$OBJDUMP -f'
5748  ;;
5749
5750darwin* | rhapsody*)
5751  lt_cv_deplibs_check_method=pass_all
5752  ;;
5753
5754freebsd* | kfreebsd*-gnu | dragonfly*)
5755  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5756    case $host_cpu in
5757    i*86 )
5758      # Not sure whether the presence of OpenBSD here was a mistake.
5759      # Let's accept both of them until this is cleared up.
5760      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5761      lt_cv_file_magic_cmd=/usr/bin/file
5762      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5763      ;;
5764    esac
5765  else
5766    lt_cv_deplibs_check_method=pass_all
5767  fi
5768  ;;
5769
5770gnu*)
5771  lt_cv_deplibs_check_method=pass_all
5772  ;;
5773
5774hpux10.20* | hpux11*)
5775  lt_cv_file_magic_cmd=/usr/bin/file
5776  case $host_cpu in
5777  ia64*)
5778    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5779    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5780    ;;
5781  hppa*64*)
5782    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]'
5783    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5784    ;;
5785  *)
5786    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5787    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5788    ;;
5789  esac
5790  ;;
5791
5792interix3*)
5793  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5794  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5795  ;;
5796
5797irix5* | irix6* | nonstopux*)
5798  case $LD in
5799  *-32|*"-32 ") libmagic=32-bit;;
5800  *-n32|*"-n32 ") libmagic=N32;;
5801  *-64|*"-64 ") libmagic=64-bit;;
5802  *) libmagic=never-match;;
5803  esac
5804  lt_cv_deplibs_check_method=pass_all
5805  ;;
5806
5807# This must be Linux ELF.
5808linux*)
5809  lt_cv_deplibs_check_method=pass_all
5810  ;;
5811
5812netbsd*)
5813  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5814    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5815  else
5816    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5817  fi
5818  ;;
5819
5820newos6*)
5821  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5822  lt_cv_file_magic_cmd=/usr/bin/file
5823  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5824  ;;
5825
5826nto-qnx*)
5827  lt_cv_deplibs_check_method=unknown
5828  ;;
5829
5830openbsd*)
5831  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5832    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5833  else
5834    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5835  fi
5836  ;;
5837
5838osf3* | osf4* | osf5*)
5839  lt_cv_deplibs_check_method=pass_all
5840  ;;
5841
5842solaris*)
5843  lt_cv_deplibs_check_method=pass_all
5844  ;;
5845
5846sysv4 | sysv4.3*)
5847  case $host_vendor in
5848  motorola)
5849    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]'
5850    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5851    ;;
5852  ncr)
5853    lt_cv_deplibs_check_method=pass_all
5854    ;;
5855  sequent)
5856    lt_cv_file_magic_cmd='/bin/file'
5857    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5858    ;;
5859  sni)
5860    lt_cv_file_magic_cmd='/bin/file'
5861    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5862    lt_cv_file_magic_test_file=/lib/libc.so
5863    ;;
5864  siemens)
5865    lt_cv_deplibs_check_method=pass_all
5866    ;;
5867  pc)
5868    lt_cv_deplibs_check_method=pass_all
5869    ;;
5870  esac
5871  ;;
5872
5873sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5874  lt_cv_deplibs_check_method=pass_all
5875  ;;
5876esac
5877
5878fi
5879echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5880echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5881file_magic_cmd=$lt_cv_file_magic_cmd
5882deplibs_check_method=$lt_cv_deplibs_check_method
5883test -z "$deplibs_check_method" && deplibs_check_method=unknown
5884
5885
5886
5887
5888# If no C compiler was specified, use CC.
5889LTCC=${LTCC-"$CC"}
5890
5891# If no C compiler flags were specified, use CFLAGS.
5892LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5893
5894# Allow CC to be a program name with arguments.
5895compiler=$CC
5896
5897# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5898if test "${enable_libtool_lock+set}" = set; then
5899  enableval="$enable_libtool_lock"
5900
5901fi;
5902test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5903
5904# Some flags need to be propagated to the compiler or linker for good
5905# libtool support.
5906case $host in
5907ia64-*-hpux*)
5908  # Find out which ABI we are using.
5909  echo 'int i;' > conftest.$ac_ext
5910  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911  (eval $ac_compile) 2>&5
5912  ac_status=$?
5913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914  (exit $ac_status); }; then
5915    case `/usr/bin/file conftest.$ac_objext` in
5916    *ELF-32*)
5917      HPUX_IA64_MODE="32"
5918      ;;
5919    *ELF-64*)
5920      HPUX_IA64_MODE="64"
5921      ;;
5922    esac
5923  fi
5924  rm -rf conftest*
5925  ;;
5926*-*-irix6*)
5927  # Find out which ABI we are using.
5928  echo '#line 5928 "configure"' > conftest.$ac_ext
5929  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930  (eval $ac_compile) 2>&5
5931  ac_status=$?
5932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933  (exit $ac_status); }; then
5934   if test "$lt_cv_prog_gnu_ld" = yes; then
5935    case `/usr/bin/file conftest.$ac_objext` in
5936    *32-bit*)
5937      LD="${LD-ld} -melf32bsmip"
5938      ;;
5939    *N32*)
5940      LD="${LD-ld} -melf32bmipn32"
5941      ;;
5942    *64-bit*)
5943      LD="${LD-ld} -melf64bmip"
5944      ;;
5945    esac
5946   else
5947    case `/usr/bin/file conftest.$ac_objext` in
5948    *32-bit*)
5949      LD="${LD-ld} -32"
5950      ;;
5951    *N32*)
5952      LD="${LD-ld} -n32"
5953      ;;
5954    *64-bit*)
5955      LD="${LD-ld} -64"
5956      ;;
5957    esac
5958   fi
5959  fi
5960  rm -rf conftest*
5961  ;;
5962
5963x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5964  # Find out which ABI we are using.
5965  echo 'int i;' > conftest.$ac_ext
5966  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5967  (eval $ac_compile) 2>&5
5968  ac_status=$?
5969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970  (exit $ac_status); }; then
5971    case `/usr/bin/file conftest.o` in
5972    *32-bit*)
5973      case $host in
5974        x86_64-*linux*)
5975          LD="${LD-ld} -m elf_i386"
5976          ;;
5977        ppc64-*linux*|powerpc64-*linux*)
5978          LD="${LD-ld} -m elf32ppclinux"
5979          ;;
5980        s390x-*linux*)
5981          LD="${LD-ld} -m elf_s390"
5982          ;;
5983        sparc64-*linux*)
5984          LD="${LD-ld} -m elf32_sparc"
5985          ;;
5986      esac
5987      ;;
5988    *64-bit*)
5989      case $host in
5990        x86_64-*linux*)
5991          LD="${LD-ld} -m elf_x86_64"
5992          ;;
5993        ppc*-*linux*|powerpc*-*linux*)
5994          LD="${LD-ld} -m elf64ppc"
5995          ;;
5996        s390*-*linux*)
5997          LD="${LD-ld} -m elf64_s390"
5998          ;;
5999        sparc*-*linux*)
6000          LD="${LD-ld} -m elf64_sparc"
6001          ;;
6002      esac
6003      ;;
6004    esac
6005  fi
6006  rm -rf conftest*
6007  ;;
6008
6009*-*-sco3.2v5*)
6010  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6011  SAVE_CFLAGS="$CFLAGS"
6012  CFLAGS="$CFLAGS -belf"
6013  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6014echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6015if test "${lt_cv_cc_needs_belf+set}" = set; then
6016  echo $ECHO_N "(cached) $ECHO_C" >&6
6017else
6018  ac_ext=c
6019ac_cpp='$CPP $CPPFLAGS'
6020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023
6024     cat >conftest.$ac_ext <<_ACEOF
6025/* confdefs.h.  */
6026_ACEOF
6027cat confdefs.h >>conftest.$ac_ext
6028cat >>conftest.$ac_ext <<_ACEOF
6029/* end confdefs.h.  */
6030
6031int
6032main ()
6033{
6034
6035  ;
6036  return 0;
6037}
6038_ACEOF
6039rm -f conftest.$ac_objext conftest$ac_exeext
6040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6041  (eval $ac_link) 2>conftest.er1
6042  ac_status=$?
6043  grep -v '^ *+' conftest.er1 >conftest.err
6044  rm -f conftest.er1
6045  cat conftest.err >&5
6046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047  (exit $ac_status); } &&
6048         { ac_try='test -z "$ac_c_werror_flag"
6049                         || test ! -s conftest.err'
6050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051  (eval $ac_try) 2>&5
6052  ac_status=$?
6053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054  (exit $ac_status); }; } &&
6055         { ac_try='test -s conftest$ac_exeext'
6056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057  (eval $ac_try) 2>&5
6058  ac_status=$?
6059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060  (exit $ac_status); }; }; then
6061  lt_cv_cc_needs_belf=yes
6062else
6063  echo "$as_me: failed program was:" >&5
6064sed 's/^/| /' conftest.$ac_ext >&5
6065
6066lt_cv_cc_needs_belf=no
6067fi
6068rm -f conftest.err conftest.$ac_objext \
6069      conftest$ac_exeext conftest.$ac_ext
6070     ac_ext=c
6071ac_cpp='$CPP $CPPFLAGS'
6072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075
6076fi
6077echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6078echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6079  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6080    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6081    CFLAGS="$SAVE_CFLAGS"
6082  fi
6083  ;;
6084sparc*-*solaris*)
6085  # Find out which ABI we are using.
6086  echo 'int i;' > conftest.$ac_ext
6087  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088  (eval $ac_compile) 2>&5
6089  ac_status=$?
6090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091  (exit $ac_status); }; then
6092    case `/usr/bin/file conftest.o` in
6093    *64-bit*)
6094      case $lt_cv_prog_gnu_ld in
6095      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6096      *)    LD="${LD-ld} -64" ;;
6097      esac
6098      ;;
6099    esac
6100  fi
6101  rm -rf conftest*
6102  ;;
6103
6104
6105esac
6106
6107need_locks="$enable_libtool_lock"
6108
6109
6110ac_ext=c
6111ac_cpp='$CPP $CPPFLAGS'
6112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6114ac_compiler_gnu=$ac_cv_c_compiler_gnu
6115echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6116echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6117# On Suns, sometimes $CPP names a directory.
6118if test -n "$CPP" && test -d "$CPP"; then
6119  CPP=
6120fi
6121if test -z "$CPP"; then
6122  if test "${ac_cv_prog_CPP+set}" = set; then
6123  echo $ECHO_N "(cached) $ECHO_C" >&6
6124else
6125      # Double quotes because CPP needs to be expanded
6126    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6127    do
6128      ac_preproc_ok=false
6129for ac_c_preproc_warn_flag in '' yes
6130do
6131  # Use a header file that comes with gcc, so configuring glibc
6132  # with a fresh cross-compiler works.
6133  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6134  # <limits.h> exists even on freestanding compilers.
6135  # On the NeXT, cc -E runs the code through the compiler's parser,
6136  # not just through cpp. "Syntax error" is here to catch this case.
6137  cat >conftest.$ac_ext <<_ACEOF
6138/* confdefs.h.  */
6139_ACEOF
6140cat confdefs.h >>conftest.$ac_ext
6141cat >>conftest.$ac_ext <<_ACEOF
6142/* end confdefs.h.  */
6143#ifdef __STDC__
6144# include <limits.h>
6145#else
6146# include <assert.h>
6147#endif
6148                     Syntax error
6149_ACEOF
6150if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6151  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6152  ac_status=$?
6153  grep -v '^ *+' conftest.er1 >conftest.err
6154  rm -f conftest.er1
6155  cat conftest.err >&5
6156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157  (exit $ac_status); } >/dev/null; then
6158  if test -s conftest.err; then
6159    ac_cpp_err=$ac_c_preproc_warn_flag
6160    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6161  else
6162    ac_cpp_err=
6163  fi
6164else
6165  ac_cpp_err=yes
6166fi
6167if test -z "$ac_cpp_err"; then
6168  :
6169else
6170  echo "$as_me: failed program was:" >&5
6171sed 's/^/| /' conftest.$ac_ext >&5
6172
6173  # Broken: fails on valid input.
6174continue
6175fi
6176rm -f conftest.err conftest.$ac_ext
6177
6178  # OK, works on sane cases.  Now check whether non-existent headers
6179  # can be detected and how.
6180  cat >conftest.$ac_ext <<_ACEOF
6181/* confdefs.h.  */
6182_ACEOF
6183cat confdefs.h >>conftest.$ac_ext
6184cat >>conftest.$ac_ext <<_ACEOF
6185/* end confdefs.h.  */
6186#include <ac_nonexistent.h>
6187_ACEOF
6188if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6189  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6190  ac_status=$?
6191  grep -v '^ *+' conftest.er1 >conftest.err
6192  rm -f conftest.er1
6193  cat conftest.err >&5
6194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); } >/dev/null; then
6196  if test -s conftest.err; then
6197    ac_cpp_err=$ac_c_preproc_warn_flag
6198    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6199  else
6200    ac_cpp_err=
6201  fi
6202else
6203  ac_cpp_err=yes
6204fi
6205if test -z "$ac_cpp_err"; then
6206  # Broken: success on invalid input.
6207continue
6208else
6209  echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212  # Passes both tests.
6213ac_preproc_ok=:
6214break
6215fi
6216rm -f conftest.err conftest.$ac_ext
6217
6218done
6219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6220rm -f conftest.err conftest.$ac_ext
6221if $ac_preproc_ok; then
6222  break
6223fi
6224
6225    done
6226    ac_cv_prog_CPP=$CPP
6227
6228fi
6229  CPP=$ac_cv_prog_CPP
6230else
6231  ac_cv_prog_CPP=$CPP
6232fi
6233echo "$as_me:$LINENO: result: $CPP" >&5
6234echo "${ECHO_T}$CPP" >&6
6235ac_preproc_ok=false
6236for ac_c_preproc_warn_flag in '' yes
6237do
6238  # Use a header file that comes with gcc, so configuring glibc
6239  # with a fresh cross-compiler works.
6240  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6241  # <limits.h> exists even on freestanding compilers.
6242  # On the NeXT, cc -E runs the code through the compiler's parser,
6243  # not just through cpp. "Syntax error" is here to catch this case.
6244  cat >conftest.$ac_ext <<_ACEOF
6245/* confdefs.h.  */
6246_ACEOF
6247cat confdefs.h >>conftest.$ac_ext
6248cat >>conftest.$ac_ext <<_ACEOF
6249/* end confdefs.h.  */
6250#ifdef __STDC__
6251# include <limits.h>
6252#else
6253# include <assert.h>
6254#endif
6255                     Syntax error
6256_ACEOF
6257if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6258  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6259  ac_status=$?
6260  grep -v '^ *+' conftest.er1 >conftest.err
6261  rm -f conftest.er1
6262  cat conftest.err >&5
6263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264  (exit $ac_status); } >/dev/null; then
6265  if test -s conftest.err; then
6266    ac_cpp_err=$ac_c_preproc_warn_flag
6267    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6268  else
6269    ac_cpp_err=
6270  fi
6271else
6272  ac_cpp_err=yes
6273fi
6274if test -z "$ac_cpp_err"; then
6275  :
6276else
6277  echo "$as_me: failed program was:" >&5
6278sed 's/^/| /' conftest.$ac_ext >&5
6279
6280  # Broken: fails on valid input.
6281continue
6282fi
6283rm -f conftest.err conftest.$ac_ext
6284
6285  # OK, works on sane cases.  Now check whether non-existent headers
6286  # can be detected and how.
6287  cat >conftest.$ac_ext <<_ACEOF
6288/* confdefs.h.  */
6289_ACEOF
6290cat confdefs.h >>conftest.$ac_ext
6291cat >>conftest.$ac_ext <<_ACEOF
6292/* end confdefs.h.  */
6293#include <ac_nonexistent.h>
6294_ACEOF
6295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6296  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6297  ac_status=$?
6298  grep -v '^ *+' conftest.er1 >conftest.err
6299  rm -f conftest.er1
6300  cat conftest.err >&5
6301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302  (exit $ac_status); } >/dev/null; then
6303  if test -s conftest.err; then
6304    ac_cpp_err=$ac_c_preproc_warn_flag
6305    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6306  else
6307    ac_cpp_err=
6308  fi
6309else
6310  ac_cpp_err=yes
6311fi
6312if test -z "$ac_cpp_err"; then
6313  # Broken: success on invalid input.
6314continue
6315else
6316  echo "$as_me: failed program was:" >&5
6317sed 's/^/| /' conftest.$ac_ext >&5
6318
6319  # Passes both tests.
6320ac_preproc_ok=:
6321break
6322fi
6323rm -f conftest.err conftest.$ac_ext
6324
6325done
6326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6327rm -f conftest.err conftest.$ac_ext
6328if $ac_preproc_ok; then
6329  :
6330else
6331  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6332See \`config.log' for more details." >&5
6333echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6334See \`config.log' for more details." >&2;}
6335   { (exit 1); exit 1; }; }
6336fi
6337
6338ac_ext=c
6339ac_cpp='$CPP $CPPFLAGS'
6340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6342ac_compiler_gnu=$ac_cv_c_compiler_gnu
6343
6344
6345echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6346echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6347if test "${ac_cv_header_stdc+set}" = set; then
6348  echo $ECHO_N "(cached) $ECHO_C" >&6
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 <stdlib.h>
6357#include <stdarg.h>
6358#include <string.h>
6359#include <float.h>
6360
6361int
6362main ()
6363{
6364
6365  ;
6366  return 0;
6367}
6368_ACEOF
6369rm -f conftest.$ac_objext
6370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371  (eval $ac_compile) 2>conftest.er1
6372  ac_status=$?
6373  grep -v '^ *+' conftest.er1 >conftest.err
6374  rm -f conftest.er1
6375  cat conftest.err >&5
6376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377  (exit $ac_status); } &&
6378         { ac_try='test -z "$ac_c_werror_flag"
6379                         || test ! -s conftest.err'
6380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381  (eval $ac_try) 2>&5
6382  ac_status=$?
6383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384  (exit $ac_status); }; } &&
6385         { ac_try='test -s conftest.$ac_objext'
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  ac_cv_header_stdc=yes
6392else
6393  echo "$as_me: failed program was:" >&5
6394sed 's/^/| /' conftest.$ac_ext >&5
6395
6396ac_cv_header_stdc=no
6397fi
6398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6399
6400if test $ac_cv_header_stdc = yes; then
6401  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6402  cat >conftest.$ac_ext <<_ACEOF
6403/* confdefs.h.  */
6404_ACEOF
6405cat confdefs.h >>conftest.$ac_ext
6406cat >>conftest.$ac_ext <<_ACEOF
6407/* end confdefs.h.  */
6408#include <string.h>
6409
6410_ACEOF
6411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6412  $EGREP "memchr" >/dev/null 2>&1; then
6413  :
6414else
6415  ac_cv_header_stdc=no
6416fi
6417rm -f conftest*
6418
6419fi
6420
6421if test $ac_cv_header_stdc = yes; then
6422  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6423  cat >conftest.$ac_ext <<_ACEOF
6424/* confdefs.h.  */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h.  */
6429#include <stdlib.h>
6430
6431_ACEOF
6432if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6433  $EGREP "free" >/dev/null 2>&1; then
6434  :
6435else
6436  ac_cv_header_stdc=no
6437fi
6438rm -f conftest*
6439
6440fi
6441
6442if test $ac_cv_header_stdc = yes; then
6443  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6444  if test "$cross_compiling" = yes; then
6445  :
6446else
6447  cat >conftest.$ac_ext <<_ACEOF
6448/* confdefs.h.  */
6449_ACEOF
6450cat confdefs.h >>conftest.$ac_ext
6451cat >>conftest.$ac_ext <<_ACEOF
6452/* end confdefs.h.  */
6453#include <ctype.h>
6454#if ((' ' & 0x0FF) == 0x020)
6455# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6456# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6457#else
6458# define ISLOWER(c) \
6459                   (('a' <= (c) && (c) <= 'i') \
6460                     || ('j' <= (c) && (c) <= 'r') \
6461                     || ('s' <= (c) && (c) <= 'z'))
6462# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6463#endif
6464
6465#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6466int
6467main ()
6468{
6469  int i;
6470  for (i = 0; i < 256; i++)
6471    if (XOR (islower (i), ISLOWER (i))
6472        || toupper (i) != TOUPPER (i))
6473      exit(2);
6474  exit (0);
6475}
6476_ACEOF
6477rm -f conftest$ac_exeext
6478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6479  (eval $ac_link) 2>&5
6480  ac_status=$?
6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484  (eval $ac_try) 2>&5
6485  ac_status=$?
6486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); }; }; then
6488  :
6489else
6490  echo "$as_me: program exited with status $ac_status" >&5
6491echo "$as_me: failed program was:" >&5
6492sed 's/^/| /' conftest.$ac_ext >&5
6493
6494( exit $ac_status )
6495ac_cv_header_stdc=no
6496fi
6497rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6498fi
6499fi
6500fi
6501echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6502echo "${ECHO_T}$ac_cv_header_stdc" >&6
6503if test $ac_cv_header_stdc = yes; then
6504
6505cat >>confdefs.h <<\_ACEOF
6506#define STDC_HEADERS 1
6507_ACEOF
6508
6509fi
6510
6511# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6522                  inttypes.h stdint.h unistd.h
6523do
6524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6525echo "$as_me:$LINENO: checking for $ac_header" >&5
6526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6527if eval "test \"\${$as_ac_Header+set}\" = set"; then
6528  echo $ECHO_N "(cached) $ECHO_C" >&6
6529else
6530  cat >conftest.$ac_ext <<_ACEOF
6531/* confdefs.h.  */
6532_ACEOF
6533cat confdefs.h >>conftest.$ac_ext
6534cat >>conftest.$ac_ext <<_ACEOF
6535/* end confdefs.h.  */
6536$ac_includes_default
6537
6538#include <$ac_header>
6539_ACEOF
6540rm -f conftest.$ac_objext
6541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6542  (eval $ac_compile) 2>conftest.er1
6543  ac_status=$?
6544  grep -v '^ *+' conftest.er1 >conftest.err
6545  rm -f conftest.er1
6546  cat conftest.err >&5
6547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548  (exit $ac_status); } &&
6549         { ac_try='test -z "$ac_c_werror_flag"
6550                         || test ! -s conftest.err'
6551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552  (eval $ac_try) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; } &&
6556         { ac_try='test -s conftest.$ac_objext'
6557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558  (eval $ac_try) 2>&5
6559  ac_status=$?
6560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561  (exit $ac_status); }; }; then
6562  eval "$as_ac_Header=yes"
6563else
6564  echo "$as_me: failed program was:" >&5
6565sed 's/^/| /' conftest.$ac_ext >&5
6566
6567eval "$as_ac_Header=no"
6568fi
6569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6570fi
6571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6573if test `eval echo '${'$as_ac_Header'}'` = yes; then
6574  cat >>confdefs.h <<_ACEOF
6575#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6576_ACEOF
6577
6578fi
6579
6580done
6581
6582
6583
6584for ac_header in dlfcn.h
6585do
6586as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6587if eval "test \"\${$as_ac_Header+set}\" = set"; then
6588  echo "$as_me:$LINENO: checking for $ac_header" >&5
6589echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6590if eval "test \"\${$as_ac_Header+set}\" = set"; then
6591  echo $ECHO_N "(cached) $ECHO_C" >&6
6592fi
6593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6595else
6596  # Is the header compilable?
6597echo "$as_me:$LINENO: checking $ac_header usability" >&5
6598echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6599cat >conftest.$ac_ext <<_ACEOF
6600/* confdefs.h.  */
6601_ACEOF
6602cat confdefs.h >>conftest.$ac_ext
6603cat >>conftest.$ac_ext <<_ACEOF
6604/* end confdefs.h.  */
6605$ac_includes_default
6606#include <$ac_header>
6607_ACEOF
6608rm -f conftest.$ac_objext
6609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6610  (eval $ac_compile) 2>conftest.er1
6611  ac_status=$?
6612  grep -v '^ *+' conftest.er1 >conftest.err
6613  rm -f conftest.er1
6614  cat conftest.err >&5
6615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616  (exit $ac_status); } &&
6617         { ac_try='test -z "$ac_c_werror_flag"
6618                         || test ! -s conftest.err'
6619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620  (eval $ac_try) 2>&5
6621  ac_status=$?
6622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623  (exit $ac_status); }; } &&
6624         { ac_try='test -s conftest.$ac_objext'
6625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6626  (eval $ac_try) 2>&5
6627  ac_status=$?
6628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629  (exit $ac_status); }; }; then
6630  ac_header_compiler=yes
6631else
6632  echo "$as_me: failed program was:" >&5
6633sed 's/^/| /' conftest.$ac_ext >&5
6634
6635ac_header_compiler=no
6636fi
6637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6638echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6639echo "${ECHO_T}$ac_header_compiler" >&6
6640
6641# Is the header present?
6642echo "$as_me:$LINENO: checking $ac_header presence" >&5
6643echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6644cat >conftest.$ac_ext <<_ACEOF
6645/* confdefs.h.  */
6646_ACEOF
6647cat confdefs.h >>conftest.$ac_ext
6648cat >>conftest.$ac_ext <<_ACEOF
6649/* end confdefs.h.  */
6650#include <$ac_header>
6651_ACEOF
6652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6653  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6654  ac_status=$?
6655  grep -v '^ *+' conftest.er1 >conftest.err
6656  rm -f conftest.er1
6657  cat conftest.err >&5
6658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659  (exit $ac_status); } >/dev/null; then
6660  if test -s conftest.err; then
6661    ac_cpp_err=$ac_c_preproc_warn_flag
6662    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6663  else
6664    ac_cpp_err=
6665  fi
6666else
6667  ac_cpp_err=yes
6668fi
6669if test -z "$ac_cpp_err"; then
6670  ac_header_preproc=yes
6671else
6672  echo "$as_me: failed program was:" >&5
6673sed 's/^/| /' conftest.$ac_ext >&5
6674
6675  ac_header_preproc=no
6676fi
6677rm -f conftest.err conftest.$ac_ext
6678echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6679echo "${ECHO_T}$ac_header_preproc" >&6
6680
6681# So?  What about this header?
6682case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6683  yes:no: )
6684    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6685echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6686    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6687echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6688    ac_header_preproc=yes
6689    ;;
6690  no:yes:* )
6691    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6692echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6693    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6694echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6695    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6696echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6697    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6698echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6699    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6700echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6701    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6702echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6703    (
6704      cat <<\_ASBOX
6705## ----------------------------------- ##
6706## Report this to clp@list.coin-or.org ##
6707## ----------------------------------- ##
6708_ASBOX
6709    ) |
6710      sed "s/^/$as_me: WARNING:     /" >&2
6711    ;;
6712esac
6713echo "$as_me:$LINENO: checking for $ac_header" >&5
6714echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6715if eval "test \"\${$as_ac_Header+set}\" = set"; then
6716  echo $ECHO_N "(cached) $ECHO_C" >&6
6717else
6718  eval "$as_ac_Header=\$ac_header_preproc"
6719fi
6720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6721echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6722
6723fi
6724if test `eval echo '${'$as_ac_Header'}'` = yes; then
6725  cat >>confdefs.h <<_ACEOF
6726#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6727_ACEOF
6728
6729fi
6730
6731done
6732
6733
6734
6735if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6736    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6737    (test "X$CXX" != "Xg++"))) ; then
6738  ac_ext=cc
6739ac_cpp='$CXXCPP $CPPFLAGS'
6740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6743echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6744echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6745if test -z "$CXXCPP"; then
6746  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6747  echo $ECHO_N "(cached) $ECHO_C" >&6
6748else
6749      # Double quotes because CXXCPP needs to be expanded
6750    for CXXCPP in "$CXX -E" "/lib/cpp"
6751    do
6752      ac_preproc_ok=false
6753for ac_cxx_preproc_warn_flag in '' yes
6754do
6755  # Use a header file that comes with gcc, so configuring glibc
6756  # with a fresh cross-compiler works.
6757  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6758  # <limits.h> exists even on freestanding compilers.
6759  # On the NeXT, cc -E runs the code through the compiler's parser,
6760  # not just through cpp. "Syntax error" is here to catch this case.
6761  cat >conftest.$ac_ext <<_ACEOF
6762/* confdefs.h.  */
6763_ACEOF
6764cat confdefs.h >>conftest.$ac_ext
6765cat >>conftest.$ac_ext <<_ACEOF
6766/* end confdefs.h.  */
6767#ifdef __STDC__
6768# include <limits.h>
6769#else
6770# include <assert.h>
6771#endif
6772                     Syntax error
6773_ACEOF
6774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6775  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6776  ac_status=$?
6777  grep -v '^ *+' conftest.er1 >conftest.err
6778  rm -f conftest.er1
6779  cat conftest.err >&5
6780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781  (exit $ac_status); } >/dev/null; then
6782  if test -s conftest.err; then
6783    ac_cpp_err=$ac_cxx_preproc_warn_flag
6784    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6785  else
6786    ac_cpp_err=
6787  fi
6788else
6789  ac_cpp_err=yes
6790fi
6791if test -z "$ac_cpp_err"; then
6792  :
6793else
6794  echo "$as_me: failed program was:" >&5
6795sed 's/^/| /' conftest.$ac_ext >&5
6796
6797  # Broken: fails on valid input.
6798continue
6799fi
6800rm -f conftest.err conftest.$ac_ext
6801
6802  # OK, works on sane cases.  Now check whether non-existent headers
6803  # can be detected and how.
6804  cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h.  */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h.  */
6810#include <ac_nonexistent.h>
6811_ACEOF
6812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6813  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6814  ac_status=$?
6815  grep -v '^ *+' conftest.er1 >conftest.err
6816  rm -f conftest.er1
6817  cat conftest.err >&5
6818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819  (exit $ac_status); } >/dev/null; then
6820  if test -s conftest.err; then
6821    ac_cpp_err=$ac_cxx_preproc_warn_flag
6822    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6823  else
6824    ac_cpp_err=
6825  fi
6826else
6827  ac_cpp_err=yes
6828fi
6829if test -z "$ac_cpp_err"; then
6830  # Broken: success on invalid input.
6831continue
6832else
6833  echo "$as_me: failed program was:" >&5
6834sed 's/^/| /' conftest.$ac_ext >&5
6835
6836  # Passes both tests.
6837ac_preproc_ok=:
6838break
6839fi
6840rm -f conftest.err conftest.$ac_ext
6841
6842done
6843# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6844rm -f conftest.err conftest.$ac_ext
6845if $ac_preproc_ok; then
6846  break
6847fi
6848
6849    done
6850    ac_cv_prog_CXXCPP=$CXXCPP
6851
6852fi
6853  CXXCPP=$ac_cv_prog_CXXCPP
6854else
6855  ac_cv_prog_CXXCPP=$CXXCPP
6856fi
6857echo "$as_me:$LINENO: result: $CXXCPP" >&5
6858echo "${ECHO_T}$CXXCPP" >&6
6859ac_preproc_ok=false
6860for ac_cxx_preproc_warn_flag in '' yes
6861do
6862  # Use a header file that comes with gcc, so configuring glibc
6863  # with a fresh cross-compiler works.
6864  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6865  # <limits.h> exists even on freestanding compilers.
6866  # On the NeXT, cc -E runs the code through the compiler's parser,
6867  # not just through cpp. "Syntax error" is here to catch this case.
6868  cat >conftest.$ac_ext <<_ACEOF
6869/* confdefs.h.  */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h.  */
6874#ifdef __STDC__
6875# include <limits.h>
6876#else
6877# include <assert.h>
6878#endif
6879                     Syntax error
6880_ACEOF
6881if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6882  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6883  ac_status=$?
6884  grep -v '^ *+' conftest.er1 >conftest.err
6885  rm -f conftest.er1
6886  cat conftest.err >&5
6887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888  (exit $ac_status); } >/dev/null; then
6889  if test -s conftest.err; then
6890    ac_cpp_err=$ac_cxx_preproc_warn_flag
6891    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6892  else
6893    ac_cpp_err=
6894  fi
6895else
6896  ac_cpp_err=yes
6897fi
6898if test -z "$ac_cpp_err"; then
6899  :
6900else
6901  echo "$as_me: failed program was:" >&5
6902sed 's/^/| /' conftest.$ac_ext >&5
6903
6904  # Broken: fails on valid input.
6905continue
6906fi
6907rm -f conftest.err conftest.$ac_ext
6908
6909  # OK, works on sane cases.  Now check whether non-existent headers
6910  # can be detected and how.
6911  cat >conftest.$ac_ext <<_ACEOF
6912/* confdefs.h.  */
6913_ACEOF
6914cat confdefs.h >>conftest.$ac_ext
6915cat >>conftest.$ac_ext <<_ACEOF
6916/* end confdefs.h.  */
6917#include <ac_nonexistent.h>
6918_ACEOF
6919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6920  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6921  ac_status=$?
6922  grep -v '^ *+' conftest.er1 >conftest.err
6923  rm -f conftest.er1
6924  cat conftest.err >&5
6925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926  (exit $ac_status); } >/dev/null; then
6927  if test -s conftest.err; then
6928    ac_cpp_err=$ac_cxx_preproc_warn_flag
6929    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6930  else
6931    ac_cpp_err=
6932  fi
6933else
6934  ac_cpp_err=yes
6935fi
6936if test -z "$ac_cpp_err"; then
6937  # Broken: success on invalid input.
6938continue
6939else
6940  echo "$as_me: failed program was:" >&5
6941sed 's/^/| /' conftest.$ac_ext >&5
6942
6943  # Passes both tests.
6944ac_preproc_ok=:
6945break
6946fi
6947rm -f conftest.err conftest.$ac_ext
6948
6949done
6950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6951rm -f conftest.err conftest.$ac_ext
6952if $ac_preproc_ok; then
6953  :
6954else
6955  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6956See \`config.log' for more details." >&5
6957echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6958See \`config.log' for more details." >&2;}
6959   { (exit 1); exit 1; }; }
6960fi
6961
6962ac_ext=cc
6963ac_cpp='$CXXCPP $CPPFLAGS'
6964ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6965ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6966ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6967
6968fi
6969
6970ac_ext=f
6971ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6972ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6974if test -n "$ac_tool_prefix"; then
6975  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6976  do
6977    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6979echo "$as_me:$LINENO: checking for $ac_word" >&5
6980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6981if test "${ac_cv_prog_F77+set}" = set; then
6982  echo $ECHO_N "(cached) $ECHO_C" >&6
6983else
6984  if test -n "$F77"; then
6985  ac_cv_prog_F77="$F77" # Let the user override the test.
6986else
6987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988for as_dir in $PATH
6989do
6990  IFS=$as_save_IFS
6991  test -z "$as_dir" && as_dir=.
6992  for ac_exec_ext in '' $ac_executable_extensions; do
6993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6996    break 2
6997  fi
6998done
6999done
7000
7001fi
7002fi
7003F77=$ac_cv_prog_F77
7004if test -n "$F77"; then
7005  echo "$as_me:$LINENO: result: $F77" >&5
7006echo "${ECHO_T}$F77" >&6
7007else
7008  echo "$as_me:$LINENO: result: no" >&5
7009echo "${ECHO_T}no" >&6
7010fi
7011
7012    test -n "$F77" && break
7013  done
7014fi
7015if test -z "$F77"; then
7016  ac_ct_F77=$F77
7017  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7018do
7019  # Extract the first word of "$ac_prog", so it can be a program name with args.
7020set dummy $ac_prog; ac_word=$2
7021echo "$as_me:$LINENO: checking for $ac_word" >&5
7022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7023if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7024  echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026  if test -n "$ac_ct_F77"; then
7027  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7028else
7029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030for as_dir in $PATH
7031do
7032  IFS=$as_save_IFS
7033  test -z "$as_dir" && as_dir=.
7034  for ac_exec_ext in '' $ac_executable_extensions; do
7035  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036    ac_cv_prog_ac_ct_F77="$ac_prog"
7037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038    break 2
7039  fi
7040done
7041done
7042
7043fi
7044fi
7045ac_ct_F77=$ac_cv_prog_ac_ct_F77
7046if test -n "$ac_ct_F77"; then
7047  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7048echo "${ECHO_T}$ac_ct_F77" >&6
7049else
7050  echo "$as_me:$LINENO: result: no" >&5
7051echo "${ECHO_T}no" >&6
7052fi
7053
7054  test -n "$ac_ct_F77" && break
7055done
7056
7057  F77=$ac_ct_F77
7058fi
7059
7060
7061# Provide some information about the compiler.
7062echo "$as_me:7062:" \
7063     "checking for Fortran 77 compiler version" >&5
7064ac_compiler=`set X $ac_compile; echo $2`
7065{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7066  (eval $ac_compiler --version </dev/null >&5) 2>&5
7067  ac_status=$?
7068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069  (exit $ac_status); }
7070{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7071  (eval $ac_compiler -v </dev/null >&5) 2>&5
7072  ac_status=$?
7073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074  (exit $ac_status); }
7075{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7076  (eval $ac_compiler -V </dev/null >&5) 2>&5
7077  ac_status=$?
7078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079  (exit $ac_status); }
7080rm -f a.out
7081
7082# If we don't use `.F' as extension, the preprocessor is not run on the
7083# input file.  (Note that this only needs to work for GNU compilers.)
7084ac_save_ext=$ac_ext
7085ac_ext=F
7086echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7087echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7088if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7089  echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091  cat >conftest.$ac_ext <<_ACEOF
7092      program main
7093#ifndef __GNUC__
7094       choke me
7095#endif
7096
7097      end
7098_ACEOF
7099rm -f conftest.$ac_objext
7100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7101  (eval $ac_compile) 2>conftest.er1
7102  ac_status=$?
7103  grep -v '^ *+' conftest.er1 >conftest.err
7104  rm -f conftest.er1
7105  cat conftest.err >&5
7106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107  (exit $ac_status); } &&
7108         { ac_try='test -z "$ac_f77_werror_flag"
7109                         || test ! -s conftest.err'
7110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111  (eval $ac_try) 2>&5
7112  ac_status=$?
7113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7114  (exit $ac_status); }; } &&
7115         { ac_try='test -s conftest.$ac_objext'
7116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117  (eval $ac_try) 2>&5
7118  ac_status=$?
7119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120  (exit $ac_status); }; }; then
7121  ac_compiler_gnu=yes
7122else
7123  echo "$as_me: failed program was:" >&5
7124sed 's/^/| /' conftest.$ac_ext >&5
7125
7126ac_compiler_gnu=no
7127fi
7128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7129ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7130
7131fi
7132echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7133echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7134ac_ext=$ac_save_ext
7135ac_test_FFLAGS=${FFLAGS+set}
7136ac_save_FFLAGS=$FFLAGS
7137FFLAGS=
7138echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7139echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7140if test "${ac_cv_prog_f77_g+set}" = set; then
7141  echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143  FFLAGS=-g
7144cat >conftest.$ac_ext <<_ACEOF
7145      program main
7146
7147      end
7148_ACEOF
7149rm -f conftest.$ac_objext
7150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7151  (eval $ac_compile) 2>conftest.er1
7152  ac_status=$?
7153  grep -v '^ *+' conftest.er1 >conftest.err
7154  rm -f conftest.er1
7155  cat conftest.err >&5
7156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157  (exit $ac_status); } &&
7158         { ac_try='test -z "$ac_f77_werror_flag"
7159                         || test ! -s conftest.err'
7160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161  (eval $ac_try) 2>&5
7162  ac_status=$?
7163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164  (exit $ac_status); }; } &&
7165         { ac_try='test -s conftest.$ac_objext'
7166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167  (eval $ac_try) 2>&5
7168  ac_status=$?
7169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170  (exit $ac_status); }; }; then
7171  ac_cv_prog_f77_g=yes
7172else
7173  echo "$as_me: failed program was:" >&5
7174sed 's/^/| /' conftest.$ac_ext >&5
7175
7176ac_cv_prog_f77_g=no
7177fi
7178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7179
7180fi
7181echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7182echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7183if test "$ac_test_FFLAGS" = set; then
7184  FFLAGS=$ac_save_FFLAGS
7185elif test $ac_cv_prog_f77_g = yes; then
7186  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7187    FFLAGS="-g -O2"
7188  else
7189    FFLAGS="-g"
7190  fi
7191else
7192  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7193    FFLAGS="-O2"
7194  else
7195    FFLAGS=
7196  fi
7197fi
7198
7199G77=`test $ac_compiler_gnu = yes && echo yes`
7200ac_ext=c
7201ac_cpp='$CPP $CPPFLAGS'
7202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7204ac_compiler_gnu=$ac_cv_c_compiler_gnu
7205
7206
7207
7208# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7209
7210# find the maximum length of command line arguments
7211echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7212echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7213if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7214  echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216    i=0
7217  teststring="ABCD"
7218
7219  case $build_os in
7220  msdosdjgpp*)
7221    # On DJGPP, this test can blow up pretty badly due to problems in libc
7222    # (any single argument exceeding 2000 bytes causes a buffer overrun
7223    # during glob expansion).  Even if it were fixed, the result of this
7224    # check would be larger than it should be.
7225    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7226    ;;
7227
7228  gnu*)
7229    # Under GNU Hurd, this test is not required because there is
7230    # no limit to the length of command line arguments.
7231    # Libtool will interpret -1 as no limit whatsoever
7232    lt_cv_sys_max_cmd_len=-1;
7233    ;;
7234
7235  cygwin* | mingw*)
7236    # On Win9x/ME, this test blows up -- it succeeds, but takes
7237    # about 5 minutes as the teststring grows exponentially.
7238    # Worse, since 9x/ME are not pre-emptively multitasking,
7239    # you end up with a "frozen" computer, even though with patience
7240    # the test eventually succeeds (with a max line length of 256k).
7241    # Instead, let's just punt: use the minimum linelength reported by
7242    # all of the supported platforms: 8192 (on NT/2K/XP).
7243    lt_cv_sys_max_cmd_len=8192;
7244    ;;
7245
7246  amigaos*)
7247    # On AmigaOS with pdksh, this test takes hours, literally.
7248    # So we just punt and use a minimum line length of 8192.
7249    lt_cv_sys_max_cmd_len=8192;
7250    ;;
7251
7252  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7253    # This has been around since 386BSD, at least.  Likely further.
7254    if test -x /sbin/sysctl; then
7255      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7256    elif test -x /usr/sbin/sysctl; then
7257      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7258    else
7259      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7260    fi
7261    # And add a safety zone
7262    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7263    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7264    ;;
7265
7266  interix*)
7267    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7268    lt_cv_sys_max_cmd_len=196608
7269    ;;
7270
7271  osf*)
7272    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7273    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7274    # nice to cause kernel panics so lets avoid the loop below.
7275    # First set a reasonable default.
7276    lt_cv_sys_max_cmd_len=16384
7277    #
7278    if test -x /sbin/sysconfig; then
7279      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7280        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7281      esac
7282    fi
7283    ;;
7284  sco3.2v5*)
7285    lt_cv_sys_max_cmd_len=102400
7286    ;;
7287  sysv5* | sco5v6* | sysv4.2uw2*)
7288    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7289    if test -n "$kargmax"; then
7290      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7291    else
7292      lt_cv_sys_max_cmd_len=32768
7293    fi
7294    ;;
7295  *)
7296    # If test is not a shell built-in, we'll probably end up computing a
7297    # maximum length that is only half of the actual maximum length, but
7298    # we can't tell.
7299    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7300    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7301               = "XX$teststring") >/dev/null 2>&1 &&
7302            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7303            lt_cv_sys_max_cmd_len=$new_result &&
7304            test $i != 17 # 1/2 MB should be enough
7305    do
7306      i=`expr $i + 1`
7307      teststring=$teststring$teststring
7308    done
7309    teststring=
7310    # Add a significant safety factor because C++ compilers can tack on massive
7311    # amounts of additional arguments before passing them to the linker.
7312    # It appears as though 1/2 is a usable value.
7313    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7314    ;;
7315  esac
7316
7317fi
7318
7319if test -n $lt_cv_sys_max_cmd_len ; then
7320  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7321echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7322else
7323  echo "$as_me:$LINENO: result: none" >&5
7324echo "${ECHO_T}none" >&6
7325fi
7326
7327
7328
7329
7330# Check for command to grab the raw symbol name followed by C symbol from nm.
7331echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7332echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7333if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7334  echo $ECHO_N "(cached) $ECHO_C" >&6
7335else
7336
7337# These are sane defaults that work on at least a few old systems.
7338# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7339
7340# Character class describing NM global symbol codes.
7341symcode='[BCDEGRST]'
7342
7343# Regexp to match symbols that can be accessed directly from C.
7344sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7345
7346# Transform an extracted symbol line into a proper C declaration
7347lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7348
7349# Transform an extracted symbol line into symbol name and symbol address
7350lt_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'"
7351
7352# Define system-specific variables.
7353case $host_os in
7354aix*)
7355  symcode='[BCDT]'
7356  ;;
7357cygwin* | mingw* | pw32*)
7358  symcode='[ABCDGISTW]'
7359  ;;
7360hpux*) # Its linker distinguishes data from code symbols
7361  if test "$host_cpu" = ia64; then
7362    symcode='[ABCDEGRST]'
7363  fi
7364  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7365  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'"
7366  ;;
7367linux*)
7368  if test "$host_cpu" = ia64; then
7369    symcode='[ABCDGIRSTW]'
7370    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7371    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'"
7372  fi
7373  ;;
7374irix* | nonstopux*)
7375  symcode='[BCDEGRST]'
7376  ;;
7377osf*)
7378  symcode='[BCDEGQRST]'
7379  ;;
7380solaris*)
7381  symcode='[BDRT]'
7382  ;;
7383sco3.2v5*)
7384  symcode='[DT]'
7385  ;;
7386sysv4.2uw2*)
7387  symcode='[DT]'
7388  ;;
7389sysv5* | sco5v6* | unixware* | OpenUNIX*)
7390  symcode='[ABDT]'
7391  ;;
7392sysv4)
7393  symcode='[DFNSTU]'
7394  ;;
7395esac
7396
7397# Handle CRLF in mingw tool chain
7398opt_cr=
7399case $build_os in
7400mingw*)
7401  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7402  ;;
7403esac
7404
7405# If we're using GNU nm, then use its standard symbol codes.
7406case `$NM -V 2>&1` in
7407*GNU* | *'with BFD'*)
7408  symcode='[ABCDGIRSTW]' ;;
7409esac
7410
7411# Try without a prefix undercore, then with it.
7412for ac_symprfx in "" "_"; do
7413
7414  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7415  symxfrm="\\1 $ac_symprfx\\2 \\2"
7416
7417  # Write the raw and C identifiers.
7418  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7419
7420  # Check to see that the pipe works correctly.
7421  pipe_works=no
7422
7423  rm -f conftest*
7424  cat > conftest.$ac_ext <<EOF
7425#ifdef __cplusplus
7426extern "C" {
7427#endif
7428char nm_test_var;
7429void nm_test_func(){}
7430#ifdef __cplusplus
7431}
7432#endif
7433int main(){nm_test_var='a';nm_test_func();return(0);}
7434EOF
7435
7436  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7437  (eval $ac_compile) 2>&5
7438  ac_status=$?
7439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440  (exit $ac_status); }; then
7441    # Now try to grab the symbols.
7442    nlist=conftest.nm
7443    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7444  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7445  ac_status=$?
7446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447  (exit $ac_status); } && test -s "$nlist"; then
7448      # Try sorting and uniquifying the output.
7449      if sort "$nlist" | uniq > "$nlist"T; then
7450        mv -f "$nlist"T "$nlist"
7451      else
7452        rm -f "$nlist"T
7453      fi
7454
7455      # Make sure that we snagged all the symbols we need.
7456      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7457        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7458          cat <<EOF > conftest.$ac_ext
7459#ifdef __cplusplus
7460extern "C" {
7461#endif
7462
7463EOF
7464          # Now generate the symbol file.
7465          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7466
7467          cat <<EOF >> conftest.$ac_ext
7468#if defined (__STDC__) && __STDC__
7469# define lt_ptr_t void *
7470#else
7471# define lt_ptr_t char *
7472# define const
7473#endif
7474
7475/* The mapping between symbol names and symbols. */
7476const struct {
7477  const char *name;
7478  lt_ptr_t address;
7479}
7480lt_preloaded_symbols[] =
7481{
7482EOF
7483          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7484          cat <<\EOF >> conftest.$ac_ext
7485  {0, (lt_ptr_t) 0}
7486};
7487
7488#ifdef __cplusplus
7489}
7490#endif
7491EOF
7492          # Now try linking the two files.
7493          mv conftest.$ac_objext conftstm.$ac_objext
7494          lt_save_LIBS="$LIBS"
7495          lt_save_CFLAGS="$CFLAGS"
7496          LIBS="conftstm.$ac_objext"
7497          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7498          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7499  (eval $ac_link) 2>&5
7500  ac_status=$?
7501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7503            pipe_works=yes
7504          fi
7505          LIBS="$lt_save_LIBS"
7506          CFLAGS="$lt_save_CFLAGS"
7507        else
7508          echo "cannot find nm_test_func in $nlist" >&5
7509        fi
7510      else
7511        echo "cannot find nm_test_var in $nlist" >&5
7512      fi
7513    else
7514      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7515    fi
7516  else
7517    echo "$progname: failed program was:" >&5
7518    cat conftest.$ac_ext >&5
7519  fi
7520  rm -f conftest* conftst*
7521
7522  # Do not use the global_symbol_pipe unless it works.
7523  if test "$pipe_works" = yes; then
7524    break
7525  else
7526    lt_cv_sys_global_symbol_pipe=
7527  fi
7528done
7529
7530fi
7531
7532if test -z "$lt_cv_sys_global_symbol_pipe"; then
7533  lt_cv_sys_global_symbol_to_cdecl=
7534fi
7535if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7536  echo "$as_me:$LINENO: result: failed" >&5
7537echo "${ECHO_T}failed" >&6
7538else
7539  echo "$as_me:$LINENO: result: ok" >&5
7540echo "${ECHO_T}ok" >&6
7541fi
7542
7543echo "$as_me:$LINENO: checking for objdir" >&5
7544echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7545if test "${lt_cv_objdir+set}" = set; then
7546  echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548  rm -f .libs 2>/dev/null
7549mkdir .libs 2>/dev/null
7550if test -d .libs; then
7551  lt_cv_objdir=.libs
7552else
7553  # MS-DOS does not allow filenames that begin with a dot.
7554  lt_cv_objdir=_libs
7555fi
7556rmdir .libs 2>/dev/null
7557fi
7558echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7559echo "${ECHO_T}$lt_cv_objdir" >&6
7560objdir=$lt_cv_objdir
7561
7562
7563
7564
7565
7566case $host_os in
7567aix3*)
7568  # AIX sometimes has problems with the GCC collect2 program.  For some
7569  # reason, if we set the COLLECT_NAMES environment variable, the problems
7570  # vanish in a puff of smoke.
7571  if test "X${COLLECT_NAMES+set}" != Xset; then
7572    COLLECT_NAMES=
7573    export COLLECT_NAMES
7574  fi
7575  ;;
7576esac
7577
7578# Sed substitution that helps us do robust quoting.  It backslashifies
7579# metacharacters that are still active within double-quoted strings.
7580Xsed='sed -e 1s/^X//'
7581sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7582
7583# Same as above, but do not quote variable references.
7584double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7585
7586# Sed substitution to delay expansion of an escaped shell variable in a
7587# double_quote_subst'ed string.
7588delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7589
7590# Sed substitution to avoid accidental globbing in evaled expressions
7591no_glob_subst='s/\*/\\\*/g'
7592
7593# Constants:
7594rm="rm -f"
7595
7596# Global variables:
7597default_ofile=libtool
7598can_build_shared=yes
7599
7600# All known linkers require a `.a' archive for static linking (except MSVC,
7601# which needs '.lib').
7602libext=a
7603ltmain="$ac_aux_dir/ltmain.sh"
7604ofile="$default_ofile"
7605with_gnu_ld="$lt_cv_prog_gnu_ld"
7606
7607if test -n "$ac_tool_prefix"; then
7608  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7609set dummy ${ac_tool_prefix}ar; ac_word=$2
7610echo "$as_me:$LINENO: checking for $ac_word" >&5
7611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7612if test "${ac_cv_prog_AR+set}" = set; then
7613  echo $ECHO_N "(cached) $ECHO_C" >&6
7614else
7615  if test -n "$AR"; then
7616  ac_cv_prog_AR="$AR" # Let the user override the test.
7617else
7618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619for as_dir in $PATH
7620do
7621  IFS=$as_save_IFS
7622  test -z "$as_dir" && as_dir=.
7623  for ac_exec_ext in '' $ac_executable_extensions; do
7624  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625    ac_cv_prog_AR="${ac_tool_prefix}ar"
7626    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7627    break 2
7628  fi
7629done
7630done
7631
7632fi
7633fi
7634AR=$ac_cv_prog_AR
7635if test -n "$AR"; then
7636  echo "$as_me:$LINENO: result: $AR" >&5
7637echo "${ECHO_T}$AR" >&6
7638else
7639  echo "$as_me:$LINENO: result: no" >&5
7640echo "${ECHO_T}no" >&6
7641fi
7642
7643fi
7644if test -z "$ac_cv_prog_AR"; then
7645  ac_ct_AR=$AR
7646  # Extract the first word of "ar", so it can be a program name with args.
7647set dummy ar; ac_word=$2
7648echo "$as_me:$LINENO: checking for $ac_word" >&5
7649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7650if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7651  echo $ECHO_N "(cached) $ECHO_C" >&6
7652else
7653  if test -n "$ac_ct_AR"; then
7654  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7655else
7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657for as_dir in $PATH
7658do
7659  IFS=$as_save_IFS
7660  test -z "$as_dir" && as_dir=.
7661  for ac_exec_ext in '' $ac_executable_extensions; do
7662  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663    ac_cv_prog_ac_ct_AR="ar"
7664    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7665    break 2
7666  fi
7667done
7668done
7669
7670  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7671fi
7672fi
7673ac_ct_AR=$ac_cv_prog_ac_ct_AR
7674if test -n "$ac_ct_AR"; then
7675  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7676echo "${ECHO_T}$ac_ct_AR" >&6
7677else
7678  echo "$as_me:$LINENO: result: no" >&5
7679echo "${ECHO_T}no" >&6
7680fi
7681
7682  AR=$ac_ct_AR
7683else
7684  AR="$ac_cv_prog_AR"
7685fi
7686
7687if test -n "$ac_tool_prefix"; then
7688  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7689set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7690echo "$as_me:$LINENO: checking for $ac_word" >&5
7691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7692if test "${ac_cv_prog_RANLIB+set}" = set; then
7693  echo $ECHO_N "(cached) $ECHO_C" >&6
7694else
7695  if test -n "$RANLIB"; then
7696  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7697else
7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701  IFS=$as_save_IFS
7702  test -z "$as_dir" && as_dir=.
7703  for ac_exec_ext in '' $ac_executable_extensions; do
7704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7705    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7707    break 2
7708  fi
7709done
7710done
7711
7712fi
7713fi
7714RANLIB=$ac_cv_prog_RANLIB
7715if test -n "$RANLIB"; then
7716  echo "$as_me:$LINENO: result: $RANLIB" >&5
7717echo "${ECHO_T}$RANLIB" >&6
7718else
7719  echo "$as_me:$LINENO: result: no" >&5
7720echo "${ECHO_T}no" >&6
7721fi
7722
7723fi
7724if test -z "$ac_cv_prog_RANLIB"; then
7725  ac_ct_RANLIB=$RANLIB
7726  # Extract the first word of "ranlib", so it can be a program name with args.
7727set dummy ranlib; ac_word=$2
7728echo "$as_me:$LINENO: checking for $ac_word" >&5
7729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7730if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7731  echo $ECHO_N "(cached) $ECHO_C" >&6
7732else
7733  if test -n "$ac_ct_RANLIB"; then
7734  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7735else
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739  IFS=$as_save_IFS
7740  test -z "$as_dir" && as_dir=.
7741  for ac_exec_ext in '' $ac_executable_extensions; do
7742  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743    ac_cv_prog_ac_ct_RANLIB="ranlib"
7744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7745    break 2
7746  fi
7747done
7748done
7749
7750  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7751fi
7752fi
7753ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7754if test -n "$ac_ct_RANLIB"; then
7755  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7756echo "${ECHO_T}$ac_ct_RANLIB" >&6
7757else
7758  echo "$as_me:$LINENO: result: no" >&5
7759echo "${ECHO_T}no" >&6
7760fi
7761
7762  RANLIB=$ac_ct_RANLIB
7763else
7764  RANLIB="$ac_cv_prog_RANLIB"
7765fi
7766
7767if test -n "$ac_tool_prefix"; then
7768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7769set dummy ${ac_tool_prefix}strip; ac_word=$2
7770echo "$as_me:$LINENO: checking for $ac_word" >&5
7771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7772if test "${ac_cv_prog_STRIP+set}" = set; then
7773  echo $ECHO_N "(cached) $ECHO_C" >&6
7774else
7775  if test -n "$STRIP"; then
7776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7777else
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781  IFS=$as_save_IFS
7782  test -z "$as_dir" && as_dir=.
7783  for ac_exec_ext in '' $ac_executable_extensions; do
7784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787    break 2
7788  fi
7789done
7790done
7791
7792fi
7793fi
7794STRIP=$ac_cv_prog_STRIP
7795if test -n "$STRIP"; then
7796  echo "$as_me:$LINENO: result: $STRIP" >&5
7797echo "${ECHO_T}$STRIP" >&6
7798else
7799  echo "$as_me:$LINENO: result: no" >&5
7800echo "${ECHO_T}no" >&6
7801fi
7802
7803fi
7804if test -z "$ac_cv_prog_STRIP"; then
7805  ac_ct_STRIP=$STRIP
7806  # Extract the first word of "strip", so it can be a program name with args.
7807set dummy strip; ac_word=$2
7808echo "$as_me:$LINENO: checking for $ac_word" >&5
7809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7810if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7811  echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813  if test -n "$ac_ct_STRIP"; then
7814  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7815else
7816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7817for as_dir in $PATH
7818do
7819  IFS=$as_save_IFS
7820  test -z "$as_dir" && as_dir=.
7821  for ac_exec_ext in '' $ac_executable_extensions; do
7822  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7823    ac_cv_prog_ac_ct_STRIP="strip"
7824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825    break 2
7826  fi
7827done
7828done
7829
7830  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7831fi
7832fi
7833ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7834if test -n "$ac_ct_STRIP"; then
7835  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7836echo "${ECHO_T}$ac_ct_STRIP" >&6
7837else
7838  echo "$as_me:$LINENO: result: no" >&5
7839echo "${ECHO_T}no" >&6
7840fi
7841
7842  STRIP=$ac_ct_STRIP
7843else
7844  STRIP="$ac_cv_prog_STRIP"
7845fi
7846
7847
7848old_CC="$CC"
7849old_CFLAGS="$CFLAGS"
7850
7851# Set sane defaults for various variables
7852test -z "$AR" && AR=ar
7853test -z "$AR_FLAGS" && AR_FLAGS=cru
7854test -z "$AS" && AS=as
7855test -z "$CC" && CC=cc
7856test -z "$LTCC" && LTCC=$CC
7857test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7858test -z "$DLLTOOL" && DLLTOOL=dlltool
7859test -z "$LD" && LD=ld
7860test -z "$LN_S" && LN_S="ln -s"
7861test -z "$MAGIC_CMD" && MAGIC_CMD=file
7862test -z "$NM" && NM=nm
7863test -z "$SED" && SED=sed
7864test -z "$OBJDUMP" && OBJDUMP=objdump
7865test -z "$RANLIB" && RANLIB=:
7866test -z "$STRIP" && STRIP=:
7867test -z "$ac_objext" && ac_objext=o
7868
7869# Determine commands to create old-style static archives.
7870old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7871old_postinstall_cmds='chmod 644 $oldlib'
7872old_postuninstall_cmds=
7873
7874if test -n "$RANLIB"; then
7875  case $host_os in
7876  openbsd*)
7877    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7878    ;;
7879  *)
7880    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7881    ;;
7882  esac
7883  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7884fi
7885
7886for cc_temp in $compiler""; do
7887  case $cc_temp in
7888    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7889    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7890    \-*) ;;
7891    *) break;;
7892  esac
7893done
7894cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7895
7896
7897# Only perform the check for file, if the check method requires it
7898case $deplibs_check_method in
7899file_magic*)
7900  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7901    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7902echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7903if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7904  echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906  case $MAGIC_CMD in
7907[\\/*] |  ?:[\\/]*)
7908  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7909  ;;
7910*)
7911  lt_save_MAGIC_CMD="$MAGIC_CMD"
7912  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7913  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7914  for ac_dir in $ac_dummy; do
7915    IFS="$lt_save_ifs"
7916    test -z "$ac_dir" && ac_dir=.
7917    if test -f $ac_dir/${ac_tool_prefix}file; then
7918      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7919      if test -n "$file_magic_test_file"; then
7920        case $deplibs_check_method in
7921        "file_magic "*)
7922          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7923          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7924          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7925            $EGREP "$file_magic_regex" > /dev/null; then
7926            :
7927          else
7928            cat <<EOF 1>&2
7929
7930*** Warning: the command libtool uses to detect shared libraries,
7931*** $file_magic_cmd, produces output that libtool cannot recognize.
7932*** The result is that libtool may fail to recognize shared libraries
7933*** as such.  This will affect the creation of libtool libraries that
7934*** depend on shared libraries, but programs linked with such libtool
7935*** libraries will work regardless of this problem.  Nevertheless, you
7936*** may want to report the problem to your system manager and/or to
7937*** bug-libtool@gnu.org
7938
7939EOF
7940          fi ;;
7941        esac
7942      fi
7943      break
7944    fi
7945  done
7946  IFS="$lt_save_ifs"
7947  MAGIC_CMD="$lt_save_MAGIC_CMD"
7948  ;;
7949esac
7950fi
7951
7952MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7953if test -n "$MAGIC_CMD"; then
7954  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7955echo "${ECHO_T}$MAGIC_CMD" >&6
7956else
7957  echo "$as_me:$LINENO: result: no" >&5
7958echo "${ECHO_T}no" >&6
7959fi
7960
7961if test -z "$lt_cv_path_MAGIC_CMD"; then
7962  if test -n "$ac_tool_prefix"; then
7963    echo "$as_me:$LINENO: checking for file" >&5
7964echo $ECHO_N "checking for file... $ECHO_C" >&6
7965if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7966  echo $ECHO_N "(cached) $ECHO_C" >&6
7967else
7968  case $MAGIC_CMD in
7969[\\/*] |  ?:[\\/]*)
7970  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7971  ;;
7972*)
7973  lt_save_MAGIC_CMD="$MAGIC_CMD"
7974  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7975  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7976  for ac_dir in $ac_dummy; do
7977    IFS="$lt_save_ifs"
7978    test -z "$ac_dir" && ac_dir=.
7979    if test -f $ac_dir/file; then
7980      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7981      if test -n "$file_magic_test_file"; then
7982        case $deplibs_check_method in
7983        "file_magic "*)
7984          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7985          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7986          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7987            $EGREP "$file_magic_regex" > /dev/null; then
7988            :
7989          else
7990            cat <<EOF 1>&2
7991
7992*** Warning: the command libtool uses to detect shared libraries,
7993*** $file_magic_cmd, produces output that libtool cannot recognize.
7994*** The result is that libtool may fail to recognize shared libraries
7995*** as such.  This will affect the creation of libtool libraries that
7996*** depend on shared libraries, but programs linked with such libtool
7997*** libraries will work regardless of this problem.  Nevertheless, you
7998*** may want to report the problem to your system manager and/or to
7999*** bug-libtool@gnu.org
8000
8001EOF
8002          fi ;;
8003        esac
8004      fi
8005      break
8006    fi
8007  done
8008  IFS="$lt_save_ifs"
8009  MAGIC_CMD="$lt_save_MAGIC_CMD"
8010  ;;
8011esac
8012fi
8013
8014MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015if test -n "$MAGIC_CMD"; then
8016  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8017echo "${ECHO_T}$MAGIC_CMD" >&6
8018else
8019  echo "$as_me:$LINENO: result: no" >&5
8020echo "${ECHO_T}no" >&6
8021fi
8022
8023  else
8024    MAGIC_CMD=:
8025  fi
8026fi
8027
8028  fi
8029  ;;
8030esac
8031
8032enable_dlopen=no
8033enable_win32_dll=no
8034
8035# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8036if test "${enable_libtool_lock+set}" = set; then
8037  enableval="$enable_libtool_lock"
8038
8039fi;
8040test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8041
8042
8043# Check whether --with-pic or --without-pic was given.
8044if test "${with_pic+set}" = set; then
8045  withval="$with_pic"
8046  pic_mode="$withval"
8047else
8048  pic_mode=default
8049fi;
8050test -z "$pic_mode" && pic_mode=default
8051
8052# Use C for the default configuration in the libtool script
8053tagname=
8054lt_save_CC="$CC"
8055ac_ext=c
8056ac_cpp='$CPP $CPPFLAGS'
8057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059ac_compiler_gnu=$ac_cv_c_compiler_gnu
8060
8061
8062# Source file extension for C test sources.
8063ac_ext=c
8064
8065# Object file extension for compiled C test sources.
8066objext=o
8067objext=$objext
8068
8069# Code to be used in simple compile tests
8070lt_simple_compile_test_code="int some_variable = 0;\n"
8071
8072# Code to be used in simple link tests
8073lt_simple_link_test_code='int main(){return(0);}\n'
8074
8075
8076# If no C compiler was specified, use CC.
8077LTCC=${LTCC-"$CC"}
8078
8079# If no C compiler flags were specified, use CFLAGS.
8080LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8081
8082# Allow CC to be a program name with arguments.
8083compiler=$CC
8084
8085
8086# save warnings/boilerplate of simple test code
8087ac_outfile=conftest.$ac_objext
8088printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8089eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8090_lt_compiler_boilerplate=`cat conftest.err`
8091$rm conftest*
8092
8093ac_outfile=conftest.$ac_objext
8094printf "$lt_simple_link_test_code" >conftest.$ac_ext
8095eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8096_lt_linker_boilerplate=`cat conftest.err`
8097$rm conftest*
8098
8099
8100## CAVEAT EMPTOR:
8101## There is no encapsulation within the following macros, do not change
8102## the running order or otherwise move them around unless you know exactly
8103## what you are doing...
8104
8105lt_prog_compiler_no_builtin_flag=
8106
8107if test "$GCC" = yes; then
8108  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8109
8110
8111echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8112echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8113if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8114  echo $ECHO_N "(cached) $ECHO_C" >&6
8115else
8116  lt_cv_prog_compiler_rtti_exceptions=no
8117  ac_outfile=conftest.$ac_objext
8118   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8119   lt_compiler_flag="-fno-rtti -fno-exceptions"
8120   # Insert the option either (1) after the last *FLAGS variable, or
8121   # (2) before a word containing "conftest.", or (3) at the end.
8122   # Note that $ac_compile itself does not contain backslashes and begins
8123   # with a dollar sign (not a hyphen), so the echo should work correctly.
8124   # The option is referenced via a variable to avoid confusing sed.
8125   lt_compile=`echo "$ac_compile" | $SED \
8126   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8127   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8128   -e 's:$: $lt_compiler_flag:'`
8129   (eval echo "\"\$as_me:8129: $lt_compile\"" >&5)
8130   (eval "$lt_compile" 2>conftest.err)
8131   ac_status=$?
8132   cat conftest.err >&5
8133   echo "$as_me:8133: \$? = $ac_status" >&5
8134   if (exit $ac_status) && test -s "$ac_outfile"; then
8135     # The compiler can only warn and ignore the option if not recognized
8136     # So say no if there are warnings other than the usual output.
8137     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8138     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8139     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8140       lt_cv_prog_compiler_rtti_exceptions=yes
8141     fi
8142   fi
8143   $rm conftest*
8144
8145fi
8146echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8147echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8148
8149if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8150    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8151else
8152    :
8153fi
8154
8155fi
8156
8157lt_prog_compiler_wl=
8158lt_prog_compiler_pic=
8159lt_prog_compiler_static=
8160
8161echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8162echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8163
8164  if test "$GCC" = yes; then
8165    lt_prog_compiler_wl='-Wl,'
8166    lt_prog_compiler_static='-static'
8167
8168    case $host_os in
8169      aix*)
8170      # All AIX code is PIC.
8171      if test "$host_cpu" = ia64; then
8172        # AIX 5 now supports IA64 processor
8173        lt_prog_compiler_static='-Bstatic'
8174      fi
8175      ;;
8176
8177    amigaos*)
8178      # FIXME: we need at least 68020 code to build shared libraries, but
8179      # adding the `-m68020' flag to GCC prevents building anything better,
8180      # like `-m68040'.
8181      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8182      ;;
8183
8184    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8185      # PIC is the default for these OSes.
8186      ;;
8187
8188    mingw* | pw32* | os2*)
8189      # This hack is so that the source file can tell whether it is being
8190      # built for inclusion in a dll (and should export symbols for example).
8191      lt_prog_compiler_pic='-DDLL_EXPORT'
8192      ;;
8193
8194    darwin* | rhapsody*)
8195      # PIC is the default on this platform
8196      # Common symbols not allowed in MH_DYLIB files
8197      lt_prog_compiler_pic='-fno-common'
8198      ;;
8199
8200    interix3*)
8201      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8202      # Instead, we relocate shared libraries at runtime.
8203      ;;
8204
8205    msdosdjgpp*)
8206      # Just because we use GCC doesn't mean we suddenly get shared libraries
8207      # on systems that don't support them.
8208      lt_prog_compiler_can_build_shared=no
8209      enable_shared=no
8210      ;;
8211
8212    sysv4*MP*)
8213      if test -d /usr/nec; then
8214        lt_prog_compiler_pic=-Kconform_pic
8215      fi
8216      ;;
8217
8218    hpux*)
8219      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8220      # not for PA HP-UX.
8221      case $host_cpu in
8222      hppa*64*|ia64*)
8223        # +Z the default
8224        ;;
8225      *)
8226        lt_prog_compiler_pic='-fPIC'
8227        ;;
8228      esac
8229      ;;
8230
8231    *)
8232      lt_prog_compiler_pic='-fPIC'
8233      ;;
8234    esac
8235  else
8236    # PORTME Check for flag to pass linker flags through the system compiler.
8237    case $host_os in
8238    aix*)
8239      lt_prog_compiler_wl='-Wl,'
8240      if test "$host_cpu" = ia64; then
8241        # AIX 5 now supports IA64 processor
8242        lt_prog_compiler_static='-Bstatic'
8243      else
8244        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8245      fi
8246      ;;
8247      darwin*)
8248        # PIC is the default on this platform
8249        # Common symbols not allowed in MH_DYLIB files
8250       case $cc_basename in
8251         xlc*)
8252         lt_prog_compiler_pic='-qnocommon'
8253         lt_prog_compiler_wl='-Wl,'
8254         ;;
8255       esac
8256       ;;
8257
8258    mingw* | pw32* | os2*)
8259      # This hack is so that the source file can tell whether it is being
8260      # built for inclusion in a dll (and should export symbols for example).
8261      lt_prog_compiler_pic='-DDLL_EXPORT'
8262      ;;
8263
8264    hpux9* | hpux10* | hpux11*)
8265      lt_prog_compiler_wl='-Wl,'
8266      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8267      # not for PA HP-UX.
8268      case $host_cpu in
8269      hppa*64*|ia64*)
8270        # +Z the default
8271        ;;
8272      *)
8273        lt_prog_compiler_pic='+Z'
8274        ;;
8275      esac
8276      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8277      lt_prog_compiler_static='${wl}-a ${wl}archive'
8278      ;;
8279
8280    irix5* | irix6* | nonstopux*)
8281      lt_prog_compiler_wl='-Wl,'
8282      # PIC (with -KPIC) is the default.
8283      lt_prog_compiler_static='-non_shared'
8284      ;;
8285
8286    newsos6)
8287      lt_prog_compiler_pic='-KPIC'
8288      lt_prog_compiler_static='-Bstatic'
8289      ;;
8290
8291    linux*)
8292      case $cc_basename in
8293      icc* | ecc*)
8294        lt_prog_compiler_wl='-Wl,'
8295        lt_prog_compiler_pic='-KPIC'
8296        lt_prog_compiler_static='-static'
8297        ;;
8298      pgcc* | pgf77* | pgf90* | pgf95*)
8299        # Portland Group compilers (*not* the Pentium gcc compiler,
8300        # which looks to be a dead project)
8301        lt_prog_compiler_wl='-Wl,'
8302        lt_prog_compiler_pic='-fpic'
8303        lt_prog_compiler_static='-Bstatic'
8304        ;;
8305      ccc*)
8306        lt_prog_compiler_wl='-Wl,'
8307        # All Alpha code is PIC.
8308        lt_prog_compiler_static='-non_shared'
8309        ;;
8310      esac
8311      ;;
8312
8313    osf3* | osf4* | osf5*)
8314      lt_prog_compiler_wl='-Wl,'
8315      # All OSF/1 code is PIC.
8316      lt_prog_compiler_static='-non_shared'
8317      ;;
8318
8319    solaris*)
8320      lt_prog_compiler_pic='-KPIC'
8321      lt_prog_compiler_static='-Bstatic'
8322      case $cc_basename in
8323      f77* | f90* | f95*)
8324        lt_prog_compiler_wl='-Qoption ld ';;
8325      *)
8326        lt_prog_compiler_wl='-Wl,';;
8327      esac
8328      ;;
8329
8330    sunos4*)
8331      lt_prog_compiler_wl='-Qoption ld '
8332      lt_prog_compiler_pic='-PIC'
8333      lt_prog_compiler_static='-Bstatic'
8334      ;;
8335
8336    sysv4 | sysv4.2uw2* | sysv4.3*)
8337      lt_prog_compiler_wl='-Wl,'
8338      lt_prog_compiler_pic='-KPIC'
8339      lt_prog_compiler_static='-Bstatic'
8340      ;;
8341
8342    sysv4*MP*)
8343      if test -d /usr/nec ;then
8344        lt_prog_compiler_pic='-Kconform_pic'
8345        lt_prog_compiler_static='-Bstatic'
8346      fi
8347      ;;
8348
8349    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8350      lt_prog_compiler_wl='-Wl,'
8351      lt_prog_compiler_pic='-KPIC'
8352      lt_prog_compiler_static='-Bstatic'
8353      ;;
8354
8355    unicos*)
8356      lt_prog_compiler_wl='-Wl,'
8357      lt_prog_compiler_can_build_shared=no
8358      ;;
8359
8360    uts4*)
8361      lt_prog_compiler_pic='-pic'
8362      lt_prog_compiler_static='-Bstatic'
8363      ;;
8364
8365    *)
8366      lt_prog_compiler_can_build_shared=no
8367      ;;
8368    esac
8369  fi
8370
8371echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8372echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8373
8374#
8375# Check to make sure the PIC flag actually works.
8376#
8377if test -n "$lt_prog_compiler_pic"; then
8378
8379echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8380echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8381if test "${lt_prog_compiler_pic_works+set}" = set; then
8382  echo $ECHO_N "(cached) $ECHO_C" >&6
8383else
8384  lt_prog_compiler_pic_works=no
8385  ac_outfile=conftest.$ac_objext
8386   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8387   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8388   # Insert the option either (1) after the last *FLAGS variable, or
8389   # (2) before a word containing "conftest.", or (3) at the end.
8390   # Note that $ac_compile itself does not contain backslashes and begins
8391   # with a dollar sign (not a hyphen), so the echo should work correctly.
8392   # The option is referenced via a variable to avoid confusing sed.
8393   lt_compile=`echo "$ac_compile" | $SED \
8394   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8395   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8396   -e 's:$: $lt_compiler_flag:'`
8397   (eval echo "\"\$as_me:8397: $lt_compile\"" >&5)
8398   (eval "$lt_compile" 2>conftest.err)
8399   ac_status=$?
8400   cat conftest.err >&5
8401   echo "$as_me:8401: \$? = $ac_status" >&5
8402   if (exit $ac_status) && test -s "$ac_outfile"; then
8403     # The compiler can only warn and ignore the option if not recognized
8404     # So say no if there are warnings other than the usual output.
8405     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8406     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8407     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8408       lt_prog_compiler_pic_works=yes
8409     fi
8410   fi
8411   $rm conftest*
8412
8413fi
8414echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8415echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8416
8417if test x"$lt_prog_compiler_pic_works" = xyes; then
8418    case $lt_prog_compiler_pic in
8419     "" | " "*) ;;
8420     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8421     esac
8422else
8423    lt_prog_compiler_pic=
8424     lt_prog_compiler_can_build_shared=no
8425fi
8426
8427fi
8428case $host_os in
8429  # For platforms which do not support PIC, -DPIC is meaningless:
8430  *djgpp*)
8431    lt_prog_compiler_pic=
8432    ;;
8433  *)
8434    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8435    ;;
8436esac
8437
8438#
8439# Check to make sure the static flag actually works.
8440#
8441wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8442echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8443echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8444if test "${lt_prog_compiler_static_works+set}" = set; then
8445  echo $ECHO_N "(cached) $ECHO_C" >&6
8446else
8447  lt_prog_compiler_static_works=no
8448   save_LDFLAGS="$LDFLAGS"
8449   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8450   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8451   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8452     # The linker can only warn and ignore the option if not recognized
8453     # So say no if there are warnings
8454     if test -s conftest.err; then
8455       # Append any errors to the config.log.
8456       cat conftest.err 1>&5
8457       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8458       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8459       if diff conftest.exp conftest.er2 >/dev/null; then
8460         lt_prog_compiler_static_works=yes
8461       fi
8462     else
8463       lt_prog_compiler_static_works=yes
8464     fi
8465   fi
8466   $rm conftest*
8467   LDFLAGS="$save_LDFLAGS"
8468
8469fi
8470echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8471echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8472
8473if test x"$lt_prog_compiler_static_works" = xyes; then
8474    :
8475else
8476    lt_prog_compiler_static=
8477fi
8478
8479
8480echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8481echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8482if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8483  echo $ECHO_N "(cached) $ECHO_C" >&6
8484else
8485  lt_cv_prog_compiler_c_o=no
8486   $rm -r conftest 2>/dev/null
8487   mkdir conftest
8488   cd conftest
8489   mkdir out
8490   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8491
8492   lt_compiler_flag="-o out/conftest2.$ac_objext"
8493   # Insert the option either (1) after the last *FLAGS variable, or
8494   # (2) before a word containing "conftest.", or (3) at the end.
8495   # Note that $ac_compile itself does not contain backslashes and begins
8496   # with a dollar sign (not a hyphen), so the echo should work correctly.
8497   lt_compile=`echo "$ac_compile" | $SED \
8498   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8499   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8500   -e 's:$: $lt_compiler_flag:'`
8501   (eval echo "\"\$as_me:8501: $lt_compile\"" >&5)
8502   (eval "$lt_compile" 2>out/conftest.err)
8503   ac_status=$?
8504   cat out/conftest.err >&5
8505   echo "$as_me:8505: \$? = $ac_status" >&5
8506   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8507   then
8508     # The compiler can only warn and ignore the option if not recognized
8509     # So say no if there are warnings
8510     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8511     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8512     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8513       lt_cv_prog_compiler_c_o=yes
8514     fi
8515   fi
8516   chmod u+w . 2>&5
8517   $rm conftest*
8518   # SGI C++ compiler will create directory out/ii_files/ for
8519   # template instantiation
8520   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8521   $rm out/* && rmdir out
8522   cd ..
8523   rmdir conftest
8524   $rm conftest*
8525
8526fi
8527echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8528echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8529
8530
8531hard_links="nottested"
8532if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8533  # do not overwrite the value of need_locks provided by the user
8534  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8535echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8536  hard_links=yes
8537  $rm conftest*
8538  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8539  touch conftest.a
8540  ln conftest.a conftest.b 2>&5 || hard_links=no
8541  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8542  echo "$as_me:$LINENO: result: $hard_links" >&5
8543echo "${ECHO_T}$hard_links" >&6
8544  if test "$hard_links" = no; then
8545    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8546echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8547    need_locks=warn
8548  fi
8549else
8550  need_locks=no
8551fi
8552
8553echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8554echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8555
8556  runpath_var=
8557  allow_undefined_flag=
8558  enable_shared_with_static_runtimes=no
8559  archive_cmds=
8560  archive_expsym_cmds=
8561  old_archive_From_new_cmds=
8562  old_archive_from_expsyms_cmds=
8563  export_dynamic_flag_spec=
8564  whole_archive_flag_spec=
8565  thread_safe_flag_spec=
8566  hardcode_libdir_flag_spec=
8567  hardcode_libdir_flag_spec_ld=
8568  hardcode_libdir_separator=
8569  hardcode_direct=no
8570  hardcode_minus_L=no
8571  hardcode_shlibpath_var=unsupported
8572  link_all_deplibs=unknown
8573  hardcode_automatic=no
8574  module_cmds=
8575  module_expsym_cmds=
8576  always_export_symbols=no
8577  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8578  # include_expsyms should be a list of space-separated symbols to be *always*
8579  # included in the symbol list
8580  include_expsyms=
8581  # exclude_expsyms can be an extended regexp of symbols to exclude
8582  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8583  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8584  # as well as any symbol that contains `d'.
8585  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8586  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8587  # platforms (ab)use it in PIC code, but their linkers get confused if
8588  # the symbol is explicitly referenced.  Since portable code cannot
8589  # rely on this symbol name, it's probably fine to never include it in
8590  # preloaded symbol tables.
8591  extract_expsyms_cmds=
8592  # Just being paranoid about ensuring that cc_basename is set.
8593  for cc_temp in $compiler""; do
8594  case $cc_temp in
8595    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8596    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8597    \-*) ;;
8598    *) break;;
8599  esac
8600done
8601cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8602
8603  case $host_os in
8604  cygwin* | mingw* | pw32*)
8605    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8606    # When not using gcc, we currently assume that we are using
8607    # Microsoft Visual C++.
8608    if test "$GCC" != yes; then
8609      with_gnu_ld=no
8610    fi
8611    ;;
8612  interix*)
8613    # we just hope/assume this is gcc and not c89 (= MSVC++)
8614    with_gnu_ld=yes
8615    ;;
8616  openbsd*)
8617    with_gnu_ld=no
8618    ;;
8619  esac
8620
8621  ld_shlibs=yes
8622  if test "$with_gnu_ld" = yes; then
8623    # If archive_cmds runs LD, not CC, wlarc should be empty
8624    wlarc='${wl}'
8625
8626    # Set some defaults for GNU ld with shared library support. These
8627    # are reset later if shared libraries are not supported. Putting them
8628    # here allows them to be overridden if necessary.
8629    runpath_var=LD_RUN_PATH
8630    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8631    export_dynamic_flag_spec='${wl}--export-dynamic'
8632    # ancient GNU ld didn't support --whole-archive et. al.
8633    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8634        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8635      else
8636        whole_archive_flag_spec=
8637    fi
8638    supports_anon_versioning=no
8639    case `$LD -v 2>/dev/null` in
8640      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8641      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8642      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8643      *\ 2.11.*) ;; # other 2.11 versions
8644      *) supports_anon_versioning=yes ;;
8645    esac
8646
8647    # See if GNU ld supports shared libraries.
8648    case $host_os in
8649    aix3* | aix4* | aix5*)
8650      # On AIX/PPC, the GNU linker is very broken
8651      if test "$host_cpu" != ia64; then
8652        ld_shlibs=no
8653        cat <<EOF 1>&2
8654
8655*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8656*** to be unable to reliably create shared libraries on AIX.
8657*** Therefore, libtool is disabling shared libraries support.  If you
8658*** really care for shared libraries, you may want to modify your PATH
8659*** so that a non-GNU linker is found, and then restart.
8660
8661EOF
8662      fi
8663      ;;
8664
8665    amigaos*)
8666      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)'
8667      hardcode_libdir_flag_spec='-L$libdir'
8668      hardcode_minus_L=yes
8669
8670      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8671      # that the semantics of dynamic libraries on AmigaOS, at least up
8672      # to version 4, is to share data among multiple programs linked
8673      # with the same dynamic library.  Since this doesn't match the
8674      # behavior of shared libraries on other platforms, we can't use
8675      # them.
8676      ld_shlibs=no
8677      ;;
8678
8679    beos*)
8680      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8681        allow_undefined_flag=unsupported
8682        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8683        # support --undefined.  This deserves some investigation.  FIXME
8684        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8685      else
8686        ld_shlibs=no
8687      fi
8688      ;;
8689
8690    cygwin* | mingw* | pw32*)
8691      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8692      # as there is no search path for DLLs.
8693      hardcode_libdir_flag_spec='-L$libdir'
8694      allow_undefined_flag=unsupported
8695      always_export_symbols=no
8696      enable_shared_with_static_runtimes=yes
8697      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8698
8699      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8700        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8701        # If the export-symbols file already is a .def file (1st line
8702        # is EXPORTS), use it as is; otherwise, prepend...
8703        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8704          cp $export_symbols $output_objdir/$soname.def;
8705        else
8706          echo EXPORTS > $output_objdir/$soname.def;
8707          cat $export_symbols >> $output_objdir/$soname.def;
8708        fi~
8709        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8710      else
8711        ld_shlibs=no
8712      fi
8713      ;;
8714
8715    interix3*)
8716      hardcode_direct=no
8717      hardcode_shlibpath_var=no
8718      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8719      export_dynamic_flag_spec='${wl}-E'
8720      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8721      # Instead, shared libraries are loaded at an image base (0x10000000 by
8722      # default) and relocated if they conflict, which is a slow very memory
8723      # consuming and fragmenting process.  To avoid this, we pick a random,
8724      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8725      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8726      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8727      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'
8728      ;;
8729
8730    linux*)
8731      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8732        tmp_addflag=
8733        case $cc_basename,$host_cpu in
8734        pgcc*)                          # Portland Group C compiler
8735          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'
8736          tmp_addflag=' $pic_flag'
8737          ;;
8738        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8739          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'
8740          tmp_addflag=' $pic_flag -Mnomain' ;;
8741        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8742          tmp_addflag=' -i_dynamic' ;;
8743        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8744          tmp_addflag=' -i_dynamic -nofor_main' ;;
8745        ifc* | ifort*)                  # Intel Fortran compiler
8746          tmp_addflag=' -nofor_main' ;;
8747        esac
8748        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749
8750        if test $supports_anon_versioning = yes; then
8751          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8752  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8753  $echo "local: *; };" >> $output_objdir/$libname.ver~
8754          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8755        fi
8756      else
8757        ld_shlibs=no
8758      fi
8759      ;;
8760
8761    netbsd*)
8762      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8763        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8764        wlarc=
8765      else
8766        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8767        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8768      fi
8769      ;;
8770
8771    solaris*)
8772      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8773        ld_shlibs=no
8774        cat <<EOF 1>&2
8775
8776*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8777*** create shared libraries on Solaris systems.  Therefore, libtool
8778*** is disabling shared libraries support.  We urge you to upgrade GNU
8779*** binutils to release 2.9.1 or newer.  Another option is to modify
8780*** your PATH or compiler configuration so that the native linker is
8781*** used, and then restart.
8782
8783EOF
8784      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8785        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8786        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8787      else
8788        ld_shlibs=no
8789      fi
8790      ;;
8791
8792    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8793      case `$LD -v 2>&1` in
8794        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8795        ld_shlibs=no
8796        cat <<_LT_EOF 1>&2
8797
8798*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8799*** reliably create shared libraries on SCO systems.  Therefore, libtool
8800*** is disabling shared libraries support.  We urge you to upgrade GNU
8801*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8802*** your PATH or compiler configuration so that the native linker is
8803*** used, and then restart.
8804
8805_LT_EOF
8806        ;;
8807        *)
8808          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8809            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8810            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8811            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8812          else
8813            ld_shlibs=no
8814          fi
8815        ;;
8816      esac
8817      ;;
8818
8819    sunos4*)
8820      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8821      wlarc=
8822      hardcode_direct=yes
8823      hardcode_shlibpath_var=no
8824      ;;
8825
8826    *)
8827      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8828        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8830      else
8831        ld_shlibs=no
8832      fi
8833      ;;
8834    esac
8835
8836    if test "$ld_shlibs" = no; then
8837      runpath_var=
8838      hardcode_libdir_flag_spec=
8839      export_dynamic_flag_spec=
8840      whole_archive_flag_spec=
8841    fi
8842  else
8843    # PORTME fill in a description of your system's linker (not GNU ld)
8844    case $host_os in
8845    aix3*)
8846      allow_undefined_flag=unsupported
8847      always_export_symbols=yes
8848      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'
8849      # Note: this linker hardcodes the directories in LIBPATH if there
8850      # are no directories specified by -L.
8851      hardcode_minus_L=yes
8852      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8853        # Neither direct hardcoding nor static linking is supported with a
8854        # broken collect2.
8855        hardcode_direct=unsupported
8856      fi
8857      ;;
8858
8859    aix4* | aix5*)
8860      if test "$host_cpu" = ia64; then
8861        # On IA64, the linker does run time linking by default, so we don't
8862        # have to do anything special.
8863        aix_use_runtimelinking=no
8864        exp_sym_flag='-Bexport'
8865        no_entry_flag=""
8866      else
8867        # If we're using GNU nm, then we don't want the "-C" option.
8868        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8869        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8870          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'
8871        else
8872          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'
8873        fi
8874        aix_use_runtimelinking=no
8875
8876        # Test if we are trying to use run time linking or normal
8877        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8878        # need to do runtime linking.
8879        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8880          for ld_flag in $LDFLAGS; do
8881          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8882            aix_use_runtimelinking=yes
8883            break
8884          fi
8885          done
8886          ;;
8887        esac
8888
8889        exp_sym_flag='-bexport'
8890        no_entry_flag='-bnoentry'
8891      fi
8892
8893      # When large executables or shared objects are built, AIX ld can
8894      # have problems creating the table of contents.  If linking a library
8895      # or program results in "error TOC overflow" add -mminimal-toc to
8896      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8897      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8898
8899      archive_cmds=''
8900      hardcode_direct=yes
8901      hardcode_libdir_separator=':'
8902      link_all_deplibs=yes
8903
8904      if test "$GCC" = yes; then
8905        case $host_os in aix4.[012]|aix4.[012].*)
8906        # We only want to do this on AIX 4.2 and lower, the check
8907        # below for broken collect2 doesn't work under 4.3+
8908          collect2name=`${CC} -print-prog-name=collect2`
8909          if test -f "$collect2name" && \
8910           strings "$collect2name" | grep resolve_lib_name >/dev/null
8911          then
8912          # We have reworked collect2
8913          hardcode_direct=yes
8914          else
8915          # We have old collect2
8916          hardcode_direct=unsupported
8917          # It fails to find uninstalled libraries when the uninstalled
8918          # path is not listed in the libpath.  Setting hardcode_minus_L
8919          # to unsupported forces relinking
8920          hardcode_minus_L=yes
8921          hardcode_libdir_flag_spec='-L$libdir'
8922          hardcode_libdir_separator=
8923          fi
8924          ;;
8925        esac
8926        shared_flag='-shared'
8927        if test "$aix_use_runtimelinking" = yes; then
8928          shared_flag="$shared_flag "'${wl}-G'
8929        fi
8930      else
8931        # not using gcc
8932        if test "$host_cpu" = ia64; then
8933        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8934        # chokes on -Wl,-G. The following line is correct:
8935          shared_flag='-G'
8936        else
8937          if test "$aix_use_runtimelinking" = yes; then
8938            shared_flag='${wl}-G'
8939          else
8940            shared_flag='${wl}-bM:SRE'
8941          fi
8942        fi
8943      fi
8944
8945      # It seems that -bexpall does not export symbols beginning with
8946      # underscore (_), so it is better to generate a list of symbols to export.
8947      always_export_symbols=yes
8948      if test "$aix_use_runtimelinking" = yes; then
8949        # Warning - without using the other runtime loading flags (-brtl),
8950        # -berok will link without error, but may produce a broken library.
8951        allow_undefined_flag='-berok'
8952       # Determine the default libpath from the value encoded in an empty executable.
8953       cat >conftest.$ac_ext <<_ACEOF
8954/* confdefs.h.  */
8955_ACEOF
8956cat confdefs.h >>conftest.$ac_ext
8957cat >>conftest.$ac_ext <<_ACEOF
8958/* end confdefs.h.  */
8959
8960int
8961main ()
8962{
8963
8964  ;
8965  return 0;
8966}
8967_ACEOF
8968rm -f conftest.$ac_objext conftest$ac_exeext
8969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8970  (eval $ac_link) 2>conftest.er1
8971  ac_status=$?
8972  grep -v '^ *+' conftest.er1 >conftest.err
8973  rm -f conftest.er1
8974  cat conftest.err >&5
8975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976  (exit $ac_status); } &&
8977         { ac_try='test -z "$ac_c_werror_flag"
8978                         || test ! -s conftest.err'
8979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980  (eval $ac_try) 2>&5
8981  ac_status=$?
8982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983  (exit $ac_status); }; } &&
8984         { ac_try='test -s conftest$ac_exeext'
8985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986  (eval $ac_try) 2>&5
8987  ac_status=$?
8988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989  (exit $ac_status); }; }; then
8990
8991aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8992}'`
8993# Check for a 64-bit object if we didn't find anything.
8994if 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; }
8995}'`; fi
8996else
8997  echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
8999
9000fi
9001rm -f conftest.err conftest.$ac_objext \
9002      conftest$ac_exeext conftest.$ac_ext
9003if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9004
9005       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9006        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"
9007       else
9008        if test "$host_cpu" = ia64; then
9009          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9010          allow_undefined_flag="-z nodefs"
9011          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"
9012        else
9013         # Determine the default libpath from the value encoded in an empty executable.
9014         cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h.  */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
9018cat >>conftest.$ac_ext <<_ACEOF
9019/* end confdefs.h.  */
9020
9021int
9022main ()
9023{
9024
9025  ;
9026  return 0;
9027}
9028_ACEOF
9029rm -f conftest.$ac_objext conftest$ac_exeext
9030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9031  (eval $ac_link) 2>conftest.er1
9032  ac_status=$?
9033  grep -v '^ *+' conftest.er1 >conftest.err
9034  rm -f conftest.er1
9035  cat conftest.err >&5
9036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037  (exit $ac_status); } &&
9038         { ac_try='test -z "$ac_c_werror_flag"
9039                         || test ! -s conftest.err'
9040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041  (eval $ac_try) 2>&5
9042  ac_status=$?
9043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044  (exit $ac_status); }; } &&
9045         { ac_try='test -s conftest$ac_exeext'
9046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047  (eval $ac_try) 2>&5
9048  ac_status=$?
9049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050  (exit $ac_status); }; }; then
9051
9052aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9053}'`
9054# Check for a 64-bit object if we didn't find anything.
9055if 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; }
9056}'`; fi
9057else
9058  echo "$as_me: failed program was:" >&5
9059sed 's/^/| /' conftest.$ac_ext >&5
9060
9061fi
9062rm -f conftest.err conftest.$ac_objext \
9063      conftest$ac_exeext conftest.$ac_ext
9064if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9065
9066         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9067          # Warning - without using the other run time loading flags,
9068          # -berok will link without error, but may produce a broken library.
9069          no_undefined_flag=' ${wl}-bernotok'
9070          allow_undefined_flag=' ${wl}-berok'
9071          # Exported symbols can be pulled into shared objects from archives
9072          whole_archive_flag_spec='$convenience'
9073          archive_cmds_need_lc=yes
9074          # This is similar to how AIX traditionally builds its shared libraries.
9075          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'
9076        fi
9077      fi
9078      ;;
9079
9080    amigaos*)
9081      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)'
9082      hardcode_libdir_flag_spec='-L$libdir'
9083      hardcode_minus_L=yes
9084      # see comment about different semantics on the GNU ld section
9085      ld_shlibs=no
9086      ;;
9087
9088    bsdi[45]*)
9089      export_dynamic_flag_spec=-rdynamic
9090      ;;
9091
9092    cygwin* | mingw* | pw32*)
9093      # When not using gcc, we currently assume that we are using
9094      # Microsoft Visual C++.
9095      # hardcode_libdir_flag_spec is actually meaningless, as there is
9096      # no search path for DLLs.
9097      hardcode_libdir_flag_spec=' '
9098      allow_undefined_flag=unsupported
9099      # Tell ltmain to make .lib files, not .a files.
9100      libext=lib
9101      # Tell ltmain to make .dll files, not .so files.
9102      shrext_cmds=".dll"
9103      # FIXME: Setting linknames here is a bad hack.
9104      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9105      # The linker will automatically build a .lib file if we build a DLL.
9106      old_archive_From_new_cmds='true'
9107      # FIXME: Should let the user specify the lib program.
9108      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9109      fix_srcfile_path='`cygpath -w "$srcfile"`'
9110      enable_shared_with_static_runtimes=yes
9111      ;;
9112
9113    darwin* | rhapsody*)
9114      case $host_os in
9115        rhapsody* | darwin1.[012])
9116         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9117         ;;
9118       *) # Darwin 1.3 on
9119         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9120           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9121         else
9122           case ${MACOSX_DEPLOYMENT_TARGET} in
9123             10.[012])
9124               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9125               ;;
9126             10.*)
9127               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9128               ;;
9129           esac
9130         fi
9131         ;;
9132      esac
9133      archive_cmds_need_lc=no
9134      hardcode_direct=no
9135      hardcode_automatic=yes
9136      hardcode_shlibpath_var=unsupported
9137      whole_archive_flag_spec=''
9138      link_all_deplibs=yes
9139    if test "$GCC" = yes ; then
9140        output_verbose_link_cmd='echo'
9141        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9142      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9143      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9144      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}'
9145      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}'
9146    else
9147      case $cc_basename in
9148        xlc*)
9149         output_verbose_link_cmd='echo'
9150         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9151         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9152          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9153         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}'
9154          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}'
9155          ;;
9156       *)
9157         ld_shlibs=no
9158          ;;
9159      esac
9160    fi
9161      ;;
9162
9163    dgux*)
9164      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9165      hardcode_libdir_flag_spec='-L$libdir'
9166      hardcode_shlibpath_var=no
9167      ;;
9168
9169    freebsd1*)
9170      ld_shlibs=no
9171      ;;
9172
9173    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9174    # support.  Future versions do this automatically, but an explicit c++rt0.o
9175    # does not break anything, and helps significantly (at the cost of a little
9176    # extra space).
9177    freebsd2.2*)
9178      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9179      hardcode_libdir_flag_spec='-R$libdir'
9180      hardcode_direct=yes
9181      hardcode_shlibpath_var=no
9182      ;;
9183
9184    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9185    freebsd2*)
9186      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9187      hardcode_direct=yes
9188      hardcode_minus_L=yes
9189      hardcode_shlibpath_var=no
9190      ;;
9191
9192    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9193    freebsd* | kfreebsd*-gnu | dragonfly*)
9194      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9195      hardcode_libdir_flag_spec='-R$libdir'
9196      hardcode_direct=yes
9197      hardcode_shlibpath_var=no
9198      ;;
9199
9200    hpux9*)
9201      if test "$GCC" = yes; then
9202        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'
9203      else
9204        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'
9205      fi
9206      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9207      hardcode_libdir_separator=:
9208      hardcode_direct=yes
9209
9210      # hardcode_minus_L: Not really in the search PATH,
9211      # but as the default location of the library.
9212      hardcode_minus_L=yes
9213      export_dynamic_flag_spec='${wl}-E'
9214      ;;
9215
9216    hpux10*)
9217      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9218        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9219      else
9220        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9221      fi
9222      if test "$with_gnu_ld" = no; then
9223        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9224        hardcode_libdir_separator=:
9225
9226        hardcode_direct=yes
9227        export_dynamic_flag_spec='${wl}-E'
9228
9229        # hardcode_minus_L: Not really in the search PATH,
9230        # but as the default location of the library.
9231        hardcode_minus_L=yes
9232      fi
9233      ;;
9234
9235    hpux11*)
9236      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9237        case $host_cpu in
9238        hppa*64*)
9239          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9240          ;;
9241        ia64*)
9242          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9243          ;;
9244        *)
9245          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9246          ;;
9247        esac
9248      else
9249        case $host_cpu in
9250        hppa*64*)
9251          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9252          ;;
9253        ia64*)
9254          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9255          ;;
9256        *)
9257          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9258          ;;
9259        esac
9260      fi
9261      if test "$with_gnu_ld" = no; then
9262        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9263        hardcode_libdir_separator=:
9264
9265        case $host_cpu in
9266        hppa*64*|ia64*)
9267          hardcode_libdir_flag_spec_ld='+b $libdir'
9268          hardcode_direct=no
9269          hardcode_shlibpath_var=no
9270          ;;
9271        *)
9272          hardcode_direct=yes
9273          export_dynamic_flag_spec='${wl}-E'
9274
9275          # hardcode_minus_L: Not really in the search PATH,
9276          # but as the default location of the library.
9277          hardcode_minus_L=yes
9278          ;;
9279        esac
9280      fi
9281      ;;
9282
9283    irix5* | irix6* | nonstopux*)
9284      if test "$GCC" = yes; then
9285        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'
9286      else
9287        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'
9288        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9289      fi
9290      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291      hardcode_libdir_separator=:
9292      link_all_deplibs=yes
9293      ;;
9294
9295    netbsd*)
9296      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9297        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9298      else
9299        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9300      fi
9301      hardcode_libdir_flag_spec='-R$libdir'
9302      hardcode_direct=yes
9303      hardcode_shlibpath_var=no
9304      ;;
9305
9306    newsos6)
9307      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9308      hardcode_direct=yes
9309      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9310      hardcode_libdir_separator=:
9311      hardcode_shlibpath_var=no
9312      ;;
9313
9314    openbsd*)
9315      hardcode_direct=yes
9316      hardcode_shlibpath_var=no
9317      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9318        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9319        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9320        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9321        export_dynamic_flag_spec='${wl}-E'
9322      else
9323       case $host_os in
9324         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9325           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9326           hardcode_libdir_flag_spec='-R$libdir'
9327           ;;
9328         *)
9329           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9330           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9331           ;;
9332       esac
9333      fi
9334      ;;
9335
9336    os2*)
9337      hardcode_libdir_flag_spec='-L$libdir'
9338      hardcode_minus_L=yes
9339      allow_undefined_flag=unsupported
9340      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'
9341      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9342      ;;
9343
9344    osf3*)
9345      if test "$GCC" = yes; then
9346        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9347        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'
9348      else
9349        allow_undefined_flag=' -expect_unresolved \*'
9350        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'
9351      fi
9352      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353      hardcode_libdir_separator=:
9354      ;;
9355
9356    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9357      if test "$GCC" = yes; then
9358        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9359        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'
9360        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9361      else
9362        allow_undefined_flag=' -expect_unresolved \*'
9363        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'
9364        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9365        $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'
9366
9367        # Both c and cxx compiler support -rpath directly
9368        hardcode_libdir_flag_spec='-rpath $libdir'
9369      fi
9370      hardcode_libdir_separator=:
9371      ;;
9372
9373    solaris*)
9374      no_undefined_flag=' -z text'
9375      if test "$GCC" = yes; then
9376        wlarc='${wl}'
9377        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9378        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9379          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9380      else
9381        wlarc=''
9382        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9384        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9385      fi
9386      hardcode_libdir_flag_spec='-R$libdir'
9387      hardcode_shlibpath_var=no
9388      case $host_os in
9389      solaris2.[0-5] | solaris2.[0-5].*) ;;
9390      *)
9391        # The compiler driver will combine linker options so we
9392        # cannot just pass the convience library names through
9393        # without $wl, iff we do not link with $LD.
9394        # Luckily, gcc supports the same syntax we need for Sun Studio.
9395        # Supported since Solaris 2.6 (maybe 2.5.1?)
9396        case $wlarc in
9397        '')
9398          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9399        *)
9400          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' ;;
9401        esac ;;
9402      esac
9403      link_all_deplibs=yes
9404      ;;
9405
9406    sunos4*)
9407      if test "x$host_vendor" = xsequent; then
9408        # Use $CC to link under sequent, because it throws in some extra .o
9409        # files that make .init and .fini sections work.
9410        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9411      else
9412        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9413      fi
9414      hardcode_libdir_flag_spec='-L$libdir'
9415      hardcode_direct=yes
9416      hardcode_minus_L=yes
9417      hardcode_shlibpath_var=no
9418      ;;
9419
9420    sysv4)
9421      case $host_vendor in
9422        sni)
9423          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424          hardcode_direct=yes # is this really true???
9425        ;;
9426        siemens)
9427          ## LD is ld it makes a PLAMLIB
9428          ## CC just makes a GrossModule.
9429          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9430          reload_cmds='$CC -r -o $output$reload_objs'
9431          hardcode_direct=no
9432        ;;
9433        motorola)
9434          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9436        ;;
9437      esac
9438      runpath_var='LD_RUN_PATH'
9439      hardcode_shlibpath_var=no
9440      ;;
9441
9442    sysv4.3*)
9443      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9444      hardcode_shlibpath_var=no
9445      export_dynamic_flag_spec='-Bexport'
9446      ;;
9447
9448    sysv4*MP*)
9449      if test -d /usr/nec; then
9450        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9451        hardcode_shlibpath_var=no
9452        runpath_var=LD_RUN_PATH
9453        hardcode_runpath_var=yes
9454        ld_shlibs=yes
9455      fi
9456      ;;
9457
9458    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9459      no_undefined_flag='${wl}-z,text'
9460      archive_cmds_need_lc=no
9461      hardcode_shlibpath_var=no
9462      runpath_var='LD_RUN_PATH'
9463
9464      if test "$GCC" = yes; then
9465        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9466        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9467      else
9468        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9469        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470      fi
9471      ;;
9472
9473    sysv5* | sco3.2v5* | sco5v6*)
9474      # Note: We can NOT use -z defs as we might desire, because we do not
9475      # link with -lc, and that would cause any symbols used from libc to
9476      # always be unresolved, which means just about no library would
9477      # ever link correctly.  If we're not using GNU ld we use -z text
9478      # though, which does catch some bad symbols but isn't as heavy-handed
9479      # as -z defs.
9480      no_undefined_flag='${wl}-z,text'
9481      allow_undefined_flag='${wl}-z,nodefs'
9482      archive_cmds_need_lc=no
9483      hardcode_shlibpath_var=no
9484      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9485      hardcode_libdir_separator=':'
9486      link_all_deplibs=yes
9487      export_dynamic_flag_spec='${wl}-Bexport'
9488      runpath_var='LD_RUN_PATH'
9489
9490      if test "$GCC" = yes; then
9491        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9492        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9493      else
9494        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9495        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9496      fi
9497      ;;
9498
9499    uts4*)
9500      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9501      hardcode_libdir_flag_spec='-L$libdir'
9502      hardcode_shlibpath_var=no
9503      ;;
9504
9505    *)
9506      ld_shlibs=no
9507      ;;
9508    esac
9509  fi
9510
9511echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9512echo "${ECHO_T}$ld_shlibs" >&6
9513test "$ld_shlibs" = no && can_build_shared=no
9514
9515#
9516# Do we need to explicitly link libc?
9517#
9518case "x$archive_cmds_need_lc" in
9519x|xyes)
9520  # Assume -lc should be added
9521  archive_cmds_need_lc=yes
9522
9523  if test "$enable_shared" = yes && test "$GCC" = yes; then
9524    case $archive_cmds in
9525    *'~'*)
9526      # FIXME: we may have to deal with multi-command sequences.
9527      ;;
9528    '$CC '*)
9529      # Test whether the compiler implicitly links with -lc since on some
9530      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9531      # to ld, don't add -lc before -lgcc.
9532      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9533echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9534      $rm conftest*
9535      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9536
9537      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538  (eval $ac_compile) 2>&5
9539  ac_status=$?
9540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541  (exit $ac_status); } 2>conftest.err; then
9542        soname=conftest
9543        lib=conftest
9544        libobjs=conftest.$ac_objext
9545        deplibs=
9546        wl=$lt_prog_compiler_wl
9547        pic_flag=$lt_prog_compiler_pic
9548        compiler_flags=-v
9549        linker_flags=-v
9550        verstring=
9551        output_objdir=.
9552        libname=conftest
9553        lt_save_allow_undefined_flag=$allow_undefined_flag
9554        allow_undefined_flag=
9555        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9556  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9557  ac_status=$?
9558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559  (exit $ac_status); }
9560        then
9561          archive_cmds_need_lc=no
9562        else
9563          archive_cmds_need_lc=yes
9564        fi
9565        allow_undefined_flag=$lt_save_allow_undefined_flag
9566      else
9567        cat conftest.err 1>&5
9568      fi
9569      $rm conftest*
9570      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9571echo "${ECHO_T}$archive_cmds_need_lc" >&6
9572      ;;
9573    esac
9574  fi
9575  ;;
9576esac
9577
9578echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9579echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9580library_names_spec=
9581libname_spec='lib$name'
9582soname_spec=
9583shrext_cmds=".so"
9584postinstall_cmds=
9585postuninstall_cmds=
9586finish_cmds=
9587finish_eval=
9588shlibpath_var=
9589shlibpath_overrides_runpath=unknown
9590version_type=none
9591dynamic_linker="$host_os ld.so"
9592sys_lib_dlsearch_path_spec="/lib /usr/lib"
9593if test "$GCC" = yes; then
9594  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9595  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9596    # if the path contains ";" then we assume it to be the separator
9597    # otherwise default to the standard path separator (i.e. ":") - it is
9598    # assumed that no part of a normal pathname contains ";" but that should
9599    # okay in the real world where ";" in dirpaths is itself problematic.
9600    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9601  else
9602    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9603  fi
9604else
9605  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9606fi
9607need_lib_prefix=unknown
9608hardcode_into_libs=no
9609
9610# when you set need_version to no, make sure it does not cause -set_version
9611# flags to be left without arguments
9612need_version=unknown
9613
9614case $host_os in
9615aix3*)
9616  version_type=linux
9617  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9618  shlibpath_var=LIBPATH
9619
9620  # AIX 3 has no versioning support, so we append a major version to the name.
9621  soname_spec='${libname}${release}${shared_ext}$major'
9622  ;;
9623
9624aix4* | aix5*)
9625  version_type=linux
9626  need_lib_prefix=no
9627  need_version=no
9628  hardcode_into_libs=yes
9629  if test "$host_cpu" = ia64; then
9630    # AIX 5 supports IA64
9631    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9632    shlibpath_var=LD_LIBRARY_PATH
9633  else
9634    # With GCC up to 2.95.x, collect2 would create an import file
9635    # for dependence libraries.  The import file would start with
9636    # the line `#! .'.  This would cause the generated library to
9637    # depend on `.', always an invalid library.  This was fixed in
9638    # development snapshots of GCC prior to 3.0.
9639    case $host_os in
9640      aix4 | aix4.[01] | aix4.[01].*)
9641      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9642           echo ' yes '
9643           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9644        :
9645      else
9646        can_build_shared=no
9647      fi
9648      ;;
9649    esac
9650    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9651    # soname into executable. Probably we can add versioning support to
9652    # collect2, so additional links can be useful in future.
9653    if test "$aix_use_runtimelinking" = yes; then
9654      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9655      # instead of lib<name>.a to let people know that these are not
9656      # typical AIX shared libraries.
9657      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9658    else
9659      # We preserve .a as extension for shared libraries through AIX4.2
9660      # and later when we are not doing run time linking.
9661      library_names_spec='${libname}${release}.a $libname.a'
9662      soname_spec='${libname}${release}${shared_ext}$major'
9663    fi
9664    shlibpath_var=LIBPATH
9665  fi
9666  ;;
9667
9668amigaos*)
9669  library_names_spec='$libname.ixlibrary $libname.a'
9670  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9671  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'
9672  ;;
9673
9674beos*)
9675  library_names_spec='${libname}${shared_ext}'
9676  dynamic_linker="$host_os ld.so"
9677  shlibpath_var=LIBRARY_PATH
9678  ;;
9679
9680bsdi[45]*)
9681  version_type=linux
9682  need_version=no
9683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684  soname_spec='${libname}${release}${shared_ext}$major'
9685  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9686  shlibpath_var=LD_LIBRARY_PATH
9687  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9688  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9689  # the default ld.so.conf also contains /usr/contrib/lib and
9690  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9691  # libtool to hard-code these into programs
9692  ;;
9693
9694cygwin* | mingw* | pw32*)
9695  version_type=windows
9696  shrext_cmds=".dll"
9697  need_version=no
9698  need_lib_prefix=no
9699
9700  case $GCC,$host_os in
9701  yes,cygwin* | yes,mingw* | yes,pw32*)
9702    library_names_spec='$libname.dll.a'
9703    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9704    postinstall_cmds='base_file=`basename \${file}`~
9705      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9706      dldir=$destdir/`dirname \$dlpath`~
9707      test -d \$dldir || mkdir -p \$dldir~
9708      $install_prog $dir/$dlname \$dldir/$dlname~
9709      chmod a+x \$dldir/$dlname'
9710    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9711      dlpath=$dir/\$dldll~
9712       $rm \$dlpath'
9713    shlibpath_overrides_runpath=yes
9714
9715    case $host_os in
9716    cygwin*)
9717      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9718      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9719      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9720      ;;
9721    mingw*)
9722      # MinGW DLLs use traditional 'lib' prefix
9723      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9724      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9725      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9726        # It is most probably a Windows format PATH printed by
9727        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9728        # path with ; separators, and with drive letters. We can handle the
9729        # drive letters (cygwin fileutils understands them), so leave them,
9730        # especially as we might pass files found there to a mingw objdump,
9731        # which wouldn't understand a cygwinified path. Ahh.
9732        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9733      else
9734        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9735      fi
9736      ;;
9737    pw32*)
9738      # pw32 DLLs use 'pw' prefix rather than 'lib'
9739      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9740      ;;
9741    esac
9742    ;;
9743
9744  *)
9745    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9746    ;;
9747  esac
9748  dynamic_linker='Win32 ld.exe'
9749  # FIXME: first we should search . and the directory the executable is in
9750  shlibpath_var=PATH
9751  ;;
9752
9753darwin* | rhapsody*)
9754  dynamic_linker="$host_os dyld"
9755  version_type=darwin
9756  need_lib_prefix=no
9757  need_version=no
9758  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9759  soname_spec='${libname}${release}${major}$shared_ext'
9760  shlibpath_overrides_runpath=yes
9761  shlibpath_var=DYLD_LIBRARY_PATH
9762  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9763  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9764  if test "$GCC" = yes; then
9765    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"`
9766  else
9767    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9768  fi
9769  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9770  ;;
9771
9772dgux*)
9773  version_type=linux
9774  need_lib_prefix=no
9775  need_version=no
9776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9777  soname_spec='${libname}${release}${shared_ext}$major'
9778  shlibpath_var=LD_LIBRARY_PATH
9779  ;;
9780
9781freebsd1*)
9782  dynamic_linker=no
9783  ;;
9784
9785kfreebsd*-gnu)
9786  version_type=linux
9787  need_lib_prefix=no
9788  need_version=no
9789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9790  soname_spec='${libname}${release}${shared_ext}$major'
9791  shlibpath_var=LD_LIBRARY_PATH
9792  shlibpath_overrides_runpath=no
9793  hardcode_into_libs=yes
9794  dynamic_linker='GNU ld.so'
9795  ;;
9796
9797freebsd* | dragonfly*)
9798  # DragonFly does not have aout.  When/if they implement a new
9799  # versioning mechanism, adjust this.
9800  if test -x /usr/bin/objformat; then
9801    objformat=`/usr/bin/objformat`
9802  else
9803    case $host_os in
9804    freebsd[123]*) objformat=aout ;;
9805    *) objformat=elf ;;
9806    esac
9807  fi
9808  version_type=freebsd-$objformat
9809  case $version_type in
9810    freebsd-elf*)
9811      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9812      need_version=no
9813      need_lib_prefix=no
9814      ;;
9815    freebsd-*)
9816      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9817      need_version=yes
9818      ;;
9819  esac
9820  shlibpath_var=LD_LIBRARY_PATH
9821  case $host_os in
9822  freebsd2*)
9823    shlibpath_overrides_runpath=yes
9824    ;;
9825  freebsd3.[01]* | freebsdelf3.[01]*)
9826    shlibpath_overrides_runpath=yes
9827    hardcode_into_libs=yes
9828    ;;
9829  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9830  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9831    shlibpath_overrides_runpath=no
9832    hardcode_into_libs=yes
9833    ;;
9834  freebsd*) # from 4.6 on
9835    shlibpath_overrides_runpath=yes
9836    hardcode_into_libs=yes
9837    ;;
9838  esac
9839  ;;
9840
9841gnu*)
9842  version_type=linux
9843  need_lib_prefix=no
9844  need_version=no
9845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9846  soname_spec='${libname}${release}${shared_ext}$major'
9847  shlibpath_var=LD_LIBRARY_PATH
9848  hardcode_into_libs=yes
9849  ;;
9850
9851hpux9* | hpux10* | hpux11*)
9852  # Give a soname corresponding to the major version so that dld.sl refuses to
9853  # link against other versions.
9854  version_type=sunos
9855  need_lib_prefix=no
9856  need_version=no
9857  case $host_cpu in
9858  ia64*)
9859    shrext_cmds='.so'
9860    hardcode_into_libs=yes
9861    dynamic_linker="$host_os dld.so"
9862    shlibpath_var=LD_LIBRARY_PATH
9863    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9864    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865    soname_spec='${libname}${release}${shared_ext}$major'
9866    if test "X$HPUX_IA64_MODE" = X32; then
9867      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9868    else
9869      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9870    fi
9871    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9872    ;;
9873   hppa*64*)
9874     shrext_cmds='.sl'
9875     hardcode_into_libs=yes
9876     dynamic_linker="$host_os dld.sl"
9877     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9878     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880     soname_spec='${libname}${release}${shared_ext}$major'
9881     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9882     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9883     ;;
9884   *)
9885    shrext_cmds='.sl'
9886    dynamic_linker="$host_os dld.sl"
9887    shlibpath_var=SHLIB_PATH
9888    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9889    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890    soname_spec='${libname}${release}${shared_ext}$major'
9891    ;;
9892  esac
9893  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9894  postinstall_cmds='chmod 555 $lib'
9895  ;;
9896
9897interix3*)
9898  version_type=linux
9899  need_lib_prefix=no
9900  need_version=no
9901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9902  soname_spec='${libname}${release}${shared_ext}$major'
9903  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9904  shlibpath_var=LD_LIBRARY_PATH
9905  shlibpath_overrides_runpath=no
9906  hardcode_into_libs=yes
9907  ;;
9908
9909irix5* | irix6* | nonstopux*)
9910  case $host_os in
9911    nonstopux*) version_type=nonstopux ;;
9912    *)
9913        if test "$lt_cv_prog_gnu_ld" = yes; then
9914                version_type=linux
9915        else
9916                version_type=irix
9917        fi ;;
9918  esac
9919  need_lib_prefix=no
9920  need_version=no
9921  soname_spec='${libname}${release}${shared_ext}$major'
9922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9923  case $host_os in
9924  irix5* | nonstopux*)
9925    libsuff= shlibsuff=
9926    ;;
9927  *)
9928    case $LD in # libtool.m4 will add one of these switches to LD
9929    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9930      libsuff= shlibsuff= libmagic=32-bit;;
9931    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9932      libsuff=32 shlibsuff=N32 libmagic=N32;;
9933    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9934      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9935    *) libsuff= shlibsuff= libmagic=never-match;;
9936    esac
9937    ;;
9938  esac
9939  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9940  shlibpath_overrides_runpath=no
9941  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9942  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9943  hardcode_into_libs=yes
9944  ;;
9945
9946# No shared lib support for Linux oldld, aout, or coff.
9947linux*oldld* | linux*aout* | linux*coff*)
9948  dynamic_linker=no
9949  ;;
9950
9951# This must be Linux ELF.
9952linux*)
9953  version_type=linux
9954  need_lib_prefix=no
9955  need_version=no
9956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9957  soname_spec='${libname}${release}${shared_ext}$major'
9958  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9959  shlibpath_var=LD_LIBRARY_PATH
9960  shlibpath_overrides_runpath=no
9961  # This implies no fast_install, which is unacceptable.
9962  # Some rework will be needed to allow for fast_install
9963  # before this can be enabled.
9964  hardcode_into_libs=yes
9965
9966  # Append ld.so.conf contents to the search path
9967  if test -f /etc/ld.so.conf; then
9968    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' ' '`
9969    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9970  fi
9971
9972  # We used to test for /lib/ld.so.1 and disable shared libraries on
9973  # powerpc, because MkLinux only supported shared libraries with the
9974  # GNU dynamic linker.  Since this was broken with cross compilers,
9975  # most powerpc-linux boxes support dynamic linking these days and
9976  # people can always --disable-shared, the test was removed, and we
9977  # assume the GNU/Linux dynamic linker is in use.
9978  dynamic_linker='GNU/Linux ld.so'
9979  ;;
9980
9981knetbsd*-gnu)
9982  version_type=linux
9983  need_lib_prefix=no
9984  need_version=no
9985  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9986  soname_spec='${libname}${release}${shared_ext}$major'
9987  shlibpath_var=LD_LIBRARY_PATH
9988  shlibpath_overrides_runpath=no
9989  hardcode_into_libs=yes
9990  dynamic_linker='GNU ld.so'
9991  ;;
9992
9993netbsd*)
9994  version_type=sunos
9995  need_lib_prefix=no
9996  need_version=no
9997  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9998    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9999    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10000    dynamic_linker='NetBSD (a.out) ld.so'
10001  else
10002    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10003    soname_spec='${libname}${release}${shared_ext}$major'
10004    dynamic_linker='NetBSD ld.elf_so'
10005  fi
10006  shlibpath_var=LD_LIBRARY_PATH
10007  shlibpath_overrides_runpath=yes
10008  hardcode_into_libs=yes
10009  ;;
10010
10011newsos6)
10012  version_type=linux
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014  shlibpath_var=LD_LIBRARY_PATH
10015  shlibpath_overrides_runpath=yes
10016  ;;
10017
10018nto-qnx*)
10019  version_type=linux
10020  need_lib_prefix=no
10021  need_version=no
10022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023  soname_spec='${libname}${release}${shared_ext}$major'
10024  shlibpath_var=LD_LIBRARY_PATH
10025  shlibpath_overrides_runpath=yes
10026  ;;
10027
10028openbsd*)
10029  version_type=sunos
10030  sys_lib_dlsearch_path_spec="/usr/lib"
10031  need_lib_prefix=no
10032  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10033  case $host_os in
10034    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10035    *)                         need_version=no  ;;
10036  esac
10037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10038  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10039  shlibpath_var=LD_LIBRARY_PATH
10040  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10041    case $host_os in
10042      openbsd2.[89] | openbsd2.[89].*)
10043        shlibpath_overrides_runpath=no
10044        ;;
10045      *)
10046        shlibpath_overrides_runpath=yes
10047        ;;
10048      esac
10049  else
10050    shlibpath_overrides_runpath=yes
10051  fi
10052  ;;
10053
10054os2*)
10055  libname_spec='$name'
10056  shrext_cmds=".dll"
10057  need_lib_prefix=no
10058  library_names_spec='$libname${shared_ext} $libname.a'
10059  dynamic_linker='OS/2 ld.exe'
10060  shlibpath_var=LIBPATH
10061  ;;
10062
10063osf3* | osf4* | osf5*)
10064  version_type=osf
10065  need_lib_prefix=no
10066  need_version=no
10067  soname_spec='${libname}${release}${shared_ext}$major'
10068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10069  shlibpath_var=LD_LIBRARY_PATH
10070  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10071  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10072  ;;
10073
10074solaris*)
10075  version_type=linux
10076  need_lib_prefix=no
10077  need_version=no
10078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079  soname_spec='${libname}${release}${shared_ext}$major'
10080  shlibpath_var=LD_LIBRARY_PATH
10081  shlibpath_overrides_runpath=yes
10082  hardcode_into_libs=yes
10083  # ldd complains unless libraries are executable
10084  postinstall_cmds='chmod +x $lib'
10085  ;;
10086
10087sunos4*)
10088  version_type=sunos
10089  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10090  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10091  shlibpath_var=LD_LIBRARY_PATH
10092  shlibpath_overrides_runpath=yes
10093  if test "$with_gnu_ld" = yes; then
10094    need_lib_prefix=no
10095  fi
10096  need_version=yes
10097  ;;
10098
10099sysv4 | sysv4.3*)
10100  version_type=linux
10101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102  soname_spec='${libname}${release}${shared_ext}$major'
10103  shlibpath_var=LD_LIBRARY_PATH
10104  case $host_vendor in
10105    sni)
10106      shlibpath_overrides_runpath=no
10107      need_lib_prefix=no
10108      export_dynamic_flag_spec='${wl}-Blargedynsym'
10109      runpath_var=LD_RUN_PATH
10110      ;;
10111    siemens)
10112      need_lib_prefix=no
10113      ;;
10114    motorola)
10115      need_lib_prefix=no
10116      need_version=no
10117      shlibpath_overrides_runpath=no
10118      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10119      ;;
10120  esac
10121  ;;
10122
10123sysv4*MP*)
10124  if test -d /usr/nec ;then
10125    version_type=linux
10126    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10127    soname_spec='$libname${shared_ext}.$major'
10128    shlibpath_var=LD_LIBRARY_PATH
10129  fi
10130  ;;
10131
10132sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10133  version_type=freebsd-elf
10134  need_lib_prefix=no
10135  need_version=no
10136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10137  soname_spec='${libname}${release}${shared_ext}$major'
10138  shlibpath_var=LD_LIBRARY_PATH
10139  hardcode_into_libs=yes
10140  if test "$with_gnu_ld" = yes; then
10141    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10142    shlibpath_overrides_runpath=no
10143  else
10144    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10145    shlibpath_overrides_runpath=yes
10146    case $host_os in
10147      sco3.2v5*)
10148        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10149        ;;
10150    esac
10151  fi
10152  sys_lib_dlsearch_path_spec='/usr/lib'
10153  ;;
10154
10155uts4*)
10156  version_type=linux
10157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158  soname_spec='${libname}${release}${shared_ext}$major'
10159  shlibpath_var=LD_LIBRARY_PATH
10160  ;;
10161
10162*)
10163  dynamic_linker=no
10164  ;;
10165esac
10166echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10167echo "${ECHO_T}$dynamic_linker" >&6
10168test "$dynamic_linker" = no && can_build_shared=no
10169
10170variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10171if test "$GCC" = yes; then
10172  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10173fi
10174
10175echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10176echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10177hardcode_action=
10178if test -n "$hardcode_libdir_flag_spec" || \
10179   test -n "$runpath_var" || \
10180   test "X$hardcode_automatic" = "Xyes" ; then
10181
10182  # We can hardcode non-existant directories.
10183  if test "$hardcode_direct" != no &&
10184     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10185     # have to relink, otherwise we might link with an installed library
10186     # when we should be linking with a yet-to-be-installed one
10187     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10188     test "$hardcode_minus_L" != no; then
10189    # Linking always hardcodes the temporary library directory.
10190    hardcode_action=relink
10191  else
10192    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10193    hardcode_action=immediate
10194  fi
10195else
10196  # We cannot hardcode anything, or else we can only hardcode existing
10197  # directories.
10198  hardcode_action=unsupported
10199fi
10200echo "$as_me:$LINENO: result: $hardcode_action" >&5
10201echo "${ECHO_T}$hardcode_action" >&6
10202
10203if test "$hardcode_action" = relink; then
10204  # Fast installation is not supported
10205  enable_fast_install=no
10206elif test "$shlibpath_overrides_runpath" = yes ||
10207     test "$enable_shared" = no; then
10208  # Fast installation is not necessary
10209  enable_fast_install=needless
10210fi
10211
10212striplib=
10213old_striplib=
10214echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10215echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10216if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10217  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10218  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10219  echo "$as_me:$LINENO: result: yes" >&5
10220echo "${ECHO_T}yes" >&6
10221else
10222# FIXME - insert some real tests, host_os isn't really good enough
10223  case $host_os in
10224   darwin*)
10225       if test -n "$STRIP" ; then
10226         striplib="$STRIP -x"
10227         echo "$as_me:$LINENO: result: yes" >&5
10228echo "${ECHO_T}yes" >&6
10229       else
10230  echo "$as_me:$LINENO: result: no" >&5
10231echo "${ECHO_T}no" >&6
10232fi
10233       ;;
10234   *)
10235  echo "$as_me:$LINENO: result: no" >&5
10236echo "${ECHO_T}no" >&6
10237    ;;
10238  esac
10239fi
10240
10241if test "x$enable_dlopen" != xyes; then
10242  enable_dlopen=unknown
10243  enable_dlopen_self=unknown
10244  enable_dlopen_self_static=unknown
10245else
10246  lt_cv_dlopen=no
10247  lt_cv_dlopen_libs=
10248
10249  case $host_os in
10250  beos*)
10251    lt_cv_dlopen="load_add_on"
10252    lt_cv_dlopen_libs=
10253    lt_cv_dlopen_self=yes
10254    ;;
10255
10256  mingw* | pw32*)
10257    lt_cv_dlopen="LoadLibrary"
10258    lt_cv_dlopen_libs=
10259   ;;
10260
10261  cygwin*)
10262    lt_cv_dlopen="dlopen"
10263    lt_cv_dlopen_libs=
10264   ;;
10265
10266  darwin*)
10267  # if libdl is installed we need to link against it
10268    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10269echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10270if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10271  echo $ECHO_N "(cached) $ECHO_C" >&6
10272else
10273  ac_check_lib_save_LIBS=$LIBS
10274LIBS="-ldl  $LIBS"
10275cat >conftest.$ac_ext <<_ACEOF
10276/* confdefs.h.  */
10277_ACEOF
10278cat confdefs.h >>conftest.$ac_ext
10279cat >>conftest.$ac_ext <<_ACEOF
10280/* end confdefs.h.  */
10281
10282/* Override any gcc2 internal prototype to avoid an error.  */
10283#ifdef __cplusplus
10284extern "C"
10285#endif
10286/* We use char because int might match the return type of a gcc2
10287   builtin and then its argument prototype would still apply.  */
10288char dlopen ();
10289int
10290main ()
10291{
10292dlopen ();
10293  ;
10294  return 0;
10295}
10296_ACEOF
10297rm -f conftest.$ac_objext conftest$ac_exeext
10298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299  (eval $ac_link) 2>conftest.er1
10300  ac_status=$?
10301  grep -v '^ *+' conftest.er1 >conftest.err
10302  rm -f conftest.er1
10303  cat conftest.err >&5
10304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305  (exit $ac_status); } &&
10306         { ac_try='test -z "$ac_c_werror_flag"
10307                         || test ! -s conftest.err'
10308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309  (eval $ac_try) 2>&5
10310  ac_status=$?
10311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312  (exit $ac_status); }; } &&
10313         { ac_try='test -s conftest$ac_exeext'
10314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315  (eval $ac_try) 2>&5
10316  ac_status=$?
10317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318  (exit $ac_status); }; }; then
10319  ac_cv_lib_dl_dlopen=yes
10320else
10321  echo "$as_me: failed program was:" >&5
10322sed 's/^/| /' conftest.$ac_ext >&5
10323
10324ac_cv_lib_dl_dlopen=no
10325fi
10326rm -f conftest.err conftest.$ac_objext \
10327      conftest$ac_exeext conftest.$ac_ext
10328LIBS=$ac_check_lib_save_LIBS
10329fi
10330echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10331echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10332if test $ac_cv_lib_dl_dlopen = yes; then
10333  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10334else
10335
10336    lt_cv_dlopen="dyld"
10337    lt_cv_dlopen_libs=
10338    lt_cv_dlopen_self=yes
10339
10340fi
10341
10342   ;;
10343
10344  *)
10345    echo "$as_me:$LINENO: checking for shl_load" >&5
10346echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10347if test "${ac_cv_func_shl_load+set}" = set; then
10348  echo $ECHO_N "(cached) $ECHO_C" >&6
10349else
10350  cat >conftest.$ac_ext <<_ACEOF
10351/* confdefs.h.  */
10352_ACEOF
10353cat confdefs.h >>conftest.$ac_ext
10354cat >>conftest.$ac_ext <<_ACEOF
10355/* end confdefs.h.  */
10356/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10357   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10358#define shl_load innocuous_shl_load
10359
10360/* System header to define __stub macros and hopefully few prototypes,
10361    which can conflict with char shl_load (); below.
10362    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10363    <limits.h> exists even on freestanding compilers.  */
10364
10365#ifdef __STDC__
10366# include <limits.h>
10367#else
10368# include <assert.h>
10369#endif
10370
10371#undef shl_load
10372
10373/* Override any gcc2 internal prototype to avoid an error.  */
10374#ifdef __cplusplus
10375extern "C"
10376{
10377#endif
10378/* We use char because int might match the return type of a gcc2
10379   builtin and then its argument prototype would still apply.  */
10380char shl_load ();
10381/* The GNU C library defines this for functions which it implements
10382    to always fail with ENOSYS.  Some functions are actually named
10383    something starting with __ and the normal name is an alias.  */
10384#if defined (__stub_shl_load) || defined (__stub___shl_load)
10385choke me
10386#else
10387char (*f) () = shl_load;
10388#endif
10389#ifdef __cplusplus
10390}
10391#endif
10392
10393int
10394main ()
10395{
10396return f != shl_load;
10397  ;
10398  return 0;
10399}
10400_ACEOF
10401rm -f conftest.$ac_objext conftest$ac_exeext
10402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10403  (eval $ac_link) 2>conftest.er1
10404  ac_status=$?
10405  grep -v '^ *+' conftest.er1 >conftest.err
10406  rm -f conftest.er1
10407  cat conftest.err >&5
10408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409  (exit $ac_status); } &&
10410         { ac_try='test -z "$ac_c_werror_flag"
10411                         || test ! -s conftest.err'
10412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413  (eval $ac_try) 2>&5
10414  ac_status=$?
10415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416  (exit $ac_status); }; } &&
10417         { ac_try='test -s conftest$ac_exeext'
10418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419  (eval $ac_try) 2>&5
10420  ac_status=$?
10421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); }; }; then
10423  ac_cv_func_shl_load=yes
10424else
10425  echo "$as_me: failed program was:" >&5
10426sed 's/^/| /' conftest.$ac_ext >&5
10427
10428ac_cv_func_shl_load=no
10429fi
10430rm -f conftest.err conftest.$ac_objext \
10431      conftest$ac_exeext conftest.$ac_ext
10432fi
10433echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10434echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10435if test $ac_cv_func_shl_load = yes; then
10436  lt_cv_dlopen="shl_load"
10437else
10438  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10439echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10440if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10441  echo $ECHO_N "(cached) $ECHO_C" >&6
10442else
10443  ac_check_lib_save_LIBS=$LIBS
10444LIBS="-ldld  $LIBS"
10445cat >conftest.$ac_ext <<_ACEOF
10446/* confdefs.h.  */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h.  */
10451
10452/* Override any gcc2 internal prototype to avoid an error.  */
10453#ifdef __cplusplus
10454extern "C"
10455#endif
10456/* We use char because int might match the return type of a gcc2
10457   builtin and then its argument prototype would still apply.  */
10458char shl_load ();
10459int
10460main ()
10461{
10462shl_load ();
10463  ;
10464  return 0;
10465}
10466_ACEOF
10467rm -f conftest.$ac_objext conftest$ac_exeext
10468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10469  (eval $ac_link) 2>conftest.er1
10470  ac_status=$?
10471  grep -v '^ *+' conftest.er1 >conftest.err
10472  rm -f conftest.er1
10473  cat conftest.err >&5
10474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475  (exit $ac_status); } &&
10476         { ac_try='test -z "$ac_c_werror_flag"
10477                         || test ! -s conftest.err'
10478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479  (eval $ac_try) 2>&5
10480  ac_status=$?
10481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482  (exit $ac_status); }; } &&
10483         { ac_try='test -s conftest$ac_exeext'
10484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10485  (eval $ac_try) 2>&5
10486  ac_status=$?
10487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488  (exit $ac_status); }; }; then
10489  ac_cv_lib_dld_shl_load=yes
10490else
10491  echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5
10493
10494ac_cv_lib_dld_shl_load=no
10495fi
10496rm -f conftest.err conftest.$ac_objext \
10497      conftest$ac_exeext conftest.$ac_ext
10498LIBS=$ac_check_lib_save_LIBS
10499fi
10500echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10501echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10502if test $ac_cv_lib_dld_shl_load = yes; then
10503  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10504else
10505  echo "$as_me:$LINENO: checking for dlopen" >&5
10506echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10507if test "${ac_cv_func_dlopen+set}" = set; then
10508  echo $ECHO_N "(cached) $ECHO_C" >&6
10509else
10510  cat >conftest.$ac_ext <<_ACEOF
10511/* confdefs.h.  */
10512_ACEOF
10513cat confdefs.h >>conftest.$ac_ext
10514cat >>conftest.$ac_ext <<_ACEOF
10515/* end confdefs.h.  */
10516/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10517   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10518#define dlopen innocuous_dlopen
10519
10520/* System header to define __stub macros and hopefully few prototypes,
10521    which can conflict with char dlopen (); below.
10522    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10523    <limits.h> exists even on freestanding compilers.  */
10524
10525#ifdef __STDC__
10526# include <limits.h>
10527#else
10528# include <assert.h>
10529#endif
10530
10531#undef dlopen
10532
10533/* Override any gcc2 internal prototype to avoid an error.  */
10534#ifdef __cplusplus
10535extern "C"
10536{
10537#endif
10538/* We use char because int might match the return type of a gcc2
10539   builtin and then its argument prototype would still apply.  */
10540char dlopen ();
10541/* The GNU C library defines this for functions which it implements
10542    to always fail with ENOSYS.  Some functions are actually named
10543    something starting with __ and the normal name is an alias.  */
10544#if defined (__stub_dlopen) || defined (__stub___dlopen)
10545choke me
10546#else
10547char (*f) () = dlopen;
10548#endif
10549#ifdef __cplusplus
10550}
10551#endif
10552
10553int
10554main ()
10555{
10556return f != dlopen;
10557  ;
10558  return 0;
10559}
10560_ACEOF
10561rm -f conftest.$ac_objext conftest$ac_exeext
10562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10563  (eval $ac_link) 2>conftest.er1
10564  ac_status=$?
10565  grep -v '^ *+' conftest.er1 >conftest.err
10566  rm -f conftest.er1
10567  cat conftest.err >&5
10568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569  (exit $ac_status); } &&
10570         { ac_try='test -z "$ac_c_werror_flag"
10571                         || test ! -s conftest.err'
10572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573  (eval $ac_try) 2>&5
10574  ac_status=$?
10575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576  (exit $ac_status); }; } &&
10577         { ac_try='test -s conftest$ac_exeext'
10578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579  (eval $ac_try) 2>&5
10580  ac_status=$?
10581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582  (exit $ac_status); }; }; then
10583  ac_cv_func_dlopen=yes
10584else
10585  echo "$as_me: failed program was:" >&5
10586sed 's/^/| /' conftest.$ac_ext >&5
10587
10588ac_cv_func_dlopen=no
10589fi
10590rm -f conftest.err conftest.$ac_objext \
10591      conftest$ac_exeext conftest.$ac_ext
10592fi
10593echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10594echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10595if test $ac_cv_func_dlopen = yes; then
10596  lt_cv_dlopen="dlopen"
10597else
10598  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10599echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10600if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10601  echo $ECHO_N "(cached) $ECHO_C" >&6
10602else
10603  ac_check_lib_save_LIBS=$LIBS
10604LIBS="-ldl  $LIBS"
10605cat >conftest.$ac_ext <<_ACEOF
10606/* confdefs.h.  */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h.  */
10611
10612/* Override any gcc2 internal prototype to avoid an error.  */
10613#ifdef __cplusplus
10614extern "C"
10615#endif
10616/* We use char because int might match the return type of a gcc2
10617   builtin and then its argument prototype would still apply.  */
10618char dlopen ();
10619int
10620main ()
10621{
10622dlopen ();
10623  ;
10624  return 0;
10625}
10626_ACEOF
10627rm -f conftest.$ac_objext conftest$ac_exeext
10628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10629  (eval $ac_link) 2>conftest.er1
10630  ac_status=$?
10631  grep -v '^ *+' conftest.er1 >conftest.err
10632  rm -f conftest.er1
10633  cat conftest.err >&5
10634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635  (exit $ac_status); } &&
10636         { ac_try='test -z "$ac_c_werror_flag"
10637                         || test ! -s conftest.err'
10638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639  (eval $ac_try) 2>&5
10640  ac_status=$?
10641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642  (exit $ac_status); }; } &&
10643         { ac_try='test -s conftest$ac_exeext'
10644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645  (eval $ac_try) 2>&5
10646  ac_status=$?
10647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); }; }; then
10649  ac_cv_lib_dl_dlopen=yes
10650else
10651  echo "$as_me: failed program was:" >&5
10652sed 's/^/| /' conftest.$ac_ext >&5
10653
10654ac_cv_lib_dl_dlopen=no
10655fi
10656rm -f conftest.err conftest.$ac_objext \
10657      conftest$ac_exeext conftest.$ac_ext
10658LIBS=$ac_check_lib_save_LIBS
10659fi
10660echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10661echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10662if test $ac_cv_lib_dl_dlopen = yes; then
10663  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10664else
10665  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10666echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10667if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10668  echo $ECHO_N "(cached) $ECHO_C" >&6
10669else
10670  ac_check_lib_save_LIBS=$LIBS
10671LIBS="-lsvld  $LIBS"
10672cat >conftest.$ac_ext <<_ACEOF
10673/* confdefs.h.  */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h.  */
10678
10679/* Override any gcc2 internal prototype to avoid an error.  */
10680#ifdef __cplusplus
10681extern "C"
10682#endif
10683/* We use char because int might match the return type of a gcc2
10684   builtin and then its argument prototype would still apply.  */
10685char dlopen ();
10686int
10687main ()
10688{
10689dlopen ();
10690  ;
10691  return 0;
10692}
10693_ACEOF
10694rm -f conftest.$ac_objext conftest$ac_exeext
10695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696  (eval $ac_link) 2>conftest.er1
10697  ac_status=$?
10698  grep -v '^ *+' conftest.er1 >conftest.err
10699  rm -f conftest.er1
10700  cat conftest.err >&5
10701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702  (exit $ac_status); } &&
10703         { ac_try='test -z "$ac_c_werror_flag"
10704                         || test ! -s conftest.err'
10705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706  (eval $ac_try) 2>&5
10707  ac_status=$?
10708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709  (exit $ac_status); }; } &&
10710         { ac_try='test -s conftest$ac_exeext'
10711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712  (eval $ac_try) 2>&5
10713  ac_status=$?
10714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715  (exit $ac_status); }; }; then
10716  ac_cv_lib_svld_dlopen=yes
10717else
10718  echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721ac_cv_lib_svld_dlopen=no
10722fi
10723rm -f conftest.err conftest.$ac_objext \
10724      conftest$ac_exeext conftest.$ac_ext
10725LIBS=$ac_check_lib_save_LIBS
10726fi
10727echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10728echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10729if test $ac_cv_lib_svld_dlopen = yes; then
10730  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10731else
10732  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10733echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10734if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10735  echo $ECHO_N "(cached) $ECHO_C" >&6
10736else
10737  ac_check_lib_save_LIBS=$LIBS
10738LIBS="-ldld  $LIBS"
10739cat >conftest.$ac_ext <<_ACEOF
10740/* confdefs.h.  */
10741_ACEOF
10742cat confdefs.h >>conftest.$ac_ext
10743cat >>conftest.$ac_ext <<_ACEOF
10744/* end confdefs.h.  */
10745
10746/* Override any gcc2 internal prototype to avoid an error.  */
10747#ifdef __cplusplus
10748extern "C"