source: trunk/Clp/configure @ 1668

Last change on this file since 1668 was 1668, checked in by lou, 9 years ago

temporarily committing stable candidate

  • Property svn:executable set to *
File size: 824.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.14.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.14'
433PACKAGE_STRING='Clp 1.14'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP 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 COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CLPLIB_CFLAGS CLPLIB_LIBS CLPLIB_PCLIBS CLPLIB_PCREQUIRES CLPLIB_DEPENDENCIES CLPLIB_CFLAGS_INSTALLED CLPLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSICLPLIB_CFLAGS OSICLPLIB_LIBS OSICLPLIB_PCLIBS OSICLPLIB_PCREQUIRES OSICLPLIB_DEPENDENCIES OSICLPLIB_CFLAGS_INSTALLED OSICLPLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Clp 1.14 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Clp 1.14:";;
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 package CoinUtils
1115  --with-coinutils-incdir directory with header files for using package
1116                          CoinUtils
1117  --with-coinutils-datadir
1118                          directory with data files for using package
1119                          CoinUtils
1120  --with-osi-lib linker flags for using package Osi
1121  --with-osi-incdir directory with header files for using package Osi
1122  --with-osi-datadir directory with data files for using package Osi
1123  --with-ositests-lib linker flags for using package OsiTests
1124  --with-ositests-incdir directory with header files for using package
1125                          OsiTests
1126  --with-ositests-datadir directory with data files for using package OsiTests
1127  --with-sample-lib linker flags for using package Sample
1128  --with-sample-incdir directory with header files for using package Sample
1129  --with-sample-datadir directory with data files for using package Sample
1130  --with-netlib-lib linker flags for using package Netlib
1131  --with-netlib-incdir directory with header files for using package Netlib
1132  --with-netlib-datadir directory with data files for using package Netlib
1133  --with-wsmp             specify WSMP library
1134  --with-dot              use dot (from graphviz) when creating documentation
1135                          with doxygen if available; --without-dot to disable
1136
1137Some influential environment variables:
1138  CDEFS       Additional -D flags to be used when compiling C code.
1139  ADD_CFLAGS  Additional C compiler options
1140  DBG_CFLAGS  Debug C compiler options
1141  OPT_CFLAGS  Optimize C compiler options
1142  CC          C compiler command
1143  CFLAGS      C compiler flags
1144  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1145              nonstandard directory <lib dir>
1146  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1147              headers in a nonstandard directory <include dir>
1148  MPICC       C MPI Compiler
1149  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1150  ADD_CXXFLAGS
1151              Additional C++ compiler options
1152  DBG_CXXFLAGS
1153              Debug C++ compiler options
1154  OPT_CXXFLAGS
1155              Optimize C++ compiler options
1156  CXX         C++ compiler command
1157  CXXFLAGS    C++ compiler flags
1158  MPICXX      C++ MPI Compiler
1159  CPP         C preprocessor
1160  CXXCPP      C++ preprocessor
1161  F77         Fortran 77 compiler command
1162  FFLAGS      Fortran 77 compiler flags
1163  PKG_CONFIG  path to pkg-config utility
1164
1165Use these variables to override the choices made by `configure' or to help
1166it to find libraries and programs with nonstandard names/locations.
1167
1168Report bugs to <clp@list.coin-or.org>.
1169_ACEOF
1170fi
1171
1172if test "$ac_init_help" = "recursive"; then
1173  # If there are subdirs, report their specific --help.
1174  ac_popdir=`pwd`
1175  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1176    test -d $ac_dir || continue
1177    ac_builddir=.
1178
1179if test "$ac_dir" != .; then
1180  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1181  # A "../" for each directory in $ac_dir_suffix.
1182  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1183else
1184  ac_dir_suffix= ac_top_builddir=
1185fi
1186
1187case $srcdir in
1188  .)  # No --srcdir option.  We are building in place.
1189    ac_srcdir=.
1190    if test -z "$ac_top_builddir"; then
1191       ac_top_srcdir=.
1192    else
1193       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1194    fi ;;
1195  [\\/]* | ?:[\\/]* )  # Absolute path.
1196    ac_srcdir=$srcdir$ac_dir_suffix;
1197    ac_top_srcdir=$srcdir ;;
1198  *) # Relative path.
1199    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1200    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1201esac
1202
1203# Do not use `cd foo && pwd` to compute absolute paths, because
1204# the directories may not exist.
1205case `pwd` in
1206.) ac_abs_builddir="$ac_dir";;
1207*)
1208  case "$ac_dir" in
1209  .) ac_abs_builddir=`pwd`;;
1210  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1211  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1212  esac;;
1213esac
1214case $ac_abs_builddir in
1215.) ac_abs_top_builddir=${ac_top_builddir}.;;
1216*)
1217  case ${ac_top_builddir}. in
1218  .) ac_abs_top_builddir=$ac_abs_builddir;;
1219  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1220  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1221  esac;;
1222esac
1223case $ac_abs_builddir in
1224.) ac_abs_srcdir=$ac_srcdir;;
1225*)
1226  case $ac_srcdir in
1227  .) ac_abs_srcdir=$ac_abs_builddir;;
1228  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1229  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1230  esac;;
1231esac
1232case $ac_abs_builddir in
1233.) ac_abs_top_srcdir=$ac_top_srcdir;;
1234*)
1235  case $ac_top_srcdir in
1236  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1237  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1238  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1239  esac;;
1240esac
1241
1242    cd $ac_dir
1243    # Check for guested configure; otherwise get Cygnus style configure.
1244    if test -f $ac_srcdir/configure.gnu; then
1245      echo
1246      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1247    elif test -f $ac_srcdir/configure; then
1248      echo
1249      $SHELL $ac_srcdir/configure  --help=recursive
1250    elif test -f $ac_srcdir/configure.ac ||
1251           test -f $ac_srcdir/configure.in; then
1252      echo
1253      $ac_configure --help
1254    else
1255      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1256    fi
1257    cd $ac_popdir
1258  done
1259fi
1260
1261test -n "$ac_init_help" && exit 0
1262if $ac_init_version; then
1263  cat <<\_ACEOF
1264Clp configure 1.14
1265generated by GNU Autoconf 2.59
1266
1267Copyright (C) 2003 Free Software Foundation, Inc.
1268This configure script is free software; the Free Software Foundation
1269gives unlimited permission to copy, distribute and modify it.
1270
1271
1272Copyright 2006 International Business Machines and others.
1273All Rights Reserved.
1274This file is part of the open source package Coin which is distributed
1275under the Eclipse Public License.
1276_ACEOF
1277  exit 0
1278fi
1279exec 5>config.log
1280cat >&5 <<_ACEOF
1281This file contains any messages produced by compilers while
1282running configure, to aid debugging if configure makes a mistake.
1283
1284It was created by Clp $as_me 1.14, which was
1285generated by GNU Autoconf 2.59.  Invocation command line was
1286
1287  $ $0 $@
1288
1289_ACEOF
1290{
1291cat <<_ASUNAME
1292## --------- ##
1293## Platform. ##
1294## --------- ##
1295
1296hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1297uname -m = `(uname -m) 2>/dev/null || echo unknown`
1298uname -r = `(uname -r) 2>/dev/null || echo unknown`
1299uname -s = `(uname -s) 2>/dev/null || echo unknown`
1300uname -v = `(uname -v) 2>/dev/null || echo unknown`
1301
1302/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1303/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1304
1305/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1306/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1307/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1308hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1309/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1310/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1311/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1312
1313_ASUNAME
1314
1315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1316for as_dir in $PATH
1317do
1318  IFS=$as_save_IFS
1319  test -z "$as_dir" && as_dir=.
1320  echo "PATH: $as_dir"
1321done
1322
1323} >&5
1324
1325cat >&5 <<_ACEOF
1326
1327
1328## ----------- ##
1329## Core tests. ##
1330## ----------- ##
1331
1332_ACEOF
1333
1334
1335# Keep a trace of the command line.
1336# Strip out --no-create and --no-recursion so they do not pile up.
1337# Strip out --silent because we don't want to record it for future runs.
1338# Also quote any args containing shell meta-characters.
1339# Make two passes to allow for proper duplicate-argument suppression.
1340ac_configure_args=
1341ac_configure_args0=
1342ac_configure_args1=
1343ac_sep=
1344ac_must_keep_next=false
1345for ac_pass in 1 2
1346do
1347  for ac_arg
1348  do
1349    case $ac_arg in
1350    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1351    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1352    | -silent | --silent | --silen | --sile | --sil)
1353      continue ;;
1354    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1356    esac
1357    case $ac_pass in
1358    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1359    2)
1360      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1361      if test $ac_must_keep_next = true; then
1362        ac_must_keep_next=false # Got value, back to normal.
1363      else
1364        case $ac_arg in
1365          *=* | --config-cache | -C | -disable-* | --disable-* \
1366          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1367          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1368          | -with-* | --with-* | -without-* | --without-* | --x)
1369            case "$ac_configure_args0 " in
1370              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1371            esac
1372            ;;
1373          -* ) ac_must_keep_next=true ;;
1374        esac
1375      fi
1376      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1377      # Get rid of the leading space.
1378      ac_sep=" "
1379      ;;
1380    esac
1381  done
1382done
1383$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1384$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1385
1386# When interrupted or exit'd, cleanup temporary files, and complete
1387# config.log.  We remove comments because anyway the quotes in there
1388# would cause problems or look ugly.
1389# WARNING: Be sure not to use single quotes in there, as some shells,
1390# such as our DU 5.0 friend, will then `close' the trap.
1391trap 'exit_status=$?
1392  # Save into config.log some information that might help in debugging.
1393  {
1394    echo
1395
1396    cat <<\_ASBOX
1397## ---------------- ##
1398## Cache variables. ##
1399## ---------------- ##
1400_ASBOX
1401    echo
1402    # The following way of writing the cache mishandles newlines in values,
1403{
1404  (set) 2>&1 |
1405    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1406    *ac_space=\ *)
1407      sed -n \
1408        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1409          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1410      ;;
1411    *)
1412      sed -n \
1413        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1414      ;;
1415    esac;
1416}
1417    echo
1418
1419    cat <<\_ASBOX
1420## ----------------- ##
1421## Output variables. ##
1422## ----------------- ##
1423_ASBOX
1424    echo
1425    for ac_var in $ac_subst_vars
1426    do
1427      eval ac_val=$`echo $ac_var`
1428      echo "$ac_var='"'"'$ac_val'"'"'"
1429    done | sort
1430    echo
1431
1432    if test -n "$ac_subst_files"; then
1433      cat <<\_ASBOX
1434## ------------- ##
1435## Output files. ##
1436## ------------- ##
1437_ASBOX
1438      echo
1439      for ac_var in $ac_subst_files
1440      do
1441        eval ac_val=$`echo $ac_var`
1442        echo "$ac_var='"'"'$ac_val'"'"'"
1443      done | sort
1444      echo
1445    fi
1446
1447    if test -s confdefs.h; then
1448      cat <<\_ASBOX
1449## ----------- ##
1450## confdefs.h. ##
1451## ----------- ##
1452_ASBOX
1453      echo
1454      sed "/^$/d" confdefs.h | sort
1455      echo
1456    fi
1457    test "$ac_signal" != 0 &&
1458      echo "$as_me: caught signal $ac_signal"
1459    echo "$as_me: exit $exit_status"
1460  } >&5
1461  rm -f core *.core &&
1462  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1463    exit $exit_status
1464     ' 0
1465for ac_signal in 1 2 13 15; do
1466  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1467done
1468ac_signal=0
1469
1470# confdefs.h avoids OS command line length limits that DEFS can exceed.
1471rm -rf conftest* confdefs.h
1472# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1473echo >confdefs.h
1474
1475# Predefined preprocessor variables.
1476
1477cat >>confdefs.h <<_ACEOF
1478#define PACKAGE_NAME "$PACKAGE_NAME"
1479_ACEOF
1480
1481
1482cat >>confdefs.h <<_ACEOF
1483#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1484_ACEOF
1485
1486
1487cat >>confdefs.h <<_ACEOF
1488#define PACKAGE_VERSION "$PACKAGE_VERSION"
1489_ACEOF
1490
1491
1492cat >>confdefs.h <<_ACEOF
1493#define PACKAGE_STRING "$PACKAGE_STRING"
1494_ACEOF
1495
1496
1497cat >>confdefs.h <<_ACEOF
1498#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1499_ACEOF
1500
1501
1502# Let the site file select an alternate cache file if it wants to.
1503# Prefer explicitly selected file to automatically selected ones.
1504if test -z "$CONFIG_SITE"; then
1505  if test "x$prefix" != xNONE; then
1506    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1507  else
1508    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1509  fi
1510fi
1511for ac_site_file in $CONFIG_SITE; do
1512  if test -r "$ac_site_file"; then
1513    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1514echo "$as_me: loading site script $ac_site_file" >&6;}
1515    sed 's/^/| /' "$ac_site_file" >&5
1516    . "$ac_site_file"
1517  fi
1518done
1519
1520if test -r "$cache_file"; then
1521  # Some versions of bash will fail to source /dev/null (special
1522  # files actually), so we avoid doing that.
1523  if test -f "$cache_file"; then
1524    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1525echo "$as_me: loading cache $cache_file" >&6;}
1526    case $cache_file in
1527      [\\/]* | ?:[\\/]* ) . $cache_file;;
1528      *)                      . ./$cache_file;;
1529    esac
1530  fi
1531else
1532  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1533echo "$as_me: creating cache $cache_file" >&6;}
1534  >$cache_file
1535fi
1536
1537# Check that the precious variables saved in the cache have kept the same
1538# value.
1539ac_cache_corrupted=false
1540for ac_var in `(set) 2>&1 |
1541               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1542  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1543  eval ac_new_set=\$ac_env_${ac_var}_set
1544  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1545  eval ac_new_val="\$ac_env_${ac_var}_value"
1546  case $ac_old_set,$ac_new_set in
1547    set,)
1548      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1549echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1550      ac_cache_corrupted=: ;;
1551    ,set)
1552      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1553echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1554      ac_cache_corrupted=: ;;
1555    ,);;
1556    *)
1557      if test "x$ac_old_val" != "x$ac_new_val"; then
1558        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1559echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1560        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1561echo "$as_me:   former value:  $ac_old_val" >&2;}
1562        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1563echo "$as_me:   current value: $ac_new_val" >&2;}
1564        ac_cache_corrupted=:
1565      fi;;
1566  esac
1567  # Pass precious variables to config.status.
1568  if test "$ac_new_set" = set; then
1569    case $ac_new_val in
1570    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1571      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1572    *) ac_arg=$ac_var=$ac_new_val ;;
1573    esac
1574    case " $ac_configure_args " in
1575      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1576      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1577    esac
1578  fi
1579done
1580if $ac_cache_corrupted; then
1581  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1582echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1583  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1584echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1585   { (exit 1); exit 1; }; }
1586fi
1587
1588ac_ext=c
1589ac_cpp='$CPP $CPPFLAGS'
1590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1592ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1620
1621
1622
1623# List one file in the package so that the configure script can test
1624# whether the package is actually there
1625
1626
1627# Where should everything be installed by default?  Here, we want it
1628# to be installed directly in 'bin', 'lib', 'include' subdirectories
1629# of the directory where configure is run.  The default would be
1630# /usr/local.
1631
1632
1633#############################################################################
1634#                         Standard build tool stuff                         #
1635#############################################################################
1636
1637# Get the system type
1638ac_aux_dir=
1639for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1640  if 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/install.sh; then
1645    ac_aux_dir=$ac_dir
1646    ac_install_sh="$ac_aux_dir/install.sh -c"
1647    break
1648  elif test -f $ac_dir/shtool; then
1649    ac_aux_dir=$ac_dir
1650    ac_install_sh="$ac_aux_dir/shtool install -c"
1651    break
1652  fi
1653done
1654if test -z "$ac_aux_dir"; then
1655  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1656echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1657   { (exit 1); exit 1; }; }
1658fi
1659ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1660ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1661ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1662
1663# Make sure we can run config.sub.
1664$ac_config_sub sun4 >/dev/null 2>&1 ||
1665  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1666echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1667   { (exit 1); exit 1; }; }
1668
1669echo "$as_me:$LINENO: checking build system type" >&5
1670echo $ECHO_N "checking build system type... $ECHO_C" >&6
1671if test "${ac_cv_build+set}" = set; then
1672  echo $ECHO_N "(cached) $ECHO_C" >&6
1673else
1674  ac_cv_build_alias=$build_alias
1675test -z "$ac_cv_build_alias" &&
1676  ac_cv_build_alias=`$ac_config_guess`
1677test -z "$ac_cv_build_alias" &&
1678  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1679echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1680   { (exit 1); exit 1; }; }
1681ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1682  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1683echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1684   { (exit 1); exit 1; }; }
1685
1686fi
1687echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1688echo "${ECHO_T}$ac_cv_build" >&6
1689build=$ac_cv_build
1690build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695
1696# If this project depends on external projects, the Externals file in
1697# the source root directory contains definition of where to find those
1698# externals.  The following macro ensures that those externals are
1699# retrieved by svn if they are not there yet.
1700
1701# As backup, we make sure we don't loose an FLIBS if it has been set
1702# by the user
1703save_FLIBS="$FLIBS"
1704
1705# A useful makefile conditional that is always false
1706
1707
1708if false; then
1709  ALWAYS_FALSE_TRUE=
1710  ALWAYS_FALSE_FALSE='#'
1711else
1712  ALWAYS_FALSE_TRUE='#'
1713  ALWAYS_FALSE_FALSE=
1714fi
1715
1716
1717# We set the following variable so that we know later in AC_COIN_FINALIZE
1718# that we are in a project main directory
1719coin_projectdir=yes
1720
1721# Set the project's version number
1722if test "xClp" != x; then
1723
1724cat >>confdefs.h <<_ACEOF
1725#define CLP_VERSION "$PACKAGE_VERSION"
1726_ACEOF
1727
1728fi
1729
1730# Set the project's SVN revision number. The complicated sed expression
1731# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1732# as a single number.
1733# Extract the first word of "svnversion", so it can be a program name with args.
1734set dummy svnversion; ac_word=$2
1735echo "$as_me:$LINENO: checking for $ac_word" >&5
1736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1737if test "${ac_cv_prog_have_svnversion+set}" = set; then
1738  echo $ECHO_N "(cached) $ECHO_C" >&6
1739else
1740  if test -n "$have_svnversion"; then
1741  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1742else
1743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744for as_dir in $PATH
1745do
1746  IFS=$as_save_IFS
1747  test -z "$as_dir" && as_dir=.
1748  for ac_exec_ext in '' $ac_executable_extensions; do
1749  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1750    ac_cv_prog_have_svnversion="yes"
1751    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1752    break 2
1753  fi
1754done
1755done
1756
1757  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1758fi
1759fi
1760have_svnversion=$ac_cv_prog_have_svnversion
1761if test -n "$have_svnversion"; then
1762  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1763echo "${ECHO_T}$have_svnversion" >&6
1764else
1765  echo "$as_me:$LINENO: result: no" >&5
1766echo "${ECHO_T}no" >&6
1767fi
1768
1769if test "x$have_svnversion" = xyes && test "xClp" != x; then
1770
1771  svn_rev_tmp=`cd $srcdir/$coin_has_clp ; svnversion`
1772  CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1773  if test $CLP_SVN_REV != exported; then
1774
1775cat >>confdefs.h <<_ACEOF
1776#define CLP_SVN_REV $CLP_SVN_REV
1777_ACEOF
1778
1779  fi
1780fi
1781
1782# Capture libtool library version, if given.
1783
1784
1785
1786# Check if user wants to produce debugging code
1787
1788echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1789echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1790
1791# Check whether --enable-debug or --disable-debug was given.
1792if test "${enable_debug+set}" = set; then
1793  enableval="$enable_debug"
1794  case "${enableval}" in
1795   yes) coin_debug_compile=true
1796        if test "${enable_shared+set}" = set; then :; else
1797          enable_shared=no
1798        fi
1799        ;;
1800   no)  coin_debug_compile=false
1801        ;;
1802   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1803echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1804   { (exit 1); exit 1; }; }
1805        ;;
1806esac
1807else
1808  coin_debug_compile=false
1809fi;
1810
1811# Check whether --enable-debug-clp or --disable-debug-clp was given.
1812if test "${enable_debug_clp+set}" = set; then
1813  enableval="$enable_debug_clp"
1814  case "${enableval}" in
1815    yes) coin_debug_compile=true
1816         enable_shared=no
1817         ;;
1818    no)  coin_debug_compile=false
1819         ;;
1820    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1821echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1822   { (exit 1); exit 1; }; }
1823         ;;
1824 esac
1825else
1826  :
1827fi;
1828
1829 # m4_ifvaln([Clp],
1830
1831if test $coin_debug_compile = true; then
1832  echo "$as_me:$LINENO: result: yes" >&5
1833echo "${ECHO_T}yes" >&6
1834else
1835  echo "$as_me:$LINENO: result: no" >&5
1836echo "${ECHO_T}no" >&6
1837fi
1838
1839
1840# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1841if test "${with_clp_verbosity+set}" = set; then
1842  withval="$with_clp_verbosity"
1843  if test "$withval" = yes; then
1844                withval=1
1845              fi
1846              coin_clp_verbosity=$withval
1847else
1848  coin_clp_verbosity=0
1849fi;
1850
1851cat >>confdefs.h <<_ACEOF
1852#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1853_ACEOF
1854
1855
1856
1857# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1858if test "${with_clp_checklevel+set}" = set; then
1859  withval="$with_clp_checklevel"
1860  if test "$withval" = yes; then
1861                withval=1
1862              fi
1863              coin_clp_checklevel=$withval
1864else
1865  coin_clp_checklevel=0
1866fi;
1867
1868cat >>confdefs.h <<_ACEOF
1869#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1870_ACEOF
1871
1872
1873# We use the following variable to have a string with the upper case
1874# version of the project name
1875COIN_PRJCT=CLP
1876
1877
1878 # m4_ifvaln([Clp],
1879
1880
1881
1882# Get the name of the C++ compiler and appropriate compiler options
1883case $build in
1884  *-mingw*)
1885    if test "${LD+set}" = set; then :; else
1886      LD=link
1887    fi
1888    ;;
1889 esac
1890 case $enable_doscompile in
1891   msvc)
1892     if test "x${LD+set}" = xset; then :; else
1893       LD=link
1894     fi
1895     ;;
1896 esac
1897
1898
1899 # Check whether --enable-doscompile or --disable-doscompile was given.
1900if test "${enable_doscompile+set}" = set; then
1901  enableval="$enable_doscompile"
1902  if test "$enable_doscompile" != no; then
1903     case $build in
1904       *-cygwin* | *-mingw*) ;;
1905       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1906echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1907   { (exit 1); exit 1; }; } ;;
1908     esac
1909   fi
1910else
1911  enable_doscompile=no
1912fi;
1913 case "$enable_doscompile" in
1914   mingw)
1915     case $build in
1916       *-mingw*) enable_doscompile=no ;;
1917     esac
1918     ;;
1919   msvc|no) ;;
1920   yes) enable_doscompile=mingw ;;
1921   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1922                    Try configure --help=recursive." >&5
1923echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1924                    Try configure --help=recursive." >&2;}
1925   { (exit 1); exit 1; }; }
1926      ;;
1927  esac
1928  if test "$enable_doscompile" != no ; then
1929    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1930echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1931  fi
1932
1933
1934
1935
1936ac_ext=c
1937ac_cpp='$CPP $CPPFLAGS'
1938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1940ac_compiler_gnu=$ac_cv_c_compiler_gnu
1941
1942
1943# For consistency, we set the C compiler to the same value of the C++
1944# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1945if test x"$CXX" != x; then
1946  case "$CXX" in
1947    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1948      if test x"$CC" = x; then
1949        CC="$CXX"
1950        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1951echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1952      fi
1953      ;;
1954  esac
1955fi
1956
1957# add automake conditional so we can recognize cl compiler in makefile
1958coin_cc_is_cl=false
1959if test x"$CXX" != x; then
1960  case "$CXX" in
1961    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1962      coin_cc_is_cl=true
1963      ;;
1964  esac
1965fi
1966
1967
1968if test $coin_cc_is_cl = true; then
1969  COIN_CC_IS_CL_TRUE=
1970  COIN_CC_IS_CL_FALSE='#'
1971else
1972  COIN_CC_IS_CL_TRUE='#'
1973  COIN_CC_IS_CL_FALSE=
1974fi
1975
1976
1977
1978
1979
1980
1981
1982coin_has_cc=yes
1983
1984save_cflags="$CFLAGS"
1985
1986# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1987# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1988# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1989# compiler. In this case, put cc after gcc.
1990
1991case $build in
1992  *-cygwin* | *-mingw*)
1993             if test "$enable_doscompile" = msvc ; then
1994               comps="icl cl"
1995             else
1996               comps="gcc cl"
1997             fi ;;
1998  *-*-solaris*)
1999             # Extract the first word of "cc", so it can be a program name with args.
2000set dummy cc; ac_word=$2
2001echo "$as_me:$LINENO: checking for $ac_word" >&5
2002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2004  echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006  if test -n "$sol_cc_compiler"; then
2007  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2008else
2009  ac_prog_rejected=no
2010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011for as_dir in $PATH
2012do
2013  IFS=$as_save_IFS
2014  test -z "$as_dir" && as_dir=.
2015  for ac_exec_ext in '' $ac_executable_extensions; do
2016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2018       ac_prog_rejected=yes
2019       continue
2020     fi
2021    ac_cv_prog_sol_cc_compiler="cc"
2022    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023    break 2
2024  fi
2025done
2026done
2027
2028if test $ac_prog_rejected = yes; then
2029  # We found a bogon in the path, so make sure we never use it.
2030  set dummy $ac_cv_prog_sol_cc_compiler
2031  shift
2032  if test $# != 0; then
2033    # We chose a different compiler from the bogus one.
2034    # However, it has the same basename, so the bogon will be chosen
2035    # first if we set sol_cc_compiler to just the basename; use the full file name.
2036    shift
2037    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2038  fi
2039fi
2040fi
2041fi
2042sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2043if test -n "$sol_cc_compiler"; then
2044  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2045echo "${ECHO_T}$sol_cc_compiler" >&6
2046else
2047  echo "$as_me:$LINENO: result: no" >&5
2048echo "${ECHO_T}no" >&6
2049fi
2050
2051             if test "$sol_cc_compiler" = "cc" ; then
2052               comps="cc xlc gcc pgcc icc"
2053             else
2054               comps="xlc gcc pgcc icc cc"
2055             fi
2056             ;;
2057  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2058  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2059  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2060esac
2061
2062# We delete the cached value, since the test might not have been
2063# performed with our choice of compilers earlier
2064$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2065# AC_MSG_NOTICE([C compiler candidates: $comps])
2066ac_ext=c
2067ac_cpp='$CPP $CPPFLAGS'
2068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2070ac_compiler_gnu=$ac_cv_c_compiler_gnu
2071if test -n "$ac_tool_prefix"; then
2072  for ac_prog in $comps
2073  do
2074    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2075set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2076echo "$as_me:$LINENO: checking for $ac_word" >&5
2077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2078if test "${ac_cv_prog_CC+set}" = set; then
2079  echo $ECHO_N "(cached) $ECHO_C" >&6
2080else
2081  if test -n "$CC"; then
2082  ac_cv_prog_CC="$CC" # Let the user override the test.
2083else
2084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2085for as_dir in $PATH
2086do
2087  IFS=$as_save_IFS
2088  test -z "$as_dir" && as_dir=.
2089  for ac_exec_ext in '' $ac_executable_extensions; do
2090  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2092    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2093    break 2
2094  fi
2095done
2096done
2097
2098fi
2099fi
2100CC=$ac_cv_prog_CC
2101if test -n "$CC"; then
2102  echo "$as_me:$LINENO: result: $CC" >&5
2103echo "${ECHO_T}$CC" >&6
2104else
2105  echo "$as_me:$LINENO: result: no" >&5
2106echo "${ECHO_T}no" >&6
2107fi
2108
2109    test -n "$CC" && break
2110  done
2111fi
2112if test -z "$CC"; then
2113  ac_ct_CC=$CC
2114  for ac_prog in $comps
2115do
2116  # Extract the first word of "$ac_prog", so it can be a program name with args.
2117set dummy $ac_prog; ac_word=$2
2118echo "$as_me:$LINENO: checking for $ac_word" >&5
2119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2121  echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123  if test -n "$ac_ct_CC"; then
2124  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2125else
2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129  IFS=$as_save_IFS
2130  test -z "$as_dir" && as_dir=.
2131  for ac_exec_ext in '' $ac_executable_extensions; do
2132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133    ac_cv_prog_ac_ct_CC="$ac_prog"
2134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135    break 2
2136  fi
2137done
2138done
2139
2140fi
2141fi
2142ac_ct_CC=$ac_cv_prog_ac_ct_CC
2143if test -n "$ac_ct_CC"; then
2144  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2145echo "${ECHO_T}$ac_ct_CC" >&6
2146else
2147  echo "$as_me:$LINENO: result: no" >&5
2148echo "${ECHO_T}no" >&6
2149fi
2150
2151  test -n "$ac_ct_CC" && break
2152done
2153
2154  CC=$ac_ct_CC
2155fi
2156
2157
2158test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2159See \`config.log' for more details." >&5
2160echo "$as_me: error: no acceptable C compiler found in \$PATH
2161See \`config.log' for more details." >&2;}
2162   { (exit 1); exit 1; }; }
2163
2164# Provide some information about the compiler.
2165echo "$as_me:$LINENO:" \
2166     "checking for C compiler version" >&5
2167ac_compiler=`set X $ac_compile; echo $2`
2168{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2169  (eval $ac_compiler --version </dev/null >&5) 2>&5
2170  ac_status=$?
2171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172  (exit $ac_status); }
2173{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2174  (eval $ac_compiler -v </dev/null >&5) 2>&5
2175  ac_status=$?
2176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177  (exit $ac_status); }
2178{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2179  (eval $ac_compiler -V </dev/null >&5) 2>&5
2180  ac_status=$?
2181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182  (exit $ac_status); }
2183
2184cat >conftest.$ac_ext <<_ACEOF
2185/* confdefs.h.  */
2186_ACEOF
2187cat confdefs.h >>conftest.$ac_ext
2188cat >>conftest.$ac_ext <<_ACEOF
2189/* end confdefs.h.  */
2190
2191int
2192main ()
2193{
2194
2195  ;
2196  return 0;
2197}
2198_ACEOF
2199ac_clean_files_save=$ac_clean_files
2200ac_clean_files="$ac_clean_files a.out a.exe b.out"
2201# Try to create an executable without -o first, disregard a.out.
2202# It will help us diagnose broken compilers, and finding out an intuition
2203# of exeext.
2204echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2205echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2206ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2207if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2208  (eval $ac_link_default) 2>&5
2209  ac_status=$?
2210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2211  (exit $ac_status); }; then
2212  # Find the output, starting from the most likely.  This scheme is
2213# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2214# resort.
2215
2216# Be careful to initialize this variable, since it used to be cached.
2217# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2218ac_cv_exeext=
2219# b.out is created by i960 compilers.
2220for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2221do
2222  test -f "$ac_file" || continue
2223  case $ac_file in
2224    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2225        ;;
2226    conftest.$ac_ext )
2227        # This is the source file.
2228        ;;
2229    [ab].out )
2230        # We found the default executable, but exeext='' is most
2231        # certainly right.
2232        break;;
2233    *.* )
2234        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2235        # FIXME: I believe we export ac_cv_exeext for Libtool,
2236        # but it would be cool to find out if it's true.  Does anybody
2237        # maintain Libtool? --akim.
2238        export ac_cv_exeext
2239        break;;
2240    * )
2241        break;;
2242  esac
2243done
2244else
2245  echo "$as_me: failed program was:" >&5
2246sed 's/^/| /' conftest.$ac_ext >&5
2247
2248{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2249See \`config.log' for more details." >&5
2250echo "$as_me: error: C compiler cannot create executables
2251See \`config.log' for more details." >&2;}
2252   { (exit 77); exit 77; }; }
2253fi
2254
2255ac_exeext=$ac_cv_exeext
2256echo "$as_me:$LINENO: result: $ac_file" >&5
2257echo "${ECHO_T}$ac_file" >&6
2258
2259# Check the compiler produces executables we can run.  If not, either
2260# the compiler is broken, or we cross compile.
2261echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2262echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2263# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2264# If not cross compiling, check that we can run a simple program.
2265if test "$cross_compiling" != yes; then
2266  if { ac_try='./$ac_file'
2267  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268  (eval $ac_try) 2>&5
2269  ac_status=$?
2270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271  (exit $ac_status); }; }; then
2272    cross_compiling=no
2273  else
2274    if test "$cross_compiling" = maybe; then
2275        cross_compiling=yes
2276    else
2277        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2278If you meant to cross compile, use \`--host'.
2279See \`config.log' for more details." >&5
2280echo "$as_me: error: cannot run C compiled programs.
2281If you meant to cross compile, use \`--host'.
2282See \`config.log' for more details." >&2;}
2283   { (exit 1); exit 1; }; }
2284    fi
2285  fi
2286fi
2287echo "$as_me:$LINENO: result: yes" >&5
2288echo "${ECHO_T}yes" >&6
2289
2290rm -f a.out a.exe conftest$ac_cv_exeext b.out
2291ac_clean_files=$ac_clean_files_save
2292# Check the compiler produces executables we can run.  If not, either
2293# the compiler is broken, or we cross compile.
2294echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2295echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2296echo "$as_me:$LINENO: result: $cross_compiling" >&5
2297echo "${ECHO_T}$cross_compiling" >&6
2298
2299echo "$as_me:$LINENO: checking for suffix of executables" >&5
2300echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2302  (eval $ac_link) 2>&5
2303  ac_status=$?
2304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305  (exit $ac_status); }; then
2306  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2307# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2308# work properly (i.e., refer to `conftest.exe'), while it won't with
2309# `rm'.
2310for ac_file in conftest.exe conftest conftest.*; do
2311  test -f "$ac_file" || continue
2312  case $ac_file in
2313    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2314    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2315          export ac_cv_exeext
2316          break;;
2317    * ) break;;
2318  esac
2319done
2320else
2321  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2322See \`config.log' for more details." >&5
2323echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2324See \`config.log' for more details." >&2;}
2325   { (exit 1); exit 1; }; }
2326fi
2327
2328rm -f conftest$ac_cv_exeext
2329echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2330echo "${ECHO_T}$ac_cv_exeext" >&6
2331
2332rm -f conftest.$ac_ext
2333EXEEXT=$ac_cv_exeext
2334ac_exeext=$EXEEXT
2335echo "$as_me:$LINENO: checking for suffix of object files" >&5
2336echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2337if test "${ac_cv_objext+set}" = set; then
2338  echo $ECHO_N "(cached) $ECHO_C" >&6
2339else
2340  cat >conftest.$ac_ext <<_ACEOF
2341/* confdefs.h.  */
2342_ACEOF
2343cat confdefs.h >>conftest.$ac_ext
2344cat >>conftest.$ac_ext <<_ACEOF
2345/* end confdefs.h.  */
2346
2347int
2348main ()
2349{
2350
2351  ;
2352  return 0;
2353}
2354_ACEOF
2355rm -f conftest.o conftest.obj
2356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357  (eval $ac_compile) 2>&5
2358  ac_status=$?
2359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360  (exit $ac_status); }; then
2361  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2362  case $ac_file in
2363    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2364    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2365       break;;
2366  esac
2367done
2368else
2369  echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2373See \`config.log' for more details." >&5
2374echo "$as_me: error: cannot compute suffix of object files: cannot compile
2375See \`config.log' for more details." >&2;}
2376   { (exit 1); exit 1; }; }
2377fi
2378
2379rm -f conftest.$ac_cv_objext conftest.$ac_ext
2380fi
2381echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2382echo "${ECHO_T}$ac_cv_objext" >&6
2383OBJEXT=$ac_cv_objext
2384ac_objext=$OBJEXT
2385echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2386echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2387if test "${ac_cv_c_compiler_gnu+set}" = set; then
2388  echo $ECHO_N "(cached) $ECHO_C" >&6
2389else
2390  cat >conftest.$ac_ext <<_ACEOF
2391/* confdefs.h.  */
2392_ACEOF
2393cat confdefs.h >>conftest.$ac_ext
2394cat >>conftest.$ac_ext <<_ACEOF
2395/* end confdefs.h.  */
2396
2397int
2398main ()
2399{
2400#ifndef __GNUC__
2401       choke me
2402#endif
2403
2404  ;
2405  return 0;
2406}
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417         { ac_try='test -z "$ac_c_werror_flag"
2418                         || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424         { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  ac_compiler_gnu=yes
2431else
2432  echo "$as_me: failed program was:" >&5
2433sed 's/^/| /' conftest.$ac_ext >&5
2434
2435ac_compiler_gnu=no
2436fi
2437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2438ac_cv_c_compiler_gnu=$ac_compiler_gnu
2439
2440fi
2441echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2442echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2443GCC=`test $ac_compiler_gnu = yes && echo yes`
2444ac_test_CFLAGS=${CFLAGS+set}
2445ac_save_CFLAGS=$CFLAGS
2446CFLAGS="-g"
2447echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2448echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2449if test "${ac_cv_prog_cc_g+set}" = set; then
2450  echo $ECHO_N "(cached) $ECHO_C" >&6
2451else
2452  cat >conftest.$ac_ext <<_ACEOF
2453/* confdefs.h.  */
2454_ACEOF
2455cat confdefs.h >>conftest.$ac_ext
2456cat >>conftest.$ac_ext <<_ACEOF
2457/* end confdefs.h.  */
2458
2459int
2460main ()
2461{
2462
2463  ;
2464  return 0;
2465}
2466_ACEOF
2467rm -f conftest.$ac_objext
2468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469  (eval $ac_compile) 2>conftest.er1
2470  ac_status=$?
2471  grep -v '^ *+' conftest.er1 >conftest.err
2472  rm -f conftest.er1
2473  cat conftest.err >&5
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); } &&
2476         { ac_try='test -z "$ac_c_werror_flag"
2477                         || test ! -s conftest.err'
2478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479  (eval $ac_try) 2>&5
2480  ac_status=$?
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); }; } &&
2483         { ac_try='test -s conftest.$ac_objext'
2484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485  (eval $ac_try) 2>&5
2486  ac_status=$?
2487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488  (exit $ac_status); }; }; then
2489  ac_cv_prog_cc_g=yes
2490else
2491  echo "$as_me: failed program was:" >&5
2492sed 's/^/| /' conftest.$ac_ext >&5
2493
2494ac_cv_prog_cc_g=no
2495fi
2496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2497fi
2498echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2499echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2500if test "$ac_test_CFLAGS" = set; then
2501  CFLAGS=$ac_save_CFLAGS
2502elif test $ac_cv_prog_cc_g = yes; then
2503  if test "$GCC" = yes; then
2504    CFLAGS="-g -O2"
2505  else
2506    CFLAGS="-g"
2507  fi
2508else
2509  if test "$GCC" = yes; then
2510    CFLAGS="-O2"
2511  else
2512    CFLAGS=
2513  fi
2514fi
2515echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2516echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2517if test "${ac_cv_prog_cc_stdc+set}" = set; then
2518  echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520  ac_cv_prog_cc_stdc=no
2521ac_save_CC=$CC
2522cat >conftest.$ac_ext <<_ACEOF
2523/* confdefs.h.  */
2524_ACEOF
2525cat confdefs.h >>conftest.$ac_ext
2526cat >>conftest.$ac_ext <<_ACEOF
2527/* end confdefs.h.  */
2528#include <stdarg.h>
2529#include <stdio.h>
2530#include <sys/types.h>
2531#include <sys/stat.h>
2532/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2533struct buf { int x; };
2534FILE * (*rcsopen) (struct buf *, struct stat *, int);
2535static char *e (p, i)
2536     char **p;
2537     int i;
2538{
2539  return p[i];
2540}
2541static char *f (char * (*g) (char **, int), char **p, ...)
2542{
2543  char *s;
2544  va_list v;
2545  va_start (v,p);
2546  s = g (p, va_arg (v,int));
2547  va_end (v);
2548  return s;
2549}
2550
2551/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2552   function prototypes and stuff, but not '\xHH' hex character constants.
2553   These don't provoke an error unfortunately, instead are silently treated
2554   as 'x'.  The following induces an error, until -std1 is added to get
2555   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2556   array size at least.  It's necessary to write '\x00'==0 to get something
2557   that's true only with -std1.  */
2558int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2559
2560int test (int i, double x);
2561struct s1 {int (*f) (int a);};
2562struct s2 {int (*f) (double a);};
2563int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2564int argc;
2565char **argv;
2566int
2567main ()
2568{
2569return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2570  ;
2571  return 0;
2572}
2573_ACEOF
2574# Don't try gcc -ansi; that turns off useful extensions and
2575# breaks some systems' header files.
2576# AIX                   -qlanglvl=ansi
2577# Ultrix and OSF/1      -std1
2578# HP-UX 10.20 and later -Ae
2579# HP-UX older versions  -Aa -D_HPUX_SOURCE
2580# SVR4                  -Xc -D__EXTENSIONS__
2581for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2582do
2583  CC="$ac_save_CC $ac_arg"
2584  rm -f conftest.$ac_objext
2585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2586  (eval $ac_compile) 2>conftest.er1
2587  ac_status=$?
2588  grep -v '^ *+' conftest.er1 >conftest.err
2589  rm -f conftest.er1
2590  cat conftest.err >&5
2591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592  (exit $ac_status); } &&
2593         { ac_try='test -z "$ac_c_werror_flag"
2594                         || test ! -s conftest.err'
2595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596  (eval $ac_try) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; } &&
2600         { ac_try='test -s conftest.$ac_objext'
2601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602  (eval $ac_try) 2>&5
2603  ac_status=$?
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }; }; then
2606  ac_cv_prog_cc_stdc=$ac_arg
2607break
2608else
2609  echo "$as_me: failed program was:" >&5
2610sed 's/^/| /' conftest.$ac_ext >&5
2611
2612fi
2613rm -f conftest.err conftest.$ac_objext
2614done
2615rm -f conftest.$ac_ext conftest.$ac_objext
2616CC=$ac_save_CC
2617
2618fi
2619
2620case "x$ac_cv_prog_cc_stdc" in
2621  x|xno)
2622    echo "$as_me:$LINENO: result: none needed" >&5
2623echo "${ECHO_T}none needed" >&6 ;;
2624  *)
2625    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2626echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2627    CC="$CC $ac_cv_prog_cc_stdc" ;;
2628esac
2629
2630# Some people use a C++ compiler to compile C.  Since we use `exit',
2631# in C++ we need to declare it.  In case someone uses the same compiler
2632# for both compiling C and C++ we need to have the C++ compiler decide
2633# the declaration of exit, since it's the most demanding environment.
2634cat >conftest.$ac_ext <<_ACEOF
2635#ifndef __cplusplus
2636  choke me
2637#endif
2638_ACEOF
2639rm -f conftest.$ac_objext
2640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641  (eval $ac_compile) 2>conftest.er1
2642  ac_status=$?
2643  grep -v '^ *+' conftest.er1 >conftest.err
2644  rm -f conftest.er1
2645  cat conftest.err >&5
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); } &&
2648         { ac_try='test -z "$ac_c_werror_flag"
2649                         || test ! -s conftest.err'
2650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651  (eval $ac_try) 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; } &&
2655         { ac_try='test -s conftest.$ac_objext'
2656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657  (eval $ac_try) 2>&5
2658  ac_status=$?
2659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660  (exit $ac_status); }; }; then
2661  for ac_declaration in \
2662   '' \
2663   'extern "C" void std::exit (int) throw (); using std::exit;' \
2664   'extern "C" void std::exit (int); using std::exit;' \
2665   'extern "C" void exit (int) throw ();' \
2666   'extern "C" void exit (int);' \
2667   'void exit (int);'
2668do
2669  cat >conftest.$ac_ext <<_ACEOF
2670/* confdefs.h.  */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h.  */
2675$ac_declaration
2676#include <stdlib.h>
2677int
2678main ()
2679{
2680exit (42);
2681  ;
2682  return 0;
2683}
2684_ACEOF
2685rm -f conftest.$ac_objext
2686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2687  (eval $ac_compile) 2>conftest.er1
2688  ac_status=$?
2689  grep -v '^ *+' conftest.er1 >conftest.err
2690  rm -f conftest.er1
2691  cat conftest.err >&5
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); } &&
2694         { ac_try='test -z "$ac_c_werror_flag"
2695                         || test ! -s conftest.err'
2696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697  (eval $ac_try) 2>&5
2698  ac_status=$?
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); }; } &&
2701         { ac_try='test -s conftest.$ac_objext'
2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703  (eval $ac_try) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; }; then
2707  :
2708else
2709  echo "$as_me: failed program was:" >&5
2710sed 's/^/| /' conftest.$ac_ext >&5
2711
2712continue
2713fi
2714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2715  cat >conftest.$ac_ext <<_ACEOF
2716/* confdefs.h.  */
2717_ACEOF
2718cat confdefs.h >>conftest.$ac_ext
2719cat >>conftest.$ac_ext <<_ACEOF
2720/* end confdefs.h.  */
2721$ac_declaration
2722int
2723main ()
2724{
2725exit (42);
2726  ;
2727  return 0;
2728}
2729_ACEOF
2730rm -f conftest.$ac_objext
2731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732  (eval $ac_compile) 2>conftest.er1
2733  ac_status=$?
2734  grep -v '^ *+' conftest.er1 >conftest.err
2735  rm -f conftest.er1
2736  cat conftest.err >&5
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); } &&
2739         { ac_try='test -z "$ac_c_werror_flag"
2740                         || test ! -s conftest.err'
2741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742  (eval $ac_try) 2>&5
2743  ac_status=$?
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); }; } &&
2746         { ac_try='test -s conftest.$ac_objext'
2747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748  (eval $ac_try) 2>&5
2749  ac_status=$?
2750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751  (exit $ac_status); }; }; then
2752  break
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
2759done
2760rm -f conftest*
2761if test -n "$ac_declaration"; then
2762  echo '#ifdef __cplusplus' >>confdefs.h
2763  echo $ac_declaration      >>confdefs.h
2764  echo '#endif'             >>confdefs.h
2765fi
2766
2767else
2768  echo "$as_me: failed program was:" >&5
2769sed 's/^/| /' conftest.$ac_ext >&5
2770
2771fi
2772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773ac_ext=c
2774ac_cpp='$CPP $CPPFLAGS'
2775ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2776ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2777ac_compiler_gnu=$ac_cv_c_compiler_gnu
2778
2779if test -z "$CC" ; then
2780  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2781echo "$as_me: error: Failed to find a C compiler!" >&2;}
2782   { (exit 1); exit 1; }; }
2783fi
2784# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2785case "$CC" in
2786  cl* | */cl* | CL* | */CL* )
2787    if test "$ac_cv_prog_cc_g" = yes ; then
2788      ac_cv_prog_cc_g=no
2789      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2790echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2791    fi ;;
2792esac
2793CFLAGS="$save_cflags"
2794
2795# Check if a project specific CFLAGS variable has been set
2796if test x$COIN_PRJCT != x; then
2797  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2798  if test x$coin_tmp = xset; then
2799    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2800  fi
2801fi
2802
2803if test x"$CFLAGS" = x; then
2804
2805  coin_add_cflags=
2806  coin_opt_cflags=
2807  coin_dbg_cflags=
2808  coin_warn_cflags=
2809
2810  if test "$GCC" = "yes"; then
2811    case "$CC" in
2812      icc* | */icc*)
2813        ;;
2814      *)
2815        coin_opt_cflags="-O3"
2816        coin_add_cflags="-pipe"
2817        coin_dbg_cflags="-g"
2818        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2819        case $build in
2820          *-darwin*)
2821            ;;
2822          *)
2823            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2824            ;;
2825        esac
2826        case $enable_doscompile in
2827          mingw)
2828            CFLAGS="-mno-cygwin"
2829            cat >conftest.$ac_ext <<_ACEOF
2830/* confdefs.h.  */
2831_ACEOF
2832cat confdefs.h >>conftest.$ac_ext
2833cat >>conftest.$ac_ext <<_ACEOF
2834/* end confdefs.h.  */
2835
2836int
2837main ()
2838{
2839int i=0; i++;
2840  ;
2841  return 0;
2842}
2843_ACEOF
2844rm -f conftest.$ac_objext conftest$ac_exeext
2845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2846  (eval $ac_link) 2>conftest.er1
2847  ac_status=$?
2848  grep -v '^ *+' conftest.er1 >conftest.err
2849  rm -f conftest.er1
2850  cat conftest.err >&5
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); } &&
2853         { ac_try='test -z "$ac_c_werror_flag"
2854                         || test ! -s conftest.err'
2855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856  (eval $ac_try) 2>&5
2857  ac_status=$?
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); }; } &&
2860         { ac_try='test -s conftest$ac_exeext'
2861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862  (eval $ac_try) 2>&5
2863  ac_status=$?
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); }; }; then
2866  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2867else
2868  echo "$as_me: failed program was:" >&5
2869sed 's/^/| /' conftest.$ac_ext >&5
2870
2871fi
2872rm -f conftest.err conftest.$ac_objext \
2873      conftest$ac_exeext conftest.$ac_ext
2874            CFLAGS=
2875          ;;
2876        esac
2877    esac
2878  fi
2879  if test -z "$coin_opt_cflags"; then
2880    case $build in
2881      *-cygwin* | *-mingw*)
2882        case "$CC" in
2883          cl* | */cl* | CL* | */CL*)
2884            coin_opt_cflags='-MT -O2'
2885            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2886            coin_dbg_cflags='-MTd'
2887            ;;
2888          icl* | */icl* | ICL* | */ICL*)
2889            coin_opt_cflags='-MT -Ox'
2890            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2891            coin_dbg_cflags='-MTd -debug'
2892            ;;
2893        esac
2894        ;;
2895      *-linux-*)
2896        case "$CC" in
2897          icc* | */icc*)
2898            coin_opt_cflags="-O3 -ip -mp1"
2899            coin_add_cflags=""
2900            coin_dbg_cflags="-g"
2901            # Check if -i_dynamic is necessary (for new glibc library)
2902            CFLAGS=
2903            cat >conftest.$ac_ext <<_ACEOF
2904/* confdefs.h.  */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h.  */
2909
2910int
2911main ()
2912{
2913int i=0; i++;
2914  ;
2915  return 0;
2916}
2917_ACEOF
2918rm -f conftest.$ac_objext conftest$ac_exeext
2919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2920  (eval $ac_link) 2>conftest.er1
2921  ac_status=$?
2922  grep -v '^ *+' conftest.er1 >conftest.err
2923  rm -f conftest.er1
2924  cat conftest.err >&5
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); } &&
2927         { ac_try='test -z "$ac_c_werror_flag"
2928                         || test ! -s conftest.err'
2929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930  (eval $ac_try) 2>&5
2931  ac_status=$?
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); }; } &&
2934         { ac_try='test -s conftest$ac_exeext'
2935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936  (eval $ac_try) 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }; }; then
2940  :
2941else
2942  echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945coin_add_cflags="-i_dynamic $coin_add_cflags"
2946fi
2947rm -f conftest.err conftest.$ac_objext \
2948      conftest$ac_exeext conftest.$ac_ext
2949            ;;
2950          pgcc* | */pgcc*)
2951            coin_opt_cflags="-fast"
2952            coin_add_cflags="-Kieee -pc 64"
2953            coin_dbg_cflags="-g"
2954            ;;
2955        esac
2956        ;;
2957      *-ibm-*)
2958        case "$CC" in
2959          xlc* | */xlc* | mpxlc* | */mpxlc*)
2960            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2961            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2962            coin_dbg_cflags="-g"
2963          ;;
2964        esac
2965        ;;
2966      *-hp-*)
2967        coin_opt_cflags="-O"
2968        coin_add_cflags="-Ae"
2969        coin_dbg_cflags="-g"
2970        ;;
2971      *-*-solaris*)
2972        coin_opt_cflags="-xO4"
2973        coin_dbg_cflags="-g"
2974        ;;
2975      *-sgi-*)
2976        coin_opt_cflags="-O -OPT:Olimit=0"
2977        coin_dbg_cflags="-g"
2978        ;;
2979    esac
2980  fi
2981
2982  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2983    coin_dbg_cflags="-g"
2984  fi
2985
2986  if test -z "$coin_opt_cflags"; then
2987    # Try if -O option works if nothing else is set
2988    CFLAGS="-O"
2989    cat >conftest.$ac_ext <<_ACEOF
2990/* confdefs.h.  */
2991_ACEOF
2992cat confdefs.h >>conftest.$ac_ext
2993cat >>conftest.$ac_ext <<_ACEOF
2994/* end confdefs.h.  */
2995
2996int
2997main ()
2998{
2999int i=0; i++;
3000  ;
3001  return 0;
3002}
3003_ACEOF
3004rm -f conftest.$ac_objext conftest$ac_exeext
3005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3006  (eval $ac_link) 2>conftest.er1
3007  ac_status=$?
3008  grep -v '^ *+' conftest.er1 >conftest.err
3009  rm -f conftest.er1
3010  cat conftest.err >&5
3011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012  (exit $ac_status); } &&
3013         { ac_try='test -z "$ac_c_werror_flag"
3014                         || test ! -s conftest.err'
3015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3016  (eval $ac_try) 2>&5
3017  ac_status=$?
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); }; } &&
3020         { ac_try='test -s conftest$ac_exeext'
3021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3022  (eval $ac_try) 2>&5
3023  ac_status=$?
3024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025  (exit $ac_status); }; }; then
3026  coin_opt_cflags="-O"
3027else
3028  echo "$as_me: failed program was:" >&5
3029sed 's/^/| /' conftest.$ac_ext >&5
3030
3031fi
3032rm -f conftest.err conftest.$ac_objext \
3033      conftest$ac_exeext conftest.$ac_ext
3034  fi
3035
3036  # if PM doesn't want the warning messages, take them out
3037  if test x"$coin_skip_warn_cflags" = xyes; then
3038    coin_warn_cflags=
3039  fi
3040
3041  if test x${DBG_CFLAGS+set} != xset; then
3042    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3043  fi
3044  if test x${OPT_CFLAGS+set} != xset; then
3045    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3046  fi
3047
3048  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3049  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3050
3051  if test "$coin_debug_compile" = "true"; then
3052    CFLAGS="$DBG_CFLAGS"
3053  else
3054    CFLAGS="$OPT_CFLAGS"
3055  fi
3056else
3057  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3058  if test x${DBG_CFLAGS+set} != xset; then
3059    DBG_CFLAGS="$CFLAGS"
3060  fi
3061  if test x${OPT_CFLAGS+set} != xset; then
3062    OPT_CFLAGS="$CFLAGS"
3063  fi
3064fi
3065
3066# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3067
3068case "$CFLAGS" in
3069  *-mno-cygwin*)
3070    if test x${CPPFLAGS+set} != xset ; then
3071      CPPFLAGS="-mno-cygwin"
3072    else
3073      case "$CPPFLAGS" in
3074        *-mno-cygwin*)
3075          ;;
3076        *)
3077          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3078          ;;
3079      esac
3080    fi ;;
3081esac
3082
3083# Try if CFLAGS works
3084save_CFLAGS="$CFLAGS"
3085cat >conftest.$ac_ext <<_ACEOF
3086/* confdefs.h.  */
3087_ACEOF
3088cat confdefs.h >>conftest.$ac_ext
3089cat >>conftest.$ac_ext <<_ACEOF
3090/* end confdefs.h.  */
3091
3092int
3093main ()
3094{
3095int i=0; i++;
3096  ;
3097  return 0;
3098}
3099_ACEOF
3100rm -f conftest.$ac_objext conftest$ac_exeext
3101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3102  (eval $ac_link) 2>conftest.er1
3103  ac_status=$?
3104  grep -v '^ *+' conftest.er1 >conftest.err
3105  rm -f conftest.er1
3106  cat conftest.err >&5
3107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108  (exit $ac_status); } &&
3109         { ac_try='test -z "$ac_c_werror_flag"
3110                         || test ! -s conftest.err'
3111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112  (eval $ac_try) 2>&5
3113  ac_status=$?
3114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115  (exit $ac_status); }; } &&
3116         { ac_try='test -s conftest$ac_exeext'
3117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118  (eval $ac_try) 2>&5
3119  ac_status=$?
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); }; }; then
3122  :
3123else
3124  echo "$as_me: failed program was:" >&5
3125sed 's/^/| /' conftest.$ac_ext >&5
3126
3127CFLAGS=
3128fi
3129rm -f conftest.err conftest.$ac_objext \
3130      conftest$ac_exeext conftest.$ac_ext
3131if test -z "$CFLAGS"; then
3132  { 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
3133echo "$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;}
3134  CFLAGS='-O'
3135  cat >conftest.$ac_ext <<_ACEOF
3136/* confdefs.h.  */
3137_ACEOF
3138cat confdefs.h >>conftest.$ac_ext
3139cat >>conftest.$ac_ext <<_ACEOF
3140/* end confdefs.h.  */
3141
3142int
3143main ()
3144{
3145int i=0; i++;
3146  ;
3147  return 0;
3148}
3149_ACEOF
3150rm -f conftest.$ac_objext conftest$ac_exeext
3151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3152  (eval $ac_link) 2>conftest.er1
3153  ac_status=$?
3154  grep -v '^ *+' conftest.er1 >conftest.err
3155  rm -f conftest.er1
3156  cat conftest.err >&5
3157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158  (exit $ac_status); } &&
3159         { ac_try='test -z "$ac_c_werror_flag"
3160                         || test ! -s conftest.err'
3161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162  (eval $ac_try) 2>&5
3163  ac_status=$?
3164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165  (exit $ac_status); }; } &&
3166         { ac_try='test -s conftest$ac_exeext'
3167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168  (eval $ac_try) 2>&5
3169  ac_status=$?
3170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171  (exit $ac_status); }; }; then
3172  :
3173else
3174  echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177CFLAGS=
3178fi
3179rm -f conftest.err conftest.$ac_objext \
3180      conftest$ac_exeext conftest.$ac_ext
3181  if test -z "$CFLAGS"; then
3182    { 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
3183echo "$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;}
3184  fi
3185fi
3186
3187{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3188echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3189
3190
3191if test x"$MPICC" = x; then :; else
3192  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3193echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3194  CC="$MPICC"
3195fi
3196
3197# Correct the LD variable if we are using the MS or Intel-windows compiler
3198case "$CC" in
3199  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3200    case $build in
3201  *-mingw*)
3202    if test "${LD+set}" = set; then :; else
3203      LD=link
3204    fi
3205    ;;
3206 esac
3207 case $enable_doscompile in
3208   msvc)
3209     if test "x${LD+set}" = xset; then :; else
3210       LD=link
3211     fi
3212     ;;
3213 esac
3214
3215    ;;
3216esac
3217
3218ac_ext=c
3219ac_cpp='$CPP $CPPFLAGS'
3220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223
3224
3225
3226 #Let's try if that overcomes configuration problem with VC++ 6.0
3227
3228ac_ext=cc
3229ac_cpp='$CXXCPP $CPPFLAGS'
3230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3233
3234
3235
3236
3237
3238
3239
3240coin_has_cxx=yes
3241
3242save_cxxflags="$CXXFLAGS"
3243# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3244case $build in
3245  *-cygwin* | *-mingw*)
3246             if test "$enable_doscompile" = msvc ; then
3247               comps="icl cl"
3248             else
3249               comps="g++ cl"
3250             fi ;;
3251  *-*-solaris*)
3252             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3253  *-darwin*) comps="g++ c++ CC" ;;
3254  *-linux-gnu*)
3255             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3256          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3257esac
3258
3259# We delete the cached value, since the test might not have been
3260# performed with our choice of compilers earlier
3261$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3262# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3263ac_ext=cc
3264ac_cpp='$CXXCPP $CPPFLAGS'
3265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3268if test -n "$ac_tool_prefix"; then
3269  for ac_prog in $CCC $comps
3270  do
3271    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3272set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3273echo "$as_me:$LINENO: checking for $ac_word" >&5
3274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3275if test "${ac_cv_prog_CXX+set}" = set; then
3276  echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278  if test -n "$CXX"; then
3279  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3280else
3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282for as_dir in $PATH
3283do
3284  IFS=$as_save_IFS
3285  test -z "$as_dir" && as_dir=.
3286  for ac_exec_ext in '' $ac_executable_extensions; do
3287  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3289    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290    break 2
3291  fi
3292done
3293done
3294
3295fi
3296fi
3297CXX=$ac_cv_prog_CXX
3298if test -n "$CXX"; then
3299  echo "$as_me:$LINENO: result: $CXX" >&5
3300echo "${ECHO_T}$CXX" >&6
3301else
3302  echo "$as_me:$LINENO: result: no" >&5
3303echo "${ECHO_T}no" >&6
3304fi
3305
3306    test -n "$CXX" && break
3307  done
3308fi
3309if test -z "$CXX"; then
3310  ac_ct_CXX=$CXX
3311  for ac_prog in $CCC $comps
3312do
3313  # Extract the first word of "$ac_prog", so it can be a program name with args.
3314set dummy $ac_prog; ac_word=$2
3315echo "$as_me:$LINENO: checking for $ac_word" >&5
3316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3318  echo $ECHO_N "(cached) $ECHO_C" >&6
3319else
3320  if test -n "$ac_ct_CXX"; then
3321  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3322else
3323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324for as_dir in $PATH
3325do
3326  IFS=$as_save_IFS
3327  test -z "$as_dir" && as_dir=.
3328  for ac_exec_ext in '' $ac_executable_extensions; do
3329  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330    ac_cv_prog_ac_ct_CXX="$ac_prog"
3331    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332    break 2
3333  fi
3334done
3335done
3336
3337fi
3338fi
3339ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3340if test -n "$ac_ct_CXX"; then
3341  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3342echo "${ECHO_T}$ac_ct_CXX" >&6
3343else
3344  echo "$as_me:$LINENO: result: no" >&5
3345echo "${ECHO_T}no" >&6
3346fi
3347
3348  test -n "$ac_ct_CXX" && break
3349done
3350test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3351
3352  CXX=$ac_ct_CXX
3353fi
3354
3355
3356# Provide some information about the compiler.
3357echo "$as_me:$LINENO:" \
3358     "checking for C++ compiler version" >&5
3359ac_compiler=`set X $ac_compile; echo $2`
3360{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3361  (eval $ac_compiler --version </dev/null >&5) 2>&5
3362  ac_status=$?
3363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364  (exit $ac_status); }
3365{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3366  (eval $ac_compiler -v </dev/null >&5) 2>&5
3367  ac_status=$?
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); }
3370{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3371  (eval $ac_compiler -V </dev/null >&5) 2>&5
3372  ac_status=$?
3373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374  (exit $ac_status); }
3375
3376echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3377echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3378if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3379  echo $ECHO_N "(cached) $ECHO_C" >&6
3380else
3381  cat >conftest.$ac_ext <<_ACEOF
3382/* confdefs.h.  */
3383_ACEOF
3384cat confdefs.h >>conftest.$ac_ext
3385cat >>conftest.$ac_ext <<_ACEOF
3386/* end confdefs.h.  */
3387
3388int
3389main ()
3390{
3391#ifndef __GNUC__
3392       choke me
3393#endif
3394
3395  ;
3396  return 0;
3397}
3398_ACEOF
3399rm -f conftest.$ac_objext
3400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3401  (eval $ac_compile) 2>conftest.er1
3402  ac_status=$?
3403  grep -v '^ *+' conftest.er1 >conftest.err
3404  rm -f conftest.er1
3405  cat conftest.err >&5
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); } &&
3408         { ac_try='test -z "$ac_cxx_werror_flag"
3409                         || test ! -s conftest.err'
3410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3411  (eval $ac_try) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }; } &&
3415         { ac_try='test -s conftest.$ac_objext'
3416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3417  (eval $ac_try) 2>&5
3418  ac_status=$?
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }; }; then
3421  ac_compiler_gnu=yes
3422else
3423  echo "$as_me: failed program was:" >&5
3424sed 's/^/| /' conftest.$ac_ext >&5
3425
3426ac_compiler_gnu=no
3427fi
3428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3429ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3430
3431fi
3432echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3433echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3434GXX=`test $ac_compiler_gnu = yes && echo yes`
3435ac_test_CXXFLAGS=${CXXFLAGS+set}
3436ac_save_CXXFLAGS=$CXXFLAGS
3437CXXFLAGS="-g"
3438echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3439echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3440if test "${ac_cv_prog_cxx_g+set}" = set; then
3441  echo $ECHO_N "(cached) $ECHO_C" >&6
3442else
3443  cat >conftest.$ac_ext <<_ACEOF
3444/* confdefs.h.  */
3445_ACEOF
3446cat confdefs.h >>conftest.$ac_ext
3447cat >>conftest.$ac_ext <<_ACEOF
3448/* end confdefs.h.  */
3449
3450int
3451main ()
3452{
3453
3454  ;
3455  return 0;
3456}
3457_ACEOF
3458rm -f conftest.$ac_objext
3459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3460  (eval $ac_compile) 2>conftest.er1
3461  ac_status=$?
3462  grep -v '^ *+' conftest.er1 >conftest.err
3463  rm -f conftest.er1
3464  cat conftest.err >&5
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); } &&
3467         { ac_try='test -z "$ac_cxx_werror_flag"
3468                         || test ! -s conftest.err'
3469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3470  (eval $ac_try) 2>&5
3471  ac_status=$?
3472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473  (exit $ac_status); }; } &&
3474         { ac_try='test -s conftest.$ac_objext'
3475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476  (eval $ac_try) 2>&5
3477  ac_status=$?
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); }; }; then
3480  ac_cv_prog_cxx_g=yes
3481else
3482  echo "$as_me: failed program was:" >&5
3483sed 's/^/| /' conftest.$ac_ext >&5
3484
3485ac_cv_prog_cxx_g=no
3486fi
3487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3488fi
3489echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3490echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3491if test "$ac_test_CXXFLAGS" = set; then
3492  CXXFLAGS=$ac_save_CXXFLAGS
3493elif test $ac_cv_prog_cxx_g = yes; then
3494  if test "$GXX" = yes; then
3495    CXXFLAGS="-g -O2"
3496  else
3497    CXXFLAGS="-g"
3498  fi
3499else
3500  if test "$GXX" = yes; then
3501    CXXFLAGS="-O2"
3502  else
3503    CXXFLAGS=
3504  fi
3505fi
3506for ac_declaration in \
3507   '' \
3508   'extern "C" void std::exit (int) throw (); using std::exit;' \
3509   'extern "C" void std::exit (int); using std::exit;' \
3510   'extern "C" void exit (int) throw ();' \
3511   'extern "C" void exit (int);' \
3512   'void exit (int);'
3513do
3514  cat >conftest.$ac_ext <<_ACEOF
3515/* confdefs.h.  */
3516_ACEOF
3517cat confdefs.h >>conftest.$ac_ext
3518cat >>conftest.$ac_ext <<_ACEOF
3519/* end confdefs.h.  */
3520$ac_declaration
3521#include <stdlib.h>
3522int
3523main ()
3524{
3525exit (42);
3526  ;
3527  return 0;
3528}
3529_ACEOF
3530rm -f conftest.$ac_objext
3531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3532  (eval $ac_compile) 2>conftest.er1
3533  ac_status=$?
3534  grep -v '^ *+' conftest.er1 >conftest.err
3535  rm -f conftest.er1
3536  cat conftest.err >&5
3537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538  (exit $ac_status); } &&
3539         { ac_try='test -z "$ac_cxx_werror_flag"
3540                         || test ! -s conftest.err'
3541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3542  (eval $ac_try) 2>&5
3543  ac_status=$?
3544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545  (exit $ac_status); }; } &&
3546         { ac_try='test -s conftest.$ac_objext'
3547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3548  (eval $ac_try) 2>&5
3549  ac_status=$?
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); }; }; then
3552  :
3553else
3554  echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557continue
3558fi
3559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3560  cat >conftest.$ac_ext <<_ACEOF
3561/* confdefs.h.  */
3562_ACEOF
3563cat confdefs.h >>conftest.$ac_ext
3564cat >>conftest.$ac_ext <<_ACEOF
3565/* end confdefs.h.  */
3566$ac_declaration
3567int
3568main ()
3569{
3570exit (42);
3571  ;
3572  return 0;
3573}
3574_ACEOF
3575rm -f conftest.$ac_objext
3576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3577  (eval $ac_compile) 2>conftest.er1
3578  ac_status=$?
3579  grep -v '^ *+' conftest.er1 >conftest.err
3580  rm -f conftest.er1
3581  cat conftest.err >&5
3582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583  (exit $ac_status); } &&
3584         { ac_try='test -z "$ac_cxx_werror_flag"
3585                         || test ! -s conftest.err'
3586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587  (eval $ac_try) 2>&5
3588  ac_status=$?
3589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590  (exit $ac_status); }; } &&
3591         { ac_try='test -s conftest.$ac_objext'
3592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593  (eval $ac_try) 2>&5
3594  ac_status=$?
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); }; }; then
3597  break
3598else
3599  echo "$as_me: failed program was:" >&5
3600sed 's/^/| /' conftest.$ac_ext >&5
3601
3602fi
3603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3604done
3605rm -f conftest*
3606if test -n "$ac_declaration"; then
3607  echo '#ifdef __cplusplus' >>confdefs.h
3608  echo $ac_declaration      >>confdefs.h
3609  echo '#endif'             >>confdefs.h
3610fi
3611
3612ac_ext=cc
3613ac_cpp='$CXXCPP $CPPFLAGS'
3614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3617
3618
3619#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3620#thus, we test here whether $CXX is actually working
3621ac_ext=cc
3622ac_cpp='$CXXCPP $CPPFLAGS'
3623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3626
3627echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3628echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3629cat >conftest.$ac_ext <<_ACEOF
3630/* confdefs.h.  */
3631_ACEOF
3632cat confdefs.h >>conftest.$ac_ext
3633cat >>conftest.$ac_ext <<_ACEOF
3634/* end confdefs.h.  */
3635
3636int
3637main ()
3638{
3639int i=0;
3640  ;
3641  return 0;
3642}
3643_ACEOF
3644rm -f conftest.$ac_objext
3645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3646  (eval $ac_compile) 2>conftest.er1
3647  ac_status=$?
3648  grep -v '^ *+' conftest.er1 >conftest.err
3649  rm -f conftest.er1
3650  cat conftest.err >&5
3651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); } &&
3653         { ac_try='test -z "$ac_cxx_werror_flag"
3654                         || test ! -s conftest.err'
3655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3656  (eval $ac_try) 2>&5
3657  ac_status=$?
3658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659  (exit $ac_status); }; } &&
3660         { ac_try='test -s conftest.$ac_objext'
3661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3662  (eval $ac_try) 2>&5
3663  ac_status=$?
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); }; }; then
3666  echo "$as_me:$LINENO: result: yes" >&5
3667echo "${ECHO_T}yes" >&6
3668else
3669  echo "$as_me: failed program was:" >&5
3670sed 's/^/| /' conftest.$ac_ext >&5
3671
3672echo "$as_me:$LINENO: result: no" >&5
3673echo "${ECHO_T}no" >&6
3674   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3675echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3676   { (exit 1); exit 1; }; }
3677
3678fi
3679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3680ac_ext=cc
3681ac_cpp='$CXXCPP $CPPFLAGS'
3682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685
3686
3687coin_cxx_is_cl=false
3688# It seems that we need to cleanup something here for the Windows
3689case "$CXX" in
3690  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3691    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3692    mv confdefs.hh confdefs.h
3693    coin_cxx_is_cl=true
3694    ;;
3695esac
3696
3697# add automake conditional so we can recognize cl compiler in makefile
3698
3699
3700if test $coin_cxx_is_cl = true; then
3701  COIN_CXX_IS_CL_TRUE=
3702  COIN_CXX_IS_CL_FALSE='#'
3703else
3704  COIN_CXX_IS_CL_TRUE='#'
3705  COIN_CXX_IS_CL_FALSE=
3706fi
3707
3708
3709# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3710case "$CXX" in
3711  cl* | */cl* | CL* | */CL* )
3712    if test "$ac_cv_prog_cxx_g" = yes ; then
3713      ac_cv_prog_cxx_g=no
3714      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3715echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3716    fi ;;
3717esac
3718CXXFLAGS="$save_cxxflags"
3719
3720# Check if a project specific CXXFLAGS variable has been set
3721if test x$COIN_PRJCT != x; then
3722  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3723  if test x$coin_tmp = xset; then
3724    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3725  fi
3726fi
3727
3728if test x"$CXXFLAGS" = x; then
3729
3730# ToDo decide whether we want -DNDEBUG for optimization
3731  coin_add_cxxflags=
3732  coin_opt_cxxflags=
3733  coin_dbg_cxxflags=
3734  coin_warn_cxxflags=
3735
3736  if test "$GXX" = "yes"; then
3737    case "$CXX" in
3738      icpc* | */icpc*)
3739        ;;
3740      *)
3741# ToDo decide about unroll-loops
3742        coin_opt_cxxflags="-O3"
3743        coin_add_cxxflags="-pipe"
3744        coin_dbg_cxxflags="-g"
3745        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3746        case $build in
3747          *-darwin*)
3748            ;;
3749          *)
3750            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3751            ;;
3752        esac
3753
3754        case $enable_doscompile in
3755          mingw)
3756            CXXFLAGS="-mno-cygwin"
3757            cat >conftest.$ac_ext <<_ACEOF
3758/* confdefs.h.  */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h.  */
3763
3764int
3765main ()
3766{
3767int i=0; i++;
3768  ;
3769  return 0;
3770}
3771_ACEOF
3772rm -f conftest.$ac_objext conftest$ac_exeext
3773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3774  (eval $ac_link) 2>conftest.er1
3775  ac_status=$?
3776  grep -v '^ *+' conftest.er1 >conftest.err
3777  rm -f conftest.er1
3778  cat conftest.err >&5
3779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780  (exit $ac_status); } &&
3781         { ac_try='test -z "$ac_cxx_werror_flag"
3782                         || test ! -s conftest.err'
3783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784  (eval $ac_try) 2>&5
3785  ac_status=$?
3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787  (exit $ac_status); }; } &&
3788         { ac_try='test -s conftest$ac_exeext'
3789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790  (eval $ac_try) 2>&5
3791  ac_status=$?
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); }; }; then
3794  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3795else
3796  echo "$as_me: failed program was:" >&5
3797sed 's/^/| /' conftest.$ac_ext >&5
3798
3799fi
3800rm -f conftest.err conftest.$ac_objext \
3801      conftest$ac_exeext conftest.$ac_ext
3802            CXXFLAGS=
3803          ;;
3804        esac
3805    esac
3806  fi
3807
3808# Note that we do not need to cover GCC in the following tests.
3809
3810  if test -z "$coin_opt_cxxflags"; then
3811    case $build in
3812      *-cygwin* | *-mingw*)
3813        case "$CXX" in
3814          cl* | */cl* | CL* | */CL*)
3815            # The MT and MTd options are mutually exclusive
3816            coin_opt_cxxflags='-MT -O2'
3817            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3818            coin_dbg_cxxflags='-MTd'
3819            ;;
3820          icl* | */icl* | ICL* | */ICL*)
3821            # The MT and MTd options are mutually exclusive
3822            coin_opt_cxxflags='-MT -Ox'
3823            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3824            coin_dbg_cxxflags='-MTd -debug'
3825            ;;
3826        esac
3827        ;;
3828      *-linux-*)
3829        case "$CXX" in
3830          icpc* | */icpc*)
3831            coin_opt_cxxflags="-O3 -ip -mp1"
3832            coin_add_cxxflags=""
3833            coin_dbg_cxxflags="-g"
3834            # Check if -i_dynamic is necessary (for new glibc library)
3835            CXXFLAGS=
3836            cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h.  */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h.  */
3842
3843int
3844main ()
3845{
3846int i=0; i++;
3847  ;
3848  return 0;
3849}
3850_ACEOF
3851rm -f conftest.$ac_objext conftest$ac_exeext
3852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853  (eval $ac_link) 2>conftest.er1
3854  ac_status=$?
3855  grep -v '^ *+' conftest.er1 >conftest.err
3856  rm -f conftest.er1
3857  cat conftest.err >&5
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); } &&
3860         { ac_try='test -z "$ac_cxx_werror_flag"
3861                         || test ! -s conftest.err'
3862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863  (eval $ac_try) 2>&5
3864  ac_status=$?
3865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866  (exit $ac_status); }; } &&
3867         { ac_try='test -s conftest$ac_exeext'
3868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869  (eval $ac_try) 2>&5
3870  ac_status=$?
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); }; }; then
3873  :
3874else
3875  echo "$as_me: failed program was:" >&5
3876sed 's/^/| /' conftest.$ac_ext >&5
3877
3878coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3879fi
3880rm -f conftest.err conftest.$ac_objext \
3881      conftest$ac_exeext conftest.$ac_ext
3882            ;;
3883          pgCC* | */pgCC*)
3884            coin_opt_cxxflags="-fast"
3885            coin_add_cxxflags="-Kieee -pc 64"
3886            coin_dbg_cxxflags="-g"
3887            ;;
3888        esac
3889        ;;
3890      *-ibm-*)
3891        case "$CXX" in
3892          xlC* | */xlC* | mpxlC* | */mpxlC*)
3893            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3894            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3895            coin_dbg_cxxflags="-g"
3896            ;;
3897        esac
3898        ;;
3899      *-hp-*)
3900        case "$CXX" in
3901          aCC* | */aCC* )
3902            coin_opt_cxxflags="-O"
3903            coin_add_cxxflags="-AA"
3904            coin_dbg_cxxflags="-g"
3905            ;;
3906        esac
3907        ;;
3908      *-*-solaris*)
3909          coin_opt_cxxflags="-O4"
3910          coin_dbg_cxxflags="-g"
3911        ;;
3912    esac
3913  fi
3914
3915# Generic flag settings. If these don't work, add a case above.
3916
3917  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3918    coin_dbg_cxxflags="-g"
3919  fi
3920
3921  if test -z "$coin_opt_cxxflags"; then
3922    # Try if -O option works if nothing else is set
3923    CXXFLAGS=-O
3924    cat >conftest.$ac_ext <<_ACEOF
3925/* confdefs.h.  */
3926_ACEOF
3927cat confdefs.h >>conftest.$ac_ext
3928cat >>conftest.$ac_ext <<_ACEOF
3929/* end confdefs.h.  */
3930
3931int
3932main ()
3933{
3934int i=0; i++;
3935  ;
3936  return 0;
3937}
3938_ACEOF
3939rm -f conftest.$ac_objext conftest$ac_exeext
3940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3941  (eval $ac_link) 2>conftest.er1
3942  ac_status=$?
3943  grep -v '^ *+' conftest.er1 >conftest.err
3944  rm -f conftest.er1
3945  cat conftest.err >&5
3946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3947  (exit $ac_status); } &&
3948         { ac_try='test -z "$ac_cxx_werror_flag"
3949                         || test ! -s conftest.err'
3950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951  (eval $ac_try) 2>&5
3952  ac_status=$?
3953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954  (exit $ac_status); }; } &&
3955         { ac_try='test -s conftest$ac_exeext'
3956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957  (eval $ac_try) 2>&5
3958  ac_status=$?
3959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960  (exit $ac_status); }; }; then
3961  coin_opt_cxxflags="-O"
3962else
3963  echo "$as_me: failed program was:" >&5
3964sed 's/^/| /' conftest.$ac_ext >&5
3965
3966fi
3967rm -f conftest.err conftest.$ac_objext \
3968      conftest$ac_exeext conftest.$ac_ext
3969  fi
3970
3971  # if PM doesn't want the warning messages, take them out
3972  if test x"$coin_skip_warn_cxxflags" = xyes; then
3973    coin_warn_cxxflags=
3974  fi
3975
3976# Do final setup of flags based on values determined above.
3977
3978  if test x${DBG_CXXFLAGS+set} != xset; then
3979    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3980  fi
3981  if test x${OPT_CXXFLAGS+set} != xset; then
3982    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3983  fi
3984
3985  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3986  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3987
3988  if test "$coin_debug_compile" = "true"; then
3989    CXXFLAGS="$DBG_CXXFLAGS"
3990  else
3991    CXXFLAGS="$OPT_CXXFLAGS"
3992  fi
3993
3994# Handle the case where CXXFLAGS was set externally.
3995else
3996  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3997  if test x${DBG_CXXFLAGS+set} != xset; then
3998    DBG_CXXFLAGS="$CXXFLAGS"
3999  fi
4000  if test x${OPT_CXXFLAGS+set} != xset; then
4001    OPT_CXXFLAGS="$CXXFLAGS"
4002  fi
4003fi
4004
4005# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4006
4007case "$CXXFLAGS" in
4008  *-mno-cygwin*)
4009    if test x${CPPFLAGS+set} != xset ; then
4010      CPPFLAGS="-mno-cygwin"
4011    else
4012      case "$CPPFLAGS" in
4013        *-mno-cygwin*)
4014          ;;
4015        *)
4016          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4017          ;;
4018      esac
4019    fi ;;
4020esac
4021
4022# Try if CXXFLAGS works
4023save_CXXFLAGS="$CXXFLAGS"
4024cat >conftest.$ac_ext <<_ACEOF
4025/* confdefs.h.  */
4026_ACEOF
4027cat confdefs.h >>conftest.$ac_ext
4028cat >>conftest.$ac_ext <<_ACEOF
4029/* end confdefs.h.  */
4030
4031int
4032main ()
4033{
4034int i=0; i++;
4035  ;
4036  return 0;
4037}
4038_ACEOF
4039rm -f conftest.$ac_objext conftest$ac_exeext
4040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4041  (eval $ac_link) 2>conftest.er1
4042  ac_status=$?
4043  grep -v '^ *+' conftest.er1 >conftest.err
4044  rm -f conftest.er1
4045  cat conftest.err >&5
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); } &&
4048         { ac_try='test -z "$ac_cxx_werror_flag"
4049                         || test ! -s conftest.err'
4050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051  (eval $ac_try) 2>&5
4052  ac_status=$?
4053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054  (exit $ac_status); }; } &&
4055         { ac_try='test -s conftest$ac_exeext'
4056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4057  (eval $ac_try) 2>&5
4058  ac_status=$?
4059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060  (exit $ac_status); }; }; then
4061  :
4062else
4063  echo "$as_me: failed program was:" >&5
4064sed 's/^/| /' conftest.$ac_ext >&5
4065
4066CXXFLAGS=
4067fi
4068rm -f conftest.err conftest.$ac_objext \
4069      conftest$ac_exeext conftest.$ac_ext
4070if test -z "$CXXFLAGS"; then
4071  { 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
4072echo "$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;}
4073  CXXFLAGS='-O'
4074  cat >conftest.$ac_ext <<_ACEOF
4075/* confdefs.h.  */
4076_ACEOF
4077cat confdefs.h >>conftest.$ac_ext
4078cat >>conftest.$ac_ext <<_ACEOF
4079/* end confdefs.h.  */
4080
4081int
4082main ()
4083{
4084int i=0; i++;
4085  ;
4086  return 0;
4087}
4088_ACEOF
4089rm -f conftest.$ac_objext conftest$ac_exeext
4090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4091  (eval $ac_link) 2>conftest.er1
4092  ac_status=$?
4093  grep -v '^ *+' conftest.er1 >conftest.err
4094  rm -f conftest.er1
4095  cat conftest.err >&5
4096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097  (exit $ac_status); } &&
4098         { ac_try='test -z "$ac_cxx_werror_flag"
4099                         || test ! -s conftest.err'
4100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4101  (eval $ac_try) 2>&5
4102  ac_status=$?
4103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104  (exit $ac_status); }; } &&
4105         { ac_try='test -s conftest$ac_exeext'
4106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107  (eval $ac_try) 2>&5
4108  ac_status=$?
4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110  (exit $ac_status); }; }; then
4111  :
4112else
4113  echo "$as_me: failed program was:" >&5
4114sed 's/^/| /' conftest.$ac_ext >&5
4115
4116CXXFLAGS=
4117fi
4118rm -f conftest.err conftest.$ac_objext \
4119      conftest$ac_exeext conftest.$ac_ext
4120  if test -z "$CXXFLAGS"; then
4121    { 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
4122echo "$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;}
4123  fi
4124fi
4125
4126{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4127echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4128
4129
4130if test x"$MPICXX" = x; then :; else
4131  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4132echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4133  CXX="$MPICXX"
4134fi
4135
4136# correct the LD variable in a mingw build with MS or intel compiler
4137case "$CXX" in
4138  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4139    case $build in
4140  *-mingw*)
4141    if test "${LD+set}" = set; then :; else
4142      LD=link
4143    fi
4144    ;;
4145 esac
4146 case $enable_doscompile in
4147   msvc)
4148     if test "x${LD+set}" = xset; then :; else
4149       LD=link
4150     fi
4151     ;;
4152 esac
4153
4154    ;;
4155esac
4156
4157ac_ext=c
4158ac_cpp='$CPP $CPPFLAGS'
4159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162
4163
4164
4165# Initialize automake and libtool
4166{
4167
4168
4169
4170# START
4171
4172# Test if force_shared has been set
4173if test "x" = xforce_shared; then
4174  if test x$enable_shared = xno; then
4175    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4176echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4177   { (exit 1); exit 1; }; }
4178  fi
4179  enable_shared=yes;
4180else
4181  # On Cygwin and AIX, building DLLs doesn't work
4182  case $build in
4183    *-cygwin*)
4184      coin_disable_shared=yes
4185      platform=Cygwin
4186    ;;
4187    *-aix*)
4188      coin_disable_shared=yes
4189      platform=AIX
4190    ;;
4191    *-mingw*)
4192      coin_disable_shared=yes
4193      platform="Msys"
4194#      case "$CXX" in
4195#        cl*)
4196#          coin_disable_shared=yes
4197#          platform="Msys with cl"
4198#      ;;
4199#      esac
4200    ;;
4201  esac
4202fi
4203if test x"$coin_disable_shared" = xyes; then
4204  if test x"$enable_shared" = xyes; then
4205    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4206echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4207  fi
4208  enable_shared=no
4209fi
4210# By default, we only want the shared objects to be compiled
4211# Check whether --enable-static or --disable-static was given.
4212if test "${enable_static+set}" = set; then
4213  enableval="$enable_static"
4214  p=${PACKAGE-default}
4215    case $enableval in
4216    yes) enable_static=yes ;;
4217    no) enable_static=no ;;
4218    *)
4219     enable_static=no
4220      # Look at the argument we got.  We use all the common list separators.
4221      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4222      for pkg in $enableval; do
4223        IFS="$lt_save_ifs"
4224        if test "X$pkg" = "X$p"; then
4225          enable_static=yes
4226        fi
4227      done
4228      IFS="$lt_save_ifs"
4229      ;;
4230    esac
4231else
4232  enable_static=no
4233fi;
4234
4235
4236
4237
4238# Initialize automake
4239echo "$as_me:$LINENO: checking for egrep" >&5
4240echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4241if test "${ac_cv_prog_egrep+set}" = set; then
4242  echo $ECHO_N "(cached) $ECHO_C" >&6
4243else
4244  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4245    then ac_cv_prog_egrep='grep -E'
4246    else ac_cv_prog_egrep='egrep'
4247    fi
4248fi
4249echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4250echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4251 EGREP=$ac_cv_prog_egrep
4252
4253
4254am__api_version="1.9"
4255# Find a good install program.  We prefer a C program (faster),
4256# so one script is as good as another.  But avoid the broken or
4257# incompatible versions:
4258# SysV /etc/install, /usr/sbin/install
4259# SunOS /usr/etc/install
4260# IRIX /sbin/install
4261# AIX /bin/install
4262# AmigaOS /C/install, which installs bootblocks on floppy discs
4263# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4264# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4265# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4266# OS/2's system install, which has a completely different semantic
4267# ./install, which can be erroneously created by make from ./install.sh.
4268echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4269echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4270if test -z "$INSTALL"; then
4271if test "${ac_cv_path_install+set}" = set; then
4272  echo $ECHO_N "(cached) $ECHO_C" >&6
4273else
4274  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277  IFS=$as_save_IFS
4278  test -z "$as_dir" && as_dir=.
4279  # Account for people who put trailing slashes in PATH elements.
4280case $as_dir/ in
4281  ./ | .// | /cC/* | \
4282  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4283  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4284  /usr/ucb/* ) ;;
4285  *)
4286    # OSF1 and SCO ODT 3.0 have their own names for install.
4287    # Don't use installbsd from OSF since it installs stuff as root
4288    # by default.
4289    for ac_prog in ginstall scoinst install; do
4290      for ac_exec_ext in '' $ac_executable_extensions; do
4291        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4292          if test $ac_prog = install &&
4293            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4294            # AIX install.  It has an incompatible calling convention.
4295            :
4296          elif test $ac_prog = install &&
4297            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4298            # program-specific install script used by HP pwplus--don't use.
4299            :
4300          else
4301            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4302            break 3
4303          fi
4304        fi
4305      done
4306    done
4307    ;;
4308esac
4309done
4310
4311
4312fi
4313  if test "${ac_cv_path_install+set}" = set; then
4314    INSTALL=$ac_cv_path_install
4315  else
4316    # As a last resort, use the slow shell script.  We don't cache a
4317    # path for INSTALL within a source directory, because that will
4318    # break other packages using the cache if that directory is
4319    # removed, or if the path is relative.
4320    INSTALL=$ac_install_sh
4321  fi
4322fi
4323echo "$as_me:$LINENO: result: $INSTALL" >&5
4324echo "${ECHO_T}$INSTALL" >&6
4325
4326# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4327# It thinks the first close brace ends the variable substitution.
4328test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4329
4330test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4331
4332test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4333
4334echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4335echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4336# Just in case
4337sleep 1
4338echo timestamp > conftest.file
4339# Do `set' in a subshell so we don't clobber the current shell's
4340# arguments.  Must try -L first in case configure is actually a
4341# symlink; some systems play weird games with the mod time of symlinks
4342# (eg FreeBSD returns the mod time of the symlink's containing
4343# directory).
4344if (
4345   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4346   if test "$*" = "X"; then
4347      # -L didn't work.
4348      set X `ls -t $srcdir/configure conftest.file`
4349   fi
4350   rm -f conftest.file
4351   if test "$*" != "X $srcdir/configure conftest.file" \
4352      && test "$*" != "X conftest.file $srcdir/configure"; then
4353
4354      # If neither matched, then we have a broken ls.  This can happen
4355      # if, for instance, CONFIG_SHELL is bash and it inherits a
4356      # broken ls alias from the environment.  This has actually
4357      # happened.  Such a system could not be considered "sane".
4358      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4359alias in your environment" >&5
4360echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4361alias in your environment" >&2;}
4362   { (exit 1); exit 1; }; }
4363   fi
4364
4365   test "$2" = conftest.file
4366   )
4367then
4368   # Ok.
4369   :
4370else
4371   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4372Check your system clock" >&5
4373echo "$as_me: error: newly created file is older than distributed files!
4374Check your system clock" >&2;}
4375   { (exit 1); exit 1; }; }
4376fi
4377echo "$as_me:$LINENO: result: yes" >&5
4378echo "${ECHO_T}yes" >&6
4379test "$program_prefix" != NONE &&
4380  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4381# Use a double $ so make ignores it.
4382test "$program_suffix" != NONE &&
4383  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4384# Double any \ or $.  echo might interpret backslashes.
4385# By default was `s,x,x', remove it if useless.
4386cat <<\_ACEOF >conftest.sed
4387s/[\\$]/&&/g;s/;s,x,x,$//
4388_ACEOF
4389program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4390rm conftest.sed
4391
4392# expand $ac_aux_dir to an absolute path
4393am_aux_dir=`cd $ac_aux_dir && pwd`
4394
4395test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4396# Use eval to expand $SHELL
4397if eval "$MISSING --run true"; then
4398  am_missing_run="$MISSING --run "
4399else
4400  am_missing_run=
4401  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4402echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4403fi
4404
4405if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4406  # We used to keeping the `.' as first argument, in order to
4407  # allow $(mkdir_p) to be used without argument.  As in
4408  #   $(mkdir_p) $(somedir)
4409  # where $(somedir) is conditionally defined.  However this is wrong
4410  # for two reasons:
4411  #  1. if the package is installed by a user who cannot write `.'
4412  #     make install will fail,
4413  #  2. the above comment should most certainly read
4414  #     $(mkdir_p) $(DESTDIR)$(somedir)
4415  #     so it does not work when $(somedir) is undefined and
4416  #     $(DESTDIR) is not.
4417  #  To support the latter case, we have to write
4418  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4419  #  so the `.' trick is pointless.
4420  mkdir_p='mkdir -p --'
4421else
4422  # On NextStep and OpenStep, the `mkdir' command does not
4423  # recognize any option.  It will interpret all options as
4424  # directories to create, and then abort because `.' already
4425  # exists.
4426  for d in ./-p ./--version;
4427  do
4428    test -d $d && rmdir $d
4429  done
4430  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4431  if test -f "$ac_aux_dir/mkinstalldirs"; then
4432    mkdir_p='$(mkinstalldirs)'
4433  else
4434    mkdir_p='$(install_sh) -d'
4435  fi
4436fi
4437
4438for ac_prog in gawk mawk nawk awk
4439do
4440  # Extract the first word of "$ac_prog", so it can be a program name with args.
4441set dummy $ac_prog; ac_word=$2
4442echo "$as_me:$LINENO: checking for $ac_word" >&5
4443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444if test "${ac_cv_prog_AWK+set}" = set; then
4445  echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447  if test -n "$AWK"; then
4448  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453  IFS=$as_save_IFS
4454  test -z "$as_dir" && as_dir=.
4455  for ac_exec_ext in '' $ac_executable_extensions; do
4456  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457    ac_cv_prog_AWK="$ac_prog"
4458    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459    break 2
4460  fi
4461done
4462done
4463
4464fi
4465fi
4466AWK=$ac_cv_prog_AWK
4467if test -n "$AWK"; then
4468  echo "$as_me:$LINENO: result: $AWK" >&5
4469echo "${ECHO_T}$AWK" >&6
4470else
4471  echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6
4473fi
4474
4475  test -n "$AWK" && break
4476done
4477
4478echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4479echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4480set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4481if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4482  echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484  cat >conftest.make <<\_ACEOF
4485all:
4486        @echo 'ac_maketemp="$(MAKE)"'
4487_ACEOF
4488# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4489eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4490if test -n "$ac_maketemp"; then
4491  eval ac_cv_prog_make_${ac_make}_set=yes
4492else
4493  eval ac_cv_prog_make_${ac_make}_set=no
4494fi
4495rm -f conftest.make
4496fi
4497if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4498  echo "$as_me:$LINENO: result: yes" >&5
4499echo "${ECHO_T}yes" >&6
4500  SET_MAKE=
4501else
4502  echo "$as_me:$LINENO: result: no" >&5
4503echo "${ECHO_T}no" >&6
4504  SET_MAKE="MAKE=${MAKE-make}"
4505fi
4506
4507rm -rf .tst 2>/dev/null
4508mkdir .tst 2>/dev/null
4509if test -d .tst; then
4510  am__leading_dot=.
4511else
4512  am__leading_dot=_
4513fi
4514rmdir .tst 2>/dev/null
4515
4516DEPDIR="${am__leading_dot}deps"
4517
4518          ac_config_commands="$ac_config_commands depfiles"
4519
4520
4521am_make=${MAKE-make}
4522cat > confinc << 'END'
4523am__doit:
4524        @echo done
4525.PHONY: am__doit
4526END
4527# If we don't find an include directive, just comment out the code.
4528echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4529echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4530am__include="#"
4531am__quote=
4532_am_result=none
4533# First try GNU make style include.
4534echo "include confinc" > confmf
4535# We grep out `Entering directory' and `Leaving directory'
4536# messages which can occur if `w' ends up in MAKEFLAGS.
4537# In particular we don't look at `^make:' because GNU make might
4538# be invoked under some other name (usually "gmake"), in which
4539# case it prints its new name instead of `make'.
4540if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4541   am__include=include
4542   am__quote=
4543   _am_result=GNU
4544fi
4545# Now try BSD make style include.
4546if test "$am__include" = "#"; then
4547   echo '.include "confinc"' > confmf
4548   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4549      am__include=.include
4550      am__quote="\""
4551      _am_result=BSD
4552   fi
4553fi
4554
4555
4556echo "$as_me:$LINENO: result: $_am_result" >&5
4557echo "${ECHO_T}$_am_result" >&6
4558rm -f confinc confmf
4559
4560# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4561if test "${enable_dependency_tracking+set}" = set; then
4562  enableval="$enable_dependency_tracking"
4563
4564fi;
4565if test "x$enable_dependency_tracking" != xno; then
4566  am_depcomp="$ac_aux_dir/depcomp"
4567  AMDEPBACKSLASH='\'
4568fi
4569
4570
4571if test "x$enable_dependency_tracking" != xno; then
4572  AMDEP_TRUE=
4573  AMDEP_FALSE='#'
4574else
4575  AMDEP_TRUE='#'
4576  AMDEP_FALSE=
4577fi
4578
4579
4580
4581
4582
4583# AC_MSG_NOTICE([Beginning automake initialisation.])
4584# Stuff for automake
4585# test to see if srcdir already configured
4586if test "`cd $srcdir && pwd`" != "`pwd`" &&
4587   test -f $srcdir/config.status; then
4588  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4589echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4590   { (exit 1); exit 1; }; }
4591fi
4592
4593# test whether we have cygpath
4594if test -z "$CYGPATH_W"; then
4595  if (cygpath --version) >/dev/null 2>/dev/null; then
4596    CYGPATH_W='cygpath -w'
4597  else
4598    CYGPATH_W=echo
4599  fi
4600fi
4601
4602
4603# Define the identity of the package.
4604 PACKAGE='clp'
4605 VERSION='1.14'
4606
4607
4608cat >>confdefs.h <<_ACEOF
4609#define PACKAGE "$PACKAGE"
4610_ACEOF
4611
4612
4613cat >>confdefs.h <<_ACEOF
4614#define VERSION "$VERSION"
4615_ACEOF
4616
4617# Some tools Automake needs.
4618
4619ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4620
4621
4622AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4623
4624
4625AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4626
4627
4628AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4629
4630
4631MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4632
4633install_sh=${install_sh-"$am_aux_dir/install-sh"}
4634
4635# Installed binaries are usually stripped using `strip' when the user
4636# run `make install-strip'.  However `strip' might not be the right
4637# tool to use in cross-compilation environments, therefore Automake
4638# will honor the `STRIP' environment variable to overrule this program.
4639if test "$cross_compiling" != no; then
4640  if test -n "$ac_tool_prefix"; then
4641  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4642set dummy ${ac_tool_prefix}strip; ac_word=$2
4643echo "$as_me:$LINENO: checking for $ac_word" >&5
4644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4645if test "${ac_cv_prog_STRIP+set}" = set; then
4646  echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648  if test -n "$STRIP"; then
4649  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656  for ac_exec_ext in '' $ac_executable_extensions; do
4657  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4658    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4659    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660    break 2
4661  fi
4662done
4663done
4664
4665fi
4666fi
4667STRIP=$ac_cv_prog_STRIP
4668if test -n "$STRIP"; then
4669  echo "$as_me:$LINENO: result: $STRIP" >&5
4670echo "${ECHO_T}$STRIP" >&6
4671else
4672  echo "$as_me:$LINENO: result: no" >&5
4673echo "${ECHO_T}no" >&6
4674fi
4675
4676fi
4677if test -z "$ac_cv_prog_STRIP"; then
4678  ac_ct_STRIP=$STRIP
4679  # Extract the first word of "strip", so it can be a program name with args.
4680set dummy strip; ac_word=$2
4681echo "$as_me:$LINENO: checking for $ac_word" >&5
4682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4683if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4684  echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686  if test -n "$ac_ct_STRIP"; then
4687  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692  IFS=$as_save_IFS
4693  test -z "$as_dir" && as_dir=.
4694  for ac_exec_ext in '' $ac_executable_extensions; do
4695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696    ac_cv_prog_ac_ct_STRIP="strip"
4697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698    break 2
4699  fi
4700done
4701done
4702
4703  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4704fi
4705fi
4706ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4707if test -n "$ac_ct_STRIP"; then
4708  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4709echo "${ECHO_T}$ac_ct_STRIP" >&6
4710else
4711  echo "$as_me:$LINENO: result: no" >&5
4712echo "${ECHO_T}no" >&6
4713fi
4714
4715  STRIP=$ac_ct_STRIP
4716else
4717  STRIP="$ac_cv_prog_STRIP"
4718fi
4719
4720fi
4721INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4722
4723# We need awk for the "check" target.  The system "awk" is bad on
4724# some platforms.
4725# Always define AMTAR for backward compatibility.
4726
4727AMTAR=${AMTAR-"${am_missing_run}tar"}
4728
4729am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4730
4731
4732
4733
4734depcc="$CC"   am_compiler_list=
4735
4736echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4737echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4738if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4739  echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4742  # We make a subdir and do the tests there.  Otherwise we can end up
4743  # making bogus files that we don't know about and never remove.  For
4744  # instance it was reported that on HP-UX the gcc test will end up
4745  # making a dummy file named `D' -- because `-MD' means `put the output
4746  # in D'.
4747  mkdir conftest.dir
4748  # Copy depcomp to subdir because otherwise we won't find it if we're
4749  # using a relative directory.
4750  cp "$am_depcomp" conftest.dir
4751  cd conftest.dir
4752  # We will build objects and dependencies in a subdirectory because
4753  # it helps to detect inapplicable dependency modes.  For instance
4754  # both Tru64's cc and ICC support -MD to output dependencies as a
4755  # side effect of compilation, but ICC will put the dependencies in
4756  # the current directory while Tru64 will put them in the object
4757  # directory.
4758  mkdir sub
4759
4760  am_cv_CC_dependencies_compiler_type=none
4761  if test "$am_compiler_list" = ""; then
4762     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4763  fi
4764  for depmode in $am_compiler_list; do
4765    # Setup a source with many dependencies, because some compilers
4766    # like to wrap large dependency lists on column 80 (with \), and
4767    # we should not choose a depcomp mode which is confused by this.
4768    #
4769    # We need to recreate these files for each test, as the compiler may
4770    # overwrite some of them when testing with obscure command lines.
4771    # This happens at least with the AIX C compiler.
4772    : > sub/conftest.c
4773    for i in 1 2 3 4 5 6; do
4774      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4775      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4776      # Solaris 8's {/usr,}/bin/sh.
4777      touch sub/conftst$i.h
4778    done
4779    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4780
4781    case $depmode in
4782    nosideeffect)
4783      # after this tag, mechanisms are not by side-effect, so they'll
4784      # only be used when explicitly requested
4785      if test "x$enable_dependency_tracking" = xyes; then
4786        continue
4787      else
4788        break
4789      fi
4790      ;;
4791    none) break ;;
4792    esac
4793    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4794    # mode.  It turns out that the SunPro C++ compiler does not properly
4795    # handle `-M -o', and we need to detect this.
4796    if depmode=$depmode \
4797       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4798       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4799       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4800         >/dev/null 2>conftest.err &&
4801       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4802       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4803       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4804      # icc doesn't choke on unknown options, it will just issue warnings
4805      # or remarks (even with -Werror).  So we grep stderr for any message
4806      # that says an option was ignored or not supported.
4807      # When given -MP, icc 7.0 and 7.1 complain thusly:
4808      #   icc: Command line warning: ignoring option '-M'; no argument required
4809      # The diagnosis changed in icc 8.0:
4810      #   icc: Command line remark: option '-MP' not supported
4811      if (grep 'ignoring option' conftest.err ||
4812          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4813        am_cv_CC_dependencies_compiler_type=$depmode
4814        break
4815      fi
4816    fi
4817  done
4818
4819  cd ..
4820  rm -rf conftest.dir
4821else
4822  am_cv_CC_dependencies_compiler_type=none
4823fi
4824
4825fi
4826echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4827echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4828CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4829
4830
4831
4832if
4833  test "x$enable_dependency_tracking" != xno \
4834  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4835  am__fastdepCC_TRUE=
4836  am__fastdepCC_FALSE='#'
4837else
4838  am__fastdepCC_TRUE='#'
4839  am__fastdepCC_FALSE=
4840fi
4841
4842
4843depcc="$CXX"  am_compiler_list=
4844
4845echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4846echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4847if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4848  echo $ECHO_N "(cached) $ECHO_C" >&6
4849else
4850  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4851  # We make a subdir and do the tests there.  Otherwise we can end up
4852  # making bogus files that we don't know about and never remove.  For
4853  # instance it was reported that on HP-UX the gcc test will end up
4854  # making a dummy file named `D' -- because `-MD' means `put the output
4855  # in D'.
4856  mkdir conftest.dir
4857  # Copy depcomp to subdir because otherwise we won't find it if we're
4858  # using a relative directory.
4859  cp "$am_depcomp" conftest.dir
4860  cd conftest.dir
4861  # We will build objects and dependencies in a subdirectory because
4862  # it helps to detect inapplicable dependency modes.  For instance
4863  # both Tru64's cc and ICC support -MD to output dependencies as a
4864  # side effect of compilation, but ICC will put the dependencies in
4865  # the current directory while Tru64 will put them in the object
4866  # directory.
4867  mkdir sub
4868
4869  am_cv_CXX_dependencies_compiler_type=none
4870  if test "$am_compiler_list" = ""; then
4871     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4872  fi
4873  for depmode in $am_compiler_list; do
4874    # Setup a source with many dependencies, because some compilers
4875    # like to wrap large dependency lists on column 80 (with \), and
4876    # we should not choose a depcomp mode which is confused by this.
4877    #
4878    # We need to recreate these files for each test, as the compiler may
4879    # overwrite some of them when testing with obscure command lines.
4880    # This happens at least with the AIX C compiler.
4881    : > sub/conftest.c
4882    for i in 1 2 3 4 5 6; do
4883      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4884      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4885      # Solaris 8's {/usr,}/bin/sh.
4886      touch sub/conftst$i.h
4887    done
4888    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4889
4890    case $depmode in
4891    nosideeffect)
4892      # after this tag, mechanisms are not by side-effect, so they'll
4893      # only be used when explicitly requested
4894      if test "x$enable_dependency_tracking" = xyes; then
4895        continue
4896      else
4897        break
4898      fi
4899      ;;
4900    none) break ;;
4901    esac
4902    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4903    # mode.  It turns out that the SunPro C++ compiler does not properly
4904    # handle `-M -o', and we need to detect this.
4905    if depmode=$depmode \
4906       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4907       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4908       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4909         >/dev/null 2>conftest.err &&
4910       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4911       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4912       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4913      # icc doesn't choke on unknown options, it will just issue warnings
4914      # or remarks (even with -Werror).  So we grep stderr for any message
4915      # that says an option was ignored or not supported.
4916      # When given -MP, icc 7.0 and 7.1 complain thusly:
4917      #   icc: Command line warning: ignoring option '-M'; no argument required
4918      # The diagnosis changed in icc 8.0:
4919      #   icc: Command line remark: option '-MP' not supported
4920      if (grep 'ignoring option' conftest.err ||
4921          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4922        am_cv_CXX_dependencies_compiler_type=$depmode
4923        break
4924      fi
4925    fi
4926  done
4927
4928  cd ..
4929  rm -rf conftest.dir
4930else
4931  am_cv_CXX_dependencies_compiler_type=none
4932fi
4933
4934fi
4935echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4936echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4937CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4938
4939
4940
4941if
4942  test "x$enable_dependency_tracking" != xno \
4943  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4944  am__fastdepCXX_TRUE=
4945  am__fastdepCXX_FALSE='#'
4946else
4947  am__fastdepCXX_TRUE='#'
4948  am__fastdepCXX_FALSE=
4949fi
4950
4951
4952
4953echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4954echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4955    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4956if test "${enable_maintainer_mode+set}" = set; then
4957  enableval="$enable_maintainer_mode"
4958  USE_MAINTAINER_MODE=$enableval
4959else
4960  USE_MAINTAINER_MODE=no
4961fi;
4962  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4963echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4964
4965
4966if test $USE_MAINTAINER_MODE = yes; then
4967  MAINTAINER_MODE_TRUE=
4968  MAINTAINER_MODE_FALSE='#'
4969else
4970  MAINTAINER_MODE_TRUE='#'
4971  MAINTAINER_MODE_FALSE=
4972fi
4973
4974  MAINT=$MAINTAINER_MODE_TRUE
4975
4976
4977
4978coin_have_externals=no
4979if test "$enable_maintainer_mode" = yes; then
4980
4981  # If maintainer mode is chosen, we make sure that the correct versions
4982  # of the tools are used, and that we know where libtool.m4 is (to
4983  # recreate acinclude.m4)
4984
4985
4986  LIBTOOLM4=
4987  # Normally, $HOME
4988  AUTOTOOLS_DFLT=$HOME
4989
4990  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4991echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4992if test "${ac_cv_use_correct_autotools+set}" = set; then
4993  echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995  ac_cv_use_correct_autotools=check
4996fi
4997echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4998echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4999
5000  if test $ac_cv_use_correct_autotools = check; then
5001    ac_cv_use_correct_autotools=yes
5002    # Check if we have autoconf
5003    # Extract the first word of "autoconf", so it can be a program name with args.
5004set dummy autoconf; ac_word=$2
5005echo "$as_me:$LINENO: checking for $ac_word" >&5
5006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007if test "${ac_cv_prog_have_autoconf+set}" = set; then
5008  echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010  if test -n "$have_autoconf"; then
5011  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5012else
5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016  IFS=$as_save_IFS
5017  test -z "$as_dir" && as_dir=.
5018  for ac_exec_ext in '' $ac_executable_extensions; do
5019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020    ac_cv_prog_have_autoconf="yes"
5021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022    break 2
5023  fi
5024done
5025done
5026
5027  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5028fi
5029fi
5030have_autoconf=$ac_cv_prog_have_autoconf
5031if test -n "$have_autoconf"; then
5032  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5033echo "${ECHO_T}$have_autoconf" >&6
5034else
5035  echo "$as_me:$LINENO: result: no" >&5
5036echo "${ECHO_T}no" >&6
5037fi
5038
5039    if test $have_autoconf = no; then
5040      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5041echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5042   { (exit 1); exit 1; }; }
5043    fi
5044
5045    # Check whether autoconf is the correct version
5046    correct_version='2.59'
5047    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5048    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5049echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5050    autoconf --version > confauto.out 2>&1
5051    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5052      echo "$as_me:$LINENO: result: yes" >&5
5053echo "${ECHO_T}yes" >&6
5054    else
5055      rm -f confauto.out
5056      echo "$as_me:$LINENO: result: no" >&5
5057echo "${ECHO_T}no" >&6
5058      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5059echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5060   { (exit 1); exit 1; }; }
5061    fi
5062    rm -f confauto.out
5063
5064    # Check if the executable autoconf is picked up from the correct location
5065    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5066echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5067    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5068    autoconf_dir=`cd $autoconf_dir; pwd`
5069    if test x$AUTOTOOLS_DIR = x; then
5070      want_dir=$AUTOTOOLS_DFLT/bin
5071    else
5072      want_dir=$AUTOTOOLS_DIR/bin
5073    fi
5074    if test $autoconf_dir = `cd $want_dir; pwd`; then
5075      echo "$as_me:$LINENO: result: yes" >&5
5076echo "${ECHO_T}yes" >&6
5077    else
5078      rm -f confauto.out
5079      echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6
5081      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5082echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5083   { (exit 1); exit 1; }; }
5084    fi
5085
5086    # Check if we have automake
5087    # Extract the first word of "automake", so it can be a program name with args.
5088set dummy automake; ac_word=$2
5089echo "$as_me:$LINENO: checking for $ac_word" >&5
5090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5091if test "${ac_cv_prog_have_automake+set}" = set; then
5092  echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094  if test -n "$have_automake"; then
5095  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5096else
5097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098for as_dir in $PATH
5099do
5100  IFS=$as_save_IFS
5101  test -z "$as_dir" && as_dir=.
5102  for ac_exec_ext in '' $ac_executable_extensions; do
5103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104    ac_cv_prog_have_automake="yes"
5105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106    break 2
5107  fi
5108done
5109done
5110
5111  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5112fi
5113fi
5114have_automake=$ac_cv_prog_have_automake
5115if test -n "$have_automake"; then
5116  echo "$as_me:$LINENO: result: $have_automake" >&5
5117echo "${ECHO_T}$have_automake" >&6
5118else
5119  echo "$as_me:$LINENO: result: no" >&5
5120echo "${ECHO_T}no" >&6
5121fi
5122
5123    if test $have_automake = no; then
5124      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5125echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5126   { (exit 1); exit 1; }; }
5127    fi
5128
5129    # Check whether automake is the correct version
5130    correct_version='1.9.6'
5131    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5132    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5133echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5134    automake --version > confauto.out 2>&1
5135    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5136      echo "$as_me:$LINENO: result: yes" >&5
5137echo "${ECHO_T}yes" >&6
5138    else
5139      rm -f confauto.out
5140      echo "$as_me:$LINENO: result: no" >&5
5141echo "${ECHO_T}no" >&6
5142      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5143echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5144   { (exit 1); exit 1; }; }
5145    fi
5146    rm -f confauto.out
5147
5148    # Check if the executable automake is picked up from the correct location
5149    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5150echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5151    automake_dir=`which automake | sed -e 's=/automake=='`
5152    automake_dir=`cd $automake_dir; pwd`
5153    if test x$AUTOTOOLS_DIR = x; then
5154      want_dir=$AUTOTOOLS_DFLT/bin
5155    else
5156      want_dir=$AUTOTOOLS_DIR/bin
5157    fi
5158    if test $automake_dir = `cd $want_dir; pwd`; then
5159      echo "$as_me:$LINENO: result: yes" >&5
5160echo "${ECHO_T}yes" >&6
5161    else
5162      rm -f confauto.out
5163      echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6
5165      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5166echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5167   { (exit 1); exit 1; }; }
5168    fi
5169
5170    # Check if this is the correct version of libtool (with escaped dots)
5171    if test x$AUTOTOOLS_DIR = x; then
5172      want_dir=$AUTOTOOLS_DFLT/share
5173    else
5174      want_dir=$AUTOTOOLS_DIR/share
5175    fi
5176    correct_version='1.5.22'
5177    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5178    if test -r $want_dir/libtool/ltmain.sh; then
5179  have_ltmain=yes
5180  :
5181else
5182  have_ltmain=no
5183  :
5184fi
5185
5186    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5187echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5188    if test $have_ltmain = yes; then
5189    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5190        echo "$as_me:$LINENO: result: yes" >&5
5191echo "${ECHO_T}yes" >&6
5192      else
5193        echo "$as_me:$LINENO: result: no" >&5
5194echo "${ECHO_T}no" >&6
5195        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5196echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5197   { (exit 1); exit 1; }; }
5198      fi
5199    else
5200      echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
5202      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5203echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5204   { (exit 1); exit 1; }; }
5205    fi
5206  fi
5207
5208  # Check if we can find the libtool file
5209  if test x$AUTOTOOLS_DIR = x; then
5210    want_dir=$AUTOTOOLS_DFLT/share
5211  else
5212    want_dir=$AUTOTOOLS_DIR/share
5213  fi
5214  if test -r $want_dir/aclocal/libtool.m4; then
5215  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5216  :
5217else
5218  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5219echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5220   { (exit 1); exit 1; }; }
5221  :
5222fi
5223
5224
5225  # Check if we have an Externals file
5226  if test -r $srcdir/Externals; then
5227    coin_have_externals=yes
5228  fi
5229  # Check if subversion is installed and understands https
5230  # Extract the first word of "svn", so it can be a program name with args.
5231set dummy svn; ac_word=$2
5232echo "$as_me:$LINENO: checking for $ac_word" >&5
5233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234if test "${ac_cv_prog_have_svn+set}" = set; then
5235  echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237  if test -n "$have_svn"; then
5238  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243  IFS=$as_save_IFS
5244  test -z "$as_dir" && as_dir=.
5245  for ac_exec_ext in '' $ac_executable_extensions; do
5246  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247    ac_cv_prog_have_svn="yes"
5248    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249    break 2
5250  fi
5251done
5252done
5253
5254  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5255fi
5256fi
5257have_svn=$ac_cv_prog_have_svn
5258if test -n "$have_svn"; then
5259  echo "$as_me:$LINENO: result: $have_svn" >&5
5260echo "${ECHO_T}$have_svn" >&6
5261else
5262  echo "$as_me:$LINENO: result: no" >&5
5263echo "${ECHO_T}no" >&6
5264fi
5265
5266  if test x$have_svn = xyes; then
5267    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5268echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5269if test "${ac_cv_svn_understands_https+set}" = set; then
5270  echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272  svn --version > confauto.out 2>&1
5273                    if $EGREP https confauto.out >/dev/null 2>&1; then
5274                      ac_cv_svn_understands_https=yes
5275                    else
5276                      ac_cv_svn_understands_https=no
5277                      have_svn=no
5278                      ac_cv_prog_have_svn=no
5279                    fi
5280                    rm -f confauto.out
5281fi
5282echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5283echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5284  fi
5285
5286  # Find the location of the BuildTools directory
5287  BUILDTOOLSDIR=
5288  if test -r $srcdir/BuildTools/coin.m4; then
5289    BUILDTOOLSDIR=$srcdir/BuildTools
5290  else
5291    if test -r $srcdir/../BuildTools/coin.m4; then
5292      BUILDTOOLSDIR=$srcdir/../BuildTools
5293    else
5294      if test -r $srcdir/../../BuildTools/coin.m4; then
5295        BUILDTOOLSDIR=$srcdir/../../BuildTools
5296      else
5297        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5298echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5299   { (exit 1); exit 1; }; }
5300      fi
5301    fi
5302  fi
5303
5304
5305  # The following variable is set to the name of the directory where
5306  # the autotool scripts are located
5307
5308  AUX_DIR=$ac_aux_dir
5309fi
5310
5311# helpful variable for the base directory of this package
5312abs_source_dir=`cd $srcdir; pwd`
5313
5314
5315# Stuff for example Makefiles
5316if test x$prefix = xNONE; then
5317  full_prefix=$ac_default_prefix
5318else
5319  full_prefix=$prefix
5320fi
5321full_prefix=`cd $full_prefix ; pwd`
5322
5323abs_lib_dir=$full_prefix/lib
5324
5325abs_include_dir=$full_prefix/include
5326
5327abs_bin_dir=$full_prefix/bin
5328
5329
5330
5331if test $coin_have_externals = yes && test x$have_svn = xyes; then
5332  HAVE_EXTERNALS_TRUE=
5333  HAVE_EXTERNALS_FALSE='#'
5334else
5335  HAVE_EXTERNALS_TRUE='#'
5336  HAVE_EXTERNALS_FALSE=
5337fi
5338
5339
5340# AC_MSG_NOTICE([End automake initialisation.])
5341
5342
5343
5344LIBTOOL=
5345if test -r ../libtool; then
5346  coin_config_dir=..
5347  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5348fi
5349if test "x$LIBTOOL" = x; then
5350  if test -r ../../libtool; then
5351    coin_config_dir=../..
5352    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5353  fi
5354fi
5355
5356if test "x$LIBTOOL" = x; then
5357# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5358  # Stuff for libtool
5359  # Check whether --enable-shared or --disable-shared was given.
5360if test "${enable_shared+set}" = set; then
5361  enableval="$enable_shared"
5362  p=${PACKAGE-default}
5363    case $enableval in
5364    yes) enable_shared=yes ;;
5365    no) enable_shared=no ;;
5366    *)
5367      enable_shared=no
5368      # Look at the argument we got.  We use all the common list separators.
5369      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5370      for pkg in $enableval; do
5371        IFS="$lt_save_ifs"
5372        if test "X$pkg" = "X$p"; then
5373          enable_shared=yes
5374        fi
5375      done
5376      IFS="$lt_save_ifs"
5377      ;;
5378    esac
5379else
5380  enable_shared=yes
5381fi;
5382
5383# Check whether --enable-fast-install or --disable-fast-install was given.
5384if test "${enable_fast_install+set}" = set; then
5385  enableval="$enable_fast_install"
5386  p=${PACKAGE-default}
5387    case $enableval in
5388    yes) enable_fast_install=yes ;;
5389    no) enable_fast_install=no ;;
5390    *)
5391      enable_fast_install=no
5392      # Look at the argument we got.  We use all the common list separators.
5393      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5394      for pkg in $enableval; do
5395        IFS="$lt_save_ifs"
5396        if test "X$pkg" = "X$p"; then
5397          enable_fast_install=yes
5398        fi
5399      done
5400      IFS="$lt_save_ifs"
5401      ;;
5402    esac
5403else
5404  enable_fast_install=yes
5405fi;
5406
5407echo "$as_me:$LINENO: checking host system type" >&5
5408echo $ECHO_N "checking host system type... $ECHO_C" >&6
5409if test "${ac_cv_host+set}" = set; then
5410  echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412  ac_cv_host_alias=$host_alias
5413test -z "$ac_cv_host_alias" &&
5414  ac_cv_host_alias=$ac_cv_build_alias
5415ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5416  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5417echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5418   { (exit 1); exit 1; }; }
5419
5420fi
5421echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5422echo "${ECHO_T}$ac_cv_host" >&6
5423host=$ac_cv_host
5424host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5425host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5426host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5427
5428
5429echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5430echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5431if test "${lt_cv_path_SED+set}" = set; then
5432  echo $ECHO_N "(cached) $ECHO_C" >&6
5433else
5434  # Loop through the user's path and test for sed and gsed.
5435# Then use that list of sed's as ones to test for truncation.
5436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH
5438do
5439  IFS=$as_save_IFS
5440  test -z "$as_dir" && as_dir=.
5441  for lt_ac_prog in sed gsed; do
5442    for ac_exec_ext in '' $ac_executable_extensions; do
5443      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5444        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5445      fi
5446    done
5447  done
5448done
5449lt_ac_max=0
5450lt_ac_count=0
5451# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5452# along with /bin/sed that truncates output.
5453for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5454  test ! -f $lt_ac_sed && continue
5455  cat /dev/null > conftest.in
5456  lt_ac_count=0
5457  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5458  # Check for GNU sed and select it if it is found.
5459  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5460    lt_cv_path_SED=$lt_ac_sed
5461    break
5462  fi
5463  while true; do
5464    cat conftest.in conftest.in >conftest.tmp
5465    mv conftest.tmp conftest.in
5466    cp conftest.in conftest.nl
5467    echo >>conftest.nl
5468    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5469    cmp -s conftest.out conftest.nl || break
5470    # 10000 chars as input seems more than enough
5471    test $lt_ac_count -gt 10 && break
5472    lt_ac_count=`expr $lt_ac_count + 1`
5473    if test $lt_ac_count -gt $lt_ac_max; then
5474      lt_ac_max=$lt_ac_count
5475      lt_cv_path_SED=$lt_ac_sed
5476    fi
5477  done
5478done
5479
5480fi
5481
5482SED=$lt_cv_path_SED
5483echo "$as_me:$LINENO: result: $SED" >&5
5484echo "${ECHO_T}$SED" >&6
5485
5486
5487# Check whether --with-gnu-ld or --without-gnu-ld was given.
5488if test "${with_gnu_ld+set}" = set; then
5489  withval="$with_gnu_ld"
5490  test "$withval" = no || with_gnu_ld=yes
5491else
5492  with_gnu_ld=no
5493fi;
5494ac_prog=ld
5495if test "$GCC" = yes; then
5496  # Check if gcc -print-prog-name=ld gives a path.
5497  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5498echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5499  case $host in
5500  *-*-mingw*)
5501    # gcc leaves a trailing carriage return which upsets mingw
5502    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5503  *)
5504    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5505  esac
5506  case $ac_prog in
5507    # Accept absolute paths.
5508    [\\/]* | ?:[\\/]*)
5509      re_direlt='/[^/][^/]*/\.\./'
5510      # Canonicalize the pathname of ld
5511      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5512      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5513        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5514      done
5515      test -z "$LD" && LD="$ac_prog"
5516      ;;
5517  "")
5518    # If it fails, then pretend we aren't using GCC.
5519    ac_prog=ld
5520    ;;
5521  *)
5522    # If it is relative, then search for the first ld in PATH.
5523    with_gnu_ld=unknown
5524    ;;
5525  esac
5526elif test "$with_gnu_ld" = yes; then
5527  echo "$as_me:$LINENO: checking for GNU ld" >&5
5528echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5529else
5530  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5531echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5532fi
5533if test "${lt_cv_path_LD+set}" = set; then
5534  echo $ECHO_N "(cached) $ECHO_C" >&6
5535else
5536  if test -z "$LD"; then
5537  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5538  for ac_dir in $PATH; do
5539    IFS="$lt_save_ifs"
5540    test -z "$ac_dir" && ac_dir=.
5541    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5542      lt_cv_path_LD="$ac_dir/$ac_prog"
5543      # Check to see if the program is GNU ld.  I'd rather use --version,
5544      # but apparently some variants of GNU ld only accept -v.
5545      # Break only if it was the GNU/non-GNU ld that we prefer.
5546      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5547      *GNU* | *'with BFD'*)
5548        test "$with_gnu_ld" != no && break
5549        ;;
5550      *)
5551        test "$with_gnu_ld" != yes && break
5552        ;;
5553      esac
5554    fi
5555  done
5556  IFS="$lt_save_ifs"
5557else
5558  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5559fi
5560fi
5561
5562LD="$lt_cv_path_LD"
5563if test -n "$LD"; then
5564  echo "$as_me:$LINENO: result: $LD" >&5
5565echo "${ECHO_T}$LD" >&6
5566else
5567  echo "$as_me:$LINENO: result: no" >&5
5568echo "${ECHO_T}no" >&6
5569fi
5570test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5571echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5572   { (exit 1); exit 1; }; }
5573echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5574echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5575if test "${lt_cv_prog_gnu_ld+set}" = set; then
5576  echo $ECHO_N "(cached) $ECHO_C" >&6
5577else
5578  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5579case `$LD -v 2>&1 </dev/null` in
5580*GNU* | *'with BFD'*)
5581  lt_cv_prog_gnu_ld=yes
5582  ;;
5583*)
5584  lt_cv_prog_gnu_ld=no
5585  ;;
5586esac
5587fi
5588echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5589echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5590with_gnu_ld=$lt_cv_prog_gnu_ld
5591
5592
5593echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5594echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5595if test "${lt_cv_ld_reload_flag+set}" = set; then
5596  echo $ECHO_N "(cached) $ECHO_C" >&6
5597else
5598  lt_cv_ld_reload_flag='-r'
5599fi
5600echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5601echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5602reload_flag=$lt_cv_ld_reload_flag
5603case $reload_flag in
5604"" | " "*) ;;
5605*) reload_flag=" $reload_flag" ;;
5606esac
5607reload_cmds='$LD$reload_flag -o $output$reload_objs'
5608case $host_os in
5609  darwin*)
5610    if test "$GCC" = yes; then
5611      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5612    else
5613      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5614    fi
5615    ;;
5616esac
5617
5618echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5619echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5620if test "${lt_cv_path_NM+set}" = set; then
5621  echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623  if test -n "$NM"; then
5624  # Let the user override the test.
5625  lt_cv_path_NM="$NM"
5626else
5627  lt_nm_to_check="${ac_tool_prefix}nm"
5628  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5629    lt_nm_to_check="$lt_nm_to_check nm"
5630  fi
5631  for lt_tmp_nm in $lt_nm_to_check; do
5632    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5633    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5634      IFS="$lt_save_ifs"
5635      test -z "$ac_dir" && ac_dir=.
5636      tmp_nm="$ac_dir/$lt_tmp_nm"
5637      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5638        # Check to see if the nm accepts a BSD-compat flag.
5639        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5640        #   nm: unknown option "B" ignored
5641        # Tru64's nm complains that /dev/null is an invalid object file
5642        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5643        */dev/null* | *'Invalid file or object type'*)
5644          lt_cv_path_NM="$tmp_nm -B"
5645          break
5646          ;;
5647        *)
5648          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5649          */dev/null*)
5650            lt_cv_path_NM="$tmp_nm -p"
5651            break
5652            ;;
5653          *)
5654            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5655            continue # so that we can try to find one that supports BSD flags
5656            ;;
5657          esac
5658          ;;
5659        esac
5660      fi
5661    done
5662    IFS="$lt_save_ifs"
5663  done
5664  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5665fi
5666fi
5667echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5668echo "${ECHO_T}$lt_cv_path_NM" >&6
5669NM="$lt_cv_path_NM"
5670
5671echo "$as_me:$LINENO: checking whether ln -s works" >&5
5672echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5673LN_S=$as_ln_s
5674if test "$LN_S" = "ln -s"; then
5675  echo "$as_me:$LINENO: result: yes" >&5
5676echo "${ECHO_T}yes" >&6
5677else
5678  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5679echo "${ECHO_T}no, using $LN_S" >&6
5680fi
5681
5682echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5683echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5684if test "${lt_cv_deplibs_check_method+set}" = set; then
5685  echo $ECHO_N "(cached) $ECHO_C" >&6
5686else
5687  lt_cv_file_magic_cmd='$MAGIC_CMD'
5688lt_cv_file_magic_test_file=
5689lt_cv_deplibs_check_method='unknown'
5690# Need to set the preceding variable on all platforms that support
5691# interlibrary dependencies.
5692# 'none' -- dependencies not supported.
5693# `unknown' -- same as none, but documents that we really don't know.
5694# 'pass_all' -- all dependencies passed with no checks.
5695# 'test_compile' -- check by making test program.
5696# 'file_magic [[regex]]' -- check by looking for files in library path
5697# which responds to the $file_magic_cmd with a given extended regex.
5698# If you have `file' or equivalent on your system and you're not sure
5699# whether `pass_all' will *always* work, you probably want this one.
5700
5701case $host_os in
5702aix4* | aix5*)
5703  lt_cv_deplibs_check_method=pass_all
5704  ;;
5705
5706beos*)
5707  lt_cv_deplibs_check_method=pass_all
5708  ;;
5709
5710bsdi[45]*)
5711  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5712  lt_cv_file_magic_cmd='/usr/bin/file -L'
5713  lt_cv_file_magic_test_file=/shlib/libc.so
5714  ;;
5715
5716cygwin*)
5717  # func_win32_libid is a shell function defined in ltmain.sh
5718  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5719  lt_cv_file_magic_cmd='func_win32_libid'
5720  ;;
5721
5722mingw* | pw32*)
5723  # Base MSYS/MinGW do not provide the 'file' command needed by
5724  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5725  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5726  lt_cv_file_magic_cmd='$OBJDUMP -f'
5727  ;;
5728
5729darwin* | rhapsody*)
5730  lt_cv_deplibs_check_method=pass_all
5731  ;;
5732
5733freebsd* | kfreebsd*-gnu | dragonfly*)
5734  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5735    case $host_cpu in
5736    i*86 )
5737      # Not sure whether the presence of OpenBSD here was a mistake.
5738      # Let's accept both of them until this is cleared up.
5739      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5740      lt_cv_file_magic_cmd=/usr/bin/file
5741      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5742      ;;
5743    esac
5744  else
5745    lt_cv_deplibs_check_method=pass_all
5746  fi
5747  ;;
5748
5749gnu*)
5750  lt_cv_deplibs_check_method=pass_all
5751  ;;
5752
5753hpux10.20* | hpux11*)
5754  lt_cv_file_magic_cmd=/usr/bin/file
5755  case $host_cpu in
5756  ia64*)
5757    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5758    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5759    ;;
5760  hppa*64*)
5761    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]'
5762    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5763    ;;
5764  *)
5765    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5766    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5767    ;;
5768  esac
5769  ;;
5770
5771interix3*)
5772  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5773  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5774  ;;
5775
5776irix5* | irix6* | nonstopux*)
5777  case $LD in
5778  *-32|*"-32 ") libmagic=32-bit;;
5779  *-n32|*"-n32 ") libmagic=N32;;
5780  *-64|*"-64 ") libmagic=64-bit;;
5781  *) libmagic=never-match;;
5782  esac
5783  lt_cv_deplibs_check_method=pass_all
5784  ;;
5785
5786# This must be Linux ELF.
5787linux*)
5788  lt_cv_deplibs_check_method=pass_all
5789  ;;
5790
5791netbsd*)
5792  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5793    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5794  else
5795    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5796  fi
5797  ;;
5798
5799newos6*)
5800  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5801  lt_cv_file_magic_cmd=/usr/bin/file
5802  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5803  ;;
5804
5805nto-qnx*)
5806  lt_cv_deplibs_check_method=unknown
5807  ;;
5808
5809openbsd*)
5810  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5812  else
5813    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5814  fi
5815  ;;
5816
5817osf3* | osf4* | osf5*)
5818  lt_cv_deplibs_check_method=pass_all
5819  ;;
5820
5821solaris*)
5822  lt_cv_deplibs_check_method=pass_all
5823  ;;
5824
5825sysv4 | sysv4.3*)
5826  case $host_vendor in
5827  motorola)
5828    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]'
5829    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5830    ;;
5831  ncr)
5832    lt_cv_deplibs_check_method=pass_all
5833    ;;
5834  sequent)
5835    lt_cv_file_magic_cmd='/bin/file'
5836    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5837    ;;
5838  sni)
5839    lt_cv_file_magic_cmd='/bin/file'
5840    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5841    lt_cv_file_magic_test_file=/lib/libc.so
5842    ;;
5843  siemens)
5844    lt_cv_deplibs_check_method=pass_all
5845    ;;
5846  pc)
5847    lt_cv_deplibs_check_method=pass_all
5848    ;;
5849  esac
5850  ;;
5851
5852sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5853  lt_cv_deplibs_check_method=pass_all
5854  ;;
5855esac
5856
5857fi
5858echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5859echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5860file_magic_cmd=$lt_cv_file_magic_cmd
5861deplibs_check_method=$lt_cv_deplibs_check_method
5862test -z "$deplibs_check_method" && deplibs_check_method=unknown
5863
5864
5865
5866
5867# If no C compiler was specified, use CC.
5868LTCC=${LTCC-"$CC"}
5869
5870# If no C compiler flags were specified, use CFLAGS.
5871LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5872
5873# Allow CC to be a program name with arguments.
5874compiler=$CC
5875
5876# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5877if test "${enable_libtool_lock+set}" = set; then
5878  enableval="$enable_libtool_lock"
5879
5880fi;
5881test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5882
5883# Some flags need to be propagated to the compiler or linker for good
5884# libtool support.
5885case $host in
5886ia64-*-hpux*)
5887  # Find out which ABI we are using.
5888  echo 'int i;' > conftest.$ac_ext
5889  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5890  (eval $ac_compile) 2>&5
5891  ac_status=$?
5892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893  (exit $ac_status); }; then
5894    case `/usr/bin/file conftest.$ac_objext` in
5895    *ELF-32*)
5896      HPUX_IA64_MODE="32"
5897      ;;
5898    *ELF-64*)
5899      HPUX_IA64_MODE="64"
5900      ;;
5901    esac
5902  fi
5903  rm -rf conftest*
5904  ;;
5905*-*-irix6*)
5906  # Find out which ABI we are using.
5907  echo '#line 5907 "configure"' > conftest.$ac_ext
5908  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5909  (eval $ac_compile) 2>&5
5910  ac_status=$?
5911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912  (exit $ac_status); }; then
5913   if test "$lt_cv_prog_gnu_ld" = yes; then
5914    case `/usr/bin/file conftest.$ac_objext` in
5915    *32-bit*)
5916      LD="${LD-ld} -melf32bsmip"
5917      ;;
5918    *N32*)
5919      LD="${LD-ld} -melf32bmipn32"
5920      ;;
5921    *64-bit*)
5922      LD="${LD-ld} -melf64bmip"
5923      ;;
5924    esac
5925   else
5926    case `/usr/bin/file conftest.$ac_objext` in
5927    *32-bit*)
5928      LD="${LD-ld} -32"
5929      ;;
5930    *N32*)
5931      LD="${LD-ld} -n32"
5932      ;;
5933    *64-bit*)
5934      LD="${LD-ld} -64"
5935      ;;
5936    esac
5937   fi
5938  fi
5939  rm -rf conftest*
5940  ;;
5941
5942x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5943  # Find out which ABI we are using.
5944  echo 'int i;' > conftest.$ac_ext
5945  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5946  (eval $ac_compile) 2>&5
5947  ac_status=$?
5948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949  (exit $ac_status); }; then
5950    case `/usr/bin/file conftest.o` in
5951    *32-bit*)
5952      case $host in
5953        x86_64-*linux*)
5954          LD="${LD-ld} -m elf_i386"
5955          ;;
5956        ppc64-*linux*|powerpc64-*linux*)
5957          LD="${LD-ld} -m elf32ppclinux"
5958          ;;
5959        s390x-*linux*)
5960          LD="${LD-ld} -m elf_s390"
5961          ;;
5962        sparc64-*linux*)
5963          LD="${LD-ld} -m elf32_sparc"
5964          ;;
5965      esac
5966      ;;
5967    *64-bit*)
5968      case $host in
5969        x86_64-*linux*)
5970          LD="${LD-ld} -m elf_x86_64"
5971          ;;
5972        ppc*-*linux*|powerpc*-*linux*)
5973          LD="${LD-ld} -m elf64ppc"
5974          ;;
5975        s390*-*linux*)
5976          LD="${LD-ld} -m elf64_s390"
5977          ;;
5978        sparc*-*linux*)
5979          LD="${LD-ld} -m elf64_sparc"
5980          ;;
5981      esac
5982      ;;
5983    esac
5984  fi
5985  rm -rf conftest*
5986  ;;
5987
5988*-*-sco3.2v5*)
5989  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5990  SAVE_CFLAGS="$CFLAGS"
5991  CFLAGS="$CFLAGS -belf"
5992  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5993echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5994if test "${lt_cv_cc_needs_belf+set}" = set; then
5995  echo $ECHO_N "(cached) $ECHO_C" >&6
5996else
5997  ac_ext=c
5998ac_cpp='$CPP $CPPFLAGS'
5999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6001ac_compiler_gnu=$ac_cv_c_compiler_gnu
6002
6003     cat >conftest.$ac_ext <<_ACEOF
6004/* confdefs.h.  */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h.  */
6009
6010int
6011main ()
6012{
6013
6014  ;
6015  return 0;
6016}
6017_ACEOF
6018rm -f conftest.$ac_objext conftest$ac_exeext
6019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6020  (eval $ac_link) 2>conftest.er1
6021  ac_status=$?
6022  grep -v '^ *+' conftest.er1 >conftest.err
6023  rm -f conftest.er1
6024  cat conftest.err >&5
6025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026  (exit $ac_status); } &&
6027         { ac_try='test -z "$ac_c_werror_flag"
6028                         || test ! -s conftest.err'
6029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030  (eval $ac_try) 2>&5
6031  ac_status=$?
6032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033  (exit $ac_status); }; } &&
6034         { ac_try='test -s conftest$ac_exeext'
6035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036  (eval $ac_try) 2>&5
6037  ac_status=$?
6038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039  (exit $ac_status); }; }; then
6040  lt_cv_cc_needs_belf=yes
6041else
6042  echo "$as_me: failed program was:" >&5
6043sed 's/^/| /' conftest.$ac_ext >&5
6044
6045lt_cv_cc_needs_belf=no
6046fi
6047rm -f conftest.err conftest.$ac_objext \
6048      conftest$ac_exeext conftest.$ac_ext
6049     ac_ext=c
6050ac_cpp='$CPP $CPPFLAGS'
6051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6053ac_compiler_gnu=$ac_cv_c_compiler_gnu
6054
6055fi
6056echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6057echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6058  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6059    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6060    CFLAGS="$SAVE_CFLAGS"
6061  fi
6062  ;;
6063sparc*-*solaris*)
6064  # Find out which ABI we are using.
6065  echo 'int i;' > conftest.$ac_ext
6066  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067  (eval $ac_compile) 2>&5
6068  ac_status=$?
6069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070  (exit $ac_status); }; then
6071    case `/usr/bin/file conftest.o` in
6072    *64-bit*)
6073      case $lt_cv_prog_gnu_ld in
6074      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6075      *)    LD="${LD-ld} -64" ;;
6076      esac
6077      ;;
6078    esac
6079  fi
6080  rm -rf conftest*
6081  ;;
6082
6083
6084esac
6085
6086need_locks="$enable_libtool_lock"
6087
6088
6089ac_ext=c
6090ac_cpp='$CPP $CPPFLAGS'
6091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6093ac_compiler_gnu=$ac_cv_c_compiler_gnu
6094echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6095echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6096# On Suns, sometimes $CPP names a directory.
6097if test -n "$CPP" && test -d "$CPP"; then
6098  CPP=
6099fi
6100if test -z "$CPP"; then
6101  if test "${ac_cv_prog_CPP+set}" = set; then
6102  echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104      # Double quotes because CPP needs to be expanded
6105    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6106    do
6107      ac_preproc_ok=false
6108for ac_c_preproc_warn_flag in '' yes
6109do
6110  # Use a header file that comes with gcc, so configuring glibc
6111  # with a fresh cross-compiler works.
6112  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6113  # <limits.h> exists even on freestanding compilers.
6114  # On the NeXT, cc -E runs the code through the compiler's parser,
6115  # not just through cpp. "Syntax error" is here to catch this case.
6116  cat >conftest.$ac_ext <<_ACEOF
6117/* confdefs.h.  */
6118_ACEOF
6119cat confdefs.h >>conftest.$ac_ext
6120cat >>conftest.$ac_ext <<_ACEOF
6121/* end confdefs.h.  */
6122#ifdef __STDC__
6123# include <limits.h>
6124#else
6125# include <assert.h>
6126#endif
6127                     Syntax error
6128_ACEOF
6129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6130  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6131  ac_status=$?
6132  grep -v '^ *+' conftest.er1 >conftest.err
6133  rm -f conftest.er1
6134  cat conftest.err >&5
6135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136  (exit $ac_status); } >/dev/null; then
6137  if test -s conftest.err; then
6138    ac_cpp_err=$ac_c_preproc_warn_flag
6139    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6140  else
6141    ac_cpp_err=
6142  fi
6143else
6144  ac_cpp_err=yes
6145fi
6146if test -z "$ac_cpp_err"; then
6147  :
6148else
6149  echo "$as_me: failed program was:" >&5
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
6152  # Broken: fails on valid input.
6153continue
6154fi
6155rm -f conftest.err conftest.$ac_ext
6156
6157  # OK, works on sane cases.  Now check whether non-existent headers
6158  # can be detected and how.
6159  cat >conftest.$ac_ext <<_ACEOF
6160/* confdefs.h.  */
6161_ACEOF
6162cat confdefs.h >>conftest.$ac_ext
6163cat >>conftest.$ac_ext <<_ACEOF
6164/* end confdefs.h.  */
6165#include <ac_nonexistent.h>
6166_ACEOF
6167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6168  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6169  ac_status=$?
6170  grep -v '^ *+' conftest.er1 >conftest.err
6171  rm -f conftest.er1
6172  cat conftest.err >&5
6173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174  (exit $ac_status); } >/dev/null; then
6175  if test -s conftest.err; then
6176    ac_cpp_err=$ac_c_preproc_warn_flag
6177    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6178  else
6179    ac_cpp_err=
6180  fi
6181else
6182  ac_cpp_err=yes
6183fi
6184if test -z "$ac_cpp_err"; then
6185  # Broken: success on invalid input.
6186continue
6187else
6188  echo "$as_me: failed program was:" >&5
6189sed 's/^/| /' conftest.$ac_ext >&5
6190
6191  # Passes both tests.
6192ac_preproc_ok=:
6193break
6194fi
6195rm -f conftest.err conftest.$ac_ext
6196
6197done
6198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6199rm -f conftest.err conftest.$ac_ext
6200if $ac_preproc_ok; then
6201  break
6202fi
6203
6204    done
6205    ac_cv_prog_CPP=$CPP
6206
6207fi
6208  CPP=$ac_cv_prog_CPP
6209else
6210  ac_cv_prog_CPP=$CPP
6211fi
6212echo "$as_me:$LINENO: result: $CPP" >&5
6213echo "${ECHO_T}$CPP" >&6
6214ac_preproc_ok=false
6215for ac_c_preproc_warn_flag in '' yes
6216do
6217  # Use a header file that comes with gcc, so configuring glibc
6218  # with a fresh cross-compiler works.
6219  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6220  # <limits.h> exists even on freestanding compilers.
6221  # On the NeXT, cc -E runs the code through the compiler's parser,
6222  # not just through cpp. "Syntax error" is here to catch this case.
6223  cat >conftest.$ac_ext <<_ACEOF
6224/* confdefs.h.  */
6225_ACEOF
6226cat confdefs.h >>conftest.$ac_ext
6227cat >>conftest.$ac_ext <<_ACEOF
6228/* end confdefs.h.  */
6229#ifdef __STDC__
6230# include <limits.h>
6231#else
6232# include <assert.h>
6233#endif
6234                     Syntax error
6235_ACEOF
6236if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6237  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6238  ac_status=$?
6239  grep -v '^ *+' conftest.er1 >conftest.err
6240  rm -f conftest.er1
6241  cat conftest.err >&5
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); } >/dev/null; then
6244  if test -s conftest.err; then
6245    ac_cpp_err=$ac_c_preproc_warn_flag
6246    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6247  else
6248    ac_cpp_err=
6249  fi
6250else
6251  ac_cpp_err=yes
6252fi
6253if test -z "$ac_cpp_err"; then
6254  :
6255else
6256  echo "$as_me: failed program was:" >&5
6257sed 's/^/| /' conftest.$ac_ext >&5
6258
6259  # Broken: fails on valid input.
6260continue
6261fi
6262rm -f conftest.err conftest.$ac_ext
6263
6264  # OK, works on sane cases.  Now check whether non-existent headers
6265  # can be detected and how.
6266  cat >conftest.$ac_ext <<_ACEOF
6267/* confdefs.h.  */
6268_ACEOF
6269cat confdefs.h >>conftest.$ac_ext
6270cat >>conftest.$ac_ext <<_ACEOF
6271/* end confdefs.h.  */
6272#include <ac_nonexistent.h>
6273_ACEOF
6274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6275  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6276  ac_status=$?
6277  grep -v '^ *+' conftest.er1 >conftest.err
6278  rm -f conftest.er1
6279  cat conftest.err >&5
6280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281  (exit $ac_status); } >/dev/null; then
6282  if test -s conftest.err; then
6283    ac_cpp_err=$ac_c_preproc_warn_flag
6284    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6285  else
6286    ac_cpp_err=
6287  fi
6288else
6289  ac_cpp_err=yes
6290fi
6291if test -z "$ac_cpp_err"; then
6292  # Broken: success on invalid input.
6293continue
6294else
6295  echo "$as_me: failed program was:" >&5
6296sed 's/^/| /' conftest.$ac_ext >&5
6297
6298  # Passes both tests.
6299ac_preproc_ok=:
6300break
6301fi
6302rm -f conftest.err conftest.$ac_ext
6303
6304done
6305# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6306rm -f conftest.err conftest.$ac_ext
6307if $ac_preproc_ok; then
6308  :
6309else
6310  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6311See \`config.log' for more details." >&5
6312echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6313See \`config.log' for more details." >&2;}
6314   { (exit 1); exit 1; }; }
6315fi
6316
6317ac_ext=c
6318ac_cpp='$CPP $CPPFLAGS'
6319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6321ac_compiler_gnu=$ac_cv_c_compiler_gnu
6322
6323
6324echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6325echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6326if test "${ac_cv_header_stdc+set}" = set; then
6327  echo $ECHO_N "(cached) $ECHO_C" >&6
6328else
6329  cat >conftest.$ac_ext <<_ACEOF
6330/* confdefs.h.  */
6331_ACEOF
6332cat confdefs.h >>conftest.$ac_ext
6333cat >>conftest.$ac_ext <<_ACEOF
6334/* end confdefs.h.  */
6335#include <stdlib.h>
6336#include <stdarg.h>
6337#include <string.h>
6338#include <float.h>
6339
6340int
6341main ()
6342{
6343
6344  ;
6345  return 0;
6346}
6347_ACEOF
6348rm -f conftest.$ac_objext
6349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6350  (eval $ac_compile) 2>conftest.er1
6351  ac_status=$?
6352  grep -v '^ *+' conftest.er1 >conftest.err
6353  rm -f conftest.er1
6354  cat conftest.err >&5
6355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356  (exit $ac_status); } &&
6357         { ac_try='test -z "$ac_c_werror_flag"
6358                         || test ! -s conftest.err'
6359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360  (eval $ac_try) 2>&5
6361  ac_status=$?
6362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363  (exit $ac_status); }; } &&
6364         { ac_try='test -s conftest.$ac_objext'
6365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366  (eval $ac_try) 2>&5
6367  ac_status=$?
6368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369  (exit $ac_status); }; }; then
6370  ac_cv_header_stdc=yes
6371else
6372  echo "$as_me: failed program was:" >&5
6373sed 's/^/| /' conftest.$ac_ext >&5
6374
6375ac_cv_header_stdc=no
6376fi
6377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6378
6379if test $ac_cv_header_stdc = yes; then
6380  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6381  cat >conftest.$ac_ext <<_ACEOF
6382/* confdefs.h.  */
6383_ACEOF
6384cat confdefs.h >>conftest.$ac_ext
6385cat >>conftest.$ac_ext <<_ACEOF
6386/* end confdefs.h.  */
6387#include <string.h>
6388
6389_ACEOF
6390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6391  $EGREP "memchr" >/dev/null 2>&1; then
6392  :
6393else
6394  ac_cv_header_stdc=no
6395fi
6396rm -f conftest*
6397
6398fi
6399
6400if test $ac_cv_header_stdc = yes; then
6401  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6402  cat >conftest.$ac_ext <<_ACEOF
6403/* confdefs.h.  */
6404_ACEOF
6405cat confdefs.h >>conftest.$ac_ext
6406cat >>conftest.$ac_ext <<_ACEOF
6407/* end confdefs.h.  */
6408#include <stdlib.h>
6409
6410_ACEOF
6411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6412  $EGREP "free" >/dev/null 2>&1; then
6413  :
6414else
6415  ac_cv_header_stdc=no
6416fi
6417rm -f conftest*
6418
6419fi
6420
6421if test $ac_cv_header_stdc = yes; then
6422  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6423  if test "$cross_compiling" = yes; then
6424  :
6425else
6426  cat >conftest.$ac_ext <<_ACEOF
6427/* confdefs.h.  */
6428_ACEOF
6429cat confdefs.h >>conftest.$ac_ext
6430cat >>conftest.$ac_ext <<_ACEOF
6431/* end confdefs.h.  */
6432#include <ctype.h>
6433#if ((' ' & 0x0FF) == 0x020)
6434# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6435# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6436#else
6437# define ISLOWER(c) \
6438                   (('a' <= (c) && (c) <= 'i') \
6439                     || ('j' <= (c) && (c) <= 'r') \
6440                     || ('s' <= (c) && (c) <= 'z'))
6441# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6442#endif
6443
6444#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6445int
6446main ()
6447{
6448  int i;
6449  for (i = 0; i < 256; i++)
6450    if (XOR (islower (i), ISLOWER (i))
6451        || toupper (i) != TOUPPER (i))
6452      exit(2);
6453  exit (0);
6454}
6455_ACEOF
6456rm -f conftest$ac_exeext
6457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6458  (eval $ac_link) 2>&5
6459  ac_status=$?
6460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463  (eval $ac_try) 2>&5
6464  ac_status=$?
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); }; }; then
6467  :
6468else
6469  echo "$as_me: program exited with status $ac_status" >&5
6470echo "$as_me: failed program was:" >&5
6471sed 's/^/| /' conftest.$ac_ext >&5
6472
6473( exit $ac_status )
6474ac_cv_header_stdc=no
6475fi
6476rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6477fi
6478fi
6479fi
6480echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6481echo "${ECHO_T}$ac_cv_header_stdc" >&6
6482if test $ac_cv_header_stdc = yes; then
6483
6484cat >>confdefs.h <<\_ACEOF
6485#define STDC_HEADERS 1
6486_ACEOF
6487
6488fi
6489
6490# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6501                  inttypes.h stdint.h unistd.h
6502do
6503as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6504echo "$as_me:$LINENO: checking for $ac_header" >&5
6505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6506if eval "test \"\${$as_ac_Header+set}\" = set"; then
6507  echo $ECHO_N "(cached) $ECHO_C" >&6
6508else
6509  cat >conftest.$ac_ext <<_ACEOF
6510/* confdefs.h.  */
6511_ACEOF
6512cat confdefs.h >>conftest.$ac_ext
6513cat >>conftest.$ac_ext <<_ACEOF
6514/* end confdefs.h.  */
6515$ac_includes_default
6516
6517#include <$ac_header>
6518_ACEOF
6519rm -f conftest.$ac_objext
6520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6521  (eval $ac_compile) 2>conftest.er1
6522  ac_status=$?
6523  grep -v '^ *+' conftest.er1 >conftest.err
6524  rm -f conftest.er1
6525  cat conftest.err >&5
6526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527  (exit $ac_status); } &&
6528         { ac_try='test -z "$ac_c_werror_flag"
6529                         || test ! -s conftest.err'
6530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531  (eval $ac_try) 2>&5
6532  ac_status=$?
6533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534  (exit $ac_status); }; } &&
6535         { ac_try='test -s conftest.$ac_objext'
6536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6537  (eval $ac_try) 2>&5
6538  ac_status=$?
6539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540  (exit $ac_status); }; }; then
6541  eval "$as_ac_Header=yes"
6542else
6543  echo "$as_me: failed program was:" >&5
6544sed 's/^/| /' conftest.$ac_ext >&5
6545
6546eval "$as_ac_Header=no"
6547fi
6548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6549fi
6550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6552if test `eval echo '${'$as_ac_Header'}'` = yes; then
6553  cat >>confdefs.h <<_ACEOF
6554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6555_ACEOF
6556
6557fi
6558
6559done
6560
6561
6562
6563for ac_header in dlfcn.h
6564do
6565as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6566if eval "test \"\${$as_ac_Header+set}\" = set"; then
6567  echo "$as_me:$LINENO: checking for $ac_header" >&5
6568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6569if eval "test \"\${$as_ac_Header+set}\" = set"; then
6570  echo $ECHO_N "(cached) $ECHO_C" >&6
6571fi
6572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6574else
6575  # Is the header compilable?
6576echo "$as_me:$LINENO: checking $ac_header usability" >&5
6577echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6578cat >conftest.$ac_ext <<_ACEOF
6579/* confdefs.h.  */
6580_ACEOF
6581cat confdefs.h >>conftest.$ac_ext
6582cat >>conftest.$ac_ext <<_ACEOF
6583/* end confdefs.h.  */
6584$ac_includes_default
6585#include <$ac_header>
6586_ACEOF
6587rm -f conftest.$ac_objext
6588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6589  (eval $ac_compile) 2>conftest.er1
6590  ac_status=$?
6591  grep -v '^ *+' conftest.er1 >conftest.err
6592  rm -f conftest.er1
6593  cat conftest.err >&5
6594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595  (exit $ac_status); } &&
6596         { ac_try='test -z "$ac_c_werror_flag"
6597                         || test ! -s conftest.err'
6598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6599  (eval $ac_try) 2>&5
6600  ac_status=$?
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); }; } &&
6603         { ac_try='test -s conftest.$ac_objext'
6604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605  (eval $ac_try) 2>&5
6606  ac_status=$?
6607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608  (exit $ac_status); }; }; then
6609  ac_header_compiler=yes
6610else
6611  echo "$as_me: failed program was:" >&5
6612sed 's/^/| /' conftest.$ac_ext >&5
6613
6614ac_header_compiler=no
6615fi
6616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6617echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6618echo "${ECHO_T}$ac_header_compiler" >&6
6619
6620# Is the header present?
6621echo "$as_me:$LINENO: checking $ac_header presence" >&5
6622echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6623cat >conftest.$ac_ext <<_ACEOF
6624/* confdefs.h.  */
6625_ACEOF
6626cat confdefs.h >>conftest.$ac_ext
6627cat >>conftest.$ac_ext <<_ACEOF
6628/* end confdefs.h.  */
6629#include <$ac_header>
6630_ACEOF
6631if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6632  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6633  ac_status=$?
6634  grep -v '^ *+' conftest.er1 >conftest.err
6635  rm -f conftest.er1
6636  cat conftest.err >&5
6637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638  (exit $ac_status); } >/dev/null; then
6639  if test -s conftest.err; then
6640    ac_cpp_err=$ac_c_preproc_warn_flag
6641    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6642  else
6643    ac_cpp_err=
6644  fi
6645else
6646  ac_cpp_err=yes
6647fi
6648if test -z "$ac_cpp_err"; then
6649  ac_header_preproc=yes
6650else
6651  echo "$as_me: failed program was:" >&5
6652sed 's/^/| /' conftest.$ac_ext >&5
6653
6654  ac_header_preproc=no
6655fi
6656rm -f conftest.err conftest.$ac_ext
6657echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6658echo "${ECHO_T}$ac_header_preproc" >&6
6659
6660# So?  What about this header?
6661case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6662  yes:no: )
6663    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6664echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6665    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6666echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6667    ac_header_preproc=yes
6668    ;;
6669  no:yes:* )
6670    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6671echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6672    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6673echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6674    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6675echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6676    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6677echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6678    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6679echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6680    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6681echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6682    (
6683      cat <<\_ASBOX
6684## ----------------------------------- ##
6685## Report this to clp@list.coin-or.org ##
6686## ----------------------------------- ##
6687_ASBOX
6688    ) |
6689      sed "s/^/$as_me: WARNING:     /" >&2
6690    ;;
6691esac
6692echo "$as_me:$LINENO: checking for $ac_header" >&5
6693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6694if eval "test \"\${$as_ac_Header+set}\" = set"; then
6695  echo $ECHO_N "(cached) $ECHO_C" >&6
6696else
6697  eval "$as_ac_Header=\$ac_header_preproc"
6698fi
6699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6700echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6701
6702fi
6703if test `eval echo '${'$as_ac_Header'}'` = yes; then
6704  cat >>confdefs.h <<_ACEOF
6705#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6706_ACEOF
6707
6708fi
6709
6710done
6711
6712
6713
6714if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6715    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6716    (test "X$CXX" != "Xg++"))) ; then
6717  ac_ext=cc
6718ac_cpp='$CXXCPP $CPPFLAGS'
6719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6722echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6723echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6724if test -z "$CXXCPP"; then
6725  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6726  echo $ECHO_N "(cached) $ECHO_C" >&6
6727else
6728      # Double quotes because CXXCPP needs to be expanded
6729    for CXXCPP in "$CXX -E" "/lib/cpp"
6730    do
6731      ac_preproc_ok=false
6732for ac_cxx_preproc_warn_flag in '' yes
6733do
6734  # Use a header file that comes with gcc, so configuring glibc
6735  # with a fresh cross-compiler works.
6736  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6737  # <limits.h> exists even on freestanding compilers.
6738  # On the NeXT, cc -E runs the code through the compiler's parser,
6739  # not just through cpp. "Syntax error" is here to catch this case.
6740  cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h.  */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h.  */
6746#ifdef __STDC__
6747# include <limits.h>
6748#else
6749# include <assert.h>
6750#endif
6751                     Syntax error
6752_ACEOF
6753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6754  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6755  ac_status=$?
6756  grep -v '^ *+' conftest.er1 >conftest.err
6757  rm -f conftest.er1
6758  cat conftest.err >&5
6759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760  (exit $ac_status); } >/dev/null; then
6761  if test -s conftest.err; then
6762    ac_cpp_err=$ac_cxx_preproc_warn_flag
6763    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6764  else
6765    ac_cpp_err=
6766  fi
6767else
6768  ac_cpp_err=yes
6769fi
6770if test -z "$ac_cpp_err"; then
6771  :
6772else
6773  echo "$as_me: failed program was:" >&5
6774sed 's/^/| /' conftest.$ac_ext >&5
6775
6776  # Broken: fails on valid input.
6777continue
6778fi
6779rm -f conftest.err conftest.$ac_ext
6780
6781  # OK, works on sane cases.  Now check whether non-existent headers
6782  # can be detected and how.
6783  cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h.  */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h.  */
6789#include <ac_nonexistent.h>
6790_ACEOF
6791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6792  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6793  ac_status=$?
6794  grep -v '^ *+' conftest.er1 >conftest.err
6795  rm -f conftest.er1
6796  cat conftest.err >&5
6797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798  (exit $ac_status); } >/dev/null; then
6799  if test -s conftest.err; then
6800    ac_cpp_err=$ac_cxx_preproc_warn_flag
6801    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6802  else
6803    ac_cpp_err=
6804  fi
6805else
6806  ac_cpp_err=yes
6807fi
6808if test -z "$ac_cpp_err"; then
6809  # Broken: success on invalid input.
6810continue
6811else
6812  echo "$as_me: failed program was:" >&5
6813sed 's/^/| /' conftest.$ac_ext >&5
6814
6815  # Passes both tests.
6816ac_preproc_ok=:
6817break
6818fi
6819rm -f conftest.err conftest.$ac_ext
6820
6821done
6822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6823rm -f conftest.err conftest.$ac_ext
6824if $ac_preproc_ok; then
6825  break
6826fi
6827
6828    done
6829    ac_cv_prog_CXXCPP=$CXXCPP
6830
6831fi
6832  CXXCPP=$ac_cv_prog_CXXCPP
6833else
6834  ac_cv_prog_CXXCPP=$CXXCPP
6835fi
6836echo "$as_me:$LINENO: result: $CXXCPP" >&5
6837echo "${ECHO_T}$CXXCPP" >&6
6838ac_preproc_ok=false
6839for ac_cxx_preproc_warn_flag in '' yes
6840do
6841  # Use a header file that comes with gcc, so configuring glibc
6842  # with a fresh cross-compiler works.
6843  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6844  # <limits.h> exists even on freestanding compilers.
6845  # On the NeXT, cc -E runs the code through the compiler's parser,
6846  # not just through cpp. "Syntax error" is here to catch this case.
6847  cat >conftest.$ac_ext <<_ACEOF
6848/* confdefs.h.  */
6849_ACEOF
6850cat confdefs.h >>conftest.$ac_ext
6851cat >>conftest.$ac_ext <<_ACEOF
6852/* end confdefs.h.  */
6853#ifdef __STDC__
6854# include <limits.h>
6855#else
6856# include <assert.h>
6857#endif
6858                     Syntax error
6859_ACEOF
6860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6861  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6862  ac_status=$?
6863  grep -v '^ *+' conftest.er1 >conftest.err
6864  rm -f conftest.er1
6865  cat conftest.err >&5
6866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867  (exit $ac_status); } >/dev/null; then
6868  if test -s conftest.err; then
6869    ac_cpp_err=$ac_cxx_preproc_warn_flag
6870    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6871  else
6872    ac_cpp_err=
6873  fi
6874else
6875  ac_cpp_err=yes
6876fi
6877if test -z "$ac_cpp_err"; then
6878  :
6879else
6880  echo "$as_me: failed program was:" >&5
6881sed 's/^/| /' conftest.$ac_ext >&5
6882
6883  # Broken: fails on valid input.
6884continue
6885fi
6886rm -f conftest.err conftest.$ac_ext
6887
6888  # OK, works on sane cases.  Now check whether non-existent headers
6889  # can be detected and how.
6890  cat >conftest.$ac_ext <<_ACEOF
6891/* confdefs.h.  */
6892_ACEOF
6893cat confdefs.h >>conftest.$ac_ext
6894cat >>conftest.$ac_ext <<_ACEOF
6895/* end confdefs.h.  */
6896#include <ac_nonexistent.h>
6897_ACEOF
6898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6899  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6900  ac_status=$?
6901  grep -v '^ *+' conftest.er1 >conftest.err
6902  rm -f conftest.er1
6903  cat conftest.err >&5
6904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905  (exit $ac_status); } >/dev/null; then
6906  if test -s conftest.err; then
6907    ac_cpp_err=$ac_cxx_preproc_warn_flag
6908    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6909  else
6910    ac_cpp_err=
6911  fi
6912else
6913  ac_cpp_err=yes
6914fi
6915if test -z "$ac_cpp_err"; then
6916  # Broken: success on invalid input.
6917continue
6918else
6919  echo "$as_me: failed program was:" >&5
6920sed 's/^/| /' conftest.$ac_ext >&5
6921
6922  # Passes both tests.
6923ac_preproc_ok=:
6924break
6925fi
6926rm -f conftest.err conftest.$ac_ext
6927
6928done
6929# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6930rm -f conftest.err conftest.$ac_ext
6931if $ac_preproc_ok; then
6932  :
6933else
6934  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6935See \`config.log' for more details." >&5
6936echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6937See \`config.log' for more details." >&2;}
6938   { (exit 1); exit 1; }; }
6939fi
6940
6941ac_ext=cc
6942ac_cpp='$CXXCPP $CPPFLAGS'
6943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6946
6947fi
6948
6949ac_ext=f
6950ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6951ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6952ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6953if test -n "$ac_tool_prefix"; then
6954  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6955  do
6956    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6957set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6958echo "$as_me:$LINENO: checking for $ac_word" >&5
6959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6960if test "${ac_cv_prog_F77+set}" = set; then
6961  echo $ECHO_N "(cached) $ECHO_C" >&6
6962else
6963  if test -n "$F77"; then
6964  ac_cv_prog_F77="$F77" # Let the user override the test.
6965else
6966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967for as_dir in $PATH
6968do
6969  IFS=$as_save_IFS
6970  test -z "$as_dir" && as_dir=.
6971  for ac_exec_ext in '' $ac_executable_extensions; do
6972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6975    break 2
6976  fi
6977done
6978done
6979
6980fi
6981fi
6982F77=$ac_cv_prog_F77
6983if test -n "$F77"; then
6984  echo "$as_me:$LINENO: result: $F77" >&5
6985echo "${ECHO_T}$F77" >&6
6986else
6987  echo "$as_me:$LINENO: result: no" >&5
6988echo "${ECHO_T}no" >&6
6989fi
6990
6991    test -n "$F77" && break
6992  done
6993fi
6994if test -z "$F77"; then
6995  ac_ct_F77=$F77
6996  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6997do
6998  # Extract the first word of "$ac_prog", so it can be a program name with args.
6999set dummy $ac_prog; ac_word=$2
7000echo "$as_me:$LINENO: checking for $ac_word" >&5
7001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7002if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7003  echo $ECHO_N "(cached) $ECHO_C" >&6
7004else
7005  if test -n "$ac_ct_F77"; then
7006  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7007else
7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
7010do
7011  IFS=$as_save_IFS
7012  test -z "$as_dir" && as_dir=.
7013  for ac_exec_ext in '' $ac_executable_extensions; do
7014  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015    ac_cv_prog_ac_ct_F77="$ac_prog"
7016    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7017    break 2
7018  fi
7019done
7020done
7021
7022fi
7023fi
7024ac_ct_F77=$ac_cv_prog_ac_ct_F77
7025if test -n "$ac_ct_F77"; then
7026  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7027echo "${ECHO_T}$ac_ct_F77" >&6
7028else
7029  echo "$as_me:$LINENO: result: no" >&5
7030echo "${ECHO_T}no" >&6
7031fi
7032
7033  test -n "$ac_ct_F77" && break
7034done
7035
7036  F77=$ac_ct_F77
7037fi
7038
7039
7040# Provide some information about the compiler.
7041echo "$as_me:7041:" \
7042     "checking for Fortran 77 compiler version" >&5
7043ac_compiler=`set X $ac_compile; echo $2`
7044{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7045  (eval $ac_compiler --version </dev/null >&5) 2>&5
7046  ac_status=$?
7047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048  (exit $ac_status); }
7049{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7050  (eval $ac_compiler -v </dev/null >&5) 2>&5
7051  ac_status=$?
7052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053  (exit $ac_status); }
7054{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7055  (eval $ac_compiler -V </dev/null >&5) 2>&5
7056  ac_status=$?
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); }
7059rm -f a.out
7060
7061# If we don't use `.F' as extension, the preprocessor is not run on the
7062# input file.  (Note that this only needs to work for GNU compilers.)
7063ac_save_ext=$ac_ext
7064ac_ext=F
7065echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7066echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7067if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7068  echo $ECHO_N "(cached) $ECHO_C" >&6
7069else
7070  cat >conftest.$ac_ext <<_ACEOF
7071      program main
7072#ifndef __GNUC__
7073       choke me
7074#endif
7075
7076      end
7077_ACEOF
7078rm -f conftest.$ac_objext
7079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7080  (eval $ac_compile) 2>conftest.er1
7081  ac_status=$?
7082  grep -v '^ *+' conftest.er1 >conftest.err
7083  rm -f conftest.er1
7084  cat conftest.err >&5
7085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086  (exit $ac_status); } &&
7087         { ac_try='test -z "$ac_f77_werror_flag"
7088                         || test ! -s conftest.err'
7089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090  (eval $ac_try) 2>&5
7091  ac_status=$?
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); }; } &&
7094         { ac_try='test -s conftest.$ac_objext'
7095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096  (eval $ac_try) 2>&5
7097  ac_status=$?
7098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099  (exit $ac_status); }; }; then
7100  ac_compiler_gnu=yes
7101else
7102  echo "$as_me: failed program was:" >&5
7103sed 's/^/| /' conftest.$ac_ext >&5
7104
7105ac_compiler_gnu=no
7106fi
7107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7108ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7109
7110fi
7111echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7112echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7113ac_ext=$ac_save_ext
7114ac_test_FFLAGS=${FFLAGS+set}
7115ac_save_FFLAGS=$FFLAGS
7116FFLAGS=
7117echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7118echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7119if test "${ac_cv_prog_f77_g+set}" = set; then
7120  echo $ECHO_N "(cached) $ECHO_C" >&6
7121else
7122  FFLAGS=-g
7123cat >conftest.$ac_ext <<_ACEOF
7124      program main
7125
7126      end
7127_ACEOF
7128rm -f conftest.$ac_objext
7129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7130  (eval $ac_compile) 2>conftest.er1
7131  ac_status=$?
7132  grep -v '^ *+' conftest.er1 >conftest.err
7133  rm -f conftest.er1
7134  cat conftest.err >&5
7135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136  (exit $ac_status); } &&
7137         { ac_try='test -z "$ac_f77_werror_flag"
7138                         || test ! -s conftest.err'
7139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140  (eval $ac_try) 2>&5
7141  ac_status=$?
7142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143  (exit $ac_status); }; } &&
7144         { ac_try='test -s conftest.$ac_objext'
7145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146  (eval $ac_try) 2>&5
7147  ac_status=$?
7148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149  (exit $ac_status); }; }; then
7150  ac_cv_prog_f77_g=yes
7151else
7152  echo "$as_me: failed program was:" >&5
7153sed 's/^/| /' conftest.$ac_ext >&5
7154
7155ac_cv_prog_f77_g=no
7156fi
7157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7158
7159fi
7160echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7161echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7162if test "$ac_test_FFLAGS" = set; then
7163  FFLAGS=$ac_save_FFLAGS
7164elif test $ac_cv_prog_f77_g = yes; then
7165  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7166    FFLAGS="-g -O2"
7167  else
7168    FFLAGS="-g"
7169  fi
7170else
7171  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7172    FFLAGS="-O2"
7173  else
7174    FFLAGS=
7175  fi
7176fi
7177
7178G77=`test $ac_compiler_gnu = yes && echo yes`
7179ac_ext=c
7180ac_cpp='$CPP $CPPFLAGS'
7181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7183ac_compiler_gnu=$ac_cv_c_compiler_gnu
7184
7185
7186
7187# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7188
7189# find the maximum length of command line arguments
7190echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7191echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7192if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7193  echo $ECHO_N "(cached) $ECHO_C" >&6
7194else
7195    i=0
7196  teststring="ABCD"
7197
7198  case $build_os in
7199  msdosdjgpp*)
7200    # On DJGPP, this test can blow up pretty badly due to problems in libc
7201    # (any single argument exceeding 2000 bytes causes a buffer overrun
7202    # during glob expansion).  Even if it were fixed, the result of this
7203    # check would be larger than it should be.
7204    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7205    ;;
7206
7207  gnu*)
7208    # Under GNU Hurd, this test is not required because there is
7209    # no limit to the length of command line arguments.
7210    # Libtool will interpret -1 as no limit whatsoever
7211    lt_cv_sys_max_cmd_len=-1;
7212    ;;
7213
7214  cygwin* | mingw*)
7215    # On Win9x/ME, this test blows up -- it succeeds, but takes
7216    # about 5 minutes as the teststring grows exponentially.
7217    # Worse, since 9x/ME are not pre-emptively multitasking,
7218    # you end up with a "frozen" computer, even though with patience
7219    # the test eventually succeeds (with a max line length of 256k).
7220    # Instead, let's just punt: use the minimum linelength reported by
7221    # all of the supported platforms: 8192 (on NT/2K/XP).
7222    lt_cv_sys_max_cmd_len=8192;
7223    ;;
7224
7225  amigaos*)
7226    # On AmigaOS with pdksh, this test takes hours, literally.
7227    # So we just punt and use a minimum line length of 8192.
7228    lt_cv_sys_max_cmd_len=8192;
7229    ;;
7230
7231  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7232    # This has been around since 386BSD, at least.  Likely further.
7233    if test -x /sbin/sysctl; then
7234      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7235    elif test -x /usr/sbin/sysctl; then
7236      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7237    else
7238      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7239    fi
7240    # And add a safety zone
7241    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7242    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7243    ;;
7244
7245  interix*)
7246    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7247    lt_cv_sys_max_cmd_len=196608
7248    ;;
7249
7250  osf*)
7251    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7252    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7253    # nice to cause kernel panics so lets avoid the loop below.
7254    # First set a reasonable default.
7255    lt_cv_sys_max_cmd_len=16384
7256    #
7257    if test -x /sbin/sysconfig; then
7258      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7259        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7260      esac
7261    fi
7262    ;;
7263  sco3.2v5*)
7264    lt_cv_sys_max_cmd_len=102400
7265    ;;
7266  sysv5* | sco5v6* | sysv4.2uw2*)
7267    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7268    if test -n "$kargmax"; then
7269      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7270    else
7271      lt_cv_sys_max_cmd_len=32768
7272    fi
7273    ;;
7274  *)
7275    # If test is not a shell built-in, we'll probably end up computing a
7276    # maximum length that is only half of the actual maximum length, but
7277    # we can't tell.
7278    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7279    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7280               = "XX$teststring") >/dev/null 2>&1 &&
7281            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7282            lt_cv_sys_max_cmd_len=$new_result &&
7283            test $i != 17 # 1/2 MB should be enough
7284    do
7285      i=`expr $i + 1`
7286      teststring=$teststring$teststring
7287    done
7288    teststring=
7289    # Add a significant safety factor because C++ compilers can tack on massive
7290    # amounts of additional arguments before passing them to the linker.
7291    # It appears as though 1/2 is a usable value.
7292    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7293    ;;
7294  esac
7295
7296fi
7297
7298if test -n $lt_cv_sys_max_cmd_len ; then
7299  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7300echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7301else
7302  echo "$as_me:$LINENO: result: none" >&5
7303echo "${ECHO_T}none" >&6
7304fi
7305
7306
7307
7308
7309# Check for command to grab the raw symbol name followed by C symbol from nm.
7310echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7311echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7312if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7313  echo $ECHO_N "(cached) $ECHO_C" >&6
7314else
7315
7316# These are sane defaults that work on at least a few old systems.
7317# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7318
7319# Character class describing NM global symbol codes.
7320symcode='[BCDEGRST]'
7321
7322# Regexp to match symbols that can be accessed directly from C.
7323sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7324
7325# Transform an extracted symbol line into a proper C declaration
7326lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7327
7328# Transform an extracted symbol line into symbol name and symbol address
7329lt_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'"
7330
7331# Define system-specific variables.
7332case $host_os in
7333aix*)
7334  symcode='[BCDT]'
7335  ;;
7336cygwin* | mingw* | pw32*)
7337  symcode='[ABCDGISTW]'
7338  ;;
7339hpux*) # Its linker distinguishes data from code symbols
7340  if test "$host_cpu" = ia64; then
7341    symcode='[ABCDEGRST]'
7342  fi
7343  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7344  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'"
7345  ;;
7346linux*)
7347  if test "$host_cpu" = ia64; then
7348    symcode='[ABCDGIRSTW]'
7349    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7350    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'"
7351  fi
7352  ;;
7353irix* | nonstopux*)
7354  symcode='[BCDEGRST]'
7355  ;;
7356osf*)
7357  symcode='[BCDEGQRST]'
7358  ;;
7359solaris*)
7360  symcode='[BDRT]'
7361  ;;
7362sco3.2v5*)
7363  symcode='[DT]'
7364  ;;
7365sysv4.2uw2*)
7366  symcode='[DT]'
7367  ;;
7368sysv5* | sco5v6* | unixware* | OpenUNIX*)
7369  symcode='[ABDT]'
7370  ;;
7371sysv4)
7372  symcode='[DFNSTU]'
7373  ;;
7374esac
7375
7376# Handle CRLF in mingw tool chain
7377opt_cr=
7378case $build_os in
7379mingw*)
7380  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7381  ;;
7382esac
7383
7384# If we're using GNU nm, then use its standard symbol codes.
7385case `$NM -V 2>&1` in
7386*GNU* | *'with BFD'*)
7387  symcode='[ABCDGIRSTW]' ;;
7388esac
7389
7390# Try without a prefix undercore, then with it.
7391for ac_symprfx in "" "_"; do
7392
7393  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7394  symxfrm="\\1 $ac_symprfx\\2 \\2"
7395
7396  # Write the raw and C identifiers.
7397  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7398
7399  # Check to see that the pipe works correctly.
7400  pipe_works=no
7401
7402  rm -f conftest*
7403  cat > conftest.$ac_ext <<EOF
7404#ifdef __cplusplus
7405extern "C" {
7406#endif
7407char nm_test_var;
7408void nm_test_func(){}
7409#ifdef __cplusplus
7410}
7411#endif
7412int main(){nm_test_var='a';nm_test_func();return(0);}
7413EOF
7414
7415  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416  (eval $ac_compile) 2>&5
7417  ac_status=$?
7418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419  (exit $ac_status); }; then
7420    # Now try to grab the symbols.
7421    nlist=conftest.nm
7422    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7423  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7424  ac_status=$?
7425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426  (exit $ac_status); } && test -s "$nlist"; then
7427      # Try sorting and uniquifying the output.
7428      if sort "$nlist" | uniq > "$nlist"T; then
7429        mv -f "$nlist"T "$nlist"
7430      else
7431        rm -f "$nlist"T
7432      fi
7433
7434      # Make sure that we snagged all the symbols we need.
7435      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7436        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7437          cat <<EOF > conftest.$ac_ext
7438#ifdef __cplusplus
7439extern "C" {
7440#endif
7441
7442EOF
7443          # Now generate the symbol file.
7444          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7445
7446          cat <<EOF >> conftest.$ac_ext
7447#if defined (__STDC__) && __STDC__
7448# define lt_ptr_t void *
7449#else
7450# define lt_ptr_t char *
7451# define const
7452#endif
7453
7454/* The mapping between symbol names and symbols. */
7455const struct {
7456  const char *name;
7457  lt_ptr_t address;
7458}
7459lt_preloaded_symbols[] =
7460{
7461EOF
7462          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7463          cat <<\EOF >> conftest.$ac_ext
7464  {0, (lt_ptr_t) 0}
7465};
7466
7467#ifdef __cplusplus
7468}
7469#endif
7470EOF
7471          # Now try linking the two files.
7472          mv conftest.$ac_objext conftstm.$ac_objext
7473          lt_save_LIBS="$LIBS"
7474          lt_save_CFLAGS="$CFLAGS"
7475          LIBS="conftstm.$ac_objext"
7476          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7477          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478  (eval $ac_link) 2>&5
7479  ac_status=$?
7480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7482            pipe_works=yes
7483          fi
7484          LIBS="$lt_save_LIBS"
7485          CFLAGS="$lt_save_CFLAGS"
7486        else
7487          echo "cannot find nm_test_func in $nlist" >&5
7488        fi
7489      else
7490        echo "cannot find nm_test_var in $nlist" >&5
7491      fi
7492    else
7493      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7494    fi
7495  else
7496    echo "$progname: failed program was:" >&5
7497    cat conftest.$ac_ext >&5
7498  fi
7499  rm -f conftest* conftst*
7500
7501  # Do not use the global_symbol_pipe unless it works.
7502  if test "$pipe_works" = yes; then
7503    break
7504  else
7505    lt_cv_sys_global_symbol_pipe=
7506  fi
7507done
7508
7509fi
7510
7511if test -z "$lt_cv_sys_global_symbol_pipe"; then
7512  lt_cv_sys_global_symbol_to_cdecl=
7513fi
7514if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7515  echo "$as_me:$LINENO: result: failed" >&5
7516echo "${ECHO_T}failed" >&6
7517else
7518  echo "$as_me:$LINENO: result: ok" >&5
7519echo "${ECHO_T}ok" >&6
7520fi
7521
7522echo "$as_me:$LINENO: checking for objdir" >&5
7523echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7524if test "${lt_cv_objdir+set}" = set; then
7525  echo $ECHO_N "(cached) $ECHO_C" >&6
7526else
7527  rm -f .libs 2>/dev/null
7528mkdir .libs 2>/dev/null
7529if test -d .libs; then
7530  lt_cv_objdir=.libs
7531else
7532  # MS-DOS does not allow filenames that begin with a dot.
7533  lt_cv_objdir=_libs
7534fi
7535rmdir .libs 2>/dev/null
7536fi
7537echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7538echo "${ECHO_T}$lt_cv_objdir" >&6
7539objdir=$lt_cv_objdir
7540
7541
7542
7543
7544
7545case $host_os in
7546aix3*)
7547  # AIX sometimes has problems with the GCC collect2 program.  For some
7548  # reason, if we set the COLLECT_NAMES environment variable, the problems
7549  # vanish in a puff of smoke.
7550  if test "X${COLLECT_NAMES+set}" != Xset; then
7551    COLLECT_NAMES=
7552    export COLLECT_NAMES
7553  fi
7554  ;;
7555esac
7556
7557# Sed substitution that helps us do robust quoting.  It backslashifies
7558# metacharacters that are still active within double-quoted strings.
7559Xsed='sed -e 1s/^X//'
7560sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7561
7562# Same as above, but do not quote variable references.
7563double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7564
7565# Sed substitution to delay expansion of an escaped shell variable in a
7566# double_quote_subst'ed string.
7567delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7568
7569# Sed substitution to avoid accidental globbing in evaled expressions
7570no_glob_subst='s/\*/\\\*/g'
7571
7572# Constants:
7573rm="rm -f"
7574
7575# Global variables:
7576default_ofile=libtool
7577can_build_shared=yes
7578
7579# All known linkers require a `.a' archive for static linking (except MSVC,
7580# which needs '.lib').
7581libext=a
7582ltmain="$ac_aux_dir/ltmain.sh"
7583ofile="$default_ofile"
7584with_gnu_ld="$lt_cv_prog_gnu_ld"
7585
7586if test -n "$ac_tool_prefix"; then
7587  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7588set dummy ${ac_tool_prefix}ar; ac_word=$2
7589echo "$as_me:$LINENO: checking for $ac_word" >&5
7590echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7591if test "${ac_cv_prog_AR+set}" = set; then
7592  echo $ECHO_N "(cached) $ECHO_C" >&6
7593else
7594  if test -n "$AR"; then
7595  ac_cv_prog_AR="$AR" # Let the user override the test.
7596else
7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600  IFS=$as_save_IFS
7601  test -z "$as_dir" && as_dir=.
7602  for ac_exec_ext in '' $ac_executable_extensions; do
7603  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604    ac_cv_prog_AR="${ac_tool_prefix}ar"
7605    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7606    break 2
7607  fi
7608done
7609done
7610
7611fi
7612fi
7613AR=$ac_cv_prog_AR
7614if test -n "$AR"; then
7615  echo "$as_me:$LINENO: result: $AR" >&5
7616echo "${ECHO_T}$AR" >&6
7617else
7618  echo "$as_me:$LINENO: result: no" >&5
7619echo "${ECHO_T}no" >&6
7620fi
7621
7622fi
7623if test -z "$ac_cv_prog_AR"; then
7624  ac_ct_AR=$AR
7625  # Extract the first word of "ar", so it can be a program name with args.
7626set dummy ar; ac_word=$2
7627echo "$as_me:$LINENO: checking for $ac_word" >&5
7628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7629if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7630  echo $ECHO_N "(cached) $ECHO_C" >&6
7631else
7632  if test -n "$ac_ct_AR"; then
7633  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7634else
7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638  IFS=$as_save_IFS
7639  test -z "$as_dir" && as_dir=.
7640  for ac_exec_ext in '' $ac_executable_extensions; do
7641  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7642    ac_cv_prog_ac_ct_AR="ar"
7643    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7644    break 2
7645  fi
7646done
7647done
7648
7649  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7650fi
7651fi
7652ac_ct_AR=$ac_cv_prog_ac_ct_AR
7653if test -n "$ac_ct_AR"; then
7654  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7655echo "${ECHO_T}$ac_ct_AR" >&6
7656else
7657  echo "$as_me:$LINENO: result: no" >&5
7658echo "${ECHO_T}no" >&6
7659fi
7660
7661  AR=$ac_ct_AR
7662else
7663  AR="$ac_cv_prog_AR"
7664fi
7665
7666if test -n "$ac_tool_prefix"; then
7667  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7668set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7669echo "$as_me:$LINENO: checking for $ac_word" >&5
7670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7671if test "${ac_cv_prog_RANLIB+set}" = set; then
7672  echo $ECHO_N "(cached) $ECHO_C" >&6
7673else
7674  if test -n "$RANLIB"; then
7675  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7676else
7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678for as_dir in $PATH
7679do
7680  IFS=$as_save_IFS
7681  test -z "$as_dir" && as_dir=.
7682  for ac_exec_ext in '' $ac_executable_extensions; do
7683  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7684    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7685    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686    break 2
7687  fi
7688done
7689done
7690
7691fi
7692fi
7693RANLIB=$ac_cv_prog_RANLIB
7694if test -n "$RANLIB"; then
7695  echo "$as_me:$LINENO: result: $RANLIB" >&5
7696echo "${ECHO_T}$RANLIB" >&6
7697else
7698  echo "$as_me:$LINENO: result: no" >&5
7699echo "${ECHO_T}no" >&6
7700fi
7701
7702fi
7703if test -z "$ac_cv_prog_RANLIB"; then
7704  ac_ct_RANLIB=$RANLIB
7705  # Extract the first word of "ranlib", so it can be a program name with args.
7706set dummy ranlib; ac_word=$2
7707echo "$as_me:$LINENO: checking for $ac_word" >&5
7708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7709if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7710  echo $ECHO_N "(cached) $ECHO_C" >&6
7711else
7712  if test -n "$ac_ct_RANLIB"; then
7713  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7714else
7715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716for as_dir in $PATH
7717do
7718  IFS=$as_save_IFS
7719  test -z "$as_dir" && as_dir=.
7720  for ac_exec_ext in '' $ac_executable_extensions; do
7721  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722    ac_cv_prog_ac_ct_RANLIB="ranlib"
7723    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7724    break 2
7725  fi
7726done
7727done
7728
7729  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7730fi
7731fi
7732ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7733if test -n "$ac_ct_RANLIB"; then
7734  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7735echo "${ECHO_T}$ac_ct_RANLIB" >&6
7736else
7737  echo "$as_me:$LINENO: result: no" >&5
7738echo "${ECHO_T}no" >&6
7739fi
7740
7741  RANLIB=$ac_ct_RANLIB
7742else
7743  RANLIB="$ac_cv_prog_RANLIB"
7744fi
7745
7746if test -n "$ac_tool_prefix"; then
7747  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7748set dummy ${ac_tool_prefix}strip; ac_word=$2
7749echo "$as_me:$LINENO: checking for $ac_word" >&5
7750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7751if test "${ac_cv_prog_STRIP+set}" = set; then
7752  echo $ECHO_N "(cached) $ECHO_C" >&6
7753else
7754  if test -n "$STRIP"; then
7755  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7756else
7757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760  IFS=$as_save_IFS
7761  test -z "$as_dir" && as_dir=.
7762  for ac_exec_ext in '' $ac_executable_extensions; do
7763  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7764    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7766    break 2
7767  fi
7768done
7769done
7770
7771fi
7772fi
7773STRIP=$ac_cv_prog_STRIP
7774if test -n "$STRIP"; then
7775  echo "$as_me:$LINENO: result: $STRIP" >&5
7776echo "${ECHO_T}$STRIP" >&6
7777else
7778  echo "$as_me:$LINENO: result: no" >&5
7779echo "${ECHO_T}no" >&6
7780fi
7781
7782fi
7783if test -z "$ac_cv_prog_STRIP"; then
7784  ac_ct_STRIP=$STRIP
7785  # Extract the first word of "strip", so it can be a program name with args.
7786set dummy strip; ac_word=$2
7787echo "$as_me:$LINENO: checking for $ac_word" >&5
7788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7789if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7790  echo $ECHO_N "(cached) $ECHO_C" >&6
7791else
7792  if test -n "$ac_ct_STRIP"; then
7793  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7794else
7795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7796for as_dir in $PATH
7797do
7798  IFS=$as_save_IFS
7799  test -z "$as_dir" && as_dir=.
7800  for ac_exec_ext in '' $ac_executable_extensions; do
7801  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7802    ac_cv_prog_ac_ct_STRIP="strip"
7803    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7804    break 2
7805  fi
7806done
7807done
7808
7809  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7810fi
7811fi
7812ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7813if test -n "$ac_ct_STRIP"; then
7814  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7815echo "${ECHO_T}$ac_ct_STRIP" >&6
7816else
7817  echo "$as_me:$LINENO: result: no" >&5
7818echo "${ECHO_T}no" >&6
7819fi
7820
7821  STRIP=$ac_ct_STRIP
7822else
7823  STRIP="$ac_cv_prog_STRIP"
7824fi
7825
7826
7827old_CC="$CC"
7828old_CFLAGS="$CFLAGS"
7829
7830# Set sane defaults for various variables
7831test -z "$AR" && AR=ar
7832test -z "$AR_FLAGS" && AR_FLAGS=cru
7833test -z "$AS" && AS=as
7834test -z "$CC" && CC=cc
7835test -z "$LTCC" && LTCC=$CC
7836test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7837test -z "$DLLTOOL" && DLLTOOL=dlltool
7838test -z "$LD" && LD=ld
7839test -z "$LN_S" && LN_S="ln -s"
7840test -z "$MAGIC_CMD" && MAGIC_CMD=file
7841test -z "$NM" && NM=nm
7842test -z "$SED" && SED=sed
7843test -z "$OBJDUMP" && OBJDUMP=objdump
7844test -z "$RANLIB" && RANLIB=:
7845test -z "$STRIP" && STRIP=:
7846test -z "$ac_objext" && ac_objext=o
7847
7848# Determine commands to create old-style static archives.
7849old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7850old_postinstall_cmds='chmod 644 $oldlib'
7851old_postuninstall_cmds=
7852
7853if test -n "$RANLIB"; then
7854  case $host_os in
7855  openbsd*)
7856    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7857    ;;
7858  *)
7859    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7860    ;;
7861  esac
7862  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7863fi
7864
7865for cc_temp in $compiler""; do
7866  case $cc_temp in
7867    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7868    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7869    \-*) ;;
7870    *) break;;
7871  esac
7872done
7873cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7874
7875
7876# Only perform the check for file, if the check method requires it
7877case $deplibs_check_method in
7878file_magic*)
7879  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7880    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7881echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7882if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7883  echo $ECHO_N "(cached) $ECHO_C" >&6
7884else
7885  case $MAGIC_CMD in
7886[\\/*] |  ?:[\\/]*)
7887  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7888  ;;
7889*)
7890  lt_save_MAGIC_CMD="$MAGIC_CMD"
7891  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7892  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7893  for ac_dir in $ac_dummy; do
7894    IFS="$lt_save_ifs"
7895    test -z "$ac_dir" && ac_dir=.
7896    if test -f $ac_dir/${ac_tool_prefix}file; then
7897      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7898      if test -n "$file_magic_test_file"; then
7899        case $deplibs_check_method in
7900        "file_magic "*)
7901          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7902          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7903          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7904            $EGREP "$file_magic_regex" > /dev/null; then
7905            :
7906          else
7907            cat <<EOF 1>&2
7908
7909*** Warning: the command libtool uses to detect shared libraries,
7910*** $file_magic_cmd, produces output that libtool cannot recognize.
7911*** The result is that libtool may fail to recognize shared libraries
7912*** as such.  This will affect the creation of libtool libraries that
7913*** depend on shared libraries, but programs linked with such libtool
7914*** libraries will work regardless of this problem.  Nevertheless, you
7915*** may want to report the problem to your system manager and/or to
7916*** bug-libtool@gnu.org
7917
7918EOF
7919          fi ;;
7920        esac
7921      fi
7922      break
7923    fi
7924  done
7925  IFS="$lt_save_ifs"
7926  MAGIC_CMD="$lt_save_MAGIC_CMD"
7927  ;;
7928esac
7929fi
7930
7931MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7932if test -n "$MAGIC_CMD"; then
7933  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7934echo "${ECHO_T}$MAGIC_CMD" >&6
7935else
7936  echo "$as_me:$LINENO: result: no" >&5
7937echo "${ECHO_T}no" >&6
7938fi
7939
7940if test -z "$lt_cv_path_MAGIC_CMD"; then
7941  if test -n "$ac_tool_prefix"; then
7942    echo "$as_me:$LINENO: checking for file" >&5
7943echo $ECHO_N "checking for file... $ECHO_C" >&6
7944if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7945  echo $ECHO_N "(cached) $ECHO_C" >&6
7946else
7947  case $MAGIC_CMD in
7948[\\/*] |  ?:[\\/]*)
7949  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7950  ;;
7951*)
7952  lt_save_MAGIC_CMD="$MAGIC_CMD"
7953  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7954  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7955  for ac_dir in $ac_dummy; do
7956    IFS="$lt_save_ifs"
7957    test -z "$ac_dir" && ac_dir=.
7958    if test -f $ac_dir/file; then
7959      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7960      if test -n "$file_magic_test_file"; then
7961        case $deplibs_check_method in
7962        "file_magic "*)
7963          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7964          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7965          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7966            $EGREP "$file_magic_regex" > /dev/null; then
7967            :
7968          else
7969            cat <<EOF 1>&2
7970
7971*** Warning: the command libtool uses to detect shared libraries,
7972*** $file_magic_cmd, produces output that libtool cannot recognize.
7973*** The result is that libtool may fail to recognize shared libraries
7974*** as such.  This will affect the creation of libtool libraries that
7975*** depend on shared libraries, but programs linked with such libtool
7976*** libraries will work regardless of this problem.  Nevertheless, you
7977*** may want to report the problem to your system manager and/or to
7978*** bug-libtool@gnu.org
7979
7980EOF
7981          fi ;;
7982        esac
7983      fi
7984      break
7985    fi
7986  done
7987  IFS="$lt_save_ifs"
7988  MAGIC_CMD="$lt_save_MAGIC_CMD"
7989  ;;
7990esac
7991fi
7992
7993MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7994if test -n "$MAGIC_CMD"; then
7995  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7996echo "${ECHO_T}$MAGIC_CMD" >&6
7997else
7998  echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
8000fi
8001
8002  else
8003    MAGIC_CMD=:
8004  fi
8005fi
8006
8007  fi
8008  ;;
8009esac
8010
8011enable_dlopen=no
8012enable_win32_dll=no
8013
8014# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8015if test "${enable_libtool_lock+set}" = set; then
8016  enableval="$enable_libtool_lock"
8017
8018fi;
8019test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8020
8021
8022# Check whether --with-pic or --without-pic was given.
8023if test "${with_pic+set}" = set; then
8024  withval="$with_pic"
8025  pic_mode="$withval"
8026else
8027  pic_mode=default
8028fi;
8029test -z "$pic_mode" && pic_mode=default
8030
8031# Use C for the default configuration in the libtool script
8032tagname=
8033lt_save_CC="$CC"
8034ac_ext=c
8035ac_cpp='$CPP $CPPFLAGS'
8036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8038ac_compiler_gnu=$ac_cv_c_compiler_gnu
8039
8040
8041# Source file extension for C test sources.
8042ac_ext=c
8043
8044# Object file extension for compiled C test sources.
8045objext=o
8046objext=$objext
8047
8048# Code to be used in simple compile tests
8049lt_simple_compile_test_code="int some_variable = 0;\n"
8050
8051# Code to be used in simple link tests
8052lt_simple_link_test_code='int main(){return(0);}\n'
8053
8054
8055# If no C compiler was specified, use CC.
8056LTCC=${LTCC-"$CC"}
8057
8058# If no C compiler flags were specified, use CFLAGS.
8059LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8060
8061# Allow CC to be a program name with arguments.
8062compiler=$CC
8063
8064
8065# save warnings/boilerplate of simple test code
8066ac_outfile=conftest.$ac_objext
8067printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8068eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8069_lt_compiler_boilerplate=`cat conftest.err`
8070$rm conftest*
8071
8072ac_outfile=conftest.$ac_objext
8073printf "$lt_simple_link_test_code" >conftest.$ac_ext
8074eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8075_lt_linker_boilerplate=`cat conftest.err`
8076$rm conftest*
8077
8078
8079## CAVEAT EMPTOR:
8080## There is no encapsulation within the following macros, do not change
8081## the running order or otherwise move them around unless you know exactly
8082## what you are doing...
8083
8084lt_prog_compiler_no_builtin_flag=
8085
8086if test "$GCC" = yes; then
8087  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8088
8089
8090echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8091echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8092if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8093  echo $ECHO_N "(cached) $ECHO_C" >&6
8094else
8095  lt_cv_prog_compiler_rtti_exceptions=no
8096  ac_outfile=conftest.$ac_objext
8097   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8098   lt_compiler_flag="-fno-rtti -fno-exceptions"
8099   # Insert the option either (1) after the last *FLAGS variable, or
8100   # (2) before a word containing "conftest.", or (3) at the end.
8101   # Note that $ac_compile itself does not contain backslashes and begins
8102   # with a dollar sign (not a hyphen), so the echo should work correctly.
8103   # The option is referenced via a variable to avoid confusing sed.
8104   lt_compile=`echo "$ac_compile" | $SED \
8105   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8106   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8107   -e 's:$: $lt_compiler_flag:'`
8108   (eval echo "\"\$as_me:8108: $lt_compile\"" >&5)
8109   (eval "$lt_compile" 2>conftest.err)
8110   ac_status=$?
8111   cat conftest.err >&5
8112   echo "$as_me:8112: \$? = $ac_status" >&5
8113   if (exit $ac_status) && test -s "$ac_outfile"; then
8114     # The compiler can only warn and ignore the option if not recognized
8115     # So say no if there are warnings other than the usual output.
8116     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8117     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8118     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8119       lt_cv_prog_compiler_rtti_exceptions=yes
8120     fi
8121   fi
8122   $rm conftest*
8123
8124fi
8125echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8126echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8127
8128if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8129    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8130else
8131    :
8132fi
8133
8134fi
8135
8136lt_prog_compiler_wl=
8137lt_prog_compiler_pic=
8138lt_prog_compiler_static=
8139
8140echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8141echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8142
8143  if test "$GCC" = yes; then
8144    lt_prog_compiler_wl='-Wl,'
8145    lt_prog_compiler_static='-static'
8146
8147    case $host_os in
8148      aix*)
8149      # All AIX code is PIC.
8150      if test "$host_cpu" = ia64; then
8151        # AIX 5 now supports IA64 processor
8152        lt_prog_compiler_static='-Bstatic'
8153      fi
8154      ;;
8155
8156    amigaos*)
8157      # FIXME: we need at least 68020 code to build shared libraries, but
8158      # adding the `-m68020' flag to GCC prevents building anything better,
8159      # like `-m68040'.
8160      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8161      ;;
8162
8163    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8164      # PIC is the default for these OSes.
8165      ;;
8166
8167    mingw* | pw32* | os2*)
8168      # This hack is so that the source file can tell whether it is being
8169      # built for inclusion in a dll (and should export symbols for example).
8170      lt_prog_compiler_pic='-DDLL_EXPORT'
8171      ;;
8172
8173    darwin* | rhapsody*)
8174      # PIC is the default on this platform
8175      # Common symbols not allowed in MH_DYLIB files
8176      lt_prog_compiler_pic='-fno-common'
8177      ;;
8178
8179    interix3*)
8180      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8181      # Instead, we relocate shared libraries at runtime.
8182      ;;
8183
8184    msdosdjgpp*)
8185      # Just because we use GCC doesn't mean we suddenly get shared libraries
8186      # on systems that don't support them.
8187      lt_prog_compiler_can_build_shared=no
8188      enable_shared=no
8189      ;;
8190
8191    sysv4*MP*)
8192      if test -d /usr/nec; then
8193        lt_prog_compiler_pic=-Kconform_pic
8194      fi
8195      ;;
8196
8197    hpux*)
8198      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8199      # not for PA HP-UX.
8200      case $host_cpu in
8201      hppa*64*|ia64*)
8202        # +Z the default
8203        ;;
8204      *)
8205        lt_prog_compiler_pic='-fPIC'
8206        ;;
8207      esac
8208      ;;
8209
8210    *)
8211      lt_prog_compiler_pic='-fPIC'
8212      ;;
8213    esac
8214  else
8215    # PORTME Check for flag to pass linker flags through the system compiler.
8216    case $host_os in
8217    aix*)
8218      lt_prog_compiler_wl='-Wl,'
8219      if test "$host_cpu" = ia64; then
8220        # AIX 5 now supports IA64 processor
8221        lt_prog_compiler_static='-Bstatic'
8222      else
8223        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8224      fi
8225      ;;
8226      darwin*)
8227        # PIC is the default on this platform
8228        # Common symbols not allowed in MH_DYLIB files
8229       case $cc_basename in
8230         xlc*)
8231         lt_prog_compiler_pic='-qnocommon'
8232         lt_prog_compiler_wl='-Wl,'
8233         ;;
8234       esac
8235       ;;
8236
8237    mingw* | pw32* | os2*)
8238      # This hack is so that the source file can tell whether it is being
8239      # built for inclusion in a dll (and should export symbols for example).
8240      lt_prog_compiler_pic='-DDLL_EXPORT'
8241      ;;
8242
8243    hpux9* | hpux10* | hpux11*)
8244      lt_prog_compiler_wl='-Wl,'
8245      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8246      # not for PA HP-UX.
8247      case $host_cpu in
8248      hppa*64*|ia64*)
8249        # +Z the default
8250        ;;
8251      *)
8252        lt_prog_compiler_pic='+Z'
8253        ;;
8254      esac
8255      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8256      lt_prog_compiler_static='${wl}-a ${wl}archive'
8257      ;;
8258
8259    irix5* | irix6* | nonstopux*)
8260      lt_prog_compiler_wl='-Wl,'
8261      # PIC (with -KPIC) is the default.
8262      lt_prog_compiler_static='-non_shared'
8263      ;;
8264
8265    newsos6)
8266      lt_prog_compiler_pic='-KPIC'
8267      lt_prog_compiler_static='-Bstatic'
8268      ;;
8269
8270    linux*)
8271      case $cc_basename in
8272      icc* | ecc*)
8273        lt_prog_compiler_wl='-Wl,'
8274        lt_prog_compiler_pic='-KPIC'
8275        lt_prog_compiler_static='-static'
8276        ;;
8277      pgcc* | pgf77* | pgf90* | pgf95*)
8278        # Portland Group compilers (*not* the Pentium gcc compiler,
8279        # which looks to be a dead project)
8280        lt_prog_compiler_wl='-Wl,'
8281        lt_prog_compiler_pic='-fpic'
8282        lt_prog_compiler_static='-Bstatic'
8283        ;;
8284      ccc*)
8285        lt_prog_compiler_wl='-Wl,'
8286        # All Alpha code is PIC.
8287        lt_prog_compiler_static='-non_shared'
8288        ;;
8289      esac
8290      ;;
8291
8292    osf3* | osf4* | osf5*)
8293      lt_prog_compiler_wl='-Wl,'
8294      # All OSF/1 code is PIC.
8295      lt_prog_compiler_static='-non_shared'
8296      ;;
8297
8298    solaris*)
8299      lt_prog_compiler_pic='-KPIC'
8300      lt_prog_compiler_static='-Bstatic'
8301      case $cc_basename in
8302      f77* | f90* | f95*)
8303        lt_prog_compiler_wl='-Qoption ld ';;
8304      *)
8305        lt_prog_compiler_wl='-Wl,';;
8306      esac
8307      ;;
8308
8309    sunos4*)
8310      lt_prog_compiler_wl='-Qoption ld '
8311      lt_prog_compiler_pic='-PIC'
8312      lt_prog_compiler_static='-Bstatic'
8313      ;;
8314
8315    sysv4 | sysv4.2uw2* | sysv4.3*)
8316      lt_prog_compiler_wl='-Wl,'
8317      lt_prog_compiler_pic='-KPIC'
8318      lt_prog_compiler_static='-Bstatic'
8319      ;;
8320
8321    sysv4*MP*)
8322      if test -d /usr/nec ;then
8323        lt_prog_compiler_pic='-Kconform_pic'
8324        lt_prog_compiler_static='-Bstatic'
8325      fi
8326      ;;
8327
8328    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8329      lt_prog_compiler_wl='-Wl,'
8330      lt_prog_compiler_pic='-KPIC'
8331      lt_prog_compiler_static='-Bstatic'
8332      ;;
8333
8334    unicos*)
8335      lt_prog_compiler_wl='-Wl,'
8336      lt_prog_compiler_can_build_shared=no
8337      ;;
8338
8339    uts4*)
8340      lt_prog_compiler_pic='-pic'
8341      lt_prog_compiler_static='-Bstatic'
8342      ;;
8343
8344    *)
8345      lt_prog_compiler_can_build_shared=no
8346      ;;
8347    esac
8348  fi
8349
8350echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8351echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8352
8353#
8354# Check to make sure the PIC flag actually works.
8355#
8356if test -n "$lt_prog_compiler_pic"; then
8357
8358echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8359echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8360if test "${lt_prog_compiler_pic_works+set}" = set; then
8361  echo $ECHO_N "(cached) $ECHO_C" >&6
8362else
8363  lt_prog_compiler_pic_works=no
8364  ac_outfile=conftest.$ac_objext
8365   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8366   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8367   # Insert the option either (1) after the last *FLAGS variable, or
8368   # (2) before a word containing "conftest.", or (3) at the end.
8369   # Note that $ac_compile itself does not contain backslashes and begins
8370   # with a dollar sign (not a hyphen), so the echo should work correctly.
8371   # The option is referenced via a variable to avoid confusing sed.
8372   lt_compile=`echo "$ac_compile" | $SED \
8373   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8374   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8375   -e 's:$: $lt_compiler_flag:'`
8376   (eval echo "\"\$as_me:8376: $lt_compile\"" >&5)
8377   (eval "$lt_compile" 2>conftest.err)
8378   ac_status=$?
8379   cat conftest.err >&5
8380   echo "$as_me:8380: \$? = $ac_status" >&5
8381   if (exit $ac_status) && test -s "$ac_outfile"; then
8382     # The compiler can only warn and ignore the option if not recognized
8383     # So say no if there are warnings other than the usual output.
8384     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8385     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8386     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8387       lt_prog_compiler_pic_works=yes
8388     fi
8389   fi
8390   $rm conftest*
8391
8392fi
8393echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8394echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8395
8396if test x"$lt_prog_compiler_pic_works" = xyes; then
8397    case $lt_prog_compiler_pic in
8398     "" | " "*) ;;
8399     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8400     esac
8401else
8402    lt_prog_compiler_pic=
8403     lt_prog_compiler_can_build_shared=no
8404fi
8405
8406fi
8407case $host_os in
8408  # For platforms which do not support PIC, -DPIC is meaningless:
8409  *djgpp*)
8410    lt_prog_compiler_pic=
8411    ;;
8412  *)
8413    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8414    ;;
8415esac
8416
8417#
8418# Check to make sure the static flag actually works.
8419#
8420wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8421echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8422echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8423if test "${lt_prog_compiler_static_works+set}" = set; then
8424  echo $ECHO_N "(cached) $ECHO_C" >&6
8425else
8426  lt_prog_compiler_static_works=no
8427   save_LDFLAGS="$LDFLAGS"
8428   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8429   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8430   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8431     # The linker can only warn and ignore the option if not recognized
8432     # So say no if there are warnings
8433     if test -s conftest.err; then
8434       # Append any errors to the config.log.
8435       cat conftest.err 1>&5
8436       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8437       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8438       if diff conftest.exp conftest.er2 >/dev/null; then
8439         lt_prog_compiler_static_works=yes
8440       fi
8441     else
8442       lt_prog_compiler_static_works=yes
8443     fi
8444   fi
8445   $rm conftest*
8446   LDFLAGS="$save_LDFLAGS"
8447
8448fi
8449echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8450echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8451
8452if test x"$lt_prog_compiler_static_works" = xyes; then
8453    :
8454else
8455    lt_prog_compiler_static=
8456fi
8457
8458
8459echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8460echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8461if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8462  echo $ECHO_N "(cached) $ECHO_C" >&6
8463else
8464  lt_cv_prog_compiler_c_o=no
8465   $rm -r conftest 2>/dev/null
8466   mkdir conftest
8467   cd conftest
8468   mkdir out
8469   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8470
8471   lt_compiler_flag="-o out/conftest2.$ac_objext"
8472   # Insert the option either (1) after the last *FLAGS variable, or
8473   # (2) before a word containing "conftest.", or (3) at the end.
8474   # Note that $ac_compile itself does not contain backslashes and begins
8475   # with a dollar sign (not a hyphen), so the echo should work correctly.
8476   lt_compile=`echo "$ac_compile" | $SED \
8477   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8478   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8479   -e 's:$: $lt_compiler_flag:'`
8480   (eval echo "\"\$as_me:8480: $lt_compile\"" >&5)
8481   (eval "$lt_compile" 2>out/conftest.err)
8482   ac_status=$?
8483   cat out/conftest.err >&5
8484   echo "$as_me:8484: \$? = $ac_status" >&5
8485   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8486   then
8487     # The compiler can only warn and ignore the option if not recognized
8488     # So say no if there are warnings
8489     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8490     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8491     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8492       lt_cv_prog_compiler_c_o=yes
8493     fi
8494   fi
8495   chmod u+w . 2>&5
8496   $rm conftest*
8497   # SGI C++ compiler will create directory out/ii_files/ for
8498   # template instantiation
8499   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8500   $rm out/* && rmdir out
8501   cd ..
8502   rmdir conftest
8503   $rm conftest*
8504
8505fi
8506echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8507echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8508
8509
8510hard_links="nottested"
8511if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8512  # do not overwrite the value of need_locks provided by the user
8513  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8514echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8515  hard_links=yes
8516  $rm conftest*
8517  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8518  touch conftest.a
8519  ln conftest.a conftest.b 2>&5 || hard_links=no
8520  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8521  echo "$as_me:$LINENO: result: $hard_links" >&5
8522echo "${ECHO_T}$hard_links" >&6
8523  if test "$hard_links" = no; then
8524    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8525echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8526    need_locks=warn
8527  fi
8528else
8529  need_locks=no
8530fi
8531
8532echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8533echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8534
8535  runpath_var=
8536  allow_undefined_flag=
8537  enable_shared_with_static_runtimes=no
8538  archive_cmds=
8539  archive_expsym_cmds=
8540  old_archive_From_new_cmds=
8541  old_archive_from_expsyms_cmds=
8542  export_dynamic_flag_spec=
8543  whole_archive_flag_spec=
8544  thread_safe_flag_spec=
8545  hardcode_libdir_flag_spec=
8546  hardcode_libdir_flag_spec_ld=
8547  hardcode_libdir_separator=
8548  hardcode_direct=no
8549  hardcode_minus_L=no
8550  hardcode_shlibpath_var=unsupported
8551  link_all_deplibs=unknown
8552  hardcode_automatic=no
8553  module_cmds=
8554  module_expsym_cmds=
8555  always_export_symbols=no
8556  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8557  # include_expsyms should be a list of space-separated symbols to be *always*
8558  # included in the symbol list
8559  include_expsyms=
8560  # exclude_expsyms can be an extended regexp of symbols to exclude
8561  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8562  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8563  # as well as any symbol that contains `d'.
8564  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8565  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8566  # platforms (ab)use it in PIC code, but their linkers get confused if
8567  # the symbol is explicitly referenced.  Since portable code cannot
8568  # rely on this symbol name, it's probably fine to never include it in
8569  # preloaded symbol tables.
8570  extract_expsyms_cmds=
8571  # Just being paranoid about ensuring that cc_basename is set.
8572  for cc_temp in $compiler""; do
8573  case $cc_temp in
8574    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8575    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8576    \-*) ;;
8577    *) break;;
8578  esac
8579done
8580cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8581
8582  case $host_os in
8583  cygwin* | mingw* | pw32*)
8584    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8585    # When not using gcc, we currently assume that we are using
8586    # Microsoft Visual C++.
8587    if test "$GCC" != yes; then
8588      with_gnu_ld=no
8589    fi
8590    ;;
8591  interix*)
8592    # we just hope/assume this is gcc and not c89 (= MSVC++)
8593    with_gnu_ld=yes
8594    ;;
8595  openbsd*)
8596    with_gnu_ld=no
8597    ;;
8598  esac
8599
8600  ld_shlibs=yes
8601  if test "$with_gnu_ld" = yes; then
8602    # If archive_cmds runs LD, not CC, wlarc should be empty
8603    wlarc='${wl}'
8604
8605    # Set some defaults for GNU ld with shared library support. These
8606    # are reset later if shared libraries are not supported. Putting them
8607    # here allows them to be overridden if necessary.
8608    runpath_var=LD_RUN_PATH
8609    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8610    export_dynamic_flag_spec='${wl}--export-dynamic'
8611    # ancient GNU ld didn't support --whole-archive et. al.
8612    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8613        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8614      else
8615        whole_archive_flag_spec=
8616    fi
8617    supports_anon_versioning=no
8618    case `$LD -v 2>/dev/null` in
8619      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8620      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8621      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8622      *\ 2.11.*) ;; # other 2.11 versions
8623      *) supports_anon_versioning=yes ;;
8624    esac
8625
8626    # See if GNU ld supports shared libraries.
8627    case $host_os in
8628    aix3* | aix4* | aix5*)
8629      # On AIX/PPC, the GNU linker is very broken
8630      if test "$host_cpu" != ia64; then
8631        ld_shlibs=no
8632        cat <<EOF 1>&2
8633
8634*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8635*** to be unable to reliably create shared libraries on AIX.
8636*** Therefore, libtool is disabling shared libraries support.  If you
8637*** really care for shared libraries, you may want to modify your PATH
8638*** so that a non-GNU linker is found, and then restart.
8639
8640EOF
8641      fi
8642      ;;
8643
8644    amigaos*)
8645      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)'
8646      hardcode_libdir_flag_spec='-L$libdir'
8647      hardcode_minus_L=yes
8648
8649      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8650      # that the semantics of dynamic libraries on AmigaOS, at least up
8651      # to version 4, is to share data among multiple programs linked
8652      # with the same dynamic library.  Since this doesn't match the
8653      # behavior of shared libraries on other platforms, we can't use
8654      # them.
8655      ld_shlibs=no
8656      ;;
8657
8658    beos*)
8659      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8660        allow_undefined_flag=unsupported
8661        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8662        # support --undefined.  This deserves some investigation.  FIXME
8663        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8664      else
8665        ld_shlibs=no
8666      fi
8667      ;;
8668
8669    cygwin* | mingw* | pw32*)
8670      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8671      # as there is no search path for DLLs.
8672      hardcode_libdir_flag_spec='-L$libdir'
8673      allow_undefined_flag=unsupported
8674      always_export_symbols=no
8675      enable_shared_with_static_runtimes=yes
8676      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8677
8678      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8679        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8680        # If the export-symbols file already is a .def file (1st line
8681        # is EXPORTS), use it as is; otherwise, prepend...
8682        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8683          cp $export_symbols $output_objdir/$soname.def;
8684        else
8685          echo EXPORTS > $output_objdir/$soname.def;
8686          cat $export_symbols >> $output_objdir/$soname.def;
8687        fi~
8688        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8689      else
8690        ld_shlibs=no
8691      fi
8692      ;;
8693
8694    interix3*)
8695      hardcode_direct=no
8696      hardcode_shlibpath_var=no
8697      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8698      export_dynamic_flag_spec='${wl}-E'
8699      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8700      # Instead, shared libraries are loaded at an image base (0x10000000 by
8701      # default) and relocated if they conflict, which is a slow very memory
8702      # consuming and fragmenting process.  To avoid this, we pick a random,
8703      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8704      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8705      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8706      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'
8707      ;;
8708
8709    linux*)
8710      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8711        tmp_addflag=
8712        case $cc_basename,$host_cpu in
8713        pgcc*)                          # Portland Group C compiler
8714          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'
8715          tmp_addflag=' $pic_flag'
8716          ;;
8717        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8718          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'
8719          tmp_addflag=' $pic_flag -Mnomain' ;;
8720        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8721          tmp_addflag=' -i_dynamic' ;;
8722        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8723          tmp_addflag=' -i_dynamic -nofor_main' ;;
8724        ifc* | ifort*)                  # Intel Fortran compiler
8725          tmp_addflag=' -nofor_main' ;;
8726        esac
8727        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728
8729        if test $supports_anon_versioning = yes; then
8730          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8731  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8732  $echo "local: *; };" >> $output_objdir/$libname.ver~
8733          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8734        fi
8735      else
8736        ld_shlibs=no
8737      fi
8738      ;;
8739
8740    netbsd*)
8741      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8742        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8743        wlarc=
8744      else
8745        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747      fi
8748      ;;
8749
8750    solaris*)
8751      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8752        ld_shlibs=no
8753        cat <<EOF 1>&2
8754
8755*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8756*** create shared libraries on Solaris systems.  Therefore, libtool
8757*** is disabling shared libraries support.  We urge you to upgrade GNU
8758*** binutils to release 2.9.1 or newer.  Another option is to modify
8759*** your PATH or compiler configuration so that the native linker is
8760*** used, and then restart.
8761
8762EOF
8763      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8764        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8765        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8766      else
8767        ld_shlibs=no
8768      fi
8769      ;;
8770
8771    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8772      case `$LD -v 2>&1` in
8773        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8774        ld_shlibs=no
8775        cat <<_LT_EOF 1>&2
8776
8777*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8778*** reliably create shared libraries on SCO systems.  Therefore, libtool
8779*** is disabling shared libraries support.  We urge you to upgrade GNU
8780*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8781*** your PATH or compiler configuration so that the native linker is
8782*** used, and then restart.
8783
8784_LT_EOF
8785        ;;
8786        *)
8787          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8788            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8789            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8790            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8791          else
8792            ld_shlibs=no
8793          fi
8794        ;;
8795      esac
8796      ;;
8797
8798    sunos4*)
8799      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8800      wlarc=
8801      hardcode_direct=yes
8802      hardcode_shlibpath_var=no
8803      ;;
8804
8805    *)
8806      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8807        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8808        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8809      else
8810        ld_shlibs=no
8811      fi
8812      ;;
8813    esac
8814
8815    if test "$ld_shlibs" = no; then
8816      runpath_var=
8817      hardcode_libdir_flag_spec=
8818      export_dynamic_flag_spec=
8819      whole_archive_flag_spec=
8820    fi
8821  else
8822    # PORTME fill in a description of your system's linker (not GNU ld)
8823    case $host_os in
8824    aix3*)
8825      allow_undefined_flag=unsupported
8826      always_export_symbols=yes
8827      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'
8828      # Note: this linker hardcodes the directories in LIBPATH if there
8829      # are no directories specified by -L.
8830      hardcode_minus_L=yes
8831      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8832        # Neither direct hardcoding nor static linking is supported with a
8833        # broken collect2.
8834        hardcode_direct=unsupported
8835      fi
8836      ;;
8837
8838    aix4* | aix5*)
8839      if test "$host_cpu" = ia64; then
8840        # On IA64, the linker does run time linking by default, so we don't
8841        # have to do anything special.
8842        aix_use_runtimelinking=no
8843        exp_sym_flag='-Bexport'
8844        no_entry_flag=""
8845      else
8846        # If we're using GNU nm, then we don't want the "-C" option.
8847        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8848        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8849          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'
8850        else
8851          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'
8852        fi
8853        aix_use_runtimelinking=no
8854
8855        # Test if we are trying to use run time linking or normal
8856        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8857        # need to do runtime linking.
8858        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8859          for ld_flag in $LDFLAGS; do
8860          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8861            aix_use_runtimelinking=yes
8862            break
8863          fi
8864          done
8865          ;;
8866        esac
8867
8868        exp_sym_flag='-bexport'
8869        no_entry_flag='-bnoentry'
8870      fi
8871
8872      # When large executables or shared objects are built, AIX ld can
8873      # have problems creating the table of contents.  If linking a library
8874      # or program results in "error TOC overflow" add -mminimal-toc to
8875      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8876      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8877
8878      archive_cmds=''
8879      hardcode_direct=yes
8880      hardcode_libdir_separator=':'
8881      link_all_deplibs=yes
8882
8883      if test "$GCC" = yes; then
8884        case $host_os in aix4.[012]|aix4.[012].*)
8885        # We only want to do this on AIX 4.2 and lower, the check
8886        # below for broken collect2 doesn't work under 4.3+
8887          collect2name=`${CC} -print-prog-name=collect2`
8888          if test -f "$collect2name" && \
8889           strings "$collect2name" | grep resolve_lib_name >/dev/null
8890          then
8891          # We have reworked collect2
8892          hardcode_direct=yes
8893          else
8894          # We have old collect2
8895          hardcode_direct=unsupported
8896          # It fails to find uninstalled libraries when the uninstalled
8897          # path is not listed in the libpath.  Setting hardcode_minus_L
8898          # to unsupported forces relinking
8899          hardcode_minus_L=yes
8900          hardcode_libdir_flag_spec='-L$libdir'
8901          hardcode_libdir_separator=
8902          fi
8903          ;;
8904        esac
8905        shared_flag='-shared'
8906        if test "$aix_use_runtimelinking" = yes; then
8907          shared_flag="$shared_flag "'${wl}-G'
8908        fi
8909      else
8910        # not using gcc
8911        if test "$host_cpu" = ia64; then
8912        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8913        # chokes on -Wl,-G. The following line is correct:
8914          shared_flag='-G'
8915        else
8916          if test "$aix_use_runtimelinking" = yes; then
8917            shared_flag='${wl}-G'
8918          else
8919            shared_flag='${wl}-bM:SRE'
8920          fi
8921        fi
8922      fi
8923
8924      # It seems that -bexpall does not export symbols beginning with
8925      # underscore (_), so it is better to generate a list of symbols to export.
8926      always_export_symbols=yes
8927      if test "$aix_use_runtimelinking" = yes; then
8928        # Warning - without using the other runtime loading flags (-brtl),
8929        # -berok will link without error, but may produce a broken library.
8930        allow_undefined_flag='-berok'
8931       # Determine the default libpath from the value encoded in an empty executable.
8932       cat >conftest.$ac_ext <<_ACEOF
8933/* confdefs.h.  */
8934_ACEOF
8935cat confdefs.h >>conftest.$ac_ext
8936cat >>conftest.$ac_ext <<_ACEOF
8937/* end confdefs.h.  */
8938
8939int
8940main ()
8941{
8942
8943  ;
8944  return 0;
8945}
8946_ACEOF
8947rm -f conftest.$ac_objext conftest$ac_exeext
8948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949  (eval $ac_link) 2>conftest.er1
8950  ac_status=$?
8951  grep -v '^ *+' conftest.er1 >conftest.err
8952  rm -f conftest.er1
8953  cat conftest.err >&5
8954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955  (exit $ac_status); } &&
8956         { ac_try='test -z "$ac_c_werror_flag"
8957                         || test ! -s conftest.err'
8958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959  (eval $ac_try) 2>&5
8960  ac_status=$?
8961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962  (exit $ac_status); }; } &&
8963         { ac_try='test -s conftest$ac_exeext'
8964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965  (eval $ac_try) 2>&5
8966  ac_status=$?
8967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968  (exit $ac_status); }; }; then
8969
8970aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8971}'`
8972# Check for a 64-bit object if we didn't find anything.
8973if 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; }
8974}'`; fi
8975else
8976  echo "$as_me: failed program was:" >&5
8977sed 's/^/| /' conftest.$ac_ext >&5
8978
8979fi
8980rm -f conftest.err conftest.$ac_objext \
8981      conftest$ac_exeext conftest.$ac_ext
8982if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8983
8984       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8985        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"
8986       else
8987        if test "$host_cpu" = ia64; then
8988          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8989          allow_undefined_flag="-z nodefs"
8990          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"
8991        else
8992         # Determine the default libpath from the value encoded in an empty executable.
8993         cat >conftest.$ac_ext <<_ACEOF
8994/* confdefs.h.  */
8995_ACEOF
8996cat confdefs.h >>conftest.$ac_ext
8997cat >>conftest.$ac_ext <<_ACEOF
8998/* end confdefs.h.  */
8999
9000int
9001main ()
9002{
9003
9004  ;
9005  return 0;
9006}
9007_ACEOF
9008rm -f conftest.$ac_objext conftest$ac_exeext
9009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9010  (eval $ac_link) 2>conftest.er1
9011  ac_status=$?
9012  grep -v '^ *+' conftest.er1 >conftest.err
9013  rm -f conftest.er1
9014  cat conftest.err >&5
9015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016  (exit $ac_status); } &&
9017         { ac_try='test -z "$ac_c_werror_flag"
9018                         || test ! -s conftest.err'
9019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020  (eval $ac_try) 2>&5
9021  ac_status=$?
9022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023  (exit $ac_status); }; } &&
9024         { ac_try='test -s conftest$ac_exeext'
9025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026  (eval $ac_try) 2>&5
9027  ac_status=$?
9028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029  (exit $ac_status); }; }; then
9030
9031aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9032}'`
9033# Check for a 64-bit object if we didn't find anything.
9034if 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; }
9035}'`; fi
9036else
9037  echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040fi
9041rm -f conftest.err conftest.$ac_objext \
9042      conftest$ac_exeext conftest.$ac_ext
9043if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9044
9045         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9046          # Warning - without using the other run time loading flags,
9047          # -berok will link without error, but may produce a broken library.
9048          no_undefined_flag=' ${wl}-bernotok'
9049          allow_undefined_flag=' ${wl}-berok'
9050          # Exported symbols can be pulled into shared objects from archives
9051          whole_archive_flag_spec='$convenience'
9052          archive_cmds_need_lc=yes
9053          # This is similar to how AIX traditionally builds its shared libraries.
9054          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'
9055        fi
9056      fi
9057      ;;
9058
9059    amigaos*)
9060      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)'
9061      hardcode_libdir_flag_spec='-L$libdir'
9062      hardcode_minus_L=yes
9063      # see comment about different semantics on the GNU ld section
9064      ld_shlibs=no
9065      ;;
9066
9067    bsdi[45]*)
9068      export_dynamic_flag_spec=-rdynamic
9069      ;;
9070
9071    cygwin* | mingw* | pw32*)
9072      # When not using gcc, we currently assume that we are using
9073      # Microsoft Visual C++.
9074      # hardcode_libdir_flag_spec is actually meaningless, as there is
9075      # no search path for DLLs.
9076      hardcode_libdir_flag_spec=' '
9077      allow_undefined_flag=unsupported
9078      # Tell ltmain to make .lib files, not .a files.
9079      libext=lib
9080      # Tell ltmain to make .dll files, not .so files.
9081      shrext_cmds=".dll"
9082      # FIXME: Setting linknames here is a bad hack.
9083      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9084      # The linker will automatically build a .lib file if we build a DLL.
9085      old_archive_From_new_cmds='true'
9086      # FIXME: Should let the user specify the lib program.
9087      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9088      fix_srcfile_path='`cygpath -w "$srcfile"`'
9089      enable_shared_with_static_runtimes=yes
9090      ;;
9091
9092    darwin* | rhapsody*)
9093      case $host_os in
9094        rhapsody* | darwin1.[012])
9095         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9096         ;;
9097       *) # Darwin 1.3 on
9098         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9099           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9100         else
9101           case ${MACOSX_DEPLOYMENT_TARGET} in
9102             10.[012])
9103               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9104               ;;
9105             10.*)
9106               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9107               ;;
9108           esac
9109         fi
9110         ;;
9111      esac
9112      archive_cmds_need_lc=no
9113      hardcode_direct=no
9114      hardcode_automatic=yes
9115      hardcode_shlibpath_var=unsupported
9116      whole_archive_flag_spec=''
9117      link_all_deplibs=yes
9118    if test "$GCC" = yes ; then
9119        output_verbose_link_cmd='echo'
9120        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9121      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9122      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9123      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}'
9124      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}'
9125    else
9126      case $cc_basename in
9127        xlc*)
9128         output_verbose_link_cmd='echo'
9129         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9130         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9131          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9132         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}'
9133          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}'
9134          ;;
9135       *)
9136         ld_shlibs=no
9137          ;;
9138      esac
9139    fi
9140      ;;
9141
9142    dgux*)
9143      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144      hardcode_libdir_flag_spec='-L$libdir'
9145      hardcode_shlibpath_var=no
9146      ;;
9147
9148    freebsd1*)
9149      ld_shlibs=no
9150      ;;
9151
9152    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9153    # support.  Future versions do this automatically, but an explicit c++rt0.o
9154    # does not break anything, and helps significantly (at the cost of a little
9155    # extra space).
9156    freebsd2.2*)
9157      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9158      hardcode_libdir_flag_spec='-R$libdir'
9159      hardcode_direct=yes
9160      hardcode_shlibpath_var=no
9161      ;;
9162
9163    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9164    freebsd2*)
9165      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9166      hardcode_direct=yes
9167      hardcode_minus_L=yes
9168      hardcode_shlibpath_var=no
9169      ;;
9170
9171    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9172    freebsd* | kfreebsd*-gnu | dragonfly*)
9173      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9174      hardcode_libdir_flag_spec='-R$libdir'
9175      hardcode_direct=yes
9176      hardcode_shlibpath_var=no
9177      ;;
9178
9179    hpux9*)
9180      if test "$GCC" = yes; then
9181        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'
9182      else
9183        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'
9184      fi
9185      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9186      hardcode_libdir_separator=:
9187      hardcode_direct=yes
9188
9189      # hardcode_minus_L: Not really in the search PATH,
9190      # but as the default location of the library.
9191      hardcode_minus_L=yes
9192      export_dynamic_flag_spec='${wl}-E'
9193      ;;
9194
9195    hpux10*)
9196      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9197        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9198      else
9199        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9200      fi
9201      if test "$with_gnu_ld" = no; then
9202        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9203        hardcode_libdir_separator=:
9204
9205        hardcode_direct=yes
9206        export_dynamic_flag_spec='${wl}-E'
9207
9208        # hardcode_minus_L: Not really in the search PATH,
9209        # but as the default location of the library.
9210        hardcode_minus_L=yes
9211      fi
9212      ;;
9213
9214    hpux11*)
9215      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9216        case $host_cpu in
9217        hppa*64*)
9218          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9219          ;;
9220        ia64*)
9221          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9222          ;;
9223        *)
9224          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9225          ;;
9226        esac
9227      else
9228        case $host_cpu in
9229        hppa*64*)
9230          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9231          ;;
9232        ia64*)
9233          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9234          ;;
9235        *)
9236          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9237          ;;
9238        esac
9239      fi
9240      if test "$with_gnu_ld" = no; then
9241        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9242        hardcode_libdir_separator=:
9243
9244        case $host_cpu in
9245        hppa*64*|ia64*)
9246          hardcode_libdir_flag_spec_ld='+b $libdir'
9247          hardcode_direct=no
9248          hardcode_shlibpath_var=no
9249          ;;
9250        *)
9251          hardcode_direct=yes
9252          export_dynamic_flag_spec='${wl}-E'
9253
9254          # hardcode_minus_L: Not really in the search PATH,
9255          # but as the default location of the library.
9256          hardcode_minus_L=yes
9257          ;;
9258        esac
9259      fi
9260      ;;
9261
9262    irix5* | irix6* | nonstopux*)
9263      if test "$GCC" = yes; then
9264        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'
9265      else
9266        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'
9267        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9268      fi
9269      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9270      hardcode_libdir_separator=:
9271      link_all_deplibs=yes
9272      ;;
9273
9274    netbsd*)
9275      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9276        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9277      else
9278        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9279      fi
9280      hardcode_libdir_flag_spec='-R$libdir'
9281      hardcode_direct=yes
9282      hardcode_shlibpath_var=no
9283      ;;
9284
9285    newsos6)
9286      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287      hardcode_direct=yes
9288      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9289      hardcode_libdir_separator=:
9290      hardcode_shlibpath_var=no
9291      ;;
9292
9293    openbsd*)
9294      hardcode_direct=yes
9295      hardcode_shlibpath_var=no
9296      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9297        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9298        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9299        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9300        export_dynamic_flag_spec='${wl}-E'
9301      else
9302       case $host_os in
9303         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9304           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9305           hardcode_libdir_flag_spec='-R$libdir'
9306           ;;
9307         *)
9308           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9309           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9310           ;;
9311       esac
9312      fi
9313      ;;
9314
9315    os2*)
9316      hardcode_libdir_flag_spec='-L$libdir'
9317      hardcode_minus_L=yes
9318      allow_undefined_flag=unsupported
9319      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'
9320      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9321      ;;
9322
9323    osf3*)
9324      if test "$GCC" = yes; then
9325        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9326        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'
9327      else
9328        allow_undefined_flag=' -expect_unresolved \*'
9329        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'
9330      fi
9331      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9332      hardcode_libdir_separator=:
9333      ;;
9334
9335    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9336      if test "$GCC" = yes; then
9337        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9338        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'
9339        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9340      else
9341        allow_undefined_flag=' -expect_unresolved \*'
9342        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'
9343        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9344        $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'
9345
9346        # Both c and cxx compiler support -rpath directly
9347        hardcode_libdir_flag_spec='-rpath $libdir'
9348      fi
9349      hardcode_libdir_separator=:
9350      ;;
9351
9352    solaris*)
9353      no_undefined_flag=' -z text'
9354      if test "$GCC" = yes; then
9355        wlarc='${wl}'
9356        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9357        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9358          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9359      else
9360        wlarc=''
9361        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9362        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9363        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9364      fi
9365      hardcode_libdir_flag_spec='-R$libdir'
9366      hardcode_shlibpath_var=no
9367      case $host_os in
9368      solaris2.[0-5] | solaris2.[0-5].*) ;;
9369      *)
9370        # The compiler driver will combine linker options so we
9371        # cannot just pass the convience library names through
9372        # without $wl, iff we do not link with $LD.
9373        # Luckily, gcc supports the same syntax we need for Sun Studio.
9374        # Supported since Solaris 2.6 (maybe 2.5.1?)
9375        case $wlarc in
9376        '')
9377          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9378        *)
9379          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' ;;
9380        esac ;;
9381      esac
9382      link_all_deplibs=yes
9383      ;;
9384
9385    sunos4*)
9386      if test "x$host_vendor" = xsequent; then
9387        # Use $CC to link under sequent, because it throws in some extra .o
9388        # files that make .init and .fini sections work.
9389        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9390      else
9391        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9392      fi
9393      hardcode_libdir_flag_spec='-L$libdir'
9394      hardcode_direct=yes
9395      hardcode_minus_L=yes
9396      hardcode_shlibpath_var=no
9397      ;;
9398
9399    sysv4)
9400      case $host_vendor in
9401        sni)
9402          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9403          hardcode_direct=yes # is this really true???
9404        ;;
9405        siemens)
9406          ## LD is ld it makes a PLAMLIB
9407          ## CC just makes a GrossModule.
9408          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9409          reload_cmds='$CC -r -o $output$reload_objs'
9410          hardcode_direct=no
9411        ;;
9412        motorola)
9413          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9414          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9415        ;;
9416      esac
9417      runpath_var='LD_RUN_PATH'
9418      hardcode_shlibpath_var=no
9419      ;;
9420
9421    sysv4.3*)
9422      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423      hardcode_shlibpath_var=no
9424      export_dynamic_flag_spec='-Bexport'
9425      ;;
9426
9427    sysv4*MP*)
9428      if test -d /usr/nec; then
9429        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9430        hardcode_shlibpath_var=no
9431        runpath_var=LD_RUN_PATH
9432        hardcode_runpath_var=yes
9433        ld_shlibs=yes
9434      fi
9435      ;;
9436
9437    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9438      no_undefined_flag='${wl}-z,text'
9439      archive_cmds_need_lc=no
9440      hardcode_shlibpath_var=no
9441      runpath_var='LD_RUN_PATH'
9442
9443      if test "$GCC" = yes; then
9444        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9445        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9446      else
9447        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9448        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9449      fi
9450      ;;
9451
9452    sysv5* | sco3.2v5* | sco5v6*)
9453      # Note: We can NOT use -z defs as we might desire, because we do not
9454      # link with -lc, and that would cause any symbols used from libc to
9455      # always be unresolved, which means just about no library would
9456      # ever link correctly.  If we're not using GNU ld we use -z text
9457      # though, which does catch some bad symbols but isn't as heavy-handed
9458      # as -z defs.
9459      no_undefined_flag='${wl}-z,text'
9460      allow_undefined_flag='${wl}-z,nodefs'
9461      archive_cmds_need_lc=no
9462      hardcode_shlibpath_var=no
9463      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9464      hardcode_libdir_separator=':'
9465      link_all_deplibs=yes
9466      export_dynamic_flag_spec='${wl}-Bexport'
9467      runpath_var='LD_RUN_PATH'
9468
9469      if test "$GCC" = yes; then
9470        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9471        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9472      else
9473        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9474        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9475      fi
9476      ;;
9477
9478    uts4*)
9479      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9480      hardcode_libdir_flag_spec='-L$libdir'
9481      hardcode_shlibpath_var=no
9482      ;;
9483
9484    *)
9485      ld_shlibs=no
9486      ;;
9487    esac
9488  fi
9489
9490echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9491echo "${ECHO_T}$ld_shlibs" >&6
9492test "$ld_shlibs" = no && can_build_shared=no
9493
9494#
9495# Do we need to explicitly link libc?
9496#
9497case "x$archive_cmds_need_lc" in
9498x|xyes)
9499  # Assume -lc should be added
9500  archive_cmds_need_lc=yes
9501
9502  if test "$enable_shared" = yes && test "$GCC" = yes; then
9503    case $archive_cmds in
9504    *'~'*)
9505      # FIXME: we may have to deal with multi-command sequences.
9506      ;;
9507    '$CC '*)
9508      # Test whether the compiler implicitly links with -lc since on some
9509      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9510      # to ld, don't add -lc before -lgcc.
9511      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9512echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9513      $rm conftest*
9514      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9515
9516      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9517  (eval $ac_compile) 2>&5
9518  ac_status=$?
9519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520  (exit $ac_status); } 2>conftest.err; then
9521        soname=conftest
9522        lib=conftest
9523        libobjs=conftest.$ac_objext
9524        deplibs=
9525        wl=$lt_prog_compiler_wl
9526        pic_flag=$lt_prog_compiler_pic
9527        compiler_flags=-v
9528        linker_flags=-v
9529        verstring=
9530        output_objdir=.
9531        libname=conftest
9532        lt_save_allow_undefined_flag=$allow_undefined_flag
9533        allow_undefined_flag=
9534        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9535  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9536  ac_status=$?
9537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538  (exit $ac_status); }
9539        then
9540          archive_cmds_need_lc=no
9541        else
9542          archive_cmds_need_lc=yes
9543        fi
9544        allow_undefined_flag=$lt_save_allow_undefined_flag
9545      else
9546        cat conftest.err 1>&5
9547      fi
9548      $rm conftest*
9549      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9550echo "${ECHO_T}$archive_cmds_need_lc" >&6
9551      ;;
9552    esac
9553  fi
9554  ;;
9555esac
9556
9557echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9558echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9559library_names_spec=
9560libname_spec='lib$name'
9561soname_spec=
9562shrext_cmds=".so"
9563postinstall_cmds=
9564postuninstall_cmds=
9565finish_cmds=
9566finish_eval=
9567shlibpath_var=
9568shlibpath_overrides_runpath=unknown
9569version_type=none
9570dynamic_linker="$host_os ld.so"
9571sys_lib_dlsearch_path_spec="/lib /usr/lib"
9572if test "$GCC" = yes; then
9573  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9574  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9575    # if the path contains ";" then we assume it to be the separator
9576    # otherwise default to the standard path separator (i.e. ":") - it is
9577    # assumed that no part of a normal pathname contains ";" but that should
9578    # okay in the real world where ";" in dirpaths is itself problematic.
9579    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9580  else
9581    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9582  fi
9583else
9584  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9585fi
9586need_lib_prefix=unknown
9587hardcode_into_libs=no
9588
9589# when you set need_version to no, make sure it does not cause -set_version
9590# flags to be left without arguments
9591need_version=unknown
9592
9593case $host_os in
9594aix3*)
9595  version_type=linux
9596  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9597  shlibpath_var=LIBPATH
9598
9599  # AIX 3 has no versioning support, so we append a major version to the name.
9600  soname_spec='${libname}${release}${shared_ext}$major'
9601  ;;
9602
9603aix4* | aix5*)
9604  version_type=linux
9605  need_lib_prefix=no
9606  need_version=no
9607  hardcode_into_libs=yes
9608  if test "$host_cpu" = ia64; then
9609    # AIX 5 supports IA64
9610    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9611    shlibpath_var=LD_LIBRARY_PATH
9612  else
9613    # With GCC up to 2.95.x, collect2 would create an import file
9614    # for dependence libraries.  The import file would start with
9615    # the line `#! .'.  This would cause the generated library to
9616    # depend on `.', always an invalid library.  This was fixed in
9617    # development snapshots of GCC prior to 3.0.
9618    case $host_os in
9619      aix4 | aix4.[01] | aix4.[01].*)
9620      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9621           echo ' yes '
9622           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9623        :
9624      else
9625        can_build_shared=no
9626      fi
9627      ;;
9628    esac
9629    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9630    # soname into executable. Probably we can add versioning support to
9631    # collect2, so additional links can be useful in future.
9632    if test "$aix_use_runtimelinking" = yes; then
9633      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9634      # instead of lib<name>.a to let people know that these are not
9635      # typical AIX shared libraries.
9636      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637    else
9638      # We preserve .a as extension for shared libraries through AIX4.2
9639      # and later when we are not doing run time linking.
9640      library_names_spec='${libname}${release}.a $libname.a'
9641      soname_spec='${libname}${release}${shared_ext}$major'
9642    fi
9643    shlibpath_var=LIBPATH
9644  fi
9645  ;;
9646
9647amigaos*)
9648  library_names_spec='$libname.ixlibrary $libname.a'
9649  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9650  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'
9651  ;;
9652
9653beos*)
9654  library_names_spec='${libname}${shared_ext}'
9655  dynamic_linker="$host_os ld.so"
9656  shlibpath_var=LIBRARY_PATH
9657  ;;
9658
9659bsdi[45]*)
9660  version_type=linux
9661  need_version=no
9662  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9663  soname_spec='${libname}${release}${shared_ext}$major'
9664  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9665  shlibpath_var=LD_LIBRARY_PATH
9666  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9667  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9668  # the default ld.so.conf also contains /usr/contrib/lib and
9669  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9670  # libtool to hard-code these into programs
9671  ;;
9672
9673cygwin* | mingw* | pw32*)
9674  version_type=windows
9675  shrext_cmds=".dll"
9676  need_version=no
9677  need_lib_prefix=no
9678
9679  case $GCC,$host_os in
9680  yes,cygwin* | yes,mingw* | yes,pw32*)
9681    library_names_spec='$libname.dll.a'
9682    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9683    postinstall_cmds='base_file=`basename \${file}`~
9684      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9685      dldir=$destdir/`dirname \$dlpath`~
9686      test -d \$dldir || mkdir -p \$dldir~
9687      $install_prog $dir/$dlname \$dldir/$dlname~
9688      chmod a+x \$dldir/$dlname'
9689    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9690      dlpath=$dir/\$dldll~
9691       $rm \$dlpath'
9692    shlibpath_overrides_runpath=yes
9693
9694    case $host_os in
9695    cygwin*)
9696      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9697      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9698      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9699      ;;
9700    mingw*)
9701      # MinGW DLLs use traditional 'lib' prefix
9702      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9703      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9704      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9705        # It is most probably a Windows format PATH printed by
9706        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9707        # path with ; separators, and with drive letters. We can handle the
9708        # drive letters (cygwin fileutils understands them), so leave them,
9709        # especially as we might pass files found there to a mingw objdump,
9710        # which wouldn't understand a cygwinified path. Ahh.
9711        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9712      else
9713        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9714      fi
9715      ;;
9716    pw32*)
9717      # pw32 DLLs use 'pw' prefix rather than 'lib'
9718      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9719      ;;
9720    esac
9721    ;;
9722
9723  *)
9724    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9725    ;;
9726  esac
9727  dynamic_linker='Win32 ld.exe'
9728  # FIXME: first we should search . and the directory the executable is in
9729  shlibpath_var=PATH
9730  ;;
9731
9732darwin* | rhapsody*)
9733  dynamic_linker="$host_os dyld"
9734  version_type=darwin
9735  need_lib_prefix=no
9736  need_version=no
9737  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9738  soname_spec='${libname}${release}${major}$shared_ext'
9739  shlibpath_overrides_runpath=yes
9740  shlibpath_var=DYLD_LIBRARY_PATH
9741  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9742  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9743  if test "$GCC" = yes; then
9744    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"`
9745  else
9746    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9747  fi
9748  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9749  ;;
9750
9751dgux*)
9752  version_type=linux
9753  need_lib_prefix=no
9754  need_version=no
9755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9756  soname_spec='${libname}${release}${shared_ext}$major'
9757  shlibpath_var=LD_LIBRARY_PATH
9758  ;;
9759
9760freebsd1*)
9761  dynamic_linker=no
9762  ;;
9763
9764kfreebsd*-gnu)
9765  version_type=linux
9766  need_lib_prefix=no
9767  need_version=no
9768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9769  soname_spec='${libname}${release}${shared_ext}$major'
9770  shlibpath_var=LD_LIBRARY_PATH
9771  shlibpath_overrides_runpath=no
9772  hardcode_into_libs=yes
9773  dynamic_linker='GNU ld.so'
9774  ;;
9775
9776freebsd* | dragonfly*)
9777  # DragonFly does not have aout.  When/if they implement a new
9778  # versioning mechanism, adjust this.
9779  if test -x /usr/bin/objformat; then
9780    objformat=`/usr/bin/objformat`
9781  else
9782    case $host_os in
9783    freebsd[123]*) objformat=aout ;;
9784    *) objformat=elf ;;
9785    esac
9786  fi
9787  version_type=freebsd-$objformat
9788  case $version_type in
9789    freebsd-elf*)
9790      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9791      need_version=no
9792      need_lib_prefix=no
9793      ;;
9794    freebsd-*)
9795      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9796      need_version=yes
9797      ;;
9798  esac
9799  shlibpath_var=LD_LIBRARY_PATH
9800  case $host_os in
9801  freebsd2*)
9802    shlibpath_overrides_runpath=yes
9803    ;;
9804  freebsd3.[01]* | freebsdelf3.[01]*)
9805    shlibpath_overrides_runpath=yes
9806    hardcode_into_libs=yes
9807    ;;
9808  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9809  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9810    shlibpath_overrides_runpath=no
9811    hardcode_into_libs=yes
9812    ;;
9813  freebsd*) # from 4.6 on
9814    shlibpath_overrides_runpath=yes
9815    hardcode_into_libs=yes
9816    ;;
9817  esac
9818  ;;
9819
9820gnu*)
9821  version_type=linux
9822  need_lib_prefix=no
9823  need_version=no
9824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9825  soname_spec='${libname}${release}${shared_ext}$major'
9826  shlibpath_var=LD_LIBRARY_PATH
9827  hardcode_into_libs=yes
9828  ;;
9829
9830hpux9* | hpux10* | hpux11*)
9831  # Give a soname corresponding to the major version so that dld.sl refuses to
9832  # link against other versions.
9833  version_type=sunos
9834  need_lib_prefix=no
9835  need_version=no
9836  case $host_cpu in
9837  ia64*)
9838    shrext_cmds='.so'
9839    hardcode_into_libs=yes
9840    dynamic_linker="$host_os dld.so"
9841    shlibpath_var=LD_LIBRARY_PATH
9842    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9843    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844    soname_spec='${libname}${release}${shared_ext}$major'
9845    if test "X$HPUX_IA64_MODE" = X32; then
9846      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9847    else
9848      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9849    fi
9850    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9851    ;;
9852   hppa*64*)
9853     shrext_cmds='.sl'
9854     hardcode_into_libs=yes
9855     dynamic_linker="$host_os dld.sl"
9856     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9857     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9859     soname_spec='${libname}${release}${shared_ext}$major'
9860     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9861     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9862     ;;
9863   *)
9864    shrext_cmds='.sl'
9865    dynamic_linker="$host_os dld.sl"
9866    shlibpath_var=SHLIB_PATH
9867    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9868    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9869    soname_spec='${libname}${release}${shared_ext}$major'
9870    ;;
9871  esac
9872  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9873  postinstall_cmds='chmod 555 $lib'
9874  ;;
9875
9876interix3*)
9877  version_type=linux
9878  need_lib_prefix=no
9879  need_version=no
9880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9881  soname_spec='${libname}${release}${shared_ext}$major'
9882  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9883  shlibpath_var=LD_LIBRARY_PATH
9884  shlibpath_overrides_runpath=no
9885  hardcode_into_libs=yes
9886  ;;
9887
9888irix5* | irix6* | nonstopux*)
9889  case $host_os in
9890    nonstopux*) version_type=nonstopux ;;
9891    *)
9892        if test "$lt_cv_prog_gnu_ld" = yes; then
9893                version_type=linux
9894        else
9895                version_type=irix
9896        fi ;;
9897  esac
9898  need_lib_prefix=no
9899  need_version=no
9900  soname_spec='${libname}${release}${shared_ext}$major'
9901  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9902  case $host_os in
9903  irix5* | nonstopux*)
9904    libsuff= shlibsuff=
9905    ;;
9906  *)
9907    case $LD in # libtool.m4 will add one of these switches to LD
9908    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9909      libsuff= shlibsuff= libmagic=32-bit;;
9910    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9911      libsuff=32 shlibsuff=N32 libmagic=N32;;
9912    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9913      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9914    *) libsuff= shlibsuff= libmagic=never-match;;
9915    esac
9916    ;;
9917  esac
9918  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9919  shlibpath_overrides_runpath=no
9920  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9921  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9922  hardcode_into_libs=yes
9923  ;;
9924
9925# No shared lib support for Linux oldld, aout, or coff.
9926linux*oldld* | linux*aout* | linux*coff*)
9927  dynamic_linker=no
9928  ;;
9929
9930# This must be Linux ELF.
9931linux*)
9932  version_type=linux
9933  need_lib_prefix=no
9934  need_version=no
9935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936  soname_spec='${libname}${release}${shared_ext}$major'
9937  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9938  shlibpath_var=LD_LIBRARY_PATH
9939  shlibpath_overrides_runpath=no
9940  # This implies no fast_install, which is unacceptable.
9941  # Some rework will be needed to allow for fast_install
9942  # before this can be enabled.
9943  hardcode_into_libs=yes
9944
9945  # Append ld.so.conf contents to the search path
9946  if test -f /etc/ld.so.conf; then
9947    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' ' '`
9948    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9949  fi
9950
9951  # We used to test for /lib/ld.so.1 and disable shared libraries on
9952  # powerpc, because MkLinux only supported shared libraries with the
9953  # GNU dynamic linker.  Since this was broken with cross compilers,
9954  # most powerpc-linux boxes support dynamic linking these days and
9955  # people can always --disable-shared, the test was removed, and we
9956  # assume the GNU/Linux dynamic linker is in use.
9957  dynamic_linker='GNU/Linux ld.so'
9958  ;;
9959
9960knetbsd*-gnu)
9961  version_type=linux
9962  need_lib_prefix=no
9963  need_version=no
9964  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9965  soname_spec='${libname}${release}${shared_ext}$major'
9966  shlibpath_var=LD_LIBRARY_PATH
9967  shlibpath_overrides_runpath=no
9968  hardcode_into_libs=yes
9969  dynamic_linker='GNU ld.so'
9970  ;;
9971
9972netbsd*)
9973  version_type=sunos
9974  need_lib_prefix=no
9975  need_version=no
9976  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9977    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9978    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9979    dynamic_linker='NetBSD (a.out) ld.so'
9980  else
9981    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9982    soname_spec='${libname}${release}${shared_ext}$major'
9983    dynamic_linker='NetBSD ld.elf_so'
9984  fi
9985  shlibpath_var=LD_LIBRARY_PATH
9986  shlibpath_overrides_runpath=yes
9987  hardcode_into_libs=yes
9988  ;;
9989
9990newsos6)
9991  version_type=linux
9992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993  shlibpath_var=LD_LIBRARY_PATH
9994  shlibpath_overrides_runpath=yes
9995  ;;
9996
9997nto-qnx*)
9998  version_type=linux
9999  need_lib_prefix=no
10000  need_version=no
10001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002  soname_spec='${libname}${release}${shared_ext}$major'
10003  shlibpath_var=LD_LIBRARY_PATH
10004  shlibpath_overrides_runpath=yes
10005  ;;
10006
10007openbsd*)
10008  version_type=sunos
10009  sys_lib_dlsearch_path_spec="/usr/lib"
10010  need_lib_prefix=no
10011  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10012  case $host_os in
10013    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10014    *)                         need_version=no  ;;
10015  esac
10016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10017  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10018  shlibpath_var=LD_LIBRARY_PATH
10019  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10020    case $host_os in
10021      openbsd2.[89] | openbsd2.[89].*)
10022        shlibpath_overrides_runpath=no
10023        ;;
10024      *)
10025        shlibpath_overrides_runpath=yes
10026        ;;
10027      esac
10028  else
10029    shlibpath_overrides_runpath=yes
10030  fi
10031  ;;
10032
10033os2*)
10034  libname_spec='$name'
10035  shrext_cmds=".dll"
10036  need_lib_prefix=no
10037  library_names_spec='$libname${shared_ext} $libname.a'
10038  dynamic_linker='OS/2 ld.exe'
10039  shlibpath_var=LIBPATH
10040  ;;
10041
10042osf3* | osf4* | osf5*)
10043  version_type=osf
10044  need_lib_prefix=no
10045  need_version=no
10046  soname_spec='${libname}${release}${shared_ext}$major'
10047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048  shlibpath_var=LD_LIBRARY_PATH
10049  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10050  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10051  ;;
10052
10053solaris*)
10054  version_type=linux
10055  need_lib_prefix=no
10056  need_version=no
10057  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10058  soname_spec='${libname}${release}${shared_ext}$major'
10059  shlibpath_var=LD_LIBRARY_PATH
10060  shlibpath_overrides_runpath=yes
10061  hardcode_into_libs=yes
10062  # ldd complains unless libraries are executable
10063  postinstall_cmds='chmod +x $lib'
10064  ;;
10065
10066sunos4*)
10067  version_type=sunos
10068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10069  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10070  shlibpath_var=LD_LIBRARY_PATH
10071  shlibpath_overrides_runpath=yes
10072  if test "$with_gnu_ld" = yes; then
10073    need_lib_prefix=no
10074  fi
10075  need_version=yes
10076  ;;
10077
10078sysv4 | sysv4.3*)
10079  version_type=linux
10080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10081  soname_spec='${libname}${release}${shared_ext}$major'
10082  shlibpath_var=LD_LIBRARY_PATH
10083  case $host_vendor in
10084    sni)
10085      shlibpath_overrides_runpath=no
10086      need_lib_prefix=no
10087      export_dynamic_flag_spec='${wl}-Blargedynsym'
10088      runpath_var=LD_RUN_PATH
10089      ;;
10090    siemens)
10091      need_lib_prefix=no
10092      ;;
10093    motorola)
10094      need_lib_prefix=no
10095      need_version=no
10096      shlibpath_overrides_runpath=no
10097      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10098      ;;
10099  esac
10100  ;;
10101
10102sysv4*MP*)
10103  if test -d /usr/nec ;then
10104    version_type=linux
10105    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10106    soname_spec='$libname${shared_ext}.$major'
10107    shlibpath_var=LD_LIBRARY_PATH
10108  fi
10109  ;;
10110
10111sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10112  version_type=freebsd-elf
10113  need_lib_prefix=no
10114  need_version=no
10115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10116  soname_spec='${libname}${release}${shared_ext}$major'
10117  shlibpath_var=LD_LIBRARY_PATH
10118  hardcode_into_libs=yes
10119  if test "$with_gnu_ld" = yes; then
10120    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10121    shlibpath_overrides_runpath=no
10122  else
10123    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10124    shlibpath_overrides_runpath=yes
10125    case $host_os in
10126      sco3.2v5*)
10127        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10128        ;;
10129    esac
10130  fi
10131  sys_lib_dlsearch_path_spec='/usr/lib'
10132  ;;
10133
10134uts4*)
10135  version_type=linux
10136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137  soname_spec='${libname}${release}${shared_ext}$major'
10138  shlibpath_var=LD_LIBRARY_PATH
10139  ;;
10140
10141*)
10142  dynamic_linker=no
10143  ;;
10144esac
10145echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10146echo "${ECHO_T}$dynamic_linker" >&6
10147test "$dynamic_linker" = no && can_build_shared=no
10148
10149variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10150if test "$GCC" = yes; then
10151  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10152fi
10153
10154echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10155echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10156hardcode_action=
10157if test -n "$hardcode_libdir_flag_spec" || \
10158   test -n "$runpath_var" || \
10159   test "X$hardcode_automatic" = "Xyes" ; then
10160
10161  # We can hardcode non-existant directories.
10162  if test "$hardcode_direct" != no &&
10163     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10164     # have to relink, otherwise we might link with an installed library
10165     # when we should be linking with a yet-to-be-installed one
10166     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10167     test "$hardcode_minus_L" != no; then
10168    # Linking always hardcodes the temporary library directory.
10169    hardcode_action=relink
10170  else
10171    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10172    hardcode_action=immediate
10173  fi
10174else
10175  # We cannot hardcode anything, or else we can only hardcode existing
10176  # directories.
10177  hardcode_action=unsupported
10178fi
10179echo "$as_me:$LINENO: result: $hardcode_action" >&5
10180echo "${ECHO_T}$hardcode_action" >&6
10181
10182if test "$hardcode_action" = relink; then
10183  # Fast installation is not supported
10184  enable_fast_install=no
10185elif test "$shlibpath_overrides_runpath" = yes ||
10186     test "$enable_shared" = no; then
10187  # Fast installation is not necessary
10188  enable_fast_install=needless
10189fi
10190
10191striplib=
10192old_striplib=
10193echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10194echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10195if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10196  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10197  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10198  echo "$as_me:$LINENO: result: yes" >&5
10199echo "${ECHO_T}yes" >&6
10200else
10201# FIXME - insert some real tests, host_os isn't really good enough
10202  case $host_os in
10203   darwin*)
10204       if test -n "$STRIP" ; then
10205         striplib="$STRIP -x"
10206         echo "$as_me:$LINENO: result: yes" >&5
10207echo "${ECHO_T}yes" >&6
10208       else
10209  echo "$as_me:$LINENO: result: no" >&5
10210echo "${ECHO_T}no" >&6
10211fi
10212       ;;
10213   *)
10214  echo "$as_me:$LINENO: result: no" >&5
10215echo "${ECHO_T}no" >&6
10216    ;;
10217  esac
10218fi
10219
10220if test "x$enable_dlopen" != xyes; then
10221  enable_dlopen=unknown
10222  enable_dlopen_self=unknown
10223  enable_dlopen_self_static=unknown
10224else
10225  lt_cv_dlopen=no
10226  lt_cv_dlopen_libs=
10227
10228  case $host_os in
10229  beos*)
10230    lt_cv_dlopen="load_add_on"
10231    lt_cv_dlopen_libs=
10232    lt_cv_dlopen_self=yes
10233    ;;
10234
10235  mingw* | pw32*)
10236    lt_cv_dlopen="LoadLibrary"
10237    lt_cv_dlopen_libs=
10238   ;;
10239
10240  cygwin*)
10241    lt_cv_dlopen="dlopen"
10242    lt_cv_dlopen_libs=
10243   ;;
10244
10245  darwin*)
10246  # if libdl is installed we need to link against it
10247    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10248echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10249if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10250  echo $ECHO_N "(cached) $ECHO_C" >&6
10251else
10252  ac_check_lib_save_LIBS=$LIBS
10253LIBS="-ldl  $LIBS"
10254cat >conftest.$ac_ext <<_ACEOF
10255/* confdefs.h.  */
10256_ACEOF
10257cat confdefs.h >>conftest.$ac_ext
10258cat >>conftest.$ac_ext <<_ACEOF
10259/* end confdefs.h.  */
10260
10261/* Override any gcc2 internal prototype to avoid an error.  */
10262#ifdef __cplusplus
10263extern "C"
10264#endif
10265/* We use char because int might match the return type of a gcc2
10266   builtin and then its argument prototype would still apply.  */
10267char dlopen ();
10268int
10269main ()
10270{
10271dlopen ();
10272  ;
10273  return 0;
10274}
10275_ACEOF
10276rm -f conftest.$ac_objext conftest$ac_exeext
10277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10278  (eval $ac_link) 2>conftest.er1
10279  ac_status=$?
10280  grep -v '^ *+' conftest.er1 >conftest.err
10281  rm -f conftest.er1
10282  cat conftest.err >&5
10283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284  (exit $ac_status); } &&
10285         { ac_try='test -z "$ac_c_werror_flag"
10286                         || test ! -s conftest.err'
10287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288  (eval $ac_try) 2>&5
10289  ac_status=$?
10290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291  (exit $ac_status); }; } &&
10292         { ac_try='test -s conftest$ac_exeext'
10293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294  (eval $ac_try) 2>&5
10295  ac_status=$?
10296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297  (exit $ac_status); }; }; then
10298  ac_cv_lib_dl_dlopen=yes
10299else
10300  echo "$as_me: failed program was:" >&5
10301sed 's/^/| /' conftest.$ac_ext >&5
10302
10303ac_cv_lib_dl_dlopen=no
10304fi
10305rm -f conftest.err conftest.$ac_objext \
10306      conftest$ac_exeext conftest.$ac_ext
10307LIBS=$ac_check_lib_save_LIBS
10308fi
10309echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10310echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10311if test $ac_cv_lib_dl_dlopen = yes; then
10312  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10313else
10314
10315    lt_cv_dlopen="dyld"
10316    lt_cv_dlopen_libs=
10317    lt_cv_dlopen_self=yes
10318
10319fi
10320
10321   ;;
10322
10323  *)
10324    echo "$as_me:$LINENO: checking for shl_load" >&5
10325echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10326if test "${ac_cv_func_shl_load+set}" = set; then
10327  echo $ECHO_N "(cached) $ECHO_C" >&6
10328else
10329  cat >conftest.$ac_ext <<_ACEOF
10330/* confdefs.h.  */
10331_ACEOF
10332cat confdefs.h >>conftest.$ac_ext
10333cat >>conftest.$ac_ext <<_ACEOF
10334/* end confdefs.h.  */
10335/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10336   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10337#define shl_load innocuous_shl_load
10338
10339/* System header to define __stub macros and hopefully few prototypes,
10340    which can conflict with char shl_load (); below.
10341    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10342    <limits.h> exists even on freestanding compilers.  */
10343
10344#ifdef __STDC__
10345# include <limits.h>
10346#else
10347# include <assert.h>
10348#endif
10349
10350#undef shl_load
10351
10352/* Override any gcc2 internal prototype to avoid an error.  */
10353#ifdef __cplusplus
10354extern "C"
10355{
10356#endif
10357/* We use char because int might match the return type of a gcc2
10358   builtin and then its argument prototype would still apply.  */
10359char shl_load ();
10360/* The GNU C library defines this for functions which it implements
10361    to always fail with ENOSYS.  Some functions are actually named
10362    something starting with __ and the normal name is an alias.  */
10363#if defined (__stub_shl_load) || defined (__stub___shl_load)
10364choke me
10365#else
10366char (*f) () = shl_load;
10367#endif
10368#ifdef __cplusplus
10369}
10370#endif
10371
10372int
10373main ()
10374{
10375return f != shl_load;
10376  ;
10377  return 0;
10378}
10379_ACEOF
10380rm -f conftest.$ac_objext conftest$ac_exeext
10381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382  (eval $ac_link) 2>conftest.er1
10383  ac_status=$?
10384  grep -v '^ *+' conftest.er1 >conftest.err
10385  rm -f conftest.er1
10386  cat conftest.err >&5
10387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388  (exit $ac_status); } &&
10389         { ac_try='test -z "$ac_c_werror_flag"
10390                         || test ! -s conftest.err'
10391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392  (eval $ac_try) 2>&5
10393  ac_status=$?
10394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395  (exit $ac_status); }; } &&
10396         { ac_try='test -s conftest$ac_exeext'
10397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398  (eval $ac_try) 2>&5
10399  ac_status=$?
10400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401  (exit $ac_status); }; }; then
10402  ac_cv_func_shl_load=yes
10403else
10404  echo "$as_me: failed program was:" >&5
10405sed 's/^/| /' conftest.$ac_ext >&5
10406
10407ac_cv_func_shl_load=no
10408fi
10409rm -f conftest.err conftest.$ac_objext \
10410      conftest$ac_exeext conftest.$ac_ext
10411fi
10412echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10413echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10414if test $ac_cv_func_shl_load = yes; then
10415  lt_cv_dlopen="shl_load"
10416else
10417  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10418echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10419if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10420  echo $ECHO_N "(cached) $ECHO_C" >&6
10421else
10422  ac_check_lib_save_LIBS=$LIBS
10423LIBS="-ldld  $LIBS"
10424cat >conftest.$ac_ext <<_ACEOF
10425/* confdefs.h.  */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h.  */
10430
10431/* Override any gcc2 internal prototype to avoid an error.  */
10432#ifdef __cplusplus
10433extern "C"
10434#endif
10435/* We use char because int might match the return type of a gcc2
10436   builtin and then its argument prototype would still apply.  */
10437char shl_load ();
10438int
10439main ()
10440{
10441shl_load ();
10442  ;
10443  return 0;
10444}
10445_ACEOF
10446rm -f conftest.$ac_objext conftest$ac_exeext
10447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10448  (eval $ac_link) 2>conftest.er1
10449  ac_status=$?
10450  grep -v '^ *+' conftest.er1 >conftest.err
10451  rm -f conftest.er1
10452  cat conftest.err >&5
10453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454  (exit $ac_status); } &&
10455         { ac_try='test -z "$ac_c_werror_flag"
10456                         || test ! -s conftest.err'
10457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10458  (eval $ac_try) 2>&5
10459  ac_status=$?
10460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461  (exit $ac_status); }; } &&
10462         { ac_try='test -s conftest$ac_exeext'
10463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10464  (eval $ac_try) 2>&5
10465  ac_status=$?
10466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10467  (exit $ac_status); }; }; then
10468  ac_cv_lib_dld_shl_load=yes
10469else
10470  echo "$as_me: failed program was:" >&5
10471sed 's/^/| /' conftest.$ac_ext >&5
10472
10473ac_cv_lib_dld_shl_load=no
10474fi
10475rm -f conftest.err conftest.$ac_objext \
10476      conftest$ac_exeext conftest.$ac_ext
10477LIBS=$ac_check_lib_save_LIBS
10478fi
10479echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10480echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10481if test $ac_cv_lib_dld_shl_load = yes; then
10482  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10483else
10484  echo "$as_me:$LINENO: checking for dlopen" >&5
10485echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10486if test "${ac_cv_func_dlopen+set}" = set; then
10487  echo $ECHO_N "(cached) $ECHO_C" >&6
10488else
10489  cat >conftest.$ac_ext <<_ACEOF
10490/* confdefs.h.  */
10491_ACEOF
10492cat confdefs.h >>conftest.$ac_ext
10493cat >>conftest.$ac_ext <<_ACEOF
10494/* end confdefs.h.  */
10495/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10496   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10497#define dlopen innocuous_dlopen
10498
10499/* System header to define __stub macros and hopefully few prototypes,
10500    which can conflict with char dlopen (); below.
10501    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10502    <limits.h> exists even on freestanding compilers.  */
10503
10504#ifdef __STDC__
10505# include <limits.h>
10506#else
10507# include <assert.h>
10508#endif
10509
10510#undef dlopen
10511
10512/* Override any gcc2 internal prototype to avoid an error.  */
10513#ifdef __cplusplus
10514extern "C"
10515{
10516#endif
10517/* We use char because int might match the return type of a gcc2
10518   builtin and then its argument prototype would still apply.  */
10519char dlopen ();
10520/* The GNU C library defines this for functions which it implements
10521    to always fail with ENOSYS.  Some functions are actually named
10522    something starting with __ and the normal name is an alias.  */
10523#if defined (__stub_dlopen) || defined (__stub___dlopen)
10524choke me
10525#else
10526char (*f) () = dlopen;
10527#endif
10528#ifdef __cplusplus
10529}
10530#endif
10531
10532int
10533main ()
10534{
10535return f != dlopen;
10536  ;
10537  return 0;
10538}
10539_ACEOF
10540rm -f conftest.$ac_objext conftest$ac_exeext
10541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542  (eval $ac_link) 2>conftest.er1
10543  ac_status=$?
10544  grep -v '^ *+' conftest.er1 >conftest.err
10545  rm -f conftest.er1
10546  cat conftest.err >&5
10547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548  (exit $ac_status); } &&
10549         { ac_try='test -z "$ac_c_werror_flag"
10550                         || test ! -s conftest.err'
10551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552  (eval $ac_try) 2>&5
10553  ac_status=$?
10554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555  (exit $ac_status); }; } &&
10556         { ac_try='test -s conftest$ac_exeext'
10557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558  (eval $ac_try) 2>&5
10559  ac_status=$?
10560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561  (exit $ac_status); }; }; then
10562  ac_cv_func_dlopen=yes
10563else
10564  echo "$as_me: failed program was:" >&5
10565sed 's/^/| /' conftest.$ac_ext >&5
10566
10567ac_cv_func_dlopen=no
10568fi
10569rm -f conftest.err conftest.$ac_objext \
10570      conftest$ac_exeext conftest.$ac_ext
10571fi
10572echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10573echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10574if test $ac_cv_func_dlopen = yes; then
10575  lt_cv_dlopen="dlopen"
10576else
10577  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10578echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10579if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10580  echo $ECHO_N "(cached) $ECHO_C" >&6
10581else
10582  ac_check_lib_save_LIBS=$LIBS
10583LIBS="-ldl  $LIBS"
10584cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h.  */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h.  */
10590
10591/* Override any gcc2 internal prototype to avoid an error.  */
10592#ifdef __cplusplus
10593extern "C"
10594#endif
10595/* We use char because int might match the return type of a gcc2
10596   builtin and then its argument prototype would still apply.  */
10597char dlopen ();
10598int
10599main ()
10600{
10601dlopen ();
10602  ;
10603  return 0;
10604}
10605_ACEOF
10606rm -f conftest.$ac_objext conftest$ac_exeext
10607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608  (eval $ac_link) 2>conftest.er1
10609  ac_status=$?
10610  grep -v '^ *+' conftest.er1 >conftest.err
10611  rm -f conftest.er1
10612  cat conftest.err >&5
10613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614  (exit $ac_status); } &&
10615         { ac_try='test -z "$ac_c_werror_flag"
10616                         || test ! -s conftest.err'
10617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618  (eval $ac_try) 2>&5
10619  ac_status=$?
10620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621  (exit $ac_status); }; } &&
10622         { ac_try='test -s conftest$ac_exeext'
10623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624  (eval $ac_try) 2>&5
10625  ac_status=$?
10626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627  (exit $ac_status); }; }; then
10628  ac_cv_lib_dl_dlopen=yes
10629else
10630  echo "$as_me: failed program was:" >&5
10631sed 's/^/| /' conftest.$ac_ext >&5
10632
10633ac_cv_lib_dl_dlopen=no
10634fi
10635rm -f conftest.err conftest.$ac_objext \
10636      conftest$ac_exeext conftest.$ac_ext
10637LIBS=$ac_check_lib_save_LIBS
10638fi
10639echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10640echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10641if test $ac_cv_lib_dl_dlopen = yes; then
10642  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10643else
10644  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10645echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10646if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10647  echo $ECHO_N "(cached) $ECHO_C" >&6
10648else
10649  ac_check_lib_save_LIBS=$LIBS
10650LIBS="-lsvld  $LIBS"
10651cat >conftest.$ac_ext <<_ACEOF
10652/* confdefs.h.  */
10653_ACEOF
10654cat confdefs.h >>conftest.$ac_ext
10655cat >>conftest.$ac_ext <<_ACEOF
10656/* end confdefs.h.  */
10657
10658/* Override any gcc2 internal prototype to avoid an error.  */
10659#ifdef __cplusplus
10660extern "C"
10661#endif
10662/* We use char because int might match the return type of a gcc2
10663   builtin and then its argument prototype would still apply.  */
10664char dlopen ();
10665int
10666main ()
10667{
10668dlopen ();
10669  ;
10670  return 0;
10671}
10672_ACEOF
10673rm -f conftest.$ac_objext conftest$ac_exeext
10674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10675  (eval $ac_link) 2>conftest.er1
10676  ac_status=$?
10677  grep -v '^ *+' conftest.er1 >conftest.err
10678  rm -f conftest.er1
10679  cat conftest.err >&5
10680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681  (exit $ac_status); } &&
10682         { ac_try='test -z "$ac_c_werror_flag"
10683                         || test ! -s conftest.err'
10684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685  (eval $ac_try) 2>&5
10686  ac_status=$?
10687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688  (exit $ac_status); }; } &&
10689         { ac_try='test -s conftest$ac_exeext'
10690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691  (eval $ac_try) 2>&5
10692  ac_status=$?
10693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694  (exit $ac_status); }; }; then
10695  ac_cv_lib_svld_dlopen=yes
10696else
10697  echo "$as_me: failed program was:" >&5
10698sed 's/^/| /' conftest.$ac_ext >&5
10699
10700ac_cv_lib_svld_dlopen=no
10701fi
10702rm -f conftest.err conftest.$ac_objext \
10703      conftest$ac_exeext conftest.$ac_ext
10704LIBS=$ac_check_lib_save_LIBS
10705fi
10706echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10707echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10708if test $ac_cv_lib_svld_dlopen = yes; then
10709  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10710else
10711  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10712echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10713if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10714  echo $ECHO_N "(cached) $ECHO_C" >&6
10715else
10716  ac_check_lib_save_LIBS=$LIBS
10717LIBS="-ldld  $LIBS"
10718cat >conftest.$ac_ext <<_ACEOF
10719/* confdefs.h.  */
10720_ACEOF
10721cat confdefs.h >>conftest.$ac_ext
10722cat >>conftest.$ac_ext <<_ACEOF
10723/* end confdefs.h.  */
10724
10725/* Override any gcc2 internal prototype to avoid an error.  */
10726#ifdef __cplusplus
10727extern "C"
10728#endif
10729/* We use char because int might match the return type of a gcc2
10730   builtin and then its argument prototype would still apply.  */
10731char dld_link ();
10732int
10733main ()
10734{
10735dld_link ();
10736  ;
10737  return 0;
10738}
10739_ACEOF
10740rm -f conftest.$ac_objext conftest$ac_exeext
10741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10742  (eval $ac_link) 2>conftest.er1
10743  ac_status=$?
10744  grep -v '^ *+' conftest.er1 >conftest.err
10745  rm -f conftest.er1
10746  cat conftest.err >&5
10747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748  (exit $ac_status); } &&
10749         { ac_try='test -z "$ac_c_werror_flag"
10750                         || test ! -s conftest.err'
10751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752  (eval $ac_try)