source: ThirdParty/All/trunk/configure @ 1387

Last change on this file since 1387 was 1387, checked in by stefan, 11 years ago

externals and build system for ThirdParty/All?

  • Property svn:executable set to *
File size: 729.9 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 ThirdPartyAll 0.0.
5#
6# Report bugs to <https://projects.coin-or.org/BuildTools/newticket>.
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# Copyright (C) 2009 Stefan Vigerske
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyAll'
431PACKAGE_TARNAME='thirdpartyall'
432PACKAGE_VERSION='0.0'
433PACKAGE_STRING='ThirdPartyAll 0.0'
434PACKAGE_BUGREPORT='https://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="configure.ac"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
476ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
477ac_subdirs_all="$ac_subdirs_all ThirdParty/FilterSQP"
478ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
479ac_subdirs_all="$ac_subdirs_all ThirdParty/HSL"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
481ac_subdirs_all="$ac_subdirs_all ThirdParty/Metis"
482ac_subdirs_all="$ac_subdirs_all ThirdParty/Mumps"
483ac_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 subdirs LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
484ac_subst_files=''
485
486# Initialize some variables set by options.
487ac_init_help=
488ac_init_version=false
489# The variables have the same names as the options, with
490# dashes changed to underlines.
491cache_file=/dev/null
492exec_prefix=NONE
493no_create=
494no_recursion=
495prefix=NONE
496program_prefix=NONE
497program_suffix=NONE
498program_transform_name=s,x,x,
499silent=
500site=
501srcdir=
502verbose=
503x_includes=NONE
504x_libraries=NONE
505
506# Installation directory options.
507# These are left unexpanded so users can "make install exec_prefix=/foo"
508# and all the variables that are supposed to be based on exec_prefix
509# by default will actually change.
510# Use braces instead of parens because sh, perl, etc. also accept them.
511bindir='${exec_prefix}/bin'
512sbindir='${exec_prefix}/sbin'
513libexecdir='${exec_prefix}/libexec'
514datadir='${prefix}/share'
515sysconfdir='${prefix}/etc'
516sharedstatedir='${prefix}/com'
517localstatedir='${prefix}/var'
518libdir='${exec_prefix}/lib'
519includedir='${prefix}/include'
520oldincludedir='/usr/include'
521infodir='${prefix}/info'
522mandir='${prefix}/man'
523
524ac_prev=
525for ac_option
526do
527  # If the previous option needs an argument, assign it.
528  if test -n "$ac_prev"; then
529    eval "$ac_prev=\$ac_option"
530    ac_prev=
531    continue
532  fi
533
534  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
535
536  # Accept the important Cygnus configure options, so we can diagnose typos.
537
538  case $ac_option in
539
540  -bindir | --bindir | --bindi | --bind | --bin | --bi)
541    ac_prev=bindir ;;
542  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
543    bindir=$ac_optarg ;;
544
545  -build | --build | --buil | --bui | --bu)
546    ac_prev=build_alias ;;
547  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
548    build_alias=$ac_optarg ;;
549
550  -cache-file | --cache-file | --cache-fil | --cache-fi \
551  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
552    ac_prev=cache_file ;;
553  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
554  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
555    cache_file=$ac_optarg ;;
556
557  --config-cache | -C)
558    cache_file=config.cache ;;
559
560  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
561    ac_prev=datadir ;;
562  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
563  | --da=*)
564    datadir=$ac_optarg ;;
565
566  -disable-* | --disable-*)
567    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
568    # Reject names that are not valid shell variable names.
569    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
570      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
571   { (exit 1); exit 1; }; }
572    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
573    eval "enable_$ac_feature=no" ;;
574
575  -enable-* | --enable-*)
576    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
577    # Reject names that are not valid shell variable names.
578    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580   { (exit 1); exit 1; }; }
581    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582    case $ac_option in
583      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
584      *) ac_optarg=yes ;;
585    esac
586    eval "enable_$ac_feature='$ac_optarg'" ;;
587
588  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
589  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
590  | --exec | --exe | --ex)
591    ac_prev=exec_prefix ;;
592  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
593  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
594  | --exec=* | --exe=* | --ex=*)
595    exec_prefix=$ac_optarg ;;
596
597  -gas | --gas | --ga | --g)
598    # Obsolete; use --with-gas.
599    with_gas=yes ;;
600
601  -help | --help | --hel | --he | -h)
602    ac_init_help=long ;;
603  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
604    ac_init_help=recursive ;;
605  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
606    ac_init_help=short ;;
607
608  -host | --host | --hos | --ho)
609    ac_prev=host_alias ;;
610  -host=* | --host=* | --hos=* | --ho=*)
611    host_alias=$ac_optarg ;;
612
613  -includedir | --includedir | --includedi | --included | --include \
614  | --includ | --inclu | --incl | --inc)
615    ac_prev=includedir ;;
616  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
617  | --includ=* | --inclu=* | --incl=* | --inc=*)
618    includedir=$ac_optarg ;;
619
620  -infodir | --infodir | --infodi | --infod | --info | --inf)
621    ac_prev=infodir ;;
622  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
623    infodir=$ac_optarg ;;
624
625  -libdir | --libdir | --libdi | --libd)
626    ac_prev=libdir ;;
627  -libdir=* | --libdir=* | --libdi=* | --libd=*)
628    libdir=$ac_optarg ;;
629
630  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
631  | --libexe | --libex | --libe)
632    ac_prev=libexecdir ;;
633  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
634  | --libexe=* | --libex=* | --libe=*)
635    libexecdir=$ac_optarg ;;
636
637  -localstatedir | --localstatedir | --localstatedi | --localstated \
638  | --localstate | --localstat | --localsta | --localst \
639  | --locals | --local | --loca | --loc | --lo)
640    ac_prev=localstatedir ;;
641  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
642  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
643  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
644    localstatedir=$ac_optarg ;;
645
646  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
647    ac_prev=mandir ;;
648  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
649    mandir=$ac_optarg ;;
650
651  -nfp | --nfp | --nf)
652    # Obsolete; use --without-fp.
653    with_fp=no ;;
654
655  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
656  | --no-cr | --no-c | -n)
657    no_create=yes ;;
658
659  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
660  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
661    no_recursion=yes ;;
662
663  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
664  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
665  | --oldin | --oldi | --old | --ol | --o)
666    ac_prev=oldincludedir ;;
667  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
668  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
669  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
670    oldincludedir=$ac_optarg ;;
671
672  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
673    ac_prev=prefix ;;
674  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
675    prefix=$ac_optarg ;;
676
677  -program-prefix | --program-prefix | --program-prefi | --program-pref \
678  | --program-pre | --program-pr | --program-p)
679    ac_prev=program_prefix ;;
680  -program-prefix=* | --program-prefix=* | --program-prefi=* \
681  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
682    program_prefix=$ac_optarg ;;
683
684  -program-suffix | --program-suffix | --program-suffi | --program-suff \
685  | --program-suf | --program-su | --program-s)
686    ac_prev=program_suffix ;;
687  -program-suffix=* | --program-suffix=* | --program-suffi=* \
688  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
689    program_suffix=$ac_optarg ;;
690
691  -program-transform-name | --program-transform-name \
692  | --program-transform-nam | --program-transform-na \
693  | --program-transform-n | --program-transform- \
694  | --program-transform | --program-transfor \
695  | --program-transfo | --program-transf \
696  | --program-trans | --program-tran \
697  | --progr-tra | --program-tr | --program-t)
698    ac_prev=program_transform_name ;;
699  -program-transform-name=* | --program-transform-name=* \
700  | --program-transform-nam=* | --program-transform-na=* \
701  | --program-transform-n=* | --program-transform-=* \
702  | --program-transform=* | --program-transfor=* \
703  | --program-transfo=* | --program-transf=* \
704  | --program-trans=* | --program-tran=* \
705  | --progr-tra=* | --program-tr=* | --program-t=*)
706    program_transform_name=$ac_optarg ;;
707
708  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
709  | -silent | --silent | --silen | --sile | --sil)
710    silent=yes ;;
711
712  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
713    ac_prev=sbindir ;;
714  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
715  | --sbi=* | --sb=*)
716    sbindir=$ac_optarg ;;
717
718  -sharedstatedir | --sharedstatedir | --sharedstatedi \
719  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
720  | --sharedst | --shareds | --shared | --share | --shar \
721  | --sha | --sh)
722    ac_prev=sharedstatedir ;;
723  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
724  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
725  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
726  | --sha=* | --sh=*)
727    sharedstatedir=$ac_optarg ;;
728
729  -site | --site | --sit)
730    ac_prev=site ;;
731  -site=* | --site=* | --sit=*)
732    site=$ac_optarg ;;
733
734  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
735    ac_prev=srcdir ;;
736  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
737    srcdir=$ac_optarg ;;
738
739  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
740  | --syscon | --sysco | --sysc | --sys | --sy)
741    ac_prev=sysconfdir ;;
742  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
743  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
744    sysconfdir=$ac_optarg ;;
745
746  -target | --target | --targe | --targ | --tar | --ta | --t)
747    ac_prev=target_alias ;;
748  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
749    target_alias=$ac_optarg ;;
750
751  -v | -verbose | --verbose | --verbos | --verbo | --verb)
752    verbose=yes ;;
753
754  -version | --version | --versio | --versi | --vers | -V)
755    ac_init_version=: ;;
756
757  -with-* | --with-*)
758    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
759    # Reject names that are not valid shell variable names.
760    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761      { echo "$as_me: error: invalid package name: $ac_package" >&2
762   { (exit 1); exit 1; }; }
763    ac_package=`echo $ac_package| sed 's/-/_/g'`
764    case $ac_option in
765      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
766      *) ac_optarg=yes ;;
767    esac
768    eval "with_$ac_package='$ac_optarg'" ;;
769
770  -without-* | --without-*)
771    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
772    # Reject names that are not valid shell variable names.
773    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
774      { echo "$as_me: error: invalid package name: $ac_package" >&2
775   { (exit 1); exit 1; }; }
776    ac_package=`echo $ac_package | sed 's/-/_/g'`
777    eval "with_$ac_package=no" ;;
778
779  --x)
780    # Obsolete; use --with-x.
781    with_x=yes ;;
782
783  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
784  | --x-incl | --x-inc | --x-in | --x-i)
785    ac_prev=x_includes ;;
786  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
787  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
788    x_includes=$ac_optarg ;;
789
790  -x-libraries | --x-libraries | --x-librarie | --x-librari \
791  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
792    ac_prev=x_libraries ;;
793  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
794  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
795    x_libraries=$ac_optarg ;;
796
797  -*) { echo "$as_me: error: unrecognized option: $ac_option
798Try \`$0 --help' for more information." >&2
799   { (exit 1); exit 1; }; }
800    ;;
801
802  *=*)
803    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
804    # Reject names that are not valid shell variable names.
805    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
806      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
807   { (exit 1); exit 1; }; }
808    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
809    eval "$ac_envvar='$ac_optarg'"
810    export $ac_envvar ;;
811
812  *)
813    # FIXME: should be removed in autoconf 3.0.
814    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
815    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
816      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
817    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
818    ;;
819
820  esac
821done
822
823if test -n "$ac_prev"; then
824  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
825  { echo "$as_me: error: missing argument to $ac_option" >&2
826   { (exit 1); exit 1; }; }
827fi
828
829# Be sure to have absolute paths.
830for ac_var in exec_prefix prefix
831do
832  eval ac_val=$`echo $ac_var`
833  case $ac_val in
834    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
835    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836   { (exit 1); exit 1; }; };;
837  esac
838done
839
840# Be sure to have absolute paths.
841for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
842              localstatedir libdir includedir oldincludedir infodir mandir
843do
844  eval ac_val=$`echo $ac_var`
845  case $ac_val in
846    [\\/$]* | ?:[\\/]* ) ;;
847    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
848   { (exit 1); exit 1; }; };;
849  esac
850done
851
852# There might be people who depend on the old broken behavior: `$host'
853# used to hold the argument of --host etc.
854# FIXME: To remove some day.
855build=$build_alias
856host=$host_alias
857target=$target_alias
858
859# FIXME: To remove some day.
860if test "x$host_alias" != x; then
861  if test "x$build_alias" = x; then
862    cross_compiling=maybe
863    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
864    If a cross compiler is detected then cross compile mode will be used." >&2
865  elif test "x$build_alias" != "x$host_alias"; then
866    cross_compiling=yes
867  fi
868fi
869
870ac_tool_prefix=
871test -n "$host_alias" && ac_tool_prefix=$host_alias-
872
873test "$silent" = yes && exec 6>/dev/null
874
875
876# Find the source files, if location was not specified.
877if test -z "$srcdir"; then
878  ac_srcdir_defaulted=yes
879  # Try the directory containing this script, then its parent.
880  ac_confdir=`(dirname "$0") 2>/dev/null ||
881$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
882         X"$0" : 'X\(//\)[^/]' \| \
883         X"$0" : 'X\(//\)$' \| \
884         X"$0" : 'X\(/\)' \| \
885         .     : '\(.\)' 2>/dev/null ||
886echo X"$0" |
887    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
888          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
889          /^X\(\/\/\)$/{ s//\1/; q; }
890          /^X\(\/\).*/{ s//\1/; q; }
891          s/.*/./; q'`
892  srcdir=$ac_confdir
893  if test ! -r $srcdir/$ac_unique_file; then
894    srcdir=..
895  fi
896else
897  ac_srcdir_defaulted=no
898fi
899if test ! -r $srcdir/$ac_unique_file; then
900  if test "$ac_srcdir_defaulted" = yes; then
901    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
902   { (exit 1); exit 1; }; }
903  else
904    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
905   { (exit 1); exit 1; }; }
906  fi
907fi
908(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
909  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
910   { (exit 1); exit 1; }; }
911srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
912ac_env_build_alias_set=${build_alias+set}
913ac_env_build_alias_value=$build_alias
914ac_cv_env_build_alias_set=${build_alias+set}
915ac_cv_env_build_alias_value=$build_alias
916ac_env_host_alias_set=${host_alias+set}
917ac_env_host_alias_value=$host_alias
918ac_cv_env_host_alias_set=${host_alias+set}
919ac_cv_env_host_alias_value=$host_alias
920ac_env_target_alias_set=${target_alias+set}
921ac_env_target_alias_value=$target_alias
922ac_cv_env_target_alias_set=${target_alias+set}
923ac_cv_env_target_alias_value=$target_alias
924ac_env_CDEFS_set=${CDEFS+set}
925ac_env_CDEFS_value=$CDEFS
926ac_cv_env_CDEFS_set=${CDEFS+set}
927ac_cv_env_CDEFS_value=$CDEFS
928ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
929ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
930ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
931ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
932ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
933ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
934ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
935ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
936ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
937ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
938ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
939ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
940ac_env_CC_set=${CC+set}
941ac_env_CC_value=$CC
942ac_cv_env_CC_set=${CC+set}
943ac_cv_env_CC_value=$CC
944ac_env_CFLAGS_set=${CFLAGS+set}
945ac_env_CFLAGS_value=$CFLAGS
946ac_cv_env_CFLAGS_set=${CFLAGS+set}
947ac_cv_env_CFLAGS_value=$CFLAGS
948ac_env_LDFLAGS_set=${LDFLAGS+set}
949ac_env_LDFLAGS_value=$LDFLAGS
950ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
951ac_cv_env_LDFLAGS_value=$LDFLAGS
952ac_env_CPPFLAGS_set=${CPPFLAGS+set}
953ac_env_CPPFLAGS_value=$CPPFLAGS
954ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
955ac_cv_env_CPPFLAGS_value=$CPPFLAGS
956ac_env_MPICC_set=${MPICC+set}
957ac_env_MPICC_value=$MPICC
958ac_cv_env_MPICC_set=${MPICC+set}
959ac_cv_env_MPICC_value=$MPICC
960ac_env_CXXDEFS_set=${CXXDEFS+set}
961ac_env_CXXDEFS_value=$CXXDEFS
962ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
963ac_cv_env_CXXDEFS_value=$CXXDEFS
964ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
965ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
966ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
967ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
968ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
969ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
970ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
971ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
972ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
973ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
974ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
975ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
976ac_env_CXX_set=${CXX+set}
977ac_env_CXX_value=$CXX
978ac_cv_env_CXX_set=${CXX+set}
979ac_cv_env_CXX_value=$CXX
980ac_env_CXXFLAGS_set=${CXXFLAGS+set}
981ac_env_CXXFLAGS_value=$CXXFLAGS
982ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
983ac_cv_env_CXXFLAGS_value=$CXXFLAGS
984ac_env_MPICXX_set=${MPICXX+set}
985ac_env_MPICXX_value=$MPICXX
986ac_cv_env_MPICXX_set=${MPICXX+set}
987ac_cv_env_MPICXX_value=$MPICXX
988ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
989ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
990ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
991ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
992ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
993ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
994ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
995ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
996ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
997ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
998ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
999ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1000ac_env_F77_set=${F77+set}
1001ac_env_F77_value=$F77
1002ac_cv_env_F77_set=${F77+set}
1003ac_cv_env_F77_value=$F77
1004ac_env_FFLAGS_set=${FFLAGS+set}
1005ac_env_FFLAGS_value=$FFLAGS
1006ac_cv_env_FFLAGS_set=${FFLAGS+set}
1007ac_cv_env_FFLAGS_value=$FFLAGS
1008ac_env_MPIF77_set=${MPIF77+set}
1009ac_env_MPIF77_value=$MPIF77
1010ac_cv_env_MPIF77_set=${MPIF77+set}
1011ac_cv_env_MPIF77_value=$MPIF77
1012ac_env_CPP_set=${CPP+set}
1013ac_env_CPP_value=$CPP
1014ac_cv_env_CPP_set=${CPP+set}
1015ac_cv_env_CPP_value=$CPP
1016ac_env_CXXCPP_set=${CXXCPP+set}
1017ac_env_CXXCPP_value=$CXXCPP
1018ac_cv_env_CXXCPP_set=${CXXCPP+set}
1019ac_cv_env_CXXCPP_value=$CXXCPP
1020
1021#
1022# Report the --help message.
1023#
1024if test "$ac_init_help" = "long"; then
1025  # Omit some internal or obsolete options to make the list less imposing.
1026  # This message is too long to be a string in the A/UX 3.1 sh.
1027  cat <<_ACEOF
1028\`configure' configures ThirdPartyAll 0.0 to adapt to many kinds of systems.
1029
1030Usage: $0 [OPTION]... [VAR=VALUE]...
1031
1032To assign environment variables (e.g., CC, CFLAGS...), specify them as
1033VAR=VALUE.  See below for descriptions of some of the useful variables.
1034
1035Defaults for the options are specified in brackets.
1036
1037Configuration:
1038  -h, --help              display this help and exit
1039      --help=short        display options specific to this package
1040      --help=recursive    display the short help of all the included packages
1041  -V, --version           display version information and exit
1042  -q, --quiet, --silent   do not print \`checking...' messages
1043      --cache-file=FILE   cache test results in FILE [disabled]
1044  -C, --config-cache      alias for \`--cache-file=config.cache'
1045  -n, --no-create         do not create output files
1046      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1047
1048_ACEOF
1049
1050  cat <<_ACEOF
1051Installation directories:
1052  --prefix=PREFIX         install architecture-independent files in PREFIX
1053                          [$ac_default_prefix]
1054  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1055                          [PREFIX]
1056
1057By default, \`make install' will install all the files in
1058\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1059an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1060for instance \`--prefix=\$HOME'.
1061
1062For better control, use the options below.
1063
1064Fine tuning of the installation directories:
1065  --bindir=DIR           user executables [EPREFIX/bin]
1066  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1067  --libexecdir=DIR       program executables [EPREFIX/libexec]
1068  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1069  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1070  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1071  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1072  --libdir=DIR           object code libraries [EPREFIX/lib]
1073  --includedir=DIR       C header files [PREFIX/include]
1074  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1075  --infodir=DIR          info documentation [PREFIX/info]
1076  --mandir=DIR           man documentation [PREFIX/man]
1077_ACEOF
1078
1079  cat <<\_ACEOF
1080
1081Program names:
1082  --program-prefix=PREFIX            prepend PREFIX to installed program names
1083  --program-suffix=SUFFIX            append SUFFIX to installed program names
1084  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1085
1086System types:
1087  --build=BUILD     configure for building on BUILD [guessed]
1088  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1089_ACEOF
1090fi
1091
1092if test -n "$ac_init_help"; then
1093  case $ac_init_help in
1094     short | recursive ) echo "Configuration of ThirdPartyAll 0.0:";;
1095   esac
1096  cat <<\_ACEOF
1097
1098Optional Features:
1099  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1100  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1101  --enable-debug          compile all projects with debug options tests
1102  --enable-doscompile     Under Cygwin, compile so that executables run under
1103                          DOS. Set to mingw to use gcc/g++/ld with
1104                          -mno-cygwin. Set to msvc to use cl/link (or
1105                          icl/link). Default when mentioned: mingw. Default
1106                          when not mentioned: disabled.
1107  --enable-static[=PKGS]
1108                          build static libraries [default=no]
1109  --disable-dependency-tracking  speeds up one-time build
1110  --enable-dependency-tracking   do not reject slow dependency extractors
1111  --enable-maintainer-mode  enable make rules and dependencies not useful
1112                          (and sometimes confusing) to the casual installer
1113  --enable-shared[=PKGS]
1114                          build shared libraries [default=yes]
1115  --enable-fast-install[=PKGS]
1116                          optimize for fast installation [default=yes]
1117  --disable-libtool-lock  avoid locking (might break parallel builds)
1118
1119Optional Packages:
1120  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1121  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1122  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1123  --with-pic              try to use only PIC/non-PIC objects [default=use
1124                          both]
1125  --with-tags[=TAGS]
1126                          include additional configurations [automatic]
1127
1128Some influential environment variables:
1129  CDEFS       Additional -D flags to be used when compiling C code.
1130  ADD_CFLAGS  Additional C compiler options
1131  DBG_CFLAGS  Debug C compiler options
1132  OPT_CFLAGS  Optimize C compiler options
1133  CC          C compiler command
1134  CFLAGS      C compiler flags
1135  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1136              nonstandard directory <lib dir>
1137  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1138              headers in a nonstandard directory <include dir>
1139  MPICC       C MPI Compiler
1140  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1141  ADD_CXXFLAGS
1142              Additional C++ compiler options
1143  DBG_CXXFLAGS
1144              Debug C++ compiler options
1145  OPT_CXXFLAGS
1146              Optimize C++ compiler options
1147  CXX         C++ compiler command
1148  CXXFLAGS    C++ compiler flags
1149  MPICXX      C++ MPI Compiler
1150  ADD_FFLAGS  Additional Fortran compiler options
1151  DBG_FFLAGS  Debug Fortran compiler options
1152  OPT_FFLAGS  Optimize Fortran compiler options
1153  F77         Fortran 77 compiler command
1154  FFLAGS      Fortran 77 compiler flags
1155  MPIF77      Fortran MPI Compiler
1156  CPP         C preprocessor
1157  CXXCPP      C++ preprocessor
1158
1159Use these variables to override the choices made by `configure' or to help
1160it to find libraries and programs with nonstandard names/locations.
1161
1162Report bugs to <https://projects.coin-or.org/BuildTools/newticket>.
1163_ACEOF
1164fi
1165
1166if test "$ac_init_help" = "recursive"; then
1167  # If there are subdirs, report their specific --help.
1168  ac_popdir=`pwd`
1169  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1170    test -d $ac_dir || continue
1171    ac_builddir=.
1172
1173if test "$ac_dir" != .; then
1174  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1175  # A "../" for each directory in $ac_dir_suffix.
1176  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1177else
1178  ac_dir_suffix= ac_top_builddir=
1179fi
1180
1181case $srcdir in
1182  .)  # No --srcdir option.  We are building in place.
1183    ac_srcdir=.
1184    if test -z "$ac_top_builddir"; then
1185       ac_top_srcdir=.
1186    else
1187       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1188    fi ;;
1189  [\\/]* | ?:[\\/]* )  # Absolute path.
1190    ac_srcdir=$srcdir$ac_dir_suffix;
1191    ac_top_srcdir=$srcdir ;;
1192  *) # Relative path.
1193    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1194    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1195esac
1196
1197# Do not use `cd foo && pwd` to compute absolute paths, because
1198# the directories may not exist.
1199case `pwd` in
1200.) ac_abs_builddir="$ac_dir";;
1201*)
1202  case "$ac_dir" in
1203  .) ac_abs_builddir=`pwd`;;
1204  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1205  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1206  esac;;
1207esac
1208case $ac_abs_builddir in
1209.) ac_abs_top_builddir=${ac_top_builddir}.;;
1210*)
1211  case ${ac_top_builddir}. in
1212  .) ac_abs_top_builddir=$ac_abs_builddir;;
1213  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1214  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1215  esac;;
1216esac
1217case $ac_abs_builddir in
1218.) ac_abs_srcdir=$ac_srcdir;;
1219*)
1220  case $ac_srcdir in
1221  .) ac_abs_srcdir=$ac_abs_builddir;;
1222  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1223  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1224  esac;;
1225esac
1226case $ac_abs_builddir in
1227.) ac_abs_top_srcdir=$ac_top_srcdir;;
1228*)
1229  case $ac_top_srcdir in
1230  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1231  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1232  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1233  esac;;
1234esac
1235
1236    cd $ac_dir
1237    # Check for guested configure; otherwise get Cygnus style configure.
1238    if test -f $ac_srcdir/configure.gnu; then
1239      echo
1240      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1241    elif test -f $ac_srcdir/configure; then
1242      echo
1243      $SHELL $ac_srcdir/configure  --help=recursive
1244    elif test -f $ac_srcdir/configure.ac ||
1245           test -f $ac_srcdir/configure.in; then
1246      echo
1247      $ac_configure --help
1248    else
1249      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1250    fi
1251    cd $ac_popdir
1252  done
1253fi
1254
1255test -n "$ac_init_help" && exit 0
1256if $ac_init_version; then
1257  cat <<\_ACEOF
1258ThirdPartyAll configure 0.0
1259generated by GNU Autoconf 2.59
1260
1261Copyright (C) 2003 Free Software Foundation, Inc.
1262This configure script is free software; the Free Software Foundation
1263gives unlimited permission to copy, distribute and modify it.
1264
1265Copyright (C) 2009 Stefan Vigerske
1266All Rights Reserved.
1267This file is part of the open source package Coin which is distributed
1268under the Common Public License.
1269_ACEOF
1270  exit 0
1271fi
1272exec 5>config.log
1273cat >&5 <<_ACEOF
1274This file contains any messages produced by compilers while
1275running configure, to aid debugging if configure makes a mistake.
1276
1277It was created by ThirdPartyAll $as_me 0.0, which was
1278generated by GNU Autoconf 2.59.  Invocation command line was
1279
1280  $ $0 $@
1281
1282_ACEOF
1283{
1284cat <<_ASUNAME
1285## --------- ##
1286## Platform. ##
1287## --------- ##
1288
1289hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1290uname -m = `(uname -m) 2>/dev/null || echo unknown`
1291uname -r = `(uname -r) 2>/dev/null || echo unknown`
1292uname -s = `(uname -s) 2>/dev/null || echo unknown`
1293uname -v = `(uname -v) 2>/dev/null || echo unknown`
1294
1295/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1296/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1297
1298/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1299/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1300/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1301hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1302/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1303/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1304/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1305
1306_ASUNAME
1307
1308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1309for as_dir in $PATH
1310do
1311  IFS=$as_save_IFS
1312  test -z "$as_dir" && as_dir=.
1313  echo "PATH: $as_dir"
1314done
1315
1316} >&5
1317
1318cat >&5 <<_ACEOF
1319
1320
1321## ----------- ##
1322## Core tests. ##
1323## ----------- ##
1324
1325_ACEOF
1326
1327
1328# Keep a trace of the command line.
1329# Strip out --no-create and --no-recursion so they do not pile up.
1330# Strip out --silent because we don't want to record it for future runs.
1331# Also quote any args containing shell meta-characters.
1332# Make two passes to allow for proper duplicate-argument suppression.
1333ac_configure_args=
1334ac_configure_args0=
1335ac_configure_args1=
1336ac_sep=
1337ac_must_keep_next=false
1338for ac_pass in 1 2
1339do
1340  for ac_arg
1341  do
1342    case $ac_arg in
1343    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1344    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1345    | -silent | --silent | --silen | --sile | --sil)
1346      continue ;;
1347    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1348      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1349    esac
1350    case $ac_pass in
1351    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1352    2)
1353      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1354      if test $ac_must_keep_next = true; then
1355        ac_must_keep_next=false # Got value, back to normal.
1356      else
1357        case $ac_arg in
1358          *=* | --config-cache | -C | -disable-* | --disable-* \
1359          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1360          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1361          | -with-* | --with-* | -without-* | --without-* | --x)
1362            case "$ac_configure_args0 " in
1363              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1364            esac
1365            ;;
1366          -* ) ac_must_keep_next=true ;;
1367        esac
1368      fi
1369      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1370      # Get rid of the leading space.
1371      ac_sep=" "
1372      ;;
1373    esac
1374  done
1375done
1376$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1377$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1378
1379# When interrupted or exit'd, cleanup temporary files, and complete
1380# config.log.  We remove comments because anyway the quotes in there
1381# would cause problems or look ugly.
1382# WARNING: Be sure not to use single quotes in there, as some shells,
1383# such as our DU 5.0 friend, will then `close' the trap.
1384trap 'exit_status=$?
1385  # Save into config.log some information that might help in debugging.
1386  {
1387    echo
1388
1389    cat <<\_ASBOX
1390## ---------------- ##
1391## Cache variables. ##
1392## ---------------- ##
1393_ASBOX
1394    echo
1395    # The following way of writing the cache mishandles newlines in values,
1396{
1397  (set) 2>&1 |
1398    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1399    *ac_space=\ *)
1400      sed -n \
1401        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1402          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1403      ;;
1404    *)
1405      sed -n \
1406        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1407      ;;
1408    esac;
1409}
1410    echo
1411
1412    cat <<\_ASBOX
1413## ----------------- ##
1414## Output variables. ##
1415## ----------------- ##
1416_ASBOX
1417    echo
1418    for ac_var in $ac_subst_vars
1419    do
1420      eval ac_val=$`echo $ac_var`
1421      echo "$ac_var='"'"'$ac_val'"'"'"
1422    done | sort
1423    echo
1424
1425    if test -n "$ac_subst_files"; then
1426      cat <<\_ASBOX
1427## ------------- ##
1428## Output files. ##
1429## ------------- ##
1430_ASBOX
1431      echo
1432      for ac_var in $ac_subst_files
1433      do
1434        eval ac_val=$`echo $ac_var`
1435        echo "$ac_var='"'"'$ac_val'"'"'"
1436      done | sort
1437      echo
1438    fi
1439
1440    if test -s confdefs.h; then
1441      cat <<\_ASBOX
1442## ----------- ##
1443## confdefs.h. ##
1444## ----------- ##
1445_ASBOX
1446      echo
1447      sed "/^$/d" confdefs.h | sort
1448      echo
1449    fi
1450    test "$ac_signal" != 0 &&
1451      echo "$as_me: caught signal $ac_signal"
1452    echo "$as_me: exit $exit_status"
1453  } >&5
1454  rm -f core *.core &&
1455  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1456    exit $exit_status
1457     ' 0
1458for ac_signal in 1 2 13 15; do
1459  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1460done
1461ac_signal=0
1462
1463# confdefs.h avoids OS command line length limits that DEFS can exceed.
1464rm -rf conftest* confdefs.h
1465# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1466echo >confdefs.h
1467
1468# Predefined preprocessor variables.
1469
1470cat >>confdefs.h <<_ACEOF
1471#define PACKAGE_NAME "$PACKAGE_NAME"
1472_ACEOF
1473
1474
1475cat >>confdefs.h <<_ACEOF
1476#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1477_ACEOF
1478
1479
1480cat >>confdefs.h <<_ACEOF
1481#define PACKAGE_VERSION "$PACKAGE_VERSION"
1482_ACEOF
1483
1484
1485cat >>confdefs.h <<_ACEOF
1486#define PACKAGE_STRING "$PACKAGE_STRING"
1487_ACEOF
1488
1489
1490cat >>confdefs.h <<_ACEOF
1491#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1492_ACEOF
1493
1494
1495# Let the site file select an alternate cache file if it wants to.
1496# Prefer explicitly selected file to automatically selected ones.
1497if test -z "$CONFIG_SITE"; then
1498  if test "x$prefix" != xNONE; then
1499    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1500  else
1501    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1502  fi
1503fi
1504for ac_site_file in $CONFIG_SITE; do
1505  if test -r "$ac_site_file"; then
1506    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1507echo "$as_me: loading site script $ac_site_file" >&6;}
1508    sed 's/^/| /' "$ac_site_file" >&5
1509    . "$ac_site_file"
1510  fi
1511done
1512
1513if test -r "$cache_file"; then
1514  # Some versions of bash will fail to source /dev/null (special
1515  # files actually), so we avoid doing that.
1516  if test -f "$cache_file"; then
1517    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1518echo "$as_me: loading cache $cache_file" >&6;}
1519    case $cache_file in
1520      [\\/]* | ?:[\\/]* ) . $cache_file;;
1521      *)                      . ./$cache_file;;
1522    esac
1523  fi
1524else
1525  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1526echo "$as_me: creating cache $cache_file" >&6;}
1527  >$cache_file
1528fi
1529
1530# Check that the precious variables saved in the cache have kept the same
1531# value.
1532ac_cache_corrupted=false
1533for ac_var in `(set) 2>&1 |
1534               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1535  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1536  eval ac_new_set=\$ac_env_${ac_var}_set
1537  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1538  eval ac_new_val="\$ac_env_${ac_var}_value"
1539  case $ac_old_set,$ac_new_set in
1540    set,)
1541      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1542echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1543      ac_cache_corrupted=: ;;
1544    ,set)
1545      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1546echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1547      ac_cache_corrupted=: ;;
1548    ,);;
1549    *)
1550      if test "x$ac_old_val" != "x$ac_new_val"; then
1551        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1552echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1553        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1554echo "$as_me:   former value:  $ac_old_val" >&2;}
1555        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1556echo "$as_me:   current value: $ac_new_val" >&2;}
1557        ac_cache_corrupted=:
1558      fi;;
1559  esac
1560  # Pass precious variables to config.status.
1561  if test "$ac_new_set" = set; then
1562    case $ac_new_val in
1563    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1564      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1565    *) ac_arg=$ac_var=$ac_new_val ;;
1566    esac
1567    case " $ac_configure_args " in
1568      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1569      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1570    esac
1571  fi
1572done
1573if $ac_cache_corrupted; then
1574  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1575echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1576  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1577echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1578   { (exit 1); exit 1; }; }
1579fi
1580
1581ac_ext=c
1582ac_cpp='$CPP $CPPFLAGS'
1583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1585ac_compiler_gnu=$ac_cv_c_compiler_gnu
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618# List one file in the package so that the configure script can test
1619# whether the package is actually there
1620
1621
1622# Where should everything be installed by default?  Here, we want it
1623# to be installed directly in 'bin', 'lib', 'include' subdirectories
1624# of the directory where configure is run.  The default would be
1625# /usr/local.
1626
1627
1628#############################################################################
1629#              Create the libtool script for the subdirectories             #
1630#############################################################################
1631
1632ac_aux_dir=
1633for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1634  if test -f $ac_dir/install-sh; then
1635    ac_aux_dir=$ac_dir
1636    ac_install_sh="$ac_aux_dir/install-sh -c"
1637    break
1638  elif test -f $ac_dir/install.sh; then
1639    ac_aux_dir=$ac_dir
1640    ac_install_sh="$ac_aux_dir/install.sh -c"
1641    break
1642  elif test -f $ac_dir/shtool; then
1643    ac_aux_dir=$ac_dir
1644    ac_install_sh="$ac_aux_dir/shtool install -c"
1645    break
1646  fi
1647done
1648if test -z "$ac_aux_dir"; then
1649  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1650echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1651   { (exit 1); exit 1; }; }
1652fi
1653ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1654ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1655ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1656
1657# Make sure we can run config.sub.
1658$ac_config_sub sun4 >/dev/null 2>&1 ||
1659  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1660echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1661   { (exit 1); exit 1; }; }
1662
1663echo "$as_me:$LINENO: checking build system type" >&5
1664echo $ECHO_N "checking build system type... $ECHO_C" >&6
1665if test "${ac_cv_build+set}" = set; then
1666  echo $ECHO_N "(cached) $ECHO_C" >&6
1667else
1668  ac_cv_build_alias=$build_alias
1669test -z "$ac_cv_build_alias" &&
1670  ac_cv_build_alias=`$ac_config_guess`
1671test -z "$ac_cv_build_alias" &&
1672  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1673echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1674   { (exit 1); exit 1; }; }
1675ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1676  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1677echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1678   { (exit 1); exit 1; }; }
1679
1680fi
1681echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1682echo "${ECHO_T}$ac_cv_build" >&6
1683build=$ac_cv_build
1684build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687
1688
1689
1690# Check if user wants to produce debugging code
1691
1692echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1693echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1694
1695# Check whether --enable-debug or --disable-debug was given.
1696if test "${enable_debug+set}" = set; then
1697  enableval="$enable_debug"
1698  case "${enableval}" in
1699   yes) coin_debug_compile=true
1700        if test "${enable_shared+set}" = set; then :; else
1701          enable_shared=no
1702        fi
1703        ;;
1704   no)  coin_debug_compile=false
1705        ;;
1706   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1707echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1708   { (exit 1); exit 1; }; }
1709        ;;
1710esac
1711else
1712  coin_debug_compile=false
1713fi;
1714
1715 # m4_ifvaln([],
1716
1717if test $coin_debug_compile = true; then
1718  echo "$as_me:$LINENO: result: yes" >&5
1719echo "${ECHO_T}yes" >&6
1720else
1721  echo "$as_me:$LINENO: result: no" >&5
1722echo "${ECHO_T}no" >&6
1723fi
1724
1725 # m4_ifvaln([],
1726
1727
1728
1729# Get the name of the C compiler and appropriate compiler options
1730case $build in
1731  *-mingw*)
1732    if test "${LD+set}" = set; then :; else
1733      LD=link
1734    fi
1735    ;;
1736 esac
1737 case $enable_doscompile in
1738   msvc)
1739     if test "x${LD+set}" = xset; then :; else
1740       LD=link
1741     fi
1742     ;;
1743 esac
1744
1745
1746 # Check whether --enable-doscompile or --disable-doscompile was given.
1747if test "${enable_doscompile+set}" = set; then
1748  enableval="$enable_doscompile"
1749  if test "$enable_doscompile" != no; then
1750     case $build in
1751       *-cygwin* | *-mingw*) ;;
1752       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1753echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1754   { (exit 1); exit 1; }; } ;;
1755     esac
1756   fi
1757else
1758  enable_doscompile=no
1759fi;
1760 case "$enable_doscompile" in
1761   mingw)
1762     case $build in
1763       *-mingw*) enable_doscompile=no ;;
1764     esac
1765     ;;
1766   msvc|no) ;;
1767   yes) enable_doscompile=mingw ;;
1768   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1769                    Try configure --help=recursive." >&5
1770echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1771                    Try configure --help=recursive." >&2;}
1772   { (exit 1); exit 1; }; }
1773      ;;
1774  esac
1775  if test "$enable_doscompile" != no ; then
1776    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1777echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1778  fi
1779
1780
1781
1782
1783ac_ext=c
1784ac_cpp='$CPP $CPPFLAGS'
1785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1787ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788
1789
1790# For consistency, we set the C compiler to the same value of the C++
1791# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1792if test x"$CXX" != x; then
1793  case "$CXX" in
1794    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1795      if test x"$CC" = x; then
1796        CC="$CXX"
1797        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1798echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1799      fi
1800      ;;
1801  esac
1802fi
1803
1804
1805
1806
1807
1808
1809coin_has_cc=yes
1810
1811save_cflags="$CFLAGS"
1812
1813# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1814# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1815# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1816# compiler. In this case, put cc after gcc.
1817
1818case $build in
1819  *-cygwin* | *-mingw*)
1820             if test "$enable_doscompile" = msvc ; then
1821               comps="icl cl"
1822             else
1823               comps="gcc cl"
1824             fi ;;
1825  *-*-solaris*)
1826             # Extract the first word of "cc", so it can be a program name with args.
1827set dummy cc; ac_word=$2
1828echo "$as_me:$LINENO: checking for $ac_word" >&5
1829echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1831  echo $ECHO_N "(cached) $ECHO_C" >&6
1832else
1833  if test -n "$sol_cc_compiler"; then
1834  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1835else
1836  ac_prog_rejected=no
1837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838for as_dir in $PATH
1839do
1840  IFS=$as_save_IFS
1841  test -z "$as_dir" && as_dir=.
1842  for ac_exec_ext in '' $ac_executable_extensions; do
1843  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1845       ac_prog_rejected=yes
1846       continue
1847     fi
1848    ac_cv_prog_sol_cc_compiler="cc"
1849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850    break 2
1851  fi
1852done
1853done
1854
1855if test $ac_prog_rejected = yes; then
1856  # We found a bogon in the path, so make sure we never use it.
1857  set dummy $ac_cv_prog_sol_cc_compiler
1858  shift
1859  if test $# != 0; then
1860    # We chose a different compiler from the bogus one.
1861    # However, it has the same basename, so the bogon will be chosen
1862    # first if we set sol_cc_compiler to just the basename; use the full file name.
1863    shift
1864    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1865  fi
1866fi
1867fi
1868fi
1869sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1870if test -n "$sol_cc_compiler"; then
1871  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1872echo "${ECHO_T}$sol_cc_compiler" >&6
1873else
1874  echo "$as_me:$LINENO: result: no" >&5
1875echo "${ECHO_T}no" >&6
1876fi
1877
1878             if test "$sol_cc_compiler" = "cc" ; then
1879               comps="cc xlc gcc pgcc icc"
1880             else
1881               comps="xlc gcc pgcc icc cc"
1882             fi
1883             ;;
1884  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1885  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1886esac
1887
1888# We delete the cached value, since the test might not have been
1889# performed with our choice of compilers earlier
1890$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1891# AC_MSG_NOTICE([C compiler candidates: $comps])
1892ac_ext=c
1893ac_cpp='$CPP $CPPFLAGS'
1894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1896ac_compiler_gnu=$ac_cv_c_compiler_gnu
1897if test -n "$ac_tool_prefix"; then
1898  for ac_prog in $comps
1899  do
1900    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1901set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1902echo "$as_me:$LINENO: checking for $ac_word" >&5
1903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1904if test "${ac_cv_prog_CC+set}" = set; then
1905  echo $ECHO_N "(cached) $ECHO_C" >&6
1906else
1907  if test -n "$CC"; then
1908  ac_cv_prog_CC="$CC" # Let the user override the test.
1909else
1910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911for as_dir in $PATH
1912do
1913  IFS=$as_save_IFS
1914  test -z "$as_dir" && as_dir=.
1915  for ac_exec_ext in '' $ac_executable_extensions; do
1916  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1917    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1918    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919    break 2
1920  fi
1921done
1922done
1923
1924fi
1925fi
1926CC=$ac_cv_prog_CC
1927if test -n "$CC"; then
1928  echo "$as_me:$LINENO: result: $CC" >&5
1929echo "${ECHO_T}$CC" >&6
1930else
1931  echo "$as_me:$LINENO: result: no" >&5
1932echo "${ECHO_T}no" >&6
1933fi
1934
1935    test -n "$CC" && break
1936  done
1937fi
1938if test -z "$CC"; then
1939  ac_ct_CC=$CC
1940  for ac_prog in $comps
1941do
1942  # Extract the first word of "$ac_prog", so it can be a program name with args.
1943set dummy $ac_prog; ac_word=$2
1944echo "$as_me:$LINENO: checking for $ac_word" >&5
1945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1947  echo $ECHO_N "(cached) $ECHO_C" >&6
1948else
1949  if test -n "$ac_ct_CC"; then
1950  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1951else
1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955  IFS=$as_save_IFS
1956  test -z "$as_dir" && as_dir=.
1957  for ac_exec_ext in '' $ac_executable_extensions; do
1958  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959    ac_cv_prog_ac_ct_CC="$ac_prog"
1960    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961    break 2
1962  fi
1963done
1964done
1965
1966fi
1967fi
1968ac_ct_CC=$ac_cv_prog_ac_ct_CC
1969if test -n "$ac_ct_CC"; then
1970  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1971echo "${ECHO_T}$ac_ct_CC" >&6
1972else
1973  echo "$as_me:$LINENO: result: no" >&5
1974echo "${ECHO_T}no" >&6
1975fi
1976
1977  test -n "$ac_ct_CC" && break
1978done
1979
1980  CC=$ac_ct_CC
1981fi
1982
1983
1984test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1985See \`config.log' for more details." >&5
1986echo "$as_me: error: no acceptable C compiler found in \$PATH
1987See \`config.log' for more details." >&2;}
1988   { (exit 1); exit 1; }; }
1989
1990# Provide some information about the compiler.
1991echo "$as_me:$LINENO:" \
1992     "checking for C compiler version" >&5
1993ac_compiler=`set X $ac_compile; echo $2`
1994{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1995  (eval $ac_compiler --version </dev/null >&5) 2>&5
1996  ac_status=$?
1997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998  (exit $ac_status); }
1999{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2000  (eval $ac_compiler -v </dev/null >&5) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }
2004{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2005  (eval $ac_compiler -V </dev/null >&5) 2>&5
2006  ac_status=$?
2007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008  (exit $ac_status); }
2009
2010cat >conftest.$ac_ext <<_ACEOF
2011/* confdefs.h.  */
2012_ACEOF
2013cat confdefs.h >>conftest.$ac_ext
2014cat >>conftest.$ac_ext <<_ACEOF
2015/* end confdefs.h.  */
2016
2017int
2018main ()
2019{
2020
2021  ;
2022  return 0;
2023}
2024_ACEOF
2025ac_clean_files_save=$ac_clean_files
2026ac_clean_files="$ac_clean_files a.out a.exe b.out"
2027# Try to create an executable without -o first, disregard a.out.
2028# It will help us diagnose broken compilers, and finding out an intuition
2029# of exeext.
2030echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2031echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2032ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2033if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2034  (eval $ac_link_default) 2>&5
2035  ac_status=$?
2036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037  (exit $ac_status); }; then
2038  # Find the output, starting from the most likely.  This scheme is
2039# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2040# resort.
2041
2042# Be careful to initialize this variable, since it used to be cached.
2043# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2044ac_cv_exeext=
2045# b.out is created by i960 compilers.
2046for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2047do
2048  test -f "$ac_file" || continue
2049  case $ac_file in
2050    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2051        ;;
2052    conftest.$ac_ext )
2053        # This is the source file.
2054        ;;
2055    [ab].out )
2056        # We found the default executable, but exeext='' is most
2057        # certainly right.
2058        break;;
2059    *.* )
2060        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2061        # FIXME: I believe we export ac_cv_exeext for Libtool,
2062        # but it would be cool to find out if it's true.  Does anybody
2063        # maintain Libtool? --akim.
2064        export ac_cv_exeext
2065        break;;
2066    * )
2067        break;;
2068  esac
2069done
2070else
2071  echo "$as_me: failed program was:" >&5
2072sed 's/^/| /' conftest.$ac_ext >&5
2073
2074{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2075See \`config.log' for more details." >&5
2076echo "$as_me: error: C compiler cannot create executables
2077See \`config.log' for more details." >&2;}
2078   { (exit 77); exit 77; }; }
2079fi
2080
2081ac_exeext=$ac_cv_exeext
2082echo "$as_me:$LINENO: result: $ac_file" >&5
2083echo "${ECHO_T}$ac_file" >&6
2084
2085# Check the compiler produces executables we can run.  If not, either
2086# the compiler is broken, or we cross compile.
2087echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2088echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2089# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2090# If not cross compiling, check that we can run a simple program.
2091if test "$cross_compiling" != yes; then
2092  if { ac_try='./$ac_file'
2093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094  (eval $ac_try) 2>&5
2095  ac_status=$?
2096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097  (exit $ac_status); }; }; then
2098    cross_compiling=no
2099  else
2100    if test "$cross_compiling" = maybe; then
2101        cross_compiling=yes
2102    else
2103        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2104If you meant to cross compile, use \`--host'.
2105See \`config.log' for more details." >&5
2106echo "$as_me: error: cannot run C compiled programs.
2107If you meant to cross compile, use \`--host'.
2108See \`config.log' for more details." >&2;}
2109   { (exit 1); exit 1; }; }
2110    fi
2111  fi
2112fi
2113echo "$as_me:$LINENO: result: yes" >&5
2114echo "${ECHO_T}yes" >&6
2115
2116rm -f a.out a.exe conftest$ac_cv_exeext b.out
2117ac_clean_files=$ac_clean_files_save
2118# Check the compiler produces executables we can run.  If not, either
2119# the compiler is broken, or we cross compile.
2120echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2121echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2122echo "$as_me:$LINENO: result: $cross_compiling" >&5
2123echo "${ECHO_T}$cross_compiling" >&6
2124
2125echo "$as_me:$LINENO: checking for suffix of executables" >&5
2126echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2128  (eval $ac_link) 2>&5
2129  ac_status=$?
2130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131  (exit $ac_status); }; then
2132  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2133# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2134# work properly (i.e., refer to `conftest.exe'), while it won't with
2135# `rm'.
2136for ac_file in conftest.exe conftest conftest.*; do
2137  test -f "$ac_file" || continue
2138  case $ac_file in
2139    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2140    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2141          export ac_cv_exeext
2142          break;;
2143    * ) break;;
2144  esac
2145done
2146else
2147  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2148See \`config.log' for more details." >&5
2149echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2150See \`config.log' for more details." >&2;}
2151   { (exit 1); exit 1; }; }
2152fi
2153
2154rm -f conftest$ac_cv_exeext
2155echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2156echo "${ECHO_T}$ac_cv_exeext" >&6
2157
2158rm -f conftest.$ac_ext
2159EXEEXT=$ac_cv_exeext
2160ac_exeext=$EXEEXT
2161echo "$as_me:$LINENO: checking for suffix of object files" >&5
2162echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2163if test "${ac_cv_objext+set}" = set; then
2164  echo $ECHO_N "(cached) $ECHO_C" >&6
2165else
2166  cat >conftest.$ac_ext <<_ACEOF
2167/* confdefs.h.  */
2168_ACEOF
2169cat confdefs.h >>conftest.$ac_ext
2170cat >>conftest.$ac_ext <<_ACEOF
2171/* end confdefs.h.  */
2172
2173int
2174main ()
2175{
2176
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181rm -f conftest.o conftest.obj
2182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183  (eval $ac_compile) 2>&5
2184  ac_status=$?
2185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186  (exit $ac_status); }; then
2187  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2188  case $ac_file in
2189    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2190    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2191       break;;
2192  esac
2193done
2194else
2195  echo "$as_me: failed program was:" >&5
2196sed 's/^/| /' conftest.$ac_ext >&5
2197
2198{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: cannot compute suffix of object files: cannot compile
2201See \`config.log' for more details." >&2;}
2202   { (exit 1); exit 1; }; }
2203fi
2204
2205rm -f conftest.$ac_cv_objext conftest.$ac_ext
2206fi
2207echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2208echo "${ECHO_T}$ac_cv_objext" >&6
2209OBJEXT=$ac_cv_objext
2210ac_objext=$OBJEXT
2211echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2212echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2213if test "${ac_cv_c_compiler_gnu+set}" = set; then
2214  echo $ECHO_N "(cached) $ECHO_C" >&6
2215else
2216  cat >conftest.$ac_ext <<_ACEOF
2217/* confdefs.h.  */
2218_ACEOF
2219cat confdefs.h >>conftest.$ac_ext
2220cat >>conftest.$ac_ext <<_ACEOF
2221/* end confdefs.h.  */
2222
2223int
2224main ()
2225{
2226#ifndef __GNUC__
2227       choke me
2228#endif
2229
2230  ;
2231  return 0;
2232}
2233_ACEOF
2234rm -f conftest.$ac_objext
2235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2236  (eval $ac_compile) 2>conftest.er1
2237  ac_status=$?
2238  grep -v '^ *+' conftest.er1 >conftest.err
2239  rm -f conftest.er1
2240  cat conftest.err >&5
2241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242  (exit $ac_status); } &&
2243         { ac_try='test -z "$ac_c_werror_flag"
2244                         || test ! -s conftest.err'
2245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246  (eval $ac_try) 2>&5
2247  ac_status=$?
2248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249  (exit $ac_status); }; } &&
2250         { ac_try='test -s conftest.$ac_objext'
2251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252  (eval $ac_try) 2>&5
2253  ac_status=$?
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); }; }; then
2256  ac_compiler_gnu=yes
2257else
2258  echo "$as_me: failed program was:" >&5
2259sed 's/^/| /' conftest.$ac_ext >&5
2260
2261ac_compiler_gnu=no
2262fi
2263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2264ac_cv_c_compiler_gnu=$ac_compiler_gnu
2265
2266fi
2267echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2268echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2269GCC=`test $ac_compiler_gnu = yes && echo yes`
2270ac_test_CFLAGS=${CFLAGS+set}
2271ac_save_CFLAGS=$CFLAGS
2272CFLAGS="-g"
2273echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2274echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2275if test "${ac_cv_prog_cc_g+set}" = set; then
2276  echo $ECHO_N "(cached) $ECHO_C" >&6
2277else
2278  cat >conftest.$ac_ext <<_ACEOF
2279/* confdefs.h.  */
2280_ACEOF
2281cat confdefs.h >>conftest.$ac_ext
2282cat >>conftest.$ac_ext <<_ACEOF
2283/* end confdefs.h.  */
2284
2285int
2286main ()
2287{
2288
2289  ;
2290  return 0;
2291}
2292_ACEOF
2293rm -f conftest.$ac_objext
2294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295  (eval $ac_compile) 2>conftest.er1
2296  ac_status=$?
2297  grep -v '^ *+' conftest.er1 >conftest.err
2298  rm -f conftest.er1
2299  cat conftest.err >&5
2300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301  (exit $ac_status); } &&
2302         { ac_try='test -z "$ac_c_werror_flag"
2303                         || test ! -s conftest.err'
2304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305  (eval $ac_try) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; } &&
2309         { ac_try='test -s conftest.$ac_objext'
2310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311  (eval $ac_try) 2>&5
2312  ac_status=$?
2313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314  (exit $ac_status); }; }; then
2315  ac_cv_prog_cc_g=yes
2316else
2317  echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320ac_cv_prog_cc_g=no
2321fi
2322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2323fi
2324echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2325echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2326if test "$ac_test_CFLAGS" = set; then
2327  CFLAGS=$ac_save_CFLAGS
2328elif test $ac_cv_prog_cc_g = yes; then
2329  if test "$GCC" = yes; then
2330    CFLAGS="-g -O2"
2331  else
2332    CFLAGS="-g"
2333  fi
2334else
2335  if test "$GCC" = yes; then
2336    CFLAGS="-O2"
2337  else
2338    CFLAGS=
2339  fi
2340fi
2341echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2342echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2343if test "${ac_cv_prog_cc_stdc+set}" = set; then
2344  echo $ECHO_N "(cached) $ECHO_C" >&6
2345else
2346  ac_cv_prog_cc_stdc=no
2347ac_save_CC=$CC
2348cat >conftest.$ac_ext <<_ACEOF
2349/* confdefs.h.  */
2350_ACEOF
2351cat confdefs.h >>conftest.$ac_ext
2352cat >>conftest.$ac_ext <<_ACEOF
2353/* end confdefs.h.  */
2354#include <stdarg.h>
2355#include <stdio.h>
2356#include <sys/types.h>
2357#include <sys/stat.h>
2358/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2359struct buf { int x; };
2360FILE * (*rcsopen) (struct buf *, struct stat *, int);
2361static char *e (p, i)
2362     char **p;
2363     int i;
2364{
2365  return p[i];
2366}
2367static char *f (char * (*g) (char **, int), char **p, ...)
2368{
2369  char *s;
2370  va_list v;
2371  va_start (v,p);
2372  s = g (p, va_arg (v,int));
2373  va_end (v);
2374  return s;
2375}
2376
2377/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2378   function prototypes and stuff, but not '\xHH' hex character constants.
2379   These don't provoke an error unfortunately, instead are silently treated
2380   as 'x'.  The following induces an error, until -std1 is added to get
2381   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2382   array size at least.  It's necessary to write '\x00'==0 to get something
2383   that's true only with -std1.  */
2384int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2385
2386int test (int i, double x);
2387struct s1 {int (*f) (int a);};
2388struct s2 {int (*f) (double a);};
2389int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2390int argc;
2391char **argv;
2392int
2393main ()
2394{
2395return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2396  ;
2397  return 0;
2398}
2399_ACEOF
2400# Don't try gcc -ansi; that turns off useful extensions and
2401# breaks some systems' header files.
2402# AIX                   -qlanglvl=ansi
2403# Ultrix and OSF/1      -std1
2404# HP-UX 10.20 and later -Ae
2405# HP-UX older versions  -Aa -D_HPUX_SOURCE
2406# SVR4                  -Xc -D__EXTENSIONS__
2407for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2408do
2409  CC="$ac_save_CC $ac_arg"
2410  rm -f conftest.$ac_objext
2411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412  (eval $ac_compile) 2>conftest.er1
2413  ac_status=$?
2414  grep -v '^ *+' conftest.er1 >conftest.err
2415  rm -f conftest.er1
2416  cat conftest.err >&5
2417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418  (exit $ac_status); } &&
2419         { ac_try='test -z "$ac_c_werror_flag"
2420                         || test ! -s conftest.err'
2421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422  (eval $ac_try) 2>&5
2423  ac_status=$?
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); }; } &&
2426         { ac_try='test -s conftest.$ac_objext'
2427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428  (eval $ac_try) 2>&5
2429  ac_status=$?
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); }; }; then
2432  ac_cv_prog_cc_stdc=$ac_arg
2433break
2434else
2435  echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438fi
2439rm -f conftest.err conftest.$ac_objext
2440done
2441rm -f conftest.$ac_ext conftest.$ac_objext
2442CC=$ac_save_CC
2443
2444fi
2445
2446case "x$ac_cv_prog_cc_stdc" in
2447  x|xno)
2448    echo "$as_me:$LINENO: result: none needed" >&5
2449echo "${ECHO_T}none needed" >&6 ;;
2450  *)
2451    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2452echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2453    CC="$CC $ac_cv_prog_cc_stdc" ;;
2454esac
2455
2456# Some people use a C++ compiler to compile C.  Since we use `exit',
2457# in C++ we need to declare it.  In case someone uses the same compiler
2458# for both compiling C and C++ we need to have the C++ compiler decide
2459# the declaration of exit, since it's the most demanding environment.
2460cat >conftest.$ac_ext <<_ACEOF
2461#ifndef __cplusplus
2462  choke me
2463#endif
2464_ACEOF
2465rm -f conftest.$ac_objext
2466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467  (eval $ac_compile) 2>conftest.er1
2468  ac_status=$?
2469  grep -v '^ *+' conftest.er1 >conftest.err
2470  rm -f conftest.er1
2471  cat conftest.err >&5
2472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473  (exit $ac_status); } &&
2474         { ac_try='test -z "$ac_c_werror_flag"
2475                         || test ! -s conftest.err'
2476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477  (eval $ac_try) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; } &&
2481         { ac_try='test -s conftest.$ac_objext'
2482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483  (eval $ac_try) 2>&5
2484  ac_status=$?
2485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486  (exit $ac_status); }; }; then
2487  for ac_declaration in \
2488   '' \
2489   'extern "C" void std::exit (int) throw (); using std::exit;' \
2490   'extern "C" void std::exit (int); using std::exit;' \
2491   'extern "C" void exit (int) throw ();' \
2492   'extern "C" void exit (int);' \
2493   'void exit (int);'
2494do
2495  cat >conftest.$ac_ext <<_ACEOF
2496/* confdefs.h.  */
2497_ACEOF
2498cat confdefs.h >>conftest.$ac_ext
2499cat >>conftest.$ac_ext <<_ACEOF
2500/* end confdefs.h.  */
2501$ac_declaration
2502#include <stdlib.h>
2503int
2504main ()
2505{
2506exit (42);
2507  ;
2508  return 0;
2509}
2510_ACEOF
2511rm -f conftest.$ac_objext
2512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2513  (eval $ac_compile) 2>conftest.er1
2514  ac_status=$?
2515  grep -v '^ *+' conftest.er1 >conftest.err
2516  rm -f conftest.er1
2517  cat conftest.err >&5
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); } &&
2520         { ac_try='test -z "$ac_c_werror_flag"
2521                         || test ! -s conftest.err'
2522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523  (eval $ac_try) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; } &&
2527         { ac_try='test -s conftest.$ac_objext'
2528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2529  (eval $ac_try) 2>&5
2530  ac_status=$?
2531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532  (exit $ac_status); }; }; then
2533  :
2534else
2535  echo "$as_me: failed program was:" >&5
2536sed 's/^/| /' conftest.$ac_ext >&5
2537
2538continue
2539fi
2540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541  cat >conftest.$ac_ext <<_ACEOF
2542/* confdefs.h.  */
2543_ACEOF
2544cat confdefs.h >>conftest.$ac_ext
2545cat >>conftest.$ac_ext <<_ACEOF
2546/* end confdefs.h.  */
2547$ac_declaration
2548int
2549main ()
2550{
2551exit (42);
2552  ;
2553  return 0;
2554}
2555_ACEOF
2556rm -f conftest.$ac_objext
2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558  (eval $ac_compile) 2>conftest.er1
2559  ac_status=$?
2560  grep -v '^ *+' conftest.er1 >conftest.err
2561  rm -f conftest.er1
2562  cat conftest.err >&5
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); } &&
2565         { ac_try='test -z "$ac_c_werror_flag"
2566                         || test ! -s conftest.err'
2567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568  (eval $ac_try) 2>&5
2569  ac_status=$?
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); }; } &&
2572         { ac_try='test -s conftest.$ac_objext'
2573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574  (eval $ac_try) 2>&5
2575  ac_status=$?
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); }; }; then
2578  break
2579else
2580  echo "$as_me: failed program was:" >&5
2581sed 's/^/| /' conftest.$ac_ext >&5
2582
2583fi
2584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2585done
2586rm -f conftest*
2587if test -n "$ac_declaration"; then
2588  echo '#ifdef __cplusplus' >>confdefs.h
2589  echo $ac_declaration      >>confdefs.h
2590  echo '#endif'             >>confdefs.h
2591fi
2592
2593else
2594  echo "$as_me: failed program was:" >&5
2595sed 's/^/| /' conftest.$ac_ext >&5
2596
2597fi
2598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2599ac_ext=c
2600ac_cpp='$CPP $CPPFLAGS'
2601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2603ac_compiler_gnu=$ac_cv_c_compiler_gnu
2604
2605if test -z "$CC" ; then
2606  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2607echo "$as_me: error: Failed to find a C compiler!" >&2;}
2608   { (exit 1); exit 1; }; }
2609fi
2610# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2611case "$CC" in
2612  cl* | */cl* | CL* | */CL* )
2613    if test "$ac_cv_prog_cc_g" = yes ; then
2614      ac_cv_prog_cc_g=no
2615      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2616echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2617    fi ;;
2618esac
2619CFLAGS="$save_cflags"
2620
2621# Check if a project specific CFLAGS variable has been set
2622if test x$COIN_PRJCT != x; then
2623  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2624  if test x$coin_tmp = xset; then
2625    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2626  fi
2627fi
2628
2629if test x"$CFLAGS" = x; then
2630
2631  coin_add_cflags=
2632  coin_opt_cflags=
2633  coin_dbg_cflags=
2634  coin_warn_cflags=
2635
2636  if test "$GCC" = "yes"; then
2637    case "$CC" in
2638      icc* | */icc*)
2639        ;;
2640      *)
2641        coin_opt_cflags="-O3 -fomit-frame-pointer"
2642        coin_add_cflags="-pipe"
2643        coin_dbg_cflags="-g"
2644        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2645        case $build in
2646          *-darwin*)
2647            ;;
2648          *)
2649            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2650            ;;
2651        esac
2652        case $enable_doscompile in
2653          mingw)
2654            CFLAGS="-mno-cygwin"
2655            cat >conftest.$ac_ext <<_ACEOF
2656/* confdefs.h.  */
2657_ACEOF
2658cat confdefs.h >>conftest.$ac_ext
2659cat >>conftest.$ac_ext <<_ACEOF
2660/* end confdefs.h.  */
2661
2662int
2663main ()
2664{
2665int i=0; i++;
2666  ;
2667  return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext conftest$ac_exeext
2671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672  (eval $ac_link) 2>conftest.er1
2673  ac_status=$?
2674  grep -v '^ *+' conftest.er1 >conftest.err
2675  rm -f conftest.er1
2676  cat conftest.err >&5
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); } &&
2679         { ac_try='test -z "$ac_c_werror_flag"
2680                         || test ! -s conftest.err'
2681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682  (eval $ac_try) 2>&5
2683  ac_status=$?
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); }; } &&
2686         { ac_try='test -s conftest$ac_exeext'
2687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688  (eval $ac_try) 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; }; then
2692  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2693else
2694  echo "$as_me: failed program was:" >&5
2695sed 's/^/| /' conftest.$ac_ext >&5
2696
2697fi
2698rm -f conftest.err conftest.$ac_objext \
2699      conftest$ac_exeext conftest.$ac_ext
2700            CFLAGS=
2701          ;;
2702        esac
2703    esac
2704  fi
2705  if test -z "$coin_opt_cflags"; then
2706    case $build in
2707      *-cygwin* | *-mingw*)
2708        case "$CC" in
2709          cl* | */cl* | CL* | */CL*)
2710            coin_opt_cflags='-MT -O2'
2711            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2712            coin_dbg_cflags='-MTd'
2713            ;;
2714          icl* | */icl* | ICL* | */ICL*)
2715            coin_opt_cflags='-MT -Ox'
2716            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2717            coin_dbg_cflags='-MTd -debug'
2718            ;;
2719        esac
2720        ;;
2721      *-linux-*)
2722        case "$CC" in
2723          icc* | */icc*)
2724            coin_opt_cflags="-O3 -ip -mp1"
2725            coin_add_cflags=""
2726            coin_dbg_cflags="-g"
2727            # Check if -i_dynamic is necessary (for new glibc library)
2728            CFLAGS=
2729            cat >conftest.$ac_ext <<_ACEOF
2730/* confdefs.h.  */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h.  */
2735
2736int
2737main ()
2738{
2739int i=0; i++;
2740  ;
2741  return 0;
2742}
2743_ACEOF
2744rm -f conftest.$ac_objext conftest$ac_exeext
2745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2746  (eval $ac_link) 2>conftest.er1
2747  ac_status=$?
2748  grep -v '^ *+' conftest.er1 >conftest.err
2749  rm -f conftest.er1
2750  cat conftest.err >&5
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); } &&
2753         { ac_try='test -z "$ac_c_werror_flag"
2754                         || test ! -s conftest.err'
2755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756  (eval $ac_try) 2>&5
2757  ac_status=$?
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); }; } &&
2760         { ac_try='test -s conftest$ac_exeext'
2761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762  (eval $ac_try) 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; }; then
2766  :
2767else
2768  echo "$as_me: failed program was:" >&5
2769sed 's/^/| /' conftest.$ac_ext >&5
2770
2771coin_add_cflags="-i_dynamic $coin_add_cflags"
2772fi
2773rm -f conftest.err conftest.$ac_objext \
2774      conftest$ac_exeext conftest.$ac_ext
2775            ;;
2776          pgcc* | */pgcc*)
2777            coin_opt_cflags="-fast"
2778            coin_add_cflags="-Kieee -pc 64"
2779            coin_dbg_cflags="-g"
2780            ;;
2781        esac
2782        ;;
2783      *-ibm-*)
2784        case "$CC" in
2785          xlc* | */xlc* | mpxlc* | */mpxlc*)
2786            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2787            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2788            coin_dbg_cflags="-g"
2789          ;;
2790        esac
2791        ;;
2792      *-hp-*)
2793        coin_opt_cflags="-O"
2794        coin_add_cflags="-Ae"
2795        coin_dbg_cflags="-g"
2796        ;;
2797      *-*-solaris*)
2798        coin_opt_cflags="-xO4"
2799        coin_dbg_cflags="-g"
2800        ;;
2801      *-sgi-*)
2802        coin_opt_cflags="-O -OPT:Olimit=0"
2803        coin_dbg_cflags="-g"
2804        ;;
2805    esac
2806  fi
2807
2808  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2809    coin_dbg_cflags="-g"
2810  fi
2811
2812  if test -z "$coin_opt_cflags"; then
2813    # Try if -O option works if nothing else is set
2814    CFLAGS="-O"
2815    cat >conftest.$ac_ext <<_ACEOF
2816/* confdefs.h.  */
2817_ACEOF
2818cat confdefs.h >>conftest.$ac_ext
2819cat >>conftest.$ac_ext <<_ACEOF
2820/* end confdefs.h.  */
2821
2822int
2823main ()
2824{
2825int i=0; i++;
2826  ;
2827  return 0;
2828}
2829_ACEOF
2830rm -f conftest.$ac_objext conftest$ac_exeext
2831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2832  (eval $ac_link) 2>conftest.er1
2833  ac_status=$?
2834  grep -v '^ *+' conftest.er1 >conftest.err
2835  rm -f conftest.er1
2836  cat conftest.err >&5
2837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838  (exit $ac_status); } &&
2839         { ac_try='test -z "$ac_c_werror_flag"
2840                         || test ! -s conftest.err'
2841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842  (eval $ac_try) 2>&5
2843  ac_status=$?
2844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845  (exit $ac_status); }; } &&
2846         { ac_try='test -s conftest$ac_exeext'
2847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848  (eval $ac_try) 2>&5
2849  ac_status=$?
2850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851  (exit $ac_status); }; }; then
2852  coin_opt_cflags="-O"
2853else
2854  echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857fi
2858rm -f conftest.err conftest.$ac_objext \
2859      conftest$ac_exeext conftest.$ac_ext
2860  fi
2861
2862  # if PM doesn't want the warning messages, take them out
2863  if test x"$coin_skip_warn_cflags" = xyes; then
2864    coin_warn_cflags=
2865  fi
2866
2867  if test x${DBG_CFLAGS+set} != xset; then
2868    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2869  fi
2870  if test x${OPT_CFLAGS+set} != xset; then
2871    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2872  fi
2873
2874  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2875  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2876
2877  if test "$coin_debug_compile" = "true"; then
2878    CFLAGS="$DBG_CFLAGS"
2879  else
2880    CFLAGS="$OPT_CFLAGS"
2881  fi
2882else
2883  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2884  if test x${DBG_CFLAGS+set} != xset; then
2885    DBG_CFLAGS="$CFLAGS"
2886  fi
2887  if test x${OPT_CFLAGS+set} != xset; then
2888    OPT_CFLAGS="$CFLAGS"
2889  fi
2890fi
2891
2892# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2893
2894case "$CFLAGS" in
2895  *-mno-cygwin*)
2896    if test x${CPPFLAGS+set} != xset ; then
2897      CPPFLAGS="-mno-cygwin"
2898    else
2899      case "$CPPFLAGS" in
2900        *-mno-cygwin*)
2901          ;;
2902        *)
2903          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2904          ;;
2905      esac
2906    fi ;;
2907esac
2908
2909# Try if CFLAGS works
2910save_CFLAGS="$CFLAGS"
2911cat >conftest.$ac_ext <<_ACEOF
2912/* confdefs.h.  */
2913_ACEOF
2914cat confdefs.h >>conftest.$ac_ext
2915cat >>conftest.$ac_ext <<_ACEOF
2916/* end confdefs.h.  */
2917
2918int
2919main ()
2920{
2921int i=0; i++;
2922  ;
2923  return 0;
2924}
2925_ACEOF
2926rm -f conftest.$ac_objext conftest$ac_exeext
2927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2928  (eval $ac_link) 2>conftest.er1
2929  ac_status=$?
2930  grep -v '^ *+' conftest.er1 >conftest.err
2931  rm -f conftest.er1
2932  cat conftest.err >&5
2933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934  (exit $ac_status); } &&
2935         { ac_try='test -z "$ac_c_werror_flag"
2936                         || test ! -s conftest.err'
2937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938  (eval $ac_try) 2>&5
2939  ac_status=$?
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); }; } &&
2942         { ac_try='test -s conftest$ac_exeext'
2943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944  (eval $ac_try) 2>&5
2945  ac_status=$?
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); }; }; then
2948  :
2949else
2950  echo "$as_me: failed program was:" >&5
2951sed 's/^/| /' conftest.$ac_ext >&5
2952
2953CFLAGS=
2954fi
2955rm -f conftest.err conftest.$ac_objext \
2956      conftest$ac_exeext conftest.$ac_ext
2957if test -z "$CFLAGS"; then
2958  { 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
2959echo "$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;}
2960  CFLAGS='-O'
2961  cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h.  */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h.  */
2967
2968int
2969main ()
2970{
2971int i=0; i++;
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976rm -f conftest.$ac_objext conftest$ac_exeext
2977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978  (eval $ac_link) 2>conftest.er1
2979  ac_status=$?
2980  grep -v '^ *+' conftest.er1 >conftest.err
2981  rm -f conftest.er1
2982  cat conftest.err >&5
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); } &&
2985         { ac_try='test -z "$ac_c_werror_flag"
2986                         || test ! -s conftest.err'
2987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988  (eval $ac_try) 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; } &&
2992         { ac_try='test -s conftest$ac_exeext'
2993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994  (eval $ac_try) 2>&5
2995  ac_status=$?
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); }; }; then
2998  :
2999else
3000  echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003CFLAGS=
3004fi
3005rm -f conftest.err conftest.$ac_objext \
3006      conftest$ac_exeext conftest.$ac_ext
3007  if test -z "$CFLAGS"; then
3008    { 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
3009echo "$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;}
3010  fi
3011fi
3012
3013{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3014echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3015
3016
3017if test x"$MPICC" = x; then :; else
3018  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3019echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3020  CC="$MPICC"
3021fi
3022
3023# Correct ADDLIBS initialization if we are using the MS compiler
3024case "$CC" in
3025  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3026    ADDLIBS=
3027    case $build in
3028  *-mingw*)
3029    if test "${LD+set}" = set; then :; else
3030      LD=link
3031    fi
3032    ;;
3033 esac
3034 case $enable_doscompile in
3035   msvc)
3036     if test "x${LD+set}" = xset; then :; else
3037       LD=link
3038     fi
3039     ;;
3040 esac
3041
3042    ;;
3043esac
3044
3045ac_ext=c
3046ac_cpp='$CPP $CPPFLAGS'
3047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050
3051
3052
3053# Get the name of the C++ compiler and appropriate compiler options
3054
3055 #Let's try if that overcomes configuration problem with VC++ 6.0
3056
3057ac_ext=cc
3058ac_cpp='$CXXCPP $CPPFLAGS'
3059ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3060ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3061ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3062
3063
3064
3065
3066
3067
3068
3069coin_has_cxx=yes
3070
3071save_cxxflags="$CXXFLAGS"
3072# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3073case $build in
3074  *-cygwin* | *-mingw*)
3075             if test "$enable_doscompile" = msvc ; then
3076               comps="icl cl"
3077             else
3078               comps="g++ cl"
3079             fi ;;
3080  *-*-solaris*)
3081             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3082  *-darwin*) comps="g++ c++ CC" ;;
3083          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3084esac
3085
3086# We delete the cached value, since the test might not have been
3087# performed with our choice of compilers earlier
3088$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3089# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3090ac_ext=cc
3091ac_cpp='$CXXCPP $CPPFLAGS'
3092ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3095if test -n "$ac_tool_prefix"; then
3096  for ac_prog in $CCC $comps
3097  do
3098    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3099set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3100echo "$as_me:$LINENO: checking for $ac_word" >&5
3101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3102if test "${ac_cv_prog_CXX+set}" = set; then
3103  echo $ECHO_N "(cached) $ECHO_C" >&6
3104else
3105  if test -n "$CXX"; then
3106  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3107else
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111  IFS=$as_save_IFS
3112  test -z "$as_dir" && as_dir=.
3113  for ac_exec_ext in '' $ac_executable_extensions; do
3114  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117    break 2
3118  fi
3119done
3120done
3121
3122fi
3123fi
3124CXX=$ac_cv_prog_CXX
3125if test -n "$CXX"; then
3126  echo "$as_me:$LINENO: result: $CXX" >&5
3127echo "${ECHO_T}$CXX" >&6
3128else
3129  echo "$as_me:$LINENO: result: no" >&5
3130echo "${ECHO_T}no" >&6
3131fi
3132
3133    test -n "$CXX" && break
3134  done
3135fi
3136if test -z "$CXX"; then
3137  ac_ct_CXX=$CXX
3138  for ac_prog in $CCC $comps
3139do
3140  # Extract the first word of "$ac_prog", so it can be a program name with args.
3141set dummy $ac_prog; ac_word=$2
3142echo "$as_me:$LINENO: checking for $ac_word" >&5
3143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3144if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3145  echo $ECHO_N "(cached) $ECHO_C" >&6
3146else
3147  if test -n "$ac_ct_CXX"; then
3148  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3149else
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153  IFS=$as_save_IFS
3154  test -z "$as_dir" && as_dir=.
3155  for ac_exec_ext in '' $ac_executable_extensions; do
3156  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157    ac_cv_prog_ac_ct_CXX="$ac_prog"
3158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3159    break 2
3160  fi
3161done
3162done
3163
3164fi
3165fi
3166ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3167if test -n "$ac_ct_CXX"; then
3168  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3169echo "${ECHO_T}$ac_ct_CXX" >&6
3170else
3171  echo "$as_me:$LINENO: result: no" >&5
3172echo "${ECHO_T}no" >&6
3173fi
3174
3175  test -n "$ac_ct_CXX" && break
3176done
3177test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3178
3179  CXX=$ac_ct_CXX
3180fi
3181
3182
3183# Provide some information about the compiler.
3184echo "$as_me:$LINENO:" \
3185     "checking for C++ compiler version" >&5
3186ac_compiler=`set X $ac_compile; echo $2`
3187{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3188  (eval $ac_compiler --version </dev/null >&5) 2>&5
3189  ac_status=$?
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); }
3192{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3193  (eval $ac_compiler -v </dev/null >&5) 2>&5
3194  ac_status=$?
3195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }
3197{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3198  (eval $ac_compiler -V </dev/null >&5) 2>&5
3199  ac_status=$?
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); }
3202
3203echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3204echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3205if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3206  echo $ECHO_N "(cached) $ECHO_C" >&6
3207else
3208  cat >conftest.$ac_ext <<_ACEOF
3209/* confdefs.h.  */
3210_ACEOF
3211cat confdefs.h >>conftest.$ac_ext
3212cat >>conftest.$ac_ext <<_ACEOF
3213/* end confdefs.h.  */
3214
3215int
3216main ()
3217{
3218#ifndef __GNUC__
3219       choke me
3220#endif
3221
3222  ;
3223  return 0;
3224}
3225_ACEOF
3226rm -f conftest.$ac_objext
3227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3228  (eval $ac_compile) 2>conftest.er1
3229  ac_status=$?
3230  grep -v '^ *+' conftest.er1 >conftest.err
3231  rm -f conftest.er1
3232  cat conftest.err >&5
3233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234  (exit $ac_status); } &&
3235         { ac_try='test -z "$ac_cxx_werror_flag"
3236                         || test ! -s conftest.err'
3237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3238  (eval $ac_try) 2>&5
3239  ac_status=$?
3240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3241  (exit $ac_status); }; } &&
3242         { ac_try='test -s conftest.$ac_objext'
3243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244  (eval $ac_try) 2>&5
3245  ac_status=$?
3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247  (exit $ac_status); }; }; then
3248  ac_compiler_gnu=yes
3249else
3250  echo "$as_me: failed program was:" >&5
3251sed 's/^/| /' conftest.$ac_ext >&5
3252
3253ac_compiler_gnu=no
3254fi
3255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3256ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3257
3258fi
3259echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3260echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3261GXX=`test $ac_compiler_gnu = yes && echo yes`
3262ac_test_CXXFLAGS=${CXXFLAGS+set}
3263ac_save_CXXFLAGS=$CXXFLAGS
3264CXXFLAGS="-g"
3265echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3266echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3267if test "${ac_cv_prog_cxx_g+set}" = set; then
3268  echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270  cat >conftest.$ac_ext <<_ACEOF
3271/* confdefs.h.  */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h.  */
3276
3277int
3278main ()
3279{
3280
3281  ;
3282  return 0;
3283}
3284_ACEOF
3285rm -f conftest.$ac_objext
3286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3287  (eval $ac_compile) 2>conftest.er1
3288  ac_status=$?
3289  grep -v '^ *+' conftest.er1 >conftest.err
3290  rm -f conftest.er1
3291  cat conftest.err >&5
3292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293  (exit $ac_status); } &&
3294         { ac_try='test -z "$ac_cxx_werror_flag"
3295                         || test ! -s conftest.err'
3296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297  (eval $ac_try) 2>&5
3298  ac_status=$?
3299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300  (exit $ac_status); }; } &&
3301         { ac_try='test -s conftest.$ac_objext'
3302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3303  (eval $ac_try) 2>&5
3304  ac_status=$?
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); }; }; then
3307  ac_cv_prog_cxx_g=yes
3308else
3309  echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
3312ac_cv_prog_cxx_g=no
3313fi
3314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3315fi
3316echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3317echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3318if test "$ac_test_CXXFLAGS" = set; then
3319  CXXFLAGS=$ac_save_CXXFLAGS
3320elif test $ac_cv_prog_cxx_g = yes; then
3321  if test "$GXX" = yes; then
3322    CXXFLAGS="-g -O2"
3323  else
3324    CXXFLAGS="-g"
3325  fi
3326else
3327  if test "$GXX" = yes; then
3328    CXXFLAGS="-O2"
3329  else
3330    CXXFLAGS=
3331  fi
3332fi
3333for ac_declaration in \
3334   '' \
3335   'extern "C" void std::exit (int) throw (); using std::exit;' \
3336   'extern "C" void std::exit (int); using std::exit;' \
3337   'extern "C" void exit (int) throw ();' \
3338   'extern "C" void exit (int);' \
3339   'void exit (int);'
3340do
3341  cat >conftest.$ac_ext <<_ACEOF
3342/* confdefs.h.  */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
3346/* end confdefs.h.  */
3347$ac_declaration
3348#include <stdlib.h>
3349int
3350main ()
3351{
3352exit (42);
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357rm -f conftest.$ac_objext
3358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3359  (eval $ac_compile) 2>conftest.er1
3360  ac_status=$?
3361  grep -v '^ *+' conftest.er1 >conftest.err
3362  rm -f conftest.er1
3363  cat conftest.err >&5
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); } &&
3366         { ac_try='test -z "$ac_cxx_werror_flag"
3367                         || test ! -s conftest.err'
3368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3369  (eval $ac_try) 2>&5
3370  ac_status=$?
3371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372  (exit $ac_status); }; } &&
3373         { ac_try='test -s conftest.$ac_objext'
3374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375  (eval $ac_try) 2>&5
3376  ac_status=$?
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); }; }; then
3379  :
3380else
3381  echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384continue
3385fi
3386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3387  cat >conftest.$ac_ext <<_ACEOF
3388/* confdefs.h.  */
3389_ACEOF
3390cat confdefs.h >>conftest.$ac_ext
3391cat >>conftest.$ac_ext <<_ACEOF
3392/* end confdefs.h.  */
3393$ac_declaration
3394int
3395main ()
3396{
3397exit (42);
3398  ;
3399  return 0;
3400}
3401_ACEOF
3402rm -f conftest.$ac_objext
3403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3404  (eval $ac_compile) 2>conftest.er1
3405  ac_status=$?
3406  grep -v '^ *+' conftest.er1 >conftest.err
3407  rm -f conftest.er1
3408  cat conftest.err >&5
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); } &&
3411         { ac_try='test -z "$ac_cxx_werror_flag"
3412                         || test ! -s conftest.err'
3413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414  (eval $ac_try) 2>&5
3415  ac_status=$?
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); }; } &&
3418         { ac_try='test -s conftest.$ac_objext'
3419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3420  (eval $ac_try) 2>&5
3421  ac_status=$?
3422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423  (exit $ac_status); }; }; then
3424  break
3425else
3426  echo "$as_me: failed program was:" >&5
3427sed 's/^/| /' conftest.$ac_ext >&5
3428
3429fi
3430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3431done
3432rm -f conftest*
3433if test -n "$ac_declaration"; then
3434  echo '#ifdef __cplusplus' >>confdefs.h
3435  echo $ac_declaration      >>confdefs.h
3436  echo '#endif'             >>confdefs.h
3437fi
3438
3439ac_ext=cc
3440ac_cpp='$CXXCPP $CPPFLAGS'
3441ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3444
3445
3446#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3447#thus, we test here whether $CXX is actually working
3448ac_ext=cc
3449ac_cpp='$CXXCPP $CPPFLAGS'
3450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3453
3454echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3455echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3456cat >conftest.$ac_ext <<_ACEOF
3457/* confdefs.h.  */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h.  */
3462
3463int
3464main ()
3465{
3466int i=0;
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471rm -f conftest.$ac_objext
3472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3473  (eval $ac_compile) 2>conftest.er1
3474  ac_status=$?
3475  grep -v '^ *+' conftest.er1 >conftest.err
3476  rm -f conftest.er1
3477  cat conftest.err >&5
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); } &&
3480         { ac_try='test -z "$ac_cxx_werror_flag"
3481                         || test ! -s conftest.err'
3482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483  (eval $ac_try) 2>&5
3484  ac_status=$?
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); }; } &&
3487         { ac_try='test -s conftest.$ac_objext'
3488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489  (eval $ac_try) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }; }; then
3493  echo "$as_me:$LINENO: result: yes" >&5
3494echo "${ECHO_T}yes" >&6
3495else
3496  echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
3499echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
3501   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3502echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3503   { (exit 1); exit 1; }; }
3504
3505fi
3506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507ac_ext=cc
3508ac_cpp='$CXXCPP $CPPFLAGS'
3509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3512
3513
3514# It seems that we need to cleanup something here for the Windows
3515case "$CXX" in
3516  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3517    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3518    mv confdefs.hh confdefs.h
3519    ;;
3520esac
3521
3522# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3523case "$CXX" in
3524  cl* | */cl* | CL* | */CL* )
3525    if test "$ac_cv_prog_cxx_g" = yes ; then
3526      ac_cv_prog_cxx_g=no
3527      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3528echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3529    fi ;;
3530esac
3531CXXFLAGS="$save_cxxflags"
3532
3533# Check if a project specific CXXFLAGS variable has been set
3534if test x$COIN_PRJCT != x; then
3535  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3536  if test x$coin_tmp = xset; then
3537    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3538  fi
3539fi
3540
3541if test x"$CXXFLAGS" = x; then
3542
3543# ToDo decide whether we want -DNDEBUG for optimization
3544  coin_add_cxxflags=
3545  coin_opt_cxxflags=
3546  coin_dbg_cxxflags=
3547  coin_warn_cxxflags=
3548
3549  if test "$GXX" = "yes"; then
3550    case "$CXX" in
3551      icpc* | */icpc*)
3552        ;;
3553      *)
3554# ToDo decide about unroll-loops
3555        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3556        coin_add_cxxflags="-pipe"
3557        coin_dbg_cxxflags="-g"
3558        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3559        case $build in
3560          *-darwin*)
3561            ;;
3562          *)
3563            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3564            ;;
3565        esac
3566
3567        case $enable_doscompile in
3568          mingw)
3569            CXXFLAGS="-mno-cygwin"
3570            cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h.  */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h.  */
3576
3577int
3578main ()
3579{
3580int i=0; i++;
3581  ;
3582  return 0;
3583}
3584_ACEOF
3585rm -f conftest.$ac_objext conftest$ac_exeext
3586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3587  (eval $ac_link) 2>conftest.er1
3588  ac_status=$?
3589  grep -v '^ *+' conftest.er1 >conftest.err
3590  rm -f conftest.er1
3591  cat conftest.err >&5
3592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593  (exit $ac_status); } &&
3594         { ac_try='test -z "$ac_cxx_werror_flag"
3595                         || test ! -s conftest.err'
3596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597  (eval $ac_try) 2>&5
3598  ac_status=$?
3599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600  (exit $ac_status); }; } &&
3601         { ac_try='test -s conftest$ac_exeext'
3602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603  (eval $ac_try) 2>&5
3604  ac_status=$?
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); }; }; then
3607  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3608else
3609  echo "$as_me: failed program was:" >&5
3610sed 's/^/| /' conftest.$ac_ext >&5
3611
3612fi
3613rm -f conftest.err conftest.$ac_objext \
3614      conftest$ac_exeext conftest.$ac_ext
3615            CXXFLAGS=
3616          ;;
3617        esac
3618    esac
3619  fi
3620
3621# Note that we do not need to cover GCC in the following tests.
3622
3623  if test -z "$coin_opt_cxxflags"; then
3624    case $build in
3625      *-cygwin* | *-mingw*)
3626        case "$CXX" in
3627          cl* | */cl* | CL* | */CL*)
3628            # The MT and MTd options are mutually exclusive
3629            coin_opt_cxxflags='-MT -O2'
3630            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3631            coin_dbg_cxxflags='-MTd'
3632            ;;
3633          icl* | */icl* | ICL* | */ICL*)
3634            # The MT and MTd options are mutually exclusive
3635            coin_opt_cxxflags='-MT -Ox'
3636            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3637            coin_dbg_cxxflags='-MTd -debug'
3638            ;;
3639        esac
3640        ;;
3641      *-linux-*)
3642        case "$CXX" in
3643          icpc* | */icpc*)
3644            coin_opt_cxxflags="-O3 -ip -mp1"
3645            coin_add_cxxflags=""
3646            coin_dbg_cxxflags="-g"
3647            # Check if -i_dynamic is necessary (for new glibc library)
3648            CXXFLAGS=
3649            cat >conftest.$ac_ext <<_ACEOF
3650/* confdefs.h.  */
3651_ACEOF
3652cat confdefs.h >>conftest.$ac_ext
3653cat >>conftest.$ac_ext <<_ACEOF
3654/* end confdefs.h.  */
3655
3656int
3657main ()
3658{
3659int i=0; i++;
3660  ;
3661  return 0;
3662}
3663_ACEOF
3664rm -f conftest.$ac_objext conftest$ac_exeext
3665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3666  (eval $ac_link) 2>conftest.er1
3667  ac_status=$?
3668  grep -v '^ *+' conftest.er1 >conftest.err
3669  rm -f conftest.er1
3670  cat conftest.err >&5
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); } &&
3673         { ac_try='test -z "$ac_cxx_werror_flag"
3674                         || test ! -s conftest.err'
3675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676  (eval $ac_try) 2>&5
3677  ac_status=$?
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); }; } &&
3680         { ac_try='test -s conftest$ac_exeext'
3681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682  (eval $ac_try) 2>&5
3683  ac_status=$?
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); }; }; then
3686  :
3687else
3688  echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3692fi
3693rm -f conftest.err conftest.$ac_objext \
3694      conftest$ac_exeext conftest.$ac_ext
3695            ;;
3696          pgCC* | */pgCC*)
3697            coin_opt_cxxflags="-fast"
3698            coin_add_cxxflags="-Kieee -pc 64"
3699            coin_dbg_cxxflags="-g"
3700            ;;
3701        esac
3702        ;;
3703      *-ibm-*)
3704        case "$CXX" in
3705          xlC* | */xlC* | mpxlC* | */mpxlC*)
3706            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3707            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3708            coin_dbg_cxxflags="-g"
3709            ;;
3710        esac
3711        ;;
3712      *-hp-*)
3713        case "$CXX" in
3714          aCC* | */aCC* )
3715            coin_opt_cxxflags="-O"
3716            coin_add_cxxflags="-AA"
3717            coin_dbg_cxxflags="-g"
3718            ;;
3719        esac
3720        ;;
3721      *-*-solaris*)
3722          coin_opt_cxxflags="-O4"
3723          coin_dbg_cxxflags="-g"
3724        ;;
3725    esac
3726  fi
3727
3728# Generic flag settings. If these don't work, add a case above.
3729
3730  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3731    coin_dbg_cxxflags="-g"
3732  fi
3733
3734  if test -z "$coin_opt_cxxflags"; then
3735    # Try if -O option works if nothing else is set
3736    CXXFLAGS=-O
3737    cat >conftest.$ac_ext <<_ACEOF
3738/* confdefs.h.  */
3739_ACEOF
3740cat confdefs.h >>conftest.$ac_ext
3741cat >>conftest.$ac_ext <<_ACEOF
3742/* end confdefs.h.  */
3743
3744int
3745main ()
3746{
3747int i=0; i++;
3748  ;
3749  return 0;
3750}
3751_ACEOF
3752rm -f conftest.$ac_objext conftest$ac_exeext
3753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3754  (eval $ac_link) 2>conftest.er1
3755  ac_status=$?
3756  grep -v '^ *+' conftest.er1 >conftest.err
3757  rm -f conftest.er1
3758  cat conftest.err >&5
3759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760  (exit $ac_status); } &&
3761         { ac_try='test -z "$ac_cxx_werror_flag"
3762                         || test ! -s conftest.err'
3763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764  (eval $ac_try) 2>&5
3765  ac_status=$?
3766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767  (exit $ac_status); }; } &&
3768         { ac_try='test -s conftest$ac_exeext'
3769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770  (eval $ac_try) 2>&5
3771  ac_status=$?
3772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773  (exit $ac_status); }; }; then
3774  coin_opt_cxxflags="-O"
3775else
3776  echo "$as_me: failed program was:" >&5
3777sed 's/^/| /' conftest.$ac_ext >&5
3778
3779fi
3780rm -f conftest.err conftest.$ac_objext \
3781      conftest$ac_exeext conftest.$ac_ext
3782  fi
3783
3784  # if PM doesn't want the warning messages, take them out
3785  if test x"$coin_skip_warn_cxxflags" = xyes; then
3786    coin_warn_cxxflags=
3787  fi
3788
3789# Do final setup of flags based on values determined above.
3790
3791  if test x${DBG_CXXFLAGS+set} != xset; then
3792    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3793  fi
3794  if test x${OPT_CXXFLAGS+set} != xset; then
3795    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3796  fi
3797
3798  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3799  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3800
3801  if test "$coin_debug_compile" = "true"; then
3802    CXXFLAGS="$DBG_CXXFLAGS"
3803  else
3804    CXXFLAGS="$OPT_CXXFLAGS"
3805  fi
3806
3807# Handle the case where CXXFLAGS was set externally.
3808else
3809  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3810  if test x${DBG_CXXFLAGS+set} != xset; then
3811    DBG_CXXFLAGS="$CXXFLAGS"
3812  fi
3813  if test x${OPT_CXXFLAGS+set} != xset; then
3814    OPT_CXXFLAGS="$CXXFLAGS"
3815  fi
3816fi
3817
3818# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3819
3820case "$CXXFLAGS" in
3821  *-mno-cygwin*)
3822    if test x${CPPFLAGS+set} != xset ; then
3823      CPPFLAGS="-mno-cygwin"
3824    else
3825      case "$CPPFLAGS" in
3826        *-mno-cygwin*)
3827          ;;
3828        *)
3829          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3830          ;;
3831      esac
3832    fi ;;
3833esac
3834
3835# Try if CXXFLAGS works
3836save_CXXFLAGS="$CXXFLAGS"
3837cat >conftest.$ac_ext <<_ACEOF
3838/* confdefs.h.  */
3839_ACEOF
3840cat confdefs.h >>conftest.$ac_ext
3841cat >>conftest.$ac_ext <<_ACEOF
3842/* end confdefs.h.  */
3843
3844int
3845main ()
3846{
3847int i=0; i++;
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852rm -f conftest.$ac_objext conftest$ac_exeext
3853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3854  (eval $ac_link) 2>conftest.er1
3855  ac_status=$?
3856  grep -v '^ *+' conftest.er1 >conftest.err
3857  rm -f conftest.er1
3858  cat conftest.err >&5
3859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860  (exit $ac_status); } &&
3861         { ac_try='test -z "$ac_cxx_werror_flag"
3862                         || test ! -s conftest.err'
3863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864  (eval $ac_try) 2>&5
3865  ac_status=$?
3866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867  (exit $ac_status); }; } &&
3868         { ac_try='test -s conftest$ac_exeext'
3869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870  (eval $ac_try) 2>&5
3871  ac_status=$?
3872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873  (exit $ac_status); }; }; then
3874  :
3875else
3876  echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879CXXFLAGS=
3880fi
3881rm -f conftest.err conftest.$ac_objext \
3882      conftest$ac_exeext conftest.$ac_ext
3883if test -z "$CXXFLAGS"; then
3884  { 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
3885echo "$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;}
3886  CXXFLAGS='-O'
3887  cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h.  */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h.  */
3893
3894int
3895main ()
3896{
3897int i=0; i++;
3898  ;
3899  return 0;
3900}
3901_ACEOF
3902rm -f conftest.$ac_objext conftest$ac_exeext
3903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3904  (eval $ac_link) 2>conftest.er1
3905  ac_status=$?
3906  grep -v '^ *+' conftest.er1 >conftest.err
3907  rm -f conftest.er1
3908  cat conftest.err >&5
3909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910  (exit $ac_status); } &&
3911         { ac_try='test -z "$ac_cxx_werror_flag"
3912                         || test ! -s conftest.err'
3913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914  (eval $ac_try) 2>&5
3915  ac_status=$?
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); }; } &&
3918         { ac_try='test -s conftest$ac_exeext'
3919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920  (eval $ac_try) 2>&5
3921  ac_status=$?
3922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923  (exit $ac_status); }; }; then
3924  :
3925else
3926  echo "$as_me: failed program was:" >&5
3927sed 's/^/| /' conftest.$ac_ext >&5
3928
3929CXXFLAGS=
3930fi
3931rm -f conftest.err conftest.$ac_objext \
3932      conftest$ac_exeext conftest.$ac_ext
3933  if test -z "$CXXFLAGS"; then
3934    { 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
3935echo "$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;}
3936  fi
3937fi
3938
3939{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3940echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3941
3942
3943if test x"$MPICXX" = x; then :; else
3944  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3945echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3946  CXX="$MPICXX"
3947fi
3948
3949case "$CXX" in
3950  cl* | */cl* | CL* | */CL* )
3951    case $build in
3952  *-mingw*)
3953    if test "${LD+set}" = set; then :; else
3954      LD=link
3955    fi
3956    ;;
3957 esac
3958 case $enable_doscompile in
3959   msvc)
3960     if test "x${LD+set}" = xset; then :; else
3961       LD=link
3962     fi
3963     ;;
3964 esac
3965
3966    ;;
3967esac
3968
3969ac_ext=c
3970ac_cpp='$CPP $CPPFLAGS'
3971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976
3977# Get the name of the Fortran compiler and appropriate compiler options
3978case $build in
3979  *-cygwin* | *-mingw*)
3980     if test "$enable_doscompile" = msvc ; then
3981       coin_f77_comps="ifort fl32 compile_f2c"
3982     else
3983       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3984     fi ;;
3985  *-*-solaris*)
3986     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3987  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3988 esac
3989
3990
3991
3992
3993
3994
3995ac_ext=f
3996ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3997ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3999
4000
4001
4002
4003
4004
4005coin_has_f77=yes
4006
4007save_fflags="$FFLAGS"
4008
4009# We delete the cached value, since the test might not have been
4010# performed with our choice of compilers earlier
4011$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4012
4013# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4014# coin_f77_comps to see if there's a program that matches one of the names.
4015# If there's no such program, F77 = unavailable. If we match the name,
4016# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4017# compiler.
4018# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4019
4020
4021{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4022echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4023for ac_prog in $coin_f77_comps
4024do
4025  # Extract the first word of "$ac_prog", so it can be a program name with args.
4026set dummy $ac_prog; ac_word=$2
4027echo "$as_me:$LINENO: checking for $ac_word" >&5
4028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4029if test "${ac_cv_prog_F77+set}" = set; then
4030  echo $ECHO_N "(cached) $ECHO_C" >&6
4031else
4032  if test -n "$F77"; then
4033  ac_cv_prog_F77="$F77" # Let the user override the test.
4034else
4035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036for as_dir in $PATH
4037do
4038  IFS=$as_save_IFS
4039  test -z "$as_dir" && as_dir=.
4040  for ac_exec_ext in '' $ac_executable_extensions; do
4041  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042    ac_cv_prog_F77="$ac_prog"
4043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044    break 2
4045  fi
4046done
4047done
4048
4049fi
4050fi
4051F77=$ac_cv_prog_F77
4052if test -n "$F77"; then
4053  echo "$as_me:$LINENO: result: $F77" >&5
4054echo "${ECHO_T}$F77" >&6
4055else
4056  echo "$as_me:$LINENO: result: no" >&5
4057echo "${ECHO_T}no" >&6
4058fi
4059
4060  test -n "$F77" && break
4061done
4062test -n "$F77" || F77="unavailable"
4063
4064
4065if test "$F77" != "unavailable" ; then
4066  ac_ext=f
4067ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4068ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4070if test -n "$ac_tool_prefix"; then
4071  for ac_prog in $coin_f77_comps
4072  do
4073    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4074set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4075echo "$as_me:$LINENO: checking for $ac_word" >&5
4076echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077if test "${ac_cv_prog_F77+set}" = set; then
4078  echo $ECHO_N "(cached) $ECHO_C" >&6
4079else
4080  if test -n "$F77"; then
4081  ac_cv_prog_F77="$F77" # Let the user override the test.
4082else
4083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084for as_dir in $PATH
4085do
4086  IFS=$as_save_IFS
4087  test -z "$as_dir" && as_dir=.
4088  for ac_exec_ext in '' $ac_executable_extensions; do
4089  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4091    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4092    break 2
4093  fi
4094done
4095done
4096
4097fi
4098fi
4099F77=$ac_cv_prog_F77
4100if test -n "$F77"; then
4101  echo "$as_me:$LINENO: result: $F77" >&5
4102echo "${ECHO_T}$F77" >&6
4103else
4104  echo "$as_me:$LINENO: result: no" >&5
4105echo "${ECHO_T}no" >&6
4106fi
4107
4108    test -n "$F77" && break
4109  done
4110fi
4111if test -z "$F77"; then
4112  ac_ct_F77=$F77
4113  for ac_prog in $coin_f77_comps
4114do
4115  # Extract the first word of "$ac_prog", so it can be a program name with args.
4116set dummy $ac_prog; ac_word=$2
4117echo "$as_me:$LINENO: checking for $ac_word" >&5
4118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4120  echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122  if test -n "$ac_ct_F77"; then
4123  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4124else
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128  IFS=$as_save_IFS
4129  test -z "$as_dir" && as_dir=.
4130  for ac_exec_ext in '' $ac_executable_extensions; do
4131  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132    ac_cv_prog_ac_ct_F77="$ac_prog"
4133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134    break 2
4135  fi
4136done
4137done
4138
4139fi
4140fi
4141ac_ct_F77=$ac_cv_prog_ac_ct_F77
4142if test -n "$ac_ct_F77"; then
4143  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4144echo "${ECHO_T}$ac_ct_F77" >&6
4145else
4146  echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6
4148fi
4149
4150  test -n "$ac_ct_F77" && break
4151done
4152
4153  F77=$ac_ct_F77
4154fi
4155
4156
4157# Provide some information about the compiler.
4158echo "$as_me:4158:" \
4159     "checking for Fortran 77 compiler version" >&5
4160ac_compiler=`set X $ac_compile; echo $2`
4161{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4162  (eval $ac_compiler --version </dev/null >&5) 2>&5
4163  ac_status=$?
4164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165  (exit $ac_status); }
4166{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4167  (eval $ac_compiler -v </dev/null >&5) 2>&5
4168  ac_status=$?
4169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170  (exit $ac_status); }
4171{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4172  (eval $ac_compiler -V </dev/null >&5) 2>&5
4173  ac_status=$?
4174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175  (exit $ac_status); }
4176rm -f a.out
4177
4178# If we don't use `.F' as extension, the preprocessor is not run on the
4179# input file.  (Note that this only needs to work for GNU compilers.)
4180ac_save_ext=$ac_ext
4181ac_ext=F
4182echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4183echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4184if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4185  echo $ECHO_N "(cached) $ECHO_C" >&6
4186else
4187  cat >conftest.$ac_ext <<_ACEOF
4188      program main
4189#ifndef __GNUC__
4190       choke me
4191#endif
4192
4193      end
4194_ACEOF
4195rm -f conftest.$ac_objext
4196if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197  (eval $ac_compile) 2>conftest.er1
4198  ac_status=$?
4199  grep -v '^ *+' conftest.er1 >conftest.err
4200  rm -f conftest.er1
4201  cat conftest.err >&5
4202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203  (exit $ac_status); } &&
4204         { ac_try='test -z "$ac_f77_werror_flag"
4205                         || test ! -s conftest.err'
4206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4207  (eval $ac_try) 2>&5
4208  ac_status=$?
4209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210  (exit $ac_status); }; } &&
4211         { ac_try='test -s conftest.$ac_objext'
4212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213  (eval $ac_try) 2>&5
4214  ac_status=$?
4215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216  (exit $ac_status); }; }; then
4217  ac_compiler_gnu=yes
4218else
4219  echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222ac_compiler_gnu=no
4223fi
4224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4225ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4226
4227fi
4228echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4229echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4230ac_ext=$ac_save_ext
4231ac_test_FFLAGS=${FFLAGS+set}
4232ac_save_FFLAGS=$FFLAGS
4233FFLAGS=
4234echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4235echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4236if test "${ac_cv_prog_f77_g+set}" = set; then
4237  echo $ECHO_N "(cached) $ECHO_C" >&6
4238else
4239  FFLAGS=-g
4240cat >conftest.$ac_ext <<_ACEOF
4241      program main
4242
4243      end
4244_ACEOF
4245rm -f conftest.$ac_objext
4246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4247  (eval $ac_compile) 2>conftest.er1
4248  ac_status=$?
4249  grep -v '^ *+' conftest.er1 >conftest.err
4250  rm -f conftest.er1
4251  cat conftest.err >&5
4252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253  (exit $ac_status); } &&
4254         { ac_try='test -z "$ac_f77_werror_flag"
4255                         || test ! -s conftest.err'
4256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257  (eval $ac_try) 2>&5
4258  ac_status=$?
4259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260  (exit $ac_status); }; } &&
4261         { ac_try='test -s conftest.$ac_objext'
4262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263  (eval $ac_try) 2>&5
4264  ac_status=$?
4265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266  (exit $ac_status); }; }; then
4267  ac_cv_prog_f77_g=yes
4268else
4269  echo "$as_me: failed program was:" >&5
4270sed 's/^/| /' conftest.$ac_ext >&5
4271
4272ac_cv_prog_f77_g=no
4273fi
4274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4275
4276fi
4277echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4278echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4279if test "$ac_test_FFLAGS" = set; then
4280  FFLAGS=$ac_save_FFLAGS
4281elif test $ac_cv_prog_f77_g = yes; then
4282  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4283    FFLAGS="-g -O2"
4284  else
4285    FFLAGS="-g"
4286  fi
4287else
4288  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4289    FFLAGS="-O2"
4290  else
4291    FFLAGS=
4292  fi
4293fi
4294
4295G77=`test $ac_compiler_gnu = yes && echo yes`
4296ac_ext=f
4297ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4298ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4300
4301else
4302  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4303echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4304fi
4305
4306FFLAGS="$save_fflags"
4307
4308# Check if a project specific FFLAGS variable has been set
4309if test x$COIN_PRJCT != x; then
4310  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4311  if test x$coin_tmp = xset; then
4312    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4313  fi
4314fi
4315
4316if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4317
4318  coin_add_fflags=
4319  coin_opt_fflags=
4320  coin_dbg_fflags=
4321  coin_warn_fflags=
4322
4323  if test "$G77" = "yes"; then
4324    coin_opt_fflags="-O3 -fomit-frame-pointer"
4325    coin_add_fflags="-pipe"
4326    coin_dbg_fflags="-g"
4327    case $enable_doscompile in
4328      mingw)
4329        FFLAGS="-mno-cygwin"
4330        cat >conftest.$ac_ext <<_ACEOF
4331      program main
4332      write(*,*) 'Hello world'
4333      end
4334_ACEOF
4335rm -f conftest.$ac_objext conftest$ac_exeext
4336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4337  (eval $ac_link) 2>conftest.er1
4338  ac_status=$?
4339  grep -v '^ *+' conftest.er1 >conftest.err
4340  rm -f conftest.er1
4341  cat conftest.err >&5
4342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343  (exit $ac_status); } &&
4344         { ac_try='test -z "$ac_f77_werror_flag"
4345                         || test ! -s conftest.err'
4346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4347  (eval $ac_try) 2>&5
4348  ac_status=$?
4349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350  (exit $ac_status); }; } &&
4351         { ac_try='test -s conftest$ac_exeext'
4352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353  (eval $ac_try) 2>&5
4354  ac_status=$?
4355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356  (exit $ac_status); }; }; then
4357  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4358else
4359  echo "$as_me: failed program was:" >&5
4360sed 's/^/| /' conftest.$ac_ext >&5
4361
4362fi
4363rm -f conftest.err conftest.$ac_objext \
4364      conftest$ac_exeext conftest.$ac_ext
4365        FFLAGS=
4366      ;;
4367    esac
4368  else
4369    case $build in
4370      *-cygwin* | *-mingw*)
4371        case $F77 in
4372          ifort* | */ifort* | IFORT* | */IFORT* )
4373            coin_opt_fflags='-MT -O3'
4374            coin_add_fflags='-fpp -nologo'
4375            coin_dbg_fflags='-MTd -debug'
4376          ;;
4377          compile_f2c*)
4378            coin_opt_fflags='-MT -O2'
4379            coin_add_fflags='-nologo -wd4996'
4380            coin_dbg_fflags='-MTd'
4381          ;;
4382        esac
4383        ;;
4384      *-linux-*)
4385        case $F77 in
4386          ifc* | */ifc* | ifort* | */ifort*)
4387            coin_opt_fflags="-O3 -ip"
4388            coin_add_fflags="-cm -w90 -w95"
4389            coin_dbg_fflags="-g -CA -CB -CS"
4390            # Check if -i_dynamic is necessary (for new glibc library)
4391            FFLAGS=
4392            cat >conftest.$ac_ext <<_ACEOF
4393      program main
4394      write(*,*) 'Hello world'
4395      end
4396_ACEOF
4397rm -f conftest.$ac_objext conftest$ac_exeext
4398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4399  (eval $ac_link) 2>conftest.er1
4400  ac_status=$?
4401  grep -v '^ *+' conftest.er1 >conftest.err
4402  rm -f conftest.er1
4403  cat conftest.err >&5
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); } &&
4406         { ac_try='test -z "$ac_f77_werror_flag"
4407                         || test ! -s conftest.err'
4408  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409  (eval $ac_try) 2>&5
4410  ac_status=$?
4411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412  (exit $ac_status); }; } &&
4413         { ac_try='test -s conftest$ac_exeext'
4414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415  (eval $ac_try) 2>&5
4416  ac_status=$?
4417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418  (exit $ac_status); }; }; then
4419  :
4420else
4421  echo "$as_me: failed program was:" >&5
4422sed 's/^/| /' conftest.$ac_ext >&5
4423
4424coin_add_fflags="-i_dynamic $coin_add_fflags"
4425fi
4426rm -f conftest.err conftest.$ac_objext \
4427      conftest$ac_exeext conftest.$ac_ext
4428            ;;
4429          pgf77* | */pgf77* | pgf90* | */pgf90*)
4430            coin_opt_fflags="-fast"
4431            coin_add_fflags="-Kieee -pc 64"
4432            coin_dbg_fflags="-g"
4433          ;;
4434        esac
4435        ;;
4436      *-ibm-*)
4437        case "$F77" in
4438          xlf* | */xlf* | mpxlf* | */mpxlf* )
4439            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4440            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4441            coin_dbg_fflags="-g -C"
4442            ;;
4443        esac
4444        ;;
4445      *-hp-*)
4446        coin_opt_fflags="+O3"
4447        coin_add_fflags="+U77"
4448        coin_dbg_fflags="-C -g"
4449        ;;
4450      *-*-solaris*)
4451        coin_opt_fflags="-O4"
4452        coin_dbg_fflags="-g"
4453        ;;
4454      *-sgi-*)
4455        coin_opt_fflags="-O5 -OPT:Olimit=0"
4456        coin_dbg_fflags="-g"
4457        ;;
4458    esac
4459  fi
4460
4461  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4462    coin_dbg_fflags="-g"
4463  fi
4464
4465  if test -z "$coin_opt_fflags"; then
4466    # Try if -O option works if nothing else is set
4467    FFLAGS=-O
4468    cat >conftest.$ac_ext <<_ACEOF
4469      program main
4470      integer i
4471      end
4472_ACEOF
4473rm -f conftest.$ac_objext conftest$ac_exeext
4474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4475  (eval $ac_link) 2>conftest.er1
4476  ac_status=$?
4477  grep -v '^ *+' conftest.er1 >conftest.err
4478  rm -f conftest.er1
4479  cat conftest.err >&5
4480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481  (exit $ac_status); } &&
4482         { ac_try='test -z "$ac_f77_werror_flag"
4483                         || test ! -s conftest.err'
4484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485  (eval $ac_try) 2>&5
4486  ac_status=$?
4487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488  (exit $ac_status); }; } &&
4489         { ac_try='test -s conftest$ac_exeext'
4490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4491  (eval $ac_try) 2>&5
4492  ac_status=$?
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); }; }; then
4495  coin_opt_fflags="-O"
4496else
4497  echo "$as_me: failed program was:" >&5
4498sed 's/^/| /' conftest.$ac_ext >&5
4499
4500fi
4501rm -f conftest.err conftest.$ac_objext \
4502      conftest$ac_exeext conftest.$ac_ext
4503  fi
4504
4505  # if PM doesn't want the warning messages, take them out
4506  if test x"$coin_skip_warn_fflags" = xyes; then
4507    coin_warn_fflags=
4508  fi
4509
4510  if test x${DBG_FFLAGS+set} != xset; then
4511    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4512  fi
4513  if test x${OPT_FFLAGS+set} != xset; then
4514    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4515  fi
4516
4517  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4518  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4519
4520  if test "$coin_debug_compile" = "true"; then
4521    FFLAGS="$DBG_FFLAGS"
4522  else
4523    FFLAGS="$OPT_FFLAGS"
4524  fi
4525else
4526  FFLAGS="$FFLAGS $ADD_FFLAGS"
4527  if test x${DBG_FFLAGS+set} != xset; then
4528    DBG_FFLAGS="$FFLAGS"
4529  fi
4530  if test x${OPT_FFLAGS+set} != xset; then
4531    OPT_FFLAGS="$FFLAGS"
4532  fi
4533fi
4534
4535# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4536case "$FFLAGS" in
4537  *-mno-cygwin*)
4538    if test x${CPPFLAGS+set} != xset ; then
4539      CPPFLAGS="-mno-cygwin"
4540    else
4541      case "$CPPFLAGS" in
4542        *-mno-cygwin*)
4543          ;;
4544        *)
4545          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4546          ;;
4547      esac
4548    fi ;;
4549esac
4550
4551# Try if FFLAGS works
4552if test "$F77" != "unavailable" ; then
4553  cat >conftest.$ac_ext <<_ACEOF
4554      program main
4555      integer i
4556      end
4557_ACEOF
4558rm -f conftest.$ac_objext conftest$ac_exeext
4559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4560  (eval $ac_link) 2>conftest.er1
4561  ac_status=$?
4562  grep -v '^ *+' conftest.er1 >conftest.err
4563  rm -f conftest.er1
4564  cat conftest.err >&5
4565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566  (exit $ac_status); } &&
4567         { ac_try='test -z "$ac_f77_werror_flag"
4568                         || test ! -s conftest.err'
4569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570  (eval $ac_try) 2>&5
4571  ac_status=$?
4572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573  (exit $ac_status); }; } &&
4574         { ac_try='test -s conftest$ac_exeext'
4575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576  (eval $ac_try) 2>&5
4577  ac_status=$?
4578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579  (exit $ac_status); }; }; then
4580  :
4581else
4582  echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
4584
4585FFLAGS=
4586fi
4587rm -f conftest.err conftest.$ac_objext \
4588      conftest$ac_exeext conftest.$ac_ext
4589  if test -z "$FFLAGS"; then
4590    { 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
4591echo "$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;}
4592    FFLAGS='-O'
4593    cat >conftest.$ac_ext <<_ACEOF
4594      program main
4595      integer i
4596      end
4597_ACEOF
4598rm -f conftest.$ac_objext conftest$ac_exeext
4599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600  (eval $ac_link) 2>conftest.er1
4601  ac_status=$?
4602  grep -v '^ *+' conftest.er1 >conftest.err
4603  rm -f conftest.er1
4604  cat conftest.err >&5
4605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606  (exit $ac_status); } &&
4607         { ac_try='test -z "$ac_f77_werror_flag"
4608                         || test ! -s conftest.err'
4609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610  (eval $ac_try) 2>&5
4611  ac_status=$?
4612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613  (exit $ac_status); }; } &&
4614         { ac_try='test -s conftest$ac_exeext'
4615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616  (eval $ac_try) 2>&5
4617  ac_status=$?
4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); }; }; then
4620  :
4621else
4622  echo "$as_me: failed program was:" >&5
4623sed 's/^/| /' conftest.$ac_ext >&5
4624
4625FFLAGS=
4626fi
4627rm -f conftest.err conftest.$ac_objext \
4628      conftest$ac_exeext conftest.$ac_ext
4629    if test -z "$FFLAGS"; then
4630      { 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
4631echo "$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;}
4632    fi
4633  fi
4634fi
4635
4636{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4637echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4638
4639
4640if test x"$MPIF77" = x; then :; else
4641  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4642echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4643  F77="$MPIF77"
4644fi
4645
4646case "$F77" in
4647  ifort* | */ifort* | IFORT* | */IFORT*)
4648    case $build in
4649  *-mingw*)
4650    if test "${LD+set}" = set; then :; else
4651      LD=link
4652    fi
4653    ;;
4654 esac
4655 case $enable_doscompile in
4656   msvc)
4657     if test "x${LD+set}" = xset; then :; else
4658       LD=link
4659     fi
4660     ;;
4661 esac
4662
4663    ;;
4664esac
4665
4666ac_ext=c
4667ac_cpp='$CPP $CPPFLAGS'
4668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671
4672
4673
4674# Initialize automake and libtool
4675# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4676{
4677
4678
4679
4680# START
4681
4682# Test if force_shared has been set
4683if test "x" = xforce_shared; then
4684  if test x$enable_shared = xno; then
4685    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4686echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4687   { (exit 1); exit 1; }; }
4688  fi
4689  enable_shared=yes;
4690else
4691  # On Cygwin and AIX, building DLLs doesn't work
4692  case $build in
4693    *-cygwin*)
4694      coin_disable_shared=yes
4695      platform=Cygwin
4696    ;;
4697    *-aix*)
4698      coin_disable_shared=yes
4699      platform=AIX
4700    ;;
4701    *-mingw*)
4702      coin_disable_shared=yes
4703      platform="Msys"
4704#      case "$CXX" in
4705#        cl*)
4706#          coin_disable_shared=yes
4707#          platform="Msys with cl"
4708#      ;;
4709#      esac
4710    ;;
4711  esac
4712fi
4713if test x"$coin_disable_shared" = xyes; then
4714  if test x"$enable_shared" = xyes; then
4715    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4716echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4717  fi
4718  enable_shared=no
4719fi
4720# By default, we only want the shared objects to be compiled
4721# Check whether --enable-static or --disable-static was given.
4722if test "${enable_static+set}" = set; then
4723  enableval="$enable_static"
4724  p=${PACKAGE-default}
4725    case $enableval in
4726    yes) enable_static=yes ;;
4727    no) enable_static=no ;;
4728    *)
4729     enable_static=no
4730      # Look at the argument we got.  We use all the common list separators.
4731      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4732      for pkg in $enableval; do
4733        IFS="$lt_save_ifs"
4734        if test "X$pkg" = "X$p"; then
4735          enable_static=yes
4736        fi
4737      done
4738      IFS="$lt_save_ifs"
4739      ;;
4740    esac
4741else
4742  enable_static=no
4743fi;
4744
4745
4746
4747
4748# Initialize automake
4749echo "$as_me:$LINENO: checking for egrep" >&5
4750echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4751if test "${ac_cv_prog_egrep+set}" = set; then
4752  echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4755    then ac_cv_prog_egrep='grep -E'
4756    else ac_cv_prog_egrep='egrep'
4757    fi
4758fi
4759echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4760echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4761 EGREP=$ac_cv_prog_egrep
4762
4763
4764am__api_version="1.9"
4765# Find a good install program.  We prefer a C program (faster),
4766# so one script is as good as another.  But avoid the broken or
4767# incompatible versions:
4768# SysV /etc/install, /usr/sbin/install
4769# SunOS /usr/etc/install
4770# IRIX /sbin/install
4771# AIX /bin/install
4772# AmigaOS /C/install, which installs bootblocks on floppy discs
4773# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4774# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4775# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4776# OS/2's system install, which has a completely different semantic
4777# ./install, which can be erroneously created by make from ./install.sh.
4778echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4779echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4780if test -z "$INSTALL"; then
4781if test "${ac_cv_path_install+set}" = set; then
4782  echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787  IFS=$as_save_IFS
4788  test -z "$as_dir" && as_dir=.
4789  # Account for people who put trailing slashes in PATH elements.
4790case $as_dir/ in
4791  ./ | .// | /cC/* | \
4792  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4793  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4794  /usr/ucb/* ) ;;
4795  *)
4796    # OSF1 and SCO ODT 3.0 have their own names for install.
4797    # Don't use installbsd from OSF since it installs stuff as root
4798    # by default.
4799    for ac_prog in ginstall scoinst install; do
4800      for ac_exec_ext in '' $ac_executable_extensions; do
4801        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4802          if test $ac_prog = install &&
4803            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4804            # AIX install.  It has an incompatible calling convention.
4805            :
4806          elif test $ac_prog = install &&
4807            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4808            # program-specific install script used by HP pwplus--don't use.
4809            :
4810          else
4811            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4812            break 3
4813          fi
4814        fi
4815      done
4816    done
4817    ;;
4818esac
4819done
4820
4821
4822fi
4823  if test "${ac_cv_path_install+set}" = set; then
4824    INSTALL=$ac_cv_path_install
4825  else
4826    # As a last resort, use the slow shell script.  We don't cache a
4827    # path for INSTALL within a source directory, because that will
4828    # break other packages using the cache if that directory is
4829    # removed, or if the path is relative.
4830    INSTALL=$ac_install_sh
4831  fi
4832fi
4833echo "$as_me:$LINENO: result: $INSTALL" >&5
4834echo "${ECHO_T}$INSTALL" >&6
4835
4836# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4837# It thinks the first close brace ends the variable substitution.
4838test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4839
4840test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4841
4842test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4843
4844echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4845echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4846# Just in case
4847sleep 1
4848echo timestamp > conftest.file
4849# Do `set' in a subshell so we don't clobber the current shell's
4850# arguments.  Must try -L first in case configure is actually a
4851# symlink; some systems play weird games with the mod time of symlinks
4852# (eg FreeBSD returns the mod time of the symlink's containing
4853# directory).
4854if (
4855   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4856   if test "$*" = "X"; then
4857      # -L didn't work.
4858      set X `ls -t $srcdir/configure conftest.file`
4859   fi
4860   rm -f conftest.file
4861   if test "$*" != "X $srcdir/configure conftest.file" \
4862      && test "$*" != "X conftest.file $srcdir/configure"; then
4863
4864      # If neither matched, then we have a broken ls.  This can happen
4865      # if, for instance, CONFIG_SHELL is bash and it inherits a
4866      # broken ls alias from the environment.  This has actually
4867      # happened.  Such a system could not be considered "sane".
4868      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4869alias in your environment" >&5
4870echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4871alias in your environment" >&2;}
4872   { (exit 1); exit 1; }; }
4873   fi
4874
4875   test "$2" = conftest.file
4876   )
4877then
4878   # Ok.
4879   :
4880else
4881   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4882Check your system clock" >&5
4883echo "$as_me: error: newly created file is older than distributed files!
4884Check your system clock" >&2;}
4885   { (exit 1); exit 1; }; }
4886fi
4887echo "$as_me:$LINENO: result: yes" >&5
4888echo "${ECHO_T}yes" >&6
4889test "$program_prefix" != NONE &&
4890  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4891# Use a double $ so make ignores it.
4892test "$program_suffix" != NONE &&
4893  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4894# Double any \ or $.  echo might interpret backslashes.
4895# By default was `s,x,x', remove it if useless.
4896cat <<\_ACEOF >conftest.sed
4897s/[\\$]/&&/g;s/;s,x,x,$//
4898_ACEOF
4899program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4900rm conftest.sed
4901
4902# expand $ac_aux_dir to an absolute path
4903am_aux_dir=`cd $ac_aux_dir && pwd`
4904
4905test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4906# Use eval to expand $SHELL
4907if eval "$MISSING --run true"; then
4908  am_missing_run="$MISSING --run "
4909else
4910  am_missing_run=
4911  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4912echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4913fi
4914
4915if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4916  # We used to keeping the `.' as first argument, in order to
4917  # allow $(mkdir_p) to be used without argument.  As in
4918  #   $(mkdir_p) $(somedir)
4919  # where $(somedir) is conditionally defined.  However this is wrong
4920  # for two reasons:
4921  #  1. if the package is installed by a user who cannot write `.'
4922  #     make install will fail,
4923  #  2. the above comment should most certainly read
4924  #     $(mkdir_p) $(DESTDIR)$(somedir)
4925  #     so it does not work when $(somedir) is undefined and
4926  #     $(DESTDIR) is not.
4927  #  To support the latter case, we have to write
4928  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4929  #  so the `.' trick is pointless.
4930  mkdir_p='mkdir -p --'
4931else
4932  # On NextStep and OpenStep, the `mkdir' command does not
4933  # recognize any option.  It will interpret all options as
4934  # directories to create, and then abort because `.' already
4935  # exists.
4936  for d in ./-p ./--version;
4937  do
4938    test -d $d && rmdir $d
4939  done
4940  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4941  if test -f "$ac_aux_dir/mkinstalldirs"; then
4942    mkdir_p='$(mkinstalldirs)'
4943  else
4944    mkdir_p='$(install_sh) -d'
4945  fi
4946fi
4947
4948for ac_prog in gawk mawk nawk awk
4949do
4950  # Extract the first word of "$ac_prog", so it can be a program name with args.
4951set dummy $ac_prog; ac_word=$2
4952echo "$as_me:$LINENO: checking for $ac_word" >&5
4953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4954if test "${ac_cv_prog_AWK+set}" = set; then
4955  echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957  if test -n "$AWK"; then
4958  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4959else
4960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961for as_dir in $PATH
4962do
4963  IFS=$as_save_IFS
4964  test -z "$as_dir" && as_dir=.
4965  for ac_exec_ext in '' $ac_executable_extensions; do
4966  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967    ac_cv_prog_AWK="$ac_prog"
4968    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969    break 2
4970  fi
4971done
4972done
4973
4974fi
4975fi
4976AWK=$ac_cv_prog_AWK
4977if test -n "$AWK"; then
4978  echo "$as_me:$LINENO: result: $AWK" >&5
4979echo "${ECHO_T}$AWK" >&6
4980else
4981  echo "$as_me:$LINENO: result: no" >&5
4982echo "${ECHO_T}no" >&6
4983fi
4984
4985  test -n "$AWK" && break
4986done
4987
4988echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4989echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4990set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4991if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4992  echo $ECHO_N "(cached) $ECHO_C" >&6
4993else
4994  cat >conftest.make <<\_ACEOF
4995all:
4996        @echo 'ac_maketemp="$(MAKE)"'
4997_ACEOF
4998# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4999eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5000if test -n "$ac_maketemp"; then
5001  eval ac_cv_prog_make_${ac_make}_set=yes
5002else
5003  eval ac_cv_prog_make_${ac_make}_set=no
5004fi
5005rm -f conftest.make
5006fi
5007if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5008  echo "$as_me:$LINENO: result: yes" >&5
5009echo "${ECHO_T}yes" >&6
5010  SET_MAKE=
5011else
5012  echo "$as_me:$LINENO: result: no" >&5
5013echo "${ECHO_T}no" >&6
5014  SET_MAKE="MAKE=${MAKE-make}"
5015fi
5016
5017rm -rf .tst 2>/dev/null
5018mkdir .tst 2>/dev/null
5019if test -d .tst; then
5020  am__leading_dot=.
5021else
5022  am__leading_dot=_
5023fi
5024rmdir .tst 2>/dev/null
5025
5026DEPDIR="${am__leading_dot}deps"
5027
5028          ac_config_commands="$ac_config_commands depfiles"
5029
5030
5031am_make=${MAKE-make}
5032cat > confinc << 'END'
5033am__doit:
5034        @echo done
5035.PHONY: am__doit
5036END
5037# If we don't find an include directive, just comment out the code.
5038echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5039echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5040am__include="#"
5041am__quote=
5042_am_result=none
5043# First try GNU make style include.
5044echo "include confinc" > confmf
5045# We grep out `Entering directory' and `Leaving directory'
5046# messages which can occur if `w' ends up in MAKEFLAGS.
5047# In particular we don't look at `^make:' because GNU make might
5048# be invoked under some other name (usually "gmake"), in which
5049# case it prints its new name instead of `make'.
5050if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5051   am__include=include
5052   am__quote=
5053   _am_result=GNU
5054fi
5055# Now try BSD make style include.
5056if test "$am__include" = "#"; then
5057   echo '.include "confinc"' > confmf
5058   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5059      am__include=.include
5060      am__quote="\""
5061      _am_result=BSD
5062   fi
5063fi
5064
5065
5066echo "$as_me:$LINENO: result: $_am_result" >&5
5067echo "${ECHO_T}$_am_result" >&6
5068rm -f confinc confmf
5069
5070# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5071if test "${enable_dependency_tracking+set}" = set; then
5072  enableval="$enable_dependency_tracking"
5073
5074fi;
5075if test "x$enable_dependency_tracking" != xno; then
5076  am_depcomp="$ac_aux_dir/depcomp"
5077  AMDEPBACKSLASH='\'
5078fi
5079
5080
5081if test "x$enable_dependency_tracking" != xno; then
5082  AMDEP_TRUE=
5083  AMDEP_FALSE='#'
5084else
5085  AMDEP_TRUE='#'
5086  AMDEP_FALSE=
5087fi
5088
5089
5090
5091
5092
5093# AC_MSG_NOTICE([Beginning automake initialisation.])
5094# Stuff for automake
5095# test to see if srcdir already configured
5096if test "`cd $srcdir && pwd`" != "`pwd`" &&
5097   test -f $srcdir/config.status; then
5098  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5099echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5100   { (exit 1); exit 1; }; }
5101fi
5102
5103# test whether we have cygpath
5104if test -z "$CYGPATH_W"; then
5105  if (cygpath --version) >/dev/null 2>/dev/null; then
5106    CYGPATH_W='cygpath -w'
5107  else
5108    CYGPATH_W=echo
5109  fi
5110fi
5111
5112
5113# Define the identity of the package.
5114 PACKAGE='thirdpartyall'
5115 VERSION='0.0'
5116
5117
5118cat >>confdefs.h <<_ACEOF
5119#define PACKAGE "$PACKAGE"
5120_ACEOF
5121
5122
5123cat >>confdefs.h <<_ACEOF
5124#define VERSION "$VERSION"
5125_ACEOF
5126
5127# Some tools Automake needs.
5128
5129ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5130
5131
5132AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5133
5134
5135AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5136
5137
5138AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5139
5140
5141MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5142
5143install_sh=${install_sh-"$am_aux_dir/install-sh"}
5144
5145# Installed binaries are usually stripped using `strip' when the user
5146# run `make install-strip'.  However `strip' might not be the right
5147# tool to use in cross-compilation environments, therefore Automake
5148# will honor the `STRIP' environment variable to overrule this program.
5149if test "$cross_compiling" != no; then
5150  if test -n "$ac_tool_prefix"; then
5151  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5152set dummy ${ac_tool_prefix}strip; ac_word=$2
5153echo "$as_me:$LINENO: checking for $ac_word" >&5
5154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5155if test "${ac_cv_prog_STRIP+set}" = set; then
5156  echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
5158  if test -n "$STRIP"; then
5159  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164  IFS=$as_save_IFS
5165  test -z "$as_dir" && as_dir=.
5166  for ac_exec_ext in '' $ac_executable_extensions; do
5167  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5168    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5169    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170    break 2
5171  fi
5172done
5173done
5174
5175fi
5176fi
5177STRIP=$ac_cv_prog_STRIP
5178if test -n "$STRIP"; then
5179  echo "$as_me:$LINENO: result: $STRIP" >&5
5180echo "${ECHO_T}$STRIP" >&6
5181else
5182  echo "$as_me:$LINENO: result: no" >&5
5183echo "${ECHO_T}no" >&6
5184fi
5185
5186fi
5187if test -z "$ac_cv_prog_STRIP"; then
5188  ac_ct_STRIP=$STRIP
5189  # Extract the first word of "strip", so it can be a program name with args.
5190set dummy strip; ac_word=$2
5191echo "$as_me:$LINENO: checking for $ac_word" >&5
5192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5193if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5194  echo $ECHO_N "(cached) $ECHO_C" >&6
5195else
5196  if test -n "$ac_ct_STRIP"; then
5197  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5198else
5199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200for as_dir in $PATH
5201do
5202  IFS=$as_save_IFS
5203  test -z "$as_dir" && as_dir=.
5204  for ac_exec_ext in '' $ac_executable_extensions; do
5205  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5206    ac_cv_prog_ac_ct_STRIP="strip"
5207    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5208    break 2
5209  fi
5210done
5211done
5212
5213  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5214fi
5215fi
5216ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5217if test -n "$ac_ct_STRIP"; then
5218  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5219echo "${ECHO_T}$ac_ct_STRIP" >&6
5220else
5221  echo "$as_me:$LINENO: result: no" >&5
5222echo "${ECHO_T}no" >&6
5223fi
5224
5225  STRIP=$ac_ct_STRIP
5226else
5227  STRIP="$ac_cv_prog_STRIP"
5228fi
5229
5230fi
5231INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5232
5233# We need awk for the "check" target.  The system "awk" is bad on
5234# some platforms.
5235# Always define AMTAR for backward compatibility.
5236
5237AMTAR=${AMTAR-"${am_missing_run}tar"}
5238
5239am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5240
5241
5242
5243
5244depcc="$CC"   am_compiler_list=
5245
5246echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5247echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5248if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5249  echo $ECHO_N "(cached) $ECHO_C" >&6
5250else
5251  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5252  # We make a subdir and do the tests there.  Otherwise we can end up
5253  # making bogus files that we don't know about and never remove.  For
5254  # instance it was reported that on HP-UX the gcc test will end up
5255  # making a dummy file named `D' -- because `-MD' means `put the output
5256  # in D'.
5257  mkdir conftest.dir
5258  # Copy depcomp to subdir because otherwise we won't find it if we're
5259  # using a relative directory.
5260  cp "$am_depcomp" conftest.dir
5261  cd conftest.dir
5262  # We will build objects and dependencies in a subdirectory because
5263  # it helps to detect inapplicable dependency modes.  For instance
5264  # both Tru64's cc and ICC support -MD to output dependencies as a
5265  # side effect of compilation, but ICC will put the dependencies in
5266  # the current directory while Tru64 will put them in the object
5267  # directory.
5268  mkdir sub
5269
5270  am_cv_CC_dependencies_compiler_type=none
5271  if test "$am_compiler_list" = ""; then
5272     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5273  fi
5274  for depmode in $am_compiler_list; do
5275    # Setup a source with many dependencies, because some compilers
5276    # like to wrap large dependency lists on column 80 (with \), and
5277    # we should not choose a depcomp mode which is confused by this.
5278    #
5279    # We need to recreate these files for each test, as the compiler may
5280    # overwrite some of them when testing with obscure command lines.
5281    # This happens at least with the AIX C compiler.
5282    : > sub/conftest.c
5283    for i in 1 2 3 4 5 6; do
5284      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5285      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5286      # Solaris 8's {/usr,}/bin/sh.
5287      touch sub/conftst$i.h
5288    done
5289    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5290
5291    case $depmode in
5292    nosideeffect)
5293      # after this tag, mechanisms are not by side-effect, so they'll
5294      # only be used when explicitly requested
5295      if test "x$enable_dependency_tracking" = xyes; then
5296        continue
5297      else
5298        break
5299      fi
5300      ;;
5301    none) break ;;
5302    esac
5303    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5304    # mode.  It turns out that the SunPro C++ compiler does not properly
5305    # handle `-M -o', and we need to detect this.
5306    if depmode=$depmode \
5307       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5308       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5309       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5310         >/dev/null 2>conftest.err &&
5311       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5312       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5313       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5314      # icc doesn't choke on unknown options, it will just issue warnings
5315      # or remarks (even with -Werror).  So we grep stderr for any message
5316      # that says an option was ignored or not supported.
5317      # When given -MP, icc 7.0 and 7.1 complain thusly:
5318      #   icc: Command line warning: ignoring option '-M'; no argument required
5319      # The diagnosis changed in icc 8.0:
5320      #   icc: Command line remark: option '-MP' not supported
5321      if (grep 'ignoring option' conftest.err ||
5322          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5323        am_cv_CC_dependencies_compiler_type=$depmode
5324        break
5325      fi
5326    fi
5327  done
5328
5329  cd ..
5330  rm -rf conftest.dir
5331else
5332  am_cv_CC_dependencies_compiler_type=none
5333fi
5334
5335fi
5336echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5337echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5338CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5339
5340
5341
5342if
5343  test "x$enable_dependency_tracking" != xno \
5344  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5345  am__fastdepCC_TRUE=
5346  am__fastdepCC_FALSE='#'
5347else
5348  am__fastdepCC_TRUE='#'
5349  am__fastdepCC_FALSE=
5350fi
5351
5352
5353depcc="$CXX"  am_compiler_list=
5354
5355echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5356echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5357if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5358  echo $ECHO_N "(cached) $ECHO_C" >&6
5359else
5360  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5361  # We make a subdir and do the tests there.  Otherwise we can end up
5362  # making bogus files that we don't know about and never remove.  For
5363  # instance it was reported that on HP-UX the gcc test will end up
5364  # making a dummy file named `D' -- because `-MD' means `put the output
5365  # in D'.
5366  mkdir conftest.dir
5367  # Copy depcomp to subdir because otherwise we won't find it if we're
5368  # using a relative directory.
5369  cp "$am_depcomp" conftest.dir
5370  cd conftest.dir
5371  # We will build objects and dependencies in a subdirectory because
5372  # it helps to detect inapplicable dependency modes.  For instance
5373  # both Tru64's cc and ICC support -MD to output dependencies as a
5374  # side effect of compilation, but ICC will put the dependencies in
5375  # the current directory while Tru64 will put them in the object
5376  # directory.
5377  mkdir sub
5378
5379  am_cv_CXX_dependencies_compiler_type=none
5380  if test "$am_compiler_list" = ""; then
5381     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5382  fi
5383  for depmode in $am_compiler_list; do
5384    # Setup a source with many dependencies, because some compilers
5385    # like to wrap large dependency lists on column 80 (with \), and
5386    # we should not choose a depcomp mode which is confused by this.
5387    #
5388    # We need to recreate these files for each test, as the compiler may
5389    # overwrite some of them when testing with obscure command lines.
5390    # This happens at least with the AIX C compiler.
5391    : > sub/conftest.c
5392    for i in 1 2 3 4 5 6; do
5393      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5394      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5395      # Solaris 8's {/usr,}/bin/sh.
5396      touch sub/conftst$i.h
5397    done
5398    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5399
5400    case $depmode in
5401    nosideeffect)
5402      # after this tag, mechanisms are not by side-effect, so they'll
5403      # only be used when explicitly requested
5404      if test "x$enable_dependency_tracking" = xyes; then
5405        continue
5406      else
5407        break
5408      fi
5409      ;;
5410    none) break ;;
5411    esac
5412    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5413    # mode.  It turns out that the SunPro C++ compiler does not properly
5414    # handle `-M -o', and we need to detect this.
5415    if depmode=$depmode \
5416       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5417       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5418       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5419         >/dev/null 2>conftest.err &&
5420       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5421       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5422       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5423      # icc doesn't choke on unknown options, it will just issue warnings
5424      # or remarks (even with -Werror).  So we grep stderr for any message
5425      # that says an option was ignored or not supported.
5426      # When given -MP, icc 7.0 and 7.1 complain thusly:
5427      #   icc: Command line warning: ignoring option '-M'; no argument required
5428      # The diagnosis changed in icc 8.0:
5429      #   icc: Command line remark: option '-MP' not supported
5430      if (grep 'ignoring option' conftest.err ||
5431          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5432        am_cv_CXX_dependencies_compiler_type=$depmode
5433        break
5434      fi
5435    fi
5436  done
5437
5438  cd ..
5439  rm -rf conftest.dir
5440else
5441  am_cv_CXX_dependencies_compiler_type=none
5442fi
5443
5444fi
5445echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5446echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5447CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5448
5449
5450
5451if
5452  test "x$enable_dependency_tracking" != xno \
5453  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5454  am__fastdepCXX_TRUE=
5455  am__fastdepCXX_FALSE='#'
5456else
5457  am__fastdepCXX_TRUE='#'
5458  am__fastdepCXX_FALSE=
5459fi
5460
5461
5462
5463echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5464echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5465    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5466if test "${enable_maintainer_mode+set}" = set; then
5467  enableval="$enable_maintainer_mode"
5468  USE_MAINTAINER_MODE=$enableval
5469else
5470  USE_MAINTAINER_MODE=no
5471fi;
5472  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5473echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5474
5475
5476if test $USE_MAINTAINER_MODE = yes; then
5477  MAINTAINER_MODE_TRUE=
5478  MAINTAINER_MODE_FALSE='#'
5479else
5480  MAINTAINER_MODE_TRUE='#'
5481  MAINTAINER_MODE_FALSE=
5482fi
5483
5484  MAINT=$MAINTAINER_MODE_TRUE
5485
5486
5487
5488coin_have_externals=no
5489if test "$enable_maintainer_mode" = yes; then
5490
5491  # If maintainer mode is chosen, we make sure that the correct versions
5492  # of the tools are used, and that we know where libtool.m4 is (to
5493  # recreate acinclude.m4)
5494
5495
5496  LIBTOOLM4=
5497  # Normally, $HOME
5498  AUTOTOOLS_DFLT=$HOME
5499
5500  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5501echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5502if test "${ac_cv_use_correct_autotools+set}" = set; then
5503  echo $ECHO_N "(cached) $ECHO_C" >&6
5504else
5505  ac_cv_use_correct_autotools=check
5506fi
5507echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5508echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5509
5510  if test $ac_cv_use_correct_autotools = check; then
5511    ac_cv_use_correct_autotools=yes
5512    # Check if we have autoconf
5513    # Extract the first word of "autoconf", so it can be a program name with args.
5514set dummy autoconf; ac_word=$2
5515echo "$as_me:$LINENO: checking for $ac_word" >&5
5516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5517if test "${ac_cv_prog_have_autoconf+set}" = set; then
5518  echo $ECHO_N "(cached) $ECHO_C" >&6
5519else
5520  if test -n "$have_autoconf"; then
5521  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5522else
5523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH
5525do
5526  IFS=$as_save_IFS
5527  test -z "$as_dir" && as_dir=.
5528  for ac_exec_ext in '' $ac_executable_extensions; do
5529  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530    ac_cv_prog_have_autoconf="yes"
5531    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532    break 2
5533  fi
5534done
5535done
5536
5537  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5538fi
5539fi
5540have_autoconf=$ac_cv_prog_have_autoconf
5541if test -n "$have_autoconf"; then
5542  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5543echo "${ECHO_T}$have_autoconf" >&6
5544else
5545  echo "$as_me:$LINENO: result: no" >&5
5546echo "${ECHO_T}no" >&6
5547fi
5548
5549    if test $have_autoconf = no; then
5550      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5551echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5552   { (exit 1); exit 1; }; }
5553    fi
5554
5555    # Check whether autoconf is the correct version
5556    correct_version='2.59'
5557    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5558    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5559echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5560    autoconf --version > confauto.out 2>&1
5561    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5562      echo "$as_me:$LINENO: result: yes" >&5
5563echo "${ECHO_T}yes" >&6
5564    else
5565      rm -f confauto.out
5566      echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
5568      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5569echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5570   { (exit 1); exit 1; }; }
5571    fi
5572    rm -f confauto.out
5573
5574    # Check if the executable autoconf is picked up from the correct location
5575    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5576echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5577    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5578    autoconf_dir=`cd $autoconf_dir; pwd`
5579    if test x$AUTOTOOLS_DIR = x; then
5580      want_dir=$AUTOTOOLS_DFLT/bin
5581    else
5582      want_dir=$AUTOTOOLS_DIR/bin
5583    fi
5584    if test $autoconf_dir = `cd $want_dir; pwd`; then
5585      echo "$as_me:$LINENO: result: yes" >&5
5586echo "${ECHO_T}yes" >&6
5587    else
5588      rm -f confauto.out
5589      echo "$as_me:$LINENO: result: no" >&5
5590echo "${ECHO_T}no" >&6
5591      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5592echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5593   { (exit 1); exit 1; }; }
5594    fi
5595
5596    # Check if we have automake
5597    # Extract the first word of "automake", so it can be a program name with args.
5598set dummy automake; ac_word=$2
5599echo "$as_me:$LINENO: checking for $ac_word" >&5
5600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5601if test "${ac_cv_prog_have_automake+set}" = set; then
5602  echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604  if test -n "$have_automake"; then
5605  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610  IFS=$as_save_IFS
5611  test -z "$as_dir" && as_dir=.
5612  for ac_exec_ext in '' $ac_executable_extensions; do
5613  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614    ac_cv_prog_have_automake="yes"
5615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616    break 2
5617  fi
5618done
5619done
5620
5621  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5622fi
5623fi
5624have_automake=$ac_cv_prog_have_automake
5625if test -n "$have_automake"; then
5626  echo "$as_me:$LINENO: result: $have_automake" >&5
5627echo "${ECHO_T}$have_automake" >&6
5628else
5629  echo "$as_me:$LINENO: result: no" >&5
5630echo "${ECHO_T}no" >&6
5631fi
5632
5633    if test $have_automake = no; then
5634      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5635echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5636   { (exit 1); exit 1; }; }
5637    fi
5638
5639    # Check whether automake is the correct version
5640    correct_version='1.9.6'
5641    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5642    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5643echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5644    automake --version > confauto.out 2>&1
5645    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5646      echo "$as_me:$LINENO: result: yes" >&5
5647echo "${ECHO_T}yes" >&6
5648    else
5649      rm -f confauto.out
5650      echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6
5652      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5653echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5654   { (exit 1); exit 1; }; }
5655    fi
5656    rm -f confauto.out
5657
5658    # Check if the executable automake is picked up from the correct location
5659    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5660echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5661    automake_dir=`which automake | sed -e 's=/automake=='`
5662    automake_dir=`cd $automake_dir; pwd`
5663    if test x$AUTOTOOLS_DIR = x; then
5664      want_dir=$AUTOTOOLS_DFLT/bin
5665    else
5666      want_dir=$AUTOTOOLS_DIR/bin
5667    fi
5668    if test $automake_dir = `cd $want_dir; pwd`; then
5669      echo "$as_me:$LINENO: result: yes" >&5
5670echo "${ECHO_T}yes" >&6
5671    else
5672      rm -f confauto.out
5673      echo "$as_me:$LINENO: result: no" >&5
5674echo "${ECHO_T}no" >&6
5675      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5676echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5677   { (exit 1); exit 1; }; }
5678    fi
5679
5680    # Check if this is the correct version of libtool (with escaped dots)
5681    if test x$AUTOTOOLS_DIR = x; then
5682      want_dir=$AUTOTOOLS_DFLT/share
5683    else
5684      want_dir=$AUTOTOOLS_DIR/share
5685    fi
5686    correct_version='1.5.22'
5687    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5688    if test -r $want_dir/libtool/ltmain.sh; then
5689  have_ltmain=yes
5690  :
5691else
5692  have_ltmain=no
5693  :
5694fi
5695
5696    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5697echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5698    if test $have_ltmain = yes; then
5699    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5700        echo "$as_me:$LINENO: result: yes" >&5
5701echo "${ECHO_T}yes" >&6
5702      else
5703        echo "$as_me:$LINENO: result: no" >&5
5704echo "${ECHO_T}no" >&6
5705        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5706echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5707   { (exit 1); exit 1; }; }
5708      fi
5709    else
5710      echo "$as_me:$LINENO: result: no" >&5
5711echo "${ECHO_T}no" >&6
5712      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5713echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5714   { (exit 1); exit 1; }; }
5715    fi
5716  fi
5717
5718  # Check if we can find the libtool file
5719  if test x$AUTOTOOLS_DIR = x; then
5720    want_dir=$AUTOTOOLS_DFLT/share
5721  else
5722    want_dir=$AUTOTOOLS_DIR/share
5723  fi
5724  if test -r $want_dir/aclocal/libtool.m4; then
5725  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5726  :
5727else
5728  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5729echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5730   { (exit 1); exit 1; }; }
5731  :
5732fi
5733
5734
5735  # Check if we have an Externals file
5736  if test -r $srcdir/Externals; then
5737    coin_have_externals=yes
5738  fi
5739  # Check if subversion is installed and understands https
5740  # Extract the first word of "svn", so it can be a program name with args.
5741set dummy svn; ac_word=$2
5742echo "$as_me:$LINENO: checking for $ac_word" >&5
5743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5744if test "${ac_cv_prog_have_svn+set}" = set; then
5745  echo $ECHO_N "(cached) $ECHO_C" >&6
5746else
5747  if test -n "$have_svn"; then
5748  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5749else
5750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5751for as_dir in $PATH
5752do
5753  IFS=$as_save_IFS
5754  test -z "$as_dir" && as_dir=.
5755  for ac_exec_ext in '' $ac_executable_extensions; do
5756  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5757    ac_cv_prog_have_svn="yes"
5758    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5759    break 2
5760  fi
5761done
5762done
5763
5764  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5765fi
5766fi
5767have_svn=$ac_cv_prog_have_svn
5768if test -n "$have_svn"; then
5769  echo "$as_me:$LINENO: result: $have_svn" >&5
5770echo "${ECHO_T}$have_svn" >&6
5771else
5772  echo "$as_me:$LINENO: result: no" >&5
5773echo "${ECHO_T}no" >&6
5774fi
5775
5776  if test x$have_svn = xyes; then
5777    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5778echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5779if test "${ac_cv_svn_understands_https+set}" = set; then
5780  echo $ECHO_N "(cached) $ECHO_C" >&6
5781else
5782  svn --version > confauto.out 2>&1
5783                    if $EGREP https confauto.out >/dev/null 2>&1; then
5784                      ac_cv_svn_understands_https=yes
5785                    else
5786                      ac_cv_svn_understands_https=no
5787                      have_svn=no
5788                      ac_cv_prog_have_svn=no
5789                    fi
5790                    rm -f confauto.out
5791fi
5792echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5793echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5794  fi
5795
5796  # Find the location of the BuildTools directory
5797  BUILDTOOLSDIR=
5798  if test -r $srcdir/BuildTools/coin.m4; then
5799    BUILDTOOLSDIR=$srcdir/BuildTools
5800  else
5801    if test -r $srcdir/../BuildTools/coin.m4; then
5802      BUILDTOOLSDIR=$srcdir/../BuildTools
5803    else
5804      if test -r $srcdir/../../BuildTools/coin.m4; then
5805        BUILDTOOLSDIR=$srcdir/../../BuildTools
5806      else
5807        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5808echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5809   { (exit 1); exit 1; }; }
5810      fi
5811    fi
5812  fi
5813
5814
5815  # The following variable is set to the name of the directory where
5816  # the autotool scripts are located
5817
5818  AUX_DIR=$ac_aux_dir
5819fi
5820
5821# helpful variable for the base directory of this package
5822abs_source_dir=`cd $srcdir; pwd`
5823
5824
5825# Stuff for example Makefiles
5826if test x$prefix = xNONE; then
5827  full_prefix=$ac_default_prefix
5828else
5829  full_prefix=$prefix
5830fi
5831full_prefix=`cd $full_prefix ; pwd`
5832
5833abs_lib_dir=$full_prefix/lib
5834
5835abs_include_dir=$full_prefix/include
5836
5837abs_bin_dir=$full_prefix/bin
5838
5839
5840
5841if test $coin_have_externals = yes && test x$have_svn = xyes; then
5842  HAVE_EXTERNALS_TRUE=
5843  HAVE_EXTERNALS_FALSE='#'
5844else
5845  HAVE_EXTERNALS_TRUE='#'
5846  HAVE_EXTERNALS_FALSE=
5847fi
5848
5849
5850# AC_MSG_NOTICE([End automake initialisation.])
5851
5852
5853
5854LIBTOOL=
5855if test -r ../libtool; then
5856  coin_config_dir=..
5857  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5858fi
5859if test "x$LIBTOOL" = x; then
5860  if test -r ../../libtool; then
5861    coin_config_dir=../..
5862    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5863  fi
5864fi
5865
5866if test "x$LIBTOOL" = x; then
5867# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5868  # Stuff for libtool
5869  # Check whether --enable-shared or --disable-shared was given.
5870if test "${enable_shared+set}" = set; then
5871  enableval="$enable_shared"
5872  p=${PACKAGE-default}
5873    case $enableval in
5874    yes) enable_shared=yes ;;
5875    no) enable_shared=no ;;
5876    *)
5877      enable_shared=no
5878      # Look at the argument we got.  We use all the common list separators.
5879      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5880      for pkg in $enableval; do
5881        IFS="$lt_save_ifs"
5882        if test "X$pkg" = "X$p"; then
5883          enable_shared=yes
5884        fi
5885      done
5886      IFS="$lt_save_ifs"
5887      ;;
5888    esac
5889else
5890  enable_shared=yes
5891fi;
5892
5893# Check whether --enable-fast-install or --disable-fast-install was given.
5894if test "${enable_fast_install+set}" = set; then
5895  enableval="$enable_fast_install"
5896  p=${PACKAGE-default}
5897    case $enableval in
5898    yes) enable_fast_install=yes ;;
5899    no) enable_fast_install=no ;;
5900    *)
5901      enable_fast_install=no
5902      # Look at the argument we got.  We use all the common list separators.
5903      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5904      for pkg in $enableval; do
5905        IFS="$lt_save_ifs"
5906        if test "X$pkg" = "X$p"; then
5907          enable_fast_install=yes
5908        fi
5909      done
5910      IFS="$lt_save_ifs"
5911      ;;
5912    esac
5913else
5914  enable_fast_install=yes
5915fi;
5916
5917echo "$as_me:$LINENO: checking host system type" >&5
5918echo $ECHO_N "checking host system type... $ECHO_C" >&6
5919if test "${ac_cv_host+set}" = set; then
5920  echo $ECHO_N "(cached) $ECHO_C" >&6
5921else
5922  ac_cv_host_alias=$host_alias
5923test -z "$ac_cv_host_alias" &&
5924  ac_cv_host_alias=$ac_cv_build_alias
5925ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5926  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5927echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5928   { (exit 1); exit 1; }; }
5929
5930fi
5931echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5932echo "${ECHO_T}$ac_cv_host" >&6
5933host=$ac_cv_host
5934host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5935host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5936host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5937
5938
5939echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5940echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5941if test "${lt_cv_path_SED+set}" = set; then
5942  echo $ECHO_N "(cached) $ECHO_C" >&6
5943else
5944  # Loop through the user's path and test for sed and gsed.
5945# Then use that list of sed's as ones to test for truncation.
5946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5947for as_dir in $PATH
5948do
5949  IFS=$as_save_IFS
5950  test -z "$as_dir" && as_dir=.
5951  for lt_ac_prog in sed gsed; do
5952    for ac_exec_ext in '' $ac_executable_extensions; do
5953      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5954        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5955      fi
5956    done
5957  done
5958done
5959lt_ac_max=0
5960lt_ac_count=0
5961# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5962# along with /bin/sed that truncates output.
5963for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5964  test ! -f $lt_ac_sed && continue
5965  cat /dev/null > conftest.in
5966  lt_ac_count=0
5967  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5968  # Check for GNU sed and select it if it is found.
5969  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5970    lt_cv_path_SED=$lt_ac_sed
5971    break
5972  fi
5973  while true; do
5974    cat conftest.in conftest.in >conftest.tmp
5975    mv conftest.tmp conftest.in
5976    cp conftest.in conftest.nl
5977    echo >>conftest.nl
5978    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5979    cmp -s conftest.out conftest.nl || break
5980    # 10000 chars as input seems more than enough
5981    test $lt_ac_count -gt 10 && break
5982    lt_ac_count=`expr $lt_ac_count + 1`
5983    if test $lt_ac_count -gt $lt_ac_max; then
5984      lt_ac_max=$lt_ac_count
5985      lt_cv_path_SED=$lt_ac_sed
5986    fi
5987  done
5988done
5989
5990fi
5991
5992SED=$lt_cv_path_SED
5993echo "$as_me:$LINENO: result: $SED" >&5
5994echo "${ECHO_T}$SED" >&6
5995
5996
5997# Check whether --with-gnu-ld or --without-gnu-ld was given.
5998if test "${with_gnu_ld+set}" = set; then
5999  withval="$with_gnu_ld"
6000  test "$withval" = no || with_gnu_ld=yes
6001else
6002  with_gnu_ld=no
6003fi;
6004ac_prog=ld
6005if test "$GCC" = yes; then
6006  # Check if gcc -print-prog-name=ld gives a path.
6007  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6008echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6009  case $host in
6010  *-*-mingw*)
6011    # gcc leaves a trailing carriage return which upsets mingw
6012    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6013  *)
6014    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6015  esac
6016  case $ac_prog in
6017    # Accept absolute paths.
6018    [\\/]* | ?:[\\/]*)
6019      re_direlt='/[^/][^/]*/\.\./'
6020      # Canonicalize the pathname of ld
6021      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6022      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6023        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6024      done
6025      test -z "$LD" && LD="$ac_prog"
6026      ;;
6027  "")
6028    # If it fails, then pretend we aren't using GCC.
6029    ac_prog=ld
6030    ;;
6031  *)
6032    # If it is relative, then search for the first ld in PATH.
6033    with_gnu_ld=unknown
6034    ;;
6035  esac
6036elif test "$with_gnu_ld" = yes; then
6037  echo "$as_me:$LINENO: checking for GNU ld" >&5
6038echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6039else
6040  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6041echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6042fi
6043if test "${lt_cv_path_LD+set}" = set; then
6044  echo $ECHO_N "(cached) $ECHO_C" >&6
6045else
6046  if test -z "$LD"; then
6047  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6048  for ac_dir in $PATH; do
6049    IFS="$lt_save_ifs"
6050    test -z "$ac_dir" && ac_dir=.
6051    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6052      lt_cv_path_LD="$ac_dir/$ac_prog"
6053      # Check to see if the program is GNU ld.  I'd rather use --version,
6054      # but apparently some variants of GNU ld only accept -v.
6055      # Break only if it was the GNU/non-GNU ld that we prefer.
6056      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6057      *GNU* | *'with BFD'*)
6058        test "$with_gnu_ld" != no && break
6059        ;;
6060      *)
6061        test "$with_gnu_ld" != yes && break
6062        ;;
6063      esac
6064    fi
6065  done
6066  IFS="$lt_save_ifs"
6067else
6068  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6069fi
6070fi
6071
6072LD="$lt_cv_path_LD"
6073if test -n "$LD"; then
6074  echo "$as_me:$LINENO: result: $LD" >&5
6075echo "${ECHO_T}$LD" >&6
6076else
6077  echo "$as_me:$LINENO: result: no" >&5
6078echo "${ECHO_T}no" >&6
6079fi
6080test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6081echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6082   { (exit 1); exit 1; }; }
6083echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6084echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6085if test "${lt_cv_prog_gnu_ld+set}" = set; then
6086  echo $ECHO_N "(cached) $ECHO_C" >&6
6087else
6088  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6089case `$LD -v 2>&1 </dev/null` in
6090*GNU* | *'with BFD'*)
6091  lt_cv_prog_gnu_ld=yes
6092  ;;
6093*)
6094  lt_cv_prog_gnu_ld=no
6095  ;;
6096esac
6097fi
6098echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6099echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6100with_gnu_ld=$lt_cv_prog_gnu_ld
6101
6102
6103echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6104echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6105if test "${lt_cv_ld_reload_flag+set}" = set; then
6106  echo $ECHO_N "(cached) $ECHO_C" >&6
6107else
6108  lt_cv_ld_reload_flag='-r'
6109fi
6110echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6111echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6112reload_flag=$lt_cv_ld_reload_flag
6113case $reload_flag in
6114"" | " "*) ;;
6115*) reload_flag=" $reload_flag" ;;
6116esac
6117reload_cmds='$LD$reload_flag -o $output$reload_objs'
6118case $host_os in
6119  darwin*)
6120    if test "$GCC" = yes; then
6121      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6122    else
6123      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6124    fi
6125    ;;
6126esac
6127
6128echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6129echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6130if test "${lt_cv_path_NM+set}" = set; then
6131  echo $ECHO_N "(cached) $ECHO_C" >&6
6132else
6133  if test -n "$NM"; then
6134  # Let the user override the test.
6135  lt_cv_path_NM="$NM"
6136else
6137  lt_nm_to_check="${ac_tool_prefix}nm"
6138  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6139    lt_nm_to_check="$lt_nm_to_check nm"
6140  fi
6141  for lt_tmp_nm in $lt_nm_to_check; do
6142    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6143    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6144      IFS="$lt_save_ifs"
6145      test -z "$ac_dir" && ac_dir=.
6146      tmp_nm="$ac_dir/$lt_tmp_nm"
6147      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6148        # Check to see if the nm accepts a BSD-compat flag.
6149        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6150        #   nm: unknown option "B" ignored
6151        # Tru64's nm complains that /dev/null is an invalid object file
6152        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6153        */dev/null* | *'Invalid file or object type'*)
6154          lt_cv_path_NM="$tmp_nm -B"
6155          break
6156          ;;
6157        *)
6158          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6159          */dev/null*)
6160            lt_cv_path_NM="$tmp_nm -p"
6161            break
6162            ;;
6163          *)
6164            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6165            continue # so that we can try to find one that supports BSD flags
6166            ;;
6167          esac
6168          ;;
6169        esac
6170      fi
6171    done
6172    IFS="$lt_save_ifs"
6173  done
6174  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6175fi
6176fi
6177echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6178echo "${ECHO_T}$lt_cv_path_NM" >&6
6179NM="$lt_cv_path_NM"
6180
6181echo "$as_me:$LINENO: checking whether ln -s works" >&5
6182echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6183LN_S=$as_ln_s
6184if test "$LN_S" = "ln -s"; then
6185  echo "$as_me:$LINENO: result: yes" >&5
6186echo "${ECHO_T}yes" >&6
6187else
6188  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6189echo "${ECHO_T}no, using $LN_S" >&6
6190fi
6191
6192echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6193echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6194if test "${lt_cv_deplibs_check_method+set}" = set; then
6195  echo $ECHO_N "(cached) $ECHO_C" >&6
6196else
6197  lt_cv_file_magic_cmd='$MAGIC_CMD'
6198lt_cv_file_magic_test_file=
6199lt_cv_deplibs_check_method='unknown'
6200# Need to set the preceding variable on all platforms that support
6201# interlibrary dependencies.
6202# 'none' -- dependencies not supported.
6203# `unknown' -- same as none, but documents that we really don't know.
6204# 'pass_all' -- all dependencies passed with no checks.
6205# 'test_compile' -- check by making test program.
6206# 'file_magic [[regex]]' -- check by looking for files in library path
6207# which responds to the $file_magic_cmd with a given extended regex.
6208# If you have `file' or equivalent on your system and you're not sure
6209# whether `pass_all' will *always* work, you probably want this one.
6210
6211case $host_os in
6212aix4* | aix5*)
6213  lt_cv_deplibs_check_method=pass_all
6214  ;;
6215
6216beos*)
6217  lt_cv_deplibs_check_method=pass_all
6218  ;;
6219
6220bsdi[45]*)
6221  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6222  lt_cv_file_magic_cmd='/usr/bin/file -L'
6223  lt_cv_file_magic_test_file=/shlib/libc.so
6224  ;;
6225
6226cygwin*)
6227  # func_win32_libid is a shell function defined in ltmain.sh
6228  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6229  lt_cv_file_magic_cmd='func_win32_libid'
6230  ;;
6231
6232mingw* | pw32*)
6233  # Base MSYS/MinGW do not provide the 'file' command needed by
6234  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6235  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6236  lt_cv_file_magic_cmd='$OBJDUMP -f'
6237  ;;
6238
6239darwin* | rhapsody*)
6240  lt_cv_deplibs_check_method=pass_all
6241  ;;
6242
6243freebsd* | kfreebsd*-gnu | dragonfly*)
6244  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6245    case $host_cpu in
6246    i*86 )
6247      # Not sure whether the presence of OpenBSD here was a mistake.
6248      # Let's accept both of them until this is cleared up.
6249      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6250      lt_cv_file_magic_cmd=/usr/bin/file
6251      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6252      ;;
6253    esac
6254  else
6255    lt_cv_deplibs_check_method=pass_all
6256  fi
6257  ;;
6258
6259gnu*)
6260  lt_cv_deplibs_check_method=pass_all
6261  ;;
6262
6263hpux10.20* | hpux11*)
6264  lt_cv_file_magic_cmd=/usr/bin/file
6265  case $host_cpu in
6266  ia64*)
6267    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6268    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6269    ;;
6270  hppa*64*)
6271    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]'
6272    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6273    ;;
6274  *)
6275    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6276    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6277    ;;
6278  esac
6279  ;;
6280
6281interix3*)
6282  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6283  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6284  ;;
6285
6286irix5* | irix6* | nonstopux*)
6287  case $LD in
6288  *-32|*"-32 ") libmagic=32-bit;;
6289  *-n32|*"-n32 ") libmagic=N32;;
6290  *-64|*"-64 ") libmagic=64-bit;;
6291  *) libmagic=never-match;;
6292  esac
6293  lt_cv_deplibs_check_method=pass_all
6294  ;;
6295
6296# This must be Linux ELF.
6297linux*)
6298  lt_cv_deplibs_check_method=pass_all
6299  ;;
6300
6301netbsd*)
6302  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6303    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6304  else
6305    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6306  fi
6307  ;;
6308
6309newos6*)
6310  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6311  lt_cv_file_magic_cmd=/usr/bin/file
6312  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6313  ;;
6314
6315nto-qnx*)
6316  lt_cv_deplibs_check_method=unknown
6317  ;;
6318
6319openbsd*)
6320  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6321    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6322  else
6323    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6324  fi
6325  ;;
6326
6327osf3* | osf4* | osf5*)
6328  lt_cv_deplibs_check_method=pass_all
6329  ;;
6330
6331solaris*)
6332  lt_cv_deplibs_check_method=pass_all
6333  ;;
6334
6335sysv4 | sysv4.3*)
6336  case $host_vendor in
6337  motorola)
6338    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]'
6339    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6340    ;;
6341  ncr)
6342    lt_cv_deplibs_check_method=pass_all
6343    ;;
6344  sequent)
6345    lt_cv_file_magic_cmd='/bin/file'
6346    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6347    ;;
6348  sni)
6349    lt_cv_file_magic_cmd='/bin/file'
6350    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6351    lt_cv_file_magic_test_file=/lib/libc.so
6352    ;;
6353  siemens)
6354    lt_cv_deplibs_check_method=pass_all
6355    ;;
6356  pc)
6357    lt_cv_deplibs_check_method=pass_all
6358    ;;
6359  esac
6360  ;;
6361
6362sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6363  lt_cv_deplibs_check_method=pass_all
6364  ;;
6365esac
6366
6367fi
6368echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6369echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6370file_magic_cmd=$lt_cv_file_magic_cmd
6371deplibs_check_method=$lt_cv_deplibs_check_method
6372test -z "$deplibs_check_method" && deplibs_check_method=unknown
6373
6374
6375
6376
6377# If no C compiler was specified, use CC.
6378LTCC=${LTCC-"$CC"}
6379
6380# If no C compiler flags were specified, use CFLAGS.
6381LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6382
6383# Allow CC to be a program name with arguments.
6384compiler=$CC
6385
6386# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6387if test "${enable_libtool_lock+set}" = set; then
6388  enableval="$enable_libtool_lock"
6389
6390fi;
6391test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6392
6393# Some flags need to be propagated to the compiler or linker for good
6394# libtool support.
6395case $host in
6396ia64-*-hpux*)
6397  # Find out which ABI we are using.
6398  echo 'int i;' > conftest.$ac_ext
6399  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6400  (eval $ac_compile) 2>&5
6401  ac_status=$?
6402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403  (exit $ac_status); }; then
6404    case `/usr/bin/file conftest.$ac_objext` in
6405    *ELF-32*)
6406      HPUX_IA64_MODE="32"
6407      ;;
6408    *ELF-64*)
6409      HPUX_IA64_MODE="64"
6410      ;;
6411    esac
6412  fi
6413  rm -rf conftest*
6414  ;;
6415*-*-irix6*)
6416  # Find out which ABI we are using.
6417  echo '#line 6417 "configure"' > conftest.$ac_ext
6418  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6419  (eval $ac_compile) 2>&5
6420  ac_status=$?
6421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422  (exit $ac_status); }; then
6423   if test "$lt_cv_prog_gnu_ld" = yes; then
6424    case `/usr/bin/file conftest.$ac_objext` in
6425    *32-bit*)
6426      LD="${LD-ld} -melf32bsmip"
6427      ;;
6428    *N32*)
6429      LD="${LD-ld} -melf32bmipn32"
6430      ;;
6431    *64-bit*)
6432      LD="${LD-ld} -melf64bmip"
6433      ;;
6434    esac
6435   else
6436    case `/usr/bin/file conftest.$ac_objext` in
6437    *32-bit*)
6438      LD="${LD-ld} -32"
6439      ;;
6440    *N32*)
6441      LD="${LD-ld} -n32"
6442      ;;
6443    *64-bit*)
6444      LD="${LD-ld} -64"
6445      ;;
6446    esac
6447   fi
6448  fi
6449  rm -rf conftest*
6450  ;;
6451
6452x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6453  # Find out which ABI we are using.
6454  echo 'int i;' > conftest.$ac_ext
6455  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6456  (eval $ac_compile) 2>&5
6457  ac_status=$?
6458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459  (exit $ac_status); }; then
6460    case `/usr/bin/file conftest.o` in
6461    *32-bit*)
6462      case $host in
6463        x86_64-*linux*)
6464          LD="${LD-ld} -m elf_i386"
6465          ;;
6466        ppc64-*linux*|powerpc64-*linux*)
6467          LD="${LD-ld} -m elf32ppclinux"
6468          ;;
6469        s390x-*linux*)
6470          LD="${LD-ld} -m elf_s390"
6471          ;;
6472        sparc64-*linux*)
6473          LD="${LD-ld} -m elf32_sparc"
6474          ;;
6475      esac
6476      ;;
6477    *64-bit*)
6478      case $host in
6479        x86_64-*linux*)
6480          LD="${LD-ld} -m elf_x86_64"
6481          ;;
6482        ppc*-*linux*|powerpc*-*linux*)
6483          LD="${LD-ld} -m elf64ppc"
6484          ;;
6485        s390*-*linux*)
6486          LD="${LD-ld} -m elf64_s390"
6487          ;;
6488        sparc*-*linux*)
6489          LD="${LD-ld} -m elf64_sparc"
6490          ;;
6491      esac
6492      ;;
6493    esac
6494  fi
6495  rm -rf conftest*
6496  ;;
6497
6498*-*-sco3.2v5*)
6499  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6500  SAVE_CFLAGS="$CFLAGS"
6501  CFLAGS="$CFLAGS -belf"
6502  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6503echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6504if test "${lt_cv_cc_needs_belf+set}" = set; then
6505  echo $ECHO_N "(cached) $ECHO_C" >&6
6506else
6507  ac_ext=c
6508ac_cpp='$CPP $CPPFLAGS'
6509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6511ac_compiler_gnu=$ac_cv_c_compiler_gnu
6512
6513     cat >conftest.$ac_ext <<_ACEOF
6514/* confdefs.h.  */
6515_ACEOF
6516cat confdefs.h >>conftest.$ac_ext
6517cat >>conftest.$ac_ext <<_ACEOF
6518/* end confdefs.h.  */
6519
6520int
6521main ()
6522{
6523
6524  ;
6525  return 0;
6526}
6527_ACEOF
6528rm -f conftest.$ac_objext conftest$ac_exeext
6529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6530  (eval $ac_link) 2>conftest.er1
6531  ac_status=$?
6532  grep -v '^ *+' conftest.er1 >conftest.err
6533  rm -f conftest.er1
6534  cat conftest.err >&5
6535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536  (exit $ac_status); } &&
6537         { ac_try='test -z "$ac_c_werror_flag"
6538                         || test ! -s conftest.err'
6539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540  (eval $ac_try) 2>&5
6541  ac_status=$?
6542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543  (exit $ac_status); }; } &&
6544         { ac_try='test -s conftest$ac_exeext'
6545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546  (eval $ac_try) 2>&5
6547  ac_status=$?
6548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549  (exit $ac_status); }; }; then
6550  lt_cv_cc_needs_belf=yes
6551else
6552  echo "$as_me: failed program was:" >&5
6553sed 's/^/| /' conftest.$ac_ext >&5
6554
6555lt_cv_cc_needs_belf=no
6556fi
6557rm -f conftest.err conftest.$ac_objext \
6558      conftest$ac_exeext conftest.$ac_ext
6559     ac_ext=c
6560ac_cpp='$CPP $CPPFLAGS'
6561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564
6565fi
6566echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6567echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6568  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6569    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6570    CFLAGS="$SAVE_CFLAGS"
6571  fi
6572  ;;
6573sparc*-*solaris*)
6574  # Find out which ABI we are using.
6575  echo 'int i;' > conftest.$ac_ext
6576  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577  (eval $ac_compile) 2>&5
6578  ac_status=$?
6579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580  (exit $ac_status); }; then
6581    case `/usr/bin/file conftest.o` in
6582    *64-bit*)
6583      case $lt_cv_prog_gnu_ld in
6584      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6585      *)    LD="${LD-ld} -64" ;;
6586      esac
6587      ;;
6588    esac
6589  fi
6590  rm -rf conftest*
6591  ;;
6592
6593
6594esac
6595
6596need_locks="$enable_libtool_lock"
6597
6598
6599ac_ext=c
6600ac_cpp='$CPP $CPPFLAGS'
6601ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6602ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6603ac_compiler_gnu=$ac_cv_c_compiler_gnu
6604echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6605echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6606# On Suns, sometimes $CPP names a directory.
6607if test -n "$CPP" && test -d "$CPP"; then
6608  CPP=
6609fi
6610if test -z "$CPP"; then
6611  if test "${ac_cv_prog_CPP+set}" = set; then
6612  echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614      # Double quotes because CPP needs to be expanded
6615    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6616    do
6617      ac_preproc_ok=false
6618for ac_c_preproc_warn_flag in '' yes
6619do
6620  # Use a header file that comes with gcc, so configuring glibc
6621  # with a fresh cross-compiler works.
6622  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6623  # <limits.h> exists even on freestanding compilers.
6624  # On the NeXT, cc -E runs the code through the compiler's parser,
6625  # not just through cpp. "Syntax error" is here to catch this case.
6626  cat >conftest.$ac_ext <<_ACEOF
6627/* confdefs.h.  */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h.  */
6632#ifdef __STDC__
6633# include <limits.h>
6634#else
6635# include <assert.h>
6636#endif
6637                     Syntax error
6638_ACEOF
6639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6640  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6641  ac_status=$?
6642  grep -v '^ *+' conftest.er1 >conftest.err
6643  rm -f conftest.er1
6644  cat conftest.err >&5
6645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646  (exit $ac_status); } >/dev/null; then
6647  if test -s conftest.err; then
6648    ac_cpp_err=$ac_c_preproc_warn_flag
6649    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6650  else
6651    ac_cpp_err=
6652  fi
6653else
6654  ac_cpp_err=yes
6655fi
6656if test -z "$ac_cpp_err"; then
6657  :
6658else
6659  echo "$as_me: failed program was:" >&5
6660sed 's/^/| /' conftest.$ac_ext >&5
6661
6662  # Broken: fails on valid input.
6663continue
6664fi
6665rm -f conftest.err conftest.$ac_ext
6666
6667  # OK, works on sane cases.  Now check whether non-existent headers
6668  # can be detected and how.
6669  cat >conftest.$ac_ext <<_ACEOF
6670/* confdefs.h.  */
6671_ACEOF
6672cat confdefs.h >>conftest.$ac_ext
6673cat >>conftest.$ac_ext <<_ACEOF
6674/* end confdefs.h.  */
6675#include <ac_nonexistent.h>
6676_ACEOF
6677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6678  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6679  ac_status=$?
6680  grep -v '^ *+' conftest.er1 >conftest.err
6681  rm -f conftest.er1
6682  cat conftest.err >&5
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); } >/dev/null; then
6685  if test -s conftest.err; then
6686    ac_cpp_err=$ac_c_preproc_warn_flag
6687    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6688  else
6689    ac_cpp_err=
6690  fi
6691else
6692  ac_cpp_err=yes
6693fi
6694if test -z "$ac_cpp_err"; then
6695  # Broken: success on invalid input.
6696continue
6697else
6698  echo "$as_me: failed program was:" >&5
6699sed 's/^/| /' conftest.$ac_ext >&5
6700
6701  # Passes both tests.
6702ac_preproc_ok=:
6703break
6704fi
6705rm -f conftest.err conftest.$ac_ext
6706
6707done
6708# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6709rm -f conftest.err conftest.$ac_ext
6710if $ac_preproc_ok; then
6711  break
6712fi
6713
6714    done
6715    ac_cv_prog_CPP=$CPP
6716
6717fi
6718  CPP=$ac_cv_prog_CPP
6719else
6720  ac_cv_prog_CPP=$CPP
6721fi
6722echo "$as_me:$LINENO: result: $CPP" >&5
6723echo "${ECHO_T}$CPP" >&6
6724ac_preproc_ok=false
6725for ac_c_preproc_warn_flag in '' yes
6726do
6727  # Use a header file that comes with gcc, so configuring glibc
6728  # with a fresh cross-compiler works.
6729  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6730  # <limits.h> exists even on freestanding compilers.
6731  # On the NeXT, cc -E runs the code through the compiler's parser,
6732  # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
6740# include <limits.h>
6741#else
6742# include <assert.h>
6743#endif
6744                     Syntax error
6745_ACEOF
6746if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6747  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6748  ac_status=$?
6749  grep -v '^ *+' conftest.er1 >conftest.err
6750  rm -f conftest.er1
6751  cat conftest.err >&5
6752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753  (exit $ac_status); } >/dev/null; then
6754  if test -s conftest.err; then
6755    ac_cpp_err=$ac_c_preproc_warn_flag
6756    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6757  else
6758    ac_cpp_err=
6759  fi
6760else
6761  ac_cpp_err=yes
6762fi
6763if test -z "$ac_cpp_err"; then
6764  :
6765else
6766  echo "$as_me: failed program was:" >&5
6767sed 's/^/| /' conftest.$ac_ext >&5
6768
6769  # Broken: fails on valid input.
6770continue
6771fi
6772rm -f conftest.err conftest.$ac_ext
6773
6774  # OK, works on sane cases.  Now check whether non-existent headers
6775  # can be detected and how.
6776  cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h.  */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h.  */
6782#include <ac_nonexistent.h>
6783_ACEOF
6784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6785  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6786  ac_status=$?
6787  grep -v '^ *+' conftest.er1 >conftest.err
6788  rm -f conftest.er1
6789  cat conftest.err >&5
6790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791  (exit $ac_status); } >/dev/null; then
6792  if test -s conftest.err; then
6793    ac_cpp_err=$ac_c_preproc_warn_flag
6794    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6795  else
6796    ac_cpp_err=
6797  fi
6798else
6799  ac_cpp_err=yes
6800fi
6801if test -z "$ac_cpp_err"; then
6802  # Broken: success on invalid input.
6803continue
6804else
6805  echo "$as_me: failed program was:" >&5
6806sed 's/^/| /' conftest.$ac_ext >&5
6807
6808  # Passes both tests.
6809ac_preproc_ok=:
6810break
6811fi
6812rm -f conftest.err conftest.$ac_ext
6813
6814done
6815# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6816rm -f conftest.err conftest.$ac_ext
6817if $ac_preproc_ok; then
6818  :
6819else
6820  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6821See \`config.log' for more details." >&5
6822echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6823See \`config.log' for more details." >&2;}
6824   { (exit 1); exit 1; }; }
6825fi
6826
6827ac_ext=c
6828ac_cpp='$CPP $CPPFLAGS'
6829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832
6833
6834echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6835echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6836if test "${ac_cv_header_stdc+set}" = set; then
6837  echo $ECHO_N "(cached) $ECHO_C" >&6
6838else
6839  cat >conftest.$ac_ext <<_ACEOF
6840/* confdefs.h.  */
6841_ACEOF
6842cat confdefs.h >>conftest.$ac_ext
6843cat >>conftest.$ac_ext <<_ACEOF
6844/* end confdefs.h.  */
6845#include <stdlib.h>
6846#include <stdarg.h>
6847#include <string.h>
6848#include <float.h>
6849
6850int
6851main ()
6852{
6853
6854  ;
6855  return 0;
6856}
6857_ACEOF
6858rm -f conftest.$ac_objext
6859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6860  (eval $ac_compile) 2>conftest.er1
6861  ac_status=$?
6862  grep -v '^ *+' conftest.er1 >conftest.err
6863  rm -f conftest.er1
6864  cat conftest.err >&5
6865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866  (exit $ac_status); } &&
6867         { ac_try='test -z "$ac_c_werror_flag"
6868                         || test ! -s conftest.err'
6869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6870  (eval $ac_try) 2>&5
6871  ac_status=$?
6872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873  (exit $ac_status); }; } &&
6874         { ac_try='test -s conftest.$ac_objext'
6875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6876  (eval $ac_try) 2>&5
6877  ac_status=$?
6878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879  (exit $ac_status); }; }; then
6880  ac_cv_header_stdc=yes
6881else
6882  echo "$as_me: failed program was:" >&5
6883sed 's/^/| /' conftest.$ac_ext >&5
6884
6885ac_cv_header_stdc=no
6886fi
6887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6888
6889if test $ac_cv_header_stdc = yes; then
6890  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6891  cat >conftest.$ac_ext <<_ACEOF
6892/* confdefs.h.  */
6893_ACEOF
6894cat confdefs.h >>conftest.$ac_ext
6895cat >>conftest.$ac_ext <<_ACEOF
6896/* end confdefs.h.  */
6897#include <string.h>
6898
6899_ACEOF
6900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6901  $EGREP "memchr" >/dev/null 2>&1; then
6902  :
6903else
6904  ac_cv_header_stdc=no
6905fi
6906rm -f conftest*
6907
6908fi
6909
6910if test $ac_cv_header_stdc = yes; then
6911  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6912  cat >conftest.$ac_ext <<_ACEOF
6913/* confdefs.h.  */
6914_ACEOF
6915cat confdefs.h >>conftest.$ac_ext
6916cat >>conftest.$ac_ext <<_ACEOF
6917/* end confdefs.h.  */
6918#include <stdlib.h>
6919
6920_ACEOF
6921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6922  $EGREP "free" >/dev/null 2>&1; then
6923  :
6924else
6925  ac_cv_header_stdc=no
6926fi
6927rm -f conftest*
6928
6929fi
6930
6931if test $ac_cv_header_stdc = yes; then
6932  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6933  if test "$cross_compiling" = yes; then
6934  :
6935else
6936  cat >conftest.$ac_ext <<_ACEOF
6937/* confdefs.h.  */
6938_ACEOF
6939cat confdefs.h >>conftest.$ac_ext
6940cat >>conftest.$ac_ext <<_ACEOF
6941/* end confdefs.h.  */
6942#include <ctype.h>
6943#if ((' ' & 0x0FF) == 0x020)
6944# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6945# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6946#else
6947# define ISLOWER(c) \
6948                   (('a' <= (c) && (c) <= 'i') \
6949                     || ('j' <= (c) && (c) <= 'r') \
6950                     || ('s' <= (c) && (c) <= 'z'))
6951# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6952#endif
6953
6954#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6955int
6956main ()
6957{
6958  int i;
6959  for (i = 0; i < 256; i++)
6960    if (XOR (islower (i), ISLOWER (i))
6961        || toupper (i) != TOUPPER (i))
6962      exit(2);
6963  exit (0);
6964}
6965_ACEOF
6966rm -f conftest$ac_exeext
6967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6968  (eval $ac_link) 2>&5
6969  ac_status=$?
6970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6973  (eval $ac_try) 2>&5
6974  ac_status=$?
6975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976  (exit $ac_status); }; }; then
6977  :
6978else
6979  echo "$as_me: program exited with status $ac_status" >&5
6980echo "$as_me: failed program was:" >&5
6981sed 's/^/| /' conftest.$ac_ext >&5
6982
6983( exit $ac_status )
6984ac_cv_header_stdc=no
6985fi
6986rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6987fi
6988fi
6989fi
6990echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6991echo "${ECHO_T}$ac_cv_header_stdc" >&6
6992if test $ac_cv_header_stdc = yes; then
6993
6994cat >>confdefs.h <<\_ACEOF
6995#define STDC_HEADERS 1
6996_ACEOF
6997
6998fi
6999
7000# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7011                  inttypes.h stdint.h unistd.h
7012do
7013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7014echo "$as_me:$LINENO: checking for $ac_header" >&5
7015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7016if eval "test \"\${$as_ac_Header+set}\" = set"; then
7017  echo $ECHO_N "(cached) $ECHO_C" >&6
7018else
7019  cat >conftest.$ac_ext <<_ACEOF
7020/* confdefs.h.  */
7021_ACEOF
7022cat confdefs.h >>conftest.$ac_ext
7023cat >>conftest.$ac_ext <<_ACEOF
7024/* end confdefs.h.  */
7025$ac_includes_default
7026
7027#include <$ac_header>
7028_ACEOF
7029rm -f conftest.$ac_objext
7030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7031  (eval $ac_compile) 2>conftest.er1
7032  ac_status=$?
7033  grep -v '^ *+' conftest.er1 >conftest.err
7034  rm -f conftest.er1
7035  cat conftest.err >&5
7036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037  (exit $ac_status); } &&
7038         { ac_try='test -z "$ac_c_werror_flag"
7039                         || test ! -s conftest.err'
7040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041  (eval $ac_try) 2>&5
7042  ac_status=$?
7043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044  (exit $ac_status); }; } &&
7045         { ac_try='test -s conftest.$ac_objext'
7046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047  (eval $ac_try) 2>&5
7048  ac_status=$?
7049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050  (exit $ac_status); }; }; then
7051  eval "$as_ac_Header=yes"
7052else
7053  echo "$as_me: failed program was:" >&5
7054sed 's/^/| /' conftest.$ac_ext >&5
7055
7056eval "$as_ac_Header=no"
7057fi
7058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7059fi
7060echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7061echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7062if test `eval echo '${'$as_ac_Header'}'` = yes; then
7063  cat >>confdefs.h <<_ACEOF
7064#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7065_ACEOF
7066
7067fi
7068
7069done
7070
7071
7072
7073for ac_header in dlfcn.h
7074do
7075as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7076if eval "test \"\${$as_ac_Header+set}\" = set"; then
7077  echo "$as_me:$LINENO: checking for $ac_header" >&5
7078echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7079if eval "test \"\${$as_ac_Header+set}\" = set"; then
7080  echo $ECHO_N "(cached) $ECHO_C" >&6
7081fi
7082echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7083echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7084else
7085  # Is the header compilable?
7086echo "$as_me:$LINENO: checking $ac_header usability" >&5
7087echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7088cat >conftest.$ac_ext <<_ACEOF
7089/* confdefs.h.  */
7090_ACEOF
7091cat confdefs.h >>conftest.$ac_ext
7092cat >>conftest.$ac_ext <<_ACEOF
7093/* end confdefs.h.  */
7094$ac_includes_default
7095#include <$ac_header>
7096_ACEOF
7097rm -f conftest.$ac_objext
7098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7099  (eval $ac_compile) 2>conftest.er1
7100  ac_status=$?
7101  grep -v '^ *+' conftest.er1 >conftest.err
7102  rm -f conftest.er1
7103  cat conftest.err >&5
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); } &&
7106         { ac_try='test -z "$ac_c_werror_flag"
7107                         || test ! -s conftest.err'
7108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109  (eval $ac_try) 2>&5
7110  ac_status=$?
7111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112  (exit $ac_status); }; } &&
7113         { ac_try='test -s conftest.$ac_objext'
7114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115  (eval $ac_try) 2>&5
7116  ac_status=$?
7117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118  (exit $ac_status); }; }; then
7119  ac_header_compiler=yes
7120else
7121  echo "$as_me: failed program was:" >&5
7122sed 's/^/| /' conftest.$ac_ext >&5
7123
7124ac_header_compiler=no
7125fi
7126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7128echo "${ECHO_T}$ac_header_compiler" >&6
7129
7130# Is the header present?
7131echo "$as_me:$LINENO: checking $ac_header presence" >&5
7132echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7133cat >conftest.$ac_ext <<_ACEOF
7134/* confdefs.h.  */
7135_ACEOF
7136cat confdefs.h >>conftest.$ac_ext
7137cat >>conftest.$ac_ext <<_ACEOF
7138/* end confdefs.h.  */
7139#include <$ac_header>
7140_ACEOF
7141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7142  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7143  ac_status=$?
7144  grep -v '^ *+' conftest.er1 >conftest.err
7145  rm -f conftest.er1
7146  cat conftest.err >&5
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); } >/dev/null; then
7149  if test -s conftest.err; then
7150    ac_cpp_err=$ac_c_preproc_warn_flag
7151    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7152  else
7153    ac_cpp_err=
7154  fi
7155else
7156  ac_cpp_err=yes
7157fi
7158if test -z "$ac_cpp_err"; then
7159  ac_header_preproc=yes
7160else
7161  echo "$as_me: failed program was:" >&5
7162sed 's/^/| /' conftest.$ac_ext >&5
7163
7164  ac_header_preproc=no
7165fi
7166rm -f conftest.err conftest.$ac_ext
7167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7168echo "${ECHO_T}$ac_header_preproc" >&6
7169
7170# So?  What about this header?
7171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7172  yes:no: )
7173    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7174echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7175    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7176echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7177    ac_header_preproc=yes
7178    ;;
7179  no:yes:* )
7180    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7181echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7182    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7183echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7184    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7185echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7186    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7187echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7188    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7189echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7190    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7191echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7192    (
7193      cat <<\_ASBOX
7194## ---------------------------------------------------------------- ##
7195## Report this to https://projects.coin-or.org/BuildTools/newticket ##
7196## ---------------------------------------------------------------- ##
7197_ASBOX
7198    ) |
7199      sed "s/^/$as_me: WARNING:     /" >&2
7200    ;;
7201esac
7202echo "$as_me:$LINENO: checking for $ac_header" >&5
7203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7204if eval "test \"\${$as_ac_Header+set}\" = set"; then
7205  echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207  eval "$as_ac_Header=\$ac_header_preproc"
7208fi
7209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7210echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7211
7212fi
7213if test `eval echo '${'$as_ac_Header'}'` = yes; then
7214  cat >>confdefs.h <<_ACEOF
7215#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7216_ACEOF
7217
7218fi
7219
7220done
7221
7222
7223
7224if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7225    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7226    (test "X$CXX" != "Xg++"))) ; then
7227  ac_ext=cc
7228ac_cpp='$CXXCPP $CPPFLAGS'
7229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7232echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7233echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7234if test -z "$CXXCPP"; then
7235  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7236  echo $ECHO_N "(cached) $ECHO_C" >&6
7237else
7238      # Double quotes because CXXCPP needs to be expanded
7239    for CXXCPP in "$CXX -E" "/lib/cpp"
7240    do
7241      ac_preproc_ok=false
7242for ac_cxx_preproc_warn_flag in '' yes
7243do
7244  # Use a header file that comes with gcc, so configuring glibc
7245  # with a fresh cross-compiler works.
7246  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7247  # <limits.h> exists even on freestanding compilers.
7248  # On the NeXT, cc -E runs the code through the compiler's parser,
7249  # not just through cpp. "Syntax error" is here to catch this case.
7250  cat >conftest.$ac_ext <<_ACEOF
7251/* confdefs.h.  */
7252_ACEOF
7253cat confdefs.h >>conftest.$ac_ext
7254cat >>conftest.$ac_ext <<_ACEOF
7255/* end confdefs.h.  */
7256#ifdef __STDC__
7257# include <limits.h>
7258#else
7259# include <assert.h>
7260#endif
7261                     Syntax error
7262_ACEOF
7263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7264  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7265  ac_status=$?
7266  grep -v '^ *+' conftest.er1 >conftest.err
7267  rm -f conftest.er1
7268  cat conftest.err >&5
7269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270  (exit $ac_status); } >/dev/null; then
7271  if test -s conftest.err; then
7272    ac_cpp_err=$ac_cxx_preproc_warn_flag
7273    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7274  else
7275    ac_cpp_err=
7276  fi
7277else
7278  ac_cpp_err=yes
7279fi
7280if test -z "$ac_cpp_err"; then
7281  :
7282else
7283  echo "$as_me: failed program was:" >&5
7284sed 's/^/| /' conftest.$ac_ext >&5
7285
7286  # Broken: fails on valid input.
7287continue
7288fi
7289rm -f conftest.err conftest.$ac_ext
7290
7291  # OK, works on sane cases.  Now check whether non-existent headers
7292  # can be detected and how.
7293  cat >conftest.$ac_ext <<_ACEOF
7294/* confdefs.h.  */
7295_ACEOF
7296cat confdefs.h >>conftest.$ac_ext
7297cat >>conftest.$ac_ext <<_ACEOF
7298/* end confdefs.h.  */
7299#include <ac_nonexistent.h>
7300_ACEOF
7301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7302  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7303  ac_status=$?
7304  grep -v '^ *+' conftest.er1 >conftest.err
7305  rm -f conftest.er1
7306  cat conftest.err >&5
7307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308  (exit $ac_status); } >/dev/null; then
7309  if test -s conftest.err; then
7310    ac_cpp_err=$ac_cxx_preproc_warn_flag
7311    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7312  else
7313    ac_cpp_err=
7314  fi
7315else
7316  ac_cpp_err=yes
7317fi
7318if test -z "$ac_cpp_err"; then
7319  # Broken: success on invalid input.
7320continue
7321else
7322  echo "$as_me: failed program was:" >&5
7323sed 's/^/| /' conftest.$ac_ext >&5
7324
7325  # Passes both tests.
7326ac_preproc_ok=:
7327break
7328fi
7329rm -f conftest.err conftest.$ac_ext
7330
7331done
7332# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7333rm -f conftest.err conftest.$ac_ext
7334if $ac_preproc_ok; then
7335  break
7336fi
7337
7338    done
7339    ac_cv_prog_CXXCPP=$CXXCPP
7340
7341fi
7342  CXXCPP=$ac_cv_prog_CXXCPP
7343else
7344  ac_cv_prog_CXXCPP=$CXXCPP
7345fi
7346echo "$as_me:$LINENO: result: $CXXCPP" >&5
7347echo "${ECHO_T}$CXXCPP" >&6
7348ac_preproc_ok=false
7349for ac_cxx_preproc_warn_flag in '' yes
7350do
7351  # Use a header file that comes with gcc, so configuring glibc
7352  # with a fresh cross-compiler works.
7353  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7354  # <limits.h> exists even on freestanding compilers.
7355  # On the NeXT, cc -E runs the code through the compiler's parser,
7356  # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
7364# include <limits.h>
7365#else
7366# include <assert.h>
7367#endif
7368                     Syntax error
7369_ACEOF
7370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7371  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7372  ac_status=$?
7373  grep -v '^ *+' conftest.er1 >conftest.err
7374  rm -f conftest.er1
7375  cat conftest.err >&5
7376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377  (exit $ac_status); } >/dev/null; then
7378  if test -s conftest.err; then
7379    ac_cpp_err=$ac_cxx_preproc_warn_flag
7380    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7381  else
7382    ac_cpp_err=
7383  fi
7384else
7385  ac_cpp_err=yes
7386fi
7387if test -z "$ac_cpp_err"; then
7388  :
7389else
7390  echo "$as_me: failed program was:" >&5
7391sed 's/^/| /' conftest.$ac_ext >&5
7392
7393  # Broken: fails on valid input.
7394continue
7395fi
7396rm -f conftest.err conftest.$ac_ext
7397
7398  # OK, works on sane cases.  Now check whether non-existent headers
7399  # can be detected and how.
7400  cat >conftest.$ac_ext <<_ACEOF
7401/* confdefs.h.  */
7402_ACEOF
7403cat confdefs.h >>conftest.$ac_ext
7404cat >>conftest.$ac_ext <<_ACEOF
7405/* end confdefs.h.  */
7406#include <ac_nonexistent.h>
7407_ACEOF
7408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7409  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7410  ac_status=$?
7411  grep -v '^ *+' conftest.er1 >conftest.err
7412  rm -f conftest.er1
7413  cat conftest.err >&5
7414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415  (exit $ac_status); } >/dev/null; then
7416  if test -s conftest.err; then
7417    ac_cpp_err=$ac_cxx_preproc_warn_flag
7418    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7419  else
7420    ac_cpp_err=
7421  fi
7422else
7423  ac_cpp_err=yes
7424fi
7425if test -z "$ac_cpp_err"; then
7426  # Broken: success on invalid input.
7427continue
7428else
7429  echo "$as_me: failed program was:" >&5
7430sed 's/^/| /' conftest.$ac_ext >&5
7431
7432  # Passes both tests.
7433ac_preproc_ok=:
7434break
7435fi
7436rm -f conftest.err conftest.$ac_ext
7437
7438done
7439# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7440rm -f conftest.err conftest.$ac_ext
7441if $ac_preproc_ok; then
7442  :
7443else
7444  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7445See \`config.log' for more details." >&5
7446echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7447See \`config.log' for more details." >&2;}
7448   { (exit 1); exit 1; }; }
7449fi
7450
7451ac_ext=cc
7452ac_cpp='$CXXCPP $CPPFLAGS'
7453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7456
7457fi
7458
7459
7460# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7461
7462# find the maximum length of command line arguments
7463echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7464echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7465if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7466  echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468    i=0
7469  teststring="ABCD"
7470
7471  case $build_os in
7472  msdosdjgpp*)
7473    # On DJGPP, this test can blow up pretty badly due to problems in libc
7474    # (any single argument exceeding 2000 bytes causes a buffer overrun
7475    # during glob expansion).  Even if it were fixed, the result of this
7476    # check would be larger than it should be.
7477    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7478    ;;
7479
7480  gnu*)
7481    # Under GNU Hurd, this test is not required because there is
7482    # no limit to the length of command line arguments.
7483    # Libtool will interpret -1 as no limit whatsoever
7484    lt_cv_sys_max_cmd_len=-1;
7485    ;;
7486
7487  cygwin* | mingw*)
7488    # On Win9x/ME, this test blows up -- it succeeds, but takes
7489    # about 5 minutes as the teststring grows exponentially.
7490    # Worse, since 9x/ME are not pre-emptively multitasking,
7491    # you end up with a "frozen" computer, even though with patience
7492    # the test eventually succeeds (with a max line length of 256k).
7493    # Instead, let's just punt: use the minimum linelength reported by
7494    # all of the supported platforms: 8192 (on NT/2K/XP).
7495    lt_cv_sys_max_cmd_len=8192;
7496    ;;
7497
7498  amigaos*)
7499    # On AmigaOS with pdksh, this test takes hours, literally.
7500    # So we just punt and use a minimum line length of 8192.
7501    lt_cv_sys_max_cmd_len=8192;
7502    ;;
7503
7504  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7505    # This has been around since 386BSD, at least.  Likely further.
7506    if test -x /sbin/sysctl; then
7507      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7508    elif test -x /usr/sbin/sysctl; then
7509      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7510    else
7511      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7512    fi
7513    # And add a safety zone
7514    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7515    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7516    ;;
7517
7518  interix*)
7519    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7520    lt_cv_sys_max_cmd_len=196608
7521    ;;
7522
7523  osf*)
7524    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7525    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7526    # nice to cause kernel panics so lets avoid the loop below.
7527    # First set a reasonable default.
7528    lt_cv_sys_max_cmd_len=16384
7529    #
7530    if test -x /sbin/sysconfig; then
7531      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7532        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7533      esac
7534    fi
7535    ;;
7536  sco3.2v5*)
7537    lt_cv_sys_max_cmd_len=102400
7538    ;;
7539  sysv5* | sco5v6* | sysv4.2uw2*)
7540    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7541    if test -n "$kargmax"; then
7542      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7543    else
7544      lt_cv_sys_max_cmd_len=32768
7545    fi
7546    ;;
7547  *)
7548    # If test is not a shell built-in, we'll probably end up computing a
7549    # maximum length that is only half of the actual maximum length, but
7550    # we can't tell.
7551    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7552    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7553               = "XX$teststring") >/dev/null 2>&1 &&
7554            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7555            lt_cv_sys_max_cmd_len=$new_result &&
7556            test $i != 17 # 1/2 MB should be enough
7557    do
7558      i=`expr $i + 1`
7559      teststring=$teststring$teststring
7560    done
7561    teststring=
7562    # Add a significant safety factor because C++ compilers can tack on massive
7563    # amounts of additional arguments before passing them to the linker.
7564    # It appears as though 1/2 is a usable value.
7565    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7566    ;;
7567  esac
7568
7569fi
7570
7571if test -n $lt_cv_sys_max_cmd_len ; then
7572  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7573echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7574else
7575  echo "$as_me:$LINENO: result: none" >&5
7576echo "${ECHO_T}none" >&6
7577fi
7578
7579
7580
7581
7582# Check for command to grab the raw symbol name followed by C symbol from nm.
7583echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7584echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7585if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7586  echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588
7589# These are sane defaults that work on at least a few old systems.
7590# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7591
7592# Character class describing NM global symbol codes.
7593symcode='[BCDEGRST]'
7594
7595# Regexp to match symbols that can be accessed directly from C.
7596sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7597
7598# Transform an extracted symbol line into a proper C declaration
7599lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7600
7601# Transform an extracted symbol line into symbol name and symbol address
7602lt_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'"
7603
7604# Define system-specific variables.
7605case $host_os in
7606aix*)
7607  symcode='[BCDT]'
7608  ;;
7609cygwin* | mingw* | pw32*)
7610  symcode='[ABCDGISTW]'
7611  ;;
7612hpux*) # Its linker distinguishes data from code symbols
7613  if test "$host_cpu" = ia64; then
7614    symcode='[ABCDEGRST]'
7615  fi
7616  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7617  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'"
7618  ;;
7619linux*)
7620  if test "$host_cpu" = ia64; then
7621    symcode='[ABCDGIRSTW]'
7622    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7623    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'"
7624  fi
7625  ;;
7626irix* | nonstopux*)
7627  symcode='[BCDEGRST]'
7628  ;;
7629osf*)
7630  symcode='[BCDEGQRST]'
7631  ;;
7632solaris*)
7633  symcode='[BDRT]'
7634  ;;
7635sco3.2v5*)
7636  symcode='[DT]'
7637  ;;
7638sysv4.2uw2*)
7639  symcode='[DT]'
7640  ;;
7641sysv5* | sco5v6* | unixware* | OpenUNIX*)
7642  symcode='[ABDT]'
7643  ;;
7644sysv4)
7645  symcode='[DFNSTU]'
7646  ;;
7647esac
7648
7649# Handle CRLF in mingw tool chain
7650opt_cr=
7651case $build_os in
7652mingw*)
7653  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7654  ;;
7655esac
7656
7657# If we're using GNU nm, then use its standard symbol codes.
7658case `$NM -V 2>&1` in
7659*GNU* | *'with BFD'*)
7660  symcode='[ABCDGIRSTW]' ;;
7661esac
7662
7663# Try without a prefix undercore, then with it.
7664for ac_symprfx in "" "_"; do
7665
7666  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7667  symxfrm="\\1 $ac_symprfx\\2 \\2"
7668
7669  # Write the raw and C identifiers.
7670  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7671
7672  # Check to see that the pipe works correctly.
7673  pipe_works=no
7674
7675  rm -f conftest*
7676  cat > conftest.$ac_ext <<EOF
7677#ifdef __cplusplus
7678extern "C" {
7679#endif
7680char nm_test_var;
7681void nm_test_func(){}
7682#ifdef __cplusplus
7683}
7684#endif
7685int main(){nm_test_var='a';nm_test_func();return(0);}
7686EOF
7687
7688  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7689  (eval $ac_compile) 2>&5
7690  ac_status=$?
7691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692  (exit $ac_status); }; then
7693    # Now try to grab the symbols.
7694    nlist=conftest.nm
7695    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7696  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7697  ac_status=$?
7698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699  (exit $ac_status); } && test -s "$nlist"; then
7700      # Try sorting and uniquifying the output.
7701      if sort "$nlist" | uniq > "$nlist"T; then
7702        mv -f "$nlist"T "$nlist"
7703      else
7704        rm -f "$nlist"T
7705      fi
7706
7707      # Make sure that we snagged all the symbols we need.
7708      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7709        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7710          cat <<EOF > conftest.$ac_ext
7711#ifdef __cplusplus
7712extern "C" {
7713#endif
7714
7715EOF
7716          # Now generate the symbol file.
7717          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7718
7719          cat <<EOF >> conftest.$ac_ext
7720#if defined (__STDC__) && __STDC__
7721# define lt_ptr_t void *
7722#else
7723# define lt_ptr_t char *
7724# define const
7725#endif
7726
7727/* The mapping between symbol names and symbols. */
7728const struct {
7729  const char *name;
7730  lt_ptr_t address;
7731}
7732lt_preloaded_symbols[] =
7733{
7734EOF
7735          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7736          cat <<\EOF >> conftest.$ac_ext
7737  {0, (lt_ptr_t) 0}
7738};
7739
7740#ifdef __cplusplus
7741}
7742#endif
7743EOF
7744          # Now try linking the two files.
7745          mv conftest.$ac_objext conftstm.$ac_objext
7746          lt_save_LIBS="$LIBS"
7747          lt_save_CFLAGS="$CFLAGS"
7748          LIBS="conftstm.$ac_objext"
7749          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7750          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7751  (eval $ac_link) 2>&5
7752  ac_status=$?
7753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7755            pipe_works=yes
7756          fi
7757          LIBS="$lt_save_LIBS"
7758          CFLAGS="$lt_save_CFLAGS"
7759        else
7760          echo "cannot find nm_test_func in $nlist" >&5
7761        fi
7762      else
7763        echo "cannot find nm_test_var in $nlist" >&5
7764      fi
7765    else
7766      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7767    fi
7768  else
7769    echo "$progname: failed program was:" >&5
7770    cat conftest.$ac_ext >&5
7771  fi
7772  rm -f conftest* conftst*
7773
7774  # Do not use the global_symbol_pipe unless it works.
7775  if test "$pipe_works" = yes; then
7776    break
7777  else
7778    lt_cv_sys_global_symbol_pipe=
7779  fi
7780done
7781
7782fi
7783
7784if test -z "$lt_cv_sys_global_symbol_pipe"; then
7785  lt_cv_sys_global_symbol_to_cdecl=
7786fi
7787if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7788  echo "$as_me:$LINENO: result: failed" >&5
7789echo "${ECHO_T}failed" >&6
7790else
7791  echo "$as_me:$LINENO: result: ok" >&5
7792echo "${ECHO_T}ok" >&6
7793fi
7794
7795echo "$as_me:$LINENO: checking for objdir" >&5
7796echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7797if test "${lt_cv_objdir+set}" = set; then
7798  echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800  rm -f .libs 2>/dev/null
7801mkdir .libs 2>/dev/null
7802if test -d .libs; then
7803  lt_cv_objdir=.libs
7804else
7805  # MS-DOS does not allow filenames that begin with a dot.
7806  lt_cv_objdir=_libs
7807fi
7808rmdir .libs 2>/dev/null
7809fi
7810echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7811echo "${ECHO_T}$lt_cv_objdir" >&6
7812objdir=$lt_cv_objdir
7813
7814
7815
7816
7817
7818case $host_os in
7819aix3*)
7820  # AIX sometimes has problems with the GCC collect2 program.  For some
7821  # reason, if we set the COLLECT_NAMES environment variable, the problems
7822  # vanish in a puff of smoke.
7823  if test "X${COLLECT_NAMES+set}" != Xset; then
7824    COLLECT_NAMES=
7825    export COLLECT_NAMES
7826  fi
7827  ;;
7828esac
7829
7830# Sed substitution that helps us do robust quoting.  It backslashifies
7831# metacharacters that are still active within double-quoted strings.
7832Xsed='sed -e 1s/^X//'
7833sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7834
7835# Same as above, but do not quote variable references.
7836double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7837
7838# Sed substitution to delay expansion of an escaped shell variable in a
7839# double_quote_subst'ed string.
7840delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7841
7842# Sed substitution to avoid accidental globbing in evaled expressions
7843no_glob_subst='s/\*/\\\*/g'
7844
7845# Constants:
7846rm="rm -f"
7847
7848# Global variables:
7849default_ofile=libtool
7850can_build_shared=yes
7851
7852# All known linkers require a `.a' archive for static linking (except MSVC,
7853# which needs '.lib').
7854libext=a
7855ltmain="$ac_aux_dir/ltmain.sh"
7856ofile="$default_ofile"
7857with_gnu_ld="$lt_cv_prog_gnu_ld"
7858
7859if test -n "$ac_tool_prefix"; then
7860  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7861set dummy ${ac_tool_prefix}ar; ac_word=$2
7862echo "$as_me:$LINENO: checking for $ac_word" >&5
7863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7864if test "${ac_cv_prog_AR+set}" = set; then
7865  echo $ECHO_N "(cached) $ECHO_C" >&6
7866else
7867  if test -n "$AR"; then
7868  ac_cv_prog_AR="$AR" # Let the user override the test.
7869else
7870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871for as_dir in $PATH
7872do
7873  IFS=$as_save_IFS
7874  test -z "$as_dir" && as_dir=.
7875  for ac_exec_ext in '' $ac_executable_extensions; do
7876  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877    ac_cv_prog_AR="${ac_tool_prefix}ar"
7878    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879    break 2
7880  fi
7881done
7882done
7883
7884fi
7885fi
7886AR=$ac_cv_prog_AR
7887if test -n "$AR"; then
7888  echo "$as_me:$LINENO: result: $AR" >&5
7889echo "${ECHO_T}$AR" >&6
7890else
7891  echo "$as_me:$LINENO: result: no" >&5
7892echo "${ECHO_T}no" >&6
7893fi
7894
7895fi
7896if test -z "$ac_cv_prog_AR"; then
7897  ac_ct_AR=$AR
7898  # Extract the first word of "ar", so it can be a program name with args.
7899set dummy ar; ac_word=$2
7900echo "$as_me:$LINENO: checking for $ac_word" >&5
7901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7902if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7903  echo $ECHO_N "(cached) $ECHO_C" >&6
7904else
7905  if test -n "$ac_ct_AR"; then
7906  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7907else
7908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909for as_dir in $PATH
7910do
7911  IFS=$as_save_IFS
7912  test -z "$as_dir" && as_dir=.
7913  for ac_exec_ext in '' $ac_executable_extensions; do
7914  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915    ac_cv_prog_ac_ct_AR="ar"
7916    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7917    break 2
7918  fi
7919done
7920done
7921
7922  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7923fi
7924fi
7925ac_ct_AR=$ac_cv_prog_ac_ct_AR
7926if test -n "$ac_ct_AR"; then
7927  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7928echo "${ECHO_T}$ac_ct_AR" >&6
7929else
7930  echo "$as_me:$LINENO: result: no" >&5
7931echo "${ECHO_T}no" >&6
7932fi
7933
7934  AR=$ac_ct_AR
7935else
7936  AR="$ac_cv_prog_AR"
7937fi
7938
7939if test -n "$ac_tool_prefix"; then
7940  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7941set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7942echo "$as_me:$LINENO: checking for $ac_word" >&5
7943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7944if test "${ac_cv_prog_RANLIB+set}" = set; then
7945  echo $ECHO_N "(cached) $ECHO_C" >&6
7946else
7947  if test -n "$RANLIB"; then
7948  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7949else
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953  IFS=$as_save_IFS
7954  test -z "$as_dir" && as_dir=.
7955  for ac_exec_ext in '' $ac_executable_extensions; do
7956  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7958    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959    break 2
7960  fi
7961done
7962done
7963
7964fi
7965fi
7966RANLIB=$ac_cv_prog_RANLIB
7967if test -n "$RANLIB"; then
7968  echo "$as_me:$LINENO: result: $RANLIB" >&5
7969echo "${ECHO_T}$RANLIB" >&6
7970else
7971  echo "$as_me:$LINENO: result: no" >&5
7972echo "${ECHO_T}no" >&6
7973fi
7974
7975fi
7976if test -z "$ac_cv_prog_RANLIB"; then
7977  ac_ct_RANLIB=$RANLIB
7978  # Extract the first word of "ranlib", so it can be a program name with args.
7979set dummy ranlib; ac_word=$2
7980echo "$as_me:$LINENO: checking for $ac_word" >&5
7981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7982if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7983  echo $ECHO_N "(cached) $ECHO_C" >&6
7984else
7985  if test -n "$ac_ct_RANLIB"; then
7986  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7987else
7988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989for as_dir in $PATH
7990do
7991  IFS=$as_save_IFS
7992  test -z "$as_dir" && as_dir=.
7993  for ac_exec_ext in '' $ac_executable_extensions; do
7994  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995    ac_cv_prog_ac_ct_RANLIB="ranlib"
7996    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7997    break 2
7998  fi
7999done
8000done
8001
8002  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8003fi
8004fi
8005ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8006if test -n "$ac_ct_RANLIB"; then
8007  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8008echo "${ECHO_T}$ac_ct_RANLIB" >&6
8009else
8010  echo "$as_me:$LINENO: result: no" >&5
8011echo "${ECHO_T}no" >&6
8012fi
8013
8014  RANLIB=$ac_ct_RANLIB
8015else
8016  RANLIB="$ac_cv_prog_RANLIB"
8017fi
8018
8019if test -n "$ac_tool_prefix"; then
8020  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8021set dummy ${ac_tool_prefix}strip; ac_word=$2
8022echo "$as_me:$LINENO: checking for $ac_word" >&5
8023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8024if test "${ac_cv_prog_STRIP+set}" = set; then
8025  echo $ECHO_N "(cached) $ECHO_C" >&6
8026else
8027  if test -n "$STRIP"; then
8028  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8029else
8030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031for as_dir in $PATH
8032do
8033  IFS=$as_save_IFS
8034  test -z "$as_dir" && as_dir=.
8035  for ac_exec_ext in '' $ac_executable_extensions; do
8036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8039    break 2
8040  fi
8041done
8042done
8043
8044fi
8045fi
8046STRIP=$ac_cv_prog_STRIP
8047if test -n "$STRIP"; then
8048  echo "$as_me:$LINENO: result: $STRIP" >&5
8049echo "${ECHO_T}$STRIP" >&6
8050else
8051  echo "$as_me:$LINENO: result: no" >&5
8052echo "${ECHO_T}no" >&6
8053fi
8054
8055fi
8056if test -z "$ac_cv_prog_STRIP"; then
8057  ac_ct_STRIP=$STRIP
8058  # Extract the first word of "strip", so it can be a program name with args.
8059set dummy strip; ac_word=$2
8060echo "$as_me:$LINENO: checking for $ac_word" >&5
8061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8062if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8063  echo $ECHO_N "(cached) $ECHO_C" >&6
8064else
8065  if test -n "$ac_ct_STRIP"; then
8066  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8067else
8068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8069for as_dir in $PATH
8070do
8071  IFS=$as_save_IFS
8072  test -z "$as_dir" && as_dir=.
8073  for ac_exec_ext in '' $ac_executable_extensions; do
8074  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8075    ac_cv_prog_ac_ct_STRIP="strip"
8076    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8077    break 2
8078  fi
8079done
8080done
8081
8082  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8083fi
8084fi
8085ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8086if test -n "$ac_ct_STRIP"; then
8087  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8088echo "${ECHO_T}$ac_ct_STRIP" >&6
8089else
8090  echo "$as_me:$LINENO: result: no" >&5
8091echo "${ECHO_T}no" >&6
8092fi
8093
8094  STRIP=$ac_ct_STRIP
8095else
8096  STRIP="$ac_cv_prog_STRIP"
8097fi
8098
8099
8100old_CC="$CC"
8101old_CFLAGS="$CFLAGS"
8102
8103# Set sane defaults for various variables
8104test -z "$AR" && AR=ar
8105test -z "$AR_FLAGS" && AR_FLAGS=cru
8106test -z "$AS" && AS=as
8107test -z "$CC" && CC=cc
8108test -z "$LTCC" && LTCC=$CC
8109test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8110test -z "$DLLTOOL" && DLLTOOL=dlltool
8111test -z "$LD" && LD=ld
8112test -z "$LN_S" && LN_S="ln -s"
8113test -z "$MAGIC_CMD" && MAGIC_CMD=file
8114test -z "$NM" && NM=nm
8115test -z "$SED" && SED=sed
8116test -z "$OBJDUMP" && OBJDUMP=objdump
8117test -z "$RANLIB" && RANLIB=:
8118test -z "$STRIP" && STRIP=:
8119test -z "$ac_objext" && ac_objext=o
8120
8121# Determine commands to create old-style static archives.
8122old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8123old_postinstall_cmds='chmod 644 $oldlib'
8124old_postuninstall_cmds=
8125
8126if test -n "$RANLIB"; then
8127  case $host_os in
8128  openbsd*)
8129    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8130    ;;
8131  *)
8132    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8133    ;;
8134  esac
8135  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8136fi
8137
8138for cc_temp in $compiler""; do
8139  case $cc_temp in
8140    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8141    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8142    \-*) ;;
8143    *) break;;
8144  esac
8145done
8146cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8147
8148
8149# Only perform the check for file, if the check method requires it
8150case $deplibs_check_method in
8151file_magic*)
8152  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8153    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8154echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8155if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8156  echo $ECHO_N "(cached) $ECHO_C" >&6
8157else
8158  case $MAGIC_CMD in
8159[\\/*] |  ?:[\\/]*)
8160  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8161  ;;
8162*)
8163  lt_save_MAGIC_CMD="$MAGIC_CMD"
8164  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8165  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8166  for ac_dir in $ac_dummy; do
8167    IFS="$lt_save_ifs"
8168    test -z "$ac_dir" && ac_dir=.
8169    if test -f $ac_dir/${ac_tool_prefix}file; then
8170      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8171      if test -n "$file_magic_test_file"; then
8172        case $deplibs_check_method in
8173        "file_magic "*)
8174          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8175          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8176          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8177            $EGREP "$file_magic_regex" > /dev/null; then
8178            :
8179          else
8180            cat <<EOF 1>&2
8181
8182*** Warning: the command libtool uses to detect shared libraries,
8183*** $file_magic_cmd, produces output that libtool cannot recognize.
8184*** The result is that libtool may fail to recognize shared libraries
8185*** as such.  This will affect the creation of libtool libraries that
8186*** depend on shared libraries, but programs linked with such libtool
8187*** libraries will work regardless of this problem.  Nevertheless, you
8188*** may want to report the problem to your system manager and/or to
8189*** bug-libtool@gnu.org
8190
8191EOF
8192          fi ;;
8193        esac
8194      fi
8195      break
8196    fi
8197  done
8198  IFS="$lt_save_ifs"
8199  MAGIC_CMD="$lt_save_MAGIC_CMD"
8200  ;;
8201esac
8202fi
8203
8204MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8205if test -n "$MAGIC_CMD"; then
8206  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8207echo "${ECHO_T}$MAGIC_CMD" >&6
8208else
8209  echo "$as_me:$LINENO: result: no" >&5
8210echo "${ECHO_T}no" >&6
8211fi
8212
8213if test -z "$lt_cv_path_MAGIC_CMD"; then
8214  if test -n "$ac_tool_prefix"; then
8215    echo "$as_me:$LINENO: checking for file" >&5
8216echo $ECHO_N "checking for file... $ECHO_C" >&6
8217if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8218  echo $ECHO_N "(cached) $ECHO_C" >&6
8219else
8220  case $MAGIC_CMD in
8221[\\/*] |  ?:[\\/]*)
8222  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8223  ;;
8224*)
8225  lt_save_MAGIC_CMD="$MAGIC_CMD"
8226  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8227  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8228  for ac_dir in $ac_dummy; do
8229    IFS="$lt_save_ifs"
8230    test -z "$ac_dir" && ac_dir=.
8231    if test -f $ac_dir/file; then
8232      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8233      if test -n "$file_magic_test_file"; then
8234        case $deplibs_check_method in
8235        "file_magic "*)
8236          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8237          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8239            $EGREP "$file_magic_regex" > /dev/null; then
8240            :
8241          else
8242            cat <<EOF 1>&2
8243
8244*** Warning: the command libtool uses to detect shared libraries,
8245*** $file_magic_cmd, produces output that libtool cannot recognize.
8246*** The result is that libtool may fail to recognize shared libraries
8247*** as such.  This will affect the creation of libtool libraries that
8248*** depend on shared libraries, but programs linked with such libtool
8249*** libraries will work regardless of this problem.  Nevertheless, you
8250*** may want to report the problem to your system manager and/or to
8251*** bug-libtool@gnu.org
8252
8253EOF
8254          fi ;;
8255        esac
8256      fi
8257      break
8258    fi
8259  done
8260  IFS="$lt_save_ifs"
8261  MAGIC_CMD="$lt_save_MAGIC_CMD"
8262  ;;
8263esac
8264fi
8265
8266MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8267if test -n "$MAGIC_CMD"; then
8268  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8269echo "${ECHO_T}$MAGIC_CMD" >&6
8270else
8271  echo "$as_me:$LINENO: result: no" >&5
8272echo "${ECHO_T}no" >&6
8273fi
8274
8275  else
8276    MAGIC_CMD=:
8277  fi
8278fi
8279
8280  fi
8281  ;;
8282esac
8283
8284enable_dlopen=no
8285enable_win32_dll=no
8286
8287# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8288if test "${enable_libtool_lock+set}" = set; then
8289  enableval="$enable_libtool_lock"
8290
8291fi;
8292test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8293
8294
8295# Check whether --with-pic or --without-pic was given.
8296if test "${with_pic+set}" = set; then
8297  withval="$with_pic"
8298  pic_mode="$withval"
8299else
8300  pic_mode=default
8301fi;
8302test -z "$pic_mode" && pic_mode=default
8303
8304# Use C for the default configuration in the libtool script
8305tagname=
8306lt_save_CC="$CC"
8307ac_ext=c
8308ac_cpp='$CPP $CPPFLAGS'
8309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8311ac_compiler_gnu=$ac_cv_c_compiler_gnu
8312
8313
8314# Source file extension for C test sources.
8315ac_ext=c
8316
8317# Object file extension for compiled C test sources.
8318objext=o
8319objext=$objext
8320
8321# Code to be used in simple compile tests
8322lt_simple_compile_test_code="int some_variable = 0;\n"
8323
8324# Code to be used in simple link tests
8325lt_simple_link_test_code='int main(){return(0);}\n'
8326
8327
8328# If no C compiler was specified, use CC.
8329LTCC=${LTCC-"$CC"}
8330
8331# If no C compiler flags were specified, use CFLAGS.
8332LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8333
8334# Allow CC to be a program name with arguments.
8335compiler=$CC
8336
8337
8338# save warnings/boilerplate of simple test code
8339ac_outfile=conftest.$ac_objext
8340printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8341eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8342_lt_compiler_boilerplate=`cat conftest.err`
8343$rm conftest*
8344
8345ac_outfile=conftest.$ac_objext
8346printf "$lt_simple_link_test_code" >conftest.$ac_ext
8347eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8348_lt_linker_boilerplate=`cat conftest.err`
8349$rm conftest*
8350
8351
8352## CAVEAT EMPTOR:
8353## There is no encapsulation within the following macros, do not change
8354## the running order or otherwise move them around unless you know exactly
8355## what you are doing...
8356
8357lt_prog_compiler_no_builtin_flag=
8358
8359if test "$GCC" = yes; then
8360  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8361
8362
8363echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8364echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8365if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8366  echo $ECHO_N "(cached) $ECHO_C" >&6
8367else
8368  lt_cv_prog_compiler_rtti_exceptions=no
8369  ac_outfile=conftest.$ac_objext
8370   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8371   lt_compiler_flag="-fno-rtti -fno-exceptions"
8372   # Insert the option either (1) after the last *FLAGS variable, or
8373   # (2) before a word containing "conftest.", or (3) at the end.
8374   # Note that $ac_compile itself does not contain backslashes and begins
8375   # with a dollar sign (not a hyphen), so the echo should work correctly.
8376   # The option is referenced via a variable to avoid confusing sed.
8377   lt_compile=`echo "$ac_compile" | $SED \
8378   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8379   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8380   -e 's:$: $lt_compiler_flag:'`
8381   (eval echo "\"\$as_me:8381: $lt_compile\"" >&5)
8382   (eval "$lt_compile" 2>conftest.err)
8383   ac_status=$?
8384   cat conftest.err >&5
8385   echo "$as_me:8385: \$? = $ac_status" >&5
8386   if (exit $ac_status) && test -s "$ac_outfile"; then
8387     # The compiler can only warn and ignore the option if not recognized
8388     # So say no if there are warnings other than the usual output.
8389     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8390     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8391     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8392       lt_cv_prog_compiler_rtti_exceptions=yes
8393     fi
8394   fi
8395   $rm conftest*
8396
8397fi
8398echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8399echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8400
8401if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8402    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8403else
8404    :
8405fi
8406
8407fi
8408
8409lt_prog_compiler_wl=
8410lt_prog_compiler_pic=
8411lt_prog_compiler_static=
8412
8413echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8414echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8415
8416  if test "$GCC" = yes; then
8417    lt_prog_compiler_wl='-Wl,'
8418    lt_prog_compiler_static='-static'
8419
8420    case $host_os in
8421      aix*)
8422      # All AIX code is PIC.
8423      if test "$host_cpu" = ia64; then
8424        # AIX 5 now supports IA64 processor
8425        lt_prog_compiler_static='-Bstatic'
8426      fi
8427      ;;
8428
8429    amigaos*)
8430      # FIXME: we need at least 68020 code to build shared libraries, but
8431      # adding the `-m68020' flag to GCC prevents building anything better,
8432      # like `-m68040'.
8433      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8434      ;;
8435
8436    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8437      # PIC is the default for these OSes.
8438      ;;
8439
8440    mingw* | pw32* | os2*)
8441      # This hack is so that the source file can tell whether it is being
8442      # built for inclusion in a dll (and should export symbols for example).
8443      lt_prog_compiler_pic='-DDLL_EXPORT'
8444      ;;
8445
8446    darwin* | rhapsody*)
8447      # PIC is the default on this platform
8448      # Common symbols not allowed in MH_DYLIB files
8449      lt_prog_compiler_pic='-fno-common'
8450      ;;
8451
8452    interix3*)
8453      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8454      # Instead, we relocate shared libraries at runtime.
8455      ;;
8456
8457    msdosdjgpp*)
8458      # Just because we use GCC doesn't mean we suddenly get shared libraries
8459      # on systems that don't support them.
8460      lt_prog_compiler_can_build_shared=no
8461      enable_shared=no
8462      ;;
8463
8464    sysv4*MP*)
8465      if test -d /usr/nec; then
8466        lt_prog_compiler_pic=-Kconform_pic
8467      fi
8468      ;;
8469
8470    hpux*)
8471      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8472      # not for PA HP-UX.
8473      case $host_cpu in
8474      hppa*64*|ia64*)
8475        # +Z the default
8476        ;;
8477      *)
8478        lt_prog_compiler_pic='-fPIC'
8479        ;;
8480      esac
8481      ;;
8482
8483    *)
8484      lt_prog_compiler_pic='-fPIC'
8485      ;;
8486    esac
8487  else
8488    # PORTME Check for flag to pass linker flags through the system compiler.
8489    case $host_os in
8490    aix*)
8491      lt_prog_compiler_wl='-Wl,'
8492      if test "$host_cpu" = ia64; then
8493        # AIX 5 now supports IA64 processor
8494        lt_prog_compiler_static='-Bstatic'
8495      else
8496        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8497      fi
8498      ;;
8499      darwin*)
8500        # PIC is the default on this platform
8501        # Common symbols not allowed in MH_DYLIB files
8502       case $cc_basename in
8503         xlc*)
8504         lt_prog_compiler_pic='-qnocommon'
8505         lt_prog_compiler_wl='-Wl,'
8506         ;;
8507       esac
8508       ;;
8509
8510    mingw* | pw32* | os2*)
8511      # This hack is so that the source file can tell whether it is being
8512      # built for inclusion in a dll (and should export symbols for example).
8513      lt_prog_compiler_pic='-DDLL_EXPORT'
8514      ;;
8515
8516    hpux9* | hpux10* | hpux11*)
8517      lt_prog_compiler_wl='-Wl,'
8518      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8519      # not for PA HP-UX.
8520      case $host_cpu in
8521      hppa*64*|ia64*)
8522        # +Z the default
8523        ;;
8524      *)
8525        lt_prog_compiler_pic='+Z'
8526        ;;
8527      esac
8528      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8529      lt_prog_compiler_static='${wl}-a ${wl}archive'
8530      ;;
8531
8532    irix5* | irix6* | nonstopux*)
8533      lt_prog_compiler_wl='-Wl,'
8534      # PIC (with -KPIC) is the default.
8535      lt_prog_compiler_static='-non_shared'
8536      ;;
8537
8538    newsos6)
8539      lt_prog_compiler_pic='-KPIC'
8540      lt_prog_compiler_static='-Bstatic'
8541      ;;
8542
8543    linux*)
8544      case $cc_basename in
8545      icc* | ecc*)
8546        lt_prog_compiler_wl='-Wl,'
8547        lt_prog_compiler_pic='-KPIC'
8548        lt_prog_compiler_static='-static'
8549        ;;
8550      pgcc* | pgf77* | pgf90* | pgf95*)
8551        # Portland Group compilers (*not* the Pentium gcc compiler,
8552        # which looks to be a dead project)
8553        lt_prog_compiler_wl='-Wl,'
8554        lt_prog_compiler_pic='-fpic'
8555        lt_prog_compiler_static='-Bstatic'
8556        ;;
8557      ccc*)
8558        lt_prog_compiler_wl='-Wl,'
8559        # All Alpha code is PIC.
8560        lt_prog_compiler_static='-non_shared'
8561        ;;
8562      esac
8563      ;;
8564
8565    osf3* | osf4* | osf5*)
8566      lt_prog_compiler_wl='-Wl,'
8567      # All OSF/1 code is PIC.
8568      lt_prog_compiler_static='-non_shared'
8569      ;;
8570
8571    solaris*)
8572      lt_prog_compiler_pic='-KPIC'
8573      lt_prog_compiler_static='-Bstatic'
8574      case $cc_basename in
8575      f77* | f90* | f95*)
8576        lt_prog_compiler_wl='-Qoption ld ';;
8577      *)
8578        lt_prog_compiler_wl='-Wl,';;
8579      esac
8580      ;;
8581
8582    sunos4*)
8583      lt_prog_compiler_wl='-Qoption ld '
8584      lt_prog_compiler_pic='-PIC'
8585      lt_prog_compiler_static='-Bstatic'
8586      ;;
8587
8588    sysv4 | sysv4.2uw2* | sysv4.3*)
8589      lt_prog_compiler_wl='-Wl,'
8590      lt_prog_compiler_pic='-KPIC'
8591      lt_prog_compiler_static='-Bstatic'
8592      ;;
8593
8594    sysv4*MP*)
8595      if test -d /usr/nec ;then
8596        lt_prog_compiler_pic='-Kconform_pic'
8597        lt_prog_compiler_static='-Bstatic'
8598      fi
8599      ;;
8600
8601    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8602      lt_prog_compiler_wl='-Wl,'
8603      lt_prog_compiler_pic='-KPIC'
8604      lt_prog_compiler_static='-Bstatic'
8605      ;;
8606
8607    unicos*)
8608      lt_prog_compiler_wl='-Wl,'
8609      lt_prog_compiler_can_build_shared=no
8610      ;;
8611
8612    uts4*)
8613      lt_prog_compiler_pic='-pic'
8614      lt_prog_compiler_static='-Bstatic'
8615      ;;
8616
8617    *)
8618      lt_prog_compiler_can_build_shared=no
8619      ;;
8620    esac
8621  fi
8622
8623echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8624echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8625
8626#
8627# Check to make sure the PIC flag actually works.
8628#
8629if test -n "$lt_prog_compiler_pic"; then
8630
8631echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8632echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8633if test "${lt_prog_compiler_pic_works+set}" = set; then
8634  echo $ECHO_N "(cached) $ECHO_C" >&6
8635else
8636  lt_prog_compiler_pic_works=no
8637  ac_outfile=conftest.$ac_objext
8638   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8639   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8640   # Insert the option either (1) after the last *FLAGS variable, or
8641   # (2) before a word containing "conftest.", or (3) at the end.
8642   # Note that $ac_compile itself does not contain backslashes and begins
8643   # with a dollar sign (not a hyphen), so the echo should work correctly.
8644   # The option is referenced via a variable to avoid confusing sed.
8645   lt_compile=`echo "$ac_compile" | $SED \
8646   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8647   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8648   -e 's:$: $lt_compiler_flag:'`
8649   (eval echo "\"\$as_me:8649: $lt_compile\"" >&5)
8650   (eval "$lt_compile" 2>conftest.err)
8651   ac_status=$?
8652   cat conftest.err >&5
8653   echo "$as_me:8653: \$? = $ac_status" >&5
8654   if (exit $ac_status) && test -s "$ac_outfile"; then
8655     # The compiler can only warn and ignore the option if not recognized
8656     # So say no if there are warnings other than the usual output.
8657     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8658     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8659     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8660       lt_prog_compiler_pic_works=yes
8661     fi
8662   fi
8663   $rm conftest*
8664
8665fi
8666echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8667echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8668
8669if test x"$lt_prog_compiler_pic_works" = xyes; then
8670    case $lt_prog_compiler_pic in
8671     "" | " "*) ;;
8672     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8673     esac
8674else
8675    lt_prog_compiler_pic=
8676     lt_prog_compiler_can_build_shared=no
8677fi
8678
8679fi
8680case $host_os in
8681  # For platforms which do not support PIC, -DPIC is meaningless:
8682  *djgpp*)
8683    lt_prog_compiler_pic=
8684    ;;
8685  *)
8686    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8687    ;;
8688esac
8689
8690#
8691# Check to make sure the static flag actually works.
8692#
8693wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8694echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8695echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8696if test "${lt_prog_compiler_static_works+set}" = set; then
8697  echo $ECHO_N "(cached) $ECHO_C" >&6
8698else
8699  lt_prog_compiler_static_works=no
8700   save_LDFLAGS="$LDFLAGS"
8701   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8702   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8703   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8704     # The linker can only warn and ignore the option if not recognized
8705     # So say no if there are warnings
8706     if test -s conftest.err; then
8707       # Append any errors to the config.log.
8708       cat conftest.err 1>&5
8709       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8710       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8711       if diff conftest.exp conftest.er2 >/dev/null; then
8712         lt_prog_compiler_static_works=yes
8713       fi
8714     else
8715       lt_prog_compiler_static_works=yes
8716     fi
8717   fi
8718   $rm conftest*
8719   LDFLAGS="$save_LDFLAGS"
8720
8721fi
8722echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8723echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8724
8725if test x"$lt_prog_compiler_static_works" = xyes; then
8726    :
8727else
8728    lt_prog_compiler_static=
8729fi
8730
8731
8732echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8733echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8734if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8735  echo $ECHO_N "(cached) $ECHO_C" >&6
8736else
8737  lt_cv_prog_compiler_c_o=no
8738   $rm -r conftest 2>/dev/null
8739   mkdir conftest
8740   cd conftest
8741   mkdir out
8742   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8743
8744   lt_compiler_flag="-o out/conftest2.$ac_objext"
8745   # Insert the option either (1) after the last *FLAGS variable, or
8746   # (2) before a word containing "conftest.", or (3) at the end.
8747   # Note that $ac_compile itself does not contain backslashes and begins
8748   # with a dollar sign (not a hyphen), so the echo should work correctly.
8749   lt_compile=`echo "$ac_compile" | $SED \
8750   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8751   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8752   -e 's:$: $lt_compiler_flag:'`
8753   (eval echo "\"\$as_me:8753: $lt_compile\"" >&5)
8754   (eval "$lt_compile" 2>out/conftest.err)
8755   ac_status=$?
8756   cat out/conftest.err >&5
8757   echo "$as_me:8757: \$? = $ac_status" >&5
8758   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8759   then
8760     # The compiler can only warn and ignore the option if not recognized
8761     # So say no if there are warnings
8762     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8763     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8764     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8765       lt_cv_prog_compiler_c_o=yes
8766     fi
8767   fi
8768   chmod u+w . 2>&5
8769   $rm conftest*
8770   # SGI C++ compiler will create directory out/ii_files/ for
8771   # template instantiation
8772   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8773   $rm out/* && rmdir out
8774   cd ..
8775   rmdir conftest
8776   $rm conftest*
8777
8778fi
8779echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8780echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8781
8782
8783hard_links="nottested"
8784if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8785  # do not overwrite the value of need_locks provided by the user
8786  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8787echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8788  hard_links=yes
8789  $rm conftest*
8790  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8791  touch conftest.a
8792  ln conftest.a conftest.b 2>&5 || hard_links=no
8793  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8794  echo "$as_me:$LINENO: result: $hard_links" >&5
8795echo "${ECHO_T}$hard_links" >&6
8796  if test "$hard_links" = no; then
8797    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8798echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8799    need_locks=warn
8800  fi
8801else
8802  need_locks=no
8803fi
8804
8805echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8806echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8807
8808  runpath_var=
8809  allow_undefined_flag=
8810  enable_shared_with_static_runtimes=no
8811  archive_cmds=
8812  archive_expsym_cmds=
8813  old_archive_From_new_cmds=
8814  old_archive_from_expsyms_cmds=
8815  export_dynamic_flag_spec=
8816  whole_archive_flag_spec=
8817  thread_safe_flag_spec=
8818  hardcode_libdir_flag_spec=
8819  hardcode_libdir_flag_spec_ld=
8820  hardcode_libdir_separator=
8821  hardcode_direct=no
8822  hardcode_minus_L=no
8823  hardcode_shlibpath_var=unsupported
8824  link_all_deplibs=unknown
8825  hardcode_automatic=no
8826  module_cmds=
8827  module_expsym_cmds=
8828  always_export_symbols=no
8829  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8830  # include_expsyms should be a list of space-separated symbols to be *always*
8831  # included in the symbol list
8832  include_expsyms=
8833  # exclude_expsyms can be an extended regexp of symbols to exclude
8834  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8835  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8836  # as well as any symbol that contains `d'.
8837  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8838  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8839  # platforms (ab)use it in PIC code, but their linkers get confused if
8840  # the symbol is explicitly referenced.  Since portable code cannot
8841  # rely on this symbol name, it's probably fine to never include it in
8842  # preloaded symbol tables.
8843  extract_expsyms_cmds=
8844  # Just being paranoid about ensuring that cc_basename is set.
8845  for cc_temp in $compiler""; do
8846  case $cc_temp in
8847    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8848    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8849    \-*) ;;
8850    *) break;;
8851  esac
8852done
8853cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8854
8855  case $host_os in
8856  cygwin* | mingw* | pw32*)
8857    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8858    # When not using gcc, we currently assume that we are using
8859    # Microsoft Visual C++.
8860    if test "$GCC" != yes; then
8861      with_gnu_ld=no
8862    fi
8863    ;;
8864  interix*)
8865    # we just hope/assume this is gcc and not c89 (= MSVC++)
8866    with_gnu_ld=yes
8867    ;;
8868  openbsd*)
8869    with_gnu_ld=no
8870    ;;
8871  esac
8872
8873  ld_shlibs=yes
8874  if test "$with_gnu_ld" = yes; then
8875    # If archive_cmds runs LD, not CC, wlarc should be empty
8876    wlarc='${wl}'
8877
8878    # Set some defaults for GNU ld with shared library support. These
8879    # are reset later if shared libraries are not supported. Putting them
8880    # here allows them to be overridden if necessary.
8881    runpath_var=LD_RUN_PATH
8882    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8883    export_dynamic_flag_spec='${wl}--export-dynamic'
8884    # ancient GNU ld didn't support --whole-archive et. al.
8885    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8886        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8887      else
8888        whole_archive_flag_spec=
8889    fi
8890    supports_anon_versioning=no
8891    case `$LD -v 2>/dev/null` in
8892      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8893      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8894      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8895      *\ 2.11.*) ;; # other 2.11 versions
8896      *) supports_anon_versioning=yes ;;
8897    esac
8898
8899    # See if GNU ld supports shared libraries.
8900    case $host_os in
8901    aix3* | aix4* | aix5*)
8902      # On AIX/PPC, the GNU linker is very broken
8903      if test "$host_cpu" != ia64; then
8904        ld_shlibs=no
8905        cat <<EOF 1>&2
8906
8907*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8908*** to be unable to reliably create shared libraries on AIX.
8909*** Therefore, libtool is disabling shared libraries support.  If you
8910*** really care for shared libraries, you may want to modify your PATH
8911*** so that a non-GNU linker is found, and then restart.
8912
8913EOF
8914      fi
8915      ;;
8916
8917    amigaos*)
8918      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)'
8919      hardcode_libdir_flag_spec='-L$libdir'
8920      hardcode_minus_L=yes
8921
8922      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8923      # that the semantics of dynamic libraries on AmigaOS, at least up
8924      # to version 4, is to share data among multiple programs linked
8925      # with the same dynamic library.  Since this doesn't match the
8926      # behavior of shared libraries on other platforms, we can't use
8927      # them.
8928      ld_shlibs=no
8929      ;;
8930
8931    beos*)
8932      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8933        allow_undefined_flag=unsupported
8934        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8935        # support --undefined.  This deserves some investigation.  FIXME
8936        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8937      else
8938        ld_shlibs=no
8939      fi
8940      ;;
8941
8942    cygwin* | mingw* | pw32*)
8943      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8944      # as there is no search path for DLLs.
8945      hardcode_libdir_flag_spec='-L$libdir'
8946      allow_undefined_flag=unsupported
8947      always_export_symbols=no
8948      enable_shared_with_static_runtimes=yes
8949      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8950
8951      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8952        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8953        # If the export-symbols file already is a .def file (1st line
8954        # is EXPORTS), use it as is; otherwise, prepend...
8955        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8956          cp $export_symbols $output_objdir/$soname.def;
8957        else
8958          echo EXPORTS > $output_objdir/$soname.def;
8959          cat $export_symbols >> $output_objdir/$soname.def;
8960        fi~
8961        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8962      else
8963        ld_shlibs=no
8964      fi
8965      ;;
8966
8967    interix3*)
8968      hardcode_direct=no
8969      hardcode_shlibpath_var=no
8970      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8971      export_dynamic_flag_spec='${wl}-E'
8972      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8973      # Instead, shared libraries are loaded at an image base (0x10000000 by
8974      # default) and relocated if they conflict, which is a slow very memory
8975      # consuming and fragmenting process.  To avoid this, we pick a random,
8976      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8977      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8978      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8979      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'
8980      ;;
8981
8982    linux*)
8983      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8984        tmp_addflag=
8985        case $cc_basename,$host_cpu in
8986        pgcc*)                          # Portland Group C compiler
8987          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'
8988          tmp_addflag=' $pic_flag'
8989          ;;
8990        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8991          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'
8992          tmp_addflag=' $pic_flag -Mnomain' ;;
8993        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8994          tmp_addflag=' -i_dynamic' ;;
8995        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8996          tmp_addflag=' -i_dynamic -nofor_main' ;;
8997        ifc* | ifort*)                  # Intel Fortran compiler
8998          tmp_addflag=' -nofor_main' ;;
8999        esac
9000        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9001
9002        if test $supports_anon_versioning = yes; then
9003          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9004  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9005  $echo "local: *; };" >> $output_objdir/$libname.ver~
9006          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9007        fi
9008      else
9009        ld_shlibs=no
9010      fi
9011      ;;
9012
9013    netbsd*)
9014      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9015        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9016        wlarc=
9017      else
9018        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9019        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9020      fi
9021      ;;
9022
9023    solaris*)
9024      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9025        ld_shlibs=no
9026        cat <<EOF 1>&2
9027
9028*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9029*** create shared libraries on Solaris systems.  Therefore, libtool
9030*** is disabling shared libraries support.  We urge you to upgrade GNU
9031*** binutils to release 2.9.1 or newer.  Another option is to modify
9032*** your PATH or compiler configuration so that the native linker is
9033*** used, and then restart.
9034
9035EOF
9036      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9037        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9039      else
9040        ld_shlibs=no
9041      fi
9042      ;;
9043
9044    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9045      case `$LD -v 2>&1` in
9046        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9047        ld_shlibs=no
9048        cat <<_LT_EOF 1>&2
9049
9050*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9051*** reliably create shared libraries on SCO systems.  Therefore, libtool
9052*** is disabling shared libraries support.  We urge you to upgrade GNU
9053*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9054*** your PATH or compiler configuration so that the native linker is
9055*** used, and then restart.
9056
9057_LT_EOF
9058        ;;
9059        *)
9060          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9061            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9062            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9063            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9064          else
9065            ld_shlibs=no
9066          fi
9067        ;;
9068      esac
9069      ;;
9070
9071    sunos4*)
9072      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9073      wlarc=
9074      hardcode_direct=yes
9075      hardcode_shlibpath_var=no
9076      ;;
9077
9078    *)
9079      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9080        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9081        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082      else
9083        ld_shlibs=no
9084      fi
9085      ;;
9086    esac
9087
9088    if test "$ld_shlibs" = no; then
9089      runpath_var=
9090      hardcode_libdir_flag_spec=
9091      export_dynamic_flag_spec=
9092      whole_archive_flag_spec=
9093    fi
9094  else
9095    # PORTME fill in a description of your system's linker (not GNU ld)
9096    case $host_os in
9097    aix3*)
9098      allow_undefined_flag=unsupported
9099      always_export_symbols=yes
9100      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'
9101      # Note: this linker hardcodes the directories in LIBPATH if there
9102      # are no directories specified by -L.
9103      hardcode_minus_L=yes
9104      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9105        # Neither direct hardcoding nor static linking is supported with a
9106        # broken collect2.
9107        hardcode_direct=unsupported
9108      fi
9109      ;;
9110
9111    aix4* | aix5*)
9112      if test "$host_cpu" = ia64; then
9113        # On IA64, the linker does run time linking by default, so we don't
9114        # have to do anything special.
9115        aix_use_runtimelinking=no
9116        exp_sym_flag='-Bexport'
9117        no_entry_flag=""
9118      else
9119        # If we're using GNU nm, then we don't want the "-C" option.
9120        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9121        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9122          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'
9123        else
9124          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'
9125        fi
9126        aix_use_runtimelinking=no
9127
9128        # Test if we are trying to use run time linking or normal
9129        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9130        # need to do runtime linking.
9131        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9132          for ld_flag in $LDFLAGS; do
9133          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9134            aix_use_runtimelinking=yes
9135            break
9136          fi
9137          done
9138          ;;
9139        esac
9140
9141        exp_sym_flag='-bexport'
9142        no_entry_flag='-bnoentry'
9143      fi
9144
9145      # When large executables or shared objects are built, AIX ld can
9146      # have problems creating the table of contents.  If linking a library
9147      # or program results in "error TOC overflow" add -mminimal-toc to
9148      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9149      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9150
9151      archive_cmds=''
9152      hardcode_direct=yes
9153      hardcode_libdir_separator=':'
9154      link_all_deplibs=yes
9155
9156      if test "$GCC" = yes; then
9157        case $host_os in aix4.[012]|aix4.[012].*)
9158        # We only want to do this on AIX 4.2 and lower, the check
9159        # below for broken collect2 doesn't work under 4.3+
9160          collect2name=`${CC} -print-prog-name=collect2`
9161          if test -f "$collect2name" && \
9162           strings "$collect2name" | grep resolve_lib_name >/dev/null
9163          then
9164          # We have reworked collect2
9165          hardcode_direct=yes
9166          else
9167          # We have old collect2
9168          hardcode_direct=unsupported
9169          # It fails to find uninstalled libraries when the uninstalled
9170          # path is not listed in the libpath.  Setting hardcode_minus_L
9171          # to unsupported forces relinking
9172          hardcode_minus_L=yes
9173          hardcode_libdir_flag_spec='-L$libdir'
9174          hardcode_libdir_separator=
9175          fi
9176          ;;
9177        esac
9178        shared_flag='-shared'
9179        if test "$aix_use_runtimelinking" = yes; then
9180          shared_flag="$shared_flag "'${wl}-G'
9181        fi
9182      else
9183        # not using gcc
9184        if test "$host_cpu" = ia64; then
9185        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9186        # chokes on -Wl,-G. The following line is correct:
9187          shared_flag='-G'
9188        else
9189          if test "$aix_use_runtimelinking" = yes; then
9190            shared_flag='${wl}-G'
9191          else
9192            shared_flag='${wl}-bM:SRE'
9193          fi
9194        fi
9195      fi
9196
9197      # It seems that -bexpall does not export symbols beginning with
9198      # underscore (_), so it is better to generate a list of symbols to export.
9199      always_export_symbols=yes
9200      if test "$aix_use_runtimelinking" = yes; then
9201        # Warning - without using the other runtime loading flags (-brtl),
9202        # -berok will link without error, but may produce a broken library.
9203        allow_undefined_flag='-berok'
9204       # Determine the default libpath from the value encoded in an empty executable.
9205       cat >conftest.$ac_ext <<_ACEOF
9206/* confdefs.h.  */
9207_ACEOF
9208cat confdefs.h >>conftest.$ac_ext
9209cat >>conftest.$ac_ext <<_ACEOF
9210/* end confdefs.h.  */
9211
9212int
9213main ()
9214{
9215
9216  ;
9217  return 0;
9218}
9219_ACEOF
9220rm -f conftest.$ac_objext conftest$ac_exeext
9221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222  (eval $ac_link) 2>conftest.er1
9223  ac_status=$?
9224  grep -v '^ *+' conftest.er1 >conftest.err
9225  rm -f conftest.er1
9226  cat conftest.err >&5
9227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228  (exit $ac_status); } &&
9229         { ac_try='test -z "$ac_c_werror_flag"
9230                         || test ! -s conftest.err'
9231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9232  (eval $ac_try) 2>&5
9233  ac_status=$?
9234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235  (exit $ac_status); }; } &&
9236         { ac_try='test -s conftest$ac_exeext'
9237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238  (eval $ac_try) 2>&5
9239  ac_status=$?
9240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241  (exit $ac_status); }; }; then
9242
9243aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9244}'`
9245# Check for a 64-bit object if we didn't find anything.
9246if 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; }
9247}'`; fi
9248else
9249  echo "$as_me: failed program was:" >&5
9250sed 's/^/| /' conftest.$ac_ext >&5
9251
9252fi
9253rm -f conftest.err conftest.$ac_objext \
9254      conftest$ac_exeext conftest.$ac_ext
9255if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9256
9257       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9258        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"
9259       else
9260        if test "$host_cpu" = ia64; then
9261          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9262          allow_undefined_flag="-z nodefs"
9263          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"
9264        else
9265         # Determine the default libpath from the value encoded in an empty executable.
9266         cat >conftest.$ac_ext <<_ACEOF
9267/* confdefs.h.  */
9268_ACEOF
9269cat confdefs.h >>conftest.$ac_ext
9270cat >>conftest.$ac_ext <<_ACEOF
9271/* end confdefs.h.  */
9272
9273int
9274main ()
9275{
9276
9277  ;
9278  return 0;
9279}
9280_ACEOF
9281rm -f conftest.$ac_objext conftest$ac_exeext
9282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9283  (eval $ac_link) 2>conftest.er1
9284  ac_status=$?
9285  grep -v '^ *+' conftest.er1 >conftest.err
9286  rm -f conftest.er1
9287  cat conftest.err >&5
9288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289  (exit $ac_status); } &&
9290         { ac_try='test -z "$ac_c_werror_flag"
9291                         || test ! -s conftest.err'
9292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293  (eval $ac_try) 2>&5
9294  ac_status=$?
9295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296  (exit $ac_status); }; } &&
9297         { ac_try='test -s conftest$ac_exeext'
9298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299  (eval $ac_try) 2>&5
9300  ac_status=$?
9301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302  (exit $ac_status); }; }; then
9303
9304aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9305}'`
9306# Check for a 64-bit object if we didn't find anything.
9307if 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; }
9308}'`; fi
9309else
9310  echo "$as_me: failed program was:" >&5
9311sed 's/^/| /' conftest.$ac_ext >&5
9312
9313fi
9314rm -f conftest.err conftest.$ac_objext \
9315      conftest$ac_exeext conftest.$ac_ext
9316if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9317
9318         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9319          # Warning - without using the other run time loading flags,
9320          # -berok will link without error, but may produce a broken library.
9321          no_undefined_flag=' ${wl}-bernotok'
9322          allow_undefined_flag=' ${wl}-berok'
9323          # Exported symbols can be pulled into shared objects from archives
9324          whole_archive_flag_spec='$convenience'
9325          archive_cmds_need_lc=yes
9326          # This is similar to how AIX traditionally builds its shared libraries.
9327          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'
9328        fi
9329      fi
9330      ;;
9331
9332    amigaos*)
9333      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)'
9334      hardcode_libdir_flag_spec='-L$libdir'
9335      hardcode_minus_L=yes
9336      # see comment about different semantics on the GNU ld section
9337      ld_shlibs=no
9338      ;;
9339
9340    bsdi[45]*)
9341      export_dynamic_flag_spec=-rdynamic
9342      ;;
9343
9344    cygwin* | mingw* | pw32*)
9345      # When not using gcc, we currently assume that we are using
9346      # Microsoft Visual C++.
9347      # hardcode_libdir_flag_spec is actually meaningless, as there is
9348      # no search path for DLLs.
9349      hardcode_libdir_flag_spec=' '
9350      allow_undefined_flag=unsupported
9351      # Tell ltmain to make .lib files, not .a files.
9352      libext=lib
9353      # Tell ltmain to make .dll files, not .so files.
9354      shrext_cmds=".dll"
9355      # FIXME: Setting linknames here is a bad hack.
9356      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9357      # The linker will automatically build a .lib file if we build a DLL.
9358      old_archive_From_new_cmds='true'
9359      # FIXME: Should let the user specify the lib program.
9360      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9361      fix_srcfile_path='`cygpath -w "$srcfile"`'
9362      enable_shared_with_static_runtimes=yes
9363      ;;
9364
9365    darwin* | rhapsody*)
9366      case $host_os in
9367        rhapsody* | darwin1.[012])
9368         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9369         ;;
9370       *) # Darwin 1.3 on
9371         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9372           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9373         else
9374           case ${MACOSX_DEPLOYMENT_TARGET} in
9375             10.[012])
9376               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9377               ;;
9378             10.*)
9379               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9380               ;;
9381           esac
9382         fi
9383         ;;
9384      esac
9385      archive_cmds_need_lc=no
9386      hardcode_direct=no
9387      hardcode_automatic=yes
9388      hardcode_shlibpath_var=unsupported
9389      whole_archive_flag_spec=''
9390      link_all_deplibs=yes
9391    if test "$GCC" = yes ; then
9392        output_verbose_link_cmd='echo'
9393        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9394      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9395      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9396      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}'
9397      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}'
9398    else
9399      case $cc_basename in
9400        xlc*)
9401         output_verbose_link_cmd='echo'
9402         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9403         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9404          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9405         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}'
9406          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}'
9407          ;;
9408       *)
9409         ld_shlibs=no
9410          ;;
9411      esac
9412    fi
9413      ;;
9414
9415    dgux*)
9416      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9417      hardcode_libdir_flag_spec='-L$libdir'
9418      hardcode_shlibpath_var=no
9419      ;;
9420
9421    freebsd1*)
9422      ld_shlibs=no
9423      ;;
9424
9425    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9426    # support.  Future versions do this automatically, but an explicit c++rt0.o
9427    # does not break anything, and helps significantly (at the cost of a little
9428    # extra space).
9429    freebsd2.2*)
9430      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9431      hardcode_libdir_flag_spec='-R$libdir'
9432      hardcode_direct=yes
9433      hardcode_shlibpath_var=no
9434      ;;
9435
9436    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9437    freebsd2*)
9438      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9439      hardcode_direct=yes
9440      hardcode_minus_L=yes
9441      hardcode_shlibpath_var=no
9442      ;;
9443
9444    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9445    freebsd* | kfreebsd*-gnu | dragonfly*)
9446      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9447      hardcode_libdir_flag_spec='-R$libdir'
9448      hardcode_direct=yes
9449      hardcode_shlibpath_var=no
9450      ;;
9451
9452    hpux9*)
9453      if test "$GCC" = yes; then
9454        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'
9455      else
9456        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'
9457      fi
9458      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9459      hardcode_libdir_separator=:
9460      hardcode_direct=yes
9461
9462      # hardcode_minus_L: Not really in the search PATH,
9463      # but as the default location of the library.
9464      hardcode_minus_L=yes
9465      export_dynamic_flag_spec='${wl}-E'
9466      ;;
9467
9468    hpux10*)
9469      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9470        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9471      else
9472        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9473      fi
9474      if test "$with_gnu_ld" = no; then
9475        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9476        hardcode_libdir_separator=:
9477
9478        hardcode_direct=yes
9479        export_dynamic_flag_spec='${wl}-E'
9480
9481        # hardcode_minus_L: Not really in the search PATH,
9482        # but as the default location of the library.
9483        hardcode_minus_L=yes
9484      fi
9485      ;;
9486
9487    hpux11*)
9488      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9489        case $host_cpu in
9490        hppa*64*)
9491          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9492          ;;
9493        ia64*)
9494          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9495          ;;
9496        *)
9497          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9498          ;;
9499        esac
9500      else
9501        case $host_cpu in
9502        hppa*64*)
9503          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9504          ;;
9505        ia64*)
9506          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9507          ;;
9508        *)
9509          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9510          ;;
9511        esac
9512      fi
9513      if test "$with_gnu_ld" = no; then
9514        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9515        hardcode_libdir_separator=:
9516
9517        case $host_cpu in
9518        hppa*64*|ia64*)
9519          hardcode_libdir_flag_spec_ld='+b $libdir'
9520          hardcode_direct=no
9521          hardcode_shlibpath_var=no
9522          ;;
9523        *)
9524          hardcode_direct=yes
9525          export_dynamic_flag_spec='${wl}-E'
9526
9527          # hardcode_minus_L: Not really in the search PATH,
9528          # but as the default location of the library.
9529          hardcode_minus_L=yes
9530          ;;
9531        esac
9532      fi
9533      ;;
9534
9535    irix5* | irix6* | nonstopux*)
9536      if test "$GCC" = yes; then
9537        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'
9538      else
9539        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'
9540        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9541      fi
9542      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9543      hardcode_libdir_separator=:
9544      link_all_deplibs=yes
9545      ;;
9546
9547    netbsd*)
9548      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9549        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9550      else
9551        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9552      fi
9553      hardcode_libdir_flag_spec='-R$libdir'
9554      hardcode_direct=yes
9555      hardcode_shlibpath_var=no
9556      ;;
9557
9558    newsos6)
9559      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560      hardcode_direct=yes
9561      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9562      hardcode_libdir_separator=:
9563      hardcode_shlibpath_var=no
9564      ;;
9565
9566    openbsd*)
9567      hardcode_direct=yes
9568      hardcode_shlibpath_var=no
9569      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9570        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9571        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9572        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9573        export_dynamic_flag_spec='${wl}-E'
9574      else
9575       case $host_os in
9576         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9577           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9578           hardcode_libdir_flag_spec='-R$libdir'
9579           ;;
9580         *)
9581           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9582           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9583           ;;
9584       esac
9585      fi
9586      ;;
9587
9588    os2*)
9589      hardcode_libdir_flag_spec='-L$libdir'
9590      hardcode_minus_L=yes
9591      allow_undefined_flag=unsupported
9592      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'
9593      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9594      ;;
9595
9596    osf3*)
9597      if test "$GCC" = yes; then
9598        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9599        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'
9600      else
9601        allow_undefined_flag=' -expect_unresolved \*'
9602        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'
9603      fi
9604      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9605      hardcode_libdir_separator=:
9606      ;;
9607
9608    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9609      if test "$GCC" = yes; then
9610        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9611        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'
9612        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9613      else
9614        allow_undefined_flag=' -expect_unresolved \*'
9615        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'
9616        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9617        $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'
9618
9619        # Both c and cxx compiler support -rpath directly
9620        hardcode_libdir_flag_spec='-rpath $libdir'
9621      fi
9622      hardcode_libdir_separator=:
9623      ;;
9624
9625    solaris*)
9626      no_undefined_flag=' -z text'
9627      if test "$GCC" = yes; then
9628        wlarc='${wl}'
9629        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9630        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9631          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9632      else
9633        wlarc=''
9634        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9636        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9637      fi
9638      hardcode_libdir_flag_spec='-R$libdir'
9639      hardcode_shlibpath_var=no
9640      case $host_os in
9641      solaris2.[0-5] | solaris2.[0-5].*) ;;
9642      *)
9643        # The compiler driver will combine linker options so we
9644        # cannot just pass the convience library names through
9645        # without $wl, iff we do not link with $LD.
9646        # Luckily, gcc supports the same syntax we need for Sun Studio.
9647        # Supported since Solaris 2.6 (maybe 2.5.1?)
9648        case $wlarc in
9649        '')
9650          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9651        *)
9652          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' ;;
9653        esac ;;
9654      esac
9655      link_all_deplibs=yes
9656      ;;
9657
9658    sunos4*)
9659      if test "x$host_vendor" = xsequent; then
9660        # Use $CC to link under sequent, because it throws in some extra .o
9661        # files that make .init and .fini sections work.
9662        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9663      else
9664        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9665      fi
9666      hardcode_libdir_flag_spec='-L$libdir'
9667      hardcode_direct=yes
9668      hardcode_minus_L=yes
9669      hardcode_shlibpath_var=no
9670      ;;
9671
9672    sysv4)
9673      case $host_vendor in
9674        sni)
9675          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9676          hardcode_direct=yes # is this really true???
9677        ;;
9678        siemens)
9679          ## LD is ld it makes a PLAMLIB
9680          ## CC just makes a GrossModule.
9681          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9682          reload_cmds='$CC -r -o $output$reload_objs'
9683          hardcode_direct=no
9684        ;;
9685        motorola)
9686          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9688        ;;
9689      esac
9690      runpath_var='LD_RUN_PATH'
9691      hardcode_shlibpath_var=no
9692      ;;
9693
9694    sysv4.3*)
9695      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696      hardcode_shlibpath_var=no
9697      export_dynamic_flag_spec='-Bexport'
9698      ;;
9699
9700    sysv4*MP*)
9701      if test -d /usr/nec; then
9702        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703        hardcode_shlibpath_var=no
9704        runpath_var=LD_RUN_PATH
9705        hardcode_runpath_var=yes
9706        ld_shlibs=yes
9707      fi
9708      ;;
9709
9710    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9711      no_undefined_flag='${wl}-z,text'
9712      archive_cmds_need_lc=no
9713      hardcode_shlibpath_var=no
9714      runpath_var='LD_RUN_PATH'
9715
9716      if test "$GCC" = yes; then
9717        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9719      else
9720        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722      fi
9723      ;;
9724
9725    sysv5* | sco3.2v5* | sco5v6*)
9726      # Note: We can NOT use -z defs as we might desire, because we do not
9727      # link with -lc, and that would cause any symbols used from libc to
9728      # always be unresolved, which means just about no library would
9729      # ever link correctly.  If we're not using GNU ld we use -z text
9730      # though, which does catch some bad symbols but isn't as heavy-handed
9731      # as -z defs.
9732      no_undefined_flag='${wl}-z,text'
9733      allow_undefined_flag='${wl}-z,nodefs'
9734      archive_cmds_need_lc=no
9735      hardcode_shlibpath_var=no
9736      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9737      hardcode_libdir_separator=':'
9738      link_all_deplibs=yes
9739      export_dynamic_flag_spec='${wl}-Bexport'
9740      runpath_var='LD_RUN_PATH'
9741
9742      if test "$GCC" = yes; then
9743        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9744        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9745      else
9746        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9747        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9748      fi
9749      ;;
9750
9751    uts4*)
9752      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753      hardcode_libdir_flag_spec='-L$libdir'
9754      hardcode_shlibpath_var=no
9755      ;;
9756
9757    *)
9758      ld_shlibs=no
9759      ;;
9760    esac
9761  fi
9762
9763echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9764echo "${ECHO_T}$ld_shlibs" >&6
9765test "$ld_shlibs" = no && can_build_shared=no
9766
9767#
9768# Do we need to explicitly link libc?
9769#
9770case "x$archive_cmds_need_lc" in
9771x|xyes)
9772  # Assume -lc should be added
9773  archive_cmds_need_lc=yes
9774
9775  if test "$enable_shared" = yes && test "$GCC" = yes; then
9776    case $archive_cmds in
9777    *'~'*)
9778      # FIXME: we may have to deal with multi-command sequences.
9779      ;;
9780    '$CC '*)
9781      # Test whether the compiler implicitly links with -lc since on some
9782      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9783      # to ld, don't add -lc before -lgcc.
9784      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9785echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9786      $rm conftest*
9787      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9788
9789      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9790  (eval $ac_compile) 2>&5
9791  ac_status=$?
9792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793  (exit $ac_status); } 2>conftest.err; then
9794        soname=conftest
9795        lib=conftest
9796        libobjs=conftest.$ac_objext
9797        deplibs=
9798        wl=$lt_prog_compiler_wl
9799        pic_flag=$lt_prog_compiler_pic
9800        compiler_flags=-v
9801        linker_flags=-v
9802        verstring=
9803        output_objdir=.
9804        libname=conftest
9805        lt_save_allow_undefined_flag=$allow_undefined_flag
9806        allow_undefined_flag=
9807        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9808  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9809  ac_status=$?
9810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811  (exit $ac_status); }
9812        then
9813          archive_cmds_need_lc=no
9814        else
9815          archive_cmds_need_lc=yes
9816        fi
9817        allow_undefined_flag=$lt_save_allow_undefined_flag
9818      else
9819        cat conftest.err 1>&5
9820      fi
9821      $rm conftest*
9822      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9823echo "${ECHO_T}$archive_cmds_need_lc" >&6
9824      ;;
9825    esac
9826  fi
9827  ;;
9828esac
9829
9830echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9831echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9832library_names_spec=
9833libname_spec='lib$name'
9834soname_spec=
9835shrext_cmds=".so"
9836postinstall_cmds=
9837postuninstall_cmds=
9838finish_cmds=
9839finish_eval=
9840shlibpath_var=
9841shlibpath_overrides_runpath=unknown
9842version_type=none
9843dynamic_linker="$host_os ld.so"
9844sys_lib_dlsearch_path_spec="/lib /usr/lib"
9845if test "$GCC" = yes; then
9846  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9847  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9848    # if the path contains ";" then we assume it to be the separator
9849    # otherwise default to the standard path separator (i.e. ":") - it is
9850    # assumed that no part of a normal pathname contains ";" but that should
9851    # okay in the real world where ";" in dirpaths is itself problematic.
9852    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9853  else
9854    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9855  fi
9856else
9857  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9858fi
9859need_lib_prefix=unknown
9860hardcode_into_libs=no
9861
9862# when you set need_version to no, make sure it does not cause -set_version
9863# flags to be left without arguments
9864need_version=unknown
9865
9866case $host_os in
9867aix3*)
9868  version_type=linux
9869  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9870  shlibpath_var=LIBPATH
9871
9872  # AIX 3 has no versioning support, so we append a major version to the name.
9873  soname_spec='${libname}${release}${shared_ext}$major'
9874  ;;
9875
9876aix4* | aix5*)
9877  version_type=linux
9878  need_lib_prefix=no
9879  need_version=no
9880  hardcode_into_libs=yes
9881  if test "$host_cpu" = ia64; then
9882    # AIX 5 supports IA64
9883    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9884    shlibpath_var=LD_LIBRARY_PATH
9885  else
9886    # With GCC up to 2.95.x, collect2 would create an import file
9887    # for dependence libraries.  The import file would start with
9888    # the line `#! .'.  This would cause the generated library to
9889    # depend on `.', always an invalid library.  This was fixed in
9890    # development snapshots of GCC prior to 3.0.
9891    case $host_os in
9892      aix4 | aix4.[01] | aix4.[01].*)
9893      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9894           echo ' yes '
9895           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9896        :
9897      else
9898        can_build_shared=no
9899      fi
9900      ;;
9901    esac
9902    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9903    # soname into executable. Probably we can add versioning support to
9904    # collect2, so additional links can be useful in future.
9905    if test "$aix_use_runtimelinking" = yes; then
9906      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9907      # instead of lib<name>.a to let people know that these are not
9908      # typical AIX shared libraries.
9909      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9910    else
9911      # We preserve .a as extension for shared libraries through AIX4.2
9912      # and later when we are not doing run time linking.
9913      library_names_spec='${libname}${release}.a $libname.a'
9914      soname_spec='${libname}${release}${shared_ext}$major'
9915    fi
9916    shlibpath_var=LIBPATH
9917  fi
9918  ;;
9919
9920amigaos*)
9921  library_names_spec='$libname.ixlibrary $libname.a'
9922  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9923  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'
9924  ;;
9925
9926beos*)
9927  library_names_spec='${libname}${shared_ext}'
9928  dynamic_linker="$host_os ld.so"
9929  shlibpath_var=LIBRARY_PATH
9930  ;;
9931
9932bsdi[45]*)
9933  version_type=linux
9934  need_version=no
9935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936  soname_spec='${libname}${release}${shared_ext}$major'
9937  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9938  shlibpath_var=LD_LIBRARY_PATH
9939  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9940  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9941  # the default ld.so.conf also contains /usr/contrib/lib and
9942  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9943  # libtool to hard-code these into programs
9944  ;;
9945
9946cygwin* | mingw* | pw32*)
9947  version_type=windows
9948  shrext_cmds=".dll"
9949  need_version=no
9950  need_lib_prefix=no
9951
9952  case $GCC,$host_os in
9953  yes,cygwin* | yes,mingw* | yes,pw32*)
9954    library_names_spec='$libname.dll.a'
9955    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9956    postinstall_cmds='base_file=`basename \${file}`~
9957      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9958      dldir=$destdir/`dirname \$dlpath`~
9959      test -d \$dldir || mkdir -p \$dldir~
9960      $install_prog $dir/$dlname \$dldir/$dlname~
9961      chmod a+x \$dldir/$dlname'
9962    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9963      dlpath=$dir/\$dldll~
9964       $rm \$dlpath'
9965    shlibpath_overrides_runpath=yes
9966
9967    case $host_os in
9968    cygwin*)
9969      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9970      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9971      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9972      ;;
9973    mingw*)
9974      # MinGW DLLs use traditional 'lib' prefix
9975      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9976      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9977      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9978        # It is most probably a Windows format PATH printed by
9979        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9980        # path with ; separators, and with drive letters. We can handle the
9981        # drive letters (cygwin fileutils understands them), so leave them,
9982        # especially as we might pass files found there to a mingw objdump,
9983        # which wouldn't understand a cygwinified path. Ahh.
9984        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9985      else
9986        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9987      fi
9988      ;;
9989    pw32*)
9990      # pw32 DLLs use 'pw' prefix rather than 'lib'
9991      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9992      ;;
9993    esac
9994    ;;
9995
9996  *)
9997    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9998    ;;
9999  esac
10000  dynamic_linker='Win32 ld.exe'
10001  # FIXME: first we should search . and the directory the executable is in
10002  shlibpath_var=PATH
10003  ;;
10004
10005darwin* | rhapsody*)
10006  dynamic_linker="$host_os dyld"
10007  version_type=darwin
10008  need_lib_prefix=no
10009  need_version=no
10010  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10011  soname_spec='${libname}${release}${major}$shared_ext'
10012  shlibpath_overrides_runpath=yes
10013  shlibpath_var=DYLD_LIBRARY_PATH
10014  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10015  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10016  if test "$GCC" = yes; then
10017    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"`
10018  else
10019    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10020  fi
10021  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10022  ;;
10023
10024dgux*)
10025  version_type=linux
10026  need_lib_prefix=no
10027  need_version=no
10028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10029  soname_spec='${libname}${release}${shared_ext}$major'
10030  shlibpath_var=LD_LIBRARY_PATH
10031  ;;
10032
10033freebsd1*)
10034  dynamic_linker=no
10035  ;;
10036
10037kfreebsd*-gnu)
10038  version_type=linux
10039  need_lib_prefix=no
10040  need_version=no
10041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10042  soname_spec='${libname}${release}${shared_ext}$major'
10043  shlibpath_var=LD_LIBRARY_PATH
10044  shlibpath_overrides_runpath=no
10045  hardcode_into_libs=yes
10046  dynamic_linker='GNU ld.so'
10047  ;;
10048
10049freebsd* | dragonfly*)
10050  # DragonFly does not have aout.  When/if they implement a new
10051  # versioning mechanism, adjust this.
10052  if test -x /usr/bin/objformat; then
10053    objformat=`/usr/bin/objformat`
10054  else
10055    case $host_os in
10056    freebsd[123]*) objformat=aout ;;
10057    *) objformat=elf ;;
10058    esac
10059  fi
10060  version_type=freebsd-$objformat
10061  case $version_type in
10062    freebsd-elf*)
10063      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10064      need_version=no
10065      need_lib_prefix=no
10066      ;;
10067    freebsd-*)
10068      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10069      need_version=yes
10070      ;;
10071  esac
10072  shlibpath_var=LD_LIBRARY_PATH
10073  case $host_os in
10074  freebsd2*)
10075    shlibpath_overrides_runpath=yes
10076    ;;
10077  freebsd3.[01]* | freebsdelf3.[01]*)
10078    shlibpath_overrides_runpath=yes
10079    hardcode_into_libs=yes
10080    ;;
10081  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10082  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10083    shlibpath_overrides_runpath=no
10084    hardcode_into_libs=yes
10085    ;;
10086  freebsd*) # from 4.6 on
10087    shlibpath_overrides_runpath=yes
10088    hardcode_into_libs=yes
10089    ;;
10090  esac
10091  ;;
10092
10093gnu*)
10094  version_type=linux
10095  need_lib_prefix=no
10096  need_version=no
10097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10098  soname_spec='${libname}${release}${shared_ext}$major'
10099  shlibpath_var=LD_LIBRARY_PATH
10100  hardcode_into_libs=yes
10101  ;;
10102
10103hpux9* | hpux10* | hpux11*)
10104  # Give a soname corresponding to the major version so that dld.sl refuses to
10105  # link against other versions.
10106  version_type=sunos
10107  need_lib_prefix=no
10108  need_version=no
10109  case $host_cpu in
10110  ia64*)
10111    shrext_cmds='.so'
10112    hardcode_into_libs=yes
10113    dynamic_linker="$host_os dld.so"
10114    shlibpath_var=LD_LIBRARY_PATH
10115    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10116    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117    soname_spec='${libname}${release}${shared_ext}$major'
10118    if test "X$HPUX_IA64_MODE" = X32; then
10119      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10120    else
10121      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10122    fi
10123    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10124    ;;
10125   hppa*64*)
10126     shrext_cmds='.sl'
10127     hardcode_into_libs=yes
10128     dynamic_linker="$host_os dld.sl"
10129     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10130     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10131     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10132     soname_spec='${libname}${release}${shared_ext}$major'
10133     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10134     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10135     ;;
10136   *)
10137    shrext_cmds='.sl'
10138    dynamic_linker="$host_os dld.sl"
10139    shlibpath_var=SHLIB_PATH
10140    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10141    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142    soname_spec='${libname}${release}${shared_ext}$major'
10143    ;;
10144  esac
10145  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10146  postinstall_cmds='chmod 555 $lib'
10147  ;;
10148
10149interix3*)
10150  version_type=linux
10151  need_lib_prefix=no
10152  need_version=no
10153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154  soname_spec='${libname}${release}${shared_ext}$major'
10155  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10156  shlibpath_var=LD_LIBRARY_PATH
10157  shlibpath_overrides_runpath=no
10158  hardcode_into_libs=yes
10159  ;;
10160
10161irix5* | irix6* | nonstopux*)
10162  case $host_os in
10163    nonstopux*) version_type=nonstopux ;;
10164    *)
10165        if test "$lt_cv_prog_gnu_ld" = yes; then
10166                version_type=linux
10167        else
10168                version_type=irix
10169        fi ;;
10170  esac
10171  need_lib_prefix=no
10172  need_version=no
10173  soname_spec='${libname}${release}${shared_ext}$major'
10174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10175  case $host_os in
10176  irix5* | nonstopux*)
10177    libsuff= shlibsuff=
10178    ;;
10179  *)
10180    case $LD in # libtool.m4 will add one of these switches to LD
10181    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10182      libsuff= shlibsuff= libmagic=32-bit;;
10183    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10184      libsuff=32 shlibsuff=N32 libmagic=N32;;
10185    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10186      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10187    *) libsuff= shlibsuff= libmagic=never-match;;
10188    esac
10189    ;;
10190  esac
10191  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10192  shlibpath_overrides_runpath=no
10193  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10194  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10195  hardcode_into_libs=yes
10196  ;;
10197
10198# No shared lib support for Linux oldld, aout, or coff.
10199linux*oldld* | linux*aout* | linux*coff*)
10200  dynamic_linker=no
10201  ;;
10202
10203# This must be Linux ELF.
10204linux*)
10205  version_type=linux
10206  need_lib_prefix=no
10207  need_version=no
10208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209  soname_spec='${libname}${release}${shared_ext}$major'
10210  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211  shlibpath_var=LD_LIBRARY_PATH
10212  shlibpath_overrides_runpath=no
10213  # This implies no fast_install, which is unacceptable.
10214  # Some rework will be needed to allow for fast_install
10215  # before this can be enabled.
10216  hardcode_into_libs=yes
10217
10218  # Append ld.so.conf contents to the search path
10219  if test -f /etc/ld.so.conf; then
10220    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' ' '`
10221    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10222  fi
10223
10224  # We used to test for /lib/ld.so.1 and disable shared libraries on
10225  # powerpc, because MkLinux only supported shared libraries with the
10226  # GNU dynamic linker.  Since this was broken with cross compilers,
10227  # most powerpc-linux boxes support dynamic linking these days and
10228  # people can always --disable-shared, the test was removed, and we
10229  # assume the GNU/Linux dynamic linker is in use.
10230  dynamic_linker='GNU/Linux ld.so'
10231  ;;
10232
10233knetbsd*-gnu)
10234  version_type=linux
10235  need_lib_prefix=no
10236  need_version=no
10237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10238  soname_spec='${libname}${release}${shared_ext}$major'
10239  shlibpath_var=LD_LIBRARY_PATH
10240  shlibpath_overrides_runpath=no
10241  hardcode_into_libs=yes
10242  dynamic_linker='GNU ld.so'
10243  ;;
10244
10245netbsd*)
10246  version_type=sunos
10247  need_lib_prefix=no
10248  need_version=no
10249  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10250    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252    dynamic_linker='NetBSD (a.out) ld.so'
10253  else
10254    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10255    soname_spec='${libname}${release}${shared_ext}$major'
10256    dynamic_linker='NetBSD ld.elf_so'
10257  fi
10258  shlibpath_var=LD_LIBRARY_PATH
10259  shlibpath_overrides_runpath=yes
10260  hardcode_into_libs=yes
10261  ;;
10262
10263newsos6)
10264  version_type=linux
10265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266  shlibpath_var=LD_LIBRARY_PATH
10267  shlibpath_overrides_runpath=yes
10268  ;;
10269
10270nto-qnx*)
10271  version_type=linux
10272  need_lib_prefix=no
10273  need_version=no
10274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275  soname_spec='${libname}${release}${shared_ext}$major'
10276  shlibpath_var=LD_LIBRARY_PATH
10277  shlibpath_overrides_runpath=yes
10278  ;;
10279
10280openbsd*)
10281  version_type=sunos
10282  sys_lib_dlsearch_path_spec="/usr/lib"
10283  need_lib_prefix=no
10284  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10285  case $host_os in
10286    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10287    *)                         need_version=no  ;;
10288  esac
10289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10290  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10291  shlibpath_var=LD_LIBRARY_PATH
10292  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10293    case $host_os in
10294      openbsd2.[89] | openbsd2.[89].*)
10295        shlibpath_overrides_runpath=no
10296        ;;
10297      *)
10298        shlibpath_overrides_runpath=yes
10299        ;;
10300      esac
10301  else
10302    shlibpath_overrides_runpath=yes
10303  fi
10304  ;;
10305
10306os2*)
10307  libname_spec='$name'
10308  shrext_cmds=".dll"
10309  need_lib_prefix=no
10310  library_names_spec='$libname${shared_ext} $libname.a'
10311  dynamic_linker='OS/2 ld.exe'
10312  shlibpath_var=LIBPATH
10313  ;;
10314
10315osf3* | osf4* | osf5*)
10316  version_type=osf
10317  need_lib_prefix=no
10318  need_version=no
10319  soname_spec='${libname}${release}${shared_ext}$major'
10320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10321  shlibpath_var=LD_LIBRARY_PATH
10322  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10323  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10324  ;;
10325
10326solaris*)
10327  version_type=linux
10328  need_lib_prefix=no
10329  need_version=no
10330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331  soname_spec='${libname}${release}${shared_ext}$major'
10332  shlibpath_var=LD_LIBRARY_PATH
10333  shlibpath_overrides_runpath=yes
10334  hardcode_into_libs=yes
10335  # ldd complains unless libraries are executable
10336  postinstall_cmds='chmod +x $lib'
10337  ;;
10338
10339sunos4*)
10340  version_type=sunos
10341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10342  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10343  shlibpath_var=LD_LIBRARY_PATH
10344  shlibpath_overrides_runpath=yes
10345  if test "$with_gnu_ld" = yes; then
10346    need_lib_prefix=no
10347  fi
10348  need_version=yes
10349  ;;
10350
10351sysv4 | sysv4.3*)
10352  version_type=linux
10353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354  soname_spec='${libname}${release}${shared_ext}$major'
10355  shlibpath_var=LD_LIBRARY_PATH
10356  case $host_vendor in
10357    sni)
10358      shlibpath_overrides_runpath=no
10359      need_lib_prefix=no
10360      export_dynamic_flag_spec='${wl}-Blargedynsym'
10361      runpath_var=LD_RUN_PATH
10362      ;;
10363    siemens)
10364      need_lib_prefix=no
10365      ;;
10366    motorola)
10367      need_lib_prefix=no
10368      need_version=no
10369      shlibpath_overrides_runpath=no
10370      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10371      ;;
10372  esac
10373  ;;
10374
10375sysv4*MP*)
10376  if test -d /usr/nec ;then
10377    version_type=linux
10378    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10379    soname_spec='$libname${shared_ext}.$major'
10380    shlibpath_var=LD_LIBRARY_PATH
10381  fi
10382  ;;
10383
10384sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10385  version_type=freebsd-elf
10386  need_lib_prefix=no
10387  need_version=no
10388  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10389  soname_spec='${libname}${release}${shared_ext}$major'
10390  shlibpath_var=LD_LIBRARY_PATH
10391  hardcode_into_libs=yes
10392  if test "$with_gnu_ld" = yes; then
10393    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10394    shlibpath_overrides_runpath=no
10395  else
10396    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10397    shlibpath_overrides_runpath=yes
10398    case $host_os in
10399      sco3.2v5*)
10400        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10401        ;;
10402    esac
10403  fi
10404  sys_lib_dlsearch_path_spec='/usr/lib'
10405  ;;
10406
10407uts4*)
10408  version_type=linux
10409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10410  soname_spec='${libname}${release}${shared_ext}$major'
10411  shlibpath_var=LD_LIBRARY_PATH
10412  ;;
10413
10414*)
10415  dynamic_linker=no
10416  ;;
10417esac
10418echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10419echo "${ECHO_T}$dynamic_linker" >&6
10420test "$dynamic_linker" = no && can_build_shared=no
10421
10422variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10423if test "$GCC" = yes; then
10424  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10425fi
10426
10427echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10428echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10429hardcode_action=
10430if test -n "$hardcode_libdir_flag_spec" || \
10431   test -n "$runpath_var" || \
10432   test "X$hardcode_automatic" = "Xyes" ; then
10433
10434  # We can hardcode non-existant directories.
10435  if test "$hardcode_direct" != no &&
10436     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10437     # have to relink, otherwise we might link with an installed library
10438     # when we should be linking with a yet-to-be-installed one
10439     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10440     test "$hardcode_minus_L" != no; then
10441    # Linking always hardcodes the temporary library directory.
10442    hardcode_action=relink
10443  else
10444    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10445    hardcode_action=immediate
10446  fi
10447else
10448  # We cannot hardcode anything, or else we can only hardcode existing
10449  # directories.
10450  hardcode_action=unsupported
10451fi
10452echo "$as_me:$LINENO: result: $hardcode_action" >&5
10453echo "${ECHO_T}$hardcode_action" >&6
10454
10455if test "$hardcode_action" = relink; then
10456  # Fast installation is not supported
10457  enable_fast_install=no
10458elif test "$shlibpath_overrides_runpath" = yes ||
10459     test "$enable_shared" = no; then
10460  # Fast installation is not necessary
10461  enable_fast_install=needless
10462fi
10463
10464striplib=
10465old_striplib=
10466echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10467echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10468if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10469  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10470  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10471  echo "$as_me:$LINENO: result: yes" >&5
10472echo "${ECHO_T}yes" >&6
10473else
10474# FIXME - insert some real tests, host_os isn't really good enough
10475  case $host_os in
10476   darwin*)
10477       if test -n "$STRIP" ; then
10478         striplib="$STRIP -x"
10479         echo "$as_me:$LINENO: result: yes" >&5
10480echo "${ECHO_T}yes" >&6
10481       else
10482  echo "$as_me:$LINENO: result: no" >&5
10483echo "${ECHO_T}no" >&6
10484fi
10485       ;;
10486   *)
10487  echo "$as_me:$LINENO: result: no" >&5
10488echo "${ECHO_T}no" >&6
10489    ;;
10490  esac
10491fi
10492
10493if test "x$enable_dlopen" != xyes; then
10494  enable_dlopen=unknown
10495  enable_dlopen_self=unknown
10496  enable_dlopen_self_static=unknown
10497else
10498  lt_cv_dlopen=no
10499  lt_cv_dlopen_libs=
10500
10501  case $host_os in
10502  beos*)
10503    lt_cv_dlopen="load_add_on"
10504    lt_cv_dlopen_libs=
10505    lt_cv_dlopen_self=yes
10506    ;;
10507
10508  mingw* | pw32*)
10509    lt_cv_dlopen="LoadLibrary"
10510    lt_cv_dlopen_libs=
10511   ;;
10512
10513  cygwin*)
10514    lt_cv_dlopen="dlopen"
10515    lt_cv_dlopen_libs=
10516   ;;
10517
10518  darwin*)
10519  # if libdl is installed we need to link against it
10520    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10521echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10522if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10523  echo $ECHO_N "(cached) $ECHO_C" >&6
10524else
10525  ac_check_lib_save_LIBS=$LIBS
10526LIBS="-ldl  $LIBS"
10527cat >conftest.$ac_ext <<_ACEOF
10528/* confdefs.h.  */
10529_ACEOF
10530cat confdefs.h >>conftest.$ac_ext
10531cat >>conftest.$ac_ext <<_ACEOF
10532/* end confdefs.h.  */
10533
10534/* Override any gcc2 internal prototype to avoid an error.  */
10535#ifdef __cplusplus
10536extern "C"
10537#endif
10538/* We use char because int might match the return type of a gcc2
10539   builtin and then its argument prototype would still apply.  */
10540char dlopen ();
10541int
10542main ()
10543{
10544dlopen ();
10545  ;
10546  return 0;
10547}
10548_ACEOF
10549rm -f conftest.$ac_objext conftest$ac_exeext
10550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10551  (eval $ac_link) 2>conftest.er1
10552  ac_status=$?
10553  grep -v '^ *+' conftest.er1 >conftest.err
10554  rm -f conftest.er1
10555  cat conftest.err >&5
10556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557  (exit $ac_status); } &&
10558         { ac_try='test -z "$ac_c_werror_flag"
10559                         || test ! -s conftest.err'
10560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561  (eval $ac_try) 2>&5
10562  ac_status=$?
10563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564  (exit $ac_status); }; } &&
10565         { ac_try='test -s conftest$ac_exeext'
10566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10567  (eval $ac_try) 2>&5
10568  ac_status=$?
10569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570  (exit $ac_status); }; }; then
10571  ac_cv_lib_dl_dlopen=yes
10572else
10573  echo "$as_me: failed program was:" >&5
10574sed 's/^/| /' conftest.$ac_ext >&5
10575
10576ac_cv_lib_dl_dlopen=no
10577fi
10578rm -f conftest.err conftest.$ac_objext \
10579      conftest$ac_exeext conftest.$ac_ext
10580LIBS=$ac_check_lib_save_LIBS
10581fi
10582echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10583echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10584if test $ac_cv_lib_dl_dlopen = yes; then
10585  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10586else
10587
10588    lt_cv_dlopen="dyld"
10589    lt_cv_dlopen_libs=
10590    lt_cv_dlopen_self=yes
10591
10592fi
10593
10594   ;;
10595
10596  *)
10597    echo "$as_me:$LINENO: checking for shl_load" >&5
10598echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10599if test "${ac_cv_func_shl_load+set}" = set; then
10600  echo $ECHO_N "(cached) $ECHO_C" >&6
10601else
10602  cat >conftest.$ac_ext <<_ACEOF
10603/* confdefs.h.  */
10604_ACEOF
10605cat confdefs.h >>conftest.$ac_ext
10606cat >>conftest.$ac_ext <<_ACEOF
10607/* end confdefs.h.  */
10608/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10609   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10610#define shl_load innocuous_shl_load
10611
10612/* System header to define __stub macros and hopefully few prototypes,
10613    which can conflict with char shl_load (); below.
10614    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10615    <limits.h> exists even on freestanding compilers.  */
10616
10617#ifdef __STDC__
10618# include <limits.h>
10619#else
10620# include <assert.h>
10621#endif
10622
10623#undef shl_load
10624
10625/* Override any gcc2 internal prototype to avoid an error.  */
10626#ifdef __cplusplus
10627extern "C"
10628{
10629#endif
10630/* We use char because int might match the return type of a gcc2
10631   builtin and then its argument prototype would still apply.  */
10632char shl_load ();
10633/* The GNU C library defines this for functions which it implements
10634    to always fail with ENOSYS.  Some functions are actually named
10635    something starting with __ and the normal name is an alias.  */
10636#if defined (__stub_shl_load) || defined (__stub___shl_load)
10637choke me
10638#else
10639char (*f) () = shl_load;
10640#endif
10641#ifdef __cplusplus
10642}
10643#endif
10644
10645int
10646main ()
10647{
10648return f != shl_load;
10649  ;
10650  return 0;
10651}
10652_ACEOF
10653rm -f conftest.$ac_objext conftest$ac_exeext
10654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655  (eval $ac_link) 2>conftest.er1
10656  ac_status=$?
10657  grep -v '^ *+' conftest.er1 >conftest.err
10658  rm -f conftest.er1
10659  cat conftest.err >&5
10660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661  (exit $ac_status); } &&
10662         { ac_try='test -z "$ac_c_werror_flag"
10663                         || test ! -s conftest.err'
10664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665  (eval $ac_try) 2>&5
10666  ac_status=$?
10667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668  (exit $ac_status); }; } &&
10669         { ac_try='test -s conftest$ac_exeext'
10670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671  (eval $ac_try) 2>&5
10672  ac_status=$?
10673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674  (exit $ac_status); }; }; then
10675  ac_cv_func_shl_load=yes
10676else
10677  echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
10679
10680ac_cv_func_shl_load=no
10681fi
10682rm -f conftest.err conftest.$ac_objext \
10683      conftest$ac_exeext conftest.$ac_ext
10684fi
10685echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10686echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10687if test $ac_cv_func_shl_load = yes; then
10688  lt_cv_dlopen="shl_load"
10689else
10690  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10691echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10692if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10693  echo $ECHO_N "(cached) $ECHO_C" >&6
10694else
10695  ac_check_lib_save_LIBS=$LIBS
10696LIBS="-ldld  $LIBS"
10697cat >conftest.$ac_ext <<_ACEOF
10698/* confdefs.h.  */
10699_ACEOF
10700cat confdefs.h >>conftest.$ac_ext
10701cat >>conftest.$ac_ext <<_ACEOF
10702/* end confdefs.h.  */
10703
10704/* Override any gcc2 internal prototype to avoid an error.  */
10705#ifdef __cplusplus
10706extern "C"
10707#endif
10708/* We use char because int might match the return type of a gcc2
10709   builtin and then its argument prototype would still apply.  */
10710char shl_load ();
10711int
10712main ()
10713{
10714shl_load ();
10715  ;
10716  return 0;
10717}
10718_ACEOF
10719rm -f conftest.$ac_objext conftest$ac_exeext
10720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10721  (eval $ac_link) 2>conftest.er1
10722  ac_status=$?
10723  grep -v '^ *+' conftest.er1 >conftest.err
10724  rm -f conftest.er1
10725  cat conftest.err >&5
10726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727  (exit $ac_status); } &&
10728         { ac_try='test -z "$ac_c_werror_flag"
10729                         || test ! -s conftest.err'
10730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10731  (eval $ac_try) 2>&5
10732  ac_status=$?
10733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734  (exit $ac_status); }; } &&
10735         { ac_try='test -s conftest$ac_exeext'
10736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10737  (eval $ac_try) 2>&5
10738  ac_status=$?
10739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740  (exit $ac_status); }; }; then
10741  ac_cv_lib_dld_shl_load=yes
10742else
10743  echo "$as_me: failed program was:" >&5
10744sed 's/^/| /' conftest.$ac_ext >&5
10745
10746ac_cv_lib_dld_shl_load=no
10747fi
10748rm -f conftest.err conftest.$ac_objext \
10749      conftest$ac_exeext conftest.$ac_ext
10750LIBS=$ac_check_lib_save_LIBS
10751fi
10752echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10753echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10754if test $ac_cv_lib_dld_shl_load = yes; then
10755  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10756else
10757  echo "$as_me:$LINENO: checking for dlopen" >&5
10758echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10759if test "${ac_cv_func_dlopen+set}" = set; then
10760  echo $ECHO_N "(cached) $ECHO_C" >&6
10761else
10762  cat >conftest.$ac_ext <<_ACEOF
10763/* confdefs.h.  */
10764_ACEOF
10765cat confdefs.h >>conftest.$ac_ext
10766cat >>conftest.$ac_ext <<_ACEOF
10767/* end confdefs.h.  */
10768/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10769   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10770#define dlopen innocuous_dlopen
10771
10772/* System header to define __stub macros and hopefully few prototypes,
10773    which can conflict with char dlopen (); below.
10774    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
107