source: trunk/configure @ 1490

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

New doxygen documentation configuration.

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