source: trunk/configure @ 1695

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

check for AMD and CHOLMOD and GLPK's AMD in configure; compile ClpCholeskyUfl? only if AMD, CHOLMOD, or GLPK available

  • Property svn:executable set to *
File size: 765.4 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp trunk.
5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Eclipse Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='trunk'
434PACKAGE_STRING='Clp trunk'
435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
481ac_subdirs_all="$ac_subdirs_all Data/Sample"
482ac_subdirs_all="$ac_subdirs_all Data/Netlib"
483ac_subdirs_all="$ac_subdirs_all CoinUtils"
484ac_subdirs_all="$ac_subdirs_all Osi"
485ac_subdirs_all="$ac_subdirs_all Clp"
486ac_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 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 ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS subdirs coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
487ac_subst_files=''
488
489# Initialize some variables set by options.
490ac_init_help=
491ac_init_version=false
492# The variables have the same names as the options, with
493# dashes changed to underlines.
494cache_file=/dev/null
495exec_prefix=NONE
496no_create=
497no_recursion=
498prefix=NONE
499program_prefix=NONE
500program_suffix=NONE
501program_transform_name=s,x,x,
502silent=
503site=
504srcdir=
505verbose=
506x_includes=NONE
507x_libraries=NONE
508
509# Installation directory options.
510# These are left unexpanded so users can "make install exec_prefix=/foo"
511# and all the variables that are supposed to be based on exec_prefix
512# by default will actually change.
513# Use braces instead of parens because sh, perl, etc. also accept them.
514bindir='${exec_prefix}/bin'
515sbindir='${exec_prefix}/sbin'
516libexecdir='${exec_prefix}/libexec'
517datadir='${prefix}/share'
518sysconfdir='${prefix}/etc'
519sharedstatedir='${prefix}/com'
520localstatedir='${prefix}/var'
521libdir='${exec_prefix}/lib'
522includedir='${prefix}/include'
523oldincludedir='/usr/include'
524infodir='${prefix}/info'
525mandir='${prefix}/man'
526
527ac_prev=
528for ac_option
529do
530  # If the previous option needs an argument, assign it.
531  if test -n "$ac_prev"; then
532    eval "$ac_prev=\$ac_option"
533    ac_prev=
534    continue
535  fi
536
537  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
538
539  # Accept the important Cygnus configure options, so we can diagnose typos.
540
541  case $ac_option in
542
543  -bindir | --bindir | --bindi | --bind | --bin | --bi)
544    ac_prev=bindir ;;
545  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
546    bindir=$ac_optarg ;;
547
548  -build | --build | --buil | --bui | --bu)
549    ac_prev=build_alias ;;
550  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
551    build_alias=$ac_optarg ;;
552
553  -cache-file | --cache-file | --cache-fil | --cache-fi \
554  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
555    ac_prev=cache_file ;;
556  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
557  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
558    cache_file=$ac_optarg ;;
559
560  --config-cache | -C)
561    cache_file=config.cache ;;
562
563  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
564    ac_prev=datadir ;;
565  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
566  | --da=*)
567    datadir=$ac_optarg ;;
568
569  -disable-* | --disable-*)
570    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
571    # Reject names that are not valid shell variable names.
572    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574   { (exit 1); exit 1; }; }
575    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576    eval "enable_$ac_feature=no" ;;
577
578  -enable-* | --enable-*)
579    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
580    # Reject names that are not valid shell variable names.
581    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
582      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
583   { (exit 1); exit 1; }; }
584    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
585    case $ac_option in
586      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
587      *) ac_optarg=yes ;;
588    esac
589    eval "enable_$ac_feature='$ac_optarg'" ;;
590
591  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
592  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
593  | --exec | --exe | --ex)
594    ac_prev=exec_prefix ;;
595  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
596  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
597  | --exec=* | --exe=* | --ex=*)
598    exec_prefix=$ac_optarg ;;
599
600  -gas | --gas | --ga | --g)
601    # Obsolete; use --with-gas.
602    with_gas=yes ;;
603
604  -help | --help | --hel | --he | -h)
605    ac_init_help=long ;;
606  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
607    ac_init_help=recursive ;;
608  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
609    ac_init_help=short ;;
610
611  -host | --host | --hos | --ho)
612    ac_prev=host_alias ;;
613  -host=* | --host=* | --hos=* | --ho=*)
614    host_alias=$ac_optarg ;;
615
616  -includedir | --includedir | --includedi | --included | --include \
617  | --includ | --inclu | --incl | --inc)
618    ac_prev=includedir ;;
619  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
620  | --includ=* | --inclu=* | --incl=* | --inc=*)
621    includedir=$ac_optarg ;;
622
623  -infodir | --infodir | --infodi | --infod | --info | --inf)
624    ac_prev=infodir ;;
625  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
626    infodir=$ac_optarg ;;
627
628  -libdir | --libdir | --libdi | --libd)
629    ac_prev=libdir ;;
630  -libdir=* | --libdir=* | --libdi=* | --libd=*)
631    libdir=$ac_optarg ;;
632
633  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
634  | --libexe | --libex | --libe)
635    ac_prev=libexecdir ;;
636  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
637  | --libexe=* | --libex=* | --libe=*)
638    libexecdir=$ac_optarg ;;
639
640  -localstatedir | --localstatedir | --localstatedi | --localstated \
641  | --localstate | --localstat | --localsta | --localst \
642  | --locals | --local | --loca | --loc | --lo)
643    ac_prev=localstatedir ;;
644  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
645  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
646  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
647    localstatedir=$ac_optarg ;;
648
649  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
650    ac_prev=mandir ;;
651  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
652    mandir=$ac_optarg ;;
653
654  -nfp | --nfp | --nf)
655    # Obsolete; use --without-fp.
656    with_fp=no ;;
657
658  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
659  | --no-cr | --no-c | -n)
660    no_create=yes ;;
661
662  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
663  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
664    no_recursion=yes ;;
665
666  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
667  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
668  | --oldin | --oldi | --old | --ol | --o)
669    ac_prev=oldincludedir ;;
670  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
671  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
672  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
673    oldincludedir=$ac_optarg ;;
674
675  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
676    ac_prev=prefix ;;
677  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
678    prefix=$ac_optarg ;;
679
680  -program-prefix | --program-prefix | --program-prefi | --program-pref \
681  | --program-pre | --program-pr | --program-p)
682    ac_prev=program_prefix ;;
683  -program-prefix=* | --program-prefix=* | --program-prefi=* \
684  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
685    program_prefix=$ac_optarg ;;
686
687  -program-suffix | --program-suffix | --program-suffi | --program-suff \
688  | --program-suf | --program-su | --program-s)
689    ac_prev=program_suffix ;;
690  -program-suffix=* | --program-suffix=* | --program-suffi=* \
691  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
692    program_suffix=$ac_optarg ;;
693
694  -program-transform-name | --program-transform-name \
695  | --program-transform-nam | --program-transform-na \
696  | --program-transform-n | --program-transform- \
697  | --program-transform | --program-transfor \
698  | --program-transfo | --program-transf \
699  | --program-trans | --program-tran \
700  | --progr-tra | --program-tr | --program-t)
701    ac_prev=program_transform_name ;;
702  -program-transform-name=* | --program-transform-name=* \
703  | --program-transform-nam=* | --program-transform-na=* \
704  | --program-transform-n=* | --program-transform-=* \
705  | --program-transform=* | --program-transfor=* \
706  | --program-transfo=* | --program-transf=* \
707  | --program-trans=* | --program-tran=* \
708  | --progr-tra=* | --program-tr=* | --program-t=*)
709    program_transform_name=$ac_optarg ;;
710
711  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
712  | -silent | --silent | --silen | --sile | --sil)
713    silent=yes ;;
714
715  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
716    ac_prev=sbindir ;;
717  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
718  | --sbi=* | --sb=*)
719    sbindir=$ac_optarg ;;
720
721  -sharedstatedir | --sharedstatedir | --sharedstatedi \
722  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
723  | --sharedst | --shareds | --shared | --share | --shar \
724  | --sha | --sh)
725    ac_prev=sharedstatedir ;;
726  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
727  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
728  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
729  | --sha=* | --sh=*)
730    sharedstatedir=$ac_optarg ;;
731
732  -site | --site | --sit)
733    ac_prev=site ;;
734  -site=* | --site=* | --sit=*)
735    site=$ac_optarg ;;
736
737  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
738    ac_prev=srcdir ;;
739  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
740    srcdir=$ac_optarg ;;
741
742  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
743  | --syscon | --sysco | --sysc | --sys | --sy)
744    ac_prev=sysconfdir ;;
745  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
746  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
747    sysconfdir=$ac_optarg ;;
748
749  -target | --target | --targe | --targ | --tar | --ta | --t)
750    ac_prev=target_alias ;;
751  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
752    target_alias=$ac_optarg ;;
753
754  -v | -verbose | --verbose | --verbos | --verbo | --verb)
755    verbose=yes ;;
756
757  -version | --version | --versio | --versi | --vers | -V)
758    ac_init_version=: ;;
759
760  -with-* | --with-*)
761    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
762    # Reject names that are not valid shell variable names.
763    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
764      { echo "$as_me: error: invalid package name: $ac_package" >&2
765   { (exit 1); exit 1; }; }
766    ac_package=`echo $ac_package| sed 's/-/_/g'`
767    case $ac_option in
768      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
769      *) ac_optarg=yes ;;
770    esac
771    eval "with_$ac_package='$ac_optarg'" ;;
772
773  -without-* | --without-*)
774    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
775    # Reject names that are not valid shell variable names.
776    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
777      { echo "$as_me: error: invalid package name: $ac_package" >&2
778   { (exit 1); exit 1; }; }
779    ac_package=`echo $ac_package | sed 's/-/_/g'`
780    eval "with_$ac_package=no" ;;
781
782  --x)
783    # Obsolete; use --with-x.
784    with_x=yes ;;
785
786  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
787  | --x-incl | --x-inc | --x-in | --x-i)
788    ac_prev=x_includes ;;
789  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
790  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
791    x_includes=$ac_optarg ;;
792
793  -x-libraries | --x-libraries | --x-librarie | --x-librari \
794  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
795    ac_prev=x_libraries ;;
796  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
797  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
798    x_libraries=$ac_optarg ;;
799
800  -*) { echo "$as_me: error: unrecognized option: $ac_option
801Try \`$0 --help' for more information." >&2
802   { (exit 1); exit 1; }; }
803    ;;
804
805  *=*)
806    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
807    # Reject names that are not valid shell variable names.
808    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
809      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
810   { (exit 1); exit 1; }; }
811    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
812    eval "$ac_envvar='$ac_optarg'"
813    export $ac_envvar ;;
814
815  *)
816    # FIXME: should be removed in autoconf 3.0.
817    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
818    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
819      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
820    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
821    ;;
822
823  esac
824done
825
826if test -n "$ac_prev"; then
827  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
828  { echo "$as_me: error: missing argument to $ac_option" >&2
829   { (exit 1); exit 1; }; }
830fi
831
832# Be sure to have absolute paths.
833for ac_var in exec_prefix prefix
834do
835  eval ac_val=$`echo $ac_var`
836  case $ac_val in
837    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
838    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
839   { (exit 1); exit 1; }; };;
840  esac
841done
842
843# Be sure to have absolute paths.
844for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
845              localstatedir libdir includedir oldincludedir infodir mandir
846do
847  eval ac_val=$`echo $ac_var`
848  case $ac_val in
849    [\\/$]* | ?:[\\/]* ) ;;
850    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
851   { (exit 1); exit 1; }; };;
852  esac
853done
854
855# There might be people who depend on the old broken behavior: `$host'
856# used to hold the argument of --host etc.
857# FIXME: To remove some day.
858build=$build_alias
859host=$host_alias
860target=$target_alias
861
862# FIXME: To remove some day.
863if test "x$host_alias" != x; then
864  if test "x$build_alias" = x; then
865    cross_compiling=maybe
866    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
867    If a cross compiler is detected then cross compile mode will be used." >&2
868  elif test "x$build_alias" != "x$host_alias"; then
869    cross_compiling=yes
870  fi
871fi
872
873ac_tool_prefix=
874test -n "$host_alias" && ac_tool_prefix=$host_alias-
875
876test "$silent" = yes && exec 6>/dev/null
877
878
879# Find the source files, if location was not specified.
880if test -z "$srcdir"; then
881  ac_srcdir_defaulted=yes
882  # Try the directory containing this script, then its parent.
883  ac_confdir=`(dirname "$0") 2>/dev/null ||
884$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
885         X"$0" : 'X\(//\)[^/]' \| \
886         X"$0" : 'X\(//\)$' \| \
887         X"$0" : 'X\(/\)' \| \
888         .     : '\(.\)' 2>/dev/null ||
889echo X"$0" |
890    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
891          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
892          /^X\(\/\/\)$/{ s//\1/; q; }
893          /^X\(\/\).*/{ s//\1/; q; }
894          s/.*/./; q'`
895  srcdir=$ac_confdir
896  if test ! -r $srcdir/$ac_unique_file; then
897    srcdir=..
898  fi
899else
900  ac_srcdir_defaulted=no
901fi
902if test ! -r $srcdir/$ac_unique_file; then
903  if test "$ac_srcdir_defaulted" = yes; then
904    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
905   { (exit 1); exit 1; }; }
906  else
907    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
908   { (exit 1); exit 1; }; }
909  fi
910fi
911(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
912  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
913   { (exit 1); exit 1; }; }
914srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
915ac_env_build_alias_set=${build_alias+set}
916ac_env_build_alias_value=$build_alias
917ac_cv_env_build_alias_set=${build_alias+set}
918ac_cv_env_build_alias_value=$build_alias
919ac_env_host_alias_set=${host_alias+set}
920ac_env_host_alias_value=$host_alias
921ac_cv_env_host_alias_set=${host_alias+set}
922ac_cv_env_host_alias_value=$host_alias
923ac_env_target_alias_set=${target_alias+set}
924ac_env_target_alias_value=$target_alias
925ac_cv_env_target_alias_set=${target_alias+set}
926ac_cv_env_target_alias_value=$target_alias
927ac_env_CDEFS_set=${CDEFS+set}
928ac_env_CDEFS_value=$CDEFS
929ac_cv_env_CDEFS_set=${CDEFS+set}
930ac_cv_env_CDEFS_value=$CDEFS
931ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
932ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
933ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
934ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
935ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
936ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
937ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
938ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
939ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
940ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
941ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
942ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
943ac_env_CC_set=${CC+set}
944ac_env_CC_value=$CC
945ac_cv_env_CC_set=${CC+set}
946ac_cv_env_CC_value=$CC
947ac_env_CFLAGS_set=${CFLAGS+set}
948ac_env_CFLAGS_value=$CFLAGS
949ac_cv_env_CFLAGS_set=${CFLAGS+set}
950ac_cv_env_CFLAGS_value=$CFLAGS
951ac_env_LDFLAGS_set=${LDFLAGS+set}
952ac_env_LDFLAGS_value=$LDFLAGS
953ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
954ac_cv_env_LDFLAGS_value=$LDFLAGS
955ac_env_CPPFLAGS_set=${CPPFLAGS+set}
956ac_env_CPPFLAGS_value=$CPPFLAGS
957ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
958ac_cv_env_CPPFLAGS_value=$CPPFLAGS
959ac_env_MPICC_set=${MPICC+set}
960ac_env_MPICC_value=$MPICC
961ac_cv_env_MPICC_set=${MPICC+set}
962ac_cv_env_MPICC_value=$MPICC
963ac_env_CXXDEFS_set=${CXXDEFS+set}
964ac_env_CXXDEFS_value=$CXXDEFS
965ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
966ac_cv_env_CXXDEFS_value=$CXXDEFS
967ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
968ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
969ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
970ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
971ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
972ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
973ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
974ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
975ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
976ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
977ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
978ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
979ac_env_CXX_set=${CXX+set}
980ac_env_CXX_value=$CXX
981ac_cv_env_CXX_set=${CXX+set}
982ac_cv_env_CXX_value=$CXX
983ac_env_CXXFLAGS_set=${CXXFLAGS+set}
984ac_env_CXXFLAGS_value=$CXXFLAGS
985ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
986ac_cv_env_CXXFLAGS_value=$CXXFLAGS
987ac_env_MPICXX_set=${MPICXX+set}
988ac_env_MPICXX_value=$MPICXX
989ac_cv_env_MPICXX_set=${MPICXX+set}
990ac_cv_env_MPICXX_value=$MPICXX
991ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
992ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
993ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
994ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
995ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
996ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
997ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
998ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
999ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1000ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1001ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1002ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1003ac_env_F77_set=${F77+set}
1004ac_env_F77_value=$F77
1005ac_cv_env_F77_set=${F77+set}
1006ac_cv_env_F77_value=$F77
1007ac_env_FFLAGS_set=${FFLAGS+set}
1008ac_env_FFLAGS_value=$FFLAGS
1009ac_cv_env_FFLAGS_set=${FFLAGS+set}
1010ac_cv_env_FFLAGS_value=$FFLAGS
1011ac_env_MPIF77_set=${MPIF77+set}
1012ac_env_MPIF77_value=$MPIF77
1013ac_cv_env_MPIF77_set=${MPIF77+set}
1014ac_cv_env_MPIF77_value=$MPIF77
1015ac_env_CPP_set=${CPP+set}
1016ac_env_CPP_value=$CPP
1017ac_cv_env_CPP_set=${CPP+set}
1018ac_cv_env_CPP_value=$CPP
1019ac_env_CXXCPP_set=${CXXCPP+set}
1020ac_env_CXXCPP_value=$CXXCPP
1021ac_cv_env_CXXCPP_set=${CXXCPP+set}
1022ac_cv_env_CXXCPP_value=$CXXCPP
1023ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1024ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1025ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1026ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1027
1028#
1029# Report the --help message.
1030#
1031if test "$ac_init_help" = "long"; then
1032  # Omit some internal or obsolete options to make the list less imposing.
1033  # This message is too long to be a string in the A/UX 3.1 sh.
1034  cat <<_ACEOF
1035\`configure' configures Clp trunk to adapt to many kinds of systems.
1036
1037Usage: $0 [OPTION]... [VAR=VALUE]...
1038
1039To assign environment variables (e.g., CC, CFLAGS...), specify them as
1040VAR=VALUE.  See below for descriptions of some of the useful variables.
1041
1042Defaults for the options are specified in brackets.
1043
1044Configuration:
1045  -h, --help              display this help and exit
1046      --help=short        display options specific to this package
1047      --help=recursive    display the short help of all the included packages
1048  -V, --version           display version information and exit
1049  -q, --quiet, --silent   do not print \`checking...' messages
1050      --cache-file=FILE   cache test results in FILE [disabled]
1051  -C, --config-cache      alias for \`--cache-file=config.cache'
1052  -n, --no-create         do not create output files
1053      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1054
1055_ACEOF
1056
1057  cat <<_ACEOF
1058Installation directories:
1059  --prefix=PREFIX         install architecture-independent files in PREFIX
1060                          [$ac_default_prefix]
1061  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1062                          [PREFIX]
1063
1064By default, \`make install' will install all the files in
1065\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1066an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1067for instance \`--prefix=\$HOME'.
1068
1069For better control, use the options below.
1070
1071Fine tuning of the installation directories:
1072  --bindir=DIR           user executables [EPREFIX/bin]
1073  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1074  --libexecdir=DIR       program executables [EPREFIX/libexec]
1075  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1076  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1077  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1078  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1079  --libdir=DIR           object code libraries [EPREFIX/lib]
1080  --includedir=DIR       C header files [PREFIX/include]
1081  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1082  --infodir=DIR          info documentation [PREFIX/info]
1083  --mandir=DIR           man documentation [PREFIX/man]
1084_ACEOF
1085
1086  cat <<\_ACEOF
1087
1088Program names:
1089  --program-prefix=PREFIX            prepend PREFIX to installed program names
1090  --program-suffix=SUFFIX            append SUFFIX to installed program names
1091  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1092
1093System types:
1094  --build=BUILD     configure for building on BUILD [guessed]
1095  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1096_ACEOF
1097fi
1098
1099if test -n "$ac_init_help"; then
1100  case $ac_init_help in
1101     short | recursive ) echo "Configuration of Clp trunk:";;
1102   esac
1103  cat <<\_ACEOF
1104
1105Optional Features:
1106  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1107  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1108  --enable-debug          compile all projects with debug options tests
1109  --enable-doscompile     Under Cygwin, compile so that executables run under
1110                          DOS. Set to mingw to use gcc/g++/ld with
1111                          -mno-cygwin. Set to msvc to use cl/link (or
1112                          icl/link). Default when mentioned: mingw. Default
1113                          when not mentioned: disabled.
1114  --enable-static[=PKGS]
1115                          build static libraries [default=no]
1116  --disable-dependency-tracking  speeds up one-time build
1117  --enable-dependency-tracking   do not reject slow dependency extractors
1118  --enable-maintainer-mode  enable make rules and dependencies not useful
1119                          (and sometimes confusing) to the casual installer
1120  --enable-shared[=PKGS]
1121                          build shared libraries [default=yes]
1122  --enable-fast-install[=PKGS]
1123                          optimize for fast installation [default=yes]
1124  --disable-libtool-lock  avoid locking (might break parallel builds)
1125
1126Optional Packages:
1127  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1128  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1129  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1130  --with-pic              try to use only PIC/non-PIC objects [default=use
1131                          both]
1132  --with-tags[=TAGS]
1133                          include additional configurations [automatic]
1134  --with-blas-lib linker flags for using project Blas
1135  --with-blas-incdir directory with header files for using project Blas
1136  --with-blas-datadir directory with data files for using project Blas
1137  --with-blas             specify BLAS library (or BUILD to enforce use of
1138                          ThirdParty/Blas)
1139  --with-lapack-lib linker flags for using project Lapack
1140  --with-lapack-incdir directory with header files for using project Lapack
1141  --with-lapack-datadir directory with data files for using project Lapack
1142  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1143                          ThirdParty/Lapack)
1144  --with-metis-lib linker flags for using project Metis
1145  --with-metis-incdir directory with header files for using project Metis
1146  --with-metis-datadir directory with data files for using project Metis
1147  --with-mumps-lib linker flags for using project Mumps
1148  --with-mumps-incdir directory with header files for using project Mumps
1149  --with-mumps-datadir directory with data files for using project Mumps
1150  --with-glpk-lib linker flags for using project Glpk
1151  --with-glpk-incdir directory with header files for using project Glpk
1152  --with-glpk-datadir directory with data files for using project Glpk
1153  --with-sample-lib linker flags for using project Sample
1154  --with-sample-incdir directory with header files for using project Sample
1155  --with-sample-datadir directory with data files for using project Sample
1156  --with-netlib-lib linker flags for using project Netlib
1157  --with-netlib-incdir directory with header files for using project Netlib
1158  --with-netlib-datadir directory with data files for using project Netlib
1159  --with-coinutils-lib linker flags for using project CoinUtils
1160  --with-coinutils-incdir directory with header files for using project
1161                          CoinUtils
1162  --with-coinutils-datadir
1163                          directory with data files for using project
1164                          CoinUtils
1165  --with-osi-lib linker flags for using project Osi
1166  --with-osi-incdir directory with header files for using project Osi
1167  --with-osi-datadir directory with data files for using project Osi
1168  --with-clp-lib linker flags for using project Clp
1169  --with-clp-incdir directory with header files for using project Clp
1170  --with-clp-datadir directory with data files for using project Clp
1171  --with-dot              use dot (from graphviz) when creating documentation
1172                          with doxygen if available; --without-dot to disable
1173
1174Some influential environment variables:
1175  CDEFS       Additional -D flags to be used when compiling C code.
1176  ADD_CFLAGS  Additional C compiler options
1177  DBG_CFLAGS  Debug C compiler options
1178  OPT_CFLAGS  Optimize C compiler options
1179  CC          C compiler command
1180  CFLAGS      C compiler flags
1181  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1182              nonstandard directory <lib dir>
1183  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1184              headers in a nonstandard directory <include dir>
1185  MPICC       C MPI Compiler
1186  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1187  ADD_CXXFLAGS
1188              Additional C++ compiler options
1189  DBG_CXXFLAGS
1190              Debug C++ compiler options
1191  OPT_CXXFLAGS
1192              Optimize C++ compiler options
1193  CXX         C++ compiler command
1194  CXXFLAGS    C++ compiler flags
1195  MPICXX      C++ MPI Compiler
1196  ADD_FFLAGS  Additional Fortran compiler options
1197  DBG_FFLAGS  Debug Fortran compiler options
1198  OPT_FFLAGS  Optimize Fortran compiler options
1199  F77         Fortran 77 compiler command
1200  FFLAGS      Fortran 77 compiler flags
1201  MPIF77      Fortran MPI Compiler
1202  CPP         C preprocessor
1203  CXXCPP      C++ preprocessor
1204  COIN_SKIP_PROJECTS
1205              Set to the subdirectories of projects that should be skipped in
1206              the configuration
1207
1208Use these variables to override the choices made by `configure' or to help
1209it to find libraries and programs with nonstandard names/locations.
1210
1211Report bugs to <coin-clp@lists.coin-or.org>.
1212_ACEOF
1213fi
1214
1215if test "$ac_init_help" = "recursive"; then
1216  # If there are subdirs, report their specific --help.
1217  ac_popdir=`pwd`
1218  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1219    test -d $ac_dir || continue
1220    ac_builddir=.
1221
1222if test "$ac_dir" != .; then
1223  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1224  # A "../" for each directory in $ac_dir_suffix.
1225  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1226else
1227  ac_dir_suffix= ac_top_builddir=
1228fi
1229
1230case $srcdir in
1231  .)  # No --srcdir option.  We are building in place.
1232    ac_srcdir=.
1233    if test -z "$ac_top_builddir"; then
1234       ac_top_srcdir=.
1235    else
1236       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1237    fi ;;
1238  [\\/]* | ?:[\\/]* )  # Absolute path.
1239    ac_srcdir=$srcdir$ac_dir_suffix;
1240    ac_top_srcdir=$srcdir ;;
1241  *) # Relative path.
1242    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1243    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1244esac
1245
1246# Do not use `cd foo && pwd` to compute absolute paths, because
1247# the directories may not exist.
1248case `pwd` in
1249.) ac_abs_builddir="$ac_dir";;
1250*)
1251  case "$ac_dir" in
1252  .) ac_abs_builddir=`pwd`;;
1253  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1254  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1255  esac;;
1256esac
1257case $ac_abs_builddir in
1258.) ac_abs_top_builddir=${ac_top_builddir}.;;
1259*)
1260  case ${ac_top_builddir}. in
1261  .) ac_abs_top_builddir=$ac_abs_builddir;;
1262  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1263  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1264  esac;;
1265esac
1266case $ac_abs_builddir in
1267.) ac_abs_srcdir=$ac_srcdir;;
1268*)
1269  case $ac_srcdir in
1270  .) ac_abs_srcdir=$ac_abs_builddir;;
1271  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1272  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1273  esac;;
1274esac
1275case $ac_abs_builddir in
1276.) ac_abs_top_srcdir=$ac_top_srcdir;;
1277*)
1278  case $ac_top_srcdir in
1279  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1280  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1281  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1282  esac;;
1283esac
1284
1285    cd $ac_dir
1286    # Check for guested configure; otherwise get Cygnus style configure.
1287    if test -f $ac_srcdir/configure.gnu; then
1288      echo
1289      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1290    elif test -f $ac_srcdir/configure; then
1291      echo
1292      $SHELL $ac_srcdir/configure  --help=recursive
1293    elif test -f $ac_srcdir/configure.ac ||
1294           test -f $ac_srcdir/configure.in; then
1295      echo
1296      $ac_configure --help
1297    else
1298      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1299    fi
1300    cd $ac_popdir
1301  done
1302fi
1303
1304test -n "$ac_init_help" && exit 0
1305if $ac_init_version; then
1306  cat <<\_ACEOF
1307Clp configure trunk
1308generated by GNU Autoconf 2.59
1309
1310Copyright (C) 2003 Free Software Foundation, Inc.
1311This configure script is free software; the Free Software Foundation
1312gives unlimited permission to copy, distribute and modify it.
1313
1314
1315Copyright 2006 International Business Machines and others.
1316All Rights Reserved.
1317This file is part of the open source package Coin which is distributed
1318under the Eclipse Public License.
1319_ACEOF
1320  exit 0
1321fi
1322exec 5>config.log
1323cat >&5 <<_ACEOF
1324This file contains any messages produced by compilers while
1325running configure, to aid debugging if configure makes a mistake.
1326
1327It was created by Clp $as_me trunk, which was
1328generated by GNU Autoconf 2.59.  Invocation command line was
1329
1330  $ $0 $@
1331
1332_ACEOF
1333{
1334cat <<_ASUNAME
1335## --------- ##
1336## Platform. ##
1337## --------- ##
1338
1339hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1340uname -m = `(uname -m) 2>/dev/null || echo unknown`
1341uname -r = `(uname -r) 2>/dev/null || echo unknown`
1342uname -s = `(uname -s) 2>/dev/null || echo unknown`
1343uname -v = `(uname -v) 2>/dev/null || echo unknown`
1344
1345/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1346/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1347
1348/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1349/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1350/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1351hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1352/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1353/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1354/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1355
1356_ASUNAME
1357
1358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1359for as_dir in $PATH
1360do
1361  IFS=$as_save_IFS
1362  test -z "$as_dir" && as_dir=.
1363  echo "PATH: $as_dir"
1364done
1365
1366} >&5
1367
1368cat >&5 <<_ACEOF
1369
1370
1371## ----------- ##
1372## Core tests. ##
1373## ----------- ##
1374
1375_ACEOF
1376
1377
1378# Keep a trace of the command line.
1379# Strip out --no-create and --no-recursion so they do not pile up.
1380# Strip out --silent because we don't want to record it for future runs.
1381# Also quote any args containing shell meta-characters.
1382# Make two passes to allow for proper duplicate-argument suppression.
1383ac_configure_args=
1384ac_configure_args0=
1385ac_configure_args1=
1386ac_sep=
1387ac_must_keep_next=false
1388for ac_pass in 1 2
1389do
1390  for ac_arg
1391  do
1392    case $ac_arg in
1393    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1394    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1395    | -silent | --silent | --silen | --sile | --sil)
1396      continue ;;
1397    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1398      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1399    esac
1400    case $ac_pass in
1401    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1402    2)
1403      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1404      if test $ac_must_keep_next = true; then
1405        ac_must_keep_next=false # Got value, back to normal.
1406      else
1407        case $ac_arg in
1408          *=* | --config-cache | -C | -disable-* | --disable-* \
1409          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1410          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1411          | -with-* | --with-* | -without-* | --without-* | --x)
1412            case "$ac_configure_args0 " in
1413              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1414            esac
1415            ;;
1416          -* ) ac_must_keep_next=true ;;
1417        esac
1418      fi
1419      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1420      # Get rid of the leading space.
1421      ac_sep=" "
1422      ;;
1423    esac
1424  done
1425done
1426$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1427$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1428
1429# When interrupted or exit'd, cleanup temporary files, and complete
1430# config.log.  We remove comments because anyway the quotes in there
1431# would cause problems or look ugly.
1432# WARNING: Be sure not to use single quotes in there, as some shells,
1433# such as our DU 5.0 friend, will then `close' the trap.
1434trap 'exit_status=$?
1435  # Save into config.log some information that might help in debugging.
1436  {
1437    echo
1438
1439    cat <<\_ASBOX
1440## ---------------- ##
1441## Cache variables. ##
1442## ---------------- ##
1443_ASBOX
1444    echo
1445    # The following way of writing the cache mishandles newlines in values,
1446{
1447  (set) 2>&1 |
1448    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1449    *ac_space=\ *)
1450      sed -n \
1451        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1452          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1453      ;;
1454    *)
1455      sed -n \
1456        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1457      ;;
1458    esac;
1459}
1460    echo
1461
1462    cat <<\_ASBOX
1463## ----------------- ##
1464## Output variables. ##
1465## ----------------- ##
1466_ASBOX
1467    echo
1468    for ac_var in $ac_subst_vars
1469    do
1470      eval ac_val=$`echo $ac_var`
1471      echo "$ac_var='"'"'$ac_val'"'"'"
1472    done | sort
1473    echo
1474
1475    if test -n "$ac_subst_files"; then
1476      cat <<\_ASBOX
1477## ------------- ##
1478## Output files. ##
1479## ------------- ##
1480_ASBOX
1481      echo
1482      for ac_var in $ac_subst_files
1483      do
1484        eval ac_val=$`echo $ac_var`
1485        echo "$ac_var='"'"'$ac_val'"'"'"
1486      done | sort
1487      echo
1488    fi
1489
1490    if test -s confdefs.h; then
1491      cat <<\_ASBOX
1492## ----------- ##
1493## confdefs.h. ##
1494## ----------- ##
1495_ASBOX
1496      echo
1497      sed "/^$/d" confdefs.h | sort
1498      echo
1499    fi
1500    test "$ac_signal" != 0 &&
1501      echo "$as_me: caught signal $ac_signal"
1502    echo "$as_me: exit $exit_status"
1503  } >&5
1504  rm -f core *.core &&
1505  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1506    exit $exit_status
1507     ' 0
1508for ac_signal in 1 2 13 15; do
1509  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1510done
1511ac_signal=0
1512
1513# confdefs.h avoids OS command line length limits that DEFS can exceed.
1514rm -rf conftest* confdefs.h
1515# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1516echo >confdefs.h
1517
1518# Predefined preprocessor variables.
1519
1520cat >>confdefs.h <<_ACEOF
1521#define PACKAGE_NAME "$PACKAGE_NAME"
1522_ACEOF
1523
1524
1525cat >>confdefs.h <<_ACEOF
1526#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1527_ACEOF
1528
1529
1530cat >>confdefs.h <<_ACEOF
1531#define PACKAGE_VERSION "$PACKAGE_VERSION"
1532_ACEOF
1533
1534
1535cat >>confdefs.h <<_ACEOF
1536#define PACKAGE_STRING "$PACKAGE_STRING"
1537_ACEOF
1538
1539
1540cat >>confdefs.h <<_ACEOF
1541#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1542_ACEOF
1543
1544
1545# Let the site file select an alternate cache file if it wants to.
1546# Prefer explicitly selected file to automatically selected ones.
1547if test -z "$CONFIG_SITE"; then
1548  if test "x$prefix" != xNONE; then
1549    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1550  else
1551    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1552  fi
1553fi
1554for ac_site_file in $CONFIG_SITE; do
1555  if test -r "$ac_site_file"; then
1556    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1557echo "$as_me: loading site script $ac_site_file" >&6;}
1558    sed 's/^/| /' "$ac_site_file" >&5
1559    . "$ac_site_file"
1560  fi
1561done
1562
1563if test -r "$cache_file"; then
1564  # Some versions of bash will fail to source /dev/null (special
1565  # files actually), so we avoid doing that.
1566  if test -f "$cache_file"; then
1567    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1568echo "$as_me: loading cache $cache_file" >&6;}
1569    case $cache_file in
1570      [\\/]* | ?:[\\/]* ) . $cache_file;;
1571      *)                      . ./$cache_file;;
1572    esac
1573  fi
1574else
1575  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1576echo "$as_me: creating cache $cache_file" >&6;}
1577  >$cache_file
1578fi
1579
1580# Check that the precious variables saved in the cache have kept the same
1581# value.
1582ac_cache_corrupted=false
1583for ac_var in `(set) 2>&1 |
1584               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1585  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1586  eval ac_new_set=\$ac_env_${ac_var}_set
1587  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1588  eval ac_new_val="\$ac_env_${ac_var}_value"
1589  case $ac_old_set,$ac_new_set in
1590    set,)
1591      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1592echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1593      ac_cache_corrupted=: ;;
1594    ,set)
1595      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1596echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1597      ac_cache_corrupted=: ;;
1598    ,);;
1599    *)
1600      if test "x$ac_old_val" != "x$ac_new_val"; then
1601        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1602echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1603        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1604echo "$as_me:   former value:  $ac_old_val" >&2;}
1605        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1606echo "$as_me:   current value: $ac_new_val" >&2;}
1607        ac_cache_corrupted=:
1608      fi;;
1609  esac
1610  # Pass precious variables to config.status.
1611  if test "$ac_new_set" = set; then
1612    case $ac_new_val in
1613    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1614      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1615    *) ac_arg=$ac_var=$ac_new_val ;;
1616    esac
1617    case " $ac_configure_args " in
1618      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1619      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1620    esac
1621  fi
1622done
1623if $ac_cache_corrupted; then
1624  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1625echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1626  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1627echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1628   { (exit 1); exit 1; }; }
1629fi
1630
1631ac_ext=c
1632ac_cpp='$CPP $CPPFLAGS'
1633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1635ac_compiler_gnu=$ac_cv_c_compiler_gnu
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668# List one file in the package so that the configure script can test
1669# whether the package is actually there
1670
1671
1672# Where should everything be installed by default?  Here, we want it
1673# to be installed directly in 'bin', 'lib', 'include' subdirectories
1674# of the directory where configure is run.  The default would be
1675# /usr/local.
1676
1677
1678#############################################################################
1679#              Create the libtool script for the subdirectories             #
1680#############################################################################
1681
1682ac_aux_dir=
1683for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1684  if test -f $ac_dir/install-sh; then
1685    ac_aux_dir=$ac_dir
1686    ac_install_sh="$ac_aux_dir/install-sh -c"
1687    break
1688  elif test -f $ac_dir/install.sh; then
1689    ac_aux_dir=$ac_dir
1690    ac_install_sh="$ac_aux_dir/install.sh -c"
1691    break
1692  elif test -f $ac_dir/shtool; then
1693    ac_aux_dir=$ac_dir
1694    ac_install_sh="$ac_aux_dir/shtool install -c"
1695    break
1696  fi
1697done
1698if test -z "$ac_aux_dir"; then
1699  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1700echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1701   { (exit 1); exit 1; }; }
1702fi
1703ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1704ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1705ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1706
1707# Make sure we can run config.sub.
1708$ac_config_sub sun4 >/dev/null 2>&1 ||
1709  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1710echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1711   { (exit 1); exit 1; }; }
1712
1713echo "$as_me:$LINENO: checking build system type" >&5
1714echo $ECHO_N "checking build system type... $ECHO_C" >&6
1715if test "${ac_cv_build+set}" = set; then
1716  echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718  ac_cv_build_alias=$build_alias
1719test -z "$ac_cv_build_alias" &&
1720  ac_cv_build_alias=`$ac_config_guess`
1721test -z "$ac_cv_build_alias" &&
1722  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1723echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1724   { (exit 1); exit 1; }; }
1725ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1726  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1727echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1728   { (exit 1); exit 1; }; }
1729
1730fi
1731echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1732echo "${ECHO_T}$ac_cv_build" >&6
1733build=$ac_cv_build
1734build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737
1738
1739
1740# Check if user wants to produce debugging code
1741
1742echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1743echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1744
1745# Check whether --enable-debug or --disable-debug was given.
1746if test "${enable_debug+set}" = set; then
1747  enableval="$enable_debug"
1748  case "${enableval}" in
1749   yes) coin_debug_compile=true
1750        if test "${enable_shared+set}" = set; then :; else
1751          enable_shared=no
1752        fi
1753        ;;
1754   no)  coin_debug_compile=false
1755        ;;
1756   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1757echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1758   { (exit 1); exit 1; }; }
1759        ;;
1760esac
1761else
1762  coin_debug_compile=false
1763fi;
1764
1765 # m4_ifvaln([],
1766
1767if test $coin_debug_compile = true; then
1768  echo "$as_me:$LINENO: result: yes" >&5
1769echo "${ECHO_T}yes" >&6
1770else
1771  echo "$as_me:$LINENO: result: no" >&5
1772echo "${ECHO_T}no" >&6
1773fi
1774
1775 # m4_ifvaln([],
1776
1777
1778
1779# Get the name of the C compiler and appropriate compiler options
1780case $build in
1781  *-mingw*)
1782    if test "${LD+set}" = set; then :; else
1783      LD=link
1784    fi
1785    ;;
1786 esac
1787 case $enable_doscompile in
1788   msvc)
1789     if test "x${LD+set}" = xset; then :; else
1790       LD=link
1791     fi
1792     ;;
1793 esac
1794
1795
1796 # Check whether --enable-doscompile or --disable-doscompile was given.
1797if test "${enable_doscompile+set}" = set; then
1798  enableval="$enable_doscompile"
1799  if test "$enable_doscompile" != no; then
1800     case $build in
1801       *-cygwin* | *-mingw*) ;;
1802       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1803echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1804   { (exit 1); exit 1; }; } ;;
1805     esac
1806   fi
1807else
1808  enable_doscompile=no
1809fi;
1810 case "$enable_doscompile" in
1811   mingw)
1812     case $build in
1813       *-mingw*) enable_doscompile=no ;;
1814     esac
1815     ;;
1816   msvc|no) ;;
1817   yes) enable_doscompile=mingw ;;
1818   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1819                    Try configure --help=recursive." >&5
1820echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1821                    Try configure --help=recursive." >&2;}
1822   { (exit 1); exit 1; }; }
1823      ;;
1824  esac
1825  if test "$enable_doscompile" != no ; then
1826    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1827echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1828  fi
1829
1830
1831
1832
1833ac_ext=c
1834ac_cpp='$CPP $CPPFLAGS'
1835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1837ac_compiler_gnu=$ac_cv_c_compiler_gnu
1838
1839
1840# For consistency, we set the C compiler to the same value of the C++
1841# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1842if test x"$CXX" != x; then
1843  case "$CXX" in
1844    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1845      if test x"$CC" = x; then
1846        CC="$CXX"
1847        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1848echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1849      fi
1850      ;;
1851  esac
1852fi
1853
1854# add automake conditional so we can recognize cl compiler in makefile
1855coin_cc_is_cl=false
1856if test x"$CXX" != x; then
1857  case "$CXX" in
1858    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1859      coin_cc_is_cl=true
1860      ;;
1861  esac
1862fi
1863
1864
1865if test $coin_cc_is_cl = true; then
1866  COIN_CC_IS_CL_TRUE=
1867  COIN_CC_IS_CL_FALSE='#'
1868else
1869  COIN_CC_IS_CL_TRUE='#'
1870  COIN_CC_IS_CL_FALSE=
1871fi
1872
1873
1874
1875
1876
1877
1878
1879coin_has_cc=yes
1880
1881save_cflags="$CFLAGS"
1882
1883# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1884# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1885# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1886# compiler. In this case, put cc after gcc.
1887
1888case $build in
1889  *-cygwin* | *-mingw*)
1890             if test "$enable_doscompile" = msvc ; then
1891               comps="icl cl"
1892             else
1893               comps="gcc cl"
1894             fi ;;
1895  *-*-solaris*)
1896             # Extract the first word of "cc", so it can be a program name with args.
1897set dummy cc; ac_word=$2
1898echo "$as_me:$LINENO: checking for $ac_word" >&5
1899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1901  echo $ECHO_N "(cached) $ECHO_C" >&6
1902else
1903  if test -n "$sol_cc_compiler"; then
1904  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1905else
1906  ac_prog_rejected=no
1907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908for as_dir in $PATH
1909do
1910  IFS=$as_save_IFS
1911  test -z "$as_dir" && as_dir=.
1912  for ac_exec_ext in '' $ac_executable_extensions; do
1913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1915       ac_prog_rejected=yes
1916       continue
1917     fi
1918    ac_cv_prog_sol_cc_compiler="cc"
1919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920    break 2
1921  fi
1922done
1923done
1924
1925if test $ac_prog_rejected = yes; then
1926  # We found a bogon in the path, so make sure we never use it.
1927  set dummy $ac_cv_prog_sol_cc_compiler
1928  shift
1929  if test $# != 0; then
1930    # We chose a different compiler from the bogus one.
1931    # However, it has the same basename, so the bogon will be chosen
1932    # first if we set sol_cc_compiler to just the basename; use the full file name.
1933    shift
1934    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1935  fi
1936fi
1937fi
1938fi
1939sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1940if test -n "$sol_cc_compiler"; then
1941  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1942echo "${ECHO_T}$sol_cc_compiler" >&6
1943else
1944  echo "$as_me:$LINENO: result: no" >&5
1945echo "${ECHO_T}no" >&6
1946fi
1947
1948             if test "$sol_cc_compiler" = "cc" ; then
1949               comps="cc xlc gcc pgcc icc"
1950             else
1951               comps="xlc gcc pgcc icc cc"
1952             fi
1953             ;;
1954  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
1955  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1956  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1957esac
1958
1959# We delete the cached value, since the test might not have been
1960# performed with our choice of compilers earlier
1961$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1962# AC_MSG_NOTICE([C compiler candidates: $comps])
1963ac_ext=c
1964ac_cpp='$CPP $CPPFLAGS'
1965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968if test -n "$ac_tool_prefix"; then
1969  for ac_prog in $comps
1970  do
1971    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1972set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1973echo "$as_me:$LINENO: checking for $ac_word" >&5
1974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1975if test "${ac_cv_prog_CC+set}" = set; then
1976  echo $ECHO_N "(cached) $ECHO_C" >&6
1977else
1978  if test -n "$CC"; then
1979  ac_cv_prog_CC="$CC" # Let the user override the test.
1980else
1981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982for as_dir in $PATH
1983do
1984  IFS=$as_save_IFS
1985  test -z "$as_dir" && as_dir=.
1986  for ac_exec_ext in '' $ac_executable_extensions; do
1987  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1988    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1989    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990    break 2
1991  fi
1992done
1993done
1994
1995fi
1996fi
1997CC=$ac_cv_prog_CC
1998if test -n "$CC"; then
1999  echo "$as_me:$LINENO: result: $CC" >&5
2000echo "${ECHO_T}$CC" >&6
2001else
2002  echo "$as_me:$LINENO: result: no" >&5
2003echo "${ECHO_T}no" >&6
2004fi
2005
2006    test -n "$CC" && break
2007  done
2008fi
2009if test -z "$CC"; then
2010  ac_ct_CC=$CC
2011  for ac_prog in $comps
2012do
2013  # Extract the first word of "$ac_prog", so it can be a program name with args.
2014set dummy $ac_prog; ac_word=$2
2015echo "$as_me:$LINENO: checking for $ac_word" >&5
2016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2018  echo $ECHO_N "(cached) $ECHO_C" >&6
2019else
2020  if test -n "$ac_ct_CC"; then
2021  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2022else
2023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2024for as_dir in $PATH
2025do
2026  IFS=$as_save_IFS
2027  test -z "$as_dir" && as_dir=.
2028  for ac_exec_ext in '' $ac_executable_extensions; do
2029  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030    ac_cv_prog_ac_ct_CC="$ac_prog"
2031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2032    break 2
2033  fi
2034done
2035done
2036
2037fi
2038fi
2039ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040if test -n "$ac_ct_CC"; then
2041  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042echo "${ECHO_T}$ac_ct_CC" >&6
2043else
2044  echo "$as_me:$LINENO: result: no" >&5
2045echo "${ECHO_T}no" >&6
2046fi
2047
2048  test -n "$ac_ct_CC" && break
2049done
2050
2051  CC=$ac_ct_CC
2052fi
2053
2054
2055test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2056See \`config.log' for more details." >&5
2057echo "$as_me: error: no acceptable C compiler found in \$PATH
2058See \`config.log' for more details." >&2;}
2059   { (exit 1); exit 1; }; }
2060
2061# Provide some information about the compiler.
2062echo "$as_me:$LINENO:" \
2063     "checking for C compiler version" >&5
2064ac_compiler=`set X $ac_compile; echo $2`
2065{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2066  (eval $ac_compiler --version </dev/null >&5) 2>&5
2067  ac_status=$?
2068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069  (exit $ac_status); }
2070{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2071  (eval $ac_compiler -v </dev/null >&5) 2>&5
2072  ac_status=$?
2073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074  (exit $ac_status); }
2075{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2076  (eval $ac_compiler -V </dev/null >&5) 2>&5
2077  ac_status=$?
2078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079  (exit $ac_status); }
2080
2081cat >conftest.$ac_ext <<_ACEOF
2082/* confdefs.h.  */
2083_ACEOF
2084cat confdefs.h >>conftest.$ac_ext
2085cat >>conftest.$ac_ext <<_ACEOF
2086/* end confdefs.h.  */
2087
2088int
2089main ()
2090{
2091
2092  ;
2093  return 0;
2094}
2095_ACEOF
2096ac_clean_files_save=$ac_clean_files
2097ac_clean_files="$ac_clean_files a.out a.exe b.out"
2098# Try to create an executable without -o first, disregard a.out.
2099# It will help us diagnose broken compilers, and finding out an intuition
2100# of exeext.
2101echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2102echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2103ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2104if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2105  (eval $ac_link_default) 2>&5
2106  ac_status=$?
2107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108  (exit $ac_status); }; then
2109  # Find the output, starting from the most likely.  This scheme is
2110# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2111# resort.
2112
2113# Be careful to initialize this variable, since it used to be cached.
2114# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2115ac_cv_exeext=
2116# b.out is created by i960 compilers.
2117for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2118do
2119  test -f "$ac_file" || continue
2120  case $ac_file in
2121    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2122        ;;
2123    conftest.$ac_ext )
2124        # This is the source file.
2125        ;;
2126    [ab].out )
2127        # We found the default executable, but exeext='' is most
2128        # certainly right.
2129        break;;
2130    *.* )
2131        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2132        # FIXME: I believe we export ac_cv_exeext for Libtool,
2133        # but it would be cool to find out if it's true.  Does anybody
2134        # maintain Libtool? --akim.
2135        export ac_cv_exeext
2136        break;;
2137    * )
2138        break;;
2139  esac
2140done
2141else
2142  echo "$as_me: failed program was:" >&5
2143sed 's/^/| /' conftest.$ac_ext >&5
2144
2145{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2146See \`config.log' for more details." >&5
2147echo "$as_me: error: C compiler cannot create executables
2148See \`config.log' for more details." >&2;}
2149   { (exit 77); exit 77; }; }
2150fi
2151
2152ac_exeext=$ac_cv_exeext
2153echo "$as_me:$LINENO: result: $ac_file" >&5
2154echo "${ECHO_T}$ac_file" >&6
2155
2156# Check the compiler produces executables we can run.  If not, either
2157# the compiler is broken, or we cross compile.
2158echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2159echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2160# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2161# If not cross compiling, check that we can run a simple program.
2162if test "$cross_compiling" != yes; then
2163  if { ac_try='./$ac_file'
2164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2165  (eval $ac_try) 2>&5
2166  ac_status=$?
2167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168  (exit $ac_status); }; }; then
2169    cross_compiling=no
2170  else
2171    if test "$cross_compiling" = maybe; then
2172        cross_compiling=yes
2173    else
2174        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2175If you meant to cross compile, use \`--host'.
2176See \`config.log' for more details." >&5
2177echo "$as_me: error: cannot run C compiled programs.
2178If you meant to cross compile, use \`--host'.
2179See \`config.log' for more details." >&2;}
2180   { (exit 1); exit 1; }; }
2181    fi
2182  fi
2183fi
2184echo "$as_me:$LINENO: result: yes" >&5
2185echo "${ECHO_T}yes" >&6
2186
2187rm -f a.out a.exe conftest$ac_cv_exeext b.out
2188ac_clean_files=$ac_clean_files_save
2189# Check the compiler produces executables we can run.  If not, either
2190# the compiler is broken, or we cross compile.
2191echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2192echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2193echo "$as_me:$LINENO: result: $cross_compiling" >&5
2194echo "${ECHO_T}$cross_compiling" >&6
2195
2196echo "$as_me:$LINENO: checking for suffix of executables" >&5
2197echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2199  (eval $ac_link) 2>&5
2200  ac_status=$?
2201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202  (exit $ac_status); }; then
2203  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2204# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2205# work properly (i.e., refer to `conftest.exe'), while it won't with
2206# `rm'.
2207for ac_file in conftest.exe conftest conftest.*; do
2208  test -f "$ac_file" || continue
2209  case $ac_file in
2210    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2211    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212          export ac_cv_exeext
2213          break;;
2214    * ) break;;
2215  esac
2216done
2217else
2218  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2219See \`config.log' for more details." >&5
2220echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2221See \`config.log' for more details." >&2;}
2222   { (exit 1); exit 1; }; }
2223fi
2224
2225rm -f conftest$ac_cv_exeext
2226echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2227echo "${ECHO_T}$ac_cv_exeext" >&6
2228
2229rm -f conftest.$ac_ext
2230EXEEXT=$ac_cv_exeext
2231ac_exeext=$EXEEXT
2232echo "$as_me:$LINENO: checking for suffix of object files" >&5
2233echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2234if test "${ac_cv_objext+set}" = set; then
2235  echo $ECHO_N "(cached) $ECHO_C" >&6
2236else
2237  cat >conftest.$ac_ext <<_ACEOF
2238/* confdefs.h.  */
2239_ACEOF
2240cat confdefs.h >>conftest.$ac_ext
2241cat >>conftest.$ac_ext <<_ACEOF
2242/* end confdefs.h.  */
2243
2244int
2245main ()
2246{
2247
2248  ;
2249  return 0;
2250}
2251_ACEOF
2252rm -f conftest.o conftest.obj
2253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254  (eval $ac_compile) 2>&5
2255  ac_status=$?
2256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257  (exit $ac_status); }; then
2258  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2259  case $ac_file in
2260    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2261    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2262       break;;
2263  esac
2264done
2265else
2266  echo "$as_me: failed program was:" >&5
2267sed 's/^/| /' conftest.$ac_ext >&5
2268
2269{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2270See \`config.log' for more details." >&5
2271echo "$as_me: error: cannot compute suffix of object files: cannot compile
2272See \`config.log' for more details." >&2;}
2273   { (exit 1); exit 1; }; }
2274fi
2275
2276rm -f conftest.$ac_cv_objext conftest.$ac_ext
2277fi
2278echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2279echo "${ECHO_T}$ac_cv_objext" >&6
2280OBJEXT=$ac_cv_objext
2281ac_objext=$OBJEXT
2282echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2283echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2284if test "${ac_cv_c_compiler_gnu+set}" = set; then
2285  echo $ECHO_N "(cached) $ECHO_C" >&6
2286else
2287  cat >conftest.$ac_ext <<_ACEOF
2288/* confdefs.h.  */
2289_ACEOF
2290cat confdefs.h >>conftest.$ac_ext
2291cat >>conftest.$ac_ext <<_ACEOF
2292/* end confdefs.h.  */
2293
2294int
2295main ()
2296{
2297#ifndef __GNUC__
2298       choke me
2299#endif
2300
2301  ;
2302  return 0;
2303}
2304_ACEOF
2305rm -f conftest.$ac_objext
2306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307  (eval $ac_compile) 2>conftest.er1
2308  ac_status=$?
2309  grep -v '^ *+' conftest.er1 >conftest.err
2310  rm -f conftest.er1
2311  cat conftest.err >&5
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); } &&
2314         { ac_try='test -z "$ac_c_werror_flag"
2315                         || test ! -s conftest.err'
2316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317  (eval $ac_try) 2>&5
2318  ac_status=$?
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); }; } &&
2321         { ac_try='test -s conftest.$ac_objext'
2322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323  (eval $ac_try) 2>&5
2324  ac_status=$?
2325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326  (exit $ac_status); }; }; then
2327  ac_compiler_gnu=yes
2328else
2329  echo "$as_me: failed program was:" >&5
2330sed 's/^/| /' conftest.$ac_ext >&5
2331
2332ac_compiler_gnu=no
2333fi
2334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335ac_cv_c_compiler_gnu=$ac_compiler_gnu
2336
2337fi
2338echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2339echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2340GCC=`test $ac_compiler_gnu = yes && echo yes`
2341ac_test_CFLAGS=${CFLAGS+set}
2342ac_save_CFLAGS=$CFLAGS
2343CFLAGS="-g"
2344echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2345echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2346if test "${ac_cv_prog_cc_g+set}" = set; then
2347  echo $ECHO_N "(cached) $ECHO_C" >&6
2348else
2349  cat >conftest.$ac_ext <<_ACEOF
2350/* confdefs.h.  */
2351_ACEOF
2352cat confdefs.h >>conftest.$ac_ext
2353cat >>conftest.$ac_ext <<_ACEOF
2354/* end confdefs.h.  */
2355
2356int
2357main ()
2358{
2359
2360  ;
2361  return 0;
2362}
2363_ACEOF
2364rm -f conftest.$ac_objext
2365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366  (eval $ac_compile) 2>conftest.er1
2367  ac_status=$?
2368  grep -v '^ *+' conftest.er1 >conftest.err
2369  rm -f conftest.er1
2370  cat conftest.err >&5
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); } &&
2373         { ac_try='test -z "$ac_c_werror_flag"
2374                         || test ! -s conftest.err'
2375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376  (eval $ac_try) 2>&5
2377  ac_status=$?
2378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379  (exit $ac_status); }; } &&
2380         { ac_try='test -s conftest.$ac_objext'
2381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382  (eval $ac_try) 2>&5
2383  ac_status=$?
2384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385  (exit $ac_status); }; }; then
2386  ac_cv_prog_cc_g=yes
2387else
2388  echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391ac_cv_prog_cc_g=no
2392fi
2393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394fi
2395echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2396echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2397if test "$ac_test_CFLAGS" = set; then
2398  CFLAGS=$ac_save_CFLAGS
2399elif test $ac_cv_prog_cc_g = yes; then
2400  if test "$GCC" = yes; then
2401    CFLAGS="-g -O2"
2402  else
2403    CFLAGS="-g"
2404  fi
2405else
2406  if test "$GCC" = yes; then
2407    CFLAGS="-O2"
2408  else
2409    CFLAGS=
2410  fi
2411fi
2412echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2413echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2414if test "${ac_cv_prog_cc_stdc+set}" = set; then
2415  echo $ECHO_N "(cached) $ECHO_C" >&6
2416else
2417  ac_cv_prog_cc_stdc=no
2418ac_save_CC=$CC
2419cat >conftest.$ac_ext <<_ACEOF
2420/* confdefs.h.  */
2421_ACEOF
2422cat confdefs.h >>conftest.$ac_ext
2423cat >>conftest.$ac_ext <<_ACEOF
2424/* end confdefs.h.  */
2425#include <stdarg.h>
2426#include <stdio.h>
2427#include <sys/types.h>
2428#include <sys/stat.h>
2429/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2430struct buf { int x; };
2431FILE * (*rcsopen) (struct buf *, struct stat *, int);
2432static char *e (p, i)
2433     char **p;
2434     int i;
2435{
2436  return p[i];
2437}
2438static char *f (char * (*g) (char **, int), char **p, ...)
2439{
2440  char *s;
2441  va_list v;
2442  va_start (v,p);
2443  s = g (p, va_arg (v,int));
2444  va_end (v);
2445  return s;
2446}
2447
2448/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2449   function prototypes and stuff, but not '\xHH' hex character constants.
2450   These don't provoke an error unfortunately, instead are silently treated
2451   as 'x'.  The following induces an error, until -std1 is added to get
2452   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2453   array size at least.  It's necessary to write '\x00'==0 to get something
2454   that's true only with -std1.  */
2455int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2456
2457int test (int i, double x);
2458struct s1 {int (*f) (int a);};
2459struct s2 {int (*f) (double a);};
2460int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2461int argc;
2462char **argv;
2463int
2464main ()
2465{
2466return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2467  ;
2468  return 0;
2469}
2470_ACEOF
2471# Don't try gcc -ansi; that turns off useful extensions and
2472# breaks some systems' header files.
2473# AIX                   -qlanglvl=ansi
2474# Ultrix and OSF/1      -std1
2475# HP-UX 10.20 and later -Ae
2476# HP-UX older versions  -Aa -D_HPUX_SOURCE
2477# SVR4                  -Xc -D__EXTENSIONS__
2478for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2479do
2480  CC="$ac_save_CC $ac_arg"
2481  rm -f conftest.$ac_objext
2482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483  (eval $ac_compile) 2>conftest.er1
2484  ac_status=$?
2485  grep -v '^ *+' conftest.er1 >conftest.err
2486  rm -f conftest.er1
2487  cat conftest.err >&5
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); } &&
2490         { ac_try='test -z "$ac_c_werror_flag"
2491                         || test ! -s conftest.err'
2492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493  (eval $ac_try) 2>&5
2494  ac_status=$?
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); }; } &&
2497         { ac_try='test -s conftest.$ac_objext'
2498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499  (eval $ac_try) 2>&5
2500  ac_status=$?
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); }; }; then
2503  ac_cv_prog_cc_stdc=$ac_arg
2504break
2505else
2506  echo "$as_me: failed program was:" >&5
2507sed 's/^/| /' conftest.$ac_ext >&5
2508
2509fi
2510rm -f conftest.err conftest.$ac_objext
2511done
2512rm -f conftest.$ac_ext conftest.$ac_objext
2513CC=$ac_save_CC
2514
2515fi
2516
2517case "x$ac_cv_prog_cc_stdc" in
2518  x|xno)
2519    echo "$as_me:$LINENO: result: none needed" >&5
2520echo "${ECHO_T}none needed" >&6 ;;
2521  *)
2522    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2523echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2524    CC="$CC $ac_cv_prog_cc_stdc" ;;
2525esac
2526
2527# Some people use a C++ compiler to compile C.  Since we use `exit',
2528# in C++ we need to declare it.  In case someone uses the same compiler
2529# for both compiling C and C++ we need to have the C++ compiler decide
2530# the declaration of exit, since it's the most demanding environment.
2531cat >conftest.$ac_ext <<_ACEOF
2532#ifndef __cplusplus
2533  choke me
2534#endif
2535_ACEOF
2536rm -f conftest.$ac_objext
2537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2538  (eval $ac_compile) 2>conftest.er1
2539  ac_status=$?
2540  grep -v '^ *+' conftest.er1 >conftest.err
2541  rm -f conftest.er1
2542  cat conftest.err >&5
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); } &&
2545         { ac_try='test -z "$ac_c_werror_flag"
2546                         || test ! -s conftest.err'
2547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548  (eval $ac_try) 2>&5
2549  ac_status=$?
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); }; } &&
2552         { ac_try='test -s conftest.$ac_objext'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; }; then
2558  for ac_declaration in \
2559   '' \
2560   'extern "C" void std::exit (int) throw (); using std::exit;' \
2561   'extern "C" void std::exit (int); using std::exit;' \
2562   'extern "C" void exit (int) throw ();' \
2563   'extern "C" void exit (int);' \
2564   'void exit (int);'
2565do
2566  cat >conftest.$ac_ext <<_ACEOF
2567/* confdefs.h.  */
2568_ACEOF
2569cat confdefs.h >>conftest.$ac_ext
2570cat >>conftest.$ac_ext <<_ACEOF
2571/* end confdefs.h.  */
2572$ac_declaration
2573#include <stdlib.h>
2574int
2575main ()
2576{
2577exit (42);
2578  ;
2579  return 0;
2580}
2581_ACEOF
2582rm -f conftest.$ac_objext
2583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584  (eval $ac_compile) 2>conftest.er1
2585  ac_status=$?
2586  grep -v '^ *+' conftest.er1 >conftest.err
2587  rm -f conftest.er1
2588  cat conftest.err >&5
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); } &&
2591         { ac_try='test -z "$ac_c_werror_flag"
2592                         || test ! -s conftest.err'
2593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594  (eval $ac_try) 2>&5
2595  ac_status=$?
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); }; } &&
2598         { ac_try='test -s conftest.$ac_objext'
2599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600  (eval $ac_try) 2>&5
2601  ac_status=$?
2602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603  (exit $ac_status); }; }; then
2604  :
2605else
2606  echo "$as_me: failed program was:" >&5
2607sed 's/^/| /' conftest.$ac_ext >&5
2608
2609continue
2610fi
2611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2612  cat >conftest.$ac_ext <<_ACEOF
2613/* confdefs.h.  */
2614_ACEOF
2615cat confdefs.h >>conftest.$ac_ext
2616cat >>conftest.$ac_ext <<_ACEOF
2617/* end confdefs.h.  */
2618$ac_declaration
2619int
2620main ()
2621{
2622exit (42);
2623  ;
2624  return 0;
2625}
2626_ACEOF
2627rm -f conftest.$ac_objext
2628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629  (eval $ac_compile) 2>conftest.er1
2630  ac_status=$?
2631  grep -v '^ *+' conftest.er1 >conftest.err
2632  rm -f conftest.er1
2633  cat conftest.err >&5
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); } &&
2636         { ac_try='test -z "$ac_c_werror_flag"
2637                         || test ! -s conftest.err'
2638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639  (eval $ac_try) 2>&5
2640  ac_status=$?
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); }; } &&
2643         { ac_try='test -s conftest.$ac_objext'
2644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645  (eval $ac_try) 2>&5
2646  ac_status=$?
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); }; }; then
2649  break
2650else
2651  echo "$as_me: failed program was:" >&5
2652sed 's/^/| /' conftest.$ac_ext >&5
2653
2654fi
2655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2656done
2657rm -f conftest*
2658if test -n "$ac_declaration"; then
2659  echo '#ifdef __cplusplus' >>confdefs.h
2660  echo $ac_declaration      >>confdefs.h
2661  echo '#endif'             >>confdefs.h
2662fi
2663
2664else
2665  echo "$as_me: failed program was:" >&5
2666sed 's/^/| /' conftest.$ac_ext >&5
2667
2668fi
2669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2670ac_ext=c
2671ac_cpp='$CPP $CPPFLAGS'
2672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674ac_compiler_gnu=$ac_cv_c_compiler_gnu
2675
2676if test -z "$CC" ; then
2677  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2678echo "$as_me: error: Failed to find a C compiler!" >&2;}
2679   { (exit 1); exit 1; }; }
2680fi
2681# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2682case "$CC" in
2683  cl* | */cl* | CL* | */CL* )
2684    if test "$ac_cv_prog_cc_g" = yes ; then
2685      ac_cv_prog_cc_g=no
2686      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2687echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2688    fi ;;
2689esac
2690CFLAGS="$save_cflags"
2691
2692# Check if a project specific CFLAGS variable has been set
2693if test x$COIN_PRJCT != x; then
2694  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2695  if test x$coin_tmp = xset; then
2696    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2697  fi
2698fi
2699
2700if test x"$CFLAGS" = x; then
2701
2702  coin_add_cflags=
2703  coin_opt_cflags=
2704  coin_dbg_cflags=
2705  coin_warn_cflags=
2706
2707  if test "$GCC" = "yes"; then
2708    case "$CC" in
2709      icc* | */icc*)
2710        ;;
2711      *)
2712        coin_opt_cflags="-O3"
2713        coin_add_cflags="-pipe"
2714        coin_dbg_cflags="-g"
2715        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2716        case $build in
2717          *-darwin*)
2718            ;;
2719          *)
2720            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2721            ;;
2722        esac
2723        case $enable_doscompile in
2724          mingw)
2725            CFLAGS="-mno-cygwin"
2726            cat >conftest.$ac_ext <<_ACEOF
2727/* confdefs.h.  */
2728_ACEOF
2729cat confdefs.h >>conftest.$ac_ext
2730cat >>conftest.$ac_ext <<_ACEOF
2731/* end confdefs.h.  */
2732
2733int
2734main ()
2735{
2736int i=0; i++;
2737  ;
2738  return 0;
2739}
2740_ACEOF
2741rm -f conftest.$ac_objext conftest$ac_exeext
2742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2743  (eval $ac_link) 2>conftest.er1
2744  ac_status=$?
2745  grep -v '^ *+' conftest.er1 >conftest.err
2746  rm -f conftest.er1
2747  cat conftest.err >&5
2748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749  (exit $ac_status); } &&
2750         { ac_try='test -z "$ac_c_werror_flag"
2751                         || test ! -s conftest.err'
2752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753  (eval $ac_try) 2>&5
2754  ac_status=$?
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); }; } &&
2757         { ac_try='test -s conftest$ac_exeext'
2758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759  (eval $ac_try) 2>&5
2760  ac_status=$?
2761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762  (exit $ac_status); }; }; then
2763  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2764else
2765  echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768fi
2769rm -f conftest.err conftest.$ac_objext \
2770      conftest$ac_exeext conftest.$ac_ext
2771            CFLAGS=
2772          ;;
2773        esac
2774    esac
2775  fi
2776  if test -z "$coin_opt_cflags"; then
2777    case $build in
2778      *-cygwin* | *-mingw*)
2779        case "$CC" in
2780          cl* | */cl* | CL* | */CL*)
2781            coin_opt_cflags='-MT -O2'
2782            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2783            coin_dbg_cflags='-MTd'
2784            ;;
2785          icl* | */icl* | ICL* | */ICL*)
2786            coin_opt_cflags='-MT -Ox'
2787            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2788            coin_dbg_cflags='-MTd -debug'
2789            ;;
2790        esac
2791        ;;
2792      *-linux-*)
2793        case "$CC" in
2794          icc* | */icc*)
2795            coin_opt_cflags="-O3 -ip -mp1"
2796            coin_add_cflags=""
2797            coin_dbg_cflags="-g"
2798            # Check if -i_dynamic is necessary (for new glibc library)
2799            CFLAGS=
2800            cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h.  */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h.  */
2806
2807int
2808main ()
2809{
2810int i=0; i++;
2811  ;
2812  return 0;
2813}
2814_ACEOF
2815rm -f conftest.$ac_objext conftest$ac_exeext
2816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2817  (eval $ac_link) 2>conftest.er1
2818  ac_status=$?
2819  grep -v '^ *+' conftest.er1 >conftest.err
2820  rm -f conftest.er1
2821  cat conftest.err >&5
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); } &&
2824         { ac_try='test -z "$ac_c_werror_flag"
2825                         || test ! -s conftest.err'
2826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827  (eval $ac_try) 2>&5
2828  ac_status=$?
2829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830  (exit $ac_status); }; } &&
2831         { ac_try='test -s conftest$ac_exeext'
2832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833  (eval $ac_try) 2>&5
2834  ac_status=$?
2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836  (exit $ac_status); }; }; then
2837  :
2838else
2839  echo "$as_me: failed program was:" >&5
2840sed 's/^/| /' conftest.$ac_ext >&5
2841
2842coin_add_cflags="-i_dynamic $coin_add_cflags"
2843fi
2844rm -f conftest.err conftest.$ac_objext \
2845      conftest$ac_exeext conftest.$ac_ext
2846            ;;
2847          pgcc* | */pgcc*)
2848            coin_opt_cflags="-fast"
2849            coin_add_cflags="-Kieee -pc 64"
2850            coin_dbg_cflags="-g"
2851            ;;
2852        esac
2853        ;;
2854      *-ibm-*)
2855        case "$CC" in
2856          xlc* | */xlc* | mpxlc* | */mpxlc*)
2857            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2858            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2859            coin_dbg_cflags="-g"
2860          ;;
2861        esac
2862        ;;
2863      *-hp-*)
2864        coin_opt_cflags="-O"
2865        coin_add_cflags="-Ae"
2866        coin_dbg_cflags="-g"
2867        ;;
2868      *-*-solaris*)
2869        coin_opt_cflags="-xO4"
2870        coin_dbg_cflags="-g"
2871        ;;
2872      *-sgi-*)
2873        coin_opt_cflags="-O -OPT:Olimit=0"
2874        coin_dbg_cflags="-g"
2875        ;;
2876    esac
2877  fi
2878
2879  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2880    coin_dbg_cflags="-g"
2881  fi
2882
2883  if test -z "$coin_opt_cflags"; then
2884    # Try if -O option works if nothing else is set
2885    CFLAGS="-O"
2886    cat >conftest.$ac_ext <<_ACEOF
2887/* confdefs.h.  */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h.  */
2892
2893int
2894main ()
2895{
2896int i=0; i++;
2897  ;
2898  return 0;
2899}
2900_ACEOF
2901rm -f conftest.$ac_objext conftest$ac_exeext
2902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2903  (eval $ac_link) 2>conftest.er1
2904  ac_status=$?
2905  grep -v '^ *+' conftest.er1 >conftest.err
2906  rm -f conftest.er1
2907  cat conftest.err >&5
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); } &&
2910         { ac_try='test -z "$ac_c_werror_flag"
2911                         || test ! -s conftest.err'
2912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913  (eval $ac_try) 2>&5
2914  ac_status=$?
2915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916  (exit $ac_status); }; } &&
2917         { ac_try='test -s conftest$ac_exeext'
2918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919  (eval $ac_try) 2>&5
2920  ac_status=$?
2921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922  (exit $ac_status); }; }; then
2923  coin_opt_cflags="-O"
2924else
2925  echo "$as_me: failed program was:" >&5
2926sed 's/^/| /' conftest.$ac_ext >&5
2927
2928fi
2929rm -f conftest.err conftest.$ac_objext \
2930      conftest$ac_exeext conftest.$ac_ext
2931  fi
2932
2933  # if PM doesn't want the warning messages, take them out
2934  if test x"$coin_skip_warn_cflags" = xyes; then
2935    coin_warn_cflags=
2936  fi
2937
2938  if test x${DBG_CFLAGS+set} != xset; then
2939    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2940  fi
2941  if test x${OPT_CFLAGS+set} != xset; then
2942    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2943  fi
2944
2945  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2946  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2947
2948  if test "$coin_debug_compile" = "true"; then
2949    CFLAGS="$DBG_CFLAGS"
2950  else
2951    CFLAGS="$OPT_CFLAGS"
2952  fi
2953else
2954  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2955  if test x${DBG_CFLAGS+set} != xset; then
2956    DBG_CFLAGS="$CFLAGS"
2957  fi
2958  if test x${OPT_CFLAGS+set} != xset; then
2959    OPT_CFLAGS="$CFLAGS"
2960  fi
2961fi
2962
2963# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2964
2965case "$CFLAGS" in
2966  *-mno-cygwin*)
2967    if test x${CPPFLAGS+set} != xset ; then
2968      CPPFLAGS="-mno-cygwin"
2969    else
2970      case "$CPPFLAGS" in
2971        *-mno-cygwin*)
2972          ;;
2973        *)
2974          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2975          ;;
2976      esac
2977    fi ;;
2978esac
2979
2980# Try if CFLAGS works
2981save_CFLAGS="$CFLAGS"
2982cat >conftest.$ac_ext <<_ACEOF
2983/* confdefs.h.  */
2984_ACEOF
2985cat confdefs.h >>conftest.$ac_ext
2986cat >>conftest.$ac_ext <<_ACEOF
2987/* end confdefs.h.  */
2988
2989int
2990main ()
2991{
2992int i=0; i++;
2993  ;
2994  return 0;
2995}
2996_ACEOF
2997rm -f conftest.$ac_objext conftest$ac_exeext
2998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2999  (eval $ac_link) 2>conftest.er1
3000  ac_status=$?
3001  grep -v '^ *+' conftest.er1 >conftest.err
3002  rm -f conftest.er1
3003  cat conftest.err >&5
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); } &&
3006         { ac_try='test -z "$ac_c_werror_flag"
3007                         || test ! -s conftest.err'
3008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3009  (eval $ac_try) 2>&5
3010  ac_status=$?
3011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012  (exit $ac_status); }; } &&
3013         { ac_try='test -s conftest$ac_exeext'
3014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3015  (eval $ac_try) 2>&5
3016  ac_status=$?
3017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018  (exit $ac_status); }; }; then
3019  :
3020else
3021  echo "$as_me: failed program was:" >&5
3022sed 's/^/| /' conftest.$ac_ext >&5
3023
3024CFLAGS=
3025fi
3026rm -f conftest.err conftest.$ac_objext \
3027      conftest$ac_exeext conftest.$ac_ext
3028if test -z "$CFLAGS"; then
3029  { 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
3030echo "$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;}
3031  CFLAGS='-O'
3032  cat >conftest.$ac_ext <<_ACEOF
3033/* confdefs.h.  */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h.  */
3038
3039int
3040main ()
3041{
3042int i=0; i++;
3043  ;
3044  return 0;
3045}
3046_ACEOF
3047rm -f conftest.$ac_objext conftest$ac_exeext
3048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3049  (eval $ac_link) 2>conftest.er1
3050  ac_status=$?
3051  grep -v '^ *+' conftest.er1 >conftest.err
3052  rm -f conftest.er1
3053  cat conftest.err >&5
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); } &&
3056         { ac_try='test -z "$ac_c_werror_flag"
3057                         || test ! -s conftest.err'
3058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059  (eval $ac_try) 2>&5
3060  ac_status=$?
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); }; } &&
3063         { ac_try='test -s conftest$ac_exeext'
3064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065  (eval $ac_try) 2>&5
3066  ac_status=$?
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); }; }; then
3069  :
3070else
3071  echo "$as_me: failed program was:" >&5
3072sed 's/^/| /' conftest.$ac_ext >&5
3073
3074CFLAGS=
3075fi
3076rm -f conftest.err conftest.$ac_objext \
3077      conftest$ac_exeext conftest.$ac_ext
3078  if test -z "$CFLAGS"; then
3079    { 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
3080echo "$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;}
3081  fi
3082fi
3083
3084{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3085echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3086
3087
3088if test x"$MPICC" = x; then :; else
3089  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3090echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3091  CC="$MPICC"
3092fi
3093
3094# Correct the LD variable if we are using the MS or Intel-windows compiler
3095case "$CC" in
3096  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3097    case $build in
3098  *-mingw*)
3099    if test "${LD+set}" = set; then :; else
3100      LD=link
3101    fi
3102    ;;
3103 esac
3104 case $enable_doscompile in
3105   msvc)
3106     if test "x${LD+set}" = xset; then :; else
3107       LD=link
3108     fi
3109     ;;
3110 esac
3111
3112    ;;
3113esac
3114
3115ac_ext=c
3116ac_cpp='$CPP $CPPFLAGS'
3117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3119ac_compiler_gnu=$ac_cv_c_compiler_gnu
3120
3121
3122
3123# Get the name of the C++ compiler and appropriate compiler options
3124
3125 #Let's try if that overcomes configuration problem with VC++ 6.0
3126
3127ac_ext=cc
3128ac_cpp='$CXXCPP $CPPFLAGS'
3129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3132
3133
3134
3135
3136
3137
3138
3139coin_has_cxx=yes
3140
3141save_cxxflags="$CXXFLAGS"
3142# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3143case $build in
3144  *-cygwin* | *-mingw*)
3145             if test "$enable_doscompile" = msvc ; then
3146               comps="icl cl"
3147             else
3148               comps="g++ cl"
3149             fi ;;
3150  *-*-solaris*)
3151             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3152  *-darwin*) comps="g++ c++ CC" ;;
3153  *-linux-gnu*)
3154             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3155          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3156esac
3157
3158# We delete the cached value, since the test might not have been
3159# performed with our choice of compilers earlier
3160$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3161# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3162ac_ext=cc
3163ac_cpp='$CXXCPP $CPPFLAGS'
3164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3167if test -n "$ac_tool_prefix"; then
3168  for ac_prog in $CCC $comps
3169  do
3170    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3172echo "$as_me:$LINENO: checking for $ac_word" >&5
3173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3174if test "${ac_cv_prog_CXX+set}" = set; then
3175  echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177  if test -n "$CXX"; then
3178  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3179else
3180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181for as_dir in $PATH
3182do
3183  IFS=$as_save_IFS
3184  test -z "$as_dir" && as_dir=.
3185  for ac_exec_ext in '' $ac_executable_extensions; do
3186  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3187    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3189    break 2
3190  fi
3191done
3192done
3193
3194fi
3195fi
3196CXX=$ac_cv_prog_CXX
3197if test -n "$CXX"; then
3198  echo "$as_me:$LINENO: result: $CXX" >&5
3199echo "${ECHO_T}$CXX" >&6
3200else
3201  echo "$as_me:$LINENO: result: no" >&5
3202echo "${ECHO_T}no" >&6
3203fi
3204
3205    test -n "$CXX" && break
3206  done
3207fi
3208if test -z "$CXX"; then
3209  ac_ct_CXX=$CXX
3210  for ac_prog in $CCC $comps
3211do
3212  # Extract the first word of "$ac_prog", so it can be a program name with args.
3213set dummy $ac_prog; ac_word=$2
3214echo "$as_me:$LINENO: checking for $ac_word" >&5
3215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3216if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3217  echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219  if test -n "$ac_ct_CXX"; then
3220  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3221else
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225  IFS=$as_save_IFS
3226  test -z "$as_dir" && as_dir=.
3227  for ac_exec_ext in '' $ac_executable_extensions; do
3228  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229    ac_cv_prog_ac_ct_CXX="$ac_prog"
3230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3231    break 2
3232  fi
3233done
3234done
3235
3236fi
3237fi
3238ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3239if test -n "$ac_ct_CXX"; then
3240  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3241echo "${ECHO_T}$ac_ct_CXX" >&6
3242else
3243  echo "$as_me:$LINENO: result: no" >&5
3244echo "${ECHO_T}no" >&6
3245fi
3246
3247  test -n "$ac_ct_CXX" && break
3248done
3249test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3250
3251  CXX=$ac_ct_CXX
3252fi
3253
3254
3255# Provide some information about the compiler.
3256echo "$as_me:$LINENO:" \
3257     "checking for C++ compiler version" >&5
3258ac_compiler=`set X $ac_compile; echo $2`
3259{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3260  (eval $ac_compiler --version </dev/null >&5) 2>&5
3261  ac_status=$?
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); }
3264{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3265  (eval $ac_compiler -v </dev/null >&5) 2>&5
3266  ac_status=$?
3267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268  (exit $ac_status); }
3269{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3270  (eval $ac_compiler -V </dev/null >&5) 2>&5
3271  ac_status=$?
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); }
3274
3275echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3276echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3277if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3278  echo $ECHO_N "(cached) $ECHO_C" >&6
3279else
3280  cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h.  */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h.  */
3286
3287int
3288main ()
3289{
3290#ifndef __GNUC__
3291       choke me
3292#endif
3293
3294  ;
3295  return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext
3299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3300  (eval $ac_compile) 2>conftest.er1
3301  ac_status=$?
3302  grep -v '^ *+' conftest.er1 >conftest.err
3303  rm -f conftest.er1
3304  cat conftest.err >&5
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); } &&
3307         { ac_try='test -z "$ac_cxx_werror_flag"
3308                         || test ! -s conftest.err'
3309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310  (eval $ac_try) 2>&5
3311  ac_status=$?
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); }; } &&
3314         { ac_try='test -s conftest.$ac_objext'
3315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316  (eval $ac_try) 2>&5
3317  ac_status=$?
3318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319  (exit $ac_status); }; }; then
3320  ac_compiler_gnu=yes
3321else
3322  echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325ac_compiler_gnu=no
3326fi
3327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3328ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3329
3330fi
3331echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3332echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3333GXX=`test $ac_compiler_gnu = yes && echo yes`
3334ac_test_CXXFLAGS=${CXXFLAGS+set}
3335ac_save_CXXFLAGS=$CXXFLAGS
3336CXXFLAGS="-g"
3337echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3338echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3339if test "${ac_cv_prog_cxx_g+set}" = set; then
3340  echo $ECHO_N "(cached) $ECHO_C" >&6
3341else
3342  cat >conftest.$ac_ext <<_ACEOF
3343/* confdefs.h.  */
3344_ACEOF
3345cat confdefs.h >>conftest.$ac_ext
3346cat >>conftest.$ac_ext <<_ACEOF
3347/* end confdefs.h.  */
3348
3349int
3350main ()
3351{
3352
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357rm -f conftest.$ac_objext
3358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359  (eval $ac_compile) 2>conftest.er1
3360  ac_status=$?
3361  grep -v '^ *+' conftest.er1 >conftest.err
3362  rm -f conftest.er1
3363  cat conftest.err >&5
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); } &&
3366         { ac_try='test -z "$ac_cxx_werror_flag"
3367                         || test ! -s conftest.err'
3368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369  (eval $ac_try) 2>&5
3370  ac_status=$?
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); }; } &&
3373         { ac_try='test -s conftest.$ac_objext'
3374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375  (eval $ac_try) 2>&5
3376  ac_status=$?
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); }; }; then
3379  ac_cv_prog_cxx_g=yes
3380else
3381  echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384ac_cv_prog_cxx_g=no
3385fi
3386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387fi
3388echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3389echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3390if test "$ac_test_CXXFLAGS" = set; then
3391  CXXFLAGS=$ac_save_CXXFLAGS
3392elif test $ac_cv_prog_cxx_g = yes; then
3393  if test "$GXX" = yes; then
3394    CXXFLAGS="-g -O2"
3395  else
3396    CXXFLAGS="-g"
3397  fi
3398else
3399  if test "$GXX" = yes; then
3400    CXXFLAGS="-O2"
3401  else
3402    CXXFLAGS=
3403  fi
3404fi
3405for ac_declaration in \
3406   '' \
3407   'extern "C" void std::exit (int) throw (); using std::exit;' \
3408   'extern "C" void std::exit (int); using std::exit;' \
3409   'extern "C" void exit (int) throw ();' \
3410   'extern "C" void exit (int);' \
3411   'void exit (int);'
3412do
3413  cat >conftest.$ac_ext <<_ACEOF
3414/* confdefs.h.  */
3415_ACEOF
3416cat confdefs.h >>conftest.$ac_ext
3417cat >>conftest.$ac_ext <<_ACEOF
3418/* end confdefs.h.  */
3419$ac_declaration
3420#include <stdlib.h>
3421int
3422main ()
3423{
3424exit (42);
3425  ;
3426  return 0;
3427}
3428_ACEOF
3429rm -f conftest.$ac_objext
3430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431  (eval $ac_compile) 2>conftest.er1
3432  ac_status=$?
3433  grep -v '^ *+' conftest.er1 >conftest.err
3434  rm -f conftest.er1
3435  cat conftest.err >&5
3436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); } &&
3438         { ac_try='test -z "$ac_cxx_werror_flag"
3439                         || test ! -s conftest.err'
3440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441  (eval $ac_try) 2>&5
3442  ac_status=$?
3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); }; } &&
3445         { ac_try='test -s conftest.$ac_objext'
3446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447  (eval $ac_try) 2>&5
3448  ac_status=$?
3449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450  (exit $ac_status); }; }; then
3451  :
3452else
3453  echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3456continue
3457fi
3458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3459  cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h.  */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h.  */
3465$ac_declaration
3466int
3467main ()
3468{
3469exit (42);
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476  (eval $ac_compile) 2>conftest.er1
3477  ac_status=$?
3478  grep -v '^ *+' conftest.er1 >conftest.err
3479  rm -f conftest.er1
3480  cat conftest.err >&5
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); } &&
3483         { ac_try='test -z "$ac_cxx_werror_flag"
3484                         || test ! -s conftest.err'
3485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486  (eval $ac_try) 2>&5
3487  ac_status=$?
3488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489  (exit $ac_status); }; } &&
3490         { ac_try='test -s conftest.$ac_objext'
3491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492  (eval $ac_try) 2>&5
3493  ac_status=$?
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); }; }; then
3496  break
3497else
3498  echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501fi
3502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3503done
3504rm -f conftest*
3505if test -n "$ac_declaration"; then
3506  echo '#ifdef __cplusplus' >>confdefs.h
3507  echo $ac_declaration      >>confdefs.h
3508  echo '#endif'             >>confdefs.h
3509fi
3510
3511ac_ext=cc
3512ac_cpp='$CXXCPP $CPPFLAGS'
3513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3516
3517
3518#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3519#thus, we test here whether $CXX is actually working
3520ac_ext=cc
3521ac_cpp='$CXXCPP $CPPFLAGS'
3522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3525
3526echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3527echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3528cat >conftest.$ac_ext <<_ACEOF
3529/* confdefs.h.  */
3530_ACEOF
3531cat confdefs.h >>conftest.$ac_ext
3532cat >>conftest.$ac_ext <<_ACEOF
3533/* end confdefs.h.  */
3534
3535int
3536main ()
3537{
3538int i=0;
3539  ;
3540  return 0;
3541}
3542_ACEOF
3543rm -f conftest.$ac_objext
3544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545  (eval $ac_compile) 2>conftest.er1
3546  ac_status=$?
3547  grep -v '^ *+' conftest.er1 >conftest.err
3548  rm -f conftest.er1
3549  cat conftest.err >&5
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); } &&
3552         { ac_try='test -z "$ac_cxx_werror_flag"
3553                         || test ! -s conftest.err'
3554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555  (eval $ac_try) 2>&5
3556  ac_status=$?
3557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558  (exit $ac_status); }; } &&
3559         { ac_try='test -s conftest.$ac_objext'
3560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561  (eval $ac_try) 2>&5
3562  ac_status=$?
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); }; }; then
3565  echo "$as_me:$LINENO: result: yes" >&5
3566echo "${ECHO_T}yes" >&6
3567else
3568  echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571echo "$as_me:$LINENO: result: no" >&5
3572echo "${ECHO_T}no" >&6
3573   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3574echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3575   { (exit 1); exit 1; }; }
3576
3577fi
3578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3579ac_ext=cc
3580ac_cpp='$CXXCPP $CPPFLAGS'
3581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3584
3585
3586coin_cxx_is_cl=false
3587# It seems that we need to cleanup something here for the Windows
3588case "$CXX" in
3589  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3590    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3591    mv confdefs.hh confdefs.h
3592    coin_cxx_is_cl=true
3593    ;;
3594esac
3595
3596# add automake conditional so we can recognize cl compiler in makefile
3597
3598
3599if test $coin_cxx_is_cl = true; then
3600  COIN_CXX_IS_CL_TRUE=
3601  COIN_CXX_IS_CL_FALSE='#'
3602else
3603  COIN_CXX_IS_CL_TRUE='#'
3604  COIN_CXX_IS_CL_FALSE=
3605fi
3606
3607
3608# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3609case "$CXX" in
3610  cl* | */cl* | CL* | */CL* )
3611    if test "$ac_cv_prog_cxx_g" = yes ; then
3612      ac_cv_prog_cxx_g=no
3613      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3614echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3615    fi ;;
3616esac
3617CXXFLAGS="$save_cxxflags"
3618
3619# Check if a project specific CXXFLAGS variable has been set
3620if test x$COIN_PRJCT != x; then
3621  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3622  if test x$coin_tmp = xset; then
3623    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3624  fi
3625fi
3626
3627if test x"$CXXFLAGS" = x; then
3628
3629# ToDo decide whether we want -DNDEBUG for optimization
3630  coin_add_cxxflags=
3631  coin_opt_cxxflags=
3632  coin_dbg_cxxflags=
3633  coin_warn_cxxflags=
3634
3635  if test "$GXX" = "yes"; then
3636    case "$CXX" in
3637      icpc* | */icpc*)
3638        ;;
3639      *)
3640# ToDo decide about unroll-loops
3641        coin_opt_cxxflags="-O3"
3642        coin_add_cxxflags="-pipe"
3643        coin_dbg_cxxflags="-g"
3644        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3645        case $build in
3646          *-darwin*)
3647            ;;
3648          *)
3649            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3650            ;;
3651        esac
3652
3653        case $enable_doscompile in
3654          mingw)
3655            CXXFLAGS="-mno-cygwin"
3656            cat >conftest.$ac_ext <<_ACEOF
3657/* confdefs.h.  */
3658_ACEOF
3659cat confdefs.h >>conftest.$ac_ext
3660cat >>conftest.$ac_ext <<_ACEOF
3661/* end confdefs.h.  */
3662
3663int
3664main ()
3665{
3666int i=0; i++;
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671rm -f conftest.$ac_objext conftest$ac_exeext
3672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3673  (eval $ac_link) 2>conftest.er1
3674  ac_status=$?
3675  grep -v '^ *+' conftest.er1 >conftest.err
3676  rm -f conftest.er1
3677  cat conftest.err >&5
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); } &&
3680         { ac_try='test -z "$ac_cxx_werror_flag"
3681                         || test ! -s conftest.err'
3682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683  (eval $ac_try) 2>&5
3684  ac_status=$?
3685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686  (exit $ac_status); }; } &&
3687         { ac_try='test -s conftest$ac_exeext'
3688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689  (eval $ac_try) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }; }; then
3693  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3694else
3695  echo "$as_me: failed program was:" >&5
3696sed 's/^/| /' conftest.$ac_ext >&5
3697
3698fi
3699rm -f conftest.err conftest.$ac_objext \
3700      conftest$ac_exeext conftest.$ac_ext
3701            CXXFLAGS=
3702          ;;
3703        esac
3704    esac
3705  fi
3706
3707# Note that we do not need to cover GCC in the following tests.
3708
3709  if test -z "$coin_opt_cxxflags"; then
3710    case $build in
3711      *-cygwin* | *-mingw*)
3712        case "$CXX" in
3713          cl* | */cl* | CL* | */CL*)
3714            # The MT and MTd options are mutually exclusive
3715            coin_opt_cxxflags='-MT -O2'
3716            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3717            coin_dbg_cxxflags='-MTd'
3718            ;;
3719          icl* | */icl* | ICL* | */ICL*)
3720            # The MT and MTd options are mutually exclusive
3721            coin_opt_cxxflags='-MT -Ox'
3722            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3723            coin_dbg_cxxflags='-MTd -debug'
3724            ;;
3725        esac
3726        ;;
3727      *-linux-*)
3728        case "$CXX" in
3729          icpc* | */icpc*)
3730            coin_opt_cxxflags="-O3 -ip -mp1"
3731            coin_add_cxxflags=""
3732            coin_dbg_cxxflags="-g"
3733            # Check if -i_dynamic is necessary (for new glibc library)
3734            CXXFLAGS=
3735            cat >conftest.$ac_ext <<_ACEOF
3736/* confdefs.h.  */
3737_ACEOF
3738cat confdefs.h >>conftest.$ac_ext
3739cat >>conftest.$ac_ext <<_ACEOF
3740/* end confdefs.h.  */
3741
3742int
3743main ()
3744{
3745int i=0; i++;
3746  ;
3747  return 0;
3748}
3749_ACEOF
3750rm -f conftest.$ac_objext conftest$ac_exeext
3751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3752  (eval $ac_link) 2>conftest.er1
3753  ac_status=$?
3754  grep -v '^ *+' conftest.er1 >conftest.err
3755  rm -f conftest.er1
3756  cat conftest.err >&5
3757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758  (exit $ac_status); } &&
3759         { ac_try='test -z "$ac_cxx_werror_flag"
3760                         || test ! -s conftest.err'
3761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3762  (eval $ac_try) 2>&5
3763  ac_status=$?
3764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765  (exit $ac_status); }; } &&
3766         { ac_try='test -s conftest$ac_exeext'
3767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768  (eval $ac_try) 2>&5
3769  ac_status=$?
3770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771  (exit $ac_status); }; }; then
3772  :
3773else
3774  echo "$as_me: failed program was:" >&5
3775sed 's/^/| /' conftest.$ac_ext >&5
3776
3777coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3778fi
3779rm -f conftest.err conftest.$ac_objext \
3780      conftest$ac_exeext conftest.$ac_ext
3781            ;;
3782          pgCC* | */pgCC*)
3783            coin_opt_cxxflags="-fast"
3784            coin_add_cxxflags="-Kieee -pc 64"
3785            coin_dbg_cxxflags="-g"
3786            ;;
3787        esac
3788        ;;
3789      *-ibm-*)
3790        case "$CXX" in
3791          xlC* | */xlC* | mpxlC* | */mpxlC*)
3792            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3793            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3794            coin_dbg_cxxflags="-g"
3795            ;;
3796        esac
3797        ;;
3798      *-hp-*)
3799        case "$CXX" in
3800          aCC* | */aCC* )
3801            coin_opt_cxxflags="-O"
3802            coin_add_cxxflags="-AA"
3803            coin_dbg_cxxflags="-g"
3804            ;;
3805        esac
3806        ;;
3807      *-*-solaris*)
3808          coin_opt_cxxflags="-O4"
3809          coin_dbg_cxxflags="-g"
3810        ;;
3811    esac
3812  fi
3813
3814# Generic flag settings. If these don't work, add a case above.
3815
3816  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3817    coin_dbg_cxxflags="-g"
3818  fi
3819
3820  if test -z "$coin_opt_cxxflags"; then
3821    # Try if -O option works if nothing else is set
3822    CXXFLAGS=-O
3823    cat >conftest.$ac_ext <<_ACEOF
3824/* confdefs.h.  */
3825_ACEOF
3826cat confdefs.h >>conftest.$ac_ext
3827cat >>conftest.$ac_ext <<_ACEOF
3828/* end confdefs.h.  */
3829
3830int
3831main ()
3832{
3833int i=0; i++;
3834  ;
3835  return 0;
3836}
3837_ACEOF
3838rm -f conftest.$ac_objext conftest$ac_exeext
3839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3840  (eval $ac_link) 2>conftest.er1
3841  ac_status=$?
3842  grep -v '^ *+' conftest.er1 >conftest.err
3843  rm -f conftest.er1
3844  cat conftest.err >&5
3845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846  (exit $ac_status); } &&
3847         { ac_try='test -z "$ac_cxx_werror_flag"
3848                         || test ! -s conftest.err'
3849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3850  (eval $ac_try) 2>&5
3851  ac_status=$?
3852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853  (exit $ac_status); }; } &&
3854         { ac_try='test -s conftest$ac_exeext'
3855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856  (eval $ac_try) 2>&5
3857  ac_status=$?
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); }; }; then
3860  coin_opt_cxxflags="-O"
3861else
3862  echo "$as_me: failed program was:" >&5
3863sed 's/^/| /' conftest.$ac_ext >&5
3864
3865fi
3866rm -f conftest.err conftest.$ac_objext \
3867      conftest$ac_exeext conftest.$ac_ext
3868  fi
3869
3870  # if PM doesn't want the warning messages, take them out
3871  if test x"$coin_skip_warn_cxxflags" = xyes; then
3872    coin_warn_cxxflags=
3873  fi
3874
3875# Do final setup of flags based on values determined above.
3876
3877  if test x${DBG_CXXFLAGS+set} != xset; then
3878    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3879  fi
3880  if test x${OPT_CXXFLAGS+set} != xset; then
3881    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3882  fi
3883
3884  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3885  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3886
3887  if test "$coin_debug_compile" = "true"; then
3888    CXXFLAGS="$DBG_CXXFLAGS"
3889  else
3890    CXXFLAGS="$OPT_CXXFLAGS"
3891  fi
3892
3893# Handle the case where CXXFLAGS was set externally.
3894else
3895  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3896  if test x${DBG_CXXFLAGS+set} != xset; then
3897    DBG_CXXFLAGS="$CXXFLAGS"
3898  fi
3899  if test x${OPT_CXXFLAGS+set} != xset; then
3900    OPT_CXXFLAGS="$CXXFLAGS"
3901  fi
3902fi
3903
3904# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3905
3906case "$CXXFLAGS" in
3907  *-mno-cygwin*)
3908    if test x${CPPFLAGS+set} != xset ; then
3909      CPPFLAGS="-mno-cygwin"
3910    else
3911      case "$CPPFLAGS" in
3912        *-mno-cygwin*)
3913          ;;
3914        *)
3915          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3916          ;;
3917      esac
3918    fi ;;
3919esac
3920
3921# Try if CXXFLAGS works
3922save_CXXFLAGS="$CXXFLAGS"
3923cat >conftest.$ac_ext <<_ACEOF
3924/* confdefs.h.  */
3925_ACEOF
3926cat confdefs.h >>conftest.$ac_ext
3927cat >>conftest.$ac_ext <<_ACEOF
3928/* end confdefs.h.  */
3929
3930int
3931main ()
3932{
3933int i=0; i++;
3934  ;
3935  return 0;
3936}
3937_ACEOF
3938rm -f conftest.$ac_objext conftest$ac_exeext
3939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3940  (eval $ac_link) 2>conftest.er1
3941  ac_status=$?
3942  grep -v '^ *+' conftest.er1 >conftest.err
3943  rm -f conftest.er1
3944  cat conftest.err >&5
3945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946  (exit $ac_status); } &&
3947         { ac_try='test -z "$ac_cxx_werror_flag"
3948                         || test ! -s conftest.err'
3949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950  (eval $ac_try) 2>&5
3951  ac_status=$?
3952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953  (exit $ac_status); }; } &&
3954         { ac_try='test -s conftest$ac_exeext'
3955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3956  (eval $ac_try) 2>&5
3957  ac_status=$?
3958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); }; }; then
3960  :
3961else
3962  echo "$as_me: failed program was:" >&5
3963sed 's/^/| /' conftest.$ac_ext >&5
3964
3965CXXFLAGS=
3966fi
3967rm -f conftest.err conftest.$ac_objext \
3968      conftest$ac_exeext conftest.$ac_ext
3969if test -z "$CXXFLAGS"; then
3970  { 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
3971echo "$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;}
3972  CXXFLAGS='-O'
3973  cat >conftest.$ac_ext <<_ACEOF
3974/* confdefs.h.  */
3975_ACEOF
3976cat confdefs.h >>conftest.$ac_ext
3977cat >>conftest.$ac_ext <<_ACEOF
3978/* end confdefs.h.  */
3979
3980int
3981main ()
3982{
3983int i=0; i++;
3984  ;
3985  return 0;
3986}
3987_ACEOF
3988rm -f conftest.$ac_objext conftest$ac_exeext
3989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3990  (eval $ac_link) 2>conftest.er1
3991  ac_status=$?
3992  grep -v '^ *+' conftest.er1 >conftest.err
3993  rm -f conftest.er1
3994  cat conftest.err >&5
3995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996  (exit $ac_status); } &&
3997         { ac_try='test -z "$ac_cxx_werror_flag"
3998                         || test ! -s conftest.err'
3999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000  (eval $ac_try) 2>&5
4001  ac_status=$?
4002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003  (exit $ac_status); }; } &&
4004         { ac_try='test -s conftest$ac_exeext'
4005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4006  (eval $ac_try) 2>&5
4007  ac_status=$?
4008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009  (exit $ac_status); }; }; then
4010  :
4011else
4012  echo "$as_me: failed program was:" >&5
4013sed 's/^/| /' conftest.$ac_ext >&5
4014
4015CXXFLAGS=
4016fi
4017rm -f conftest.err conftest.$ac_objext \
4018      conftest$ac_exeext conftest.$ac_ext
4019  if test -z "$CXXFLAGS"; then
4020    { 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
4021echo "$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;}
4022  fi
4023fi
4024
4025{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4026echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4027
4028
4029if test x"$MPICXX" = x; then :; else
4030  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4031echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4032  CXX="$MPICXX"
4033fi
4034
4035# correct the LD variable in a mingw build with MS or intel compiler
4036case "$CXX" in
4037  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4038    case $build in
4039  *-mingw*)
4040    if test "${LD+set}" = set; then :; else
4041      LD=link
4042    fi
4043    ;;
4044 esac
4045 case $enable_doscompile in
4046   msvc)
4047     if test "x${LD+set}" = xset; then :; else
4048       LD=link
4049     fi
4050     ;;
4051 esac
4052
4053    ;;
4054esac
4055
4056ac_ext=c
4057ac_cpp='$CPP $CPPFLAGS'
4058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061
4062
4063
4064# Get the name of the Fortran compiler and appropriate compiler options
4065case $build in
4066  *-cygwin* | *-mingw*)
4067     if test "$enable_doscompile" = msvc ; then
4068       coin_f77_comps="ifort fl32 compile_f2c"
4069     else
4070       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4071     fi ;;
4072  *-*-solaris*)
4073     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4074  *-linux-gnu*)
4075     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4076  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4077 esac
4078
4079
4080
4081
4082
4083
4084ac_ext=f
4085ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4086ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4088
4089
4090
4091
4092
4093
4094coin_has_f77=yes
4095
4096save_fflags="$FFLAGS"
4097
4098# We delete the cached value, since the test might not have been
4099# performed with our choice of compilers earlier
4100$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4101
4102# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4103# coin_f77_comps to see if there's a program that matches one of the names.
4104# If there's no such program, F77 = unavailable. If we match the name,
4105# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4106# compiler.
4107# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4108
4109
4110{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4111echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4112for ac_prog in $coin_f77_comps
4113do
4114  # Extract the first word of "$ac_prog", so it can be a program name with args.
4115set dummy $ac_prog; ac_word=$2
4116echo "$as_me:$LINENO: checking for $ac_word" >&5
4117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118if test "${ac_cv_prog_F77+set}" = set; then
4119  echo $ECHO_N "(cached) $ECHO_C" >&6
4120else
4121  if test -n "$F77"; then
4122  ac_cv_prog_F77="$F77" # Let the user override the test.
4123else
4124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125for as_dir in $PATH
4126do
4127  IFS=$as_save_IFS
4128  test -z "$as_dir" && as_dir=.
4129  for ac_exec_ext in '' $ac_executable_extensions; do
4130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131    ac_cv_prog_F77="$ac_prog"
4132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133    break 2
4134  fi
4135done
4136done
4137
4138fi
4139fi
4140F77=$ac_cv_prog_F77
4141if test -n "$F77"; then
4142  echo "$as_me:$LINENO: result: $F77" >&5
4143echo "${ECHO_T}$F77" >&6
4144else
4145  echo "$as_me:$LINENO: result: no" >&5
4146echo "${ECHO_T}no" >&6
4147fi
4148
4149  test -n "$F77" && break
4150done
4151test -n "$F77" || F77="unavailable"
4152
4153
4154if test "$F77" != "unavailable" ; then
4155  ac_ext=f
4156ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4157ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4159if test -n "$ac_tool_prefix"; then
4160  for ac_prog in $coin_f77_comps
4161  do
4162    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4163set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4164echo "$as_me:$LINENO: checking for $ac_word" >&5
4165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4166if test "${ac_cv_prog_F77+set}" = set; then
4167  echo $ECHO_N "(cached) $ECHO_C" >&6
4168else
4169  if test -n "$F77"; then
4170  ac_cv_prog_F77="$F77" # Let the user override the test.
4171else
4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173for as_dir in $PATH
4174do
4175  IFS=$as_save_IFS
4176  test -z "$as_dir" && as_dir=.
4177  for ac_exec_ext in '' $ac_executable_extensions; do
4178  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4179    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4180    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181    break 2
4182  fi
4183done
4184done
4185
4186fi
4187fi
4188F77=$ac_cv_prog_F77
4189if test -n "$F77"; then
4190  echo "$as_me:$LINENO: result: $F77" >&5
4191echo "${ECHO_T}$F77" >&6
4192else
4193  echo "$as_me:$LINENO: result: no" >&5
4194echo "${ECHO_T}no" >&6
4195fi
4196
4197    test -n "$F77" && break
4198  done
4199fi
4200if test -z "$F77"; then
4201  ac_ct_F77=$F77
4202  for ac_prog in $coin_f77_comps
4203do
4204  # Extract the first word of "$ac_prog", so it can be a program name with args.
4205set dummy $ac_prog; ac_word=$2
4206echo "$as_me:$LINENO: checking for $ac_word" >&5
4207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4208if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4209  echo $ECHO_N "(cached) $ECHO_C" >&6
4210else
4211  if test -n "$ac_ct_F77"; then
4212  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4213else
4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215for as_dir in $PATH
4216do
4217  IFS=$as_save_IFS
4218  test -z "$as_dir" && as_dir=.
4219  for ac_exec_ext in '' $ac_executable_extensions; do
4220  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4221    ac_cv_prog_ac_ct_F77="$ac_prog"
4222    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4223    break 2
4224  fi
4225done
4226done
4227
4228fi
4229fi
4230ac_ct_F77=$ac_cv_prog_ac_ct_F77
4231if test -n "$ac_ct_F77"; then
4232  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4233echo "${ECHO_T}$ac_ct_F77" >&6
4234else
4235  echo "$as_me:$LINENO: result: no" >&5
4236echo "${ECHO_T}no" >&6
4237fi
4238
4239  test -n "$ac_ct_F77" && break
4240done
4241
4242  F77=$ac_ct_F77
4243fi
4244
4245
4246# Provide some information about the compiler.
4247echo "$as_me:4247:" \
4248     "checking for Fortran 77 compiler version" >&5
4249ac_compiler=`set X $ac_compile; echo $2`
4250{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4251  (eval $ac_compiler --version </dev/null >&5) 2>&5
4252  ac_status=$?
4253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254  (exit $ac_status); }
4255{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4256  (eval $ac_compiler -v </dev/null >&5) 2>&5
4257  ac_status=$?
4258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259  (exit $ac_status); }
4260{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4261  (eval $ac_compiler -V </dev/null >&5) 2>&5
4262  ac_status=$?
4263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264  (exit $ac_status); }
4265rm -f a.out
4266
4267# If we don't use `.F' as extension, the preprocessor is not run on the
4268# input file.  (Note that this only needs to work for GNU compilers.)
4269ac_save_ext=$ac_ext
4270ac_ext=F
4271echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4272echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4273if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4274  echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276  cat >conftest.$ac_ext <<_ACEOF
4277      program main
4278#ifndef __GNUC__
4279       choke me
4280#endif
4281
4282      end
4283_ACEOF
4284rm -f conftest.$ac_objext
4285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4286  (eval $ac_compile) 2>conftest.er1
4287  ac_status=$?
4288  grep -v '^ *+' conftest.er1 >conftest.err
4289  rm -f conftest.er1
4290  cat conftest.err >&5
4291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292  (exit $ac_status); } &&
4293         { ac_try='test -z "$ac_f77_werror_flag"
4294                         || test ! -s conftest.err'
4295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296  (eval $ac_try) 2>&5
4297  ac_status=$?
4298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299  (exit $ac_status); }; } &&
4300         { ac_try='test -s conftest.$ac_objext'
4301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302  (eval $ac_try) 2>&5
4303  ac_status=$?
4304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305  (exit $ac_status); }; }; then
4306  ac_compiler_gnu=yes
4307else
4308  echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
4310
4311ac_compiler_gnu=no
4312fi
4313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4314ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4315
4316fi
4317echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4318echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4319ac_ext=$ac_save_ext
4320ac_test_FFLAGS=${FFLAGS+set}
4321ac_save_FFLAGS=$FFLAGS
4322FFLAGS=
4323echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4324echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4325if test "${ac_cv_prog_f77_g+set}" = set; then
4326  echo $ECHO_N "(cached) $ECHO_C" >&6
4327else
4328  FFLAGS=-g
4329cat >conftest.$ac_ext <<_ACEOF
4330      program main
4331
4332      end
4333_ACEOF
4334rm -f conftest.$ac_objext
4335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4336  (eval $ac_compile) 2>conftest.er1
4337  ac_status=$?
4338  grep -v '^ *+' conftest.er1 >conftest.err
4339  rm -f conftest.er1
4340  cat conftest.err >&5
4341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342  (exit $ac_status); } &&
4343         { ac_try='test -z "$ac_f77_werror_flag"
4344                         || test ! -s conftest.err'
4345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4346  (eval $ac_try) 2>&5
4347  ac_status=$?
4348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349  (exit $ac_status); }; } &&
4350         { ac_try='test -s conftest.$ac_objext'
4351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4352  (eval $ac_try) 2>&5
4353  ac_status=$?
4354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355  (exit $ac_status); }; }; then
4356  ac_cv_prog_f77_g=yes
4357else
4358  echo "$as_me: failed program was:" >&5
4359sed 's/^/| /' conftest.$ac_ext >&5
4360
4361ac_cv_prog_f77_g=no
4362fi
4363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4364
4365fi
4366echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4367echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4368if test "$ac_test_FFLAGS" = set; then
4369  FFLAGS=$ac_save_FFLAGS
4370elif test $ac_cv_prog_f77_g = yes; then
4371  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4372    FFLAGS="-g -O2"
4373  else
4374    FFLAGS="-g"
4375  fi
4376else
4377  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4378    FFLAGS="-O2"
4379  else
4380    FFLAGS=
4381  fi
4382fi
4383
4384G77=`test $ac_compiler_gnu = yes && echo yes`
4385ac_ext=f
4386ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4387ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4389
4390else
4391  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4392echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4393fi
4394
4395FFLAGS="$save_fflags"
4396
4397# Check if a project specific FFLAGS variable has been set
4398if test x$COIN_PRJCT != x; then
4399  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4400  if test x$coin_tmp = xset; then
4401    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4402  fi
4403fi
4404
4405if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4406
4407  coin_add_fflags=
4408  coin_opt_fflags=
4409  coin_dbg_fflags=
4410  coin_warn_fflags=
4411
4412  if test "$G77" = "yes"; then
4413    coin_opt_fflags="-O3"
4414    coin_add_fflags="-pipe"
4415    coin_dbg_fflags="-g"
4416    case $enable_doscompile in
4417      mingw)
4418        FFLAGS="-mno-cygwin"
4419        cat >conftest.$ac_ext <<_ACEOF
4420      program main
4421      write(*,*) 'Hello world'
4422      end
4423_ACEOF
4424rm -f conftest.$ac_objext conftest$ac_exeext
4425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4426  (eval $ac_link) 2>conftest.er1
4427  ac_status=$?
4428  grep -v '^ *+' conftest.er1 >conftest.err
4429  rm -f conftest.er1
4430  cat conftest.err >&5
4431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432  (exit $ac_status); } &&
4433         { ac_try='test -z "$ac_f77_werror_flag"
4434                         || test ! -s conftest.err'
4435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436  (eval $ac_try) 2>&5
4437  ac_status=$?
4438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439  (exit $ac_status); }; } &&
4440         { ac_try='test -s conftest$ac_exeext'
4441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442  (eval $ac_try) 2>&5
4443  ac_status=$?
4444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445  (exit $ac_status); }; }; then
4446  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4447else
4448  echo "$as_me: failed program was:" >&5
4449sed 's/^/| /' conftest.$ac_ext >&5
4450
4451fi
4452rm -f conftest.err conftest.$ac_objext \
4453      conftest$ac_exeext conftest.$ac_ext
4454        FFLAGS=
4455      ;;
4456    esac
4457  else
4458    case $build in
4459      *-cygwin* | *-mingw*)
4460        case $F77 in
4461          ifort* | */ifort* | IFORT* | */IFORT* )
4462            coin_opt_fflags='-MT -O3'
4463            coin_add_fflags='-fpp -nologo'
4464            coin_dbg_fflags='-MTd -debug'
4465          ;;
4466          compile_f2c*)
4467            coin_opt_fflags='-MT -O2'
4468            coin_add_fflags='-nologo -wd4996'
4469            coin_dbg_fflags='-MTd'
4470          ;;
4471        esac
4472        ;;
4473      *-linux-*)
4474        case $F77 in
4475          ifc* | */ifc* | ifort* | */ifort*)
4476            coin_opt_fflags="-O3 -ip"
4477            coin_add_fflags="-cm -w90 -w95"
4478            coin_dbg_fflags="-g -CA -CB -CS"
4479            # Check if -i_dynamic is necessary (for new glibc library)
4480            FFLAGS=
4481            cat >conftest.$ac_ext <<_ACEOF
4482      program main
4483      write(*,*) 'Hello world'
4484      end
4485_ACEOF
4486rm -f conftest.$ac_objext conftest$ac_exeext
4487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4488  (eval $ac_link) 2>conftest.er1
4489  ac_status=$?
4490  grep -v '^ *+' conftest.er1 >conftest.err
4491  rm -f conftest.er1
4492  cat conftest.err >&5
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); } &&
4495         { ac_try='test -z "$ac_f77_werror_flag"
4496                         || test ! -s conftest.err'
4497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4498  (eval $ac_try) 2>&5
4499  ac_status=$?
4500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501  (exit $ac_status); }; } &&
4502         { ac_try='test -s conftest$ac_exeext'
4503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504  (eval $ac_try) 2>&5
4505  ac_status=$?
4506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507  (exit $ac_status); }; }; then
4508  :
4509else
4510  echo "$as_me: failed program was:" >&5
4511sed 's/^/| /' conftest.$ac_ext >&5
4512
4513coin_add_fflags="-i_dynamic $coin_add_fflags"
4514fi
4515rm -f conftest.err conftest.$ac_objext \
4516      conftest$ac_exeext conftest.$ac_ext
4517            ;;
4518          pgf77* | */pgf77* | pgf90* | */pgf90*)
4519            coin_opt_fflags="-fast"
4520            coin_add_fflags="-Kieee -pc 64"
4521            coin_dbg_fflags="-g"
4522          ;;
4523        esac
4524        ;;
4525      *-ibm-*)
4526        case "$F77" in
4527          xlf* | */xlf* | mpxlf* | */mpxlf* )
4528            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4529            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4530            coin_dbg_fflags="-g -C"
4531            ;;
4532        esac
4533        ;;
4534      *-hp-*)
4535        coin_opt_fflags="+O3"
4536        coin_add_fflags="+U77"
4537        coin_dbg_fflags="-C -g"
4538        ;;
4539      *-*-solaris*)
4540        coin_opt_fflags="-O4"
4541        coin_dbg_fflags="-g"
4542        ;;
4543      *-sgi-*)
4544        coin_opt_fflags="-O5 -OPT:Olimit=0"
4545        coin_dbg_fflags="-g"
4546        ;;
4547    esac
4548  fi
4549
4550  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4551    coin_dbg_fflags="-g"
4552  fi
4553
4554  if test -z "$coin_opt_fflags"; then
4555    # Try if -O option works if nothing else is set
4556    FFLAGS=-O
4557    cat >conftest.$ac_ext <<_ACEOF
4558      program main
4559      integer i
4560      end
4561_ACEOF
4562rm -f conftest.$ac_objext conftest$ac_exeext
4563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4564  (eval $ac_link) 2>conftest.er1
4565  ac_status=$?
4566  grep -v '^ *+' conftest.er1 >conftest.err
4567  rm -f conftest.er1
4568  cat conftest.err >&5
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); } &&
4571         { ac_try='test -z "$ac_f77_werror_flag"
4572                         || test ! -s conftest.err'
4573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574  (eval $ac_try) 2>&5
4575  ac_status=$?
4576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577  (exit $ac_status); }; } &&
4578         { ac_try='test -s conftest$ac_exeext'
4579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4580  (eval $ac_try) 2>&5
4581  ac_status=$?
4582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583  (exit $ac_status); }; }; then
4584  coin_opt_fflags="-O"
4585else
4586  echo "$as_me: failed program was:" >&5
4587sed 's/^/| /' conftest.$ac_ext >&5
4588
4589fi
4590rm -f conftest.err conftest.$ac_objext \
4591      conftest$ac_exeext conftest.$ac_ext
4592  fi
4593
4594  # if PM doesn't want the warning messages, take them out
4595  if test x"$coin_skip_warn_fflags" = xyes; then
4596    coin_warn_fflags=
4597  fi
4598
4599  if test x${DBG_FFLAGS+set} != xset; then
4600    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4601  fi
4602  if test x${OPT_FFLAGS+set} != xset; then
4603    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4604  fi
4605
4606  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4607  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4608
4609  if test "$coin_debug_compile" = "true"; then
4610    FFLAGS="$DBG_FFLAGS"
4611  else
4612    FFLAGS="$OPT_FFLAGS"
4613  fi
4614else
4615  FFLAGS="$FFLAGS $ADD_FFLAGS"
4616  if test x${DBG_FFLAGS+set} != xset; then
4617    DBG_FFLAGS="$FFLAGS"
4618  fi
4619  if test x${OPT_FFLAGS+set} != xset; then
4620    OPT_FFLAGS="$FFLAGS"
4621  fi
4622fi
4623
4624# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4625case "$FFLAGS" in
4626  *-mno-cygwin*)
4627    if test x${CPPFLAGS+set} != xset ; then
4628      CPPFLAGS="-mno-cygwin"
4629    else
4630      case "$CPPFLAGS" in
4631        *-mno-cygwin*)
4632          ;;
4633        *)
4634          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4635          ;;
4636      esac
4637    fi ;;
4638esac
4639
4640# Try if FFLAGS works
4641if test "$F77" != "unavailable" ; then
4642  cat >conftest.$ac_ext <<_ACEOF
4643      program main
4644      integer i
4645      end
4646_ACEOF
4647rm -f conftest.$ac_objext conftest$ac_exeext
4648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4649  (eval $ac_link) 2>conftest.er1
4650  ac_status=$?
4651  grep -v '^ *+' conftest.er1 >conftest.err
4652  rm -f conftest.er1
4653  cat conftest.err >&5
4654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655  (exit $ac_status); } &&
4656         { ac_try='test -z "$ac_f77_werror_flag"
4657                         || test ! -s conftest.err'
4658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659  (eval $ac_try) 2>&5
4660  ac_status=$?
4661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662  (exit $ac_status); }; } &&
4663         { ac_try='test -s conftest$ac_exeext'
4664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4665  (eval $ac_try) 2>&5
4666  ac_status=$?
4667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668  (exit $ac_status); }; }; then
4669  :
4670else
4671  echo "$as_me: failed program was:" >&5
4672sed 's/^/| /' conftest.$ac_ext >&5
4673
4674FFLAGS=
4675fi
4676rm -f conftest.err conftest.$ac_objext \
4677      conftest$ac_exeext conftest.$ac_ext
4678  if test -z "$FFLAGS"; then
4679    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4680echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4681    FFLAGS='-O'
4682    cat >conftest.$ac_ext <<_ACEOF
4683      program main
4684      integer i
4685      end
4686_ACEOF
4687rm -f conftest.$ac_objext conftest$ac_exeext
4688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4689  (eval $ac_link) 2>conftest.er1
4690  ac_status=$?
4691  grep -v '^ *+' conftest.er1 >conftest.err
4692  rm -f conftest.er1
4693  cat conftest.err >&5
4694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695  (exit $ac_status); } &&
4696         { ac_try='test -z "$ac_f77_werror_flag"
4697                         || test ! -s conftest.err'
4698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699  (eval $ac_try) 2>&5
4700  ac_status=$?
4701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702  (exit $ac_status); }; } &&
4703         { ac_try='test -s conftest$ac_exeext'
4704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705  (eval $ac_try) 2>&5
4706  ac_status=$?
4707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708  (exit $ac_status); }; }; then
4709  :
4710else
4711  echo "$as_me: failed program was:" >&5
4712sed 's/^/| /' conftest.$ac_ext >&5
4713
4714FFLAGS=
4715fi
4716rm -f conftest.err conftest.$ac_objext \
4717      conftest$ac_exeext conftest.$ac_ext
4718    if test -z "$FFLAGS"; then
4719      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4720echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4721    fi
4722  fi
4723fi
4724
4725{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4726echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4727
4728
4729if test x"$MPIF77" = x; then :; else
4730  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4731echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4732  F77="$MPIF77"
4733fi
4734
4735# correct the LD variable if we use the intel fortran compiler in windows
4736case "$F77" in
4737  ifort* | */ifort* | IFORT* | */IFORT*)
4738    case $build in
4739  *-mingw*)
4740    if test "${LD+set}" = set; then :; else
4741      LD=link
4742    fi
4743    ;;
4744 esac
4745 case $enable_doscompile in
4746   msvc)
4747     if test "x${LD+set}" = xset; then :; else
4748       LD=link
4749     fi
4750     ;;
4751 esac
4752
4753    ;;
4754esac
4755
4756ac_ext=c
4757ac_cpp='$CPP $CPPFLAGS'
4758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761
4762
4763
4764# Initialize automake and libtool
4765# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4766{
4767
4768
4769
4770# START
4771
4772# Test if force_shared has been set
4773if test "x" = xforce_shared; then
4774  if test x$enable_shared = xno; then
4775    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4776echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4777   { (exit 1); exit 1; }; }
4778  fi
4779  enable_shared=yes;
4780else
4781  # On Cygwin and AIX, building DLLs doesn't work
4782  case $build in
4783    *-cygwin*)
4784      coin_disable_shared=yes
4785      platform=Cygwin
4786    ;;
4787    *-aix*)
4788      coin_disable_shared=yes
4789      platform=AIX
4790    ;;
4791    *-mingw*)
4792      coin_disable_shared=yes
4793      platform="Msys"
4794#      case "$CXX" in
4795#        cl*)
4796#          coin_disable_shared=yes
4797#          platform="Msys with cl"
4798#      ;;
4799#      esac
4800    ;;
4801  esac
4802fi
4803if test x"$coin_disable_shared" = xyes; then
4804  if test x"$enable_shared" = xyes; then
4805    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4806echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4807  fi
4808  enable_shared=no
4809fi
4810# By default, we only want the shared objects to be compiled
4811# Check whether --enable-static or --disable-static was given.
4812if test "${enable_static+set}" = set; then
4813  enableval="$enable_static"
4814  p=${PACKAGE-default}
4815    case $enableval in
4816    yes) enable_static=yes ;;
4817    no) enable_static=no ;;
4818    *)
4819     enable_static=no
4820      # Look at the argument we got.  We use all the common list separators.
4821      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4822      for pkg in $enableval; do
4823        IFS="$lt_save_ifs"
4824        if test "X$pkg" = "X$p"; then
4825          enable_static=yes
4826        fi
4827      done
4828      IFS="$lt_save_ifs"
4829      ;;
4830    esac
4831else
4832  enable_static=no
4833fi;
4834
4835
4836
4837
4838# Initialize automake
4839echo "$as_me:$LINENO: checking for egrep" >&5
4840echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4841if test "${ac_cv_prog_egrep+set}" = set; then
4842  echo $ECHO_N "(cached) $ECHO_C" >&6
4843else
4844  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4845    then ac_cv_prog_egrep='grep -E'
4846    else ac_cv_prog_egrep='egrep'
4847    fi
4848fi
4849echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4850echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4851 EGREP=$ac_cv_prog_egrep
4852
4853
4854echo "$as_me:$LINENO: checking whether ln -s works" >&5
4855echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4856LN_S=$as_ln_s
4857if test "$LN_S" = "ln -s"; then
4858  echo "$as_me:$LINENO: result: yes" >&5
4859echo "${ECHO_T}yes" >&6
4860else
4861  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4862echo "${ECHO_T}no, using $LN_S" >&6
4863fi
4864
4865am__api_version="1.9"
4866# Find a good install program.  We prefer a C program (faster),
4867# so one script is as good as another.  But avoid the broken or
4868# incompatible versions:
4869# SysV /etc/install, /usr/sbin/install
4870# SunOS /usr/etc/install
4871# IRIX /sbin/install
4872# AIX /bin/install
4873# AmigaOS /C/install, which installs bootblocks on floppy discs
4874# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4875# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4876# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4877# OS/2's system install, which has a completely different semantic
4878# ./install, which can be erroneously created by make from ./install.sh.
4879echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4880echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4881if test -z "$INSTALL"; then
4882if test "${ac_cv_path_install+set}" = set; then
4883  echo $ECHO_N "(cached) $ECHO_C" >&6
4884else
4885  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886for as_dir in $PATH
4887do
4888  IFS=$as_save_IFS
4889  test -z "$as_dir" && as_dir=.
4890  # Account for people who put trailing slashes in PATH elements.
4891case $as_dir/ in
4892  ./ | .// | /cC/* | \
4893  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4894  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4895  /usr/ucb/* ) ;;
4896  *)
4897    # OSF1 and SCO ODT 3.0 have their own names for install.
4898    # Don't use installbsd from OSF since it installs stuff as root
4899    # by default.
4900    for ac_prog in ginstall scoinst install; do
4901      for ac_exec_ext in '' $ac_executable_extensions; do
4902        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4903          if test $ac_prog = install &&
4904            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4905            # AIX install.  It has an incompatible calling convention.
4906            :
4907          elif test $ac_prog = install &&
4908            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4909            # program-specific install script used by HP pwplus--don't use.
4910            :
4911          else
4912            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4913            break 3
4914          fi
4915        fi
4916      done
4917    done
4918    ;;
4919esac
4920done
4921
4922
4923fi
4924  if test "${ac_cv_path_install+set}" = set; then
4925    INSTALL=$ac_cv_path_install
4926  else
4927    # As a last resort, use the slow shell script.  We don't cache a
4928    # path for INSTALL within a source directory, because that will
4929    # break other packages using the cache if that directory is
4930    # removed, or if the path is relative.
4931    INSTALL=$ac_install_sh
4932  fi
4933fi
4934echo "$as_me:$LINENO: result: $INSTALL" >&5
4935echo "${ECHO_T}$INSTALL" >&6
4936
4937# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4938# It thinks the first close brace ends the variable substitution.
4939test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4940
4941test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4942
4943test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4944
4945echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4946echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4947# Just in case
4948sleep 1
4949echo timestamp > conftest.file
4950# Do `set' in a subshell so we don't clobber the current shell's
4951# arguments.  Must try -L first in case configure is actually a
4952# symlink; some systems play weird games with the mod time of symlinks
4953# (eg FreeBSD returns the mod time of the symlink's containing
4954# directory).
4955if (
4956   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4957   if test "$*" = "X"; then
4958      # -L didn't work.
4959      set X `ls -t $srcdir/configure conftest.file`
4960   fi
4961   rm -f conftest.file
4962   if test "$*" != "X $srcdir/configure conftest.file" \
4963      && test "$*" != "X conftest.file $srcdir/configure"; then
4964
4965      # If neither matched, then we have a broken ls.  This can happen
4966      # if, for instance, CONFIG_SHELL is bash and it inherits a
4967      # broken ls alias from the environment.  This has actually
4968      # happened.  Such a system could not be considered "sane".
4969      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4970alias in your environment" >&5
4971echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4972alias in your environment" >&2;}
4973   { (exit 1); exit 1; }; }
4974   fi
4975
4976   test "$2" = conftest.file
4977   )
4978then
4979   # Ok.
4980   :
4981else
4982   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4983Check your system clock" >&5
4984echo "$as_me: error: newly created file is older than distributed files!
4985Check your system clock" >&2;}
4986   { (exit 1); exit 1; }; }
4987fi
4988echo "$as_me:$LINENO: result: yes" >&5
4989echo "${ECHO_T}yes" >&6
4990test "$program_prefix" != NONE &&
4991  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4992# Use a double $ so make ignores it.
4993test "$program_suffix" != NONE &&
4994  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4995# Double any \ or $.  echo might interpret backslashes.
4996# By default was `s,x,x', remove it if useless.
4997cat <<\_ACEOF >conftest.sed
4998s/[\\$]/&&/g;s/;s,x,x,$//
4999_ACEOF
5000program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5001rm conftest.sed
5002
5003# expand $ac_aux_dir to an absolute path
5004am_aux_dir=`cd $ac_aux_dir && pwd`
5005
5006test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5007# Use eval to expand $SHELL
5008if eval "$MISSING --run true"; then
5009  am_missing_run="$MISSING --run "
5010else
5011  am_missing_run=
5012  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5013echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5014fi
5015
5016if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5017  # We used to keeping the `.' as first argument, in order to
5018  # allow $(mkdir_p) to be used without argument.  As in
5019  #   $(mkdir_p) $(somedir)
5020  # where $(somedir) is conditionally defined.  However this is wrong
5021  # for two reasons:
5022  #  1. if the package is installed by a user who cannot write `.'
5023  #     make install will fail,
5024  #  2. the above comment should most certainly read
5025  #     $(mkdir_p) $(DESTDIR)$(somedir)
5026  #     so it does not work when $(somedir) is undefined and
5027  #     $(DESTDIR) is not.
5028  #  To support the latter case, we have to write
5029  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5030  #  so the `.' trick is pointless.
5031  mkdir_p='mkdir -p --'
5032else
5033  # On NextStep and OpenStep, the `mkdir' command does not
5034  # recognize any option.  It will interpret all options as
5035  # directories to create, and then abort because `.' already
5036  # exists.
5037  for d in ./-p ./--version;
5038  do
5039    test -d $d && rmdir $d
5040  done
5041  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5042  if test -f "$ac_aux_dir/mkinstalldirs"; then
5043    mkdir_p='$(mkinstalldirs)'
5044  else
5045    mkdir_p='$(install_sh) -d'
5046  fi
5047fi
5048
5049for ac_prog in gawk mawk nawk awk
5050do
5051  # Extract the first word of "$ac_prog", so it can be a program name with args.
5052set dummy $ac_prog; ac_word=$2
5053echo "$as_me:$LINENO: checking for $ac_word" >&5
5054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5055if test "${ac_cv_prog_AWK+set}" = set; then
5056  echo $ECHO_N "(cached) $ECHO_C" >&6
5057else
5058  if test -n "$AWK"; then
5059  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5060else
5061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5062for as_dir in $PATH
5063do
5064  IFS=$as_save_IFS
5065  test -z "$as_dir" && as_dir=.
5066  for ac_exec_ext in '' $ac_executable_extensions; do
5067  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5068    ac_cv_prog_AWK="$ac_prog"
5069    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5070    break 2
5071  fi
5072done
5073done
5074
5075fi
5076fi
5077AWK=$ac_cv_prog_AWK
5078if test -n "$AWK"; then
5079  echo "$as_me:$LINENO: result: $AWK" >&5
5080echo "${ECHO_T}$AWK" >&6
5081else
5082  echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084fi
5085
5086  test -n "$AWK" && break
5087done
5088
5089echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5090echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5091set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5092if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5093  echo $ECHO_N "(cached) $ECHO_C" >&6
5094else
5095  cat >conftest.make <<\_ACEOF
5096all:
5097        @echo 'ac_maketemp="$(MAKE)"'
5098_ACEOF
5099# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5100eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5101if test -n "$ac_maketemp"; then
5102  eval ac_cv_prog_make_${ac_make}_set=yes
5103else
5104  eval ac_cv_prog_make_${ac_make}_set=no
5105fi
5106rm -f conftest.make
5107fi
5108if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5109  echo "$as_me:$LINENO: result: yes" >&5
5110echo "${ECHO_T}yes" >&6
5111  SET_MAKE=
5112else
5113  echo "$as_me:$LINENO: result: no" >&5
5114echo "${ECHO_T}no" >&6
5115  SET_MAKE="MAKE=${MAKE-make}"
5116fi
5117
5118rm -rf .tst 2>/dev/null
5119mkdir .tst 2>/dev/null
5120if test -d .tst; then
5121  am__leading_dot=.
5122else
5123  am__leading_dot=_
5124fi
5125rmdir .tst 2>/dev/null
5126
5127DEPDIR="${am__leading_dot}deps"
5128
5129          ac_config_commands="$ac_config_commands depfiles"
5130
5131
5132am_make=${MAKE-make}
5133cat > confinc << 'END'
5134am__doit:
5135        @echo done
5136.PHONY: am__doit
5137END
5138# If we don't find an include directive, just comment out the code.
5139echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5140echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5141am__include="#"
5142am__quote=
5143_am_result=none
5144# First try GNU make style include.
5145echo "include confinc" > confmf
5146# We grep out `Entering directory' and `Leaving directory'
5147# messages which can occur if `w' ends up in MAKEFLAGS.
5148# In particular we don't look at `^make:' because GNU make might
5149# be invoked under some other name (usually "gmake"), in which
5150# case it prints its new name instead of `make'.
5151if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5152   am__include=include
5153   am__quote=
5154   _am_result=GNU
5155fi
5156# Now try BSD make style include.
5157if test "$am__include" = "#"; then
5158   echo '.include "confinc"' > confmf
5159   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5160      am__include=.include
5161      am__quote="\""
5162      _am_result=BSD
5163   fi
5164fi
5165
5166
5167echo "$as_me:$LINENO: result: $_am_result" >&5
5168echo "${ECHO_T}$_am_result" >&6
5169rm -f confinc confmf
5170
5171# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5172if test "${enable_dependency_tracking+set}" = set; then
5173  enableval="$enable_dependency_tracking"
5174
5175fi;
5176if test "x$enable_dependency_tracking" != xno; then
5177  am_depcomp="$ac_aux_dir/depcomp"
5178  AMDEPBACKSLASH='\'
5179fi
5180
5181
5182if test "x$enable_dependency_tracking" != xno; then
5183  AMDEP_TRUE=
5184  AMDEP_FALSE='#'
5185else
5186  AMDEP_TRUE='#'
5187  AMDEP_FALSE=
5188fi
5189
5190
5191
5192
5193
5194
5195# AC_MSG_NOTICE([Beginning automake initialisation.])
5196# Stuff for automake
5197# test to see if srcdir already configured
5198if test "`cd $srcdir && pwd`" != "`pwd`" &&
5199   test -f $srcdir/config.status; then
5200  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5201echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5202   { (exit 1); exit 1; }; }
5203fi
5204
5205# test whether we have cygpath
5206if test -z "$CYGPATH_W"; then
5207  if (cygpath --version) >/dev/null 2>/dev/null; then
5208    CYGPATH_W='cygpath -w'
5209  else
5210    CYGPATH_W=echo
5211  fi
5212fi
5213
5214
5215# Define the identity of the package.
5216 PACKAGE='clp'
5217 VERSION='trunk'
5218
5219
5220cat >>confdefs.h <<_ACEOF
5221#define PACKAGE "$PACKAGE"
5222_ACEOF
5223
5224
5225cat >>confdefs.h <<_ACEOF
5226#define VERSION "$VERSION"
5227_ACEOF
5228
5229# Some tools Automake needs.
5230
5231ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5232
5233
5234AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5235
5236
5237AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5238
5239
5240AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5241
5242
5243MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5244
5245install_sh=${install_sh-"$am_aux_dir/install-sh"}
5246
5247# Installed binaries are usually stripped using `strip' when the user
5248# run `make install-strip'.  However `strip' might not be the right
5249# tool to use in cross-compilation environments, therefore Automake
5250# will honor the `STRIP' environment variable to overrule this program.
5251if test "$cross_compiling" != no; then
5252  if test -n "$ac_tool_prefix"; then
5253  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5254set dummy ${ac_tool_prefix}strip; ac_word=$2
5255echo "$as_me:$LINENO: checking for $ac_word" >&5
5256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257if test "${ac_cv_prog_STRIP+set}" = set; then
5258  echo $ECHO_N "(cached) $ECHO_C" >&6
5259else
5260  if test -n "$STRIP"; then
5261  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5262else
5263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH
5265do
5266  IFS=$as_save_IFS
5267  test -z "$as_dir" && as_dir=.
5268  for ac_exec_ext in '' $ac_executable_extensions; do
5269  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272    break 2
5273  fi
5274done
5275done
5276
5277fi
5278fi
5279STRIP=$ac_cv_prog_STRIP
5280if test -n "$STRIP"; then
5281  echo "$as_me:$LINENO: result: $STRIP" >&5
5282echo "${ECHO_T}$STRIP" >&6
5283else
5284  echo "$as_me:$LINENO: result: no" >&5
5285echo "${ECHO_T}no" >&6
5286fi
5287
5288fi
5289if test -z "$ac_cv_prog_STRIP"; then
5290  ac_ct_STRIP=$STRIP
5291  # Extract the first word of "strip", so it can be a program name with args.
5292set dummy strip; ac_word=$2
5293echo "$as_me:$LINENO: checking for $ac_word" >&5
5294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5295if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5296  echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298  if test -n "$ac_ct_STRIP"; then
5299  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5300else
5301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304  IFS=$as_save_IFS
5305  test -z "$as_dir" && as_dir=.
5306  for ac_exec_ext in '' $ac_executable_extensions; do
5307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308    ac_cv_prog_ac_ct_STRIP="strip"
5309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310    break 2
5311  fi
5312done
5313done
5314
5315  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5316fi
5317fi
5318ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5319if test -n "$ac_ct_STRIP"; then
5320  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5321echo "${ECHO_T}$ac_ct_STRIP" >&6
5322else
5323  echo "$as_me:$LINENO: result: no" >&5
5324echo "${ECHO_T}no" >&6
5325fi
5326
5327  STRIP=$ac_ct_STRIP
5328else
5329  STRIP="$ac_cv_prog_STRIP"
5330fi
5331
5332fi
5333INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5334
5335# We need awk for the "check" target.  The system "awk" is bad on
5336# some platforms.
5337# Always define AMTAR for backward compatibility.
5338
5339AMTAR=${AMTAR-"${am_missing_run}tar"}
5340
5341am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5342
5343
5344
5345
5346depcc="$CC"   am_compiler_list=
5347
5348echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5349echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5350if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5351  echo $ECHO_N "(cached) $ECHO_C" >&6
5352else
5353  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5354  # We make a subdir and do the tests there.  Otherwise we can end up
5355  # making bogus files that we don't know about and never remove.  For
5356  # instance it was reported that on HP-UX the gcc test will end up
5357  # making a dummy file named `D' -- because `-MD' means `put the output
5358  # in D'.
5359  mkdir conftest.dir
5360  # Copy depcomp to subdir because otherwise we won't find it if we're
5361  # using a relative directory.
5362  cp "$am_depcomp" conftest.dir
5363  cd conftest.dir
5364  # We will build objects and dependencies in a subdirectory because
5365  # it helps to detect inapplicable dependency modes.  For instance
5366  # both Tru64's cc and ICC support -MD to output dependencies as a
5367  # side effect of compilation, but ICC will put the dependencies in
5368  # the current directory while Tru64 will put them in the object
5369  # directory.
5370  mkdir sub
5371
5372  am_cv_CC_dependencies_compiler_type=none
5373  if test "$am_compiler_list" = ""; then
5374     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5375  fi
5376  for depmode in $am_compiler_list; do
5377    # Setup a source with many dependencies, because some compilers
5378    # like to wrap large dependency lists on column 80 (with \), and
5379    # we should not choose a depcomp mode which is confused by this.
5380    #
5381    # We need to recreate these files for each test, as the compiler may
5382    # overwrite some of them when testing with obscure command lines.
5383    # This happens at least with the AIX C compiler.
5384    : > sub/conftest.c
5385    for i in 1 2 3 4 5 6; do
5386      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5387      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5388      # Solaris 8's {/usr,}/bin/sh.
5389      touch sub/conftst$i.h
5390    done
5391    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5392
5393    case $depmode in
5394    nosideeffect)
5395      # after this tag, mechanisms are not by side-effect, so they'll
5396      # only be used when explicitly requested
5397      if test "x$enable_dependency_tracking" = xyes; then
5398        continue
5399      else
5400        break
5401      fi
5402      ;;
5403    none) break ;;
5404    esac
5405    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5406    # mode.  It turns out that the SunPro C++ compiler does not properly
5407    # handle `-M -o', and we need to detect this.
5408    if depmode=$depmode \
5409       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5410       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5411       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5412         >/dev/null 2>conftest.err &&
5413       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5414       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5415       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5416      # icc doesn't choke on unknown options, it will just issue warnings
5417      # or remarks (even with -Werror).  So we grep stderr for any message
5418      # that says an option was ignored or not supported.
5419      # When given -MP, icc 7.0 and 7.1 complain thusly:
5420      #   icc: Command line warning: ignoring option '-M'; no argument required
5421      # The diagnosis changed in icc 8.0:
5422      #   icc: Command line remark: option '-MP' not supported
5423      if (grep 'ignoring option' conftest.err ||
5424          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5425        am_cv_CC_dependencies_compiler_type=$depmode
5426        break
5427      fi
5428    fi
5429  done
5430
5431  cd ..
5432  rm -rf conftest.dir
5433else
5434  am_cv_CC_dependencies_compiler_type=none
5435fi
5436
5437fi
5438echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5439echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5440CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5441
5442
5443
5444if
5445  test "x$enable_dependency_tracking" != xno \
5446  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5447  am__fastdepCC_TRUE=
5448  am__fastdepCC_FALSE='#'
5449else
5450  am__fastdepCC_TRUE='#'
5451  am__fastdepCC_FALSE=
5452fi
5453
5454
5455depcc="$CXX"  am_compiler_list=
5456
5457echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5458echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5459if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5460  echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5463  # We make a subdir and do the tests there.  Otherwise we can end up
5464  # making bogus files that we don't know about and never remove.  For
5465  # instance it was reported that on HP-UX the gcc test will end up
5466  # making a dummy file named `D' -- because `-MD' means `put the output
5467  # in D'.
5468  mkdir conftest.dir
5469  # Copy depcomp to subdir because otherwise we won't find it if we're
5470  # using a relative directory.
5471  cp "$am_depcomp" conftest.dir
5472  cd conftest.dir
5473  # We will build objects and dependencies in a subdirectory because
5474  # it helps to detect inapplicable dependency modes.  For instance
5475  # both Tru64's cc and ICC support -MD to output dependencies as a
5476  # side effect of compilation, but ICC will put the dependencies in
5477  # the current directory while Tru64 will put them in the object
5478  # directory.
5479  mkdir sub
5480
5481  am_cv_CXX_dependencies_compiler_type=none
5482  if test "$am_compiler_list" = ""; then
5483     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5484  fi
5485  for depmode in $am_compiler_list; do
5486    # Setup a source with many dependencies, because some compilers
5487    # like to wrap large dependency lists on column 80 (with \), and
5488    # we should not choose a depcomp mode which is confused by this.
5489    #
5490    # We need to recreate these files for each test, as the compiler may
5491    # overwrite some of them when testing with obscure command lines.
5492    # This happens at least with the AIX C compiler.
5493    : > sub/conftest.c
5494    for i in 1 2 3 4 5 6; do
5495      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5496      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5497      # Solaris 8's {/usr,}/bin/sh.
5498      touch sub/conftst$i.h
5499    done
5500    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5501
5502    case $depmode in
5503    nosideeffect)
5504      # after this tag, mechanisms are not by side-effect, so they'll
5505      # only be used when explicitly requested
5506      if test "x$enable_dependency_tracking" = xyes; then
5507        continue
5508      else
5509        break
5510      fi
5511      ;;
5512    none) break ;;
5513    esac
5514    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5515    # mode.  It turns out that the SunPro C++ compiler does not properly
5516    # handle `-M -o', and we need to detect this.
5517    if depmode=$depmode \
5518       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5519       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5520       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5521         >/dev/null 2>conftest.err &&
5522       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5523       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5524       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5525      # icc doesn't choke on unknown options, it will just issue warnings
5526      # or remarks (even with -Werror).  So we grep stderr for any message
5527      # that says an option was ignored or not supported.
5528      # When given -MP, icc 7.0 and 7.1 complain thusly:
5529      #   icc: Command line warning: ignoring option '-M'; no argument required
5530      # The diagnosis changed in icc 8.0:
5531      #   icc: Command line remark: option '-MP' not supported
5532      if (grep 'ignoring option' conftest.err ||
5533          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5534        am_cv_CXX_dependencies_compiler_type=$depmode
5535        break
5536      fi
5537    fi
5538  done
5539
5540  cd ..
5541  rm -rf conftest.dir
5542else
5543  am_cv_CXX_dependencies_compiler_type=none
5544fi
5545
5546fi
5547echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5548echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5549CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5550
5551
5552
5553if
5554  test "x$enable_dependency_tracking" != xno \
5555  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5556  am__fastdepCXX_TRUE=
5557  am__fastdepCXX_FALSE='#'
5558else
5559  am__fastdepCXX_TRUE='#'
5560  am__fastdepCXX_FALSE=
5561fi
5562
5563
5564
5565echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5566echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5567    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5568if test "${enable_maintainer_mode+set}" = set; then
5569  enableval="$enable_maintainer_mode"
5570  USE_MAINTAINER_MODE=$enableval
5571else
5572  USE_MAINTAINER_MODE=no
5573fi;
5574  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5575echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5576
5577
5578if test $USE_MAINTAINER_MODE = yes; then
5579  MAINTAINER_MODE_TRUE=
5580  MAINTAINER_MODE_FALSE='#'
5581else
5582  MAINTAINER_MODE_TRUE='#'
5583  MAINTAINER_MODE_FALSE=
5584fi
5585
5586  MAINT=$MAINTAINER_MODE_TRUE
5587
5588
5589
5590coin_have_externals=no
5591if test "$enable_maintainer_mode" = yes; then
5592
5593  # If maintainer mode is chosen, we make sure that the correct versions
5594  # of the tools are used, and that we know where libtool.m4 is (to
5595  # recreate acinclude.m4)
5596
5597
5598  LIBTOOLM4=
5599  # Normally, $HOME
5600  AUTOTOOLS_DFLT=$HOME
5601
5602  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5603echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5604if test "${ac_cv_use_correct_autotools+set}" = set; then
5605  echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607  ac_cv_use_correct_autotools=check
5608fi
5609echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5610echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5611
5612  if test $ac_cv_use_correct_autotools = check; then
5613    ac_cv_use_correct_autotools=yes
5614    # Check if we have autoconf
5615    # Extract the first word of "autoconf", so it can be a program name with args.
5616set dummy autoconf; ac_word=$2
5617echo "$as_me:$LINENO: checking for $ac_word" >&5
5618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5619if test "${ac_cv_prog_have_autoconf+set}" = set; then
5620  echo $ECHO_N "(cached) $ECHO_C" >&6
5621else
5622  if test -n "$have_autoconf"; then
5623  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5624else
5625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626for as_dir in $PATH
5627do
5628  IFS=$as_save_IFS
5629  test -z "$as_dir" && as_dir=.
5630  for ac_exec_ext in '' $ac_executable_extensions; do
5631  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632    ac_cv_prog_have_autoconf="yes"
5633    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5634    break 2
5635  fi
5636done
5637done
5638
5639  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5640fi
5641fi
5642have_autoconf=$ac_cv_prog_have_autoconf
5643if test -n "$have_autoconf"; then
5644  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5645echo "${ECHO_T}$have_autoconf" >&6
5646else
5647  echo "$as_me:$LINENO: result: no" >&5
5648echo "${ECHO_T}no" >&6
5649fi
5650
5651    if test $have_autoconf = no; then
5652      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5653echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5654   { (exit 1); exit 1; }; }
5655    fi
5656
5657    # Check whether autoconf is the correct version
5658    correct_version='2.59'
5659    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5660    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5661echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5662    autoconf --version > confauto.out 2>&1
5663    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5664      echo "$as_me:$LINENO: result: yes" >&5
5665echo "${ECHO_T}yes" >&6
5666    else
5667      rm -f confauto.out
5668      echo "$as_me:$LINENO: result: no" >&5
5669echo "${ECHO_T}no" >&6
5670      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5671echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5672   { (exit 1); exit 1; }; }
5673    fi
5674    rm -f confauto.out
5675
5676    # Check if the executable autoconf is picked up from the correct location
5677    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5678echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5679    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5680    autoconf_dir=`cd $autoconf_dir; pwd`
5681    if test x$AUTOTOOLS_DIR = x; then
5682      want_dir=$AUTOTOOLS_DFLT/bin
5683    else
5684      want_dir=$AUTOTOOLS_DIR/bin
5685    fi
5686    if test $autoconf_dir = `cd $want_dir; pwd`; then
5687      echo "$as_me:$LINENO: result: yes" >&5
5688echo "${ECHO_T}yes" >&6
5689    else
5690      rm -f confauto.out
5691      echo "$as_me:$LINENO: result: no" >&5
5692echo "${ECHO_T}no" >&6
5693      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5694echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5695   { (exit 1); exit 1; }; }
5696    fi
5697
5698    # Check if we have automake
5699    # Extract the first word of "automake", so it can be a program name with args.
5700set dummy automake; ac_word=$2
5701echo "$as_me:$LINENO: checking for $ac_word" >&5
5702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5703if test "${ac_cv_prog_have_automake+set}" = set; then
5704  echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706  if test -n "$have_automake"; then
5707  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5708else
5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712  IFS=$as_save_IFS
5713  test -z "$as_dir" && as_dir=.
5714  for ac_exec_ext in '' $ac_executable_extensions; do
5715  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716    ac_cv_prog_have_automake="yes"
5717    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5718    break 2
5719  fi
5720done
5721done
5722
5723  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5724fi
5725fi
5726have_automake=$ac_cv_prog_have_automake
5727if test -n "$have_automake"; then
5728  echo "$as_me:$LINENO: result: $have_automake" >&5
5729echo "${ECHO_T}$have_automake" >&6
5730else
5731  echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6
5733fi
5734
5735    if test $have_automake = no; then
5736      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5737echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5738   { (exit 1); exit 1; }; }
5739    fi
5740
5741    # Check whether automake is the correct version
5742    correct_version='1.9.6'
5743    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5744    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5745echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5746    automake --version > confauto.out 2>&1
5747    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5748      echo "$as_me:$LINENO: result: yes" >&5
5749echo "${ECHO_T}yes" >&6
5750    else
5751      rm -f confauto.out
5752      echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
5754      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5755echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5756   { (exit 1); exit 1; }; }
5757    fi
5758    rm -f confauto.out
5759
5760    # Check if the executable automake is picked up from the correct location
5761    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5762echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5763    automake_dir=`which automake | sed -e 's=/automake=='`
5764    automake_dir=`cd $automake_dir; pwd`
5765    if test x$AUTOTOOLS_DIR = x; then
5766      want_dir=$AUTOTOOLS_DFLT/bin
5767    else
5768      want_dir=$AUTOTOOLS_DIR/bin
5769    fi
5770    if test $automake_dir = `cd $want_dir; pwd`; then
5771      echo "$as_me:$LINENO: result: yes" >&5
5772echo "${ECHO_T}yes" >&6
5773    else
5774      rm -f confauto.out
5775      echo "$as_me:$LINENO: result: no" >&5
5776echo "${ECHO_T}no" >&6
5777      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5778echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5779   { (exit 1); exit 1; }; }
5780    fi
5781
5782    # Check if this is the correct version of libtool (with escaped dots)
5783    if test x$AUTOTOOLS_DIR = x; then
5784      want_dir=$AUTOTOOLS_DFLT/share
5785    else
5786      want_dir=$AUTOTOOLS_DIR/share
5787    fi
5788    correct_version='1.5.22'
5789    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5790    if test -r $want_dir/libtool/ltmain.sh; then
5791  have_ltmain=yes
5792  :
5793else
5794  have_ltmain=no
5795  :
5796fi
5797
5798    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5799echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5800    if test $have_ltmain = yes; then
5801    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5802        echo "$as_me:$LINENO: result: yes" >&5
5803echo "${ECHO_T}yes" >&6
5804      else
5805        echo "$as_me:$LINENO: result: no" >&5
5806echo "${ECHO_T}no" >&6
5807        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5808echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5809   { (exit 1); exit 1; }; }
5810      fi
5811    else
5812      echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
5814      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5815echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5816   { (exit 1); exit 1; }; }
5817    fi
5818  fi
5819
5820  # Check if we can find the libtool file
5821  if test x$AUTOTOOLS_DIR = x; then
5822    want_dir=$AUTOTOOLS_DFLT/share
5823  else
5824    want_dir=$AUTOTOOLS_DIR/share
5825  fi
5826  if test -r $want_dir/aclocal/libtool.m4; then
5827  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5828  :
5829else
5830  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5831echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5832   { (exit 1); exit 1; }; }
5833  :
5834fi
5835
5836
5837  # Check if we have an Dependencies file
5838  if test -r $srcdir/Dependencies; then
5839    coin_have_externals=yes
5840  fi
5841  # Check if subversion is installed and understands https
5842  # Extract the first word of "svn", so it can be a program name with args.
5843set dummy svn; ac_word=$2
5844echo "$as_me:$LINENO: checking for $ac_word" >&5
5845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846if test "${ac_cv_prog_have_svn+set}" = set; then
5847  echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849  if test -n "$have_svn"; then
5850  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5851else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855  IFS=$as_save_IFS
5856  test -z "$as_dir" && as_dir=.
5857  for ac_exec_ext in '' $ac_executable_extensions; do
5858  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859    ac_cv_prog_have_svn="yes"
5860    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861    break 2
5862  fi
5863done
5864done
5865
5866  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5867fi
5868fi
5869have_svn=$ac_cv_prog_have_svn
5870if test -n "$have_svn"; then
5871  echo "$as_me:$LINENO: result: $have_svn" >&5
5872echo "${ECHO_T}$have_svn" >&6
5873else
5874  echo "$as_me:$LINENO: result: no" >&5
5875echo "${ECHO_T}no" >&6
5876fi
5877
5878  if test x$have_svn = xyes; then
5879    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5880echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5881if test "${ac_cv_svn_understands_https+set}" = set; then
5882  echo $ECHO_N "(cached) $ECHO_C" >&6
5883else
5884  svn --version > confauto.out 2>&1
5885                    if $EGREP https confauto.out >/dev/null 2>&1; then
5886                      ac_cv_svn_understands_https=yes
5887                    else
5888                      ac_cv_svn_understands_https=no
5889                      have_svn=no
5890                      ac_cv_prog_have_svn=no
5891                    fi
5892                    rm -f confauto.out
5893fi
5894echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5895echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5896  fi
5897
5898  # Find the location of the BuildTools directory
5899  BUILDTOOLSDIR=
5900  if test -r $srcdir/BuildTools/coin.m4; then
5901    BUILDTOOLSDIR=$srcdir/BuildTools
5902  else
5903    if test -r $srcdir/../BuildTools/coin.m4; then
5904      BUILDTOOLSDIR=$srcdir/../BuildTools
5905    else
5906      if test -r $srcdir/../../BuildTools/coin.m4; then
5907        BUILDTOOLSDIR=$srcdir/../../BuildTools
5908      else
5909        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5910echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5911   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5912      fi
5913    fi
5914  fi
5915
5916
5917  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5918  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5919    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5920  fi
5921
5922  # The following variable is set to the name of the directory where
5923  # the autotool scripts are located
5924
5925  AUX_DIR=$ac_aux_dir
5926fi
5927
5928# helpful variable for the base directory of this package
5929abs_source_dir=`cd $srcdir; pwd`
5930
5931
5932# Stuff for example Makefiles
5933if test x$prefix = xNONE; then
5934  full_prefix=$ac_default_prefix
5935else
5936  full_prefix=$prefix
5937fi
5938full_prefix=`cd $full_prefix ; pwd`
5939
5940abs_lib_dir=$full_prefix/lib
5941
5942abs_include_dir=$full_prefix/include
5943
5944abs_bin_dir=$full_prefix/bin
5945
5946
5947
5948if test $coin_have_externals = yes && test x$have_svn = xyes; then
5949  HAVE_EXTERNALS_TRUE=
5950  HAVE_EXTERNALS_FALSE='#'
5951else
5952  HAVE_EXTERNALS_TRUE='#'
5953  HAVE_EXTERNALS_FALSE=
5954fi
5955
5956
5957# AC_MSG_NOTICE([End automake initialisation.])
5958
5959
5960
5961LIBTOOL=
5962if test -r ../libtool; then
5963  coin_config_dir=..
5964  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5965fi
5966if test "x$LIBTOOL" = x; then
5967  if test -r ../../libtool; then
5968    coin_config_dir=../..
5969    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5970  fi
5971fi
5972
5973if test "x$LIBTOOL" = x; then
5974# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5975  # Stuff for libtool
5976  # Check whether --enable-shared or --disable-shared was given.
5977if test "${enable_shared+set}" = set; then
5978  enableval="$enable_shared"
5979  p=${PACKAGE-default}
5980    case $enableval in
5981    yes) enable_shared=yes ;;
5982    no) enable_shared=no ;;
5983    *)
5984      enable_shared=no
5985      # Look at the argument we got.  We use all the common list separators.
5986      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5987      for pkg in $enableval; do
5988        IFS="$lt_save_ifs"
5989        if test "X$pkg" = "X$p"; then
5990          enable_shared=yes
5991        fi
5992      done
5993      IFS="$lt_save_ifs"
5994      ;;
5995    esac
5996else
5997  enable_shared=yes
5998fi;
5999
6000# Check whether --enable-fast-install or --disable-fast-install was given.
6001if test "${enable_fast_install+set}" = set; then
6002  enableval="$enable_fast_install"
6003  p=${PACKAGE-default}
6004    case $enableval in
6005    yes) enable_fast_install=yes ;;
6006    no) enable_fast_install=no ;;
6007    *)
6008      enable_fast_install=no
6009      # Look at the argument we got.  We use all the common list separators.
6010      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6011      for pkg in $enableval; do
6012        IFS="$lt_save_ifs"
6013        if test "X$pkg" = "X$p"; then
6014          enable_fast_install=yes
6015        fi
6016      done
6017      IFS="$lt_save_ifs"
6018      ;;
6019    esac
6020else
6021  enable_fast_install=yes
6022fi;
6023
6024echo "$as_me:$LINENO: checking host system type" >&5
6025echo $ECHO_N "checking host system type... $ECHO_C" >&6
6026if test "${ac_cv_host+set}" = set; then
6027  echo $ECHO_N "(cached) $ECHO_C" >&6
6028else
6029  ac_cv_host_alias=$host_alias
6030test -z "$ac_cv_host_alias" &&
6031  ac_cv_host_alias=$ac_cv_build_alias
6032ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6033  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6034echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6035   { (exit 1); exit 1; }; }
6036
6037fi
6038echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6039echo "${ECHO_T}$ac_cv_host" >&6
6040host=$ac_cv_host
6041host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6042host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6043host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6044
6045
6046echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6047echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6048if test "${lt_cv_path_SED+set}" = set; then
6049  echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051  # Loop through the user's path and test for sed and gsed.
6052# Then use that list of sed's as ones to test for truncation.
6053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6054for as_dir in $PATH
6055do
6056  IFS=$as_save_IFS
6057  test -z "$as_dir" && as_dir=.
6058  for lt_ac_prog in sed gsed; do
6059    for ac_exec_ext in '' $ac_executable_extensions; do
6060      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6061        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6062      fi
6063    done
6064  done
6065done
6066lt_ac_max=0
6067lt_ac_count=0
6068# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6069# along with /bin/sed that truncates output.
6070for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6071  test ! -f $lt_ac_sed && continue
6072  cat /dev/null > conftest.in
6073  lt_ac_count=0
6074  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6075  # Check for GNU sed and select it if it is found.
6076  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6077    lt_cv_path_SED=$lt_ac_sed
6078    break
6079  fi
6080  while true; do
6081    cat conftest.in conftest.in >conftest.tmp
6082    mv conftest.tmp conftest.in
6083    cp conftest.in conftest.nl
6084    echo >>conftest.nl
6085    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6086    cmp -s conftest.out conftest.nl || break
6087    # 10000 chars as input seems more than enough
6088    test $lt_ac_count -gt 10 && break
6089    lt_ac_count=`expr $lt_ac_count + 1`
6090    if test $lt_ac_count -gt $lt_ac_max; then
6091      lt_ac_max=$lt_ac_count
6092      lt_cv_path_SED=$lt_ac_sed
6093    fi
6094  done
6095done
6096
6097fi
6098
6099SED=$lt_cv_path_SED
6100echo "$as_me:$LINENO: result: $SED" >&5
6101echo "${ECHO_T}$SED" >&6
6102
6103
6104# Check whether --with-gnu-ld or --without-gnu-ld was given.
6105if test "${with_gnu_ld+set}" = set; then
6106  withval="$with_gnu_ld"
6107  test "$withval" = no || with_gnu_ld=yes
6108else
6109  with_gnu_ld=no
6110fi;
6111ac_prog=ld
6112if test "$GCC" = yes; then
6113  # Check if gcc -print-prog-name=ld gives a path.
6114  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6115echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6116  case $host in
6117  *-*-mingw*)
6118    # gcc leaves a trailing carriage return which upsets mingw
6119    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6120  *)
6121    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6122  esac
6123  case $ac_prog in
6124    # Accept absolute paths.
6125    [\\/]* | ?:[\\/]*)
6126      re_direlt='/[^/][^/]*/\.\./'
6127      # Canonicalize the pathname of ld
6128      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6129      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6130        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6131      done
6132      test -z "$LD" && LD="$ac_prog"
6133      ;;
6134  "")
6135    # If it fails, then pretend we aren't using GCC.
6136    ac_prog=ld
6137    ;;
6138  *)
6139    # If it is relative, then search for the first ld in PATH.
6140    with_gnu_ld=unknown
6141    ;;
6142  esac
6143elif test "$with_gnu_ld" = yes; then
6144  echo "$as_me:$LINENO: checking for GNU ld" >&5
6145echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6146else
6147  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6148echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6149fi
6150if test "${lt_cv_path_LD+set}" = set; then
6151  echo $ECHO_N "(cached) $ECHO_C" >&6
6152else
6153  if test -z "$LD"; then
6154  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6155  for ac_dir in $PATH; do
6156    IFS="$lt_save_ifs"
6157    test -z "$ac_dir" && ac_dir=.
6158    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6159      lt_cv_path_LD="$ac_dir/$ac_prog"
6160      # Check to see if the program is GNU ld.  I'd rather use --version,
6161      # but apparently some variants of GNU ld only accept -v.
6162      # Break only if it was the GNU/non-GNU ld that we prefer.
6163      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6164      *GNU* | *'with BFD'*)
6165        test "$with_gnu_ld" != no && break
6166        ;;
6167      *)
6168        test "$with_gnu_ld" != yes && break
6169        ;;
6170      esac
6171    fi
6172  done
6173  IFS="$lt_save_ifs"
6174else
6175  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6176fi
6177fi
6178
6179LD="$lt_cv_path_LD"
6180if test -n "$LD"; then
6181  echo "$as_me:$LINENO: result: $LD" >&5
6182echo "${ECHO_T}$LD" >&6
6183else
6184  echo "$as_me:$LINENO: result: no" >&5
6185echo "${ECHO_T}no" >&6
6186fi
6187test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6188echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6189   { (exit 1); exit 1; }; }
6190echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6191echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6192if test "${lt_cv_prog_gnu_ld+set}" = set; then
6193  echo $ECHO_N "(cached) $ECHO_C" >&6
6194else
6195  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6196case `$LD -v 2>&1 </dev/null` in
6197*GNU* | *'with BFD'*)
6198  lt_cv_prog_gnu_ld=yes
6199  ;;
6200*)
6201  lt_cv_prog_gnu_ld=no
6202  ;;
6203esac
6204fi
6205echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6206echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6207with_gnu_ld=$lt_cv_prog_gnu_ld
6208
6209
6210echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6211echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6212if test "${lt_cv_ld_reload_flag+set}" = set; then
6213  echo $ECHO_N "(cached) $ECHO_C" >&6
6214else
6215  lt_cv_ld_reload_flag='-r'
6216fi
6217echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6218echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6219reload_flag=$lt_cv_ld_reload_flag
6220case $reload_flag in
6221"" | " "*) ;;
6222*) reload_flag=" $reload_flag" ;;
6223esac
6224reload_cmds='$LD$reload_flag -o $output$reload_objs'
6225case $host_os in
6226  darwin*)
6227    if test "$GCC" = yes; then
6228      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6229    else
6230      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6231    fi
6232    ;;
6233esac
6234
6235echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6236echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6237if test "${lt_cv_path_NM+set}" = set; then
6238  echo $ECHO_N "(cached) $ECHO_C" >&6
6239else
6240  if test -n "$NM"; then
6241  # Let the user override the test.
6242  lt_cv_path_NM="$NM"
6243else
6244  lt_nm_to_check="${ac_tool_prefix}nm"
6245  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6246    lt_nm_to_check="$lt_nm_to_check nm"
6247  fi
6248  for lt_tmp_nm in $lt_nm_to_check; do
6249    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6250    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6251      IFS="$lt_save_ifs"
6252      test -z "$ac_dir" && ac_dir=.
6253      tmp_nm="$ac_dir/$lt_tmp_nm"
6254      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6255        # Check to see if the nm accepts a BSD-compat flag.
6256        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6257        #   nm: unknown option "B" ignored
6258        # Tru64's nm complains that /dev/null is an invalid object file
6259        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6260        */dev/null* | *'Invalid file or object type'*)
6261          lt_cv_path_NM="$tmp_nm -B"
6262          break
6263          ;;
6264        *)
6265          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6266          */dev/null*)
6267            lt_cv_path_NM="$tmp_nm -p"
6268            break
6269            ;;
6270          *)
6271            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6272            continue # so that we can try to find one that supports BSD flags
6273            ;;
6274          esac
6275          ;;
6276        esac
6277      fi
6278    done
6279    IFS="$lt_save_ifs"
6280  done
6281  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6282fi
6283fi
6284echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6285echo "${ECHO_T}$lt_cv_path_NM" >&6
6286NM="$lt_cv_path_NM"
6287
6288echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6289echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6290if test "${lt_cv_deplibs_check_method+set}" = set; then
6291  echo $ECHO_N "(cached) $ECHO_C" >&6
6292else
6293  lt_cv_file_magic_cmd='$MAGIC_CMD'
6294lt_cv_file_magic_test_file=
6295lt_cv_deplibs_check_method='unknown'
6296# Need to set the preceding variable on all platforms that support
6297# interlibrary dependencies.
6298# 'none' -- dependencies not supported.
6299# `unknown' -- same as none, but documents that we really don't know.
6300# 'pass_all' -- all dependencies passed with no checks.
6301# 'test_compile' -- check by making test program.
6302# 'file_magic [[regex]]' -- check by looking for files in library path
6303# which responds to the $file_magic_cmd with a given extended regex.
6304# If you have `file' or equivalent on your system and you're not sure
6305# whether `pass_all' will *always* work, you probably want this one.
6306
6307case $host_os in
6308aix4* | aix5*)
6309  lt_cv_deplibs_check_method=pass_all
6310  ;;
6311
6312beos*)
6313  lt_cv_deplibs_check_method=pass_all
6314  ;;
6315
6316bsdi[45]*)
6317  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6318  lt_cv_file_magic_cmd='/usr/bin/file -L'
6319  lt_cv_file_magic_test_file=/shlib/libc.so
6320  ;;
6321
6322cygwin*)
6323  # func_win32_libid is a shell function defined in ltmain.sh
6324  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6325  lt_cv_file_magic_cmd='func_win32_libid'
6326  ;;
6327
6328mingw* | pw32*)
6329  # Base MSYS/MinGW do not provide the 'file' command needed by
6330  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6331  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6332  lt_cv_file_magic_cmd='$OBJDUMP -f'
6333  ;;
6334
6335darwin* | rhapsody*)
6336  lt_cv_deplibs_check_method=pass_all
6337  ;;
6338
6339freebsd* | kfreebsd*-gnu | dragonfly*)
6340  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6341    case $host_cpu in
6342    i*86 )
6343      # Not sure whether the presence of OpenBSD here was a mistake.
6344      # Let's accept both of them until this is cleared up.
6345      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6346      lt_cv_file_magic_cmd=/usr/bin/file
6347      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6348      ;;
6349    esac
6350  else
6351    lt_cv_deplibs_check_method=pass_all
6352  fi
6353  ;;
6354
6355gnu*)
6356  lt_cv_deplibs_check_method=pass_all
6357  ;;
6358
6359hpux10.20* | hpux11*)
6360  lt_cv_file_magic_cmd=/usr/bin/file
6361  case $host_cpu in
6362  ia64*)
6363    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6364    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6365    ;;
6366  hppa*64*)
6367    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]'
6368    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6369    ;;
6370  *)
6371    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6372    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6373    ;;
6374  esac
6375  ;;
6376
6377interix3*)
6378  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6379  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6380  ;;
6381
6382irix5* | irix6* | nonstopux*)
6383  case $LD in
6384  *-32|*"-32 ") libmagic=32-bit;;
6385  *-n32|*"-n32 ") libmagic=N32;;
6386  *-64|*"-64 ") libmagic=64-bit;;
6387  *) libmagic=never-match;;
6388  esac
6389  lt_cv_deplibs_check_method=pass_all
6390  ;;
6391
6392# This must be Linux ELF.
6393linux*)
6394  lt_cv_deplibs_check_method=pass_all
6395  ;;
6396
6397netbsd*)
6398  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6399    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6400  else
6401    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6402  fi
6403  ;;
6404
6405newos6*)
6406  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6407  lt_cv_file_magic_cmd=/usr/bin/file
6408  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6409  ;;
6410
6411nto-qnx*)
6412  lt_cv_deplibs_check_method=unknown
6413  ;;
6414
6415openbsd*)
6416  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6417    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6418  else
6419    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6420  fi
6421  ;;
6422
6423osf3* | osf4* | osf5*)
6424  lt_cv_deplibs_check_method=pass_all
6425  ;;
6426
6427solaris*)
6428  lt_cv_deplibs_check_method=pass_all
6429  ;;
6430
6431sysv4 | sysv4.3*)
6432  case $host_vendor in
6433  motorola)
6434    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]'
6435    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6436    ;;
6437  ncr)
6438    lt_cv_deplibs_check_method=pass_all
6439    ;;
6440  sequent)
6441    lt_cv_file_magic_cmd='/bin/file'
6442    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6443    ;;
6444  sni)
6445    lt_cv_file_magic_cmd='/bin/file'
6446    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6447    lt_cv_file_magic_test_file=/lib/libc.so
6448    ;;
6449  siemens)
6450    lt_cv_deplibs_check_method=pass_all
6451    ;;
6452  pc)
6453    lt_cv_deplibs_check_method=pass_all
6454    ;;
6455  esac
6456  ;;
6457
6458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6459  lt_cv_deplibs_check_method=pass_all
6460  ;;
6461esac
6462
6463fi
6464echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6465echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6466file_magic_cmd=$lt_cv_file_magic_cmd
6467deplibs_check_method=$lt_cv_deplibs_check_method
6468test -z "$deplibs_check_method" && deplibs_check_method=unknown
6469
6470
6471
6472
6473# If no C compiler was specified, use CC.
6474LTCC=${LTCC-"$CC"}
6475
6476# If no C compiler flags were specified, use CFLAGS.
6477LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6478
6479# Allow CC to be a program name with arguments.
6480compiler=$CC
6481
6482# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6483if test "${enable_libtool_lock+set}" = set; then
6484  enableval="$enable_libtool_lock"
6485
6486fi;
6487test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6488
6489# Some flags need to be propagated to the compiler or linker for good
6490# libtool support.
6491case $host in
6492ia64-*-hpux*)
6493  # Find out which ABI we are using.
6494  echo 'int i;' > conftest.$ac_ext
6495  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6496  (eval $ac_compile) 2>&5
6497  ac_status=$?
6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499  (exit $ac_status); }; then
6500    case `/usr/bin/file conftest.$ac_objext` in
6501    *ELF-32*)
6502      HPUX_IA64_MODE="32"
6503      ;;
6504    *ELF-64*)
6505      HPUX_IA64_MODE="64"
6506      ;;
6507    esac
6508  fi
6509  rm -rf conftest*
6510  ;;
6511*-*-irix6*)
6512  # Find out which ABI we are using.
6513  echo '#line 6513 "configure"' > conftest.$ac_ext
6514  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6515  (eval $ac_compile) 2>&5
6516  ac_status=$?
6517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518  (exit $ac_status); }; then
6519   if test "$lt_cv_prog_gnu_ld" = yes; then
6520    case `/usr/bin/file conftest.$ac_objext` in
6521    *32-bit*)
6522      LD="${LD-ld} -melf32bsmip"
6523      ;;
6524    *N32*)
6525      LD="${LD-ld} -melf32bmipn32"
6526      ;;
6527    *64-bit*)
6528      LD="${LD-ld} -melf64bmip"
6529      ;;
6530    esac
6531   else
6532    case `/usr/bin/file conftest.$ac_objext` in
6533    *32-bit*)
6534      LD="${LD-ld} -32"
6535      ;;
6536    *N32*)
6537      LD="${LD-ld} -n32"
6538      ;;
6539    *64-bit*)
6540      LD="${LD-ld} -64"
6541      ;;
6542    esac
6543   fi
6544  fi
6545  rm -rf conftest*
6546  ;;
6547
6548x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6549  # Find out which ABI we are using.
6550  echo 'int i;' > conftest.$ac_ext
6551  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6552  (eval $ac_compile) 2>&5
6553  ac_status=$?
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); }; then
6556    case `/usr/bin/file conftest.o` in
6557    *32-bit*)
6558      case $host in
6559        x86_64-*linux*)
6560          LD="${LD-ld} -m elf_i386"
6561          ;;
6562        ppc64-*linux*|powerpc64-*linux*)
6563          LD="${LD-ld} -m elf32ppclinux"
6564          ;;
6565        s390x-*linux*)
6566          LD="${LD-ld} -m elf_s390"
6567          ;;
6568        sparc64-*linux*)
6569          LD="${LD-ld} -m elf32_sparc"
6570          ;;
6571      esac
6572      ;;
6573    *64-bit*)
6574      case $host in
6575        x86_64-*linux*)
6576          LD="${LD-ld} -m elf_x86_64"
6577          ;;
6578        ppc*-*linux*|powerpc*-*linux*)
6579          LD="${LD-ld} -m elf64ppc"
6580          ;;
6581        s390*-*linux*)
6582          LD="${LD-ld} -m elf64_s390"
6583          ;;
6584        sparc*-*linux*)
6585          LD="${LD-ld} -m elf64_sparc"
6586          ;;
6587      esac
6588      ;;
6589    esac
6590  fi
6591  rm -rf conftest*
6592  ;;
6593
6594*-*-sco3.2v5*)
6595  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6596  SAVE_CFLAGS="$CFLAGS"
6597  CFLAGS="$CFLAGS -belf"
6598  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6599echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6600if test "${lt_cv_cc_needs_belf+set}" = set; then
6601  echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603  ac_ext=c
6604ac_cpp='$CPP $CPPFLAGS'
6605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6607ac_compiler_gnu=$ac_cv_c_compiler_gnu
6608
6609     cat >conftest.$ac_ext <<_ACEOF
6610/* confdefs.h.  */
6611_ACEOF
6612cat confdefs.h >>conftest.$ac_ext
6613cat >>conftest.$ac_ext <<_ACEOF
6614/* end confdefs.h.  */
6615
6616int
6617main ()
6618{
6619
6620  ;
6621  return 0;
6622}
6623_ACEOF
6624rm -f conftest.$ac_objext conftest$ac_exeext
6625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6626  (eval $ac_link) 2>conftest.er1
6627  ac_status=$?
6628  grep -v '^ *+' conftest.er1 >conftest.err
6629  rm -f conftest.er1
6630  cat conftest.err >&5
6631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632  (exit $ac_status); } &&
6633         { ac_try='test -z "$ac_c_werror_flag"
6634                         || test ! -s conftest.err'
6635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6636  (eval $ac_try) 2>&5
6637  ac_status=$?
6638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639  (exit $ac_status); }; } &&
6640         { ac_try='test -s conftest$ac_exeext'
6641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6642  (eval $ac_try) 2>&5
6643  ac_status=$?
6644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645  (exit $ac_status); }; }; then
6646  lt_cv_cc_needs_belf=yes
6647else
6648  echo "$as_me: failed program was:" >&5
6649sed 's/^/| /' conftest.$ac_ext >&5
6650
6651lt_cv_cc_needs_belf=no
6652fi
6653rm -f conftest.err conftest.$ac_objext \
6654      conftest$ac_exeext conftest.$ac_ext
6655     ac_ext=c
6656ac_cpp='$CPP $CPPFLAGS'
6657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659ac_compiler_gnu=$ac_cv_c_compiler_gnu
6660
6661fi
6662echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6663echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6664  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6665    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6666    CFLAGS="$SAVE_CFLAGS"
6667  fi
6668  ;;
6669sparc*-*solaris*)
6670  # Find out which ABI we are using.
6671  echo 'int i;' > conftest.$ac_ext
6672  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6673  (eval $ac_compile) 2>&5
6674  ac_status=$?
6675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676  (exit $ac_status); }; then
6677    case `/usr/bin/file conftest.o` in
6678    *64-bit*)
6679      case $lt_cv_prog_gnu_ld in
6680      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6681      *)    LD="${LD-ld} -64" ;;
6682      esac
6683      ;;
6684    esac
6685  fi
6686  rm -rf conftest*
6687  ;;
6688
6689
6690esac
6691
6692need_locks="$enable_libtool_lock"
6693
6694
6695ac_ext=c
6696ac_cpp='$CPP $CPPFLAGS'
6697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6699ac_compiler_gnu=$ac_cv_c_compiler_gnu
6700echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6701echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6702# On Suns, sometimes $CPP names a directory.
6703if test -n "$CPP" && test -d "$CPP"; then
6704  CPP=
6705fi
6706if test -z "$CPP"; then
6707  if test "${ac_cv_prog_CPP+set}" = set; then
6708  echo $ECHO_N "(cached) $ECHO_C" >&6
6709else
6710      # Double quotes because CPP needs to be expanded
6711    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6712    do
6713      ac_preproc_ok=false
6714for ac_c_preproc_warn_flag in '' yes
6715do
6716  # Use a header file that comes with gcc, so configuring glibc
6717  # with a fresh cross-compiler works.
6718  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6719  # <limits.h> exists even on freestanding compilers.
6720  # On the NeXT, cc -E runs the code through the compiler's parser,
6721  # not just through cpp. "Syntax error" is here to catch this case.
6722  cat >conftest.$ac_ext <<_ACEOF
6723/* confdefs.h.  */
6724_ACEOF
6725cat confdefs.h >>conftest.$ac_ext
6726cat >>conftest.$ac_ext <<_ACEOF
6727/* end confdefs.h.  */
6728#ifdef __STDC__
6729# include <limits.h>
6730#else
6731# include <assert.h>
6732#endif
6733                     Syntax error
6734_ACEOF
6735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6736  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6737  ac_status=$?
6738  grep -v '^ *+' conftest.er1 >conftest.err
6739  rm -f conftest.er1
6740  cat conftest.err >&5
6741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742  (exit $ac_status); } >/dev/null; then
6743  if test -s conftest.err; then
6744    ac_cpp_err=$ac_c_preproc_warn_flag
6745    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6746  else
6747    ac_cpp_err=
6748  fi
6749else
6750  ac_cpp_err=yes
6751fi
6752if test -z "$ac_cpp_err"; then
6753  :
6754else
6755  echo "$as_me: failed program was:" >&5
6756sed 's/^/| /' conftest.$ac_ext >&5
6757
6758  # Broken: fails on valid input.
6759continue
6760fi
6761rm -f conftest.err conftest.$ac_ext
6762
6763  # OK, works on sane cases.  Now check whether non-existent headers
6764  # can be detected and how.
6765  cat >conftest.$ac_ext <<_ACEOF
6766/* confdefs.h.  */
6767_ACEOF
6768cat confdefs.h >>conftest.$ac_ext
6769cat >>conftest.$ac_ext <<_ACEOF
6770/* end confdefs.h.  */
6771#include <ac_nonexistent.h>
6772_ACEOF
6773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6774  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6775  ac_status=$?
6776  grep -v '^ *+' conftest.er1 >conftest.err
6777  rm -f conftest.er1
6778  cat conftest.err >&5
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); } >/dev/null; then
6781  if test -s conftest.err; then
6782    ac_cpp_err=$ac_c_preproc_warn_flag
6783    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6784  else
6785    ac_cpp_err=
6786  fi
6787else
6788  ac_cpp_err=yes
6789fi
6790if test -z "$ac_cpp_err"; then
6791  # Broken: success on invalid input.
6792continue
6793else
6794  echo "$as_me: failed program was:" >&5
6795sed 's/^/| /' conftest.$ac_ext >&5
6796
6797  # Passes both tests.
6798ac_preproc_ok=:
6799break
6800fi
6801rm -f conftest.err conftest.$ac_ext
6802
6803done
6804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6805rm -f conftest.err conftest.$ac_ext
6806if $ac_preproc_ok; then
6807  break
6808fi
6809
6810    done
6811    ac_cv_prog_CPP=$CPP
6812
6813fi
6814  CPP=$ac_cv_prog_CPP
6815else
6816  ac_cv_prog_CPP=$CPP
6817fi
6818echo "$as_me:$LINENO: result: $CPP" >&5
6819echo "${ECHO_T}$CPP" >&6
6820ac_preproc_ok=false
6821for ac_c_preproc_warn_flag in '' yes
6822do
6823  # Use a header file that comes with gcc, so configuring glibc
6824  # with a fresh cross-compiler works.
6825  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6826  # <limits.h> exists even on freestanding compilers.
6827  # On the NeXT, cc -E runs the code through the compiler's parser,
6828  # not just through cpp. "Syntax error" is here to catch this case.
6829  cat >conftest.$ac_ext <<_ACEOF
6830/* confdefs.h.  */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h.  */
6835#ifdef __STDC__
6836# include <limits.h>
6837#else
6838# include <assert.h>
6839#endif
6840                     Syntax error
6841_ACEOF
6842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6843  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6844  ac_status=$?
6845  grep -v '^ *+' conftest.er1 >conftest.err
6846  rm -f conftest.er1
6847  cat conftest.err >&5
6848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849  (exit $ac_status); } >/dev/null; then
6850  if test -s conftest.err; then
6851    ac_cpp_err=$ac_c_preproc_warn_flag
6852    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6853  else
6854    ac_cpp_err=
6855  fi
6856else
6857  ac_cpp_err=yes
6858fi
6859if test -z "$ac_cpp_err"; then
6860  :
6861else
6862  echo "$as_me: failed program was:" >&5
6863sed 's/^/| /' conftest.$ac_ext >&5
6864
6865  # Broken: fails on valid input.
6866continue
6867fi
6868rm -f conftest.err conftest.$ac_ext
6869
6870  # OK, works on sane cases.  Now check whether non-existent headers
6871  # can be detected and how.
6872  cat >conftest.$ac_ext <<_ACEOF
6873/* confdefs.h.  */
6874_ACEOF
6875cat confdefs.h >>conftest.$ac_ext
6876cat >>conftest.$ac_ext <<_ACEOF
6877/* end confdefs.h.  */
6878#include <ac_nonexistent.h>
6879_ACEOF
6880if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6881  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6882  ac_status=$?
6883  grep -v '^ *+' conftest.er1 >conftest.err
6884  rm -f conftest.er1
6885  cat conftest.err >&5
6886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887  (exit $ac_status); } >/dev/null; then
6888  if test -s conftest.err; then
6889    ac_cpp_err=$ac_c_preproc_warn_flag
6890    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6891  else
6892    ac_cpp_err=
6893  fi
6894else
6895  ac_cpp_err=yes
6896fi
6897if test -z "$ac_cpp_err"; then
6898  # Broken: success on invalid input.
6899continue
6900else
6901  echo "$as_me: failed program was:" >&5
6902sed 's/^/| /' conftest.$ac_ext >&5
6903
6904  # Passes both tests.
6905ac_preproc_ok=:
6906break
6907fi
6908rm -f conftest.err conftest.$ac_ext
6909
6910done
6911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6912rm -f conftest.err conftest.$ac_ext
6913if $ac_preproc_ok; then
6914  :
6915else
6916  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6917See \`config.log' for more details." >&5
6918echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6919See \`config.log' for more details." >&2;}
6920   { (exit 1); exit 1; }; }
6921fi
6922
6923ac_ext=c
6924ac_cpp='$CPP $CPPFLAGS'
6925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927ac_compiler_gnu=$ac_cv_c_compiler_gnu
6928
6929
6930echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6931echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6932if test "${ac_cv_header_stdc+set}" = set; then
6933  echo $ECHO_N "(cached) $ECHO_C" >&6
6934else
6935  cat >conftest.$ac_ext <<_ACEOF
6936/* confdefs.h.  */
6937_ACEOF
6938cat confdefs.h >>conftest.$ac_ext
6939cat >>conftest.$ac_ext <<_ACEOF
6940/* end confdefs.h.  */
6941#include <stdlib.h>
6942#include <stdarg.h>
6943#include <string.h>
6944#include <float.h>
6945
6946int
6947main ()
6948{
6949
6950  ;
6951  return 0;
6952}
6953_ACEOF
6954rm -f conftest.$ac_objext
6955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6956  (eval $ac_compile) 2>conftest.er1
6957  ac_status=$?
6958  grep -v '^ *+' conftest.er1 >conftest.err
6959  rm -f conftest.er1
6960  cat conftest.err >&5
6961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962  (exit $ac_status); } &&
6963         { ac_try='test -z "$ac_c_werror_flag"
6964                         || test ! -s conftest.err'
6965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966  (eval $ac_try) 2>&5
6967  ac_status=$?
6968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969  (exit $ac_status); }; } &&
6970         { ac_try='test -s conftest.$ac_objext'
6971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972  (eval $ac_try) 2>&5
6973  ac_status=$?
6974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975  (exit $ac_status); }; }; then
6976  ac_cv_header_stdc=yes
6977else
6978  echo "$as_me: failed program was:" >&5
6979sed 's/^/| /' conftest.$ac_ext >&5
6980
6981ac_cv_header_stdc=no
6982fi
6983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6984
6985if test $ac_cv_header_stdc = yes; then
6986  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6987  cat >conftest.$ac_ext <<_ACEOF
6988/* confdefs.h.  */
6989_ACEOF
6990cat confdefs.h >>conftest.$ac_ext
6991cat >>conftest.$ac_ext <<_ACEOF
6992/* end confdefs.h.  */
6993#include <string.h>
6994
6995_ACEOF
6996if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6997  $EGREP "memchr" >/dev/null 2>&1; then
6998  :
6999else
7000  ac_cv_header_stdc=no
7001fi
7002rm -f conftest*
7003
7004fi
7005
7006if test $ac_cv_header_stdc = yes; then
7007  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7008  cat >conftest.$ac_ext <<_ACEOF
7009/* confdefs.h.  */
7010_ACEOF
7011cat confdefs.h >>conftest.$ac_ext
7012cat >>conftest.$ac_ext <<_ACEOF
7013/* end confdefs.h.  */
7014#include <stdlib.h>
7015
7016_ACEOF
7017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7018  $EGREP "free" >/dev/null 2>&1; then
7019  :
7020else
7021  ac_cv_header_stdc=no
7022fi
7023rm -f conftest*
7024
7025fi
7026
7027if test $ac_cv_header_stdc = yes; then
7028  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7029  if test "$cross_compiling" = yes; then
7030  :
7031else
7032  cat >conftest.$ac_ext <<_ACEOF
7033/* confdefs.h.  */
7034_ACEOF
7035cat confdefs.h >>conftest.$ac_ext
7036cat >>conftest.$ac_ext <<_ACEOF
7037/* end confdefs.h.  */
7038#include <ctype.h>
7039#if ((' ' & 0x0FF) == 0x020)
7040# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7041# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7042#else
7043# define ISLOWER(c) \
7044                   (('a' <= (c) && (c) <= 'i') \
7045                     || ('j' <= (c) && (c) <= 'r') \
7046                     || ('s' <= (c) && (c) <= 'z'))
7047# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7048#endif
7049
7050#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7051int
7052main ()
7053{
7054  int i;
7055  for (i = 0; i < 256; i++)
7056    if (XOR (islower (i), ISLOWER (i))
7057        || toupper (i) != TOUPPER (i))
7058      exit(2);
7059  exit (0);
7060}
7061_ACEOF
7062rm -f conftest$ac_exeext
7063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7064  (eval $ac_link) 2>&5
7065  ac_status=$?
7066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069  (eval $ac_try) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; }; then
7073  :
7074else
7075  echo "$as_me: program exited with status $ac_status" >&5
7076echo "$as_me: failed program was:" >&5
7077sed 's/^/| /' conftest.$ac_ext >&5
7078
7079( exit $ac_status )
7080ac_cv_header_stdc=no
7081fi
7082rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7083fi
7084fi
7085fi
7086echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7087echo "${ECHO_T}$ac_cv_header_stdc" >&6
7088if test $ac_cv_header_stdc = yes; then
7089
7090cat >>confdefs.h <<\_ACEOF
7091#define STDC_HEADERS 1
7092_ACEOF
7093
7094fi
7095
7096# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7107                  inttypes.h stdint.h unistd.h
7108do
7109as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7110echo "$as_me:$LINENO: checking for $ac_header" >&5
7111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7112if eval "test \"\${$as_ac_Header+set}\" = set"; then
7113  echo $ECHO_N "(cached) $ECHO_C" >&6
7114else
7115  cat >conftest.$ac_ext <<_ACEOF
7116/* confdefs.h.  */
7117_ACEOF
7118cat confdefs.h >>conftest.$ac_ext
7119cat >>conftest.$ac_ext <<_ACEOF
7120/* end confdefs.h.  */
7121$ac_includes_default
7122
7123#include <$ac_header>
7124_ACEOF
7125rm -f conftest.$ac_objext
7126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127  (eval $ac_compile) 2>conftest.er1
7128  ac_status=$?
7129  grep -v '^ *+' conftest.er1 >conftest.err
7130  rm -f conftest.er1
7131  cat conftest.err >&5
7132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133  (exit $ac_status); } &&
7134         { ac_try='test -z "$ac_c_werror_flag"
7135                         || test ! -s conftest.err'
7136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137  (eval $ac_try) 2>&5
7138  ac_status=$?
7139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140  (exit $ac_status); }; } &&
7141         { ac_try='test -s conftest.$ac_objext'
7142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143  (eval $ac_try) 2>&5
7144  ac_status=$?
7145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); }; }; then
7147  eval "$as_ac_Header=yes"
7148else
7149  echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152eval "$as_ac_Header=no"
7153fi
7154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7155fi
7156echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7157echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7158if test `eval echo '${'$as_ac_Header'}'` = yes; then
7159  cat >>confdefs.h <<_ACEOF
7160#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7161_ACEOF
7162
7163fi
7164
7165done
7166
7167
7168
7169for ac_header in dlfcn.h
7170do
7171as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7172if eval "test \"\${$as_ac_Header+set}\" = set"; then
7173  echo "$as_me:$LINENO: checking for $ac_header" >&5
7174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7175if eval "test \"\${$as_ac_Header+set}\" = set"; then
7176  echo $ECHO_N "(cached) $ECHO_C" >&6
7177fi
7178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7180else
7181  # Is the header compilable?
7182echo "$as_me:$LINENO: checking $ac_header usability" >&5
7183echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7184cat >conftest.$ac_ext <<_ACEOF
7185/* confdefs.h.  */
7186_ACEOF
7187cat confdefs.h >>conftest.$ac_ext
7188cat >>conftest.$ac_ext <<_ACEOF
7189/* end confdefs.h.  */
7190$ac_includes_default
7191#include <$ac_header>
7192_ACEOF
7193rm -f conftest.$ac_objext
7194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7195  (eval $ac_compile) 2>conftest.er1
7196  ac_status=$?
7197  grep -v '^ *+' conftest.er1 >conftest.err
7198  rm -f conftest.er1
7199  cat conftest.err >&5
7200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201  (exit $ac_status); } &&
7202         { ac_try='test -z "$ac_c_werror_flag"
7203                         || test ! -s conftest.err'
7204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205  (eval $ac_try) 2>&5
7206  ac_status=$?
7207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208  (exit $ac_status); }; } &&
7209         { ac_try='test -s conftest.$ac_objext'
7210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211  (eval $ac_try) 2>&5
7212  ac_status=$?
7213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214  (exit $ac_status); }; }; then
7215  ac_header_compiler=yes
7216else
7217  echo "$as_me: failed program was:" >&5
7218sed 's/^/| /' conftest.$ac_ext >&5
7219
7220ac_header_compiler=no
7221fi
7222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7223echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7224echo "${ECHO_T}$ac_header_compiler" >&6
7225
7226# Is the header present?
7227echo "$as_me:$LINENO: checking $ac_header presence" >&5
7228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7229cat >conftest.$ac_ext <<_ACEOF
7230/* confdefs.h.  */
7231_ACEOF
7232cat confdefs.h >>conftest.$ac_ext
7233cat >>conftest.$ac_ext <<_ACEOF
7234/* end confdefs.h.  */
7235#include <$ac_header>
7236_ACEOF
7237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7238  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7239  ac_status=$?
7240  grep -v '^ *+' conftest.er1 >conftest.err
7241  rm -f conftest.er1
7242  cat conftest.err >&5
7243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244  (exit $ac_status); } >/dev/null; then
7245  if test -s conftest.err; then
7246    ac_cpp_err=$ac_c_preproc_warn_flag
7247    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7248  else
7249    ac_cpp_err=
7250  fi
7251else
7252  ac_cpp_err=yes
7253fi
7254if test -z "$ac_cpp_err"; then
7255  ac_header_preproc=yes
7256else
7257  echo "$as_me: failed program was:" >&5
7258sed 's/^/| /' conftest.$ac_ext >&5
7259
7260  ac_header_preproc=no
7261fi
7262rm -f conftest.err conftest.$ac_ext
7263echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7264echo "${ECHO_T}$ac_header_preproc" >&6
7265
7266# So?  What about this header?
7267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7268  yes:no: )
7269    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7271    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7273    ac_header_preproc=yes
7274    ;;
7275  no:yes:* )
7276    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7278    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7279echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7280    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7282    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7283echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7284    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7286    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7288    (
7289      cat <<\_ASBOX
7290## ----------------------------------------- ##
7291## Report this to coin-clp@lists.coin-or.org ##
7292## ----------------------------------------- ##
7293_ASBOX
7294    ) |
7295      sed "s/^/$as_me: WARNING:     /" >&2
7296    ;;
7297esac
7298echo "$as_me:$LINENO: checking for $ac_header" >&5
7299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7300if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301  echo $ECHO_N "(cached) $ECHO_C" >&6
7302else
7303  eval "$as_ac_Header=\$ac_header_preproc"
7304fi
7305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7307
7308fi
7309if test `eval echo '${'$as_ac_Header'}'` = yes; then
7310  cat >>confdefs.h <<_ACEOF
7311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7312_ACEOF
7313
7314fi
7315
7316done
7317
7318
7319
7320if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7321    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7322    (test "X$CXX" != "Xg++"))) ; then
7323  ac_ext=cc
7324ac_cpp='$CXXCPP $CPPFLAGS'
7325ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7326ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7327ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7328echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7329echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7330if test -z "$CXXCPP"; then
7331  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7332  echo $ECHO_N "(cached) $ECHO_C" >&6
7333else
7334      # Double quotes because CXXCPP needs to be expanded
7335    for CXXCPP in "$CXX -E" "/lib/cpp"
7336    do
7337      ac_preproc_ok=false
7338for ac_cxx_preproc_warn_flag in '' yes
7339do
7340  # Use a header file that comes with gcc, so configuring glibc
7341  # with a fresh cross-compiler works.
7342  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7343  # <limits.h> exists even on freestanding compilers.
7344  # On the NeXT, cc -E runs the code through the compiler's parser,
7345  # not just through cpp. "Syntax error" is here to catch this case.
7346  cat >conftest.$ac_ext <<_ACEOF
7347/* confdefs.h.  */
7348_ACEOF
7349cat confdefs.h >>conftest.$ac_ext
7350cat >>conftest.$ac_ext <<_ACEOF
7351/* end confdefs.h.  */
7352#ifdef __STDC__
7353# include <limits.h>
7354#else
7355# include <assert.h>
7356#endif
7357                     Syntax error
7358_ACEOF
7359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7360  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7361  ac_status=$?
7362  grep -v '^ *+' conftest.er1 >conftest.err
7363  rm -f conftest.er1
7364  cat conftest.err >&5
7365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366  (exit $ac_status); } >/dev/null; then
7367  if test -s conftest.err; then
7368    ac_cpp_err=$ac_cxx_preproc_warn_flag
7369    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7370  else
7371    ac_cpp_err=
7372  fi
7373else
7374  ac_cpp_err=yes
7375fi
7376if test -z "$ac_cpp_err"; then
7377  :
7378else
7379  echo "$as_me: failed program was:" >&5
7380sed 's/^/| /' conftest.$ac_ext >&5
7381
7382  # Broken: fails on valid input.
7383continue
7384fi
7385rm -f conftest.err conftest.$ac_ext
7386
7387  # OK, works on sane cases.  Now check whether non-existent headers
7388  # can be detected and how.
7389  cat >conftest.$ac_ext <<_ACEOF
7390/* confdefs.h.  */
7391_ACEOF
7392cat confdefs.h >>conftest.$ac_ext
7393cat >>conftest.$ac_ext <<_ACEOF
7394/* end confdefs.h.  */
7395#include <ac_nonexistent.h>
7396_ACEOF
7397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7398  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7399  ac_status=$?
7400  grep -v '^ *+' conftest.er1 >conftest.err
7401  rm -f conftest.er1
7402  cat conftest.err >&5
7403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404  (exit $ac_status); } >/dev/null; then
7405  if test -s conftest.err; then
7406    ac_cpp_err=$ac_cxx_preproc_warn_flag
7407    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7408  else
7409    ac_cpp_err=
7410  fi
7411else
7412  ac_cpp_err=yes
7413fi
7414if test -z "$ac_cpp_err"; then
7415  # Broken: success on invalid input.
7416continue
7417else
7418  echo "$as_me: failed program was:" >&5
7419sed 's/^/| /' conftest.$ac_ext >&5
7420
7421  # Passes both tests.
7422ac_preproc_ok=:
7423break
7424fi
7425rm -f conftest.err conftest.$ac_ext
7426
7427done
7428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7429rm -f conftest.err conftest.$ac_ext
7430if $ac_preproc_ok; then
7431  break
7432fi
7433
7434    done
7435    ac_cv_prog_CXXCPP=$CXXCPP
7436
7437fi
7438  CXXCPP=$ac_cv_prog_CXXCPP
7439else
7440  ac_cv_prog_CXXCPP=$CXXCPP
7441fi
7442echo "$as_me:$LINENO: result: $CXXCPP" >&5
7443echo "${ECHO_T}$CXXCPP" >&6
7444ac_preproc_ok=false
7445for ac_cxx_preproc_warn_flag in '' yes
7446do
7447  # Use a header file that comes with gcc, so configuring glibc
7448  # with a fresh cross-compiler works.
7449  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7450  # <limits.h> exists even on freestanding compilers.
7451  # On the NeXT, cc -E runs the code through the compiler's parser,
7452  # not just through cpp. "Syntax error" is here to catch this case.
7453  cat >conftest.$ac_ext <<_ACEOF
7454/* confdefs.h.  */
7455_ACEOF
7456cat confdefs.h >>conftest.$ac_ext
7457cat >>conftest.$ac_ext <<_ACEOF
7458/* end confdefs.h.  */
7459#ifdef __STDC__
7460# include <limits.h>
7461#else
7462# include <assert.h>
7463#endif
7464                     Syntax error
7465_ACEOF
7466if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7467  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7468  ac_status=$?
7469  grep -v '^ *+' conftest.er1 >conftest.err
7470  rm -f conftest.er1
7471  cat conftest.err >&5
7472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473  (exit $ac_status); } >/dev/null; then
7474  if test -s conftest.err; then
7475    ac_cpp_err=$ac_cxx_preproc_warn_flag
7476    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7477  else
7478    ac_cpp_err=
7479  fi
7480else
7481  ac_cpp_err=yes
7482fi
7483if test -z "$ac_cpp_err"; then
7484  :
7485else
7486  echo "$as_me: failed program was:" >&5
7487sed 's/^/| /' conftest.$ac_ext >&5
7488
7489  # Broken: fails on valid input.
7490continue
7491fi
7492rm -f conftest.err conftest.$ac_ext
7493
7494  # OK, works on sane cases.  Now check whether non-existent headers
7495  # can be detected and how.
7496  cat >conftest.$ac_ext <<_ACEOF
7497/* confdefs.h.  */
7498_ACEOF
7499cat confdefs.h >>conftest.$ac_ext
7500cat >>conftest.$ac_ext <<_ACEOF
7501/* end confdefs.h.  */
7502#include <ac_nonexistent.h>
7503_ACEOF
7504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7505  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7506  ac_status=$?
7507  grep -v '^ *+' conftest.er1 >conftest.err
7508  rm -f conftest.er1
7509  cat conftest.err >&5
7510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511  (exit $ac_status); } >/dev/null; then
7512  if test -s conftest.err; then
7513    ac_cpp_err=$ac_cxx_preproc_warn_flag
7514    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7515  else
7516    ac_cpp_err=
7517  fi
7518else
7519  ac_cpp_err=yes
7520fi
7521if test -z "$ac_cpp_err"; then
7522  # Broken: success on invalid input.
7523continue
7524else
7525  echo "$as_me: failed program was:" >&5
7526sed 's/^/| /' conftest.$ac_ext >&5
7527
7528  # Passes both tests.
7529ac_preproc_ok=:
7530break
7531fi
7532rm -f conftest.err conftest.$ac_ext
7533
7534done
7535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7536rm -f conftest.err conftest.$ac_ext
7537if $ac_preproc_ok; then
7538  :
7539else
7540  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7541See \`config.log' for more details." >&5
7542echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7543See \`config.log' for more details." >&2;}
7544   { (exit 1); exit 1; }; }
7545fi
7546
7547ac_ext=cc
7548ac_cpp='$CXXCPP $CPPFLAGS'
7549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7552
7553fi
7554
7555
7556# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7557
7558# find the maximum length of command line arguments
7559echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7560echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7561if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7562  echo $ECHO_N "(cached) $ECHO_C" >&6
7563else
7564    i=0
7565  teststring="ABCD"
7566
7567  case $build_os in
7568  msdosdjgpp*)
7569    # On DJGPP, this test can blow up pretty badly due to problems in libc
7570    # (any single argument exceeding 2000 bytes causes a buffer overrun
7571    # during glob expansion).  Even if it were fixed, the result of this
7572    # check would be larger than it should be.
7573    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7574    ;;
7575
7576  gnu*)
7577    # Under GNU Hurd, this test is not required because there is
7578    # no limit to the length of command line arguments.
7579    # Libtool will interpret -1 as no limit whatsoever
7580    lt_cv_sys_max_cmd_len=-1;
7581    ;;
7582
7583  cygwin* | mingw*)
7584    # On Win9x/ME, this test blows up -- it succeeds, but takes
7585    # about 5 minutes as the teststring grows exponentially.
7586    # Worse, since 9x/ME are not pre-emptively multitasking,
7587    # you end up with a "frozen" computer, even though with patience
7588    # the test eventually succeeds (with a max line length of 256k).
7589    # Instead, let's just punt: use the minimum linelength reported by
7590    # all of the supported platforms: 8192 (on NT/2K/XP).
7591    lt_cv_sys_max_cmd_len=8192;
7592    ;;
7593
7594  amigaos*)
7595    # On AmigaOS with pdksh, this test takes hours, literally.
7596    # So we just punt and use a minimum line length of 8192.
7597    lt_cv_sys_max_cmd_len=8192;
7598    ;;
7599
7600  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7601    # This has been around since 386BSD, at least.  Likely further.
7602    if test -x /sbin/sysctl; then
7603      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7604    elif test -x /usr/sbin/sysctl; then
7605      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7606    else
7607      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7608    fi
7609    # And add a safety zone
7610    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7611    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7612    ;;
7613
7614  interix*)
7615    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7616    lt_cv_sys_max_cmd_len=196608
7617    ;;
7618
7619  osf*)
7620    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7621    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7622    # nice to cause kernel panics so lets avoid the loop below.
7623    # First set a reasonable default.
7624    lt_cv_sys_max_cmd_len=16384
7625    #
7626    if test -x /sbin/sysconfig; then
7627      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7628        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7629      esac
7630    fi
7631    ;;
7632  sco3.2v5*)
7633    lt_cv_sys_max_cmd_len=102400
7634    ;;
7635  sysv5* | sco5v6* | sysv4.2uw2*)
7636    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7637    if test -n "$kargmax"; then
7638      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7639    else
7640      lt_cv_sys_max_cmd_len=32768
7641    fi
7642    ;;
7643  *)
7644    # If test is not a shell built-in, we'll probably end up computing a
7645    # maximum length that is only half of the actual maximum length, but
7646    # we can't tell.
7647    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7648    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7649               = "XX$teststring") >/dev/null 2>&1 &&
7650            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7651            lt_cv_sys_max_cmd_len=$new_result &&
7652            test $i != 17 # 1/2 MB should be enough
7653    do
7654      i=`expr $i + 1`
7655      teststring=$teststring$teststring
7656    done
7657    teststring=
7658    # Add a significant safety factor because C++ compilers can tack on massive
7659    # amounts of additional arguments before passing them to the linker.
7660    # It appears as though 1/2 is a usable value.
7661    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7662    ;;
7663  esac
7664
7665fi
7666
7667if test -n $lt_cv_sys_max_cmd_len ; then
7668  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7669echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7670else
7671  echo "$as_me:$LINENO: result: none" >&5
7672echo "${ECHO_T}none" >&6
7673fi
7674
7675
7676
7677
7678# Check for command to grab the raw symbol name followed by C symbol from nm.
7679echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7680echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7681if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7682  echo $ECHO_N "(cached) $ECHO_C" >&6
7683else
7684
7685# These are sane defaults that work on at least a few old systems.
7686# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7687
7688# Character class describing NM global symbol codes.
7689symcode='[BCDEGRST]'
7690
7691# Regexp to match symbols that can be accessed directly from C.
7692sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7693
7694# Transform an extracted symbol line into a proper C declaration
7695lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7696
7697# Transform an extracted symbol line into symbol name and symbol address
7698lt_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'"
7699
7700# Define system-specific variables.
7701case $host_os in
7702aix*)
7703  symcode='[BCDT]'
7704  ;;
7705cygwin* | mingw* | pw32*)
7706  symcode='[ABCDGISTW]'
7707  ;;
7708hpux*) # Its linker distinguishes data from code symbols
7709  if test "$host_cpu" = ia64; then
7710    symcode='[ABCDEGRST]'
7711  fi
7712  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7713  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'"
7714  ;;
7715linux*)
7716  if test "$host_cpu" = ia64; then
7717    symcode='[ABCDGIRSTW]'
7718    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7719    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'"
7720  fi
7721  ;;
7722irix* | nonstopux*)
7723  symcode='[BCDEGRST]'
7724  ;;
7725osf*)
7726  symcode='[BCDEGQRST]'
7727  ;;
7728solaris*)
7729  symcode='[BDRT]'
7730  ;;
7731sco3.2v5*)
7732  symcode='[DT]'
7733  ;;
7734sysv4.2uw2*)
7735  symcode='[DT]'
7736  ;;
7737sysv5* | sco5v6* | unixware* | OpenUNIX*)
7738  symcode='[ABDT]'
7739  ;;
7740sysv4)
7741  symcode='[DFNSTU]'
7742  ;;
7743esac
7744
7745# Handle CRLF in mingw tool chain
7746opt_cr=
7747case $build_os in
7748mingw*)
7749  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7750  ;;
7751esac
7752
7753# If we're using GNU nm, then use its standard symbol codes.
7754case `$NM -V 2>&1` in
7755*GNU* | *'with BFD'*)
7756  symcode='[ABCDGIRSTW]' ;;
7757esac
7758
7759# Try without a prefix undercore, then with it.
7760for ac_symprfx in "" "_"; do
7761
7762  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7763  symxfrm="\\1 $ac_symprfx\\2 \\2"
7764
7765  # Write the raw and C identifiers.
7766  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7767
7768  # Check to see that the pipe works correctly.
7769  pipe_works=no
7770
7771  rm -f conftest*
7772  cat > conftest.$ac_ext <<EOF
7773#ifdef __cplusplus
7774extern "C" {
7775#endif
7776char nm_test_var;
7777void nm_test_func(){}
7778#ifdef __cplusplus
7779}
7780#endif
7781int main(){nm_test_var='a';nm_test_func();return(0);}
7782EOF
7783
7784  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785  (eval $ac_compile) 2>&5
7786  ac_status=$?
7787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788  (exit $ac_status); }; then
7789    # Now try to grab the symbols.
7790    nlist=conftest.nm
7791    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7792  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7793  ac_status=$?
7794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795  (exit $ac_status); } && test -s "$nlist"; then
7796      # Try sorting and uniquifying the output.
7797      if sort "$nlist" | uniq > "$nlist"T; then
7798        mv -f "$nlist"T "$nlist"
7799      else
7800        rm -f "$nlist"T
7801      fi
7802
7803      # Make sure that we snagged all the symbols we need.
7804      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7805        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7806          cat <<EOF > conftest.$ac_ext
7807#ifdef __cplusplus
7808extern "C" {
7809#endif
7810
7811EOF
7812          # Now generate the symbol file.
7813          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7814
7815          cat <<EOF >> conftest.$ac_ext
7816#if defined (__STDC__) && __STDC__
7817# define lt_ptr_t void *
7818#else
7819# define lt_ptr_t char *
7820# define const
7821#endif
7822
7823/* The mapping between symbol names and symbols. */
7824const struct {
7825  const char *name;
7826  lt_ptr_t address;
7827}
7828lt_preloaded_symbols[] =
7829{
7830EOF
7831          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7832          cat <<\EOF >> conftest.$ac_ext
7833  {0, (lt_ptr_t) 0}
7834};
7835
7836#ifdef __cplusplus
7837}
7838#endif
7839EOF
7840          # Now try linking the two files.
7841          mv conftest.$ac_objext conftstm.$ac_objext
7842          lt_save_LIBS="$LIBS"
7843          lt_save_CFLAGS="$CFLAGS"
7844          LIBS="conftstm.$ac_objext"
7845          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7846          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7847  (eval $ac_link) 2>&5
7848  ac_status=$?
7849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7851            pipe_works=yes
7852          fi
7853          LIBS="$lt_save_LIBS"
7854          CFLAGS="$lt_save_CFLAGS"
7855        else
7856          echo "cannot find nm_test_func in $nlist" >&5
7857        fi
7858      else
7859        echo "cannot find nm_test_var in $nlist" >&5
7860      fi
7861    else
7862      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7863    fi
7864  else
7865    echo "$progname: failed program was:" >&5
7866    cat conftest.$ac_ext >&5
7867  fi
7868  rm -f conftest* conftst*
7869
7870  # Do not use the global_symbol_pipe unless it works.
7871  if test "$pipe_works" = yes; then
7872    break
7873  else
7874    lt_cv_sys_global_symbol_pipe=
7875  fi
7876done
7877
7878fi
7879
7880if test -z "$lt_cv_sys_global_symbol_pipe"; then
7881  lt_cv_sys_global_symbol_to_cdecl=
7882fi
7883if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7884  echo "$as_me:$LINENO: result: failed" >&5
7885echo "${ECHO_T}failed" >&6
7886else
7887  echo "$as_me:$LINENO: result: ok" >&5
7888echo "${ECHO_T}ok" >&6
7889fi
7890
7891echo "$as_me:$LINENO: checking for objdir" >&5
7892echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7893if test "${lt_cv_objdir+set}" = set; then
7894  echo $ECHO_N "(cached) $ECHO_C" >&6
7895else
7896  rm -f .libs 2>/dev/null
7897mkdir .libs 2>/dev/null
7898if test -d .libs; then
7899  lt_cv_objdir=.libs
7900else
7901  # MS-DOS does not allow filenames that begin with a dot.
7902  lt_cv_objdir=_libs
7903fi
7904rmdir .libs 2>/dev/null
7905fi
7906echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7907echo "${ECHO_T}$lt_cv_objdir" >&6
7908objdir=$lt_cv_objdir
7909
7910
7911
7912
7913
7914case $host_os in
7915aix3*)
7916  # AIX sometimes has problems with the GCC collect2 program.  For some
7917  # reason, if we set the COLLECT_NAMES environment variable, the problems
7918  # vanish in a puff of smoke.
7919  if test "X${COLLECT_NAMES+set}" != Xset; then
7920    COLLECT_NAMES=
7921    export COLLECT_NAMES
7922  fi
7923  ;;
7924esac
7925
7926# Sed substitution that helps us do robust quoting.  It backslashifies
7927# metacharacters that are still active within double-quoted strings.
7928Xsed='sed -e 1s/^X//'
7929sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7930
7931# Same as above, but do not quote variable references.
7932double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7933
7934# Sed substitution to delay expansion of an escaped shell variable in a
7935# double_quote_subst'ed string.
7936delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7937
7938# Sed substitution to avoid accidental globbing in evaled expressions
7939no_glob_subst='s/\*/\\\*/g'
7940
7941# Constants:
7942rm="rm -f"
7943
7944# Global variables:
7945default_ofile=libtool
7946can_build_shared=yes
7947
7948# All known linkers require a `.a' archive for static linking (except MSVC,
7949# which needs '.lib').
7950libext=a
7951ltmain="$ac_aux_dir/ltmain.sh"
7952ofile="$default_ofile"
7953with_gnu_ld="$lt_cv_prog_gnu_ld"
7954
7955if test -n "$ac_tool_prefix"; then
7956  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7957set dummy ${ac_tool_prefix}ar; ac_word=$2
7958echo "$as_me:$LINENO: checking for $ac_word" >&5
7959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7960if test "${ac_cv_prog_AR+set}" = set; then
7961  echo $ECHO_N "(cached) $ECHO_C" >&6
7962else
7963  if test -n "$AR"; then
7964  ac_cv_prog_AR="$AR" # Let the user override the test.
7965else
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969  IFS=$as_save_IFS
7970  test -z "$as_dir" && as_dir=.
7971  for ac_exec_ext in '' $ac_executable_extensions; do
7972  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7973    ac_cv_prog_AR="${ac_tool_prefix}ar"
7974    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975    break 2
7976  fi
7977done
7978done
7979
7980fi
7981fi
7982AR=$ac_cv_prog_AR
7983if test -n "$AR"; then
7984  echo "$as_me:$LINENO: result: $AR" >&5
7985echo "${ECHO_T}$AR" >&6
7986else
7987  echo "$as_me:$LINENO: result: no" >&5
7988echo "${ECHO_T}no" >&6
7989fi
7990
7991fi
7992if test -z "$ac_cv_prog_AR"; then
7993  ac_ct_AR=$AR
7994  # Extract the first word of "ar", so it can be a program name with args.
7995set dummy ar; ac_word=$2
7996echo "$as_me:$LINENO: checking for $ac_word" >&5
7997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7998if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7999  echo $ECHO_N "(cached) $ECHO_C" >&6
8000else
8001  if test -n "$ac_ct_AR"; then
8002  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8003else
8004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005for as_dir in $PATH
8006do
8007  IFS=$as_save_IFS
8008  test -z "$as_dir" && as_dir=.
8009  for ac_exec_ext in '' $ac_executable_extensions; do
8010  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8011    ac_cv_prog_ac_ct_AR="ar"
8012    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013    break 2
8014  fi
8015done
8016done
8017
8018  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8019fi
8020fi
8021ac_ct_AR=$ac_cv_prog_ac_ct_AR
8022if test -n "$ac_ct_AR"; then
8023  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8024echo "${ECHO_T}$ac_ct_AR" >&6
8025else
8026  echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6
8028fi
8029
8030  AR=$ac_ct_AR
8031else
8032  AR="$ac_cv_prog_AR"
8033fi
8034
8035if test -n "$ac_tool_prefix"; then
8036  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8037set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8038echo "$as_me:$LINENO: checking for $ac_word" >&5
8039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8040if test "${ac_cv_prog_RANLIB+set}" = set; then
8041  echo $ECHO_N "(cached) $ECHO_C" >&6
8042else
8043  if test -n "$RANLIB"; then
8044  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8045else
8046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047for as_dir in $PATH
8048do
8049  IFS=$as_save_IFS
8050  test -z "$as_dir" && as_dir=.
8051  for ac_exec_ext in '' $ac_executable_extensions; do
8052  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8054    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8055    break 2
8056  fi
8057done
8058done
8059
8060fi
8061fi
8062RANLIB=$ac_cv_prog_RANLIB
8063if test -n "$RANLIB"; then
8064  echo "$as_me:$LINENO: result: $RANLIB" >&5
8065echo "${ECHO_T}$RANLIB" >&6
8066else
8067  echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
8069fi
8070
8071fi
8072if test -z "$ac_cv_prog_RANLIB"; then
8073  ac_ct_RANLIB=$RANLIB
8074  # Extract the first word of "ranlib", so it can be a program name with args.
8075set dummy ranlib; ac_word=$2
8076echo "$as_me:$LINENO: checking for $ac_word" >&5
8077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8078if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8079  echo $ECHO_N "(cached) $ECHO_C" >&6
8080else
8081  if test -n "$ac_ct_RANLIB"; then
8082  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8083else
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087  IFS=$as_save_IFS
8088  test -z "$as_dir" && as_dir=.
8089  for ac_exec_ext in '' $ac_executable_extensions; do
8090  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8091    ac_cv_prog_ac_ct_RANLIB="ranlib"
8092    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093    break 2
8094  fi
8095done
8096done
8097
8098  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8099fi
8100fi
8101ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8102if test -n "$ac_ct_RANLIB"; then
8103  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8104echo "${ECHO_T}$ac_ct_RANLIB" >&6
8105else
8106  echo "$as_me:$LINENO: result: no" >&5
8107echo "${ECHO_T}no" >&6
8108fi
8109
8110  RANLIB=$ac_ct_RANLIB
8111else
8112  RANLIB="$ac_cv_prog_RANLIB"
8113fi
8114
8115if test -n "$ac_tool_prefix"; then
8116  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8117set dummy ${ac_tool_prefix}strip; ac_word=$2
8118echo "$as_me:$LINENO: checking for $ac_word" >&5
8119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8120if test "${ac_cv_prog_STRIP+set}" = set; then
8121  echo $ECHO_N "(cached) $ECHO_C" >&6
8122else
8123  if test -n "$STRIP"; then
8124  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8125else
8126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8127for as_dir in $PATH
8128do
8129  IFS=$as_save_IFS
8130  test -z "$as_dir" && as_dir=.
8131  for ac_exec_ext in '' $ac_executable_extensions; do
8132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8133    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135    break 2
8136  fi
8137done
8138done
8139
8140fi
8141fi
8142STRIP=$ac_cv_prog_STRIP
8143if test -n "$STRIP"; then
8144  echo "$as_me:$LINENO: result: $STRIP" >&5
8145echo "${ECHO_T}$STRIP" >&6
8146else
8147  echo "$as_me:$LINENO: result: no" >&5
8148echo "${ECHO_T}no" >&6
8149fi
8150
8151fi
8152if test -z "$ac_cv_prog_STRIP"; then
8153  ac_ct_STRIP=$STRIP
8154  # Extract the first word of "strip", so it can be a program name with args.
8155set dummy strip; ac_word=$2
8156echo "$as_me:$LINENO: checking for $ac_word" >&5
8157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8158if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8159  echo $ECHO_N "(cached) $ECHO_C" >&6
8160else
8161  if test -n "$ac_ct_STRIP"; then
8162  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8163else
8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167  IFS=$as_save_IFS
8168  test -z "$as_dir" && as_dir=.
8169  for ac_exec_ext in '' $ac_executable_extensions; do
8170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8171    ac_cv_prog_ac_ct_STRIP="strip"
8172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8173    break 2
8174  fi
8175done
8176done
8177
8178  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8179fi
8180fi
8181ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8182if test -n "$ac_ct_STRIP"; then
8183  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8184echo "${ECHO_T}$ac_ct_STRIP" >&6
8185else
8186  echo "$as_me:$LINENO: result: no" >&5
8187echo "${ECHO_T}no" >&6
8188fi
8189
8190  STRIP=$ac_ct_STRIP
8191else
8192  STRIP="$ac_cv_prog_STRIP"
8193fi
8194
8195
8196old_CC="$CC"
8197old_CFLAGS="$CFLAGS"
8198
8199# Set sane defaults for various variables
8200test -z "$AR" && AR=ar
8201test -z "$AR_FLAGS" && AR_FLAGS=cru
8202test -z "$AS" && AS=as
8203test -z "$CC" && CC=cc
8204test -z "$LTCC" && LTCC=$CC
8205test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8206test -z "$DLLTOOL" && DLLTOOL=dlltool
8207test -z "$LD" && LD=ld
8208test -z "$LN_S" && LN_S="ln -s"
8209test -z "$MAGIC_CMD" && MAGIC_CMD=file
8210test -z "$NM" && NM=nm
8211test -z "$SED" && SED=sed
8212test -z "$OBJDUMP" && OBJDUMP=objdump
8213test -z "$RANLIB" && RANLIB=:
8214test -z "$STRIP" && STRIP=:
8215test -z "$ac_objext" && ac_objext=o
8216
8217# Determine commands to create old-style static archives.
8218old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8219old_postinstall_cmds='chmod 644 $oldlib'
8220old_postuninstall_cmds=
8221
8222if test -n "$RANLIB"; then
8223  case $host_os in
8224  openbsd*)
8225    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8226    ;;
8227  *)
8228    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8229    ;;
8230  esac
8231  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8232fi
8233
8234for cc_temp in $compiler""; do
8235  case $cc_temp in
8236    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8237    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8238    \-*) ;;
8239    *) break;;
8240  esac
8241done
8242cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8243
8244
8245# Only perform the check for file, if the check method requires it
8246case $deplibs_check_method in
8247file_magic*)
8248  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8249    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8250echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8251if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8252  echo $ECHO_N "(cached) $ECHO_C" >&6
8253else
8254  case $MAGIC_CMD in
8255[\\/*] |  ?:[\\/]*)
8256  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8257  ;;
8258*)
8259  lt_save_MAGIC_CMD="$MAGIC_CMD"
8260  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8261  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8262  for ac_dir in $ac_dummy; do
8263    IFS="$lt_save_ifs"
8264    test -z "$ac_dir" && ac_dir=.
8265    if test -f $ac_dir/${ac_tool_prefix}file; then
8266      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8267      if test -n "$file_magic_test_file"; then
8268        case $deplibs_check_method in
8269        "file_magic "*)
8270          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8271          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8272          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8273            $EGREP "$file_magic_regex" > /dev/null; then
8274            :
8275          else
8276            cat <<EOF 1>&2
8277
8278*** Warning: the command libtool uses to detect shared libraries,
8279*** $file_magic_cmd, produces output that libtool cannot recognize.
8280*** The result is that libtool may fail to recognize shared libraries
8281*** as such.  This will affect the creation of libtool libraries that
8282*** depend on shared libraries, but programs linked with such libtool
8283*** libraries will work regardless of this problem.  Nevertheless, you
8284*** may want to report the problem to your system manager and/or to
8285*** bug-libtool@gnu.org
8286
8287EOF
8288          fi ;;
8289        esac
8290      fi
8291      break
8292    fi
8293  done
8294  IFS="$lt_save_ifs"
8295  MAGIC_CMD="$lt_save_MAGIC_CMD"
8296  ;;
8297esac
8298fi
8299
8300MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8301if test -n "$MAGIC_CMD"; then
8302  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8303echo "${ECHO_T}$MAGIC_CMD" >&6
8304else
8305  echo "$as_me:$LINENO: result: no" >&5
8306echo "${ECHO_T}no" >&6
8307fi
8308
8309if test -z "$lt_cv_path_MAGIC_CMD"; then
8310  if test -n "$ac_tool_prefix"; then
8311    echo "$as_me:$LINENO: checking for file" >&5
8312echo $ECHO_N "checking for file... $ECHO_C" >&6
8313if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8314  echo $ECHO_N "(cached) $ECHO_C" >&6
8315else
8316  case $MAGIC_CMD in
8317[\\/*] |  ?:[\\/]*)
8318  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8319  ;;
8320*)
8321  lt_save_MAGIC_CMD="$MAGIC_CMD"
8322  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8323  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8324  for ac_dir in $ac_dummy; do
8325    IFS="$lt_save_ifs"
8326    test -z "$ac_dir" && ac_dir=.
8327    if test -f $ac_dir/file; then
8328      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8329      if test -n "$file_magic_test_file"; then
8330        case $deplibs_check_method in
8331        "file_magic "*)
8332          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8333          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8334          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8335            $EGREP "$file_magic_regex" > /dev/null; then
8336            :
8337          else
8338            cat <<EOF 1>&2
8339
8340*** Warning: the command libtool uses to detect shared libraries,
8341*** $file_magic_cmd, produces output that libtool cannot recognize.
8342*** The result is that libtool may fail to recognize shared libraries
8343*** as such.  This will affect the creation of libtool libraries that
8344*** depend on shared libraries, but programs linked with such libtool
8345*** libraries will work regardless of this problem.  Nevertheless, you
8346*** may want to report the problem to your system manager and/or to
8347*** bug-libtool@gnu.org
8348
8349EOF
8350          fi ;;
8351        esac
8352      fi
8353      break
8354    fi
8355  done
8356  IFS="$lt_save_ifs"
8357  MAGIC_CMD="$lt_save_MAGIC_CMD"
8358  ;;
8359esac
8360fi
8361
8362MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8363if test -n "$MAGIC_CMD"; then
8364  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8365echo "${ECHO_T}$MAGIC_CMD" >&6
8366else
8367  echo "$as_me:$LINENO: result: no" >&5
8368echo "${ECHO_T}no" >&6
8369fi
8370
8371  else
8372    MAGIC_CMD=:
8373  fi
8374fi
8375
8376  fi
8377  ;;
8378esac
8379
8380enable_dlopen=no
8381enable_win32_dll=no
8382
8383# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8384if test "${enable_libtool_lock+set}" = set; then
8385  enableval="$enable_libtool_lock"
8386
8387fi;
8388test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8389
8390
8391# Check whether --with-pic or --without-pic was given.
8392if test "${with_pic+set}" = set; then
8393  withval="$with_pic"
8394  pic_mode="$withval"
8395else
8396  pic_mode=default
8397fi;
8398test -z "$pic_mode" && pic_mode=default
8399
8400# Use C for the default configuration in the libtool script
8401tagname=
8402lt_save_CC="$CC"
8403ac_ext=c
8404ac_cpp='$CPP $CPPFLAGS'
8405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8407ac_compiler_gnu=$ac_cv_c_compiler_gnu
8408
8409
8410# Source file extension for C test sources.
8411ac_ext=c
8412
8413# Object file extension for compiled C test sources.
8414objext=o
8415objext=$objext
8416
8417# Code to be used in simple compile tests
8418lt_simple_compile_test_code="int some_variable = 0;\n"
8419
8420# Code to be used in simple link tests
8421lt_simple_link_test_code='int main(){return(0);}\n'
8422
8423
8424# If no C compiler was specified, use CC.
8425LTCC=${LTCC-"$CC"}
8426
8427# If no C compiler flags were specified, use CFLAGS.
8428LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8429
8430# Allow CC to be a program name with arguments.
8431compiler=$CC
8432
8433
8434# save warnings/boilerplate of simple test code
8435ac_outfile=conftest.$ac_objext
8436printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8437eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8438_lt_compiler_boilerplate=`cat conftest.err`
8439$rm conftest*
8440
8441ac_outfile=conftest.$ac_objext
8442printf "$lt_simple_link_test_code" >conftest.$ac_ext
8443eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8444_lt_linker_boilerplate=`cat conftest.err`
8445$rm conftest*
8446
8447
8448## CAVEAT EMPTOR:
8449## There is no encapsulation within the following macros, do not change
8450## the running order or otherwise move them around unless you know exactly
8451## what you are doing...
8452
8453lt_prog_compiler_no_builtin_flag=
8454
8455if test "$GCC" = yes; then
8456  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8457
8458
8459echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8460echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8461if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8462  echo $ECHO_N "(cached) $ECHO_C" >&6
8463else
8464  lt_cv_prog_compiler_rtti_exceptions=no
8465  ac_outfile=conftest.$ac_objext
8466   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8467   lt_compiler_flag="-fno-rtti -fno-exceptions"
8468   # Insert the option either (1) after the last *FLAGS variable, or
8469   # (2) before a word containing "conftest.", or (3) at the end.
8470   # Note that $ac_compile itself does not contain backslashes and begins
8471   # with a dollar sign (not a hyphen), so the echo should work correctly.
8472   # The option is referenced via a variable to avoid confusing sed.
8473   lt_compile=`echo "$ac_compile" | $SED \
8474   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8475   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8476   -e 's:$: $lt_compiler_flag:'`
8477   (eval echo "\"\$as_me:8477: $lt_compile\"" >&5)
8478   (eval "$lt_compile" 2>conftest.err)
8479   ac_status=$?
8480   cat conftest.err >&5
8481   echo "$as_me:8481: \$? = $ac_status" >&5
8482   if (exit $ac_status) && test -s "$ac_outfile"; then
8483     # The compiler can only warn and ignore the option if not recognized
8484     # So say no if there are warnings other than the usual output.
8485     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8486     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8487     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8488       lt_cv_prog_compiler_rtti_exceptions=yes
8489     fi
8490   fi
8491   $rm conftest*
8492
8493fi
8494echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8495echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8496
8497if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8498    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8499else
8500    :
8501fi
8502
8503fi
8504
8505lt_prog_compiler_wl=
8506lt_prog_compiler_pic=
8507lt_prog_compiler_static=
8508
8509echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8510echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8511
8512  if test "$GCC" = yes; then
8513    lt_prog_compiler_wl='-Wl,'
8514    lt_prog_compiler_static='-static'
8515
8516    case $host_os in
8517      aix*)
8518      # All AIX code is PIC.
8519      if test "$host_cpu" = ia64; then
8520        # AIX 5 now supports IA64 processor
8521        lt_prog_compiler_static='-Bstatic'
8522      fi
8523      ;;
8524
8525    amigaos*)
8526      # FIXME: we need at least 68020 code to build shared libraries, but
8527      # adding the `-m68020' flag to GCC prevents building anything better,
8528      # like `-m68040'.
8529      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8530      ;;
8531
8532    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8533      # PIC is the default for these OSes.
8534      ;;
8535
8536    mingw* | pw32* | os2*)
8537      # This hack is so that the source file can tell whether it is being
8538      # built for inclusion in a dll (and should export symbols for example).
8539      lt_prog_compiler_pic='-DDLL_EXPORT'
8540      ;;
8541
8542    darwin* | rhapsody*)
8543      # PIC is the default on this platform
8544      # Common symbols not allowed in MH_DYLIB files
8545      lt_prog_compiler_pic='-fno-common'
8546      ;;
8547
8548    interix3*)
8549      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8550      # Instead, we relocate shared libraries at runtime.
8551      ;;
8552
8553    msdosdjgpp*)
8554      # Just because we use GCC doesn't mean we suddenly get shared libraries
8555      # on systems that don't support them.
8556      lt_prog_compiler_can_build_shared=no
8557      enable_shared=no
8558      ;;
8559
8560    sysv4*MP*)
8561      if test -d /usr/nec; then
8562        lt_prog_compiler_pic=-Kconform_pic
8563      fi
8564      ;;
8565
8566    hpux*)
8567      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8568      # not for PA HP-UX.
8569      case $host_cpu in
8570      hppa*64*|ia64*)
8571        # +Z the default
8572        ;;
8573      *)
8574        lt_prog_compiler_pic='-fPIC'
8575        ;;
8576      esac
8577      ;;
8578
8579    *)
8580      lt_prog_compiler_pic='-fPIC'
8581      ;;
8582    esac
8583  else
8584    # PORTME Check for flag to pass linker flags through the system compiler.
8585    case $host_os in
8586    aix*)
8587      lt_prog_compiler_wl='-Wl,'
8588      if test "$host_cpu" = ia64; then
8589        # AIX 5 now supports IA64 processor
8590        lt_prog_compiler_static='-Bstatic'
8591      else
8592        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8593      fi
8594      ;;
8595      darwin*)
8596        # PIC is the default on this platform
8597        # Common symbols not allowed in MH_DYLIB files
8598       case $cc_basename in
8599         xlc*)
8600         lt_prog_compiler_pic='-qnocommon'
8601         lt_prog_compiler_wl='-Wl,'
8602         ;;
8603       esac
8604       ;;
8605
8606    mingw* | pw32* | os2*)
8607      # This hack is so that the source file can tell whether it is being
8608      # built for inclusion in a dll (and should export symbols for example).
8609      lt_prog_compiler_pic='-DDLL_EXPORT'
8610      ;;
8611
8612    hpux9* | hpux10* | hpux11*)
8613      lt_prog_compiler_wl='-Wl,'
8614      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8615      # not for PA HP-UX.
8616      case $host_cpu in
8617      hppa*64*|ia64*)
8618        # +Z the default
8619        ;;
8620      *)
8621        lt_prog_compiler_pic='+Z'
8622        ;;
8623      esac
8624      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8625      lt_prog_compiler_static='${wl}-a ${wl}archive'
8626      ;;
8627
8628    irix5* | irix6* | nonstopux*)
8629      lt_prog_compiler_wl='-Wl,'
8630      # PIC (with -KPIC) is the default.
8631      lt_prog_compiler_static='-non_shared'
8632      ;;
8633
8634    newsos6)
8635      lt_prog_compiler_pic='-KPIC'
8636      lt_prog_compiler_static='-Bstatic'
8637      ;;
8638
8639    linux*)
8640      case $cc_basename in
8641      icc* | ecc*)
8642        lt_prog_compiler_wl='-Wl,'
8643        lt_prog_compiler_pic='-KPIC'
8644        lt_prog_compiler_static='-static'
8645        ;;
8646      pgcc* | pgf77* | pgf90* | pgf95*)
8647        # Portland Group compilers (*not* the Pentium gcc compiler,
8648        # which looks to be a dead project)
8649        lt_prog_compiler_wl='-Wl,'
8650        lt_prog_compiler_pic='-fpic'
8651        lt_prog_compiler_static='-Bstatic'
8652        ;;
8653      ccc*)
8654        lt_prog_compiler_wl='-Wl,'
8655        # All Alpha code is PIC.
8656        lt_prog_compiler_static='-non_shared'
8657        ;;
8658      esac
8659      ;;
8660
8661    osf3* | osf4* | osf5*)
8662      lt_prog_compiler_wl='-Wl,'
8663      # All OSF/1 code is PIC.
8664      lt_prog_compiler_static='-non_shared'
8665      ;;
8666
8667    solaris*)
8668      lt_prog_compiler_pic='-KPIC'
8669      lt_prog_compiler_static='-Bstatic'
8670      case $cc_basename in
8671      f77* | f90* | f95*)
8672        lt_prog_compiler_wl='-Qoption ld ';;
8673      *)
8674        lt_prog_compiler_wl='-Wl,';;
8675      esac
8676      ;;
8677
8678    sunos4*)
8679      lt_prog_compiler_wl='-Qoption ld '
8680      lt_prog_compiler_pic='-PIC'
8681      lt_prog_compiler_static='-Bstatic'
8682      ;;
8683
8684    sysv4 | sysv4.2uw2* | sysv4.3*)
8685      lt_prog_compiler_wl='-Wl,'
8686      lt_prog_compiler_pic='-KPIC'
8687      lt_prog_compiler_static='-Bstatic'
8688      ;;
8689
8690    sysv4*MP*)
8691      if test -d /usr/nec ;then
8692        lt_prog_compiler_pic='-Kconform_pic'
8693        lt_prog_compiler_static='-Bstatic'
8694      fi
8695      ;;
8696
8697    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8698      lt_prog_compiler_wl='-Wl,'
8699      lt_prog_compiler_pic='-KPIC'
8700      lt_prog_compiler_static='-Bstatic'
8701      ;;
8702
8703    unicos*)
8704      lt_prog_compiler_wl='-Wl,'
8705      lt_prog_compiler_can_build_shared=no
8706      ;;
8707
8708    uts4*)
8709      lt_prog_compiler_pic='-pic'
8710      lt_prog_compiler_static='-Bstatic'
8711      ;;
8712
8713    *)
8714      lt_prog_compiler_can_build_shared=no
8715      ;;
8716    esac
8717  fi
8718
8719echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8720echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8721
8722#
8723# Check to make sure the PIC flag actually works.
8724#
8725if test -n "$lt_prog_compiler_pic"; then
8726
8727echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8728echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8729if test "${lt_prog_compiler_pic_works+set}" = set; then
8730  echo $ECHO_N "(cached) $ECHO_C" >&6
8731else
8732  lt_prog_compiler_pic_works=no
8733  ac_outfile=conftest.$ac_objext
8734   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8735   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8736   # Insert the option either (1) after the last *FLAGS variable, or
8737   # (2) before a word containing "conftest.", or (3) at the end.
8738   # Note that $ac_compile itself does not contain backslashes and begins
8739   # with a dollar sign (not a hyphen), so the echo should work correctly.
8740   # The option is referenced via a variable to avoid confusing sed.
8741   lt_compile=`echo "$ac_compile" | $SED \
8742   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8743   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8744   -e 's:$: $lt_compiler_flag:'`
8745   (eval echo "\"\$as_me:8745: $lt_compile\"" >&5)
8746   (eval "$lt_compile" 2>conftest.err)
8747   ac_status=$?
8748   cat conftest.err >&5
8749   echo "$as_me:8749: \$? = $ac_status" >&5
8750   if (exit $ac_status) && test -s "$ac_outfile"; then
8751     # The compiler can only warn and ignore the option if not recognized
8752     # So say no if there are warnings other than the usual output.
8753     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8754     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8755     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8756       lt_prog_compiler_pic_works=yes
8757     fi
8758   fi
8759   $rm conftest*
8760
8761fi
8762echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8763echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8764
8765if test x"$lt_prog_compiler_pic_works" = xyes; then
8766    case $lt_prog_compiler_pic in
8767     "" | " "*) ;;
8768     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8769     esac
8770else
8771    lt_prog_compiler_pic=
8772     lt_prog_compiler_can_build_shared=no
8773fi
8774
8775fi
8776case $host_os in
8777  # For platforms which do not support PIC, -DPIC is meaningless:
8778  *djgpp*)
8779    lt_prog_compiler_pic=
8780    ;;
8781  *)
8782    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8783    ;;
8784esac
8785
8786#
8787# Check to make sure the static flag actually works.
8788#
8789wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8790echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8791echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8792if test "${lt_prog_compiler_static_works+set}" = set; then
8793  echo $ECHO_N "(cached) $ECHO_C" >&6
8794else
8795  lt_prog_compiler_static_works=no
8796   save_LDFLAGS="$LDFLAGS"
8797   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8798   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8799   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8800     # The linker can only warn and ignore the option if not recognized
8801     # So say no if there are warnings
8802     if test -s conftest.err; then
8803       # Append any errors to the config.log.
8804       cat conftest.err 1>&5
8805       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8806       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8807       if diff conftest.exp conftest.er2 >/dev/null; then
8808         lt_prog_compiler_static_works=yes
8809       fi
8810     else
8811       lt_prog_compiler_static_works=yes
8812     fi
8813   fi
8814   $rm conftest*
8815   LDFLAGS="$save_LDFLAGS"
8816
8817fi
8818echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8819echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8820
8821if test x"$lt_prog_compiler_static_works" = xyes; then
8822    :
8823else
8824    lt_prog_compiler_static=
8825fi
8826
8827
8828echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8829echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8830if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8831  echo $ECHO_N "(cached) $ECHO_C" >&6
8832else
8833  lt_cv_prog_compiler_c_o=no
8834   $rm -r conftest 2>/dev/null
8835   mkdir conftest
8836   cd conftest
8837   mkdir out
8838   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8839
8840   lt_compiler_flag="-o out/conftest2.$ac_objext"
8841   # Insert the option either (1) after the last *FLAGS variable, or
8842   # (2) before a word containing "conftest.", or (3) at the end.
8843   # Note that $ac_compile itself does not contain backslashes and begins
8844   # with a dollar sign (not a hyphen), so the echo should work correctly.
8845   lt_compile=`echo "$ac_compile" | $SED \
8846   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8847   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8848   -e 's:$: $lt_compiler_flag:'`
8849   (eval echo "\"\$as_me:8849: $lt_compile\"" >&5)
8850   (eval "$lt_compile" 2>out/conftest.err)
8851   ac_status=$?
8852   cat out/conftest.err >&5
8853   echo "$as_me:8853: \$? = $ac_status" >&5
8854   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8855   then
8856     # The compiler can only warn and ignore the option if not recognized
8857     # So say no if there are warnings
8858     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8859     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8860     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8861       lt_cv_prog_compiler_c_o=yes
8862     fi
8863   fi
8864   chmod u+w . 2>&5
8865   $rm conftest*
8866   # SGI C++ compiler will create directory out/ii_files/ for
8867   # template instantiation
8868   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8869   $rm out/* && rmdir out
8870   cd ..
8871   rmdir conftest
8872   $rm conftest*
8873
8874fi
8875echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8876echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8877
8878
8879hard_links="nottested"
8880if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8881  # do not overwrite the value of need_locks provided by the user
8882  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8883echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8884  hard_links=yes
8885  $rm conftest*
8886  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8887  touch conftest.a
8888  ln conftest.a conftest.b 2>&5 || hard_links=no
8889  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8890  echo "$as_me:$LINENO: result: $hard_links" >&5
8891echo "${ECHO_T}$hard_links" >&6
8892  if test "$hard_links" = no; then
8893    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8894echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8895    need_locks=warn
8896  fi
8897else
8898  need_locks=no
8899fi
8900
8901echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8902echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8903
8904  runpath_var=
8905  allow_undefined_flag=
8906  enable_shared_with_static_runtimes=no
8907  archive_cmds=
8908  archive_expsym_cmds=
8909  old_archive_From_new_cmds=
8910  old_archive_from_expsyms_cmds=
8911  export_dynamic_flag_spec=
8912  whole_archive_flag_spec=
8913  thread_safe_flag_spec=
8914  hardcode_libdir_flag_spec=
8915  hardcode_libdir_flag_spec_ld=
8916  hardcode_libdir_separator=
8917  hardcode_direct=no
8918  hardcode_minus_L=no
8919  hardcode_shlibpath_var=unsupported
8920  link_all_deplibs=unknown
8921  hardcode_automatic=no
8922  module_cmds=
8923  module_expsym_cmds=
8924  always_export_symbols=no
8925  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8926  # include_expsyms should be a list of space-separated symbols to be *always*
8927  # included in the symbol list
8928  include_expsyms=
8929  # exclude_expsyms can be an extended regexp of symbols to exclude
8930  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8931  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8932  # as well as any symbol that contains `d'.
8933  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8934  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8935  # platforms (ab)use it in PIC code, but their linkers get confused if
8936  # the symbol is explicitly referenced.  Since portable code cannot
8937  # rely on this symbol name, it's probably fine to never include it in
8938  # preloaded symbol tables.
8939  extract_expsyms_cmds=
8940  # Just being paranoid about ensuring that cc_basename is set.
8941  for cc_temp in $compiler""; do
8942  case $cc_temp in
8943    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8944    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8945    \-*) ;;
8946    *) break;;
8947  esac
8948done
8949cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8950
8951  case $host_os in
8952  cygwin* | mingw* | pw32*)
8953    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8954    # When not using gcc, we currently assume that we are using
8955    # Microsoft Visual C++.
8956    if test "$GCC" != yes; then
8957      with_gnu_ld=no
8958    fi
8959    ;;
8960  interix*)
8961    # we just hope/assume this is gcc and not c89 (= MSVC++)
8962    with_gnu_ld=yes
8963    ;;
8964  openbsd*)
8965    with_gnu_ld=no
8966    ;;
8967  esac
8968
8969  ld_shlibs=yes
8970  if test "$with_gnu_ld" = yes; then
8971    # If archive_cmds runs LD, not CC, wlarc should be empty
8972    wlarc='${wl}'
8973
8974    # Set some defaults for GNU ld with shared library support. These
8975    # are reset later if shared libraries are not supported. Putting them
8976    # here allows them to be overridden if necessary.
8977    runpath_var=LD_RUN_PATH
8978    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8979    export_dynamic_flag_spec='${wl}--export-dynamic'
8980    # ancient GNU ld didn't support --whole-archive et. al.
8981    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8982        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8983      else
8984        whole_archive_flag_spec=
8985    fi
8986    supports_anon_versioning=no
8987    case `$LD -v 2>/dev/null` in
8988      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8989      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8990      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8991      *\ 2.11.*) ;; # other 2.11 versions
8992      *) supports_anon_versioning=yes ;;
8993    esac
8994
8995    # See if GNU ld supports shared libraries.
8996    case $host_os in
8997    aix3* | aix4* | aix5*)
8998      # On AIX/PPC, the GNU linker is very broken
8999      if test "$host_cpu" != ia64; then
9000        ld_shlibs=no
9001        cat <<EOF 1>&2
9002
9003*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9004*** to be unable to reliably create shared libraries on AIX.
9005*** Therefore, libtool is disabling shared libraries support.  If you
9006*** really care for shared libraries, you may want to modify your PATH
9007*** so that a non-GNU linker is found, and then restart.
9008
9009EOF
9010      fi
9011      ;;
9012
9013    amigaos*)
9014      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)'
9015      hardcode_libdir_flag_spec='-L$libdir'
9016      hardcode_minus_L=yes
9017
9018      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9019      # that the semantics of dynamic libraries on AmigaOS, at least up
9020      # to version 4, is to share data among multiple programs linked
9021      # with the same dynamic library.  Since this doesn't match the
9022      # behavior of shared libraries on other platforms, we can't use
9023      # them.
9024      ld_shlibs=no
9025      ;;
9026
9027    beos*)
9028      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9029        allow_undefined_flag=unsupported
9030        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9031        # support --undefined.  This deserves some investigation.  FIXME
9032        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9033      else
9034        ld_shlibs=no
9035      fi
9036      ;;
9037
9038    cygwin* | mingw* | pw32*)
9039      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9040      # as there is no search path for DLLs.
9041      hardcode_libdir_flag_spec='-L$libdir'
9042      allow_undefined_flag=unsupported
9043      always_export_symbols=no
9044      enable_shared_with_static_runtimes=yes
9045      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9046
9047      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9048        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9049        # If the export-symbols file already is a .def file (1st line
9050        # is EXPORTS), use it as is; otherwise, prepend...
9051        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9052          cp $export_symbols $output_objdir/$soname.def;
9053        else
9054          echo EXPORTS > $output_objdir/$soname.def;
9055          cat $export_symbols >> $output_objdir/$soname.def;
9056        fi~
9057        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9058      else
9059        ld_shlibs=no
9060      fi
9061      ;;
9062
9063    interix3*)
9064      hardcode_direct=no
9065      hardcode_shlibpath_var=no
9066      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9067      export_dynamic_flag_spec='${wl}-E'
9068      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9069      # Instead, shared libraries are loaded at an image base (0x10000000 by
9070      # default) and relocated if they conflict, which is a slow very memory
9071      # consuming and fragmenting process.  To avoid this, we pick a random,
9072      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9073      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9074      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9075      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'
9076      ;;
9077
9078    linux*)
9079      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9080        tmp_addflag=
9081        case $cc_basename,$host_cpu in
9082        pgcc*)                          # Portland Group C compiler
9083          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'
9084          tmp_addflag=' $pic_flag'
9085          ;;
9086        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9087          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'
9088          tmp_addflag=' $pic_flag -Mnomain' ;;
9089        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9090          tmp_addflag=' -i_dynamic' ;;
9091        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9092          tmp_addflag=' -i_dynamic -nofor_main' ;;
9093        ifc* | ifort*)                  # Intel Fortran compiler
9094          tmp_addflag=' -nofor_main' ;;
9095        esac
9096        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9097
9098        if test $supports_anon_versioning = yes; then
9099          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9100  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9101  $echo "local: *; };" >> $output_objdir/$libname.ver~
9102          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9103        fi
9104      else
9105        ld_shlibs=no
9106      fi
9107      ;;
9108
9109    netbsd*)
9110      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9111        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9112        wlarc=
9113      else
9114        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9115        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9116      fi
9117      ;;
9118
9119    solaris*)
9120      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9121        ld_shlibs=no
9122        cat <<EOF 1>&2
9123
9124*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9125*** create shared libraries on Solaris systems.  Therefore, libtool
9126*** is disabling shared libraries support.  We urge you to upgrade GNU
9127*** binutils to release 2.9.1 or newer.  Another option is to modify
9128*** your PATH or compiler configuration so that the native linker is
9129*** used, and then restart.
9130
9131EOF
9132      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9133        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9134        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9135      else
9136        ld_shlibs=no
9137      fi
9138      ;;
9139
9140    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9141      case `$LD -v 2>&1` in
9142        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9143        ld_shlibs=no
9144        cat <<_LT_EOF 1>&2
9145
9146*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9147*** reliably create shared libraries on SCO systems.  Therefore, libtool
9148*** is disabling shared libraries support.  We urge you to upgrade GNU
9149*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9150*** your PATH or compiler configuration so that the native linker is
9151*** used, and then restart.
9152
9153_LT_EOF
9154        ;;
9155        *)
9156          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9157            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9158            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9159            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9160          else
9161            ld_shlibs=no
9162          fi
9163        ;;
9164      esac
9165      ;;
9166
9167    sunos4*)
9168      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9169      wlarc=
9170      hardcode_direct=yes
9171      hardcode_shlibpath_var=no
9172      ;;
9173
9174    *)
9175      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9176        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9177        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9178      else
9179        ld_shlibs=no
9180      fi
9181      ;;
9182    esac
9183
9184    if test "$ld_shlibs" = no; then
9185      runpath_var=
9186      hardcode_libdir_flag_spec=
9187      export_dynamic_flag_spec=
9188      whole_archive_flag_spec=
9189    fi
9190  else
9191    # PORTME fill in a description of your system's linker (not GNU ld)
9192    case $host_os in
9193    aix3*)
9194      allow_undefined_flag=unsupported
9195      always_export_symbols=yes
9196      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'
9197      # Note: this linker hardcodes the directories in LIBPATH if there
9198      # are no directories specified by -L.
9199      hardcode_minus_L=yes
9200      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9201        # Neither direct hardcoding nor static linking is supported with a
9202        # broken collect2.
9203        hardcode_direct=unsupported
9204      fi
9205      ;;
9206
9207    aix4* | aix5*)
9208      if test "$host_cpu" = ia64; then
9209        # On IA64, the linker does run time linking by default, so we don't
9210        # have to do anything special.
9211        aix_use_runtimelinking=no
9212        exp_sym_flag='-Bexport'
9213        no_entry_flag=""
9214      else
9215        # If we're using GNU nm, then we don't want the "-C" option.
9216        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9217        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9218          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'
9219        else
9220          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'
9221        fi
9222        aix_use_runtimelinking=no
9223
9224        # Test if we are trying to use run time linking or normal
9225        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9226        # need to do runtime linking.
9227        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9228          for ld_flag in $LDFLAGS; do
9229          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9230            aix_use_runtimelinking=yes
9231            break
9232          fi
9233          done
9234          ;;
9235        esac
9236
9237        exp_sym_flag='-bexport'
9238        no_entry_flag='-bnoentry'
9239      fi
9240
9241      # When large executables or shared objects are built, AIX ld can
9242      # have problems creating the table of contents.  If linking a library
9243      # or program results in "error TOC overflow" add -mminimal-toc to
9244      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9245      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9246
9247      archive_cmds=''
9248      hardcode_direct=yes
9249      hardcode_libdir_separator=':'
9250      link_all_deplibs=yes
9251
9252      if test "$GCC" = yes; then
9253        case $host_os in aix4.[012]|aix4.[012].*)
9254        # We only want to do this on AIX 4.2 and lower, the check
9255        # below for broken collect2 doesn't work under 4.3+
9256          collect2name=`${CC} -print-prog-name=collect2`
9257          if test -f "$collect2name" && \
9258           strings "$collect2name" | grep resolve_lib_name >/dev/null
9259          then
9260          # We have reworked collect2
9261          hardcode_direct=yes
9262          else
9263          # We have old collect2
9264          hardcode_direct=unsupported
9265          # It fails to find uninstalled libraries when the uninstalled
9266          # path is not listed in the libpath.  Setting hardcode_minus_L
9267          # to unsupported forces relinking
9268          hardcode_minus_L=yes
9269          hardcode_libdir_flag_spec='-L$libdir'
9270          hardcode_libdir_separator=
9271          fi
9272          ;;
9273        esac
9274        shared_flag='-shared'
9275        if test "$aix_use_runtimelinking" = yes; then
9276          shared_flag="$shared_flag "'${wl}-G'
9277        fi
9278      else
9279        # not using gcc
9280        if test "$host_cpu" = ia64; then
9281        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9282        # chokes on -Wl,-G. The following line is correct:
9283          shared_flag='-G'
9284        else
9285          if test "$aix_use_runtimelinking" = yes; then
9286            shared_flag='${wl}-G'
9287          else
9288            shared_flag='${wl}-bM:SRE'
9289          fi
9290        fi
9291      fi
9292
9293      # It seems that -bexpall does not export symbols beginning with
9294      # underscore (_), so it is better to generate a list of symbols to export.
9295      always_export_symbols=yes
9296      if test "$aix_use_runtimelinking" = yes; then
9297        # Warning - without using the other runtime loading flags (-brtl),
9298        # -berok will link without error, but may produce a broken library.
9299        allow_undefined_flag='-berok'
9300       # Determine the default libpath from the value encoded in an empty executable.
9301       cat >conftest.$ac_ext <<_ACEOF
9302/* confdefs.h.  */
9303_ACEOF
9304cat confdefs.h >>conftest.$ac_ext
9305cat >>conftest.$ac_ext <<_ACEOF
9306/* end confdefs.h.  */
9307
9308int
9309main ()
9310{
9311
9312  ;
9313  return 0;
9314}
9315_ACEOF
9316rm -f conftest.$ac_objext conftest$ac_exeext
9317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318  (eval $ac_link) 2>conftest.er1
9319  ac_status=$?
9320  grep -v '^ *+' conftest.er1 >conftest.err
9321  rm -f conftest.er1
9322  cat conftest.err >&5
9323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324  (exit $ac_status); } &&
9325         { ac_try='test -z "$ac_c_werror_flag"
9326                         || test ! -s conftest.err'
9327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328  (eval $ac_try) 2>&5
9329  ac_status=$?
9330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331  (exit $ac_status); }; } &&
9332         { ac_try='test -s conftest$ac_exeext'
9333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334  (eval $ac_try) 2>&5
9335  ac_status=$?
9336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337  (exit $ac_status); }; }; then
9338
9339aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9340}'`
9341# Check for a 64-bit object if we didn't find anything.
9342if 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; }
9343}'`; fi
9344else
9345  echo "$as_me: failed program was:" >&5
9346sed 's/^/| /' conftest.$ac_ext >&5
9347
9348fi
9349rm -f conftest.err conftest.$ac_objext \
9350      conftest$ac_exeext conftest.$ac_ext
9351if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9352
9353       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9354        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"
9355       else
9356        if test "$host_cpu" = ia64; then
9357          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9358          allow_undefined_flag="-z nodefs"
9359          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"
9360        else
9361         # Determine the default libpath from the value encoded in an empty executable.
9362         cat >conftest.$ac_ext <<_ACEOF
9363/* confdefs.h.  */
9364_ACEOF
9365cat confdefs.h >>conftest.$ac_ext
9366cat >>conftest.$ac_ext <<_ACEOF
9367/* end confdefs.h.  */
9368
9369int
9370main ()
9371{
9372
9373  ;
9374  return 0;
9375}
9376_ACEOF
9377rm -f conftest.$ac_objext conftest$ac_exeext
9378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9379  (eval $ac_link) 2>conftest.er1
9380  ac_status=$?
9381  grep -v '^ *+' conftest.er1 >conftest.err
9382  rm -f conftest.er1
9383  cat conftest.err >&5
9384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385  (exit $ac_status); } &&
9386         { ac_try='test -z "$ac_c_werror_flag"
9387                         || test ! -s conftest.err'
9388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9389  (eval $ac_try) 2>&5
9390  ac_status=$?
9391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392  (exit $ac_status); }; } &&
9393         { ac_try='test -s conftest$ac_exeext'
9394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395  (eval $ac_try) 2>&5
9396  ac_status=$?
9397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398  (exit $ac_status); }; }; then
9399
9400aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9401}'`
9402# Check for a 64-bit object if we didn't find anything.
9403if 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; }
9404}'`; fi
9405else
9406  echo "$as_me: failed program was:" >&5
9407sed 's/^/| /' conftest.$ac_ext >&5
9408
9409fi
9410rm -f conftest.err conftest.$ac_objext \
9411      conftest$ac_exeext conftest.$ac_ext
9412if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9413
9414         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9415          # Warning - without using the other run time loading flags,
9416          # -berok will link without error, but may produce a broken library.
9417          no_undefined_flag=' ${wl}-bernotok'
9418          allow_undefined_flag=' ${wl}-berok'
9419          # Exported symbols can be pulled into shared objects from archives
9420          whole_archive_flag_spec='$convenience'
9421          archive_cmds_need_lc=yes
9422          # This is similar to how AIX traditionally builds its shared libraries.
9423          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'
9424        fi
9425      fi
9426      ;;
9427
9428    amigaos*)
9429      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)'
9430      hardcode_libdir_flag_spec='-L$libdir'
9431      hardcode_minus_L=yes
9432      # see comment about different semantics on the GNU ld section
9433      ld_shlibs=no
9434      ;;
9435
9436    bsdi[45]*)
9437      export_dynamic_flag_spec=-rdynamic
9438      ;;
9439
9440    cygwin* | mingw* | pw32*)
9441      # When not using gcc, we currently assume that we are using
9442      # Microsoft Visual C++.
9443      # hardcode_libdir_flag_spec is actually meaningless, as there is
9444      # no search path for DLLs.
9445      hardcode_libdir_flag_spec=' '
9446      allow_undefined_flag=unsupported
9447      # Tell ltmain to make .lib files, not .a files.
9448      libext=lib
9449      # Tell ltmain to make .dll files, not .so files.
9450      shrext_cmds=".dll"
9451      # FIXME: Setting linknames here is a bad hack.
9452      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9453      # The linker will automatically build a .lib file if we build a DLL.
9454      old_archive_From_new_cmds='true'
9455      # FIXME: Should let the user specify the lib program.
9456      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9457      fix_srcfile_path='`cygpath -w "$srcfile"`'
9458      enable_shared_with_static_runtimes=yes
9459      ;;
9460
9461    darwin* | rhapsody*)
9462      case $host_os in
9463        rhapsody* | darwin1.[012])
9464         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9465         ;;
9466       *) # Darwin 1.3 on
9467         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9468           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9469         else
9470           case ${MACOSX_DEPLOYMENT_TARGET} in
9471             10.[012])
9472               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9473               ;;
9474             10.*)
9475               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9476               ;;
9477           esac
9478         fi
9479         ;;
9480      esac
9481      archive_cmds_need_lc=no
9482      hardcode_direct=no
9483      hardcode_automatic=yes
9484      hardcode_shlibpath_var=unsupported
9485      whole_archive_flag_spec=''
9486      link_all_deplibs=yes
9487    if test "$GCC" = yes ; then
9488        output_verbose_link_cmd='echo'
9489        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9490      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9491      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9492      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}'
9493      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}'
9494    else
9495      case $cc_basename in
9496        xlc*)
9497         output_verbose_link_cmd='echo'
9498         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9499         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9500          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9501         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}'
9502          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}'
9503          ;;
9504       *)
9505         ld_shlibs=no
9506          ;;
9507      esac
9508    fi
9509      ;;
9510
9511    dgux*)
9512      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513      hardcode_libdir_flag_spec='-L$libdir'
9514      hardcode_shlibpath_var=no
9515      ;;
9516
9517    freebsd1*)
9518      ld_shlibs=no
9519      ;;
9520
9521    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9522    # support.  Future versions do this automatically, but an explicit c++rt0.o
9523    # does not break anything, and helps significantly (at the cost of a little
9524    # extra space).
9525    freebsd2.2*)
9526      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9527      hardcode_libdir_flag_spec='-R$libdir'
9528      hardcode_direct=yes
9529      hardcode_shlibpath_var=no
9530      ;;
9531
9532    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9533    freebsd2*)
9534      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9535      hardcode_direct=yes
9536      hardcode_minus_L=yes
9537      hardcode_shlibpath_var=no
9538      ;;
9539
9540    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9541    freebsd* | kfreebsd*-gnu | dragonfly*)
9542      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9543      hardcode_libdir_flag_spec='-R$libdir'
9544      hardcode_direct=yes
9545      hardcode_shlibpath_var=no
9546      ;;
9547
9548    hpux9*)
9549      if test "$GCC" = yes; then
9550        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'
9551      else
9552        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'
9553      fi
9554      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9555      hardcode_libdir_separator=:
9556      hardcode_direct=yes
9557
9558      # hardcode_minus_L: Not really in the search PATH,
9559      # but as the default location of the library.
9560      hardcode_minus_L=yes
9561      export_dynamic_flag_spec='${wl}-E'
9562      ;;
9563
9564    hpux10*)
9565      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9566        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9567      else
9568        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9569      fi
9570      if test "$with_gnu_ld" = no; then
9571        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9572        hardcode_libdir_separator=:
9573
9574        hardcode_direct=yes
9575        export_dynamic_flag_spec='${wl}-E'
9576
9577        # hardcode_minus_L: Not really in the search PATH,
9578        # but as the default location of the library.
9579        hardcode_minus_L=yes
9580      fi
9581      ;;
9582
9583    hpux11*)
9584      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9585        case $host_cpu in
9586        hppa*64*)
9587          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9588          ;;
9589        ia64*)
9590          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9591          ;;
9592        *)
9593          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9594          ;;
9595        esac
9596      else
9597        case $host_cpu in
9598        hppa*64*)
9599          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9600          ;;
9601        ia64*)
9602          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9603          ;;
9604        *)
9605          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9606          ;;
9607        esac
9608      fi
9609      if test "$with_gnu_ld" = no; then
9610        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9611        hardcode_libdir_separator=:
9612
9613        case $host_cpu in
9614        hppa*64*|ia64*)
9615          hardcode_libdir_flag_spec_ld='+b $libdir'
9616          hardcode_direct=no
9617          hardcode_shlibpath_var=no
9618          ;;
9619        *)
9620          hardcode_direct=yes
9621          export_dynamic_flag_spec='${wl}-E'
9622
9623          # hardcode_minus_L: Not really in the search PATH,
9624          # but as the default location of the library.
9625          hardcode_minus_L=yes
9626          ;;
9627        esac
9628      fi
9629      ;;
9630
9631    irix5* | irix6* | nonstopux*)
9632      if test "$GCC" = yes; then
9633        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'
9634      else
9635        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'
9636        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9637      fi
9638      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9639      hardcode_libdir_separator=:
9640      link_all_deplibs=yes
9641      ;;
9642
9643    netbsd*)
9644      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9645        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9646      else
9647        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9648      fi
9649      hardcode_libdir_flag_spec='-R$libdir'
9650      hardcode_direct=yes
9651      hardcode_shlibpath_var=no
9652      ;;
9653
9654    newsos6)
9655      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656      hardcode_direct=yes
9657      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9658      hardcode_libdir_separator=:
9659      hardcode_shlibpath_var=no
9660      ;;
9661
9662    openbsd*)
9663      hardcode_direct=yes
9664      hardcode_shlibpath_var=no
9665      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9666        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9667        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9668        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9669        export_dynamic_flag_spec='${wl}-E'
9670      else
9671       case $host_os in
9672         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9673           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9674           hardcode_libdir_flag_spec='-R$libdir'
9675           ;;
9676         *)
9677           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9678           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9679           ;;
9680       esac
9681      fi
9682      ;;
9683
9684    os2*)
9685      hardcode_libdir_flag_spec='-L$libdir'
9686      hardcode_minus_L=yes
9687      allow_undefined_flag=unsupported
9688      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'
9689      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9690      ;;
9691
9692    osf3*)
9693      if test "$GCC" = yes; then
9694        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9695        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'
9696      else
9697        allow_undefined_flag=' -expect_unresolved \*'
9698        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'
9699      fi
9700      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9701      hardcode_libdir_separator=:
9702      ;;
9703
9704    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9705      if test "$GCC" = yes; then
9706        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9707        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'
9708        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9709      else
9710        allow_undefined_flag=' -expect_unresolved \*'
9711        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'
9712        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9713        $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'
9714
9715        # Both c and cxx compiler support -rpath directly
9716        hardcode_libdir_flag_spec='-rpath $libdir'
9717      fi
9718      hardcode_libdir_separator=:
9719      ;;
9720
9721    solaris*)
9722      no_undefined_flag=' -z text'
9723      if test "$GCC" = yes; then
9724        wlarc='${wl}'
9725        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9726        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9727          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9728      else
9729        wlarc=''
9730        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9732        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9733      fi
9734      hardcode_libdir_flag_spec='-R$libdir'
9735      hardcode_shlibpath_var=no
9736      case $host_os in
9737      solaris2.[0-5] | solaris2.[0-5].*) ;;
9738      *)
9739        # The compiler driver will combine linker options so we
9740        # cannot just pass the convience library names through
9741        # without $wl, iff we do not link with $LD.
9742        # Luckily, gcc supports the same syntax we need for Sun Studio.
9743        # Supported since Solaris 2.6 (maybe 2.5.1?)
9744        case $wlarc in
9745        '')
9746          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9747        *)
9748          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' ;;
9749        esac ;;
9750      esac
9751      link_all_deplibs=yes
9752      ;;
9753
9754    sunos4*)
9755      if test "x$host_vendor" = xsequent; then
9756        # Use $CC to link under sequent, because it throws in some extra .o
9757        # files that make .init and .fini sections work.
9758        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9759      else
9760        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9761      fi
9762      hardcode_libdir_flag_spec='-L$libdir'
9763      hardcode_direct=yes
9764      hardcode_minus_L=yes
9765      hardcode_shlibpath_var=no
9766      ;;
9767
9768    sysv4)
9769      case $host_vendor in
9770        sni)
9771          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9772          hardcode_direct=yes # is this really true???
9773        ;;
9774        siemens)
9775          ## LD is ld it makes a PLAMLIB
9776          ## CC just makes a GrossModule.
9777          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9778          reload_cmds='$CC -r -o $output$reload_objs'
9779          hardcode_direct=no
9780        ;;
9781        motorola)
9782          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9784        ;;
9785      esac
9786      runpath_var='LD_RUN_PATH'
9787      hardcode_shlibpath_var=no
9788      ;;
9789
9790    sysv4.3*)
9791      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792      hardcode_shlibpath_var=no
9793      export_dynamic_flag_spec='-Bexport'
9794      ;;
9795
9796    sysv4*MP*)
9797      if test -d /usr/nec; then
9798        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9799        hardcode_shlibpath_var=no
9800        runpath_var=LD_RUN_PATH
9801        hardcode_runpath_var=yes
9802        ld_shlibs=yes
9803      fi
9804      ;;
9805
9806    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9807      no_undefined_flag='${wl}-z,text'
9808      archive_cmds_need_lc=no
9809      hardcode_shlibpath_var=no
9810      runpath_var='LD_RUN_PATH'
9811
9812      if test "$GCC" = yes; then
9813        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9814        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9815      else
9816        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9817        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9818      fi
9819      ;;
9820
9821    sysv5* | sco3.2v5* | sco5v6*)
9822      # Note: We can NOT use -z defs as we might desire, because we do not
9823      # link with -lc, and that would cause any symbols used from libc to
9824      # always be unresolved, which means just about no library would
9825      # ever link correctly.  If we're not using GNU ld we use -z text
9826      # though, which does catch some bad symbols but isn't as heavy-handed
9827      # as -z defs.
9828      no_undefined_flag='${wl}-z,text'
9829      allow_undefined_flag='${wl}-z,nodefs'
9830      archive_cmds_need_lc=no
9831      hardcode_shlibpath_var=no
9832      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9833      hardcode_libdir_separator=':'
9834      link_all_deplibs=yes
9835      export_dynamic_flag_spec='${wl}-Bexport'
9836      runpath_var='LD_RUN_PATH'
9837
9838      if test "$GCC" = yes; then
9839        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9840        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9841      else
9842        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9843        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9844      fi
9845      ;;
9846
9847    uts4*)
9848      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9849      hardcode_libdir_flag_spec='-L$libdir'
9850      hardcode_shlibpath_var=no
9851      ;;
9852
9853    *)
9854      ld_shlibs=no
9855      ;;
9856    esac
9857  fi
9858
9859echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9860echo "${ECHO_T}$ld_shlibs" >&6
9861test "$ld_shlibs" = no && can_build_shared=no
9862
9863#
9864# Do we need to explicitly link libc?
9865#
9866case "x$archive_cmds_need_lc" in
9867x|xyes)
9868  # Assume -lc should be added
9869  archive_cmds_need_lc=yes
9870
9871  if test "$enable_shared" = yes && test "$GCC" = yes; then
9872    case $archive_cmds in
9873    *'~'*)
9874      # FIXME: we may have to deal with multi-command sequences.
9875      ;;
9876    '$CC '*)
9877      # Test whether the compiler implicitly links with -lc since on some
9878      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9879      # to ld, don't add -lc before -lgcc.
9880      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9881echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9882      $rm conftest*
9883      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9884
9885      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9886  (eval $ac_compile) 2>&5
9887  ac_status=$?
9888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889  (exit $ac_status); } 2>conftest.err; then
9890        soname=conftest
9891        lib=conftest
9892        libobjs=conftest.$ac_objext
9893        deplibs=
9894        wl=$lt_prog_compiler_wl
9895        pic_flag=$lt_prog_compiler_pic
9896        compiler_flags=-v
9897        linker_flags=-v
9898        verstring=
9899        output_objdir=.
9900        libname=conftest
9901        lt_save_allow_undefined_flag=$allow_undefined_flag
9902        allow_undefined_flag=
9903        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9904  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9905  ac_status=$?
9906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907  (exit $ac_status); }
9908        then
9909          archive_cmds_need_lc=no
9910        else
9911          archive_cmds_need_lc=yes
9912        fi
9913        allow_undefined_flag=$lt_save_allow_undefined_flag
9914      else
9915        cat conftest.err 1>&5
9916      fi
9917      $rm conftest*
9918      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9919echo "${ECHO_T}$archive_cmds_need_lc" >&6
9920      ;;
9921    esac
9922  fi
9923  ;;
9924esac
9925
9926echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9927echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9928library_names_spec=
9929libname_spec='lib$name'
9930soname_spec=
9931shrext_cmds=".so"
9932postinstall_cmds=
9933postuninstall_cmds=
9934finish_cmds=
9935finish_eval=
9936shlibpath_var=
9937shlibpath_overrides_runpath=unknown
9938version_type=none
9939dynamic_linker="$host_os ld.so"
9940sys_lib_dlsearch_path_spec="/lib /usr/lib"
9941if test "$GCC" = yes; then
9942  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9943  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9944    # if the path contains ";" then we assume it to be the separator
9945    # otherwise default to the standard path separator (i.e. ":") - it is
9946    # assumed that no part of a normal pathname contains ";" but that should
9947    # okay in the real world where ";" in dirpaths is itself problematic.
9948    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9949  else
9950    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9951  fi
9952else
9953  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9954fi
9955need_lib_prefix=unknown
9956hardcode_into_libs=no
9957
9958# when you set need_version to no, make sure it does not cause -set_version
9959# flags to be left without arguments
9960need_version=unknown
9961
9962case $host_os in
9963aix3*)
9964  version_type=linux
9965  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9966  shlibpath_var=LIBPATH
9967
9968  # AIX 3 has no versioning support, so we append a major version to the name.
9969  soname_spec='${libname}${release}${shared_ext}$major'
9970  ;;
9971
9972aix4* | aix5*)
9973  version_type=linux
9974  need_lib_prefix=no
9975  need_version=no
9976  hardcode_into_libs=yes
9977  if test "$host_cpu" = ia64; then
9978    # AIX 5 supports IA64
9979    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9980    shlibpath_var=LD_LIBRARY_PATH
9981  else
9982    # With GCC up to 2.95.x, collect2 would create an import file
9983    # for dependence libraries.  The import file would start with
9984    # the line `#! .'.  This would cause the generated library to
9985    # depend on `.', always an invalid library.  This was fixed in
9986    # development snapshots of GCC prior to 3.0.
9987    case $host_os in
9988      aix4 | aix4.[01] | aix4.[01].*)
9989      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9990           echo ' yes '
9991           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9992        :
9993      else
9994        can_build_shared=no
9995      fi
9996      ;;
9997    esac
9998    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9999    # soname into executable. Probably we can add versioning support to
10000    # collect2, so additional links can be useful in future.
10001    if test "$aix_use_runtimelinking" = yes; then
10002      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10003      # instead of lib<name>.a to let people know that these are not
10004      # typical AIX shared libraries.
10005      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10006    else
10007      # We preserve .a as extension for shared libraries through AIX4.2
10008      # and later when we are not doing run time linking.
10009      library_names_spec='${libname}${release}.a $libname.a'
10010      soname_spec='${libname}${release}${shared_ext}$major'
10011    fi
10012    shlibpath_var=LIBPATH
10013  fi
10014  ;;
10015
10016amigaos*)
10017  library_names_spec='$libname.ixlibrary $libname.a'
10018  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10019  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'
10020  ;;
10021
10022beos*)
10023  library_names_spec='${libname}${shared_ext}'
10024  dynamic_linker="$host_os ld.so"
10025  shlibpath_var=LIBRARY_PATH
10026  ;;
10027
10028bsdi[45]*)
10029  version_type=linux
10030  need_version=no
10031  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032  soname_spec='${libname}${release}${shared_ext}$major'
10033  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10034  shlibpath_var=LD_LIBRARY_PATH
10035  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10036  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10037  # the default ld.so.conf also contains /usr/contrib/lib and
10038  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10039  # libtool to hard-code these into programs
10040  ;;
10041
10042cygwin* | mingw* | pw32*)
10043  version_type=windows
10044  shrext_cmds=".dll"
10045  need_version=no
10046  need_lib_prefix=no
10047
10048  case $GCC,$host_os in
10049  yes,cygwin* | yes,mingw* | yes,pw32*)
10050    library_names_spec='$libname.dll.a'
10051    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10052    postinstall_cmds='base_file=`basename \${file}`~
10053      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10054      dldir=$destdir/`dirname \$dlpath`~
10055      test -d \$dldir || mkdir -p \$dldir~
10056      $install_prog $dir/$dlname \$dldir/$dlname~
10057      chmod a+x \$dldir/$dlname'
10058    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10059      dlpath=$dir/\$dldll~
10060       $rm \$dlpath'
10061    shlibpath_overrides_runpath=yes
10062
10063    case $host_os in
10064    cygwin*)
10065      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10066      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10067      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10068      ;;
10069    mingw*)
10070      # MinGW DLLs use traditional 'lib' prefix
10071      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10072      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10073      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10074        # It is most probably a Windows format PATH printed by
10075        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10076        # path with ; separators, and with drive letters. We can handle the
10077        # drive letters (cygwin fileutils understands them), so leave them,
10078        # especially as we might pass files found there to a mingw objdump,
10079        # which wouldn't understand a cygwinified path. Ahh.
10080        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10081      else
10082        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10083      fi
10084      ;;
10085    pw32*)
10086      # pw32 DLLs use 'pw' prefix rather than 'lib'
10087      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10088      ;;
10089    esac
10090    ;;
10091
10092  *)
10093    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10094    ;;
10095  esac
10096  dynamic_linker='Win32 ld.exe'
10097  # FIXME: first we should search . and the directory the executable is in
10098  shlibpath_var=PATH
10099  ;;
10100
10101darwin* | rhapsody*)
10102  dynamic_linker="$host_os dyld"
10103  version_type=darwin
10104  need_lib_prefix=no
10105  need_version=no
10106  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10107  soname_spec='${libname}${release}${major}$shared_ext'
10108  shlibpath_overrides_runpath=yes
10109  shlibpath_var=DYLD_LIBRARY_PATH
10110  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10111  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10112  if test "$GCC" = yes; then
10113    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"`
10114  else
10115    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10116  fi
10117  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10118  ;;
10119
10120dgux*)
10121  version_type=linux
10122  need_lib_prefix=no
10123  need_version=no
10124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10125  soname_spec='${libname}${release}${shared_ext}$major'
10126  shlibpath_var=LD_LIBRARY_PATH
10127  ;;
10128
10129freebsd1*)
10130  dynamic_linker=no
10131  ;;
10132
10133kfreebsd*-gnu)
10134  version_type=linux
10135  need_lib_prefix=no
10136  need_version=no
10137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10138  soname_spec='${libname}${release}${shared_ext}$major'
10139  shlibpath_var=LD_LIBRARY_PATH
10140  shlibpath_overrides_runpath=no
10141  hardcode_into_libs=yes
10142  dynamic_linker='GNU ld.so'
10143  ;;
10144
10145freebsd* | dragonfly*)
10146  # DragonFly does not have aout.  When/if they implement a new
10147  # versioning mechanism, adjust this.
10148  if test -x /usr/bin/objformat; then
10149    objformat=`/usr/bin/objformat`
10150  else
10151    case $host_os in
10152    freebsd[123]*) objformat=aout ;;
10153    *) objformat=elf ;;
10154    esac
10155  fi
10156  version_type=freebsd-$objformat
10157  case $version_type in
10158    freebsd-elf*)
10159      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10160      need_version=no
10161      need_lib_prefix=no
10162      ;;
10163    freebsd-*)
10164      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10165      need_version=yes
10166      ;;
10167  esac
10168  shlibpath_var=LD_LIBRARY_PATH
10169  case $host_os in
10170  freebsd2*)
10171    shlibpath_overrides_runpath=yes
10172    ;;
10173  freebsd3.[01]* | freebsdelf3.[01]*)
10174    shlibpath_overrides_runpath=yes
10175    hardcode_into_libs=yes
10176    ;;
10177  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10178  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10179    shlibpath_overrides_runpath=no
10180    hardcode_into_libs=yes
10181    ;;
10182  freebsd*) # from 4.6 on
10183    shlibpath_overrides_runpath=yes
10184    hardcode_into_libs=yes
10185    ;;
10186  esac
10187  ;;
10188
10189gnu*)
10190  version_type=linux
10191  need_lib_prefix=no
10192  need_version=no
10193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10194  soname_spec='${libname}${release}${shared_ext}$major'
10195  shlibpath_var=LD_LIBRARY_PATH
10196  hardcode_into_libs=yes
10197  ;;
10198
10199hpux9* | hpux10* | hpux11*)
10200  # Give a soname corresponding to the major version so that dld.sl refuses to
10201  # link against other versions.
10202  version_type=sunos
10203  need_lib_prefix=no
10204  need_version=no
10205  case $host_cpu in
10206  ia64*)
10207    shrext_cmds='.so'
10208    hardcode_into_libs=yes
10209    dynamic_linker="$host_os dld.so"
10210    shlibpath_var=LD_LIBRARY_PATH
10211    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10212    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213    soname_spec='${libname}${release}${shared_ext}$major'
10214    if test "X$HPUX_IA64_MODE" = X32; then
10215      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10216    else
10217      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10218    fi
10219    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10220    ;;
10221   hppa*64*)
10222     shrext_cmds='.sl'
10223     hardcode_into_libs=yes
10224     dynamic_linker="$host_os dld.sl"
10225     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10226     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228     soname_spec='${libname}${release}${shared_ext}$major'
10229     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10230     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10231     ;;
10232   *)
10233    shrext_cmds='.sl'
10234    dynamic_linker="$host_os dld.sl"
10235    shlibpath_var=SHLIB_PATH
10236    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10237    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238    soname_spec='${libname}${release}${shared_ext}$major'
10239    ;;
10240  esac
10241  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10242  postinstall_cmds='chmod 555 $lib'
10243  ;;
10244
10245interix3*)
10246  version_type=linux
10247  need_lib_prefix=no
10248  need_version=no
10249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10250  soname_spec='${libname}${release}${shared_ext}$major'
10251  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10252  shlibpath_var=LD_LIBRARY_PATH
10253  shlibpath_overrides_runpath=no
10254  hardcode_into_libs=yes
10255  ;;
10256
10257irix5* | irix6* | nonstopux*)
10258  case $host_os in
10259    nonstopux*) version_type=nonstopux ;;
10260    *)
10261        if test "$lt_cv_prog_gnu_ld" = yes; then
10262                version_type=linux
10263        else
10264                version_type=irix
10265        fi ;;
10266  esac
10267  need_lib_prefix=no
10268  need_version=no
10269  soname_spec='${libname}${release}${shared_ext}$major'
10270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10271  case $host_os in
10272  irix5* | nonstopux*)
10273    libsuff= shlibsuff=
10274    ;;
10275  *)
10276    case $LD in # libtool.m4 will add one of these switches to LD
10277    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10278      libsuff= shlibsuff= libmagic=32-bit;;
10279    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10280      libsuff=32 shlibsuff=N32 libmagic=N32;;
10281    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10282      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10283    *) libsuff= shlibsuff= libmagic=never-match;;
10284    esac
10285    ;;
10286  esac
10287  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10288  shlibpath_overrides_runpath=no
10289  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10290  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10291  hardcode_into_libs=yes
10292  ;;
10293
10294# No shared lib support for Linux oldld, aout, or coff.
10295linux*oldld* | linux*aout* | linux*coff*)
10296  dynamic_linker=no
10297  ;;
10298
10299# This must be Linux ELF.
10300linux*)
10301  version_type=linux
10302  need_lib_prefix=no
10303  need_version=no
10304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305  soname_spec='${libname}${release}${shared_ext}$major'
10306  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10307  shlibpath_var=LD_LIBRARY_PATH
10308  shlibpath_overrides_runpath=no
10309  # This implies no fast_install, which is unacceptable.
10310  # Some rework will be needed to allow for fast_install
10311  # before this can be enabled.
10312  hardcode_into_libs=yes
10313
10314  # Append ld.so.conf contents to the search path
10315  if test -f /etc/ld.so.conf; then
10316    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' ' '`
10317    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10318  fi
10319
10320  # We used to test for /lib/ld.so.1 and disable shared libraries on
10321  # powerpc, because MkLinux only supported shared libraries with the
10322  # GNU dynamic linker.  Since this was broken with cross compilers,
10323  # most powerpc-linux boxes support dynamic linking these days and
10324  # people can always --disable-shared, the test was removed, and we
10325  # assume the GNU/Linux dynamic linker is in use.
10326  dynamic_linker='GNU/Linux ld.so'
10327  ;;
10328
10329knetbsd*-gnu)
10330  version_type=linux
10331  need_lib_prefix=no
10332  need_version=no
10333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10334  soname_spec='${libname}${release}${shared_ext}$major'
10335  shlibpath_var=LD_LIBRARY_PATH
10336  shlibpath_overrides_runpath=no
10337  hardcode_into_libs=yes
10338  dynamic_linker='GNU ld.so'
10339  ;;
10340
10341netbsd*)
10342  version_type=sunos
10343  need_lib_prefix=no
10344  need_version=no
10345  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10346    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10347    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10348    dynamic_linker='NetBSD (a.out) ld.so'
10349  else
10350    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10351    soname_spec='${libname}${release}${shared_ext}$major'
10352    dynamic_linker='NetBSD ld.elf_so'
10353  fi
10354  shlibpath_var=LD_LIBRARY_PATH
10355  shlibpath_overrides_runpath=yes
10356  hardcode_into_libs=yes
10357  ;;
10358
10359newsos6)
10360  version_type=linux
10361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362  shlibpath_var=LD_LIBRARY_PATH
10363  shlibpath_overrides_runpath=yes
10364  ;;
10365
10366nto-qnx*)
10367  version_type=linux
10368  need_lib_prefix=no
10369  need_version=no
10370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371  soname_spec='${libname}${release}${shared_ext}$major'
10372  shlibpath_var=LD_LIBRARY_PATH
10373  shlibpath_overrides_runpath=yes
10374  ;;
10375
10376openbsd*)
10377  version_type=sunos
10378  sys_lib_dlsearch_path_spec="/usr/lib"
10379  need_lib_prefix=no
10380  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10381  case $host_os in
10382    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10383    *)                         need_version=no  ;;
10384  esac
10385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10386  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10387  shlibpath_var=LD_LIBRARY_PATH
10388  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10389    case $host_os in
10390      openbsd2.[89] | openbsd2.[89].*)
10391        shlibpath_overrides_runpath=no
10392        ;;
10393      *)
10394        shlibpath_overrides_runpath=yes
10395        ;;
10396      esac
10397  else
10398    shlibpath_overrides_runpath=yes
10399  fi
10400  ;;
10401
10402os2*)
10403  libname_spec='$name'
10404  shrext_cmds=".dll"
10405  need_lib_prefix=no
10406  library_names_spec='$libname${shared_ext} $libname.a'
10407  dynamic_linker='OS/2 ld.exe'
10408  shlibpath_var=LIBPATH
10409  ;;
10410
10411osf3* | osf4* | osf5*)
10412  version_type=osf
10413  need_lib_prefix=no
10414  need_version=no
10415  soname_spec='${libname}${release}${shared_ext}$major'
10416  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10417  shlibpath_var=LD_LIBRARY_PATH
10418  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10419  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10420  ;;
10421
10422solaris*)
10423  version_type=linux
10424  need_lib_prefix=no
10425  need_version=no
10426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10427  soname_spec='${libname}${release}${shared_ext}$major'
10428  shlibpath_var=LD_LIBRARY_PATH
10429  shlibpath_overrides_runpath=yes
10430  hardcode_into_libs=yes
10431  # ldd complains unless libraries are executable
10432  postinstall_cmds='chmod +x $lib'
10433  ;;
10434
10435sunos4*)
10436  version_type=sunos
10437  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10438  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10439  shlibpath_var=LD_LIBRARY_PATH
10440  shlibpath_overrides_runpath=yes
10441  if test "$with_gnu_ld" = yes; then
10442    need_lib_prefix=no
10443  fi
10444  need_version=yes
10445  ;;
10446
10447sysv4 | sysv4.3*)
10448  version_type=linux
10449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450  soname_spec='${libname}${release}${shared_ext}$major'
10451  shlibpath_var=LD_LIBRARY_PATH
10452  case $host_vendor in
10453    sni)
10454      shlibpath_overrides_runpath=no
10455      need_lib_prefix=no
10456      export_dynamic_flag_spec='${wl}-Blargedynsym'
10457      runpath_var=LD_RUN_PATH
10458      ;;
10459    siemens)
10460      need_lib_prefix=no
10461      ;;
10462    motorola)
10463      need_lib_prefix=no
10464      need_version=no
10465      shlibpath_overrides_runpath=no
10466      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10467      ;;
10468  esac
10469  ;;
10470
10471sysv4*MP*)
10472  if test -d /usr/nec ;then
10473    version_type=linux
10474    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10475    soname_spec='$libname${shared_ext}.$major'
10476    shlibpath_var=LD_LIBRARY_PATH
10477  fi
10478  ;;
10479
10480sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10481  version_type=freebsd-elf
10482  need_lib_prefix=no
10483  need_version=no
10484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10485  soname_spec='${libname}${release}${shared_ext}$major'
10486  shlibpath_var=LD_LIBRARY_PATH
10487  hardcode_into_libs=yes
10488  if test "$with_gnu_ld" = yes; then
10489    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10490    shlibpath_overrides_runpath=no
10491  else
10492    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10493    shlibpath_overrides_runpath=yes
10494    case $host_os in
10495      sco3.2v5*)
10496        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10497        ;;
10498    esac
10499  fi
10500  sys_lib_dlsearch_path_spec='/usr/lib'
10501  ;;
10502
10503uts4*)
10504  version_type=linux
10505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506  soname_spec='${libname}${release}${shared_ext}$major'
10507  shlibpath_var=LD_LIBRARY_PATH
10508  ;;
10509
10510*)
10511  dynamic_linker=no
10512  ;;
10513esac
10514echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10515echo "${ECHO_T}$dynamic_linker" >&6
10516test "$dynamic_linker" = no && can_build_shared=no
10517
10518variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10519if test "$GCC" = yes; then
10520  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10521fi
10522
10523echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10524echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10525hardcode_action=
10526if test -n "$hardcode_libdir_flag_spec" || \
10527   test -n "$runpath_var" || \
10528   test "X$hardcode_automatic" = "Xyes" ; then
10529
10530  # We can hardcode non-existant directories.
10531  if test "$hardcode_direct" != no &&
10532     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10533     # have to relink, otherwise we might link with an installed library
10534     # when we should be linking with a yet-to-be-installed one
10535     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10536     test "$hardcode_minus_L" != no; then
10537    # Linking always hardcodes the temporary library directory.
10538    hardcode_action=relink
10539  else
10540    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10541    hardcode_action=immediate
10542  fi
10543else
10544  # We cannot hardcode anything, or else we can only hardcode existing
10545  # directories.
10546  hardcode_action=unsupported
10547fi
10548echo "$as_me:$LINENO: result: $hardcode_action" >&5
10549echo "${ECHO_T}$hardcode_action" >&6
10550
10551if test "$hardcode_action" = relink; then
10552  # Fast installation is not supported
10553  enable_fast_install=no
10554elif test "$shlibpath_overrides_runpath" = yes ||
10555     test "$enable_shared" = no; then
10556  # Fast installation is not necessary
10557  enable_fast_install=needless
10558fi
10559
10560striplib=
10561old_striplib=
10562echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10563echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10564if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10565  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10566  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10567  echo "$as_me:$LINENO: result: yes" >&5
10568echo "${ECHO_T}yes" >&6
10569else
10570# FIXME - insert some real tests, host_os isn't really good enough
10571  case $host_os in
10572   darwin*)
10573       if test -n "$STRIP" ; then
10574         striplib="$STRIP -x"
10575         echo "$as_me:$LINENO: result: yes" >&5
10576echo "${ECHO_T}yes" >&6
10577       else
10578  echo "$as_me:$LINENO: result: no" >&5
10579echo "${ECHO_T}no" >&6
10580fi
10581       ;;
10582   *)
10583  echo "$as_me:$LINENO: result: no" >&5
10584echo "${ECHO_T}no" >&6
10585    ;;
10586  esac
10587fi
10588
10589if test "x$enable_dlopen" != xyes; then
10590  enable_dlopen=unknown
10591  enable_dlopen_self=unknown
10592  enable_dlopen_self_static=unknown
10593else
10594  lt_cv_dlopen=no
10595  lt_cv_dlopen_libs=
10596
10597  case $host_os in
10598  beos*)
10599    lt_cv_dlopen="load_add_on"
10600    lt_cv_dlopen_libs=
10601    lt_cv_dlopen_self=yes
10602    ;;
10603
10604  mingw* | pw32*)
10605    lt_cv_dlopen="LoadLibrary"
10606    lt_cv_dlopen_libs=
10607   ;;
10608
10609  cygwin*)
10610    lt_cv_dlopen="dlopen"
10611    lt_cv_dlopen_libs=
10612   ;;
10613
10614  darwin*)
10615  # if libdl is installed we need to link against it
10616    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10617echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10618if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10619  echo $ECHO_N "(cached) $ECHO_C" >&6
10620else
10621  ac_check_lib_save_LIBS=$LIBS
10622LIBS="-ldl  $LIBS"
10623cat >conftest.$ac_ext <<_ACEOF
10624/* confdefs.h.  */
10625_ACEOF
10626cat confdefs.h >>conftest.$ac_ext
10627cat >>conftest.$ac_ext <<_ACEOF
10628/* end confdefs.h.  */
10629
10630/* Override any gcc2 internal prototype to avoid an error.  */
10631#ifdef __cplusplus
10632extern "C"
10633#endif
10634/* We use char because int might match the return type of a gcc2
10635   builtin and then its argument prototype would still apply.  */
10636char dlopen ();
10637int
10638main ()
10639{
10640dlopen ();
10641  ;
10642  return 0;
10643}
10644_ACEOF
10645rm -f conftest.$ac_objext conftest$ac_exeext
10646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647  (eval $ac_link) 2>conftest.er1
10648  ac_status=$?
10649  grep -v '^ *+' conftest.er1 >conftest.err
10650  rm -f conftest.er1
10651  cat conftest.err >&5
10652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653  (exit $ac_status); } &&
10654         { ac_try='test -z "$ac_c_werror_flag"
10655                         || test ! -s conftest.err'
10656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657  (eval $ac_try) 2>&5
10658  ac_status=$?
10659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660  (exit $ac_status); }; } &&
10661         { ac_try='test -s conftest$ac_exeext'
10662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663  (eval $ac_try) 2>&5
10664  ac_status=$?
10665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666  (exit $ac_status); }; }; then
10667  ac_cv_lib_dl_dlopen=yes
10668else
10669  echo "$as_me: failed program was:" >&5
10670sed 's/^/| /' conftest.$ac_ext >&5
10671
10672ac_cv_lib_dl_dlopen=no
10673fi
10674rm -f conftest.err conftest.$ac_objext \
10675      conftest$ac_exeext conftest.$ac_ext
10676LIBS=$ac_check_lib_save_LIBS
10677fi
10678echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10679echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10680if test $ac_cv_lib_dl_dlopen = yes; then
10681  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10682else
10683
10684    lt_cv_dlopen="dyld"
10685    lt_cv_dlopen_libs=
10686    lt_cv_dlopen_self=yes
10687
10688fi
10689
10690   ;;
10691
10692  *)
10693    echo "$as_me:$LINENO: checking for shl_load" >&5
10694echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10695if test "${ac_cv_func_shl_load+set}" = set; then
10696  echo $ECHO_N "(cached) $ECHO_C" >&6
10697else
10698  cat >conftest.$ac_ext <<_ACEOF
10699/* confdefs.h.  */
10700_ACEOF
10701cat confdefs.h >>conftest.$ac_ext
10702cat >>conftest.$ac_ext <<_ACEOF
10703/* end confdefs.h.  */
10704/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10705   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10706#define shl_load innocuous_shl_load
10707
10708/* System header to define __stub macros and hopefully few prototypes,
10709    which can conflict with char shl_load (); below.
10710    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10711    <limits.h> exists even on freestanding compilers.  */
10712
10713#ifdef __STDC__
10714# include <limits.h>
10715#else
10716# include <assert.h>
10717#endif
10718
10719#undef shl_load
10720
10721/* Override any gcc2 internal prototype to avoid an error.  */
10722#ifdef __cplusplus
10723extern "C"
10724{
10725#endif
10726/* We use char because int might match the return type of a gcc2
10727   builtin and then its argument prototype would still apply.  */
10728char shl_load ();
10729/* The GNU C library defines this for functions which it implements
10730    to always fail with ENOSYS.  Some functions are actually named
10731    something starting with __ and the normal name is an alias.  */
10732#if defined (__stub_shl_load) || defined (__stub___shl_load)
10733choke me
10734#else
10735char (*f) () = shl_load;
10736#endif
10737#ifdef __cplusplus
10738}
10739#endif
10740
10741int
10742main ()
10743{
10744return f != shl_load;
10745  ;
10746  return 0;
10747}
10748_ACEOF
10749rm -f conftest.$ac_objext conftest$ac_exeext
10750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10751  (eval $ac_link) 2>conftest.er1
10752  ac_status=$?
10753  grep -v '^ *+' conftest.er1 >conftest.err