source: trunk/Clp/configure @ 1576

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

rerun autotools

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