source: stable/1.7/configure @ 1176

Last change on this file since 1176 was 1165, checked in by forrest, 12 years ago

run_autotools

  • Property svn:executable set to *
File size: 722.8 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp 0.1.
5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='0.1'
434PACKAGE_STRING='Clp 0.1'
435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all CoinUtils"
477ac_subdirs_all="$ac_subdirs_all Data/Netlib"
478ac_subdirs_all="$ac_subdirs_all Data/Sample"
479ac_subdirs_all="$ac_subdirs_all Clp"
480ac_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 COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
481ac_subst_files=''
482
483# Initialize some variables set by options.
484ac_init_help=
485ac_init_version=false
486# The variables have the same names as the options, with
487# dashes changed to underlines.
488cache_file=/dev/null
489exec_prefix=NONE
490no_create=
491no_recursion=
492prefix=NONE
493program_prefix=NONE
494program_suffix=NONE
495program_transform_name=s,x,x,
496silent=
497site=
498srcdir=
499verbose=
500x_includes=NONE
501x_libraries=NONE
502
503# Installation directory options.
504# These are left unexpanded so users can "make install exec_prefix=/foo"
505# and all the variables that are supposed to be based on exec_prefix
506# by default will actually change.
507# Use braces instead of parens because sh, perl, etc. also accept them.
508bindir='${exec_prefix}/bin'
509sbindir='${exec_prefix}/sbin'
510libexecdir='${exec_prefix}/libexec'
511datadir='${prefix}/share'
512sysconfdir='${prefix}/etc'
513sharedstatedir='${prefix}/com'
514localstatedir='${prefix}/var'
515libdir='${exec_prefix}/lib'
516includedir='${prefix}/include'
517oldincludedir='/usr/include'
518infodir='${prefix}/info'
519mandir='${prefix}/man'
520
521ac_prev=
522for ac_option
523do
524  # If the previous option needs an argument, assign it.
525  if test -n "$ac_prev"; then
526    eval "$ac_prev=\$ac_option"
527    ac_prev=
528    continue
529  fi
530
531  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532
533  # Accept the important Cygnus configure options, so we can diagnose typos.
534
535  case $ac_option in
536
537  -bindir | --bindir | --bindi | --bind | --bin | --bi)
538    ac_prev=bindir ;;
539  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540    bindir=$ac_optarg ;;
541
542  -build | --build | --buil | --bui | --bu)
543    ac_prev=build_alias ;;
544  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545    build_alias=$ac_optarg ;;
546
547  -cache-file | --cache-file | --cache-fil | --cache-fi \
548  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549    ac_prev=cache_file ;;
550  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552    cache_file=$ac_optarg ;;
553
554  --config-cache | -C)
555    cache_file=config.cache ;;
556
557  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558    ac_prev=datadir ;;
559  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560  | --da=*)
561    datadir=$ac_optarg ;;
562
563  -disable-* | --disable-*)
564    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565    # Reject names that are not valid shell variable names.
566    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568   { (exit 1); exit 1; }; }
569    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570    eval "enable_$ac_feature=no" ;;
571
572  -enable-* | --enable-*)
573    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574    # Reject names that are not valid shell variable names.
575    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577   { (exit 1); exit 1; }; }
578    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579    case $ac_option in
580      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581      *) ac_optarg=yes ;;
582    esac
583    eval "enable_$ac_feature='$ac_optarg'" ;;
584
585  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587  | --exec | --exe | --ex)
588    ac_prev=exec_prefix ;;
589  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591  | --exec=* | --exe=* | --ex=*)
592    exec_prefix=$ac_optarg ;;
593
594  -gas | --gas | --ga | --g)
595    # Obsolete; use --with-gas.
596    with_gas=yes ;;
597
598  -help | --help | --hel | --he | -h)
599    ac_init_help=long ;;
600  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601    ac_init_help=recursive ;;
602  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603    ac_init_help=short ;;
604
605  -host | --host | --hos | --ho)
606    ac_prev=host_alias ;;
607  -host=* | --host=* | --hos=* | --ho=*)
608    host_alias=$ac_optarg ;;
609
610  -includedir | --includedir | --includedi | --included | --include \
611  | --includ | --inclu | --incl | --inc)
612    ac_prev=includedir ;;
613  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614  | --includ=* | --inclu=* | --incl=* | --inc=*)
615    includedir=$ac_optarg ;;
616
617  -infodir | --infodir | --infodi | --infod | --info | --inf)
618    ac_prev=infodir ;;
619  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620    infodir=$ac_optarg ;;
621
622  -libdir | --libdir | --libdi | --libd)
623    ac_prev=libdir ;;
624  -libdir=* | --libdir=* | --libdi=* | --libd=*)
625    libdir=$ac_optarg ;;
626
627  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628  | --libexe | --libex | --libe)
629    ac_prev=libexecdir ;;
630  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631  | --libexe=* | --libex=* | --libe=*)
632    libexecdir=$ac_optarg ;;
633
634  -localstatedir | --localstatedir | --localstatedi | --localstated \
635  | --localstate | --localstat | --localsta | --localst \
636  | --locals | --local | --loca | --loc | --lo)
637    ac_prev=localstatedir ;;
638  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641    localstatedir=$ac_optarg ;;
642
643  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644    ac_prev=mandir ;;
645  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646    mandir=$ac_optarg ;;
647
648  -nfp | --nfp | --nf)
649    # Obsolete; use --without-fp.
650    with_fp=no ;;
651
652  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653  | --no-cr | --no-c | -n)
654    no_create=yes ;;
655
656  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658    no_recursion=yes ;;
659
660  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662  | --oldin | --oldi | --old | --ol | --o)
663    ac_prev=oldincludedir ;;
664  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667    oldincludedir=$ac_optarg ;;
668
669  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670    ac_prev=prefix ;;
671  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672    prefix=$ac_optarg ;;
673
674  -program-prefix | --program-prefix | --program-prefi | --program-pref \
675  | --program-pre | --program-pr | --program-p)
676    ac_prev=program_prefix ;;
677  -program-prefix=* | --program-prefix=* | --program-prefi=* \
678  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679    program_prefix=$ac_optarg ;;
680
681  -program-suffix | --program-suffix | --program-suffi | --program-suff \
682  | --program-suf | --program-su | --program-s)
683    ac_prev=program_suffix ;;
684  -program-suffix=* | --program-suffix=* | --program-suffi=* \
685  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686    program_suffix=$ac_optarg ;;
687
688  -program-transform-name | --program-transform-name \
689  | --program-transform-nam | --program-transform-na \
690  | --program-transform-n | --program-transform- \
691  | --program-transform | --program-transfor \
692  | --program-transfo | --program-transf \
693  | --program-trans | --program-tran \
694  | --progr-tra | --program-tr | --program-t)
695    ac_prev=program_transform_name ;;
696  -program-transform-name=* | --program-transform-name=* \
697  | --program-transform-nam=* | --program-transform-na=* \
698  | --program-transform-n=* | --program-transform-=* \
699  | --program-transform=* | --program-transfor=* \
700  | --program-transfo=* | --program-transf=* \
701  | --program-trans=* | --program-tran=* \
702  | --progr-tra=* | --program-tr=* | --program-t=*)
703    program_transform_name=$ac_optarg ;;
704
705  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706  | -silent | --silent | --silen | --sile | --sil)
707    silent=yes ;;
708
709  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710    ac_prev=sbindir ;;
711  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712  | --sbi=* | --sb=*)
713    sbindir=$ac_optarg ;;
714
715  -sharedstatedir | --sharedstatedir | --sharedstatedi \
716  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717  | --sharedst | --shareds | --shared | --share | --shar \
718  | --sha | --sh)
719    ac_prev=sharedstatedir ;;
720  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723  | --sha=* | --sh=*)
724    sharedstatedir=$ac_optarg ;;
725
726  -site | --site | --sit)
727    ac_prev=site ;;
728  -site=* | --site=* | --sit=*)
729    site=$ac_optarg ;;
730
731  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732    ac_prev=srcdir ;;
733  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734    srcdir=$ac_optarg ;;
735
736  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737  | --syscon | --sysco | --sysc | --sys | --sy)
738    ac_prev=sysconfdir ;;
739  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741    sysconfdir=$ac_optarg ;;
742
743  -target | --target | --targe | --targ | --tar | --ta | --t)
744    ac_prev=target_alias ;;
745  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746    target_alias=$ac_optarg ;;
747
748  -v | -verbose | --verbose | --verbos | --verbo | --verb)
749    verbose=yes ;;
750
751  -version | --version | --versio | --versi | --vers | -V)
752    ac_init_version=: ;;
753
754  -with-* | --with-*)
755    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package| sed 's/-/_/g'`
761    case $ac_option in
762      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763      *) ac_optarg=yes ;;
764    esac
765    eval "with_$ac_package='$ac_optarg'" ;;
766
767  -without-* | --without-*)
768    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769    # Reject names that are not valid shell variable names.
770    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771      { echo "$as_me: error: invalid package name: $ac_package" >&2
772   { (exit 1); exit 1; }; }
773    ac_package=`echo $ac_package | sed 's/-/_/g'`
774    eval "with_$ac_package=no" ;;
775
776  --x)
777    # Obsolete; use --with-x.
778    with_x=yes ;;
779
780  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781  | --x-incl | --x-inc | --x-in | --x-i)
782    ac_prev=x_includes ;;
783  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785    x_includes=$ac_optarg ;;
786
787  -x-libraries | --x-libraries | --x-librarie | --x-librari \
788  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789    ac_prev=x_libraries ;;
790  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792    x_libraries=$ac_optarg ;;
793
794  -*) { echo "$as_me: error: unrecognized option: $ac_option
795Try \`$0 --help' for more information." >&2
796   { (exit 1); exit 1; }; }
797    ;;
798
799  *=*)
800    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801    # Reject names that are not valid shell variable names.
802    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804   { (exit 1); exit 1; }; }
805    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806    eval "$ac_envvar='$ac_optarg'"
807    export $ac_envvar ;;
808
809  *)
810    # FIXME: should be removed in autoconf 3.0.
811    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
815    ;;
816
817  esac
818done
819
820if test -n "$ac_prev"; then
821  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822  { echo "$as_me: error: missing argument to $ac_option" >&2
823   { (exit 1); exit 1; }; }
824fi
825
826# Be sure to have absolute paths.
827for ac_var in exec_prefix prefix
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# Be sure to have absolute paths.
838for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
839              localstatedir libdir includedir oldincludedir infodir mandir
840do
841  eval ac_val=$`echo $ac_var`
842  case $ac_val in
843    [\\/$]* | ?:[\\/]* ) ;;
844    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845   { (exit 1); exit 1; }; };;
846  esac
847done
848
849# There might be people who depend on the old broken behavior: `$host'
850# used to hold the argument of --host etc.
851# FIXME: To remove some day.
852build=$build_alias
853host=$host_alias
854target=$target_alias
855
856# FIXME: To remove some day.
857if test "x$host_alias" != x; then
858  if test "x$build_alias" = x; then
859    cross_compiling=maybe
860    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861    If a cross compiler is detected then cross compile mode will be used." >&2
862  elif test "x$build_alias" != "x$host_alias"; then
863    cross_compiling=yes
864  fi
865fi
866
867ac_tool_prefix=
868test -n "$host_alias" && ac_tool_prefix=$host_alias-
869
870test "$silent" = yes && exec 6>/dev/null
871
872
873# Find the source files, if location was not specified.
874if test -z "$srcdir"; then
875  ac_srcdir_defaulted=yes
876  # Try the directory containing this script, then its parent.
877  ac_confdir=`(dirname "$0") 2>/dev/null ||
878$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
879         X"$0" : 'X\(//\)[^/]' \| \
880         X"$0" : 'X\(//\)$' \| \
881         X"$0" : 'X\(/\)' \| \
882         .     : '\(.\)' 2>/dev/null ||
883echo X"$0" |
884    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886          /^X\(\/\/\)$/{ s//\1/; q; }
887          /^X\(\/\).*/{ s//\1/; q; }
888          s/.*/./; q'`
889  srcdir=$ac_confdir
890  if test ! -r $srcdir/$ac_unique_file; then
891    srcdir=..
892  fi
893else
894  ac_srcdir_defaulted=no
895fi
896if test ! -r $srcdir/$ac_unique_file; then
897  if test "$ac_srcdir_defaulted" = yes; then
898    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899   { (exit 1); exit 1; }; }
900  else
901    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902   { (exit 1); exit 1; }; }
903  fi
904fi
905(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907   { (exit 1); exit 1; }; }
908srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909ac_env_build_alias_set=${build_alias+set}
910ac_env_build_alias_value=$build_alias
911ac_cv_env_build_alias_set=${build_alias+set}
912ac_cv_env_build_alias_value=$build_alias
913ac_env_host_alias_set=${host_alias+set}
914ac_env_host_alias_value=$host_alias
915ac_cv_env_host_alias_set=${host_alias+set}
916ac_cv_env_host_alias_value=$host_alias
917ac_env_target_alias_set=${target_alias+set}
918ac_env_target_alias_value=$target_alias
919ac_cv_env_target_alias_set=${target_alias+set}
920ac_cv_env_target_alias_value=$target_alias
921ac_env_CDEFS_set=${CDEFS+set}
922ac_env_CDEFS_value=$CDEFS
923ac_cv_env_CDEFS_set=${CDEFS+set}
924ac_cv_env_CDEFS_value=$CDEFS
925ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
926ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
927ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
928ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
929ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
930ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
931ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
932ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
933ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
934ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
935ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
936ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
937ac_env_CC_set=${CC+set}
938ac_env_CC_value=$CC
939ac_cv_env_CC_set=${CC+set}
940ac_cv_env_CC_value=$CC
941ac_env_CFLAGS_set=${CFLAGS+set}
942ac_env_CFLAGS_value=$CFLAGS
943ac_cv_env_CFLAGS_set=${CFLAGS+set}
944ac_cv_env_CFLAGS_value=$CFLAGS
945ac_env_LDFLAGS_set=${LDFLAGS+set}
946ac_env_LDFLAGS_value=$LDFLAGS
947ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
948ac_cv_env_LDFLAGS_value=$LDFLAGS
949ac_env_CPPFLAGS_set=${CPPFLAGS+set}
950ac_env_CPPFLAGS_value=$CPPFLAGS
951ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
952ac_cv_env_CPPFLAGS_value=$CPPFLAGS
953ac_env_MPICC_set=${MPICC+set}
954ac_env_MPICC_value=$MPICC
955ac_cv_env_MPICC_set=${MPICC+set}
956ac_cv_env_MPICC_value=$MPICC
957ac_env_CXXDEFS_set=${CXXDEFS+set}
958ac_env_CXXDEFS_value=$CXXDEFS
959ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
960ac_cv_env_CXXDEFS_value=$CXXDEFS
961ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
962ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
963ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
964ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
965ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
966ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
967ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
968ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
969ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
970ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
971ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
972ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
973ac_env_CXX_set=${CXX+set}
974ac_env_CXX_value=$CXX
975ac_cv_env_CXX_set=${CXX+set}
976ac_cv_env_CXX_value=$CXX
977ac_env_CXXFLAGS_set=${CXXFLAGS+set}
978ac_env_CXXFLAGS_value=$CXXFLAGS
979ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
980ac_cv_env_CXXFLAGS_value=$CXXFLAGS
981ac_env_MPICXX_set=${MPICXX+set}
982ac_env_MPICXX_value=$MPICXX
983ac_cv_env_MPICXX_set=${MPICXX+set}
984ac_cv_env_MPICXX_value=$MPICXX
985ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
986ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
987ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
988ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
989ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
990ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
991ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
992ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
993ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
994ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
995ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
996ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
997ac_env_F77_set=${F77+set}
998ac_env_F77_value=$F77
999ac_cv_env_F77_set=${F77+set}
1000ac_cv_env_F77_value=$F77
1001ac_env_FFLAGS_set=${FFLAGS+set}
1002ac_env_FFLAGS_value=$FFLAGS
1003ac_cv_env_FFLAGS_set=${FFLAGS+set}
1004ac_cv_env_FFLAGS_value=$FFLAGS
1005ac_env_MPIF77_set=${MPIF77+set}
1006ac_env_MPIF77_value=$MPIF77
1007ac_cv_env_MPIF77_set=${MPIF77+set}
1008ac_cv_env_MPIF77_value=$MPIF77
1009ac_env_CPP_set=${CPP+set}
1010ac_env_CPP_value=$CPP
1011ac_cv_env_CPP_set=${CPP+set}
1012ac_cv_env_CPP_value=$CPP
1013ac_env_CXXCPP_set=${CXXCPP+set}
1014ac_env_CXXCPP_value=$CXXCPP
1015ac_cv_env_CXXCPP_set=${CXXCPP+set}
1016ac_cv_env_CXXCPP_value=$CXXCPP
1017ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1018ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1019ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1020ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1021
1022#
1023# Report the --help message.
1024#
1025if test "$ac_init_help" = "long"; then
1026  # Omit some internal or obsolete options to make the list less imposing.
1027  # This message is too long to be a string in the A/UX 3.1 sh.
1028  cat <<_ACEOF
1029\`configure' configures Clp 0.1 to adapt to many kinds of systems.
1030
1031Usage: $0 [OPTION]... [VAR=VALUE]...
1032
1033To assign environment variables (e.g., CC, CFLAGS...), specify them as
1034VAR=VALUE.  See below for descriptions of some of the useful variables.
1035
1036Defaults for the options are specified in brackets.
1037
1038Configuration:
1039  -h, --help              display this help and exit
1040      --help=short        display options specific to this package
1041      --help=recursive    display the short help of all the included packages
1042  -V, --version           display version information and exit
1043  -q, --quiet, --silent   do not print \`checking...' messages
1044      --cache-file=FILE   cache test results in FILE [disabled]
1045  -C, --config-cache      alias for \`--cache-file=config.cache'
1046  -n, --no-create         do not create output files
1047      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1048
1049_ACEOF
1050
1051  cat <<_ACEOF
1052Installation directories:
1053  --prefix=PREFIX         install architecture-independent files in PREFIX
1054                          [$ac_default_prefix]
1055  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1056                          [PREFIX]
1057
1058By default, \`make install' will install all the files in
1059\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1060an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1061for instance \`--prefix=\$HOME'.
1062
1063For better control, use the options below.
1064
1065Fine tuning of the installation directories:
1066  --bindir=DIR           user executables [EPREFIX/bin]
1067  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1068  --libexecdir=DIR       program executables [EPREFIX/libexec]
1069  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1070  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1071  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1072  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1073  --libdir=DIR           object code libraries [EPREFIX/lib]
1074  --includedir=DIR       C header files [PREFIX/include]
1075  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1076  --infodir=DIR          info documentation [PREFIX/info]
1077  --mandir=DIR           man documentation [PREFIX/man]
1078_ACEOF
1079
1080  cat <<\_ACEOF
1081
1082Program names:
1083  --program-prefix=PREFIX            prepend PREFIX to installed program names
1084  --program-suffix=SUFFIX            append SUFFIX to installed program names
1085  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1086
1087System types:
1088  --build=BUILD     configure for building on BUILD [guessed]
1089  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1090_ACEOF
1091fi
1092
1093if test -n "$ac_init_help"; then
1094  case $ac_init_help in
1095     short | recursive ) echo "Configuration of Clp 0.1:";;
1096   esac
1097  cat <<\_ACEOF
1098
1099Optional Features:
1100  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1101  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1102  --enable-debug          compile all projects with debug options tests
1103  --enable-doscompile     Under Cygwin, compile so that executables run under
1104                          DOS. Set to mingw to use gcc/g++/ld with
1105                          -mno-cygwin. Set to msvc to use cl/link (or
1106                          icl/link). Default when mentioned: mingw. Default
1107                          when not mentioned: disabled.
1108  --enable-static[=PKGS]
1109                          build static libraries [default=no]
1110  --disable-dependency-tracking  speeds up one-time build
1111  --enable-dependency-tracking   do not reject slow dependency extractors
1112  --enable-maintainer-mode  enable make rules and dependencies not useful
1113                          (and sometimes confusing) to the casual installer
1114  --enable-shared[=PKGS]
1115                          build shared libraries [default=yes]
1116  --enable-fast-install[=PKGS]
1117                          optimize for fast installation [default=yes]
1118  --disable-libtool-lock  avoid locking (might break parallel builds)
1119
1120Optional Packages:
1121  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1122  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1123  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1124  --with-pic              try to use only PIC/non-PIC objects [default=use
1125                          both]
1126  --with-tags[=TAGS]
1127                          include additional configurations [automatic]
1128
1129Some influential environment variables:
1130  CDEFS       Additional -D flags to be used when compiling C code.
1131  ADD_CFLAGS  Additional C compiler options
1132  DBG_CFLAGS  Debug C compiler options
1133  OPT_CFLAGS  Optimize C compiler options
1134  CC          C compiler command
1135  CFLAGS      C compiler flags
1136  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1137              nonstandard directory <lib dir>
1138  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1139              headers in a nonstandard directory <include dir>
1140  MPICC       C MPI Compiler
1141  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1142  ADD_CXXFLAGS
1143              Additional C++ compiler options
1144  DBG_CXXFLAGS
1145              Debug C++ compiler options
1146  OPT_CXXFLAGS
1147              Optimize C++ compiler options
1148  CXX         C++ compiler command
1149  CXXFLAGS    C++ compiler flags
1150  MPICXX      C++ MPI Compiler
1151  ADD_FFLAGS  Additional Fortran compiler options
1152  DBG_FFLAGS  Debug Fortran compiler options
1153  OPT_FFLAGS  Optimize Fortran compiler options
1154  F77         Fortran 77 compiler command
1155  FFLAGS      Fortran 77 compiler flags
1156  MPIF77      Fortran MPI Compiler
1157  CPP         C preprocessor
1158  CXXCPP      C++ preprocessor
1159  COIN_SKIP_PROJECTS
1160              Set to the subdirectories of projects that should be skipped in
1161              the configuration
1162
1163Use these variables to override the choices made by `configure' or to help
1164it to find libraries and programs with nonstandard names/locations.
1165
1166Report bugs to <coin-clp@lists.coin-or.org>.
1167_ACEOF
1168fi
1169
1170if test "$ac_init_help" = "recursive"; then
1171  # If there are subdirs, report their specific --help.
1172  ac_popdir=`pwd`
1173  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1174    test -d $ac_dir || continue
1175    ac_builddir=.
1176
1177if test "$ac_dir" != .; then
1178  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1179  # A "../" for each directory in $ac_dir_suffix.
1180  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1181else
1182  ac_dir_suffix= ac_top_builddir=
1183fi
1184
1185case $srcdir in
1186  .)  # No --srcdir option.  We are building in place.
1187    ac_srcdir=.
1188    if test -z "$ac_top_builddir"; then
1189       ac_top_srcdir=.
1190    else
1191       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1192    fi ;;
1193  [\\/]* | ?:[\\/]* )  # Absolute path.
1194    ac_srcdir=$srcdir$ac_dir_suffix;
1195    ac_top_srcdir=$srcdir ;;
1196  *) # Relative path.
1197    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1198    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1199esac
1200
1201# Do not use `cd foo && pwd` to compute absolute paths, because
1202# the directories may not exist.
1203case `pwd` in
1204.) ac_abs_builddir="$ac_dir";;
1205*)
1206  case "$ac_dir" in
1207  .) ac_abs_builddir=`pwd`;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1209  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1210  esac;;
1211esac
1212case $ac_abs_builddir in
1213.) ac_abs_top_builddir=${ac_top_builddir}.;;
1214*)
1215  case ${ac_top_builddir}. in
1216  .) ac_abs_top_builddir=$ac_abs_builddir;;
1217  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1218  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1219  esac;;
1220esac
1221case $ac_abs_builddir in
1222.) ac_abs_srcdir=$ac_srcdir;;
1223*)
1224  case $ac_srcdir in
1225  .) ac_abs_srcdir=$ac_abs_builddir;;
1226  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1227  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1228  esac;;
1229esac
1230case $ac_abs_builddir in
1231.) ac_abs_top_srcdir=$ac_top_srcdir;;
1232*)
1233  case $ac_top_srcdir in
1234  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1235  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1236  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1237  esac;;
1238esac
1239
1240    cd $ac_dir
1241    # Check for guested configure; otherwise get Cygnus style configure.
1242    if test -f $ac_srcdir/configure.gnu; then
1243      echo
1244      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1245    elif test -f $ac_srcdir/configure; then
1246      echo
1247      $SHELL $ac_srcdir/configure  --help=recursive
1248    elif test -f $ac_srcdir/configure.ac ||
1249           test -f $ac_srcdir/configure.in; then
1250      echo
1251      $ac_configure --help
1252    else
1253      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1254    fi
1255    cd $ac_popdir
1256  done
1257fi
1258
1259test -n "$ac_init_help" && exit 0
1260if $ac_init_version; then
1261  cat <<\_ACEOF
1262Clp configure 0.1
1263generated by GNU Autoconf 2.59
1264
1265Copyright (C) 2003 Free Software Foundation, Inc.
1266This configure script is free software; the Free Software Foundation
1267gives unlimited permission to copy, distribute and modify it.
1268
1269
1270Copyright 2006 International Business Machines and others.
1271All Rights Reserved.
1272This file is part of the open source package Coin which is distributed
1273under the Common Public License.
1274_ACEOF
1275  exit 0
1276fi
1277exec 5>config.log
1278cat >&5 <<_ACEOF
1279This file contains any messages produced by compilers while
1280running configure, to aid debugging if configure makes a mistake.
1281
1282It was created by Clp $as_me 0.1, which was
1283generated by GNU Autoconf 2.59.  Invocation command line was
1284
1285  $ $0 $@
1286
1287_ACEOF
1288{
1289cat <<_ASUNAME
1290## --------- ##
1291## Platform. ##
1292## --------- ##
1293
1294hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1295uname -m = `(uname -m) 2>/dev/null || echo unknown`
1296uname -r = `(uname -r) 2>/dev/null || echo unknown`
1297uname -s = `(uname -s) 2>/dev/null || echo unknown`
1298uname -v = `(uname -v) 2>/dev/null || echo unknown`
1299
1300/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1301/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1302
1303/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1304/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1305/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1306hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1307/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1308/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1309/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1310
1311_ASUNAME
1312
1313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1314for as_dir in $PATH
1315do
1316  IFS=$as_save_IFS
1317  test -z "$as_dir" && as_dir=.
1318  echo "PATH: $as_dir"
1319done
1320
1321} >&5
1322
1323cat >&5 <<_ACEOF
1324
1325
1326## ----------- ##
1327## Core tests. ##
1328## ----------- ##
1329
1330_ACEOF
1331
1332
1333# Keep a trace of the command line.
1334# Strip out --no-create and --no-recursion so they do not pile up.
1335# Strip out --silent because we don't want to record it for future runs.
1336# Also quote any args containing shell meta-characters.
1337# Make two passes to allow for proper duplicate-argument suppression.
1338ac_configure_args=
1339ac_configure_args0=
1340ac_configure_args1=
1341ac_sep=
1342ac_must_keep_next=false
1343for ac_pass in 1 2
1344do
1345  for ac_arg
1346  do
1347    case $ac_arg in
1348    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1349    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1350    | -silent | --silent | --silen | --sile | --sil)
1351      continue ;;
1352    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1354    esac
1355    case $ac_pass in
1356    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1357    2)
1358      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1359      if test $ac_must_keep_next = true; then
1360        ac_must_keep_next=false # Got value, back to normal.
1361      else
1362        case $ac_arg in
1363          *=* | --config-cache | -C | -disable-* | --disable-* \
1364          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1365          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1366          | -with-* | --with-* | -without-* | --without-* | --x)
1367            case "$ac_configure_args0 " in
1368              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1369            esac
1370            ;;
1371          -* ) ac_must_keep_next=true ;;
1372        esac
1373      fi
1374      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1375      # Get rid of the leading space.
1376      ac_sep=" "
1377      ;;
1378    esac
1379  done
1380done
1381$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1382$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1383
1384# When interrupted or exit'd, cleanup temporary files, and complete
1385# config.log.  We remove comments because anyway the quotes in there
1386# would cause problems or look ugly.
1387# WARNING: Be sure not to use single quotes in there, as some shells,
1388# such as our DU 5.0 friend, will then `close' the trap.
1389trap 'exit_status=$?
1390  # Save into config.log some information that might help in debugging.
1391  {
1392    echo
1393
1394    cat <<\_ASBOX
1395## ---------------- ##
1396## Cache variables. ##
1397## ---------------- ##
1398_ASBOX
1399    echo
1400    # The following way of writing the cache mishandles newlines in values,
1401{
1402  (set) 2>&1 |
1403    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1404    *ac_space=\ *)
1405      sed -n \
1406        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1407          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1408      ;;
1409    *)
1410      sed -n \
1411        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1412      ;;
1413    esac;
1414}
1415    echo
1416
1417    cat <<\_ASBOX
1418## ----------------- ##
1419## Output variables. ##
1420## ----------------- ##
1421_ASBOX
1422    echo
1423    for ac_var in $ac_subst_vars
1424    do
1425      eval ac_val=$`echo $ac_var`
1426      echo "$ac_var='"'"'$ac_val'"'"'"
1427    done | sort
1428    echo
1429
1430    if test -n "$ac_subst_files"; then
1431      cat <<\_ASBOX
1432## ------------- ##
1433## Output files. ##
1434## ------------- ##
1435_ASBOX
1436      echo
1437      for ac_var in $ac_subst_files
1438      do
1439        eval ac_val=$`echo $ac_var`
1440        echo "$ac_var='"'"'$ac_val'"'"'"
1441      done | sort
1442      echo
1443    fi
1444
1445    if test -s confdefs.h; then
1446      cat <<\_ASBOX
1447## ----------- ##
1448## confdefs.h. ##
1449## ----------- ##
1450_ASBOX
1451      echo
1452      sed "/^$/d" confdefs.h | sort
1453      echo
1454    fi
1455    test "$ac_signal" != 0 &&
1456      echo "$as_me: caught signal $ac_signal"
1457    echo "$as_me: exit $exit_status"
1458  } >&5
1459  rm -f core *.core &&
1460  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1461    exit $exit_status
1462     ' 0
1463for ac_signal in 1 2 13 15; do
1464  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1465done
1466ac_signal=0
1467
1468# confdefs.h avoids OS command line length limits that DEFS can exceed.
1469rm -rf conftest* confdefs.h
1470# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1471echo >confdefs.h
1472
1473# Predefined preprocessor variables.
1474
1475cat >>confdefs.h <<_ACEOF
1476#define PACKAGE_NAME "$PACKAGE_NAME"
1477_ACEOF
1478
1479
1480cat >>confdefs.h <<_ACEOF
1481#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1482_ACEOF
1483
1484
1485cat >>confdefs.h <<_ACEOF
1486#define PACKAGE_VERSION "$PACKAGE_VERSION"
1487_ACEOF
1488
1489
1490cat >>confdefs.h <<_ACEOF
1491#define PACKAGE_STRING "$PACKAGE_STRING"
1492_ACEOF
1493
1494
1495cat >>confdefs.h <<_ACEOF
1496#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1497_ACEOF
1498
1499
1500# Let the site file select an alternate cache file if it wants to.
1501# Prefer explicitly selected file to automatically selected ones.
1502if test -z "$CONFIG_SITE"; then
1503  if test "x$prefix" != xNONE; then
1504    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1505  else
1506    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1507  fi
1508fi
1509for ac_site_file in $CONFIG_SITE; do
1510  if test -r "$ac_site_file"; then
1511    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1512echo "$as_me: loading site script $ac_site_file" >&6;}
1513    sed 's/^/| /' "$ac_site_file" >&5
1514    . "$ac_site_file"
1515  fi
1516done
1517
1518if test -r "$cache_file"; then
1519  # Some versions of bash will fail to source /dev/null (special
1520  # files actually), so we avoid doing that.
1521  if test -f "$cache_file"; then
1522    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1523echo "$as_me: loading cache $cache_file" >&6;}
1524    case $cache_file in
1525      [\\/]* | ?:[\\/]* ) . $cache_file;;
1526      *)                      . ./$cache_file;;
1527    esac
1528  fi
1529else
1530  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1531echo "$as_me: creating cache $cache_file" >&6;}
1532  >$cache_file
1533fi
1534
1535# Check that the precious variables saved in the cache have kept the same
1536# value.
1537ac_cache_corrupted=false
1538for ac_var in `(set) 2>&1 |
1539               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1540  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1541  eval ac_new_set=\$ac_env_${ac_var}_set
1542  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1543  eval ac_new_val="\$ac_env_${ac_var}_value"
1544  case $ac_old_set,$ac_new_set in
1545    set,)
1546      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1547echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1548      ac_cache_corrupted=: ;;
1549    ,set)
1550      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1551echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1552      ac_cache_corrupted=: ;;
1553    ,);;
1554    *)
1555      if test "x$ac_old_val" != "x$ac_new_val"; then
1556        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1557echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1558        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1559echo "$as_me:   former value:  $ac_old_val" >&2;}
1560        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1561echo "$as_me:   current value: $ac_new_val" >&2;}
1562        ac_cache_corrupted=:
1563      fi;;
1564  esac
1565  # Pass precious variables to config.status.
1566  if test "$ac_new_set" = set; then
1567    case $ac_new_val in
1568    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1569      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1570    *) ac_arg=$ac_var=$ac_new_val ;;
1571    esac
1572    case " $ac_configure_args " in
1573      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1574      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1575    esac
1576  fi
1577done
1578if $ac_cache_corrupted; then
1579  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1580echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1581  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1582echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1583   { (exit 1); exit 1; }; }
1584fi
1585
1586ac_ext=c
1587ac_cpp='$CPP $CPPFLAGS'
1588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1590ac_compiler_gnu=$ac_cv_c_compiler_gnu
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623# List one file in the package so that the configure script can test
1624# whether the package is actually there
1625
1626
1627# Where should everything be installed by default?  Here, we want it
1628# to be installed directly in 'bin', 'lib', 'include' subdirectories
1629# of the directory where configure is run.  The default would be
1630# /usr/local.
1631
1632
1633#############################################################################
1634#              Create the libtool script for the subdirectories             #
1635#############################################################################
1636
1637ac_aux_dir=
1638for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1639  if test -f $ac_dir/install-sh; then
1640    ac_aux_dir=$ac_dir
1641    ac_install_sh="$ac_aux_dir/install-sh -c"
1642    break
1643  elif test -f $ac_dir/install.sh; then
1644    ac_aux_dir=$ac_dir
1645    ac_install_sh="$ac_aux_dir/install.sh -c"
1646    break
1647  elif test -f $ac_dir/shtool; then
1648    ac_aux_dir=$ac_dir
1649    ac_install_sh="$ac_aux_dir/shtool install -c"
1650    break
1651  fi
1652done
1653if test -z "$ac_aux_dir"; then
1654  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1655echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1656   { (exit 1); exit 1; }; }
1657fi
1658ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1659ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1660ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1661
1662# Make sure we can run config.sub.
1663$ac_config_sub sun4 >/dev/null 2>&1 ||
1664  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1665echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1666   { (exit 1); exit 1; }; }
1667
1668echo "$as_me:$LINENO: checking build system type" >&5
1669echo $ECHO_N "checking build system type... $ECHO_C" >&6
1670if test "${ac_cv_build+set}" = set; then
1671  echo $ECHO_N "(cached) $ECHO_C" >&6
1672else
1673  ac_cv_build_alias=$build_alias
1674test -z "$ac_cv_build_alias" &&
1675  ac_cv_build_alias=`$ac_config_guess`
1676test -z "$ac_cv_build_alias" &&
1677  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1678echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1679   { (exit 1); exit 1; }; }
1680ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1681  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1682echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1683   { (exit 1); exit 1; }; }
1684
1685fi
1686echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1687echo "${ECHO_T}$ac_cv_build" >&6
1688build=$ac_cv_build
1689build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692
1693
1694
1695# Check if user wants to produce debugging code
1696
1697echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1698echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1699
1700# Check whether --enable-debug or --disable-debug was given.
1701if test "${enable_debug+set}" = set; then
1702  enableval="$enable_debug"
1703  case "${enableval}" in
1704   yes) coin_debug_compile=true
1705        if test "${enable_shared+set}" = set; then :; else
1706          enable_shared=no
1707        fi
1708        ;;
1709   no)  coin_debug_compile=false
1710        ;;
1711   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1712echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1713   { (exit 1); exit 1; }; }
1714        ;;
1715esac
1716else
1717  coin_debug_compile=false
1718fi;
1719
1720 # m4_ifvaln([],
1721
1722if test $coin_debug_compile = true; then
1723  echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
1725else
1726  echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730 # m4_ifvaln([],
1731
1732
1733
1734# Get the name of the C compiler and appropriate compiler options
1735case $build in
1736  *-mingw*)
1737    if test "${LD+set}" = set; then :; else
1738      LD=link
1739    fi
1740    ;;
1741 esac
1742 case $enable_doscompile in
1743   msvc)
1744     if test "x${LD+set}" = xset; then :; else
1745       LD=link
1746     fi
1747     ;;
1748 esac
1749
1750
1751 # Check whether --enable-doscompile or --disable-doscompile was given.
1752if test "${enable_doscompile+set}" = set; then
1753  enableval="$enable_doscompile"
1754  if test "$enable_doscompile" != no; then
1755     case $build in
1756       *-cygwin* | *-mingw*) ;;
1757       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1758echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1759   { (exit 1); exit 1; }; } ;;
1760     esac
1761   fi
1762else
1763  enable_doscompile=no
1764fi;
1765 case "$enable_doscompile" in
1766   mingw)
1767     case $build in
1768       *-mingw*) enable_doscompile=no ;;
1769     esac
1770     ;;
1771   msvc|no) ;;
1772   yes) enable_doscompile=mingw ;;
1773   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1774                    Try configure --help=recursive." >&5
1775echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1776                    Try configure --help=recursive." >&2;}
1777   { (exit 1); exit 1; }; }
1778      ;;
1779  esac
1780  if test "$enable_doscompile" != no ; then
1781    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1782echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1783  fi
1784
1785
1786
1787
1788ac_ext=c
1789ac_cpp='$CPP $CPPFLAGS'
1790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792ac_compiler_gnu=$ac_cv_c_compiler_gnu
1793
1794
1795# For consistency, we set the C compiler to the same value of the C++
1796# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1797if test x"$CXX" != x; then
1798  case "$CXX" in
1799    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1800      if test x"$CC" = x; then
1801        CC="$CXX"
1802        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1803echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1804      fi
1805      ;;
1806  esac
1807fi
1808
1809
1810
1811
1812
1813
1814coin_has_cc=yes
1815
1816save_cflags="$CFLAGS"
1817
1818# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1819# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1820# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1821# compiler. In this case, put cc after gcc.
1822
1823case $build in
1824  *-cygwin* | *-mingw*)
1825             if test "$enable_doscompile" = msvc ; then
1826               comps="icl cl"
1827             else
1828               comps="gcc cl"
1829             fi ;;
1830  *-*-solaris*)
1831             # Extract the first word of "cc", so it can be a program name with args.
1832set dummy cc; ac_word=$2
1833echo "$as_me:$LINENO: checking for $ac_word" >&5
1834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1836  echo $ECHO_N "(cached) $ECHO_C" >&6
1837else
1838  if test -n "$sol_cc_compiler"; then
1839  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1840else
1841  ac_prog_rejected=no
1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
1844do
1845  IFS=$as_save_IFS
1846  test -z "$as_dir" && as_dir=.
1847  for ac_exec_ext in '' $ac_executable_extensions; do
1848  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1850       ac_prog_rejected=yes
1851       continue
1852     fi
1853    ac_cv_prog_sol_cc_compiler="cc"
1854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855    break 2
1856  fi
1857done
1858done
1859
1860if test $ac_prog_rejected = yes; then
1861  # We found a bogon in the path, so make sure we never use it.
1862  set dummy $ac_cv_prog_sol_cc_compiler
1863  shift
1864  if test $# != 0; then
1865    # We chose a different compiler from the bogus one.
1866    # However, it has the same basename, so the bogon will be chosen
1867    # first if we set sol_cc_compiler to just the basename; use the full file name.
1868    shift
1869    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1870  fi
1871fi
1872fi
1873fi
1874sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1875if test -n "$sol_cc_compiler"; then
1876  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1877echo "${ECHO_T}$sol_cc_compiler" >&6
1878else
1879  echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881fi
1882
1883             if test "$sol_cc_compiler" = "cc" ; then
1884               comps="cc xlc gcc pgcc icc"
1885             else
1886               comps="xlc gcc pgcc icc cc"
1887             fi
1888             ;;
1889  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1890  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1891esac
1892
1893# We delete the cached value, since the test might not have been
1894# performed with our choice of compilers earlier
1895$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1896# AC_MSG_NOTICE([C compiler candidates: $comps])
1897ac_ext=c
1898ac_cpp='$CPP $CPPFLAGS'
1899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902if test -n "$ac_tool_prefix"; then
1903  for ac_prog in $comps
1904  do
1905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1907echo "$as_me:$LINENO: checking for $ac_word" >&5
1908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909if test "${ac_cv_prog_CC+set}" = set; then
1910  echo $ECHO_N "(cached) $ECHO_C" >&6
1911else
1912  if test -n "$CC"; then
1913  ac_cv_prog_CC="$CC" # Let the user override the test.
1914else
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918  IFS=$as_save_IFS
1919  test -z "$as_dir" && as_dir=.
1920  for ac_exec_ext in '' $ac_executable_extensions; do
1921  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924    break 2
1925  fi
1926done
1927done
1928
1929fi
1930fi
1931CC=$ac_cv_prog_CC
1932if test -n "$CC"; then
1933  echo "$as_me:$LINENO: result: $CC" >&5
1934echo "${ECHO_T}$CC" >&6
1935else
1936  echo "$as_me:$LINENO: result: no" >&5
1937echo "${ECHO_T}no" >&6
1938fi
1939
1940    test -n "$CC" && break
1941  done
1942fi
1943if test -z "$CC"; then
1944  ac_ct_CC=$CC
1945  for ac_prog in $comps
1946do
1947  # Extract the first word of "$ac_prog", so it can be a program name with args.
1948set dummy $ac_prog; ac_word=$2
1949echo "$as_me:$LINENO: checking for $ac_word" >&5
1950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952  echo $ECHO_N "(cached) $ECHO_C" >&6
1953else
1954  if test -n "$ac_ct_CC"; then
1955  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956else
1957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960  IFS=$as_save_IFS
1961  test -z "$as_dir" && as_dir=.
1962  for ac_exec_ext in '' $ac_executable_extensions; do
1963  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964    ac_cv_prog_ac_ct_CC="$ac_prog"
1965    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966    break 2
1967  fi
1968done
1969done
1970
1971fi
1972fi
1973ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974if test -n "$ac_ct_CC"; then
1975  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976echo "${ECHO_T}$ac_ct_CC" >&6
1977else
1978  echo "$as_me:$LINENO: result: no" >&5
1979echo "${ECHO_T}no" >&6
1980fi
1981
1982  test -n "$ac_ct_CC" && break
1983done
1984
1985  CC=$ac_ct_CC
1986fi
1987
1988
1989test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1990See \`config.log' for more details." >&5
1991echo "$as_me: error: no acceptable C compiler found in \$PATH
1992See \`config.log' for more details." >&2;}
1993   { (exit 1); exit 1; }; }
1994
1995# Provide some information about the compiler.
1996echo "$as_me:$LINENO:" \
1997     "checking for C compiler version" >&5
1998ac_compiler=`set X $ac_compile; echo $2`
1999{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2000  (eval $ac_compiler --version </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{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2010  (eval $ac_compiler -V </dev/null >&5) 2>&5
2011  ac_status=$?
2012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013  (exit $ac_status); }
2014
2015cat >conftest.$ac_ext <<_ACEOF
2016/* confdefs.h.  */
2017_ACEOF
2018cat confdefs.h >>conftest.$ac_ext
2019cat >>conftest.$ac_ext <<_ACEOF
2020/* end confdefs.h.  */
2021
2022int
2023main ()
2024{
2025
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030ac_clean_files_save=$ac_clean_files
2031ac_clean_files="$ac_clean_files a.out a.exe b.out"
2032# Try to create an executable without -o first, disregard a.out.
2033# It will help us diagnose broken compilers, and finding out an intuition
2034# of exeext.
2035echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2036echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2037ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2038if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2039  (eval $ac_link_default) 2>&5
2040  ac_status=$?
2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042  (exit $ac_status); }; then
2043  # Find the output, starting from the most likely.  This scheme is
2044# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2045# resort.
2046
2047# Be careful to initialize this variable, since it used to be cached.
2048# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2049ac_cv_exeext=
2050# b.out is created by i960 compilers.
2051for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2052do
2053  test -f "$ac_file" || continue
2054  case $ac_file in
2055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2056        ;;
2057    conftest.$ac_ext )
2058        # This is the source file.
2059        ;;
2060    [ab].out )
2061        # We found the default executable, but exeext='' is most
2062        # certainly right.
2063        break;;
2064    *.* )
2065        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2066        # FIXME: I believe we export ac_cv_exeext for Libtool,
2067        # but it would be cool to find out if it's true.  Does anybody
2068        # maintain Libtool? --akim.
2069        export ac_cv_exeext
2070        break;;
2071    * )
2072        break;;
2073  esac
2074done
2075else
2076  echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2080See \`config.log' for more details." >&5
2081echo "$as_me: error: C compiler cannot create executables
2082See \`config.log' for more details." >&2;}
2083   { (exit 77); exit 77; }; }
2084fi
2085
2086ac_exeext=$ac_cv_exeext
2087echo "$as_me:$LINENO: result: $ac_file" >&5
2088echo "${ECHO_T}$ac_file" >&6
2089
2090# Check the compiler produces executables we can run.  If not, either
2091# the compiler is broken, or we cross compile.
2092echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2093echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2094# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2095# If not cross compiling, check that we can run a simple program.
2096if test "$cross_compiling" != yes; then
2097  if { ac_try='./$ac_file'
2098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099  (eval $ac_try) 2>&5
2100  ac_status=$?
2101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102  (exit $ac_status); }; }; then
2103    cross_compiling=no
2104  else
2105    if test "$cross_compiling" = maybe; then
2106        cross_compiling=yes
2107    else
2108        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2109If you meant to cross compile, use \`--host'.
2110See \`config.log' for more details." >&5
2111echo "$as_me: error: cannot run C compiled programs.
2112If you meant to cross compile, use \`--host'.
2113See \`config.log' for more details." >&2;}
2114   { (exit 1); exit 1; }; }
2115    fi
2116  fi
2117fi
2118echo "$as_me:$LINENO: result: yes" >&5
2119echo "${ECHO_T}yes" >&6
2120
2121rm -f a.out a.exe conftest$ac_cv_exeext b.out
2122ac_clean_files=$ac_clean_files_save
2123# Check the compiler produces executables we can run.  If not, either
2124# the compiler is broken, or we cross compile.
2125echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2126echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2127echo "$as_me:$LINENO: result: $cross_compiling" >&5
2128echo "${ECHO_T}$cross_compiling" >&6
2129
2130echo "$as_me:$LINENO: checking for suffix of executables" >&5
2131echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2133  (eval $ac_link) 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }; then
2137  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2138# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2139# work properly (i.e., refer to `conftest.exe'), while it won't with
2140# `rm'.
2141for ac_file in conftest.exe conftest conftest.*; do
2142  test -f "$ac_file" || continue
2143  case $ac_file in
2144    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2145    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146          export ac_cv_exeext
2147          break;;
2148    * ) break;;
2149  esac
2150done
2151else
2152  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2153See \`config.log' for more details." >&5
2154echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2155See \`config.log' for more details." >&2;}
2156   { (exit 1); exit 1; }; }
2157fi
2158
2159rm -f conftest$ac_cv_exeext
2160echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2161echo "${ECHO_T}$ac_cv_exeext" >&6
2162
2163rm -f conftest.$ac_ext
2164EXEEXT=$ac_cv_exeext
2165ac_exeext=$EXEEXT
2166echo "$as_me:$LINENO: checking for suffix of object files" >&5
2167echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2168if test "${ac_cv_objext+set}" = set; then
2169  echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171  cat >conftest.$ac_ext <<_ACEOF
2172/* confdefs.h.  */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h.  */
2177
2178int
2179main ()
2180{
2181
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186rm -f conftest.o conftest.obj
2187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188  (eval $ac_compile) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; then
2192  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2193  case $ac_file in
2194    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2195    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2196       break;;
2197  esac
2198done
2199else
2200  echo "$as_me: failed program was:" >&5
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
2203{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2204See \`config.log' for more details." >&5
2205echo "$as_me: error: cannot compute suffix of object files: cannot compile
2206See \`config.log' for more details." >&2;}
2207   { (exit 1); exit 1; }; }
2208fi
2209
2210rm -f conftest.$ac_cv_objext conftest.$ac_ext
2211fi
2212echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2213echo "${ECHO_T}$ac_cv_objext" >&6
2214OBJEXT=$ac_cv_objext
2215ac_objext=$OBJEXT
2216echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2217echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2218if test "${ac_cv_c_compiler_gnu+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231#ifndef __GNUC__
2232       choke me
2233#endif
2234
2235  ;
2236  return 0;
2237}
2238_ACEOF
2239rm -f conftest.$ac_objext
2240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241  (eval $ac_compile) 2>conftest.er1
2242  ac_status=$?
2243  grep -v '^ *+' conftest.er1 >conftest.err
2244  rm -f conftest.er1
2245  cat conftest.err >&5
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); } &&
2248         { ac_try='test -z "$ac_c_werror_flag"
2249                         || test ! -s conftest.err'
2250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251  (eval $ac_try) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); }; } &&
2255         { ac_try='test -s conftest.$ac_objext'
2256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257  (eval $ac_try) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; }; then
2261  ac_compiler_gnu=yes
2262else
2263  echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266ac_compiler_gnu=no
2267fi
2268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2269ac_cv_c_compiler_gnu=$ac_compiler_gnu
2270
2271fi
2272echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2273echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2274GCC=`test $ac_compiler_gnu = yes && echo yes`
2275ac_test_CFLAGS=${CFLAGS+set}
2276ac_save_CFLAGS=$CFLAGS
2277CFLAGS="-g"
2278echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2279echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2280if test "${ac_cv_prog_cc_g+set}" = set; then
2281  echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283  cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h.  */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h.  */
2289
2290int
2291main ()
2292{
2293
2294  ;
2295  return 0;
2296}
2297_ACEOF
2298rm -f conftest.$ac_objext
2299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300  (eval $ac_compile) 2>conftest.er1
2301  ac_status=$?
2302  grep -v '^ *+' conftest.er1 >conftest.err
2303  rm -f conftest.er1
2304  cat conftest.err >&5
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); } &&
2307         { ac_try='test -z "$ac_c_werror_flag"
2308                         || test ! -s conftest.err'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; } &&
2314         { ac_try='test -s conftest.$ac_objext'
2315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316  (eval $ac_try) 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); }; }; then
2320  ac_cv_prog_cc_g=yes
2321else
2322  echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325ac_cv_prog_cc_g=no
2326fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328fi
2329echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2330echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2331if test "$ac_test_CFLAGS" = set; then
2332  CFLAGS=$ac_save_CFLAGS
2333elif test $ac_cv_prog_cc_g = yes; then
2334  if test "$GCC" = yes; then
2335    CFLAGS="-g -O2"
2336  else
2337    CFLAGS="-g"
2338  fi
2339else
2340  if test "$GCC" = yes; then
2341    CFLAGS="-O2"
2342  else
2343    CFLAGS=
2344  fi
2345fi
2346echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2347echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2348if test "${ac_cv_prog_cc_stdc+set}" = set; then
2349  echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351  ac_cv_prog_cc_stdc=no
2352ac_save_CC=$CC
2353cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h.  */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
2358/* end confdefs.h.  */
2359#include <stdarg.h>
2360#include <stdio.h>
2361#include <sys/types.h>
2362#include <sys/stat.h>
2363/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2364struct buf { int x; };
2365FILE * (*rcsopen) (struct buf *, struct stat *, int);
2366static char *e (p, i)
2367     char **p;
2368     int i;
2369{
2370  return p[i];
2371}
2372static char *f (char * (*g) (char **, int), char **p, ...)
2373{
2374  char *s;
2375  va_list v;
2376  va_start (v,p);
2377  s = g (p, va_arg (v,int));
2378  va_end (v);
2379  return s;
2380}
2381
2382/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2383   function prototypes and stuff, but not '\xHH' hex character constants.
2384   These don't provoke an error unfortunately, instead are silently treated
2385   as 'x'.  The following induces an error, until -std1 is added to get
2386   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2387   array size at least.  It's necessary to write '\x00'==0 to get something
2388   that's true only with -std1.  */
2389int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2390
2391int test (int i, double x);
2392struct s1 {int (*f) (int a);};
2393struct s2 {int (*f) (double a);};
2394int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2395int argc;
2396char **argv;
2397int
2398main ()
2399{
2400return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2401  ;
2402  return 0;
2403}
2404_ACEOF
2405# Don't try gcc -ansi; that turns off useful extensions and
2406# breaks some systems' header files.
2407# AIX                   -qlanglvl=ansi
2408# Ultrix and OSF/1      -std1
2409# HP-UX 10.20 and later -Ae
2410# HP-UX older versions  -Aa -D_HPUX_SOURCE
2411# SVR4                  -Xc -D__EXTENSIONS__
2412for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2413do
2414  CC="$ac_save_CC $ac_arg"
2415  rm -f conftest.$ac_objext
2416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417  (eval $ac_compile) 2>conftest.er1
2418  ac_status=$?
2419  grep -v '^ *+' conftest.er1 >conftest.err
2420  rm -f conftest.er1
2421  cat conftest.err >&5
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); } &&
2424         { ac_try='test -z "$ac_c_werror_flag"
2425                         || test ! -s conftest.err'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; } &&
2431         { ac_try='test -s conftest.$ac_objext'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; }; then
2437  ac_cv_prog_cc_stdc=$ac_arg
2438break
2439else
2440  echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443fi
2444rm -f conftest.err conftest.$ac_objext
2445done
2446rm -f conftest.$ac_ext conftest.$ac_objext
2447CC=$ac_save_CC
2448
2449fi
2450
2451case "x$ac_cv_prog_cc_stdc" in
2452  x|xno)
2453    echo "$as_me:$LINENO: result: none needed" >&5
2454echo "${ECHO_T}none needed" >&6 ;;
2455  *)
2456    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2457echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2458    CC="$CC $ac_cv_prog_cc_stdc" ;;
2459esac
2460
2461# Some people use a C++ compiler to compile C.  Since we use `exit',
2462# in C++ we need to declare it.  In case someone uses the same compiler
2463# for both compiling C and C++ we need to have the C++ compiler decide
2464# the declaration of exit, since it's the most demanding environment.
2465cat >conftest.$ac_ext <<_ACEOF
2466#ifndef __cplusplus
2467  choke me
2468#endif
2469_ACEOF
2470rm -f conftest.$ac_objext
2471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472  (eval $ac_compile) 2>conftest.er1
2473  ac_status=$?
2474  grep -v '^ *+' conftest.er1 >conftest.err
2475  rm -f conftest.er1
2476  cat conftest.err >&5
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); } &&
2479         { ac_try='test -z "$ac_c_werror_flag"
2480                         || test ! -s conftest.err'
2481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482  (eval $ac_try) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }; } &&
2486         { ac_try='test -s conftest.$ac_objext'
2487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); }; }; then
2492  for ac_declaration in \
2493   '' \
2494   'extern "C" void std::exit (int) throw (); using std::exit;' \
2495   'extern "C" void std::exit (int); using std::exit;' \
2496   'extern "C" void exit (int) throw ();' \
2497   'extern "C" void exit (int);' \
2498   'void exit (int);'
2499do
2500  cat >conftest.$ac_ext <<_ACEOF
2501/* confdefs.h.  */
2502_ACEOF
2503cat confdefs.h >>conftest.$ac_ext
2504cat >>conftest.$ac_ext <<_ACEOF
2505/* end confdefs.h.  */
2506$ac_declaration
2507#include <stdlib.h>
2508int
2509main ()
2510{
2511exit (42);
2512  ;
2513  return 0;
2514}
2515_ACEOF
2516rm -f conftest.$ac_objext
2517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518  (eval $ac_compile) 2>conftest.er1
2519  ac_status=$?
2520  grep -v '^ *+' conftest.er1 >conftest.err
2521  rm -f conftest.er1
2522  cat conftest.err >&5
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); } &&
2525         { ac_try='test -z "$ac_c_werror_flag"
2526                         || test ! -s conftest.err'
2527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528  (eval $ac_try) 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }; } &&
2532         { ac_try='test -s conftest.$ac_objext'
2533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534  (eval $ac_try) 2>&5
2535  ac_status=$?
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); }; }; then
2538  :
2539else
2540  echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543continue
2544fi
2545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546  cat >conftest.$ac_ext <<_ACEOF
2547/* confdefs.h.  */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h.  */
2552$ac_declaration
2553int
2554main ()
2555{
2556exit (42);
2557  ;
2558  return 0;
2559}
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563  (eval $ac_compile) 2>conftest.er1
2564  ac_status=$?
2565  grep -v '^ *+' conftest.er1 >conftest.err
2566  rm -f conftest.er1
2567  cat conftest.err >&5
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); } &&
2570         { ac_try='test -z "$ac_c_werror_flag"
2571                         || test ! -s conftest.err'
2572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573  (eval $ac_try) 2>&5
2574  ac_status=$?
2575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576  (exit $ac_status); }; } &&
2577         { ac_try='test -s conftest.$ac_objext'
2578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579  (eval $ac_try) 2>&5
2580  ac_status=$?
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); }; }; then
2583  break
2584else
2585  echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588fi
2589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590done
2591rm -f conftest*
2592if test -n "$ac_declaration"; then
2593  echo '#ifdef __cplusplus' >>confdefs.h
2594  echo $ac_declaration      >>confdefs.h
2595  echo '#endif'             >>confdefs.h
2596fi
2597
2598else
2599  echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602fi
2603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2604ac_ext=c
2605ac_cpp='$CPP $CPPFLAGS'
2606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609
2610if test -z "$CC" ; then
2611  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2612echo "$as_me: error: Failed to find a C compiler!" >&2;}
2613   { (exit 1); exit 1; }; }
2614fi
2615# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2616case "$CC" in
2617  cl* | */cl* | CL* | */CL* )
2618    if test "$ac_cv_prog_cc_g" = yes ; then
2619      ac_cv_prog_cc_g=no
2620      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2621echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2622    fi ;;
2623esac
2624CFLAGS="$save_cflags"
2625
2626# Check if a project specific CFLAGS variable has been set
2627if test x$COIN_PRJCT != x; then
2628  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2629  if test x$coin_tmp = xset; then
2630    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2631  fi
2632fi
2633
2634if test x"$CFLAGS" = x; then
2635
2636  coin_add_cflags=
2637  coin_opt_cflags=
2638  coin_dbg_cflags=
2639  coin_warn_cflags=
2640
2641  if test "$GCC" = "yes"; then
2642    case "$CC" in
2643      icc* | */icc*)
2644        ;;
2645      *)
2646        coin_opt_cflags="-O3 -fomit-frame-pointer"
2647        coin_add_cflags="-pipe"
2648        coin_dbg_cflags="-g"
2649        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2650        case $enable_doscompile in
2651          mingw)
2652            CFLAGS="-mno-cygwin"
2653            cat >conftest.$ac_ext <<_ACEOF
2654/* confdefs.h.  */
2655_ACEOF
2656cat confdefs.h >>conftest.$ac_ext
2657cat >>conftest.$ac_ext <<_ACEOF
2658/* end confdefs.h.  */
2659
2660int
2661main ()
2662{
2663int i=0; i++;
2664  ;
2665  return 0;
2666}
2667_ACEOF
2668rm -f conftest.$ac_objext conftest$ac_exeext
2669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2670  (eval $ac_link) 2>conftest.er1
2671  ac_status=$?
2672  grep -v '^ *+' conftest.er1 >conftest.err
2673  rm -f conftest.er1
2674  cat conftest.err >&5
2675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); } &&
2677         { ac_try='test -z "$ac_c_werror_flag"
2678                         || test ! -s conftest.err'
2679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680  (eval $ac_try) 2>&5
2681  ac_status=$?
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); }; } &&
2684         { ac_try='test -s conftest$ac_exeext'
2685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686  (eval $ac_try) 2>&5
2687  ac_status=$?
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); }; }; then
2690  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2691else
2692  echo "$as_me: failed program was:" >&5
2693sed 's/^/| /' conftest.$ac_ext >&5
2694
2695fi
2696rm -f conftest.err conftest.$ac_objext \
2697      conftest$ac_exeext conftest.$ac_ext
2698            CFLAGS=
2699          ;;
2700        esac
2701    esac
2702  fi
2703  if test -z "$coin_opt_cflags"; then
2704    case $build in
2705      *-cygwin* | *-mingw*)
2706        case "$CC" in
2707          cl* | */cl* | CL* | */CL*)
2708            coin_opt_cflags='-MT -O2'
2709            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2710            coin_dbg_cflags='-MTd'
2711            ;;
2712          icl* | */icl* | ICL* | */ICL*)
2713            coin_opt_cflags='-MT -Ox'
2714            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2715            coin_dbg_cflags='-MTd -debug'
2716            ;;
2717        esac
2718        ;;
2719      *-linux-*)
2720        case "$CC" in
2721          icc* | */icc*)
2722            coin_opt_cflags="-O3 -ip"
2723            coin_add_cflags=""
2724            coin_dbg_cflags="-g"
2725            # Check if -i_dynamic is necessary (for new glibc library)
2726            CFLAGS=
2727            cat >conftest.$ac_ext <<_ACEOF
2728/* confdefs.h.  */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>conftest.$ac_ext <<_ACEOF
2732/* end confdefs.h.  */
2733
2734int
2735main ()
2736{
2737int i=0; i++;
2738  ;
2739  return 0;
2740}
2741_ACEOF
2742rm -f conftest.$ac_objext conftest$ac_exeext
2743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2744  (eval $ac_link) 2>conftest.er1
2745  ac_status=$?
2746  grep -v '^ *+' conftest.er1 >conftest.err
2747  rm -f conftest.er1
2748  cat conftest.err >&5
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); } &&
2751         { ac_try='test -z "$ac_c_werror_flag"
2752                         || test ! -s conftest.err'
2753  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754  (eval $ac_try) 2>&5
2755  ac_status=$?
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); }; } &&
2758         { ac_try='test -s conftest$ac_exeext'
2759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760  (eval $ac_try) 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); }; }; then
2764  :
2765else
2766  echo "$as_me: failed program was:" >&5
2767sed 's/^/| /' conftest.$ac_ext >&5
2768
2769coin_add_cflags="-i_dynamic $coin_add_cflags"
2770fi
2771rm -f conftest.err conftest.$ac_objext \
2772      conftest$ac_exeext conftest.$ac_ext
2773            ;;
2774          pgcc* | */pgcc*)
2775            coin_opt_cflags="-fast"
2776            coin_add_cflags="-Kieee -pc 64"
2777            coin_dbg_cflags="-g"
2778            ;;
2779        esac
2780        ;;
2781      *-ibm-*)
2782        case "$CC" in
2783          xlc* | */xlc* | mpxlc* | */mpxlc*)
2784            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2785            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2786            coin_dbg_cflags="-g"
2787          ;;
2788        esac
2789        ;;
2790      *-hp-*)
2791        coin_opt_cflags="-O"
2792        coin_add_cflags="-Ae"
2793        coin_dbg_cflags="-g"
2794        ;;
2795      *-*-solaris*)
2796        coin_opt_cflags="-xO4"
2797        coin_dbg_cflags="-g"
2798        ;;
2799      *-sgi-*)
2800        coin_opt_cflags="-O -OPT:Olimit=0"
2801        coin_dbg_cflags="-g"
2802        ;;
2803    esac
2804  fi
2805
2806  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2807    coin_dbg_cflags="-g"
2808  fi
2809
2810  if test -z "$coin_opt_cflags"; then
2811    # Try if -O option works if nothing else is set
2812    CFLAGS="-O"
2813    cat >conftest.$ac_ext <<_ACEOF
2814/* confdefs.h.  */
2815_ACEOF
2816cat confdefs.h >>conftest.$ac_ext
2817cat >>conftest.$ac_ext <<_ACEOF
2818/* end confdefs.h.  */
2819
2820int
2821main ()
2822{
2823int i=0; i++;
2824  ;
2825  return 0;
2826}
2827_ACEOF
2828rm -f conftest.$ac_objext conftest$ac_exeext
2829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2830  (eval $ac_link) 2>conftest.er1
2831  ac_status=$?
2832  grep -v '^ *+' conftest.er1 >conftest.err
2833  rm -f conftest.er1
2834  cat conftest.err >&5
2835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836  (exit $ac_status); } &&
2837         { ac_try='test -z "$ac_c_werror_flag"
2838                         || test ! -s conftest.err'
2839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840  (eval $ac_try) 2>&5
2841  ac_status=$?
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); }; } &&
2844         { ac_try='test -s conftest$ac_exeext'
2845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2846  (eval $ac_try) 2>&5
2847  ac_status=$?
2848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849  (exit $ac_status); }; }; then
2850  coin_opt_cflags="-O"
2851else
2852  echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855fi
2856rm -f conftest.err conftest.$ac_objext \
2857      conftest$ac_exeext conftest.$ac_ext
2858  fi
2859
2860  # if PM doesn't want the warning messages, take them out
2861  if test x"$coin_skip_warn_cflags" = xyes; then
2862    coin_warn_cflags=
2863  fi
2864
2865  if test x${DBG_CFLAGS+set} != xset; then
2866    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2867  fi
2868  if test x${OPT_CFLAGS+set} != xset; then
2869    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2870  fi
2871
2872  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2873  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2874
2875  if test "$coin_debug_compile" = "true"; then
2876    CFLAGS="$DBG_CFLAGS"
2877  else
2878    CFLAGS="$OPT_CFLAGS"
2879  fi
2880else
2881  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2882  if test x${DBG_CFLAGS+set} != xset; then
2883    DBG_CFLAGS="$CFLAGS"
2884  fi
2885  if test x${OPT_CFLAGS+set} != xset; then
2886    OPT_CFLAGS="$CFLAGS"
2887  fi
2888fi
2889
2890# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2891
2892case "$CFLAGS" in
2893  *-mno-cygwin*)
2894    if test x${CPPFLAGS+set} != xset ; then
2895      CPPFLAGS="-mno-cygwin"
2896    else
2897      case "$CPPFLAGS" in
2898        *-mno-cygwin*)
2899          ;;
2900        *)
2901          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2902          ;;
2903      esac
2904    fi ;;
2905esac
2906
2907# Try if CFLAGS works
2908save_CFLAGS="$CFLAGS"
2909cat >conftest.$ac_ext <<_ACEOF
2910/* confdefs.h.  */
2911_ACEOF
2912cat confdefs.h >>conftest.$ac_ext
2913cat >>conftest.$ac_ext <<_ACEOF
2914/* end confdefs.h.  */
2915
2916int
2917main ()
2918{
2919int i=0; i++;
2920  ;
2921  return 0;
2922}
2923_ACEOF
2924rm -f conftest.$ac_objext conftest$ac_exeext
2925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926  (eval $ac_link) 2>conftest.er1
2927  ac_status=$?
2928  grep -v '^ *+' conftest.er1 >conftest.err
2929  rm -f conftest.er1
2930  cat conftest.err >&5
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); } &&
2933         { ac_try='test -z "$ac_c_werror_flag"
2934                         || test ! -s conftest.err'
2935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936  (eval $ac_try) 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }; } &&
2940         { ac_try='test -s conftest$ac_exeext'
2941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942  (eval $ac_try) 2>&5
2943  ac_status=$?
2944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945  (exit $ac_status); }; }; then
2946  :
2947else
2948  echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951CFLAGS=
2952fi
2953rm -f conftest.err conftest.$ac_objext \
2954      conftest$ac_exeext conftest.$ac_ext
2955if test -z "$CFLAGS"; then
2956  { 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
2957echo "$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;}
2958  CFLAGS='-O'
2959  cat >conftest.$ac_ext <<_ACEOF
2960/* confdefs.h.  */
2961_ACEOF
2962cat confdefs.h >>conftest.$ac_ext
2963cat >>conftest.$ac_ext <<_ACEOF
2964/* end confdefs.h.  */
2965
2966int
2967main ()
2968{
2969int i=0; i++;
2970  ;
2971  return 0;
2972}
2973_ACEOF
2974rm -f conftest.$ac_objext conftest$ac_exeext
2975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2976  (eval $ac_link) 2>conftest.er1
2977  ac_status=$?
2978  grep -v '^ *+' conftest.er1 >conftest.err
2979  rm -f conftest.er1
2980  cat conftest.err >&5
2981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982  (exit $ac_status); } &&
2983         { ac_try='test -z "$ac_c_werror_flag"
2984                         || test ! -s conftest.err'
2985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986  (eval $ac_try) 2>&5
2987  ac_status=$?
2988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); }; } &&
2990         { ac_try='test -s conftest$ac_exeext'
2991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992  (eval $ac_try) 2>&5
2993  ac_status=$?
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); }; }; then
2996  :
2997else
2998  echo "$as_me: failed program was:" >&5
2999sed 's/^/| /' conftest.$ac_ext >&5
3000
3001CFLAGS=
3002fi
3003rm -f conftest.err conftest.$ac_objext \
3004      conftest$ac_exeext conftest.$ac_ext
3005  if test -z "$CFLAGS"; then
3006    { 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
3007echo "$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;}
3008  fi
3009fi
3010
3011{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3012echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3013
3014
3015if test x"$MPICC" = x; then :; else
3016  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3017echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3018  CC="$MPICC"
3019fi
3020
3021# Correct ADDLIBS initialization if we are using the MS compiler
3022case "$CC" in
3023  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3024    ADDLIBS=
3025    case $build in
3026  *-mingw*)
3027    if test "${LD+set}" = set; then :; else
3028      LD=link
3029    fi
3030    ;;
3031 esac
3032 case $enable_doscompile in
3033   msvc)
3034     if test "x${LD+set}" = xset; then :; else
3035       LD=link
3036     fi
3037     ;;
3038 esac
3039
3040    ;;
3041esac
3042
3043ac_ext=c
3044ac_cpp='$CPP $CPPFLAGS'
3045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047ac_compiler_gnu=$ac_cv_c_compiler_gnu
3048
3049
3050
3051# Get the name of the C++ compiler and appropriate compiler options
3052
3053 #Let's try if that overcomes configuration problem with VC++ 6.0
3054
3055ac_ext=cc
3056ac_cpp='$CXXCPP $CPPFLAGS'
3057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3060
3061
3062
3063
3064
3065
3066
3067coin_has_cxx=yes
3068
3069save_cxxflags="$CXXFLAGS"
3070# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3071case $build in
3072  *-cygwin* | *-mingw*)
3073             if test "$enable_doscompile" = msvc ; then
3074               comps="icl cl"
3075             else
3076               comps="g++ cl"
3077             fi ;;
3078  *-*-solaris*)
3079             comps="CC xlC aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3080  *-darwin*) comps="g++ c++ CC" ;;
3081          *) comps="xlC aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3082esac
3083
3084# We delete the cached value, since the test might not have been
3085# performed with our choice of compilers earlier
3086$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3087# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3088ac_ext=cc
3089ac_cpp='$CXXCPP $CPPFLAGS'
3090ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3091ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3092ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3093if test -n "$ac_tool_prefix"; then
3094  for ac_prog in $CCC $comps
3095  do
3096    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3098echo "$as_me:$LINENO: checking for $ac_word" >&5
3099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3100if test "${ac_cv_prog_CXX+set}" = set; then
3101  echo $ECHO_N "(cached) $ECHO_C" >&6
3102else
3103  if test -n "$CXX"; then
3104  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3105else
3106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109  IFS=$as_save_IFS
3110  test -z "$as_dir" && as_dir=.
3111  for ac_exec_ext in '' $ac_executable_extensions; do
3112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3113    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3115    break 2
3116  fi
3117done
3118done
3119
3120fi
3121fi
3122CXX=$ac_cv_prog_CXX
3123if test -n "$CXX"; then
3124  echo "$as_me:$LINENO: result: $CXX" >&5
3125echo "${ECHO_T}$CXX" >&6
3126else
3127  echo "$as_me:$LINENO: result: no" >&5
3128echo "${ECHO_T}no" >&6
3129fi
3130
3131    test -n "$CXX" && break
3132  done
3133fi
3134if test -z "$CXX"; then
3135  ac_ct_CXX=$CXX
3136  for ac_prog in $CCC $comps
3137do
3138  # Extract the first word of "$ac_prog", so it can be a program name with args.
3139set dummy $ac_prog; ac_word=$2
3140echo "$as_me:$LINENO: checking for $ac_word" >&5
3141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3143  echo $ECHO_N "(cached) $ECHO_C" >&6
3144else
3145  if test -n "$ac_ct_CXX"; then
3146  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3147else
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151  IFS=$as_save_IFS
3152  test -z "$as_dir" && as_dir=.
3153  for ac_exec_ext in '' $ac_executable_extensions; do
3154  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155    ac_cv_prog_ac_ct_CXX="$ac_prog"
3156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3157    break 2
3158  fi
3159done
3160done
3161
3162fi
3163fi
3164ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3165if test -n "$ac_ct_CXX"; then
3166  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3167echo "${ECHO_T}$ac_ct_CXX" >&6
3168else
3169  echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171fi
3172
3173  test -n "$ac_ct_CXX" && break
3174done
3175test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3176
3177  CXX=$ac_ct_CXX
3178fi
3179
3180
3181# Provide some information about the compiler.
3182echo "$as_me:$LINENO:" \
3183     "checking for C++ compiler version" >&5
3184ac_compiler=`set X $ac_compile; echo $2`
3185{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3186  (eval $ac_compiler --version </dev/null >&5) 2>&5
3187  ac_status=$?
3188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189  (exit $ac_status); }
3190{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3191  (eval $ac_compiler -v </dev/null >&5) 2>&5
3192  ac_status=$?
3193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194  (exit $ac_status); }
3195{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3196  (eval $ac_compiler -V </dev/null >&5) 2>&5
3197  ac_status=$?
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); }
3200
3201echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3202echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3203if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3204  echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206  cat >conftest.$ac_ext <<_ACEOF
3207/* confdefs.h.  */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h.  */
3212
3213int
3214main ()
3215{
3216#ifndef __GNUC__
3217       choke me
3218#endif
3219
3220  ;
3221  return 0;
3222}
3223_ACEOF
3224rm -f conftest.$ac_objext
3225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3226  (eval $ac_compile) 2>conftest.er1
3227  ac_status=$?
3228  grep -v '^ *+' conftest.er1 >conftest.err
3229  rm -f conftest.er1
3230  cat conftest.err >&5
3231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); } &&
3233         { ac_try='test -z "$ac_cxx_werror_flag"
3234                         || test ! -s conftest.err'
3235  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236  (eval $ac_try) 2>&5
3237  ac_status=$?
3238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239  (exit $ac_status); }; } &&
3240         { ac_try='test -s conftest.$ac_objext'
3241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242  (eval $ac_try) 2>&5
3243  ac_status=$?
3244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245  (exit $ac_status); }; }; then
3246  ac_compiler_gnu=yes
3247else
3248  echo "$as_me: failed program was:" >&5
3249sed 's/^/| /' conftest.$ac_ext >&5
3250
3251ac_compiler_gnu=no
3252fi
3253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3254ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3255
3256fi
3257echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3258echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3259GXX=`test $ac_compiler_gnu = yes && echo yes`
3260ac_test_CXXFLAGS=${CXXFLAGS+set}
3261ac_save_CXXFLAGS=$CXXFLAGS
3262CXXFLAGS="-g"
3263echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3264echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3265if test "${ac_cv_prog_cxx_g+set}" = set; then
3266  echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
3268  cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h.  */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h.  */
3274
3275int
3276main ()
3277{
3278
3279  ;
3280  return 0;
3281}
3282_ACEOF
3283rm -f conftest.$ac_objext
3284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3285  (eval $ac_compile) 2>conftest.er1
3286  ac_status=$?
3287  grep -v '^ *+' conftest.er1 >conftest.err
3288  rm -f conftest.er1
3289  cat conftest.err >&5
3290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); } &&
3292         { ac_try='test -z "$ac_cxx_werror_flag"
3293                         || test ! -s conftest.err'
3294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295  (eval $ac_try) 2>&5
3296  ac_status=$?
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); }; } &&
3299         { ac_try='test -s conftest.$ac_objext'
3300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301  (eval $ac_try) 2>&5
3302  ac_status=$?
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); }; }; then
3305  ac_cv_prog_cxx_g=yes
3306else
3307  echo "$as_me: failed program was:" >&5
3308sed 's/^/| /' conftest.$ac_ext >&5
3309
3310ac_cv_prog_cxx_g=no
3311fi
3312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3313fi
3314echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3315echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3316if test "$ac_test_CXXFLAGS" = set; then
3317  CXXFLAGS=$ac_save_CXXFLAGS
3318elif test $ac_cv_prog_cxx_g = yes; then
3319  if test "$GXX" = yes; then
3320    CXXFLAGS="-g -O2"
3321  else
3322    CXXFLAGS="-g"
3323  fi
3324else
3325  if test "$GXX" = yes; then
3326    CXXFLAGS="-O2"
3327  else
3328    CXXFLAGS=
3329  fi
3330fi
3331for ac_declaration in \
3332   '' \
3333   'extern "C" void std::exit (int) throw (); using std::exit;' \
3334   'extern "C" void std::exit (int); using std::exit;' \
3335   'extern "C" void exit (int) throw ();' \
3336   'extern "C" void exit (int);' \
3337   'void exit (int);'
3338do
3339  cat >conftest.$ac_ext <<_ACEOF
3340/* confdefs.h.  */
3341_ACEOF
3342cat confdefs.h >>conftest.$ac_ext
3343cat >>conftest.$ac_ext <<_ACEOF
3344/* end confdefs.h.  */
3345$ac_declaration
3346#include <stdlib.h>
3347int
3348main ()
3349{
3350exit (42);
3351  ;
3352  return 0;
3353}
3354_ACEOF
3355rm -f conftest.$ac_objext
3356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3357  (eval $ac_compile) 2>conftest.er1
3358  ac_status=$?
3359  grep -v '^ *+' conftest.er1 >conftest.err
3360  rm -f conftest.er1
3361  cat conftest.err >&5
3362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363  (exit $ac_status); } &&
3364         { ac_try='test -z "$ac_cxx_werror_flag"
3365                         || test ! -s conftest.err'
3366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367  (eval $ac_try) 2>&5
3368  ac_status=$?
3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370  (exit $ac_status); }; } &&
3371         { ac_try='test -s conftest.$ac_objext'
3372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373  (eval $ac_try) 2>&5
3374  ac_status=$?
3375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376  (exit $ac_status); }; }; then
3377  :
3378else
3379  echo "$as_me: failed program was:" >&5
3380sed 's/^/| /' conftest.$ac_ext >&5
3381
3382continue
3383fi
3384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3385  cat >conftest.$ac_ext <<_ACEOF
3386/* confdefs.h.  */
3387_ACEOF
3388cat confdefs.h >>conftest.$ac_ext
3389cat >>conftest.$ac_ext <<_ACEOF
3390/* end confdefs.h.  */
3391$ac_declaration
3392int
3393main ()
3394{
3395exit (42);
3396  ;
3397  return 0;
3398}
3399_ACEOF
3400rm -f conftest.$ac_objext
3401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402  (eval $ac_compile) 2>conftest.er1
3403  ac_status=$?
3404  grep -v '^ *+' conftest.er1 >conftest.err
3405  rm -f conftest.er1
3406  cat conftest.err >&5
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); } &&
3409         { ac_try='test -z "$ac_cxx_werror_flag"
3410                         || test ! -s conftest.err'
3411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412  (eval $ac_try) 2>&5
3413  ac_status=$?
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); }; } &&
3416         { ac_try='test -s conftest.$ac_objext'
3417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418  (eval $ac_try) 2>&5
3419  ac_status=$?
3420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421  (exit $ac_status); }; }; then
3422  break
3423else
3424  echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
3427fi
3428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3429done
3430rm -f conftest*
3431if test -n "$ac_declaration"; then
3432  echo '#ifdef __cplusplus' >>confdefs.h
3433  echo $ac_declaration      >>confdefs.h
3434  echo '#endif'             >>confdefs.h
3435fi
3436
3437ac_ext=cc
3438ac_cpp='$CXXCPP $CPPFLAGS'
3439ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3442
3443if test -z "$CXX" ; then
3444  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3445echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3446   { (exit 1); exit 1; }; }
3447fi
3448
3449# It seems that we need to cleanup something here for the Windows
3450case "$CXX" in
3451  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3452    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3453    mv confdefs.hh confdefs.h
3454    ;;
3455esac
3456
3457# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3458case "$CXX" in
3459  cl* | */cl* | CL* | */CL* )
3460    if test "$ac_cv_prog_cxx_g" = yes ; then
3461      ac_cv_prog_cxx_g=no
3462      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3463echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3464    fi ;;
3465esac
3466CXXFLAGS="$save_cxxflags"
3467
3468# Check if a project specific CXXFLAGS variable has been set
3469if test x$COIN_PRJCT != x; then
3470  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3471  if test x$coin_tmp = xset; then
3472    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3473  fi
3474fi
3475
3476if test x"$CXXFLAGS" = x; then
3477
3478# ToDo decide whether we want -DNDEBUG for optimization
3479  coin_add_cxxflags=
3480  coin_opt_cxxflags=
3481  coin_dbg_cxxflags=
3482  coin_warn_cxxflags=
3483
3484  if test "$GXX" = "yes"; then
3485    case "$CXX" in
3486      icpc* | */icpc*)
3487        ;;
3488      *)
3489# ToDo decide about unroll-loops
3490        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3491        coin_add_cxxflags="-pipe"
3492        coin_dbg_cxxflags="-g"
3493        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3494        case $enable_doscompile in
3495          mingw)
3496            CXXFLAGS="-mno-cygwin"
3497            cat >conftest.$ac_ext <<_ACEOF
3498/* confdefs.h.  */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h.  */
3503
3504int
3505main ()
3506{
3507int i=0; i++;
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512rm -f conftest.$ac_objext conftest$ac_exeext
3513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3514  (eval $ac_link) 2>conftest.er1
3515  ac_status=$?
3516  grep -v '^ *+' conftest.er1 >conftest.err
3517  rm -f conftest.er1
3518  cat conftest.err >&5
3519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520  (exit $ac_status); } &&
3521         { ac_try='test -z "$ac_cxx_werror_flag"
3522                         || test ! -s conftest.err'
3523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524  (eval $ac_try) 2>&5
3525  ac_status=$?
3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); }; } &&
3528         { ac_try='test -s conftest$ac_exeext'
3529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530  (eval $ac_try) 2>&5
3531  ac_status=$?
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); }; }; then
3534  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3535else
3536  echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
3539fi
3540rm -f conftest.err conftest.$ac_objext \
3541      conftest$ac_exeext conftest.$ac_ext
3542            CXXFLAGS=
3543            ;;
3544        esac
3545    esac
3546  fi
3547
3548# Note that we do not need to cover GCC in the following tests.
3549
3550  if test -z "$coin_opt_cxxflags"; then
3551    case $build in
3552      *-cygwin* | *-mingw*)
3553        case "$CXX" in
3554          cl* | */cl* | CL* | */CL*)
3555            # The MT and MTd options are mutually exclusive
3556            coin_opt_cxxflags='-MT -O2'
3557            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3558            coin_dbg_cxxflags='-MTd'
3559            ;;
3560          icl* | */icl* | ICL* | */ICL*)
3561            # The MT and MTd options are mutually exclusive
3562            coin_opt_cxxflags='-MT -Ox'
3563            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3564            coin_dbg_cxxflags='-MTd -debug'
3565            ;;
3566        esac
3567        ;;
3568      *-linux-*)
3569        case "$CXX" in
3570          icpc* | */icpc*)
3571            coin_opt_cxxflags="-O3 -ip"
3572            coin_add_cxxflags=""
3573            coin_dbg_cxxflags="-g"
3574            # Check if -i_dynamic is necessary (for new glibc library)
3575            CXXFLAGS=
3576            cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h.  */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h.  */
3582
3583int
3584main ()
3585{
3586int i=0; i++;
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591rm -f conftest.$ac_objext conftest$ac_exeext
3592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3593  (eval $ac_link) 2>conftest.er1
3594  ac_status=$?
3595  grep -v '^ *+' conftest.er1 >conftest.err
3596  rm -f conftest.er1
3597  cat conftest.err >&5
3598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); } &&
3600         { ac_try='test -z "$ac_cxx_werror_flag"
3601                         || test ! -s conftest.err'
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); }; } &&
3607         { ac_try='test -s conftest$ac_exeext'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; }; then
3613  :
3614else
3615  echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
3618coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3619fi
3620rm -f conftest.err conftest.$ac_objext \
3621      conftest$ac_exeext conftest.$ac_ext
3622            ;;
3623          pgCC* | */pgCC*)
3624            coin_opt_cxxflags="-fast"
3625            coin_add_cxxflags="-Kieee -pc 64"
3626            coin_dbg_cxxflags="-g"
3627            ;;
3628        esac
3629        ;;
3630      *-ibm-*)
3631        case "$CXX" in
3632          xlC* | */xlC* | mpxlC* | */mpxlC*)
3633            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3634            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029"
3635            coin_dbg_cxxflags="-g"
3636            ;;
3637        esac
3638        ;;
3639      *-hp-*)
3640        case "$CXX" in
3641          aCC* | */aCC* )
3642            coin_opt_cxxflags="-O"
3643            coin_add_cxxflags="-AA"
3644            coin_dbg_cxxflags="-g"
3645            ;;
3646        esac
3647        ;;
3648      *-*-solaris*)
3649          coin_opt_cxxflags="-O4"
3650          coin_dbg_cxxflags="-g"
3651        ;;
3652    esac
3653  fi
3654
3655# Generic flag settings. If these don't work, add a case above.
3656
3657  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3658    coin_dbg_cxxflags="-g"
3659  fi
3660
3661  if test -z "$coin_opt_cxxflags"; then
3662    # Try if -O option works if nothing else is set
3663    CXXFLAGS=-O
3664    cat >conftest.$ac_ext <<_ACEOF
3665/* confdefs.h.  */
3666_ACEOF
3667cat confdefs.h >>conftest.$ac_ext
3668cat >>conftest.$ac_ext <<_ACEOF
3669/* end confdefs.h.  */
3670
3671int
3672main ()
3673{
3674int i=0; i++;
3675  ;
3676  return 0;
3677}
3678_ACEOF
3679rm -f conftest.$ac_objext conftest$ac_exeext
3680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3681  (eval $ac_link) 2>conftest.er1
3682  ac_status=$?
3683  grep -v '^ *+' conftest.er1 >conftest.err
3684  rm -f conftest.er1
3685  cat conftest.err >&5
3686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687  (exit $ac_status); } &&
3688         { ac_try='test -z "$ac_cxx_werror_flag"
3689                         || test ! -s conftest.err'
3690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691  (eval $ac_try) 2>&5
3692  ac_status=$?
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); }; } &&
3695         { ac_try='test -s conftest$ac_exeext'
3696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697  (eval $ac_try) 2>&5
3698  ac_status=$?
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); }; }; then
3701  coin_opt_cxxflags="-O"
3702else
3703  echo "$as_me: failed program was:" >&5
3704sed 's/^/| /' conftest.$ac_ext >&5
3705
3706fi
3707rm -f conftest.err conftest.$ac_objext \
3708      conftest$ac_exeext conftest.$ac_ext
3709  fi
3710
3711  # if PM doesn't want the warning messages, take them out
3712  if test x"$coin_skip_warn_cxxflags" = xyes; then
3713    coin_warn_cxxflags=
3714  fi
3715
3716# Do final setup of flags based on values determined above.
3717
3718  if test x${DBG_CXXFLAGS+set} != xset; then
3719    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3720  fi
3721  if test x${OPT_CXXFLAGS+set} != xset; then
3722    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3723  fi
3724
3725  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3726  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3727
3728  if test "$coin_debug_compile" = "true"; then
3729    CXXFLAGS="$DBG_CXXFLAGS"
3730  else
3731    CXXFLAGS="$OPT_CXXFLAGS"
3732  fi
3733
3734# Handle the case where CXXFLAGS was set externally.
3735else
3736  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3737  if test x${DBG_CXXFLAGS+set} != xset; then
3738    DBG_CXXFLAGS="$CXXFLAGS"
3739  fi
3740  if test x${OPT_CXXFLAGS+set} != xset; then
3741    OPT_CXXFLAGS="$CXXFLAGS"
3742  fi
3743fi
3744
3745# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3746
3747case "$CXXFLAGS" in
3748  *-mno-cygwin*)
3749    if test x${CPPFLAGS+set} != xset ; then
3750      CPPFLAGS="-mno-cygwin"
3751    else
3752      case "$CPPFLAGS" in
3753        *-mno-cygwin*)
3754          ;;
3755        *)
3756          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3757          ;;
3758      esac
3759    fi ;;
3760esac
3761
3762# Try if CXXFLAGS works
3763save_CXXFLAGS="$CXXFLAGS"
3764cat >conftest.$ac_ext <<_ACEOF
3765/* confdefs.h.  */
3766_ACEOF
3767cat confdefs.h >>conftest.$ac_ext
3768cat >>conftest.$ac_ext <<_ACEOF
3769/* end confdefs.h.  */
3770
3771int
3772main ()
3773{
3774int i=0; i++;
3775  ;
3776  return 0;
3777}
3778_ACEOF
3779rm -f conftest.$ac_objext conftest$ac_exeext
3780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3781  (eval $ac_link) 2>conftest.er1
3782  ac_status=$?
3783  grep -v '^ *+' conftest.er1 >conftest.err
3784  rm -f conftest.er1
3785  cat conftest.err >&5
3786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787  (exit $ac_status); } &&
3788         { ac_try='test -z "$ac_cxx_werror_flag"
3789                         || test ! -s conftest.err'
3790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3791  (eval $ac_try) 2>&5
3792  ac_status=$?
3793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794  (exit $ac_status); }; } &&
3795         { ac_try='test -s conftest$ac_exeext'
3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); }; }; then
3801  :
3802else
3803  echo "$as_me: failed program was:" >&5
3804sed 's/^/| /' conftest.$ac_ext >&5
3805
3806CXXFLAGS=
3807fi
3808rm -f conftest.err conftest.$ac_objext \
3809      conftest$ac_exeext conftest.$ac_ext
3810if test -z "$CXXFLAGS"; then
3811  { 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
3812echo "$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;}
3813  CXXFLAGS='-O'
3814  cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h.  */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h.  */
3820
3821int
3822main ()
3823{
3824int i=0; i++;
3825  ;
3826  return 0;
3827}
3828_ACEOF
3829rm -f conftest.$ac_objext conftest$ac_exeext
3830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831  (eval $ac_link) 2>conftest.er1
3832  ac_status=$?
3833  grep -v '^ *+' conftest.er1 >conftest.err
3834  rm -f conftest.er1
3835  cat conftest.err >&5
3836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837  (exit $ac_status); } &&
3838         { ac_try='test -z "$ac_cxx_werror_flag"
3839                         || test ! -s conftest.err'
3840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841  (eval $ac_try) 2>&5
3842  ac_status=$?
3843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844  (exit $ac_status); }; } &&
3845         { ac_try='test -s conftest$ac_exeext'
3846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847  (eval $ac_try) 2>&5
3848  ac_status=$?
3849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850  (exit $ac_status); }; }; then
3851  :
3852else
3853  echo "$as_me: failed program was:" >&5
3854sed 's/^/| /' conftest.$ac_ext >&5
3855
3856CXXFLAGS=
3857fi
3858rm -f conftest.err conftest.$ac_objext \
3859      conftest$ac_exeext conftest.$ac_ext
3860  if test -z "$CXXFLAGS"; then
3861    { 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
3862echo "$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;}
3863  fi
3864fi
3865
3866{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3867echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3868
3869
3870if test x"$MPICXX" = x; then :; else
3871  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3872echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3873  CXX="$MPICXX"
3874fi
3875
3876case "$CXX" in
3877  cl* | */cl* | CL* | */CL* )
3878    case $build in
3879  *-mingw*)
3880    if test "${LD+set}" = set; then :; else
3881      LD=link
3882    fi
3883    ;;
3884 esac
3885 case $enable_doscompile in
3886   msvc)
3887     if test "x${LD+set}" = xset; then :; else
3888       LD=link
3889     fi
3890     ;;
3891 esac
3892
3893    ;;
3894esac
3895
3896ac_ext=c
3897ac_cpp='$CPP $CPPFLAGS'
3898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901
3902
3903
3904# Get the name of the Fortran compiler and appropriate compiler options
3905case $build in
3906  *-cygwin* | *-mingw*)
3907     if test "$enable_doscompile" = msvc ; then
3908       coin_f77_comps="ifort fl32 compile_f2c"
3909     else
3910       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3911     fi ;;
3912  *-*-solaris*)
3913     coin_f77_comps="f95 f90 f77 xlf fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3914  *) coin_f77_comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3915 esac
3916
3917
3918
3919
3920
3921
3922ac_ext=f
3923ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3924ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3925ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3926
3927
3928
3929
3930
3931
3932coin_has_f77=yes
3933
3934save_fflags="$FFLAGS"
3935
3936# We delete the cached value, since the test might not have been
3937# performed with our choice of compilers earlier
3938$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3939
3940# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3941# coin_f77_comps to see if there's a program that matches one of the names.
3942# If there's no such program, F77 = unavailable. If we match the name,
3943# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3944# compiler.
3945# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3946
3947
3948{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3949echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3950for ac_prog in $coin_f77_comps
3951do
3952  # Extract the first word of "$ac_prog", so it can be a program name with args.
3953set dummy $ac_prog; ac_word=$2
3954echo "$as_me:$LINENO: checking for $ac_word" >&5
3955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3956if test "${ac_cv_prog_F77+set}" = set; then
3957  echo $ECHO_N "(cached) $ECHO_C" >&6
3958else
3959  if test -n "$F77"; then
3960  ac_cv_prog_F77="$F77" # Let the user override the test.
3961else
3962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963for as_dir in $PATH
3964do
3965  IFS=$as_save_IFS
3966  test -z "$as_dir" && as_dir=.
3967  for ac_exec_ext in '' $ac_executable_extensions; do
3968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969    ac_cv_prog_F77="$ac_prog"
3970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971    break 2
3972  fi
3973done
3974done
3975
3976fi
3977fi
3978F77=$ac_cv_prog_F77
3979if test -n "$F77"; then
3980  echo "$as_me:$LINENO: result: $F77" >&5
3981echo "${ECHO_T}$F77" >&6
3982else
3983  echo "$as_me:$LINENO: result: no" >&5
3984echo "${ECHO_T}no" >&6
3985fi
3986
3987  test -n "$F77" && break
3988done
3989test -n "$F77" || F77="unavailable"
3990
3991
3992if test "$F77" != "unavailable" ; then
3993  ac_ext=f
3994ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3995ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3997if test -n "$ac_tool_prefix"; then
3998  for ac_prog in $coin_f77_comps
3999  do
4000    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4001set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4002echo "$as_me:$LINENO: checking for $ac_word" >&5
4003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4004if test "${ac_cv_prog_F77+set}" = set; then
4005  echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
4007  if test -n "$F77"; then
4008  ac_cv_prog_F77="$F77" # Let the user override the test.
4009else
4010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011for as_dir in $PATH
4012do
4013  IFS=$as_save_IFS
4014  test -z "$as_dir" && as_dir=.
4015  for ac_exec_ext in '' $ac_executable_extensions; do
4016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4017    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4019    break 2
4020  fi
4021done
4022done
4023
4024fi
4025fi
4026F77=$ac_cv_prog_F77
4027if test -n "$F77"; then
4028  echo "$as_me:$LINENO: result: $F77" >&5
4029echo "${ECHO_T}$F77" >&6
4030else
4031  echo "$as_me:$LINENO: result: no" >&5
4032echo "${ECHO_T}no" >&6
4033fi
4034
4035    test -n "$F77" && break
4036  done
4037fi
4038if test -z "$F77"; then
4039  ac_ct_F77=$F77
4040  for ac_prog in $coin_f77_comps
4041do
4042  # Extract the first word of "$ac_prog", so it can be a program name with args.
4043set dummy $ac_prog; ac_word=$2
4044echo "$as_me:$LINENO: checking for $ac_word" >&5
4045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4046if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4047  echo $ECHO_N "(cached) $ECHO_C" >&6
4048else
4049  if test -n "$ac_ct_F77"; then
4050  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4051else
4052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053for as_dir in $PATH
4054do
4055  IFS=$as_save_IFS
4056  test -z "$as_dir" && as_dir=.
4057  for ac_exec_ext in '' $ac_executable_extensions; do
4058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4059    ac_cv_prog_ac_ct_F77="$ac_prog"
4060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4061    break 2
4062  fi
4063done
4064done
4065
4066fi
4067fi
4068ac_ct_F77=$ac_cv_prog_ac_ct_F77
4069if test -n "$ac_ct_F77"; then
4070  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4071echo "${ECHO_T}$ac_ct_F77" >&6
4072else
4073  echo "$as_me:$LINENO: result: no" >&5
4074echo "${ECHO_T}no" >&6
4075fi
4076
4077  test -n "$ac_ct_F77" && break
4078done
4079
4080  F77=$ac_ct_F77
4081fi
4082
4083
4084# Provide some information about the compiler.
4085echo "$as_me:4085:" \
4086     "checking for Fortran 77 compiler version" >&5
4087ac_compiler=`set X $ac_compile; echo $2`
4088{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4089  (eval $ac_compiler --version </dev/null >&5) 2>&5
4090  ac_status=$?
4091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092  (exit $ac_status); }
4093{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4094  (eval $ac_compiler -v </dev/null >&5) 2>&5
4095  ac_status=$?
4096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097  (exit $ac_status); }
4098{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4099  (eval $ac_compiler -V </dev/null >&5) 2>&5
4100  ac_status=$?
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); }
4103rm -f a.out
4104
4105# If we don't use `.F' as extension, the preprocessor is not run on the
4106# input file.  (Note that this only needs to work for GNU compilers.)
4107ac_save_ext=$ac_ext
4108ac_ext=F
4109echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4110echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4111if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4112  echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114  cat >conftest.$ac_ext <<_ACEOF
4115      program main
4116#ifndef __GNUC__
4117       choke me
4118#endif
4119
4120      end
4121_ACEOF
4122rm -f conftest.$ac_objext
4123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124  (eval $ac_compile) 2>conftest.er1
4125  ac_status=$?
4126  grep -v '^ *+' conftest.er1 >conftest.err
4127  rm -f conftest.er1
4128  cat conftest.err >&5
4129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130  (exit $ac_status); } &&
4131         { ac_try='test -z "$ac_f77_werror_flag"
4132                         || test ! -s conftest.err'
4133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134  (eval $ac_try) 2>&5
4135  ac_status=$?
4136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137  (exit $ac_status); }; } &&
4138         { ac_try='test -s conftest.$ac_objext'
4139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140  (eval $ac_try) 2>&5
4141  ac_status=$?
4142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143  (exit $ac_status); }; }; then
4144  ac_compiler_gnu=yes
4145else
4146  echo "$as_me: failed program was:" >&5
4147sed 's/^/| /' conftest.$ac_ext >&5
4148
4149ac_compiler_gnu=no
4150fi
4151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4153
4154fi
4155echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4156echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4157ac_ext=$ac_save_ext
4158ac_test_FFLAGS=${FFLAGS+set}
4159ac_save_FFLAGS=$FFLAGS
4160FFLAGS=
4161echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4162echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4163if test "${ac_cv_prog_f77_g+set}" = set; then
4164  echo $ECHO_N "(cached) $ECHO_C" >&6
4165else
4166  FFLAGS=-g
4167cat >conftest.$ac_ext <<_ACEOF
4168      program main
4169
4170      end
4171_ACEOF
4172rm -f conftest.$ac_objext
4173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4174  (eval $ac_compile) 2>conftest.er1
4175  ac_status=$?
4176  grep -v '^ *+' conftest.er1 >conftest.err
4177  rm -f conftest.er1
4178  cat conftest.err >&5
4179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); } &&
4181         { ac_try='test -z "$ac_f77_werror_flag"
4182                         || test ! -s conftest.err'
4183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184  (eval $ac_try) 2>&5
4185  ac_status=$?
4186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187  (exit $ac_status); }; } &&
4188         { ac_try='test -s conftest.$ac_objext'
4189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190  (eval $ac_try) 2>&5
4191  ac_status=$?
4192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193  (exit $ac_status); }; }; then
4194  ac_cv_prog_f77_g=yes
4195else
4196  echo "$as_me: failed program was:" >&5
4197sed 's/^/| /' conftest.$ac_ext >&5
4198
4199ac_cv_prog_f77_g=no
4200fi
4201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4202
4203fi
4204echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4205echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4206if test "$ac_test_FFLAGS" = set; then
4207  FFLAGS=$ac_save_FFLAGS
4208elif test $ac_cv_prog_f77_g = yes; then
4209  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4210    FFLAGS="-g -O2"
4211  else
4212    FFLAGS="-g"
4213  fi
4214else
4215  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4216    FFLAGS="-O2"
4217  else
4218    FFLAGS=
4219  fi
4220fi
4221
4222G77=`test $ac_compiler_gnu = yes && echo yes`
4223ac_ext=f
4224ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4225ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4227
4228else
4229  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4230echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4231fi
4232
4233FFLAGS="$save_fflags"
4234
4235# Check if a project specific FFLAGS variable has been set
4236if test x$COIN_PRJCT != x; then
4237  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4238  if test x$coin_tmp = xset; then
4239    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4240  fi
4241fi
4242
4243if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4244
4245  coin_add_fflags=
4246  coin_opt_fflags=
4247  coin_dbg_fflags=
4248  coin_warn_fflags=
4249
4250  if test "$G77" = "yes"; then
4251    coin_opt_fflags="-O3 -fomit-frame-pointer"
4252    coin_add_fflags="-pipe"
4253    coin_dbg_fflags="-g"
4254    case $enable_doscompile in
4255      mingw)
4256        FFLAGS="-mno-cygwin"
4257        cat >conftest.$ac_ext <<_ACEOF
4258      program main
4259      write(*,*) 'Hello world'
4260      end
4261_ACEOF
4262rm -f conftest.$ac_objext conftest$ac_exeext
4263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4264  (eval $ac_link) 2>conftest.er1
4265  ac_status=$?
4266  grep -v '^ *+' conftest.er1 >conftest.err
4267  rm -f conftest.er1
4268  cat conftest.err >&5
4269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270  (exit $ac_status); } &&
4271         { ac_try='test -z "$ac_f77_werror_flag"
4272                         || test ! -s conftest.err'
4273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274  (eval $ac_try) 2>&5
4275  ac_status=$?
4276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277  (exit $ac_status); }; } &&
4278         { ac_try='test -s conftest$ac_exeext'
4279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280  (eval $ac_try) 2>&5
4281  ac_status=$?
4282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283  (exit $ac_status); }; }; then
4284  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4285else
4286  echo "$as_me: failed program was:" >&5
4287sed 's/^/| /' conftest.$ac_ext >&5
4288
4289fi
4290rm -f conftest.err conftest.$ac_objext \
4291      conftest$ac_exeext conftest.$ac_ext
4292        FFLAGS=
4293      ;;
4294    esac
4295  else
4296    case $build in
4297      *-cygwin* | *-mingw*)
4298        case $F77 in
4299          ifort* | */ifort* | IFORT* | */IFORT* )
4300            coin_opt_fflags='-O3'
4301            coin_add_fflags='-fpp -nologo -MT'
4302            coin_dbg_fflags='-debug'
4303          ;;
4304          compile_f2c*)
4305            coin_opt_fflags='-MT -O2'
4306            coin_add_fflags='-nologo -wd4996'
4307            coin_dbg_fflags='-MTd'
4308          ;;
4309        esac
4310        ;;
4311      *-linux-*)
4312        case $F77 in
4313          ifc* | */ifc* | ifort* | */ifort*)
4314            coin_opt_fflags="-O3 -ip"
4315            coin_add_fflags="-cm -w90 -w95"
4316            coin_dbg_fflags="-g -CA -CB -CS"
4317            # Check if -i_dynamic is necessary (for new glibc library)
4318            FFLAGS=
4319            cat >conftest.$ac_ext <<_ACEOF
4320      program main
4321      write(*,*) 'Hello world'
4322      end
4323_ACEOF
4324rm -f conftest.$ac_objext conftest$ac_exeext
4325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4326  (eval $ac_link) 2>conftest.er1
4327  ac_status=$?
4328  grep -v '^ *+' conftest.er1 >conftest.err
4329  rm -f conftest.er1
4330  cat conftest.err >&5
4331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332  (exit $ac_status); } &&
4333         { ac_try='test -z "$ac_f77_werror_flag"
4334                         || test ! -s conftest.err'
4335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4336  (eval $ac_try) 2>&5
4337  ac_status=$?
4338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339  (exit $ac_status); }; } &&
4340         { ac_try='test -s conftest$ac_exeext'
4341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342  (eval $ac_try) 2>&5
4343  ac_status=$?
4344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345  (exit $ac_status); }; }; then
4346  :
4347else
4348  echo "$as_me: failed program was:" >&5
4349sed 's/^/| /' conftest.$ac_ext >&5
4350
4351coin_add_fflags="-i_dynamic $coin_add_fflags"
4352fi
4353rm -f conftest.err conftest.$ac_objext \
4354      conftest$ac_exeext conftest.$ac_ext
4355            ;;
4356          pgf77* | */pgf77* | pgf90* | */pgf90*)
4357            coin_opt_fflags="-fast"
4358            coin_add_fflags="-Kieee -pc 64"
4359            coin_dbg_fflags="-g"
4360          ;;
4361        esac
4362        ;;
4363      *-ibm-*)
4364        case "$F77" in
4365          xlf* | */xlf* | mpxlf* | */mpxlf* )
4366            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4367            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4368            coin_dbg_fflags="-g -C"
4369            ;;
4370        esac
4371        ;;
4372      *-hp-*)
4373        coin_opt_fflags="+O3"
4374        coin_add_fflags="+U77"
4375        coin_dbg_fflags="-C -g"
4376        ;;
4377      *-*-solaris*)
4378        coin_opt_fflags="-O4"
4379        coin_dbg_fflags="-g"
4380        ;;
4381      *-sgi-*)
4382        coin_opt_fflags="-O5 -OPT:Olimit=0"
4383        coin_dbg_fflags="-g"
4384        ;;
4385    esac
4386  fi
4387
4388  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4389    coin_dbg_fflags="-g"
4390  fi
4391
4392  if test -z "$coin_opt_fflags"; then
4393    # Try if -O option works if nothing else is set
4394    FFLAGS=-O
4395    cat >conftest.$ac_ext <<_ACEOF
4396      program main
4397      integer i
4398      end
4399_ACEOF
4400rm -f conftest.$ac_objext conftest$ac_exeext
4401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4402  (eval $ac_link) 2>conftest.er1
4403  ac_status=$?
4404  grep -v '^ *+' conftest.er1 >conftest.err
4405  rm -f conftest.er1
4406  cat conftest.err >&5
4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408  (exit $ac_status); } &&
4409         { ac_try='test -z "$ac_f77_werror_flag"
4410                         || test ! -s conftest.err'
4411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412  (eval $ac_try) 2>&5
4413  ac_status=$?
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); }; } &&
4416         { ac_try='test -s conftest$ac_exeext'
4417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4418  (eval $ac_try) 2>&5
4419  ac_status=$?
4420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421  (exit $ac_status); }; }; then
4422  coin_opt_fflags="-O"
4423else
4424  echo "$as_me: failed program was:" >&5
4425sed 's/^/| /' conftest.$ac_ext >&5
4426
4427fi
4428rm -f conftest.err conftest.$ac_objext \
4429      conftest$ac_exeext conftest.$ac_ext
4430  fi
4431
4432  # if PM doesn't want the warning messages, take them out
4433  if test x"$coin_skip_warn_fflags" = xyes; then
4434    coin_warn_fflags=
4435  fi
4436
4437  if test x${DBG_FFLAGS+set} != xset; then
4438    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4439  fi
4440  if test x${OPT_FFLAGS+set} != xset; then
4441    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4442  fi
4443
4444  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4445  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4446
4447  if test "$coin_debug_compile" = "true"; then
4448    FFLAGS="$DBG_FFLAGS"
4449  else
4450    FFLAGS="$OPT_FFLAGS"
4451  fi
4452else
4453  FFLAGS="$FFLAGS $ADD_FFLAGS"
4454  if test x${DBG_FFLAGS+set} != xset; then
4455    DBG_FFLAGS="$FFLAGS"
4456  fi
4457  if test x${OPT_FFLAGS+set} != xset; then
4458    OPT_FFLAGS="$FFLAGS"
4459  fi
4460fi
4461
4462# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4463case "$FFLAGS" in
4464  *-mno-cygwin*)
4465    if test x${CPPFLAGS+set} != xset ; then
4466      CPPFLAGS="-mno-cygwin"
4467    else
4468      case "$CPPFLAGS" in
4469        *-mno-cygwin*)
4470          ;;
4471        *)
4472          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4473          ;;
4474      esac
4475    fi ;;
4476esac
4477
4478# Try if FFLAGS works
4479if test "$F77" != "unavailable" ; then
4480  cat >conftest.$ac_ext <<_ACEOF
4481      program main
4482      integer i
4483      end
4484_ACEOF
4485rm -f conftest.$ac_objext conftest$ac_exeext
4486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487  (eval $ac_link) 2>conftest.er1
4488  ac_status=$?
4489  grep -v '^ *+' conftest.er1 >conftest.err
4490  rm -f conftest.er1
4491  cat conftest.err >&5
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); } &&
4494         { ac_try='test -z "$ac_f77_werror_flag"
4495                         || test ! -s conftest.err'
4496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497  (eval $ac_try) 2>&5
4498  ac_status=$?
4499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500  (exit $ac_status); }; } &&
4501         { ac_try='test -s conftest$ac_exeext'
4502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503  (eval $ac_try) 2>&5
4504  ac_status=$?
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); }; }; then
4507  :
4508else
4509  echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512FFLAGS=
4513fi
4514rm -f conftest.err conftest.$ac_objext \
4515      conftest$ac_exeext conftest.$ac_ext
4516  if test -z "$FFLAGS"; then
4517    { 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
4518echo "$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;}
4519    FFLAGS='-O'
4520    cat >conftest.$ac_ext <<_ACEOF
4521      program main
4522      integer i
4523      end
4524_ACEOF
4525rm -f conftest.$ac_objext conftest$ac_exeext
4526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527  (eval $ac_link) 2>conftest.er1
4528  ac_status=$?
4529  grep -v '^ *+' conftest.er1 >conftest.err
4530  rm -f conftest.er1
4531  cat conftest.err >&5
4532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533  (exit $ac_status); } &&
4534         { ac_try='test -z "$ac_f77_werror_flag"
4535                         || test ! -s conftest.err'
4536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537  (eval $ac_try) 2>&5
4538  ac_status=$?
4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); }; } &&
4541         { ac_try='test -s conftest$ac_exeext'
4542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543  (eval $ac_try) 2>&5
4544  ac_status=$?
4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); }; }; then
4547  :
4548else
4549  echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552FFLAGS=
4553fi
4554rm -f conftest.err conftest.$ac_objext \
4555      conftest$ac_exeext conftest.$ac_ext
4556    if test -z "$FFLAGS"; then
4557      { 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
4558echo "$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;}
4559    fi
4560  fi
4561fi
4562
4563{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4564echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4565
4566
4567if test x"$MPIF77" = x; then :; else
4568  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4569echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4570  F77="$MPIF77"
4571fi
4572
4573case "$F77" in
4574  ifort* | */ifort* | IFORT* | */IFORT*)
4575    case $build in
4576  *-mingw*)
4577    if test "${LD+set}" = set; then :; else
4578      LD=link
4579    fi
4580    ;;
4581 esac
4582 case $enable_doscompile in
4583   msvc)
4584     if test "x${LD+set}" = xset; then :; else
4585       LD=link
4586     fi
4587     ;;
4588 esac
4589
4590    ;;
4591esac
4592
4593ac_ext=c
4594ac_cpp='$CPP $CPPFLAGS'
4595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598
4599
4600
4601# Initialize automake and libtool
4602# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4603{
4604
4605
4606
4607# START
4608
4609# On Cygwin and AIX, building DLLs doesn't work
4610case $build in
4611  *-cygwin*)
4612    coin_disable_shared=yes
4613    platform=Cygwin
4614  ;;
4615  *-aix*)
4616    coin_disable_shared=yes
4617    platform=AIX
4618  ;;
4619  *-mingw*)
4620    coin_disable_shared=yes
4621    platform="Msys"
4622#    case "$CXX" in
4623#      cl*)
4624#        coin_disable_shared=yes
4625#        platform="Msys with cl"
4626#    ;;
4627#    esac
4628  ;;
4629esac
4630if test x"$coin_disable_shared" = xyes; then
4631  if test x"$enable_shared" = xyes; then
4632    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4633echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4634  fi
4635  enable_shared=no
4636fi
4637# By default, we only want the shared objects to be compiled
4638# Check whether --enable-static or --disable-static was given.
4639if test "${enable_static+set}" = set; then
4640  enableval="$enable_static"
4641  p=${PACKAGE-default}
4642    case $enableval in
4643    yes) enable_static=yes ;;
4644    no) enable_static=no ;;
4645    *)
4646     enable_static=no
4647      # Look at the argument we got.  We use all the common list separators.
4648      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4649      for pkg in $enableval; do
4650        IFS="$lt_save_ifs"
4651        if test "X$pkg" = "X$p"; then
4652          enable_static=yes
4653        fi
4654      done
4655      IFS="$lt_save_ifs"
4656      ;;
4657    esac
4658else
4659  enable_static=no
4660fi;
4661
4662
4663
4664
4665# Initialize automake
4666echo "$as_me:$LINENO: checking for egrep" >&5
4667echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4668if test "${ac_cv_prog_egrep+set}" = set; then
4669  echo $ECHO_N "(cached) $ECHO_C" >&6
4670else
4671  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4672    then ac_cv_prog_egrep='grep -E'
4673    else ac_cv_prog_egrep='egrep'
4674    fi
4675fi
4676echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4677echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4678 EGREP=$ac_cv_prog_egrep
4679
4680
4681am__api_version="1.9"
4682# Find a good install program.  We prefer a C program (faster),
4683# so one script is as good as another.  But avoid the broken or
4684# incompatible versions:
4685# SysV /etc/install, /usr/sbin/install
4686# SunOS /usr/etc/install
4687# IRIX /sbin/install
4688# AIX /bin/install
4689# AmigaOS /C/install, which installs bootblocks on floppy discs
4690# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4691# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4692# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4693# OS/2's system install, which has a completely different semantic
4694# ./install, which can be erroneously created by make from ./install.sh.
4695echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4696echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4697if test -z "$INSTALL"; then
4698if test "${ac_cv_path_install+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704  IFS=$as_save_IFS
4705  test -z "$as_dir" && as_dir=.
4706  # Account for people who put trailing slashes in PATH elements.
4707case $as_dir/ in
4708  ./ | .// | /cC/* | \
4709  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4710  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4711  /usr/ucb/* ) ;;
4712  *)
4713    # OSF1 and SCO ODT 3.0 have their own names for install.
4714    # Don't use installbsd from OSF since it installs stuff as root
4715    # by default.
4716    for ac_prog in ginstall scoinst install; do
4717      for ac_exec_ext in '' $ac_executable_extensions; do
4718        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4719          if test $ac_prog = install &&
4720            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4721            # AIX install.  It has an incompatible calling convention.
4722            :
4723          elif test $ac_prog = install &&
4724            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4725            # program-specific install script used by HP pwplus--don't use.
4726            :
4727          else
4728            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4729            break 3
4730          fi
4731        fi
4732      done
4733    done
4734    ;;
4735esac
4736done
4737
4738
4739fi
4740  if test "${ac_cv_path_install+set}" = set; then
4741    INSTALL=$ac_cv_path_install
4742  else
4743    # As a last resort, use the slow shell script.  We don't cache a
4744    # path for INSTALL within a source directory, because that will
4745    # break other packages using the cache if that directory is
4746    # removed, or if the path is relative.
4747    INSTALL=$ac_install_sh
4748  fi
4749fi
4750echo "$as_me:$LINENO: result: $INSTALL" >&5
4751echo "${ECHO_T}$INSTALL" >&6
4752
4753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4754# It thinks the first close brace ends the variable substitution.
4755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4756
4757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4758
4759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4760
4761echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4762echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4763# Just in case
4764sleep 1
4765echo timestamp > conftest.file
4766# Do `set' in a subshell so we don't clobber the current shell's
4767# arguments.  Must try -L first in case configure is actually a
4768# symlink; some systems play weird games with the mod time of symlinks
4769# (eg FreeBSD returns the mod time of the symlink's containing
4770# directory).
4771if (
4772   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4773   if test "$*" = "X"; then
4774      # -L didn't work.
4775      set X `ls -t $srcdir/configure conftest.file`
4776   fi
4777   rm -f conftest.file
4778   if test "$*" != "X $srcdir/configure conftest.file" \
4779      && test "$*" != "X conftest.file $srcdir/configure"; then
4780
4781      # If neither matched, then we have a broken ls.  This can happen
4782      # if, for instance, CONFIG_SHELL is bash and it inherits a
4783      # broken ls alias from the environment.  This has actually
4784      # happened.  Such a system could not be considered "sane".
4785      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4786alias in your environment" >&5
4787echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4788alias in your environment" >&2;}
4789   { (exit 1); exit 1; }; }
4790   fi
4791
4792   test "$2" = conftest.file
4793   )
4794then
4795   # Ok.
4796   :
4797else
4798   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4799Check your system clock" >&5
4800echo "$as_me: error: newly created file is older than distributed files!
4801Check your system clock" >&2;}
4802   { (exit 1); exit 1; }; }
4803fi
4804echo "$as_me:$LINENO: result: yes" >&5
4805echo "${ECHO_T}yes" >&6
4806test "$program_prefix" != NONE &&
4807  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4808# Use a double $ so make ignores it.
4809test "$program_suffix" != NONE &&
4810  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4811# Double any \ or $.  echo might interpret backslashes.
4812# By default was `s,x,x', remove it if useless.
4813cat <<\_ACEOF >conftest.sed
4814s/[\\$]/&&/g;s/;s,x,x,$//
4815_ACEOF
4816program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4817rm conftest.sed
4818
4819# expand $ac_aux_dir to an absolute path
4820am_aux_dir=`cd $ac_aux_dir && pwd`
4821
4822test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4823# Use eval to expand $SHELL
4824if eval "$MISSING --run true"; then
4825  am_missing_run="$MISSING --run "
4826else
4827  am_missing_run=
4828  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4829echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4830fi
4831
4832if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4833  # We used to keeping the `.' as first argument, in order to
4834  # allow $(mkdir_p) to be used without argument.  As in
4835  #   $(mkdir_p) $(somedir)
4836  # where $(somedir) is conditionally defined.  However this is wrong
4837  # for two reasons:
4838  #  1. if the package is installed by a user who cannot write `.'
4839  #     make install will fail,
4840  #  2. the above comment should most certainly read
4841  #     $(mkdir_p) $(DESTDIR)$(somedir)
4842  #     so it does not work when $(somedir) is undefined and
4843  #     $(DESTDIR) is not.
4844  #  To support the latter case, we have to write
4845  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4846  #  so the `.' trick is pointless.
4847  mkdir_p='mkdir -p --'
4848else
4849  # On NextStep and OpenStep, the `mkdir' command does not
4850  # recognize any option.  It will interpret all options as
4851  # directories to create, and then abort because `.' already
4852  # exists.
4853  for d in ./-p ./--version;
4854  do
4855    test -d $d && rmdir $d
4856  done
4857  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4858  if test -f "$ac_aux_dir/mkinstalldirs"; then
4859    mkdir_p='$(mkinstalldirs)'
4860  else
4861    mkdir_p='$(install_sh) -d'
4862  fi
4863fi
4864
4865for ac_prog in gawk mawk nawk awk
4866do
4867  # Extract the first word of "$ac_prog", so it can be a program name with args.
4868set dummy $ac_prog; ac_word=$2
4869echo "$as_me:$LINENO: checking for $ac_word" >&5
4870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4871if test "${ac_cv_prog_AWK+set}" = set; then
4872  echo $ECHO_N "(cached) $ECHO_C" >&6
4873else
4874  if test -n "$AWK"; then
4875  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4876else
4877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4878for as_dir in $PATH
4879do
4880  IFS=$as_save_IFS
4881  test -z "$as_dir" && as_dir=.
4882  for ac_exec_ext in '' $ac_executable_extensions; do
4883  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4884    ac_cv_prog_AWK="$ac_prog"
4885    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886    break 2
4887  fi
4888done
4889done
4890
4891fi
4892fi
4893AWK=$ac_cv_prog_AWK
4894if test -n "$AWK"; then
4895  echo "$as_me:$LINENO: result: $AWK" >&5
4896echo "${ECHO_T}$AWK" >&6
4897else
4898  echo "$as_me:$LINENO: result: no" >&5
4899echo "${ECHO_T}no" >&6
4900fi
4901
4902  test -n "$AWK" && break
4903done
4904
4905echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4906echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4907set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4908if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4909  echo $ECHO_N "(cached) $ECHO_C" >&6
4910else
4911  cat >conftest.make <<\_ACEOF
4912all:
4913        @echo 'ac_maketemp="$(MAKE)"'
4914_ACEOF
4915# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4916eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4917if test -n "$ac_maketemp"; then
4918  eval ac_cv_prog_make_${ac_make}_set=yes
4919else
4920  eval ac_cv_prog_make_${ac_make}_set=no
4921fi
4922rm -f conftest.make
4923fi
4924if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4925  echo "$as_me:$LINENO: result: yes" >&5
4926echo "${ECHO_T}yes" >&6
4927  SET_MAKE=
4928else
4929  echo "$as_me:$LINENO: result: no" >&5
4930echo "${ECHO_T}no" >&6
4931  SET_MAKE="MAKE=${MAKE-make}"
4932fi
4933
4934rm -rf .tst 2>/dev/null
4935mkdir .tst 2>/dev/null
4936if test -d .tst; then
4937  am__leading_dot=.
4938else
4939  am__leading_dot=_
4940fi
4941rmdir .tst 2>/dev/null
4942
4943DEPDIR="${am__leading_dot}deps"
4944
4945          ac_config_commands="$ac_config_commands depfiles"
4946
4947
4948am_make=${MAKE-make}
4949cat > confinc << 'END'
4950am__doit:
4951        @echo done
4952.PHONY: am__doit
4953END
4954# If we don't find an include directive, just comment out the code.
4955echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4956echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4957am__include="#"
4958am__quote=
4959_am_result=none
4960# First try GNU make style include.
4961echo "include confinc" > confmf
4962# We grep out `Entering directory' and `Leaving directory'
4963# messages which can occur if `w' ends up in MAKEFLAGS.
4964# In particular we don't look at `^make:' because GNU make might
4965# be invoked under some other name (usually "gmake"), in which
4966# case it prints its new name instead of `make'.
4967if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4968   am__include=include
4969   am__quote=
4970   _am_result=GNU
4971fi
4972# Now try BSD make style include.
4973if test "$am__include" = "#"; then
4974   echo '.include "confinc"' > confmf
4975   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4976      am__include=.include
4977      am__quote="\""
4978      _am_result=BSD
4979   fi
4980fi
4981
4982
4983echo "$as_me:$LINENO: result: $_am_result" >&5
4984echo "${ECHO_T}$_am_result" >&6
4985rm -f confinc confmf
4986
4987# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4988if test "${enable_dependency_tracking+set}" = set; then
4989  enableval="$enable_dependency_tracking"
4990
4991fi;
4992if test "x$enable_dependency_tracking" != xno; then
4993  am_depcomp="$ac_aux_dir/depcomp"
4994  AMDEPBACKSLASH='\'
4995fi
4996
4997
4998if test "x$enable_dependency_tracking" != xno; then
4999  AMDEP_TRUE=
5000  AMDEP_FALSE='#'
5001else
5002  AMDEP_TRUE='#'
5003  AMDEP_FALSE=
5004fi
5005
5006
5007
5008
5009
5010# AC_MSG_NOTICE([Beginning automake initialisation.])
5011# Stuff for automake
5012# test to see if srcdir already configured
5013if test "`cd $srcdir && pwd`" != "`pwd`" &&
5014   test -f $srcdir/config.status; then
5015  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5016echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5017   { (exit 1); exit 1; }; }
5018fi
5019
5020# test whether we have cygpath
5021if test -z "$CYGPATH_W"; then
5022  if (cygpath --version) >/dev/null 2>/dev/null; then
5023    CYGPATH_W='cygpath -w'
5024  else
5025    CYGPATH_W=echo
5026  fi
5027fi
5028
5029
5030# Define the identity of the package.
5031 PACKAGE='clp'
5032 VERSION='0.1'
5033
5034
5035cat >>confdefs.h <<_ACEOF
5036#define PACKAGE "$PACKAGE"
5037_ACEOF
5038
5039
5040cat >>confdefs.h <<_ACEOF
5041#define VERSION "$VERSION"
5042_ACEOF
5043
5044# Some tools Automake needs.
5045
5046ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5047
5048
5049AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5050
5051
5052AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5053
5054
5055AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5056
5057
5058MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5059
5060install_sh=${install_sh-"$am_aux_dir/install-sh"}
5061
5062# Installed binaries are usually stripped using `strip' when the user
5063# run `make install-strip'.  However `strip' might not be the right
5064# tool to use in cross-compilation environments, therefore Automake
5065# will honor the `STRIP' environment variable to overrule this program.
5066if test "$cross_compiling" != no; then
5067  if test -n "$ac_tool_prefix"; then
5068  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5069set dummy ${ac_tool_prefix}strip; ac_word=$2
5070echo "$as_me:$LINENO: checking for $ac_word" >&5
5071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5072if test "${ac_cv_prog_STRIP+set}" = set; then
5073  echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075  if test -n "$STRIP"; then
5076  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5077else
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081  IFS=$as_save_IFS
5082  test -z "$as_dir" && as_dir=.
5083  for ac_exec_ext in '' $ac_executable_extensions; do
5084  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087    break 2
5088  fi
5089done
5090done
5091
5092fi
5093fi
5094STRIP=$ac_cv_prog_STRIP
5095if test -n "$STRIP"; then
5096  echo "$as_me:$LINENO: result: $STRIP" >&5
5097echo "${ECHO_T}$STRIP" >&6
5098else
5099  echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6
5101fi
5102
5103fi
5104if test -z "$ac_cv_prog_STRIP"; then
5105  ac_ct_STRIP=$STRIP
5106  # Extract the first word of "strip", so it can be a program name with args.
5107set dummy strip; ac_word=$2
5108echo "$as_me:$LINENO: checking for $ac_word" >&5
5109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5110if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5111  echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113  if test -n "$ac_ct_STRIP"; then
5114  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119  IFS=$as_save_IFS
5120  test -z "$as_dir" && as_dir=.
5121  for ac_exec_ext in '' $ac_executable_extensions; do
5122  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123    ac_cv_prog_ac_ct_STRIP="strip"
5124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125    break 2
5126  fi
5127done
5128done
5129
5130  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5131fi
5132fi
5133ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5134if test -n "$ac_ct_STRIP"; then
5135  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5136echo "${ECHO_T}$ac_ct_STRIP" >&6
5137else
5138  echo "$as_me:$LINENO: result: no" >&5
5139echo "${ECHO_T}no" >&6
5140fi
5141
5142  STRIP=$ac_ct_STRIP
5143else
5144  STRIP="$ac_cv_prog_STRIP"
5145fi
5146
5147fi
5148INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5149
5150# We need awk for the "check" target.  The system "awk" is bad on
5151# some platforms.
5152# Always define AMTAR for backward compatibility.
5153
5154AMTAR=${AMTAR-"${am_missing_run}tar"}
5155
5156am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5157
5158
5159
5160
5161depcc="$CC"   am_compiler_list=
5162
5163echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5164echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5165if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5166  echo $ECHO_N "(cached) $ECHO_C" >&6
5167else
5168  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5169  # We make a subdir and do the tests there.  Otherwise we can end up
5170  # making bogus files that we don't know about and never remove.  For
5171  # instance it was reported that on HP-UX the gcc test will end up
5172  # making a dummy file named `D' -- because `-MD' means `put the output
5173  # in D'.
5174  mkdir conftest.dir
5175  # Copy depcomp to subdir because otherwise we won't find it if we're
5176  # using a relative directory.
5177  cp "$am_depcomp" conftest.dir
5178  cd conftest.dir
5179  # We will build objects and dependencies in a subdirectory because
5180  # it helps to detect inapplicable dependency modes.  For instance
5181  # both Tru64's cc and ICC support -MD to output dependencies as a
5182  # side effect of compilation, but ICC will put the dependencies in
5183  # the current directory while Tru64 will put them in the object
5184  # directory.
5185  mkdir sub
5186
5187  am_cv_CC_dependencies_compiler_type=none
5188  if test "$am_compiler_list" = ""; then
5189     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5190  fi
5191  for depmode in $am_compiler_list; do
5192    # Setup a source with many dependencies, because some compilers
5193    # like to wrap large dependency lists on column 80 (with \), and
5194    # we should not choose a depcomp mode which is confused by this.
5195    #
5196    # We need to recreate these files for each test, as the compiler may
5197    # overwrite some of them when testing with obscure command lines.
5198    # This happens at least with the AIX C compiler.
5199    : > sub/conftest.c
5200    for i in 1 2 3 4 5 6; do
5201      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5202      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5203      # Solaris 8's {/usr,}/bin/sh.
5204      touch sub/conftst$i.h
5205    done
5206    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5207
5208    case $depmode in
5209    nosideeffect)
5210      # after this tag, mechanisms are not by side-effect, so they'll
5211      # only be used when explicitly requested
5212      if test "x$enable_dependency_tracking" = xyes; then
5213        continue
5214      else
5215        break
5216      fi
5217      ;;
5218    none) break ;;
5219    esac
5220    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5221    # mode.  It turns out that the SunPro C++ compiler does not properly
5222    # handle `-M -o', and we need to detect this.
5223    if depmode=$depmode \
5224       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5225       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5226       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5227         >/dev/null 2>conftest.err &&
5228       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5229       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5230       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5231      # icc doesn't choke on unknown options, it will just issue warnings
5232      # or remarks (even with -Werror).  So we grep stderr for any message
5233      # that says an option was ignored or not supported.
5234      # When given -MP, icc 7.0 and 7.1 complain thusly:
5235      #   icc: Command line warning: ignoring option '-M'; no argument required
5236      # The diagnosis changed in icc 8.0:
5237      #   icc: Command line remark: option '-MP' not supported
5238      if (grep 'ignoring option' conftest.err ||
5239          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5240        am_cv_CC_dependencies_compiler_type=$depmode
5241        break
5242      fi
5243    fi
5244  done
5245
5246  cd ..
5247  rm -rf conftest.dir
5248else
5249  am_cv_CC_dependencies_compiler_type=none
5250fi
5251
5252fi
5253echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5254echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5255CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5256
5257
5258
5259if
5260  test "x$enable_dependency_tracking" != xno \
5261  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5262  am__fastdepCC_TRUE=
5263  am__fastdepCC_FALSE='#'
5264else
5265  am__fastdepCC_TRUE='#'
5266  am__fastdepCC_FALSE=
5267fi
5268
5269
5270depcc="$CXX"  am_compiler_list=
5271
5272echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5273echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5274if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5275  echo $ECHO_N "(cached) $ECHO_C" >&6
5276else
5277  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5278  # We make a subdir and do the tests there.  Otherwise we can end up
5279  # making bogus files that we don't know about and never remove.  For
5280  # instance it was reported that on HP-UX the gcc test will end up
5281  # making a dummy file named `D' -- because `-MD' means `put the output
5282  # in D'.
5283  mkdir conftest.dir
5284  # Copy depcomp to subdir because otherwise we won't find it if we're
5285  # using a relative directory.
5286  cp "$am_depcomp" conftest.dir
5287  cd conftest.dir
5288  # We will build objects and dependencies in a subdirectory because
5289  # it helps to detect inapplicable dependency modes.  For instance
5290  # both Tru64's cc and ICC support -MD to output dependencies as a
5291  # side effect of compilation, but ICC will put the dependencies in
5292  # the current directory while Tru64 will put them in the object
5293  # directory.
5294  mkdir sub
5295
5296  am_cv_CXX_dependencies_compiler_type=none
5297  if test "$am_compiler_list" = ""; then
5298     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5299  fi
5300  for depmode in $am_compiler_list; do
5301    # Setup a source with many dependencies, because some compilers
5302    # like to wrap large dependency lists on column 80 (with \), and
5303    # we should not choose a depcomp mode which is confused by this.
5304    #
5305    # We need to recreate these files for each test, as the compiler may
5306    # overwrite some of them when testing with obscure command lines.
5307    # This happens at least with the AIX C compiler.
5308    : > sub/conftest.c
5309    for i in 1 2 3 4 5 6; do
5310      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5311      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5312      # Solaris 8's {/usr,}/bin/sh.
5313      touch sub/conftst$i.h
5314    done
5315    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5316
5317    case $depmode in
5318    nosideeffect)
5319      # after this tag, mechanisms are not by side-effect, so they'll
5320      # only be used when explicitly requested
5321      if test "x$enable_dependency_tracking" = xyes; then
5322        continue
5323      else
5324        break
5325      fi
5326      ;;
5327    none) break ;;
5328    esac
5329    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5330    # mode.  It turns out that the SunPro C++ compiler does not properly
5331    # handle `-M -o', and we need to detect this.
5332    if depmode=$depmode \
5333       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5334       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5335       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5336         >/dev/null 2>conftest.err &&
5337       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5338       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5339       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5340      # icc doesn't choke on unknown options, it will just issue warnings
5341      # or remarks (even with -Werror).  So we grep stderr for any message
5342      # that says an option was ignored or not supported.
5343      # When given -MP, icc 7.0 and 7.1 complain thusly:
5344      #   icc: Command line warning: ignoring option '-M'; no argument required
5345      # The diagnosis changed in icc 8.0:
5346      #   icc: Command line remark: option '-MP' not supported
5347      if (grep 'ignoring option' conftest.err ||
5348          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5349        am_cv_CXX_dependencies_compiler_type=$depmode
5350        break
5351      fi
5352    fi
5353  done
5354
5355  cd ..
5356  rm -rf conftest.dir
5357else
5358  am_cv_CXX_dependencies_compiler_type=none
5359fi
5360
5361fi
5362echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5363echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5364CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5365
5366
5367
5368if
5369  test "x$enable_dependency_tracking" != xno \
5370  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5371  am__fastdepCXX_TRUE=
5372  am__fastdepCXX_FALSE='#'
5373else
5374  am__fastdepCXX_TRUE='#'
5375  am__fastdepCXX_FALSE=
5376fi
5377
5378
5379
5380echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5381echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5382    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5383if test "${enable_maintainer_mode+set}" = set; then
5384  enableval="$enable_maintainer_mode"
5385  USE_MAINTAINER_MODE=$enableval
5386else
5387  USE_MAINTAINER_MODE=no
5388fi;
5389  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5390echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5391
5392
5393if test $USE_MAINTAINER_MODE = yes; then
5394  MAINTAINER_MODE_TRUE=
5395  MAINTAINER_MODE_FALSE='#'
5396else
5397  MAINTAINER_MODE_TRUE='#'
5398  MAINTAINER_MODE_FALSE=
5399fi
5400
5401  MAINT=$MAINTAINER_MODE_TRUE
5402
5403
5404
5405coin_have_externals=no
5406if test "$enable_maintainer_mode" = yes; then
5407
5408  # If maintainer mode is chosen, we make sure that the correct versions
5409  # of the tools are used, and that we know where libtool.m4 is (to
5410  # recreate acinclude.m4)
5411
5412
5413  LIBTOOLM4=
5414  # Normally, $HOME
5415  AUTOTOOLS_DFLT=$HOME
5416
5417  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5418echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5419if test "${ac_cv_use_correct_autotools+set}" = set; then
5420  echo $ECHO_N "(cached) $ECHO_C" >&6
5421else
5422  ac_cv_use_correct_autotools=check
5423fi
5424echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5425echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5426
5427  if test $ac_cv_use_correct_autotools = check; then
5428    ac_cv_use_correct_autotools=yes
5429    # Check if we have autoconf
5430    # Extract the first word of "autoconf", so it can be a program name with args.
5431set dummy autoconf; ac_word=$2
5432echo "$as_me:$LINENO: checking for $ac_word" >&5
5433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434if test "${ac_cv_prog_have_autoconf+set}" = set; then
5435  echo $ECHO_N "(cached) $ECHO_C" >&6
5436else
5437  if test -n "$have_autoconf"; then
5438  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5439else
5440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443  IFS=$as_save_IFS
5444  test -z "$as_dir" && as_dir=.
5445  for ac_exec_ext in '' $ac_executable_extensions; do
5446  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447    ac_cv_prog_have_autoconf="yes"
5448    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449    break 2
5450  fi
5451done
5452done
5453
5454  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5455fi
5456fi
5457have_autoconf=$ac_cv_prog_have_autoconf
5458if test -n "$have_autoconf"; then
5459  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5460echo "${ECHO_T}$have_autoconf" >&6
5461else
5462  echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6
5464fi
5465
5466    if test $have_autoconf = no; then
5467      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5468echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5469   { (exit 1); exit 1; }; }
5470    fi
5471
5472    # Check whether autoconf is the correct version
5473    correct_version='2.59'
5474    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5475    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5476echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5477    autoconf --version > confauto.out 2>&1
5478    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5479      echo "$as_me:$LINENO: result: yes" >&5
5480echo "${ECHO_T}yes" >&6
5481    else
5482      rm -f confauto.out
5483      echo "$as_me:$LINENO: result: no" >&5
5484echo "${ECHO_T}no" >&6
5485      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5486echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5487   { (exit 1); exit 1; }; }
5488    fi
5489    rm -f confauto.out
5490
5491    # Check if the executable autoconf is picked up from the correct location
5492    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5493echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5494    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5495    autoconf_dir=`cd $autoconf_dir; pwd`
5496    if test x$AUTOTOOLS_DIR = x; then
5497      want_dir=$AUTOTOOLS_DFLT/bin
5498    else
5499      want_dir=$AUTOTOOLS_DIR/bin
5500    fi
5501    if test $autoconf_dir = `cd $want_dir; pwd`; then
5502      echo "$as_me:$LINENO: result: yes" >&5
5503echo "${ECHO_T}yes" >&6
5504    else
5505      rm -f confauto.out
5506      echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5509echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5510   { (exit 1); exit 1; }; }
5511    fi
5512
5513    # Check if we have automake
5514    # Extract the first word of "automake", so it can be a program name with args.
5515set dummy automake; ac_word=$2
5516echo "$as_me:$LINENO: checking for $ac_word" >&5
5517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5518if test "${ac_cv_prog_have_automake+set}" = set; then
5519  echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521  if test -n "$have_automake"; then
5522  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527  IFS=$as_save_IFS
5528  test -z "$as_dir" && as_dir=.
5529  for ac_exec_ext in '' $ac_executable_extensions; do
5530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5531    ac_cv_prog_have_automake="yes"
5532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533    break 2
5534  fi
5535done
5536done
5537
5538  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5539fi
5540fi
5541have_automake=$ac_cv_prog_have_automake
5542if test -n "$have_automake"; then
5543  echo "$as_me:$LINENO: result: $have_automake" >&5
5544echo "${ECHO_T}$have_automake" >&6
5545else
5546  echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
5548fi
5549
5550    if test $have_automake = no; then
5551      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5552echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5553   { (exit 1); exit 1; }; }
5554    fi
5555
5556    # Check whether automake is the correct version
5557    correct_version='1.9.6'
5558    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5559    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5560echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5561    automake --version > confauto.out 2>&1
5562    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5563      echo "$as_me:$LINENO: result: yes" >&5
5564echo "${ECHO_T}yes" >&6
5565    else
5566      rm -f confauto.out
5567      echo "$as_me:$LINENO: result: no" >&5
5568echo "${ECHO_T}no" >&6
5569      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5570echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5571   { (exit 1); exit 1; }; }
5572    fi
5573    rm -f confauto.out
5574
5575    # Check if the executable automake is picked up from the correct location
5576    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5577echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5578    automake_dir=`which automake | sed -e 's=/automake=='`
5579    automake_dir=`cd $automake_dir; pwd`
5580    if test x$AUTOTOOLS_DIR = x; then
5581      want_dir=$AUTOTOOLS_DFLT/bin
5582    else
5583      want_dir=$AUTOTOOLS_DIR/bin
5584    fi
5585    if test $automake_dir = `cd $want_dir; pwd`; then
5586      echo "$as_me:$LINENO: result: yes" >&5
5587echo "${ECHO_T}yes" >&6
5588    else
5589      rm -f confauto.out
5590      echo "$as_me:$LINENO: result: no" >&5
5591echo "${ECHO_T}no" >&6
5592      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5593echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5594   { (exit 1); exit 1; }; }
5595    fi
5596
5597    # Check if this is the correct version of libtool (with escaped dots)
5598    if test x$AUTOTOOLS_DIR = x; then
5599      want_dir=$AUTOTOOLS_DFLT/share
5600    else
5601      want_dir=$AUTOTOOLS_DIR/share
5602    fi
5603    correct_version='1.5.22'
5604    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5605    if test -r $want_dir/libtool/ltmain.sh; then
5606  have_ltmain=yes
5607  :
5608else
5609  have_ltmain=no
5610  :
5611fi
5612
5613    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5614echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5615    if test $have_ltmain = yes; then
5616    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5617        echo "$as_me:$LINENO: result: yes" >&5
5618echo "${ECHO_T}yes" >&6
5619      else
5620        echo "$as_me:$LINENO: result: no" >&5
5621echo "${ECHO_T}no" >&6
5622        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5623echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5624   { (exit 1); exit 1; }; }
5625      fi
5626    else
5627      echo "$as_me:$LINENO: result: no" >&5
5628echo "${ECHO_T}no" >&6
5629      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5630echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5631   { (exit 1); exit 1; }; }
5632    fi
5633  fi
5634
5635  # Check if we can find the libtool file
5636  if test x$AUTOTOOLS_DIR = x; then
5637    want_dir=$AUTOTOOLS_DFLT/share
5638  else
5639    want_dir=$AUTOTOOLS_DIR/share
5640  fi
5641  if test -r $want_dir/aclocal/libtool.m4; then
5642  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5643  :
5644else
5645  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5646echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5647   { (exit 1); exit 1; }; }
5648  :
5649fi
5650
5651
5652  # Check if we have an Externals file
5653  if test -r $srcdir/Externals; then
5654    coin_have_externals=yes
5655  fi
5656  # Check if subversion is installed and understands https
5657  # Extract the first word of "svn", so it can be a program name with args.
5658set dummy svn; ac_word=$2
5659echo "$as_me:$LINENO: checking for $ac_word" >&5
5660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5661if test "${ac_cv_prog_have_svn+set}" = set; then
5662  echo $ECHO_N "(cached) $ECHO_C" >&6
5663else
5664  if test -n "$have_svn"; then
5665  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5666else
5667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668for as_dir in $PATH
5669do
5670  IFS=$as_save_IFS
5671  test -z "$as_dir" && as_dir=.
5672  for ac_exec_ext in '' $ac_executable_extensions; do
5673  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5674    ac_cv_prog_have_svn="yes"
5675    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5676    break 2
5677  fi
5678done
5679done
5680
5681  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5682fi
5683fi
5684have_svn=$ac_cv_prog_have_svn
5685if test -n "$have_svn"; then
5686  echo "$as_me:$LINENO: result: $have_svn" >&5
5687echo "${ECHO_T}$have_svn" >&6
5688else
5689  echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6
5691fi
5692
5693  if test x$have_svn = xyes; then
5694    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5695echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5696if test "${ac_cv_svn_understands_https+set}" = set; then
5697  echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699  svn --version > confauto.out 2>&1
5700                    if $EGREP https confauto.out >/dev/null 2>&1; then
5701                      ac_cv_svn_understands_https=yes
5702                    else
5703                      ac_cv_svn_understands_https=no
5704                      have_svn=no
5705                      ac_cv_prog_have_svn=no
5706                    fi
5707                    rm -f confauto.out
5708fi
5709echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5710echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5711  fi
5712
5713  # Find the location of the BuildTools directory
5714  BUILDTOOLSDIR=
5715  if test -r $srcdir/BuildTools/coin.m4; then
5716    BUILDTOOLSDIR=$srcdir/BuildTools
5717  else
5718    if test -r $srcdir/../BuildTools/coin.m4; then
5719      BUILDTOOLSDIR=$srcdir/../BuildTools
5720    else
5721      if test -r $srcdir/../../BuildTools/coin.m4; then
5722        BUILDTOOLSDIR=$srcdir/../../BuildTools
5723      else
5724        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5725echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5726   { (exit 1); exit 1; }; }
5727      fi
5728    fi
5729  fi
5730
5731
5732  # The following variable is set to the name of the directory where
5733  # the autotool scripts are located
5734
5735  AUX_DIR=$ac_aux_dir
5736fi
5737
5738# helpful variable for the base directory of this package
5739abs_source_dir=`cd $srcdir; pwd`
5740
5741
5742# Stuff for example Makefiles
5743if test x$prefix = xNONE; then
5744  full_prefix=$ac_default_prefix
5745else
5746  full_prefix=$prefix
5747fi
5748full_prefix=`cd $full_prefix ; pwd`
5749
5750abs_lib_dir=$full_prefix/lib
5751
5752abs_include_dir=$full_prefix/include
5753
5754abs_bin_dir=$full_prefix/bin
5755
5756
5757
5758if test $coin_have_externals = yes && test x$have_svn = xyes; then
5759  HAVE_EXTERNALS_TRUE=
5760  HAVE_EXTERNALS_FALSE='#'
5761else
5762  HAVE_EXTERNALS_TRUE='#'
5763  HAVE_EXTERNALS_FALSE=
5764fi
5765
5766
5767# AC_MSG_NOTICE([End automake initialisation.])
5768
5769
5770
5771LIBTOOL=
5772if test -r ../libtool; then
5773  coin_config_dir=..
5774  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5775fi
5776if test "x$LIBTOOL" = x; then
5777  if test -r ../../libtool; then
5778    coin_config_dir=../..
5779    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5780  fi
5781fi
5782
5783if test "x$LIBTOOL" = x; then
5784# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5785  # Stuff for libtool
5786  # Check whether --enable-shared or --disable-shared was given.
5787if test "${enable_shared+set}" = set; then
5788  enableval="$enable_shared"
5789  p=${PACKAGE-default}
5790    case $enableval in
5791    yes) enable_shared=yes ;;
5792    no) enable_shared=no ;;
5793    *)
5794      enable_shared=no
5795      # Look at the argument we got.  We use all the common list separators.
5796      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5797      for pkg in $enableval; do
5798        IFS="$lt_save_ifs"
5799        if test "X$pkg" = "X$p"; then
5800          enable_shared=yes
5801        fi
5802      done
5803      IFS="$lt_save_ifs"
5804      ;;
5805    esac
5806else
5807  enable_shared=yes
5808fi;
5809
5810# Check whether --enable-fast-install or --disable-fast-install was given.
5811if test "${enable_fast_install+set}" = set; then
5812  enableval="$enable_fast_install"
5813  p=${PACKAGE-default}
5814    case $enableval in
5815    yes) enable_fast_install=yes ;;
5816    no) enable_fast_install=no ;;
5817    *)
5818      enable_fast_install=no
5819      # Look at the argument we got.  We use all the common list separators.
5820      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5821      for pkg in $enableval; do
5822        IFS="$lt_save_ifs"
5823        if test "X$pkg" = "X$p"; then
5824          enable_fast_install=yes
5825        fi
5826      done
5827      IFS="$lt_save_ifs"
5828      ;;
5829    esac
5830else
5831  enable_fast_install=yes
5832fi;
5833
5834echo "$as_me:$LINENO: checking host system type" >&5
5835echo $ECHO_N "checking host system type... $ECHO_C" >&6
5836if test "${ac_cv_host+set}" = set; then
5837  echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839  ac_cv_host_alias=$host_alias
5840test -z "$ac_cv_host_alias" &&
5841  ac_cv_host_alias=$ac_cv_build_alias
5842ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5843  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5844echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5845   { (exit 1); exit 1; }; }
5846
5847fi
5848echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5849echo "${ECHO_T}$ac_cv_host" >&6
5850host=$ac_cv_host
5851host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5852host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5853host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5854
5855
5856echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5857echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5858if test "${lt_cv_path_SED+set}" = set; then
5859  echo $ECHO_N "(cached) $ECHO_C" >&6
5860else
5861  # Loop through the user's path and test for sed and gsed.
5862# Then use that list of sed's as ones to test for truncation.
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866  IFS=$as_save_IFS
5867  test -z "$as_dir" && as_dir=.
5868  for lt_ac_prog in sed gsed; do
5869    for ac_exec_ext in '' $ac_executable_extensions; do
5870      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5871        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5872      fi
5873    done
5874  done
5875done
5876lt_ac_max=0
5877lt_ac_count=0
5878# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5879# along with /bin/sed that truncates output.
5880for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5881  test ! -f $lt_ac_sed && continue
5882  cat /dev/null > conftest.in
5883  lt_ac_count=0
5884  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5885  # Check for GNU sed and select it if it is found.
5886  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5887    lt_cv_path_SED=$lt_ac_sed
5888    break
5889  fi
5890  while true; do
5891    cat conftest.in conftest.in >conftest.tmp
5892    mv conftest.tmp conftest.in
5893    cp conftest.in conftest.nl
5894    echo >>conftest.nl
5895    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5896    cmp -s conftest.out conftest.nl || break
5897    # 10000 chars as input seems more than enough
5898    test $lt_ac_count -gt 10 && break
5899    lt_ac_count=`expr $lt_ac_count + 1`
5900    if test $lt_ac_count -gt $lt_ac_max; then
5901      lt_ac_max=$lt_ac_count
5902      lt_cv_path_SED=$lt_ac_sed
5903    fi
5904  done
5905done
5906
5907fi
5908
5909SED=$lt_cv_path_SED
5910echo "$as_me:$LINENO: result: $SED" >&5
5911echo "${ECHO_T}$SED" >&6
5912
5913
5914# Check whether --with-gnu-ld or --without-gnu-ld was given.
5915if test "${with_gnu_ld+set}" = set; then
5916  withval="$with_gnu_ld"
5917  test "$withval" = no || with_gnu_ld=yes
5918else
5919  with_gnu_ld=no
5920fi;
5921ac_prog=ld
5922if test "$GCC" = yes; then
5923  # Check if gcc -print-prog-name=ld gives a path.
5924  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5925echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5926  case $host in
5927  *-*-mingw*)
5928    # gcc leaves a trailing carriage return which upsets mingw
5929    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5930  *)
5931    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5932  esac
5933  case $ac_prog in
5934    # Accept absolute paths.
5935    [\\/]* | ?:[\\/]*)
5936      re_direlt='/[^/][^/]*/\.\./'
5937      # Canonicalize the pathname of ld
5938      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5939      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5940        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5941      done
5942      test -z "$LD" && LD="$ac_prog"
5943      ;;
5944  "")
5945    # If it fails, then pretend we aren't using GCC.
5946    ac_prog=ld
5947    ;;
5948  *)
5949    # If it is relative, then search for the first ld in PATH.
5950    with_gnu_ld=unknown
5951    ;;
5952  esac
5953elif test "$with_gnu_ld" = yes; then
5954  echo "$as_me:$LINENO: checking for GNU ld" >&5
5955echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5956else
5957  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5958echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5959fi
5960if test "${lt_cv_path_LD+set}" = set; then
5961  echo $ECHO_N "(cached) $ECHO_C" >&6
5962else
5963  if test -z "$LD"; then
5964  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5965  for ac_dir in $PATH; do
5966    IFS="$lt_save_ifs"
5967    test -z "$ac_dir" && ac_dir=.
5968    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5969      lt_cv_path_LD="$ac_dir/$ac_prog"
5970      # Check to see if the program is GNU ld.  I'd rather use --version,
5971      # but apparently some variants of GNU ld only accept -v.
5972      # Break only if it was the GNU/non-GNU ld that we prefer.
5973      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5974      *GNU* | *'with BFD'*)
5975        test "$with_gnu_ld" != no && break
5976        ;;
5977      *)
5978        test "$with_gnu_ld" != yes && break
5979        ;;
5980      esac
5981    fi
5982  done
5983  IFS="$lt_save_ifs"
5984else
5985  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5986fi
5987fi
5988
5989LD="$lt_cv_path_LD"
5990if test -n "$LD"; then
5991  echo "$as_me:$LINENO: result: $LD" >&5
5992echo "${ECHO_T}$LD" >&6
5993else
5994  echo "$as_me:$LINENO: result: no" >&5
5995echo "${ECHO_T}no" >&6
5996fi
5997test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5998echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5999   { (exit 1); exit 1; }; }
6000echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6001echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6002if test "${lt_cv_prog_gnu_ld+set}" = set; then
6003  echo $ECHO_N "(cached) $ECHO_C" >&6
6004else
6005  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6006case `$LD -v 2>&1 </dev/null` in
6007*GNU* | *'with BFD'*)
6008  lt_cv_prog_gnu_ld=yes
6009  ;;
6010*)
6011  lt_cv_prog_gnu_ld=no
6012  ;;
6013esac
6014fi
6015echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6016echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6017with_gnu_ld=$lt_cv_prog_gnu_ld
6018
6019
6020echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6021echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6022if test "${lt_cv_ld_reload_flag+set}" = set; then
6023  echo $ECHO_N "(cached) $ECHO_C" >&6
6024else
6025  lt_cv_ld_reload_flag='-r'
6026fi
6027echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6028echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6029reload_flag=$lt_cv_ld_reload_flag
6030case $reload_flag in
6031"" | " "*) ;;
6032*) reload_flag=" $reload_flag" ;;
6033esac
6034reload_cmds='$LD$reload_flag -o $output$reload_objs'
6035case $host_os in
6036  darwin*)
6037    if test "$GCC" = yes; then
6038      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6039    else
6040      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6041    fi
6042    ;;
6043esac
6044
6045echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6046echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6047if test "${lt_cv_path_NM+set}" = set; then
6048  echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050  if test -n "$NM"; then
6051  # Let the user override the test.
6052  lt_cv_path_NM="$NM"
6053else
6054  lt_nm_to_check="${ac_tool_prefix}nm"
6055  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6056    lt_nm_to_check="$lt_nm_to_check nm"
6057  fi
6058  for lt_tmp_nm in $lt_nm_to_check; do
6059    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6060    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6061      IFS="$lt_save_ifs"
6062      test -z "$ac_dir" && ac_dir=.
6063      tmp_nm="$ac_dir/$lt_tmp_nm"
6064      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6065        # Check to see if the nm accepts a BSD-compat flag.
6066        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6067        #   nm: unknown option "B" ignored
6068        # Tru64's nm complains that /dev/null is an invalid object file
6069        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6070        */dev/null* | *'Invalid file or object type'*)
6071          lt_cv_path_NM="$tmp_nm -B"
6072          break
6073          ;;
6074        *)
6075          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6076          */dev/null*)
6077            lt_cv_path_NM="$tmp_nm -p"
6078            break
6079            ;;
6080          *)
6081            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6082            continue # so that we can try to find one that supports BSD flags
6083            ;;
6084          esac
6085          ;;
6086        esac
6087      fi
6088    done
6089    IFS="$lt_save_ifs"
6090  done
6091  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6092fi
6093fi
6094echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6095echo "${ECHO_T}$lt_cv_path_NM" >&6
6096NM="$lt_cv_path_NM"
6097
6098echo "$as_me:$LINENO: checking whether ln -s works" >&5
6099echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6100LN_S=$as_ln_s
6101if test "$LN_S" = "ln -s"; then
6102  echo "$as_me:$LINENO: result: yes" >&5
6103echo "${ECHO_T}yes" >&6
6104else
6105  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6106echo "${ECHO_T}no, using $LN_S" >&6
6107fi
6108
6109echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6110echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6111if test "${lt_cv_deplibs_check_method+set}" = set; then
6112  echo $ECHO_N "(cached) $ECHO_C" >&6
6113else
6114  lt_cv_file_magic_cmd='$MAGIC_CMD'
6115lt_cv_file_magic_test_file=
6116lt_cv_deplibs_check_method='unknown'
6117# Need to set the preceding variable on all platforms that support
6118# interlibrary dependencies.
6119# 'none' -- dependencies not supported.
6120# `unknown' -- same as none, but documents that we really don't know.
6121# 'pass_all' -- all dependencies passed with no checks.
6122# 'test_compile' -- check by making test program.
6123# 'file_magic [[regex]]' -- check by looking for files in library path
6124# which responds to the $file_magic_cmd with a given extended regex.
6125# If you have `file' or equivalent on your system and you're not sure
6126# whether `pass_all' will *always* work, you probably want this one.
6127
6128case $host_os in
6129aix4* | aix5*)
6130  lt_cv_deplibs_check_method=pass_all
6131  ;;
6132
6133beos*)
6134  lt_cv_deplibs_check_method=pass_all
6135  ;;
6136
6137bsdi[45]*)
6138  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6139  lt_cv_file_magic_cmd='/usr/bin/file -L'
6140  lt_cv_file_magic_test_file=/shlib/libc.so
6141  ;;
6142
6143cygwin*)
6144  # func_win32_libid is a shell function defined in ltmain.sh
6145  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6146  lt_cv_file_magic_cmd='func_win32_libid'
6147  ;;
6148
6149mingw* | pw32*)
6150  # Base MSYS/MinGW do not provide the 'file' command needed by
6151  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6152  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6153  lt_cv_file_magic_cmd='$OBJDUMP -f'
6154  ;;
6155
6156darwin* | rhapsody*)
6157  lt_cv_deplibs_check_method=pass_all
6158  ;;
6159
6160freebsd* | kfreebsd*-gnu | dragonfly*)
6161  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6162    case $host_cpu in
6163    i*86 )
6164      # Not sure whether the presence of OpenBSD here was a mistake.
6165      # Let's accept both of them until this is cleared up.
6166      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6167      lt_cv_file_magic_cmd=/usr/bin/file
6168      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6169      ;;
6170    esac
6171  else
6172    lt_cv_deplibs_check_method=pass_all
6173  fi
6174  ;;
6175
6176gnu*)
6177  lt_cv_deplibs_check_method=pass_all
6178  ;;
6179
6180hpux10.20* | hpux11*)
6181  lt_cv_file_magic_cmd=/usr/bin/file
6182  case $host_cpu in
6183  ia64*)
6184    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6185    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6186    ;;
6187  hppa*64*)
6188    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]'
6189    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6190    ;;
6191  *)
6192    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6193    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6194    ;;
6195  esac
6196  ;;
6197
6198interix3*)
6199  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6200  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6201  ;;
6202
6203irix5* | irix6* | nonstopux*)
6204  case $LD in
6205  *-32|*"-32 ") libmagic=32-bit;;
6206  *-n32|*"-n32 ") libmagic=N32;;
6207  *-64|*"-64 ") libmagic=64-bit;;
6208  *) libmagic=never-match;;
6209  esac
6210  lt_cv_deplibs_check_method=pass_all
6211  ;;
6212
6213# This must be Linux ELF.
6214linux*)
6215  lt_cv_deplibs_check_method=pass_all
6216  ;;
6217
6218netbsd*)
6219  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6220    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6221  else
6222    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6223  fi
6224  ;;
6225
6226newos6*)
6227  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6228  lt_cv_file_magic_cmd=/usr/bin/file
6229  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6230  ;;
6231
6232nto-qnx*)
6233  lt_cv_deplibs_check_method=unknown
6234  ;;
6235
6236openbsd*)
6237  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6238    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6239  else
6240    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6241  fi
6242  ;;
6243
6244osf3* | osf4* | osf5*)
6245  lt_cv_deplibs_check_method=pass_all
6246  ;;
6247
6248solaris*)
6249  lt_cv_deplibs_check_method=pass_all
6250  ;;
6251
6252sysv4 | sysv4.3*)
6253  case $host_vendor in
6254  motorola)
6255    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]'
6256    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6257    ;;
6258  ncr)
6259    lt_cv_deplibs_check_method=pass_all
6260    ;;
6261  sequent)
6262    lt_cv_file_magic_cmd='/bin/file'
6263    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6264    ;;
6265  sni)
6266    lt_cv_file_magic_cmd='/bin/file'
6267    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6268    lt_cv_file_magic_test_file=/lib/libc.so
6269    ;;
6270  siemens)
6271    lt_cv_deplibs_check_method=pass_all
6272    ;;
6273  pc)
6274    lt_cv_deplibs_check_method=pass_all
6275    ;;
6276  esac
6277  ;;
6278
6279sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6280  lt_cv_deplibs_check_method=pass_all
6281  ;;
6282esac
6283
6284fi
6285echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6286echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6287file_magic_cmd=$lt_cv_file_magic_cmd
6288deplibs_check_method=$lt_cv_deplibs_check_method
6289test -z "$deplibs_check_method" && deplibs_check_method=unknown
6290
6291
6292
6293
6294# If no C compiler was specified, use CC.
6295LTCC=${LTCC-"$CC"}
6296
6297# If no C compiler flags were specified, use CFLAGS.
6298LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6299
6300# Allow CC to be a program name with arguments.
6301compiler=$CC
6302
6303# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6304if test "${enable_libtool_lock+set}" = set; then
6305  enableval="$enable_libtool_lock"
6306
6307fi;
6308test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6309
6310# Some flags need to be propagated to the compiler or linker for good
6311# libtool support.
6312case $host in
6313ia64-*-hpux*)
6314  # Find out which ABI we are using.
6315  echo 'int i;' > conftest.$ac_ext
6316  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6317  (eval $ac_compile) 2>&5
6318  ac_status=$?
6319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320  (exit $ac_status); }; then
6321    case `/usr/bin/file conftest.$ac_objext` in
6322    *ELF-32*)
6323      HPUX_IA64_MODE="32"
6324      ;;
6325    *ELF-64*)
6326      HPUX_IA64_MODE="64"
6327      ;;
6328    esac
6329  fi
6330  rm -rf conftest*
6331  ;;
6332*-*-irix6*)
6333  # Find out which ABI we are using.
6334  echo '#line 6334 "configure"' > conftest.$ac_ext
6335  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6336  (eval $ac_compile) 2>&5
6337  ac_status=$?
6338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339  (exit $ac_status); }; then
6340   if test "$lt_cv_prog_gnu_ld" = yes; then
6341    case `/usr/bin/file conftest.$ac_objext` in
6342    *32-bit*)
6343      LD="${LD-ld} -melf32bsmip"
6344      ;;
6345    *N32*)
6346      LD="${LD-ld} -melf32bmipn32"
6347      ;;
6348    *64-bit*)
6349      LD="${LD-ld} -melf64bmip"
6350      ;;
6351    esac
6352   else
6353    case `/usr/bin/file conftest.$ac_objext` in
6354    *32-bit*)
6355      LD="${LD-ld} -32"
6356      ;;
6357    *N32*)
6358      LD="${LD-ld} -n32"
6359      ;;
6360    *64-bit*)
6361      LD="${LD-ld} -64"
6362      ;;
6363    esac
6364   fi
6365  fi
6366  rm -rf conftest*
6367  ;;
6368
6369x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6370  # Find out which ABI we are using.
6371  echo 'int i;' > conftest.$ac_ext
6372  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6373  (eval $ac_compile) 2>&5
6374  ac_status=$?
6375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376  (exit $ac_status); }; then
6377    case `/usr/bin/file conftest.o` in
6378    *32-bit*)
6379      case $host in
6380        x86_64-*linux*)
6381          LD="${LD-ld} -m elf_i386"
6382          ;;
6383        ppc64-*linux*|powerpc64-*linux*)
6384          LD="${LD-ld} -m elf32ppclinux"
6385          ;;
6386        s390x-*linux*)
6387          LD="${LD-ld} -m elf_s390"
6388          ;;
6389        sparc64-*linux*)
6390          LD="${LD-ld} -m elf32_sparc"
6391          ;;
6392      esac
6393      ;;
6394    *64-bit*)
6395      case $host in
6396        x86_64-*linux*)
6397          LD="${LD-ld} -m elf_x86_64"
6398          ;;
6399        ppc*-*linux*|powerpc*-*linux*)
6400          LD="${LD-ld} -m elf64ppc"
6401          ;;
6402        s390*-*linux*)
6403          LD="${LD-ld} -m elf64_s390"
6404          ;;
6405        sparc*-*linux*)
6406          LD="${LD-ld} -m elf64_sparc"
6407          ;;
6408      esac
6409      ;;
6410    esac
6411  fi
6412  rm -rf conftest*
6413  ;;
6414
6415*-*-sco3.2v5*)
6416  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6417  SAVE_CFLAGS="$CFLAGS"
6418  CFLAGS="$CFLAGS -belf"
6419  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6420echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6421if test "${lt_cv_cc_needs_belf+set}" = set; then
6422  echo $ECHO_N "(cached) $ECHO_C" >&6
6423else
6424  ac_ext=c
6425ac_cpp='$CPP $CPPFLAGS'
6426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428ac_compiler_gnu=$ac_cv_c_compiler_gnu
6429
6430     cat >conftest.$ac_ext <<_ACEOF
6431/* confdefs.h.  */
6432_ACEOF
6433cat confdefs.h >>conftest.$ac_ext
6434cat >>conftest.$ac_ext <<_ACEOF
6435/* end confdefs.h.  */
6436
6437int
6438main ()
6439{
6440
6441  ;
6442  return 0;
6443}
6444_ACEOF
6445rm -f conftest.$ac_objext conftest$ac_exeext
6446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6447  (eval $ac_link) 2>conftest.er1
6448  ac_status=$?
6449  grep -v '^ *+' conftest.er1 >conftest.err
6450  rm -f conftest.er1
6451  cat conftest.err >&5
6452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453  (exit $ac_status); } &&
6454         { ac_try='test -z "$ac_c_werror_flag"
6455                         || test ! -s conftest.err'
6456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457  (eval $ac_try) 2>&5
6458  ac_status=$?
6459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460  (exit $ac_status); }; } &&
6461         { ac_try='test -s conftest$ac_exeext'
6462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6463  (eval $ac_try) 2>&5
6464  ac_status=$?
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); }; }; then
6467  lt_cv_cc_needs_belf=yes
6468else
6469  echo "$as_me: failed program was:" >&5
6470sed 's/^/| /' conftest.$ac_ext >&5
6471
6472lt_cv_cc_needs_belf=no
6473fi
6474rm -f conftest.err conftest.$ac_objext \
6475      conftest$ac_exeext conftest.$ac_ext
6476     ac_ext=c
6477ac_cpp='$CPP $CPPFLAGS'
6478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480ac_compiler_gnu=$ac_cv_c_compiler_gnu
6481
6482fi
6483echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6484echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6485  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6486    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6487    CFLAGS="$SAVE_CFLAGS"
6488  fi
6489  ;;
6490sparc*-*solaris*)
6491  # Find out which ABI we are using.
6492  echo 'int i;' > conftest.$ac_ext
6493  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6494  (eval $ac_compile) 2>&5
6495  ac_status=$?
6496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497  (exit $ac_status); }; then
6498    case `/usr/bin/file conftest.o` in
6499    *64-bit*)
6500      case $lt_cv_prog_gnu_ld in
6501      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6502      *)    LD="${LD-ld} -64" ;;
6503      esac
6504      ;;
6505    esac
6506  fi
6507  rm -rf conftest*
6508  ;;
6509
6510
6511esac
6512
6513need_locks="$enable_libtool_lock"
6514
6515
6516ac_ext=c
6517ac_cpp='$CPP $CPPFLAGS'
6518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6520ac_compiler_gnu=$ac_cv_c_compiler_gnu
6521echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6522echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6523# On Suns, sometimes $CPP names a directory.
6524if test -n "$CPP" && test -d "$CPP"; then
6525  CPP=
6526fi
6527if test -z "$CPP"; then
6528  if test "${ac_cv_prog_CPP+set}" = set; then
6529  echo $ECHO_N "(cached) $ECHO_C" >&6
6530else
6531      # Double quotes because CPP needs to be expanded
6532    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6533    do
6534      ac_preproc_ok=false
6535for ac_c_preproc_warn_flag in '' yes
6536do
6537  # Use a header file that comes with gcc, so configuring glibc
6538  # with a fresh cross-compiler works.
6539  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6540  # <limits.h> exists even on freestanding compilers.
6541  # On the NeXT, cc -E runs the code through the compiler's parser,
6542  # not just through cpp. "Syntax error" is here to catch this case.
6543  cat >conftest.$ac_ext <<_ACEOF
6544/* confdefs.h.  */
6545_ACEOF
6546cat confdefs.h >>conftest.$ac_ext
6547cat >>conftest.$ac_ext <<_ACEOF
6548/* end confdefs.h.  */
6549#ifdef __STDC__
6550# include <limits.h>
6551#else
6552# include <assert.h>
6553#endif
6554                     Syntax error
6555_ACEOF
6556if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6557  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6558  ac_status=$?
6559  grep -v '^ *+' conftest.er1 >conftest.err
6560  rm -f conftest.er1
6561  cat conftest.err >&5
6562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563  (exit $ac_status); } >/dev/null; then
6564  if test -s conftest.err; then
6565    ac_cpp_err=$ac_c_preproc_warn_flag
6566    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6567  else
6568    ac_cpp_err=
6569  fi
6570else
6571  ac_cpp_err=yes
6572fi
6573if test -z "$ac_cpp_err"; then
6574  :
6575else
6576  echo "$as_me: failed program was:" >&5
6577sed 's/^/| /' conftest.$ac_ext >&5
6578
6579  # Broken: fails on valid input.
6580continue
6581fi
6582rm -f conftest.err conftest.$ac_ext
6583
6584  # OK, works on sane cases.  Now check whether non-existent headers
6585  # can be detected and how.
6586  cat >conftest.$ac_ext <<_ACEOF
6587/* confdefs.h.  */
6588_ACEOF
6589cat confdefs.h >>conftest.$ac_ext
6590cat >>conftest.$ac_ext <<_ACEOF
6591/* end confdefs.h.  */
6592#include <ac_nonexistent.h>
6593_ACEOF
6594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6595  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6596  ac_status=$?
6597  grep -v '^ *+' conftest.er1 >conftest.err
6598  rm -f conftest.er1
6599  cat conftest.err >&5
6600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601  (exit $ac_status); } >/dev/null; then
6602  if test -s conftest.err; then
6603    ac_cpp_err=$ac_c_preproc_warn_flag
6604    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6605  else
6606    ac_cpp_err=
6607  fi
6608else
6609  ac_cpp_err=yes
6610fi
6611if test -z "$ac_cpp_err"; then
6612  # Broken: success on invalid input.
6613continue
6614else
6615  echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618  # Passes both tests.
6619ac_preproc_ok=:
6620break
6621fi
6622rm -f conftest.err conftest.$ac_ext
6623
6624done
6625# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6626rm -f conftest.err conftest.$ac_ext
6627if $ac_preproc_ok; then
6628  break
6629fi
6630
6631    done
6632    ac_cv_prog_CPP=$CPP
6633
6634fi
6635  CPP=$ac_cv_prog_CPP
6636else
6637  ac_cv_prog_CPP=$CPP
6638fi
6639echo "$as_me:$LINENO: result: $CPP" >&5
6640echo "${ECHO_T}$CPP" >&6
6641ac_preproc_ok=false
6642for ac_c_preproc_warn_flag in '' yes
6643do
6644  # Use a header file that comes with gcc, so configuring glibc
6645  # with a fresh cross-compiler works.
6646  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6647  # <limits.h> exists even on freestanding compilers.
6648  # On the NeXT, cc -E runs the code through the compiler's parser,
6649  # not just through cpp. "Syntax error" is here to catch this case.
6650  cat >conftest.$ac_ext <<_ACEOF
6651/* confdefs.h.  */
6652_ACEOF
6653cat confdefs.h >>conftest.$ac_ext
6654cat >>conftest.$ac_ext <<_ACEOF
6655/* end confdefs.h.  */
6656#ifdef __STDC__
6657# include <limits.h>
6658#else
6659# include <assert.h>
6660#endif
6661                     Syntax error
6662_ACEOF
6663if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6664  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6665  ac_status=$?
6666  grep -v '^ *+' conftest.er1 >conftest.err
6667  rm -f conftest.er1
6668  cat conftest.err >&5
6669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6670  (exit $ac_status); } >/dev/null; then
6671  if test -s conftest.err; then
6672    ac_cpp_err=$ac_c_preproc_warn_flag
6673    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6674  else
6675    ac_cpp_err=
6676  fi
6677else
6678  ac_cpp_err=yes
6679fi
6680if test -z "$ac_cpp_err"; then
6681  :
6682else
6683  echo "$as_me: failed program was:" >&5
6684sed 's/^/| /' conftest.$ac_ext >&5
6685
6686  # Broken: fails on valid input.
6687continue
6688fi
6689rm -f conftest.err conftest.$ac_ext
6690
6691  # OK, works on sane cases.  Now check whether non-existent headers
6692  # can be detected and how.
6693  cat >conftest.$ac_ext <<_ACEOF
6694/* confdefs.h.  */
6695_ACEOF
6696cat confdefs.h >>conftest.$ac_ext
6697cat >>conftest.$ac_ext <<_ACEOF
6698/* end confdefs.h.  */
6699#include <ac_nonexistent.h>
6700_ACEOF
6701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6702  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6703  ac_status=$?
6704  grep -v '^ *+' conftest.er1 >conftest.err
6705  rm -f conftest.er1
6706  cat conftest.err >&5
6707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708  (exit $ac_status); } >/dev/null; then
6709  if test -s conftest.err; then
6710    ac_cpp_err=$ac_c_preproc_warn_flag
6711    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6712  else
6713    ac_cpp_err=
6714  fi
6715else
6716  ac_cpp_err=yes
6717fi
6718if test -z "$ac_cpp_err"; then
6719  # Broken: success on invalid input.
6720continue
6721else
6722  echo "$as_me: failed program was:" >&5
6723sed 's/^/| /' conftest.$ac_ext >&5
6724
6725  # Passes both tests.
6726ac_preproc_ok=:
6727break
6728fi
6729rm -f conftest.err conftest.$ac_ext
6730
6731done
6732# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6733rm -f conftest.err conftest.$ac_ext
6734if $ac_preproc_ok; then
6735  :
6736else
6737  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6738See \`config.log' for more details." >&5
6739echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6740See \`config.log' for more details." >&2;}
6741   { (exit 1); exit 1; }; }
6742fi
6743
6744ac_ext=c
6745ac_cpp='$CPP $CPPFLAGS'
6746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6748ac_compiler_gnu=$ac_cv_c_compiler_gnu
6749
6750
6751echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6752echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6753if test "${ac_cv_header_stdc+set}" = set; then
6754  echo $ECHO_N "(cached) $ECHO_C" >&6
6755else
6756  cat >conftest.$ac_ext <<_ACEOF
6757/* confdefs.h.  */
6758_ACEOF
6759cat confdefs.h >>conftest.$ac_ext
6760cat >>conftest.$ac_ext <<_ACEOF
6761/* end confdefs.h.  */
6762#include <stdlib.h>
6763#include <stdarg.h>
6764#include <string.h>
6765#include <float.h>
6766
6767int
6768main ()
6769{
6770
6771  ;
6772  return 0;
6773}
6774_ACEOF
6775rm -f conftest.$ac_objext
6776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6777  (eval $ac_compile) 2>conftest.er1
6778  ac_status=$?
6779  grep -v '^ *+' conftest.er1 >conftest.err
6780  rm -f conftest.er1
6781  cat conftest.err >&5
6782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783  (exit $ac_status); } &&
6784         { ac_try='test -z "$ac_c_werror_flag"
6785                         || test ! -s conftest.err'
6786  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787  (eval $ac_try) 2>&5
6788  ac_status=$?
6789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790  (exit $ac_status); }; } &&
6791         { ac_try='test -s conftest.$ac_objext'
6792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793  (eval $ac_try) 2>&5
6794  ac_status=$?
6795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796  (exit $ac_status); }; }; then
6797  ac_cv_header_stdc=yes
6798else
6799  echo "$as_me: failed program was:" >&5
6800sed 's/^/| /' conftest.$ac_ext >&5
6801
6802ac_cv_header_stdc=no
6803fi
6804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6805
6806if test $ac_cv_header_stdc = yes; then
6807  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6808  cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h.  */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h.  */
6814#include <string.h>
6815
6816_ACEOF
6817if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6818  $EGREP "memchr" >/dev/null 2>&1; then
6819  :
6820else
6821  ac_cv_header_stdc=no
6822fi
6823rm -f conftest*
6824
6825fi
6826
6827if test $ac_cv_header_stdc = yes; then
6828  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6829  cat >conftest.$ac_ext <<_ACEOF
6830/* confdefs.h.  */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h.  */
6835#include <stdlib.h>
6836
6837_ACEOF
6838if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839  $EGREP "free" >/dev/null 2>&1; then
6840  :
6841else
6842  ac_cv_header_stdc=no
6843fi
6844rm -f conftest*
6845
6846fi
6847
6848if test $ac_cv_header_stdc = yes; then
6849  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6850  if test "$cross_compiling" = yes; then
6851  :
6852else
6853  cat >conftest.$ac_ext <<_ACEOF
6854/* confdefs.h.  */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6858/* end confdefs.h.  */
6859#include <ctype.h>
6860#if ((' ' & 0x0FF) == 0x020)
6861# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6862# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6863#else
6864# define ISLOWER(c) \
6865                   (('a' <= (c) && (c) <= 'i') \
6866                     || ('j' <= (c) && (c) <= 'r') \
6867                     || ('s' <= (c) && (c) <= 'z'))
6868# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6869#endif
6870
6871#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6872int
6873main ()
6874{
6875  int i;
6876  for (i = 0; i < 256; i++)
6877    if (XOR (islower (i), ISLOWER (i))
6878        || toupper (i) != TOUPPER (i))
6879      exit(2);
6880  exit (0);
6881}
6882_ACEOF
6883rm -f conftest$ac_exeext
6884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6885  (eval $ac_link) 2>&5
6886  ac_status=$?
6887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890  (eval $ac_try) 2>&5
6891  ac_status=$?
6892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893  (exit $ac_status); }; }; then
6894  :
6895else
6896  echo "$as_me: program exited with status $ac_status" >&5
6897echo "$as_me: failed program was:" >&5
6898sed 's/^/| /' conftest.$ac_ext >&5
6899
6900( exit $ac_status )
6901ac_cv_header_stdc=no
6902fi
6903rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6904fi
6905fi
6906fi
6907echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6908echo "${ECHO_T}$ac_cv_header_stdc" >&6
6909if test $ac_cv_header_stdc = yes; then
6910
6911cat >>confdefs.h <<\_ACEOF
6912#define STDC_HEADERS 1
6913_ACEOF
6914
6915fi
6916
6917# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6928                  inttypes.h stdint.h unistd.h
6929do
6930as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6931echo "$as_me:$LINENO: checking for $ac_header" >&5
6932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6933if eval "test \"\${$as_ac_Header+set}\" = set"; then
6934  echo $ECHO_N "(cached) $ECHO_C" >&6
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$ac_includes_default
6943
6944#include <$ac_header>
6945_ACEOF
6946rm -f conftest.$ac_objext
6947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948  (eval $ac_compile) 2>conftest.er1
6949  ac_status=$?
6950  grep -v '^ *+' conftest.er1 >conftest.err
6951  rm -f conftest.er1
6952  cat conftest.err >&5
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); } &&
6955         { ac_try='test -z "$ac_c_werror_flag"
6956                         || test ! -s conftest.err'
6957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958  (eval $ac_try) 2>&5
6959  ac_status=$?
6960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961  (exit $ac_status); }; } &&
6962         { ac_try='test -s conftest.$ac_objext'
6963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964  (eval $ac_try) 2>&5
6965  ac_status=$?
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); }; }; then
6968  eval "$as_ac_Header=yes"
6969else
6970  echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
6973eval "$as_ac_Header=no"
6974fi
6975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6976fi
6977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6979if test `eval echo '${'$as_ac_Header'}'` = yes; then
6980  cat >>confdefs.h <<_ACEOF
6981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6982_ACEOF
6983
6984fi
6985
6986done
6987
6988
6989
6990for ac_header in dlfcn.h
6991do
6992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6993if eval "test \"\${$as_ac_Header+set}\" = set"; then
6994  echo "$as_me:$LINENO: checking for $ac_header" >&5
6995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6996if eval "test \"\${$as_ac_Header+set}\" = set"; then
6997  echo $ECHO_N "(cached) $ECHO_C" >&6
6998fi
6999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7001else
7002  # Is the header compilable?
7003echo "$as_me:$LINENO: checking $ac_header usability" >&5
7004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7005cat >conftest.$ac_ext <<_ACEOF
7006/* confdefs.h.  */
7007_ACEOF
7008cat confdefs.h >>conftest.$ac_ext
7009cat >>conftest.$ac_ext <<_ACEOF
7010/* end confdefs.h.  */
7011$ac_includes_default
7012#include <$ac_header>
7013_ACEOF
7014rm -f conftest.$ac_objext
7015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7016  (eval $ac_compile) 2>conftest.er1
7017  ac_status=$?
7018  grep -v '^ *+' conftest.er1 >conftest.err
7019  rm -f conftest.er1
7020  cat conftest.err >&5
7021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022  (exit $ac_status); } &&
7023         { ac_try='test -z "$ac_c_werror_flag"
7024                         || test ! -s conftest.err'
7025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026  (eval $ac_try) 2>&5
7027  ac_status=$?
7028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029  (exit $ac_status); }; } &&
7030         { ac_try='test -s conftest.$ac_objext'
7031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032  (eval $ac_try) 2>&5
7033  ac_status=$?
7034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035  (exit $ac_status); }; }; then
7036  ac_header_compiler=yes
7037else
7038  echo "$as_me: failed program was:" >&5
7039sed 's/^/| /' conftest.$ac_ext >&5
7040
7041ac_header_compiler=no
7042fi
7043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7045echo "${ECHO_T}$ac_header_compiler" >&6
7046
7047# Is the header present?
7048echo "$as_me:$LINENO: checking $ac_header presence" >&5
7049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7050cat >conftest.$ac_ext <<_ACEOF
7051/* confdefs.h.  */
7052_ACEOF
7053cat confdefs.h >>conftest.$ac_ext
7054cat >>conftest.$ac_ext <<_ACEOF
7055/* end confdefs.h.  */
7056#include <$ac_header>
7057_ACEOF
7058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7059  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7060  ac_status=$?
7061  grep -v '^ *+' conftest.er1 >conftest.err
7062  rm -f conftest.er1
7063  cat conftest.err >&5
7064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); } >/dev/null; then
7066  if test -s conftest.err; then
7067    ac_cpp_err=$ac_c_preproc_warn_flag
7068    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7069  else
7070    ac_cpp_err=
7071  fi
7072else
7073  ac_cpp_err=yes
7074fi
7075if test -z "$ac_cpp_err"; then
7076  ac_header_preproc=yes
7077else
7078  echo "$as_me: failed program was:" >&5
7079sed 's/^/| /' conftest.$ac_ext >&5
7080
7081  ac_header_preproc=no
7082fi
7083rm -f conftest.err conftest.$ac_ext
7084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7085echo "${ECHO_T}$ac_header_preproc" >&6
7086
7087# So?  What about this header?
7088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7089  yes:no: )
7090    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7092    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7094    ac_header_preproc=yes
7095    ;;
7096  no:yes:* )
7097    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7099    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7100echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7101    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7103    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7104echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7105    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7107    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7109    (
7110      cat <<\_ASBOX
7111## ----------------------------------------- ##
7112## Report this to coin-clp@lists.coin-or.org ##
7113## ----------------------------------------- ##
7114_ASBOX
7115    ) |
7116      sed "s/^/$as_me: WARNING:     /" >&2
7117    ;;
7118esac
7119echo "$as_me:$LINENO: checking for $ac_header" >&5
7120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7121if eval "test \"\${$as_ac_Header+set}\" = set"; then
7122  echo $ECHO_N "(cached) $ECHO_C" >&6
7123else
7124  eval "$as_ac_Header=\$ac_header_preproc"
7125fi
7126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7128
7129fi
7130if test `eval echo '${'$as_ac_Header'}'` = yes; then
7131  cat >>confdefs.h <<_ACEOF
7132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7133_ACEOF
7134
7135fi
7136
7137done
7138
7139
7140
7141if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7142    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7143    (test "X$CXX" != "Xg++"))) ; then
7144  ac_ext=cc
7145ac_cpp='$CXXCPP $CPPFLAGS'
7146ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7149echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7150echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7151if test -z "$CXXCPP"; then
7152  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7153  echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155      # Double quotes because CXXCPP needs to be expanded
7156    for CXXCPP in "$CXX -E" "/lib/cpp"
7157    do
7158      ac_preproc_ok=false
7159for ac_cxx_preproc_warn_flag in '' yes
7160do
7161  # Use a header file that comes with gcc, so configuring glibc
7162  # with a fresh cross-compiler works.
7163  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7164  # <limits.h> exists even on freestanding compilers.
7165  # On the NeXT, cc -E runs the code through the compiler's parser,
7166  # not just through cpp. "Syntax error" is here to catch this case.
7167  cat >conftest.$ac_ext <<_ACEOF
7168/* confdefs.h.  */
7169_ACEOF
7170cat confdefs.h >>conftest.$ac_ext
7171cat >>conftest.$ac_ext <<_ACEOF
7172/* end confdefs.h.  */
7173#ifdef __STDC__
7174# include <limits.h>
7175#else
7176# include <assert.h>
7177#endif
7178                     Syntax error
7179_ACEOF
7180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7181  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7182  ac_status=$?
7183  grep -v '^ *+' conftest.er1 >conftest.err
7184  rm -f conftest.er1
7185  cat conftest.err >&5
7186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187  (exit $ac_status); } >/dev/null; then
7188  if test -s conftest.err; then
7189    ac_cpp_err=$ac_cxx_preproc_warn_flag
7190    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7191  else
7192    ac_cpp_err=
7193  fi
7194else
7195  ac_cpp_err=yes
7196fi
7197if test -z "$ac_cpp_err"; then
7198  :
7199else
7200  echo "$as_me: failed program was:" >&5
7201sed 's/^/| /' conftest.$ac_ext >&5
7202
7203  # Broken: fails on valid input.
7204continue
7205fi
7206rm -f conftest.err conftest.$ac_ext
7207
7208  # OK, works on sane cases.  Now check whether non-existent headers
7209  # can be detected and how.
7210  cat >conftest.$ac_ext <<_ACEOF
7211/* confdefs.h.  */
7212_ACEOF
7213cat confdefs.h >>conftest.$ac_ext
7214cat >>conftest.$ac_ext <<_ACEOF
7215/* end confdefs.h.  */
7216#include <ac_nonexistent.h>
7217_ACEOF
7218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7219  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7220  ac_status=$?
7221  grep -v '^ *+' conftest.er1 >conftest.err
7222  rm -f conftest.er1
7223  cat conftest.err >&5
7224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225  (exit $ac_status); } >/dev/null; then
7226  if test -s conftest.err; then
7227    ac_cpp_err=$ac_cxx_preproc_warn_flag
7228    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7229  else
7230    ac_cpp_err=
7231  fi
7232else
7233  ac_cpp_err=yes
7234fi
7235if test -z "$ac_cpp_err"; then
7236  # Broken: success on invalid input.
7237continue
7238else
7239  echo "$as_me: failed program was:" >&5
7240sed 's/^/| /' conftest.$ac_ext >&5
7241
7242  # Passes both tests.
7243ac_preproc_ok=:
7244break
7245fi
7246rm -f conftest.err conftest.$ac_ext
7247
7248done
7249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7250rm -f conftest.err conftest.$ac_ext
7251if $ac_preproc_ok; then
7252  break
7253fi
7254
7255    done
7256    ac_cv_prog_CXXCPP=$CXXCPP
7257
7258fi
7259  CXXCPP=$ac_cv_prog_CXXCPP
7260else
7261  ac_cv_prog_CXXCPP=$CXXCPP
7262fi
7263echo "$as_me:$LINENO: result: $CXXCPP" >&5
7264echo "${ECHO_T}$CXXCPP" >&6
7265ac_preproc_ok=false
7266for ac_cxx_preproc_warn_flag in '' yes
7267do
7268  # Use a header file that comes with gcc, so configuring glibc
7269  # with a fresh cross-compiler works.
7270  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7271  # <limits.h> exists even on freestanding compilers.
7272  # On the NeXT, cc -E runs the code through the compiler's parser,
7273  # not just through cpp. "Syntax error" is here to catch this case.
7274  cat >conftest.$ac_ext <<_ACEOF
7275/* confdefs.h.  */
7276_ACEOF
7277cat confdefs.h >>conftest.$ac_ext
7278cat >>conftest.$ac_ext <<_ACEOF
7279/* end confdefs.h.  */
7280#ifdef __STDC__
7281# include <limits.h>
7282#else
7283# include <assert.h>
7284#endif
7285                     Syntax error
7286_ACEOF
7287if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7288  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7289  ac_status=$?
7290  grep -v '^ *+' conftest.er1 >conftest.err
7291  rm -f conftest.er1
7292  cat conftest.err >&5
7293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294  (exit $ac_status); } >/dev/null; then
7295  if test -s conftest.err; then
7296    ac_cpp_err=$ac_cxx_preproc_warn_flag
7297    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7298  else
7299    ac_cpp_err=
7300  fi
7301else
7302  ac_cpp_err=yes
7303fi
7304if test -z "$ac_cpp_err"; then
7305  :
7306else
7307  echo "$as_me: failed program was:" >&5
7308sed 's/^/| /' conftest.$ac_ext >&5
7309
7310  # Broken: fails on valid input.
7311continue
7312fi
7313rm -f conftest.err conftest.$ac_ext
7314
7315  # OK, works on sane cases.  Now check whether non-existent headers
7316  # can be detected and how.
7317  cat >conftest.$ac_ext <<_ACEOF
7318/* confdefs.h.  */
7319_ACEOF
7320cat confdefs.h >>conftest.$ac_ext
7321cat >>conftest.$ac_ext <<_ACEOF
7322/* end confdefs.h.  */
7323#include <ac_nonexistent.h>
7324_ACEOF
7325if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7326  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7327  ac_status=$?
7328  grep -v '^ *+' conftest.er1 >conftest.err
7329  rm -f conftest.er1
7330  cat conftest.err >&5
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); } >/dev/null; then
7333  if test -s conftest.err; then
7334    ac_cpp_err=$ac_cxx_preproc_warn_flag
7335    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7336  else
7337    ac_cpp_err=
7338  fi
7339else
7340  ac_cpp_err=yes
7341fi
7342if test -z "$ac_cpp_err"; then
7343  # Broken: success on invalid input.
7344continue
7345else
7346  echo "$as_me: failed program was:" >&5
7347sed 's/^/| /' conftest.$ac_ext >&5
7348
7349  # Passes both tests.
7350ac_preproc_ok=:
7351break
7352fi
7353rm -f conftest.err conftest.$ac_ext
7354
7355done
7356# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7357rm -f conftest.err conftest.$ac_ext
7358if $ac_preproc_ok; then
7359  :
7360else
7361  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7362See \`config.log' for more details." >&5
7363echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7364See \`config.log' for more details." >&2;}
7365   { (exit 1); exit 1; }; }
7366fi
7367
7368ac_ext=cc
7369ac_cpp='$CXXCPP $CPPFLAGS'
7370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7373
7374fi
7375
7376
7377# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7378
7379# find the maximum length of command line arguments
7380echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7381echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7382if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7383  echo $ECHO_N "(cached) $ECHO_C" >&6
7384else
7385    i=0
7386  teststring="ABCD"
7387
7388  case $build_os in
7389  msdosdjgpp*)
7390    # On DJGPP, this test can blow up pretty badly due to problems in libc
7391    # (any single argument exceeding 2000 bytes causes a buffer overrun
7392    # during glob expansion).  Even if it were fixed, the result of this
7393    # check would be larger than it should be.
7394    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7395    ;;
7396
7397  gnu*)
7398    # Under GNU Hurd, this test is not required because there is
7399    # no limit to the length of command line arguments.
7400    # Libtool will interpret -1 as no limit whatsoever
7401    lt_cv_sys_max_cmd_len=-1;
7402    ;;
7403
7404  cygwin* | mingw*)
7405    # On Win9x/ME, this test blows up -- it succeeds, but takes
7406    # about 5 minutes as the teststring grows exponentially.
7407    # Worse, since 9x/ME are not pre-emptively multitasking,
7408    # you end up with a "frozen" computer, even though with patience
7409    # the test eventually succeeds (with a max line length of 256k).
7410    # Instead, let's just punt: use the minimum linelength reported by
7411    # all of the supported platforms: 8192 (on NT/2K/XP).
7412    lt_cv_sys_max_cmd_len=8192;
7413    ;;
7414
7415  amigaos*)
7416    # On AmigaOS with pdksh, this test takes hours, literally.
7417    # So we just punt and use a minimum line length of 8192.
7418    lt_cv_sys_max_cmd_len=8192;
7419    ;;
7420
7421  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7422    # This has been around since 386BSD, at least.  Likely further.
7423    if test -x /sbin/sysctl; then
7424      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7425    elif test -x /usr/sbin/sysctl; then
7426      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7427    else
7428      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7429    fi
7430    # And add a safety zone
7431    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7432    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7433    ;;
7434
7435  interix*)
7436    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7437    lt_cv_sys_max_cmd_len=196608
7438    ;;
7439
7440  osf*)
7441    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7442    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7443    # nice to cause kernel panics so lets avoid the loop below.
7444    # First set a reasonable default.
7445    lt_cv_sys_max_cmd_len=16384
7446    #
7447    if test -x /sbin/sysconfig; then
7448      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7449        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7450      esac
7451    fi
7452    ;;
7453  sco3.2v5*)
7454    lt_cv_sys_max_cmd_len=102400
7455    ;;
7456  sysv5* | sco5v6* | sysv4.2uw2*)
7457    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7458    if test -n "$kargmax"; then
7459      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7460    else
7461      lt_cv_sys_max_cmd_len=32768
7462    fi
7463    ;;
7464  *)
7465    # If test is not a shell built-in, we'll probably end up computing a
7466    # maximum length that is only half of the actual maximum length, but
7467    # we can't tell.
7468    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7469    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7470               = "XX$teststring") >/dev/null 2>&1 &&
7471            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7472            lt_cv_sys_max_cmd_len=$new_result &&
7473            test $i != 17 # 1/2 MB should be enough
7474    do
7475      i=`expr $i + 1`
7476      teststring=$teststring$teststring
7477    done
7478    teststring=
7479    # Add a significant safety factor because C++ compilers can tack on massive
7480    # amounts of additional arguments before passing them to the linker.
7481    # It appears as though 1/2 is a usable value.
7482    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7483    ;;
7484  esac
7485
7486fi
7487
7488if test -n $lt_cv_sys_max_cmd_len ; then
7489  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7490echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7491else
7492  echo "$as_me:$LINENO: result: none" >&5
7493echo "${ECHO_T}none" >&6
7494fi
7495
7496
7497
7498
7499# Check for command to grab the raw symbol name followed by C symbol from nm.
7500echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7501echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7502if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7503  echo $ECHO_N "(cached) $ECHO_C" >&6
7504else
7505
7506# These are sane defaults that work on at least a few old systems.
7507# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7508
7509# Character class describing NM global symbol codes.
7510symcode='[BCDEGRST]'
7511
7512# Regexp to match symbols that can be accessed directly from C.
7513sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7514
7515# Transform an extracted symbol line into a proper C declaration
7516lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7517
7518# Transform an extracted symbol line into symbol name and symbol address
7519lt_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'"
7520
7521# Define system-specific variables.
7522case $host_os in
7523aix*)
7524  symcode='[BCDT]'
7525  ;;
7526cygwin* | mingw* | pw32*)
7527  symcode='[ABCDGISTW]'
7528  ;;
7529hpux*) # Its linker distinguishes data from code symbols
7530  if test "$host_cpu" = ia64; then
7531    symcode='[ABCDEGRST]'
7532  fi
7533  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7534  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'"
7535  ;;
7536linux*)
7537  if test "$host_cpu" = ia64; then
7538    symcode='[ABCDGIRSTW]'
7539    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7540    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'"
7541  fi
7542  ;;
7543irix* | nonstopux*)
7544  symcode='[BCDEGRST]'
7545  ;;
7546osf*)
7547  symcode='[BCDEGQRST]'
7548  ;;
7549solaris*)
7550  symcode='[BDRT]'
7551  ;;
7552sco3.2v5*)
7553  symcode='[DT]'
7554  ;;
7555sysv4.2uw2*)
7556  symcode='[DT]'
7557  ;;
7558sysv5* | sco5v6* | unixware* | OpenUNIX*)
7559  symcode='[ABDT]'
7560  ;;
7561sysv4)
7562  symcode='[DFNSTU]'
7563  ;;
7564esac
7565
7566# Handle CRLF in mingw tool chain
7567opt_cr=
7568case $build_os in
7569mingw*)
7570  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7571  ;;
7572esac
7573
7574# If we're using GNU nm, then use its standard symbol codes.
7575case `$NM -V 2>&1` in
7576*GNU* | *'with BFD'*)
7577  symcode='[ABCDGIRSTW]' ;;
7578esac
7579
7580# Try without a prefix undercore, then with it.
7581for ac_symprfx in "" "_"; do
7582
7583  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7584  symxfrm="\\1 $ac_symprfx\\2 \\2"
7585
7586  # Write the raw and C identifiers.
7587  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7588
7589  # Check to see that the pipe works correctly.
7590  pipe_works=no
7591
7592  rm -f conftest*
7593  cat > conftest.$ac_ext <<EOF
7594#ifdef __cplusplus
7595extern "C" {
7596#endif
7597char nm_test_var;
7598void nm_test_func(){}
7599#ifdef __cplusplus
7600}
7601#endif
7602int main(){nm_test_var='a';nm_test_func();return(0);}
7603EOF
7604
7605  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606  (eval $ac_compile) 2>&5
7607  ac_status=$?
7608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609  (exit $ac_status); }; then
7610    # Now try to grab the symbols.
7611    nlist=conftest.nm
7612    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7613  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7614  ac_status=$?
7615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616  (exit $ac_status); } && test -s "$nlist"; then
7617      # Try sorting and uniquifying the output.
7618      if sort "$nlist" | uniq > "$nlist"T; then
7619        mv -f "$nlist"T "$nlist"
7620      else
7621        rm -f "$nlist"T
7622      fi
7623
7624      # Make sure that we snagged all the symbols we need.
7625      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7626        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7627          cat <<EOF > conftest.$ac_ext
7628#ifdef __cplusplus
7629extern "C" {
7630#endif
7631
7632EOF
7633          # Now generate the symbol file.
7634          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7635
7636          cat <<EOF >> conftest.$ac_ext
7637#if defined (__STDC__) && __STDC__
7638# define lt_ptr_t void *
7639#else
7640# define lt_ptr_t char *
7641# define const
7642#endif
7643
7644/* The mapping between symbol names and symbols. */
7645const struct {
7646  const char *name;
7647  lt_ptr_t address;
7648}
7649lt_preloaded_symbols[] =
7650{
7651EOF
7652          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7653          cat <<\EOF >> conftest.$ac_ext
7654  {0, (lt_ptr_t) 0}
7655};
7656
7657#ifdef __cplusplus
7658}
7659#endif
7660EOF
7661          # Now try linking the two files.
7662          mv conftest.$ac_objext conftstm.$ac_objext
7663          lt_save_LIBS="$LIBS"
7664          lt_save_CFLAGS="$CFLAGS"
7665          LIBS="conftstm.$ac_objext"
7666          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7667          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7668  (eval $ac_link) 2>&5
7669  ac_status=$?
7670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7672            pipe_works=yes
7673          fi
7674          LIBS="$lt_save_LIBS"
7675          CFLAGS="$lt_save_CFLAGS"
7676        else
7677          echo "cannot find nm_test_func in $nlist" >&5
7678        fi
7679      else
7680        echo "cannot find nm_test_var in $nlist" >&5
7681      fi
7682    else
7683      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7684    fi
7685  else
7686    echo "$progname: failed program was:" >&5
7687    cat conftest.$ac_ext >&5
7688  fi
7689  rm -f conftest* conftst*
7690
7691  # Do not use the global_symbol_pipe unless it works.
7692  if test "$pipe_works" = yes; then
7693    break
7694  else
7695    lt_cv_sys_global_symbol_pipe=
7696  fi
7697done
7698
7699fi
7700
7701if test -z "$lt_cv_sys_global_symbol_pipe"; then
7702  lt_cv_sys_global_symbol_to_cdecl=
7703fi
7704if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7705  echo "$as_me:$LINENO: result: failed" >&5
7706echo "${ECHO_T}failed" >&6
7707else
7708  echo "$as_me:$LINENO: result: ok" >&5
7709echo "${ECHO_T}ok" >&6
7710fi
7711
7712echo "$as_me:$LINENO: checking for objdir" >&5
7713echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7714if test "${lt_cv_objdir+set}" = set; then
7715  echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717  rm -f .libs 2>/dev/null
7718mkdir .libs 2>/dev/null
7719if test -d .libs; then
7720  lt_cv_objdir=.libs
7721else
7722  # MS-DOS does not allow filenames that begin with a dot.
7723  lt_cv_objdir=_libs
7724fi
7725rmdir .libs 2>/dev/null
7726fi
7727echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7728echo "${ECHO_T}$lt_cv_objdir" >&6
7729objdir=$lt_cv_objdir
7730
7731
7732
7733
7734
7735case $host_os in
7736aix3*)
7737  # AIX sometimes has problems with the GCC collect2 program.  For some
7738  # reason, if we set the COLLECT_NAMES environment variable, the problems
7739  # vanish in a puff of smoke.
7740  if test "X${COLLECT_NAMES+set}" != Xset; then
7741    COLLECT_NAMES=
7742    export COLLECT_NAMES
7743  fi
7744  ;;
7745esac
7746
7747# Sed substitution that helps us do robust quoting.  It backslashifies
7748# metacharacters that are still active within double-quoted strings.
7749Xsed='sed -e 1s/^X//'
7750sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7751
7752# Same as above, but do not quote variable references.
7753double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7754
7755# Sed substitution to delay expansion of an escaped shell variable in a
7756# double_quote_subst'ed string.
7757delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7758
7759# Sed substitution to avoid accidental globbing in evaled expressions
7760no_glob_subst='s/\*/\\\*/g'
7761
7762# Constants:
7763rm="rm -f"
7764
7765# Global variables:
7766default_ofile=libtool
7767can_build_shared=yes
7768
7769# All known linkers require a `.a' archive for static linking (except MSVC,
7770# which needs '.lib').
7771libext=a
7772ltmain="$ac_aux_dir/ltmain.sh"
7773ofile="$default_ofile"
7774with_gnu_ld="$lt_cv_prog_gnu_ld"
7775
7776if test -n "$ac_tool_prefix"; then
7777  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7778set dummy ${ac_tool_prefix}ar; ac_word=$2
7779echo "$as_me:$LINENO: checking for $ac_word" >&5
7780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781if test "${ac_cv_prog_AR+set}" = set; then
7782  echo $ECHO_N "(cached) $ECHO_C" >&6
7783else
7784  if test -n "$AR"; then
7785  ac_cv_prog_AR="$AR" # Let the user override the test.
7786else
7787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788for as_dir in $PATH
7789do
7790  IFS=$as_save_IFS
7791  test -z "$as_dir" && as_dir=.
7792  for ac_exec_ext in '' $ac_executable_extensions; do
7793  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794    ac_cv_prog_AR="${ac_tool_prefix}ar"
7795    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7796    break 2
7797  fi
7798done
7799done
7800
7801fi
7802fi
7803AR=$ac_cv_prog_AR
7804if test -n "$AR"; then
7805  echo "$as_me:$LINENO: result: $AR" >&5
7806echo "${ECHO_T}$AR" >&6
7807else
7808  echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6
7810fi
7811
7812fi
7813if test -z "$ac_cv_prog_AR"; then
7814  ac_ct_AR=$AR
7815  # Extract the first word of "ar", so it can be a program name with args.
7816set dummy ar; ac_word=$2
7817echo "$as_me:$LINENO: checking for $ac_word" >&5
7818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7819if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7820  echo $ECHO_N "(cached) $ECHO_C" >&6
7821else
7822  if test -n "$ac_ct_AR"; then
7823  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7824else
7825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826for as_dir in $PATH
7827do
7828  IFS=$as_save_IFS
7829  test -z "$as_dir" && as_dir=.
7830  for ac_exec_ext in '' $ac_executable_extensions; do
7831  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7832    ac_cv_prog_ac_ct_AR="ar"
7833    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7834    break 2
7835  fi
7836done
7837done
7838
7839  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7840fi
7841fi
7842ac_ct_AR=$ac_cv_prog_ac_ct_AR
7843if test -n "$ac_ct_AR"; then
7844  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7845echo "${ECHO_T}$ac_ct_AR" >&6
7846else
7847  echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6
7849fi
7850
7851  AR=$ac_ct_AR
7852else
7853  AR="$ac_cv_prog_AR"
7854fi
7855
7856if test -n "$ac_tool_prefix"; then
7857  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7858set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7859echo "$as_me:$LINENO: checking for $ac_word" >&5
7860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7861if test "${ac_cv_prog_RANLIB+set}" = set; then
7862  echo $ECHO_N "(cached) $ECHO_C" >&6
7863else
7864  if test -n "$RANLIB"; then
7865  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7866else
7867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868for as_dir in $PATH
7869do
7870  IFS=$as_save_IFS
7871  test -z "$as_dir" && as_dir=.
7872  for ac_exec_ext in '' $ac_executable_extensions; do
7873  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7874    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7875    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7876    break 2
7877  fi
7878done
7879done
7880
7881fi
7882fi
7883RANLIB=$ac_cv_prog_RANLIB
7884if test -n "$RANLIB"; then
7885  echo "$as_me:$LINENO: result: $RANLIB" >&5
7886echo "${ECHO_T}$RANLIB" >&6
7887else
7888  echo "$as_me:$LINENO: result: no" >&5
7889echo "${ECHO_T}no" >&6
7890fi
7891
7892fi
7893if test -z "$ac_cv_prog_RANLIB"; then
7894  ac_ct_RANLIB=$RANLIB
7895  # Extract the first word of "ranlib", so it can be a program name with args.
7896set dummy ranlib; ac_word=$2
7897echo "$as_me:$LINENO: checking for $ac_word" >&5
7898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7899if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7900  echo $ECHO_N "(cached) $ECHO_C" >&6
7901else
7902  if test -n "$ac_ct_RANLIB"; then
7903  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7904else
7905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908  IFS=$as_save_IFS
7909  test -z "$as_dir" && as_dir=.
7910  for ac_exec_ext in '' $ac_executable_extensions; do
7911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912    ac_cv_prog_ac_ct_RANLIB="ranlib"
7913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7914    break 2
7915  fi
7916done
7917done
7918
7919  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7920fi
7921fi
7922ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7923if test -n "$ac_ct_RANLIB"; then
7924  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7925echo "${ECHO_T}$ac_ct_RANLIB" >&6
7926else
7927  echo "$as_me:$LINENO: result: no" >&5
7928echo "${ECHO_T}no" >&6
7929fi
7930
7931  RANLIB=$ac_ct_RANLIB
7932else
7933  RANLIB="$ac_cv_prog_RANLIB"
7934fi
7935
7936if test -n "$ac_tool_prefix"; then
7937  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7938set dummy ${ac_tool_prefix}strip; ac_word=$2
7939echo "$as_me:$LINENO: checking for $ac_word" >&5
7940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7941if test "${ac_cv_prog_STRIP+set}" = set; then
7942  echo $ECHO_N "(cached) $ECHO_C" >&6
7943else
7944  if test -n "$STRIP"; then
7945  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7946else
7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950  IFS=$as_save_IFS
7951  test -z "$as_dir" && as_dir=.
7952  for ac_exec_ext in '' $ac_executable_extensions; do
7953  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7954    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7955    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7956    break 2
7957  fi
7958done
7959done
7960
7961fi
7962fi
7963STRIP=$ac_cv_prog_STRIP
7964if test -n "$STRIP"; then
7965  echo "$as_me:$LINENO: result: $STRIP" >&5
7966echo "${ECHO_T}$STRIP" >&6
7967else
7968  echo "$as_me:$LINENO: result: no" >&5
7969echo "${ECHO_T}no" >&6
7970fi
7971
7972fi
7973if test -z "$ac_cv_prog_STRIP"; then
7974  ac_ct_STRIP=$STRIP
7975  # Extract the first word of "strip", so it can be a program name with args.
7976set dummy strip; ac_word=$2
7977echo "$as_me:$LINENO: checking for $ac_word" >&5
7978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7979if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7980  echo $ECHO_N "(cached) $ECHO_C" >&6
7981else
7982  if test -n "$ac_ct_STRIP"; then
7983  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7984else
7985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7986for as_dir in $PATH
7987do
7988  IFS=$as_save_IFS
7989  test -z "$as_dir" && as_dir=.
7990  for ac_exec_ext in '' $ac_executable_extensions; do
7991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7992    ac_cv_prog_ac_ct_STRIP="strip"
7993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7994    break 2
7995  fi
7996done
7997done
7998
7999  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8000fi
8001fi
8002ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8003if test -n "$ac_ct_STRIP"; then
8004  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8005echo "${ECHO_T}$ac_ct_STRIP" >&6
8006else
8007  echo "$as_me:$LINENO: result: no" >&5
8008echo "${ECHO_T}no" >&6
8009fi
8010
8011  STRIP=$ac_ct_STRIP
8012else
8013  STRIP="$ac_cv_prog_STRIP"
8014fi
8015
8016
8017old_CC="$CC"
8018old_CFLAGS="$CFLAGS"
8019
8020# Set sane defaults for various variables
8021test -z "$AR" && AR=ar
8022test -z "$AR_FLAGS" && AR_FLAGS=cru
8023test -z "$AS" && AS=as
8024test -z "$CC" && CC=cc
8025test -z "$LTCC" && LTCC=$CC
8026test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8027test -z "$DLLTOOL" && DLLTOOL=dlltool
8028test -z "$LD" && LD=ld
8029test -z "$LN_S" && LN_S="ln -s"
8030test -z "$MAGIC_CMD" && MAGIC_CMD=file
8031test -z "$NM" && NM=nm
8032test -z "$SED" && SED=sed
8033test -z "$OBJDUMP" && OBJDUMP=objdump
8034test -z "$RANLIB" && RANLIB=:
8035test -z "$STRIP" && STRIP=:
8036test -z "$ac_objext" && ac_objext=o
8037
8038# Determine commands to create old-style static archives.
8039old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8040old_postinstall_cmds='chmod 644 $oldlib'
8041old_postuninstall_cmds=
8042
8043if test -n "$RANLIB"; then
8044  case $host_os in
8045  openbsd*)
8046    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8047    ;;
8048  *)
8049    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8050    ;;
8051  esac
8052  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8053fi
8054
8055for cc_temp in $compiler""; do
8056  case $cc_temp in
8057    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8058    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8059    \-*) ;;
8060    *) break;;
8061  esac
8062done
8063cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8064
8065
8066# Only perform the check for file, if the check method requires it
8067case $deplibs_check_method in
8068file_magic*)
8069  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8070    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8071echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8072if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8073  echo $ECHO_N "(cached) $ECHO_C" >&6
8074else
8075  case $MAGIC_CMD in
8076[\\/*] |  ?:[\\/]*)
8077  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8078  ;;
8079*)
8080  lt_save_MAGIC_CMD="$MAGIC_CMD"
8081  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8082  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8083  for ac_dir in $ac_dummy; do
8084    IFS="$lt_save_ifs"
8085    test -z "$ac_dir" && ac_dir=.
8086    if test -f $ac_dir/${ac_tool_prefix}file; then
8087      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8088      if test -n "$file_magic_test_file"; then
8089        case $deplibs_check_method in
8090        "file_magic "*)
8091          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8092          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8093          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8094            $EGREP "$file_magic_regex" > /dev/null; then
8095            :
8096          else
8097            cat <<EOF 1>&2
8098
8099*** Warning: the command libtool uses to detect shared libraries,
8100*** $file_magic_cmd, produces output that libtool cannot recognize.
8101*** The result is that libtool may fail to recognize shared libraries
8102*** as such.  This will affect the creation of libtool libraries that
8103*** depend on shared libraries, but programs linked with such libtool
8104*** libraries will work regardless of this problem.  Nevertheless, you
8105*** may want to report the problem to your system manager and/or to
8106*** bug-libtool@gnu.org
8107
8108EOF
8109          fi ;;
8110        esac
8111      fi
8112      break
8113    fi
8114  done
8115  IFS="$lt_save_ifs"
8116  MAGIC_CMD="$lt_save_MAGIC_CMD"
8117  ;;
8118esac
8119fi
8120
8121MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8122if test -n "$MAGIC_CMD"; then
8123  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8124echo "${ECHO_T}$MAGIC_CMD" >&6
8125else
8126  echo "$as_me:$LINENO: result: no" >&5
8127echo "${ECHO_T}no" >&6
8128fi
8129
8130if test -z "$lt_cv_path_MAGIC_CMD"; then
8131  if test -n "$ac_tool_prefix"; then
8132    echo "$as_me:$LINENO: checking for file" >&5
8133echo $ECHO_N "checking for file... $ECHO_C" >&6
8134if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8135  echo $ECHO_N "(cached) $ECHO_C" >&6
8136else
8137  case $MAGIC_CMD in
8138[\\/*] |  ?:[\\/]*)
8139  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8140  ;;
8141*)
8142  lt_save_MAGIC_CMD="$MAGIC_CMD"
8143  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8144  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8145  for ac_dir in $ac_dummy; do
8146    IFS="$lt_save_ifs"
8147    test -z "$ac_dir" && ac_dir=.
8148    if test -f $ac_dir/file; then
8149      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8150      if test -n "$file_magic_test_file"; then
8151        case $deplibs_check_method in
8152        "file_magic "*)
8153          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8154          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8155          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8156            $EGREP "$file_magic_regex" > /dev/null; then
8157            :
8158          else
8159            cat <<EOF 1>&2
8160
8161*** Warning: the command libtool uses to detect shared libraries,
8162*** $file_magic_cmd, produces output that libtool cannot recognize.
8163*** The result is that libtool may fail to recognize shared libraries
8164*** as such.  This will affect the creation of libtool libraries that
8165*** depend on shared libraries, but programs linked with such libtool
8166*** libraries will work regardless of this problem.  Nevertheless, you
8167*** may want to report the problem to your system manager and/or to
8168*** bug-libtool@gnu.org
8169
8170EOF
8171          fi ;;
8172        esac
8173      fi
8174      break
8175    fi
8176  done
8177  IFS="$lt_save_ifs"
8178  MAGIC_CMD="$lt_save_MAGIC_CMD"
8179  ;;
8180esac
8181fi
8182
8183MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8184if test -n "$MAGIC_CMD"; then
8185  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8186echo "${ECHO_T}$MAGIC_CMD" >&6
8187else
8188  echo "$as_me:$LINENO: result: no" >&5
8189echo "${ECHO_T}no" >&6
8190fi
8191
8192  else
8193    MAGIC_CMD=:
8194  fi
8195fi
8196
8197  fi
8198  ;;
8199esac
8200
8201enable_dlopen=no
8202enable_win32_dll=no
8203
8204# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8205if test "${enable_libtool_lock+set}" = set; then
8206  enableval="$enable_libtool_lock"
8207
8208fi;
8209test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8210
8211
8212# Check whether --with-pic or --without-pic was given.
8213if test "${with_pic+set}" = set; then
8214  withval="$with_pic"
8215  pic_mode="$withval"
8216else
8217  pic_mode=default
8218fi;
8219test -z "$pic_mode" && pic_mode=default
8220
8221# Use C for the default configuration in the libtool script
8222tagname=
8223lt_save_CC="$CC"
8224ac_ext=c
8225ac_cpp='$CPP $CPPFLAGS'
8226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8228ac_compiler_gnu=$ac_cv_c_compiler_gnu
8229
8230
8231# Source file extension for C test sources.
8232ac_ext=c
8233
8234# Object file extension for compiled C test sources.
8235objext=o
8236objext=$objext
8237
8238# Code to be used in simple compile tests
8239lt_simple_compile_test_code="int some_variable = 0;\n"
8240
8241# Code to be used in simple link tests
8242lt_simple_link_test_code='int main(){return(0);}\n'
8243
8244
8245# If no C compiler was specified, use CC.
8246LTCC=${LTCC-"$CC"}
8247
8248# If no C compiler flags were specified, use CFLAGS.
8249LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8250
8251# Allow CC to be a program name with arguments.
8252compiler=$CC
8253
8254
8255# save warnings/boilerplate of simple test code
8256ac_outfile=conftest.$ac_objext
8257printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8258eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8259_lt_compiler_boilerplate=`cat conftest.err`
8260$rm conftest*
8261
8262ac_outfile=conftest.$ac_objext
8263printf "$lt_simple_link_test_code" >conftest.$ac_ext
8264eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8265_lt_linker_boilerplate=`cat conftest.err`
8266$rm conftest*
8267
8268
8269## CAVEAT EMPTOR:
8270## There is no encapsulation within the following macros, do not change
8271## the running order or otherwise move them around unless you know exactly
8272## what you are doing...
8273
8274lt_prog_compiler_no_builtin_flag=
8275
8276if test "$GCC" = yes; then
8277  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8278
8279
8280echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8281echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8282if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8283  echo $ECHO_N "(cached) $ECHO_C" >&6
8284else
8285  lt_cv_prog_compiler_rtti_exceptions=no
8286  ac_outfile=conftest.$ac_objext
8287   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8288   lt_compiler_flag="-fno-rtti -fno-exceptions"
8289   # Insert the option either (1) after the last *FLAGS variable, or
8290   # (2) before a word containing "conftest.", or (3) at the end.
8291   # Note that $ac_compile itself does not contain backslashes and begins
8292   # with a dollar sign (not a hyphen), so the echo should work correctly.
8293   # The option is referenced via a variable to avoid confusing sed.
8294   lt_compile=`echo "$ac_compile" | $SED \
8295   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8296   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8297   -e 's:$: $lt_compiler_flag:'`
8298   (eval echo "\"\$as_me:8298: $lt_compile\"" >&5)
8299   (eval "$lt_compile" 2>conftest.err)
8300   ac_status=$?
8301   cat conftest.err >&5
8302   echo "$as_me:8302: \$? = $ac_status" >&5
8303   if (exit $ac_status) && test -s "$ac_outfile"; then
8304     # The compiler can only warn and ignore the option if not recognized
8305     # So say no if there are warnings other than the usual output.
8306     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8307     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8308     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8309       lt_cv_prog_compiler_rtti_exceptions=yes
8310     fi
8311   fi
8312   $rm conftest*
8313
8314fi
8315echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8316echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8317
8318if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8319    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8320else
8321    :
8322fi
8323
8324fi
8325
8326lt_prog_compiler_wl=
8327lt_prog_compiler_pic=
8328lt_prog_compiler_static=
8329
8330echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8331echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8332
8333  if test "$GCC" = yes; then
8334    lt_prog_compiler_wl='-Wl,'
8335    lt_prog_compiler_static='-static'
8336
8337    case $host_os in
8338      aix*)
8339      # All AIX code is PIC.
8340      if test "$host_cpu" = ia64; then
8341        # AIX 5 now supports IA64 processor
8342        lt_prog_compiler_static='-Bstatic'
8343      fi
8344      ;;
8345
8346    amigaos*)
8347      # FIXME: we need at least 68020 code to build shared libraries, but
8348      # adding the `-m68020' flag to GCC prevents building anything better,
8349      # like `-m68040'.
8350      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8351      ;;
8352
8353    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8354      # PIC is the default for these OSes.
8355      ;;
8356
8357    mingw* | pw32* | os2*)
8358      # This hack is so that the source file can tell whether it is being
8359      # built for inclusion in a dll (and should export symbols for example).
8360      lt_prog_compiler_pic='-DDLL_EXPORT'
8361      ;;
8362
8363    darwin* | rhapsody*)
8364      # PIC is the default on this platform
8365      # Common symbols not allowed in MH_DYLIB files
8366      lt_prog_compiler_pic='-fno-common'
8367      ;;
8368
8369    interix3*)
8370      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8371      # Instead, we relocate shared libraries at runtime.
8372      ;;
8373
8374    msdosdjgpp*)
8375      # Just because we use GCC doesn't mean we suddenly get shared libraries
8376      # on systems that don't support them.
8377      lt_prog_compiler_can_build_shared=no
8378      enable_shared=no
8379      ;;
8380
8381    sysv4*MP*)
8382      if test -d /usr/nec; then
8383        lt_prog_compiler_pic=-Kconform_pic
8384      fi
8385      ;;
8386
8387    hpux*)
8388      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8389      # not for PA HP-UX.
8390      case $host_cpu in
8391      hppa*64*|ia64*)
8392        # +Z the default
8393        ;;
8394      *)
8395        lt_prog_compiler_pic='-fPIC'
8396        ;;
8397      esac
8398      ;;
8399
8400    *)
8401      lt_prog_compiler_pic='-fPIC'
8402      ;;
8403    esac
8404  else
8405    # PORTME Check for flag to pass linker flags through the system compiler.
8406    case $host_os in
8407    aix*)
8408      lt_prog_compiler_wl='-Wl,'
8409      if test "$host_cpu" = ia64; then
8410        # AIX 5 now supports IA64 processor
8411        lt_prog_compiler_static='-Bstatic'
8412      else
8413        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8414      fi
8415      ;;
8416      darwin*)
8417        # PIC is the default on this platform
8418        # Common symbols not allowed in MH_DYLIB files
8419       case $cc_basename in
8420         xlc*)
8421         lt_prog_compiler_pic='-qnocommon'
8422         lt_prog_compiler_wl='-Wl,'
8423         ;;
8424       esac
8425       ;;
8426
8427    mingw* | pw32* | os2*)
8428      # This hack is so that the source file can tell whether it is being
8429      # built for inclusion in a dll (and should export symbols for example).
8430      lt_prog_compiler_pic='-DDLL_EXPORT'
8431      ;;
8432
8433    hpux9* | hpux10* | hpux11*)
8434      lt_prog_compiler_wl='-Wl,'
8435      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8436      # not for PA HP-UX.
8437      case $host_cpu in
8438      hppa*64*|ia64*)
8439        # +Z the default
8440        ;;
8441      *)
8442        lt_prog_compiler_pic='+Z'
8443        ;;
8444      esac
8445      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8446      lt_prog_compiler_static='${wl}-a ${wl}archive'
8447      ;;
8448
8449    irix5* | irix6* | nonstopux*)
8450      lt_prog_compiler_wl='-Wl,'
8451      # PIC (with -KPIC) is the default.
8452      lt_prog_compiler_static='-non_shared'
8453      ;;
8454
8455    newsos6)
8456      lt_prog_compiler_pic='-KPIC'
8457      lt_prog_compiler_static='-Bstatic'
8458      ;;
8459
8460    linux*)
8461      case $cc_basename in
8462      icc* | ecc*)
8463        lt_prog_compiler_wl='-Wl,'
8464        lt_prog_compiler_pic='-KPIC'
8465        lt_prog_compiler_static='-static'
8466        ;;
8467      pgcc* | pgf77* | pgf90* | pgf95*)
8468        # Portland Group compilers (*not* the Pentium gcc compiler,
8469        # which looks to be a dead project)
8470        lt_prog_compiler_wl='-Wl,'
8471        lt_prog_compiler_pic='-fpic'
8472        lt_prog_compiler_static='-Bstatic'
8473        ;;
8474      ccc*)
8475        lt_prog_compiler_wl='-Wl,'
8476        # All Alpha code is PIC.
8477        lt_prog_compiler_static='-non_shared'
8478        ;;
8479      esac
8480      ;;
8481
8482    osf3* | osf4* | osf5*)
8483      lt_prog_compiler_wl='-Wl,'
8484      # All OSF/1 code is PIC.
8485      lt_prog_compiler_static='-non_shared'
8486      ;;
8487
8488    solaris*)
8489      lt_prog_compiler_pic='-KPIC'
8490      lt_prog_compiler_static='-Bstatic'
8491      case $cc_basename in
8492      f77* | f90* | f95*)
8493        lt_prog_compiler_wl='-Qoption ld ';;
8494      *)
8495        lt_prog_compiler_wl='-Wl,';;
8496      esac
8497      ;;
8498
8499    sunos4*)
8500      lt_prog_compiler_wl='-Qoption ld '
8501      lt_prog_compiler_pic='-PIC'
8502      lt_prog_compiler_static='-Bstatic'
8503      ;;
8504
8505    sysv4 | sysv4.2uw2* | sysv4.3*)
8506      lt_prog_compiler_wl='-Wl,'
8507      lt_prog_compiler_pic='-KPIC'
8508      lt_prog_compiler_static='-Bstatic'
8509      ;;
8510
8511    sysv4*MP*)
8512      if test -d /usr/nec ;then
8513        lt_prog_compiler_pic='-Kconform_pic'
8514        lt_prog_compiler_static='-Bstatic'
8515      fi
8516      ;;
8517
8518    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8519      lt_prog_compiler_wl='-Wl,'
8520      lt_prog_compiler_pic='-KPIC'
8521      lt_prog_compiler_static='-Bstatic'
8522      ;;
8523
8524    unicos*)
8525      lt_prog_compiler_wl='-Wl,'
8526      lt_prog_compiler_can_build_shared=no
8527      ;;
8528
8529    uts4*)
8530      lt_prog_compiler_pic='-pic'
8531      lt_prog_compiler_static='-Bstatic'
8532      ;;
8533
8534    *)
8535      lt_prog_compiler_can_build_shared=no
8536      ;;
8537    esac
8538  fi
8539
8540echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8541echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8542
8543#
8544# Check to make sure the PIC flag actually works.
8545#
8546if test -n "$lt_prog_compiler_pic"; then
8547
8548echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8549echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8550if test "${lt_prog_compiler_pic_works+set}" = set; then
8551  echo $ECHO_N "(cached) $ECHO_C" >&6
8552else
8553  lt_prog_compiler_pic_works=no
8554  ac_outfile=conftest.$ac_objext
8555   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8556   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8557   # Insert the option either (1) after the last *FLAGS variable, or
8558   # (2) before a word containing "conftest.", or (3) at the end.
8559   # Note that $ac_compile itself does not contain backslashes and begins
8560   # with a dollar sign (not a hyphen), so the echo should work correctly.
8561   # The option is referenced via a variable to avoid confusing sed.
8562   lt_compile=`echo "$ac_compile" | $SED \
8563   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8564   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8565   -e 's:$: $lt_compiler_flag:'`
8566   (eval echo "\"\$as_me:8566: $lt_compile\"" >&5)
8567   (eval "$lt_compile" 2>conftest.err)
8568   ac_status=$?
8569   cat conftest.err >&5
8570   echo "$as_me:8570: \$? = $ac_status" >&5
8571   if (exit $ac_status) && test -s "$ac_outfile"; then
8572     # The compiler can only warn and ignore the option if not recognized
8573     # So say no if there are warnings other than the usual output.
8574     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8575     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8576     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8577       lt_prog_compiler_pic_works=yes
8578     fi
8579   fi
8580   $rm conftest*
8581
8582fi
8583echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8584echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8585
8586if test x"$lt_prog_compiler_pic_works" = xyes; then
8587    case $lt_prog_compiler_pic in
8588     "" | " "*) ;;
8589     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8590     esac
8591else
8592    lt_prog_compiler_pic=
8593     lt_prog_compiler_can_build_shared=no
8594fi
8595
8596fi
8597case $host_os in
8598  # For platforms which do not support PIC, -DPIC is meaningless:
8599  *djgpp*)
8600    lt_prog_compiler_pic=
8601    ;;
8602  *)
8603    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8604    ;;
8605esac
8606
8607#
8608# Check to make sure the static flag actually works.
8609#
8610wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8611echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8612echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8613if test "${lt_prog_compiler_static_works+set}" = set; then
8614  echo $ECHO_N "(cached) $ECHO_C" >&6
8615else
8616  lt_prog_compiler_static_works=no
8617   save_LDFLAGS="$LDFLAGS"
8618   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8619   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8620   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8621     # The linker can only warn and ignore the option if not recognized
8622     # So say no if there are warnings
8623     if test -s conftest.err; then
8624       # Append any errors to the config.log.
8625       cat conftest.err 1>&5
8626       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8627       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8628       if diff conftest.exp conftest.er2 >/dev/null; then
8629         lt_prog_compiler_static_works=yes
8630       fi
8631     else
8632       lt_prog_compiler_static_works=yes
8633     fi
8634   fi
8635   $rm conftest*
8636   LDFLAGS="$save_LDFLAGS"
8637
8638fi
8639echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8640echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8641
8642if test x"$lt_prog_compiler_static_works" = xyes; then
8643    :
8644else
8645    lt_prog_compiler_static=
8646fi
8647
8648
8649echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8650echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8651if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8652  echo $ECHO_N "(cached) $ECHO_C" >&6
8653else
8654  lt_cv_prog_compiler_c_o=no
8655   $rm -r conftest 2>/dev/null
8656   mkdir conftest
8657   cd conftest
8658   mkdir out
8659   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8660
8661   lt_compiler_flag="-o out/conftest2.$ac_objext"
8662   # Insert the option either (1) after the last *FLAGS variable, or
8663   # (2) before a word containing "conftest.", or (3) at the end.
8664   # Note that $ac_compile itself does not contain backslashes and begins
8665   # with a dollar sign (not a hyphen), so the echo should work correctly.
8666   lt_compile=`echo "$ac_compile" | $SED \
8667   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8669   -e 's:$: $lt_compiler_flag:'`
8670   (eval echo "\"\$as_me:8670: $lt_compile\"" >&5)
8671   (eval "$lt_compile" 2>out/conftest.err)
8672   ac_status=$?
8673   cat out/conftest.err >&5
8674   echo "$as_me:8674: \$? = $ac_status" >&5
8675   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8676   then
8677     # The compiler can only warn and ignore the option if not recognized
8678     # So say no if there are warnings
8679     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8680     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8681     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8682       lt_cv_prog_compiler_c_o=yes
8683     fi
8684   fi
8685   chmod u+w . 2>&5
8686   $rm conftest*
8687   # SGI C++ compiler will create directory out/ii_files/ for
8688   # template instantiation
8689   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8690   $rm out/* && rmdir out
8691   cd ..
8692   rmdir conftest
8693   $rm conftest*
8694
8695fi
8696echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8697echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8698
8699
8700hard_links="nottested"
8701if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8702  # do not overwrite the value of need_locks provided by the user
8703  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8704echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8705  hard_links=yes
8706  $rm conftest*
8707  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8708  touch conftest.a
8709  ln conftest.a conftest.b 2>&5 || hard_links=no
8710  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8711  echo "$as_me:$LINENO: result: $hard_links" >&5
8712echo "${ECHO_T}$hard_links" >&6
8713  if test "$hard_links" = no; then
8714    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8715echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8716    need_locks=warn
8717  fi
8718else
8719  need_locks=no
8720fi
8721
8722echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8723echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8724
8725  runpath_var=
8726  allow_undefined_flag=
8727  enable_shared_with_static_runtimes=no
8728  archive_cmds=
8729  archive_expsym_cmds=
8730  old_archive_From_new_cmds=
8731  old_archive_from_expsyms_cmds=
8732  export_dynamic_flag_spec=
8733  whole_archive_flag_spec=
8734  thread_safe_flag_spec=
8735  hardcode_libdir_flag_spec=
8736  hardcode_libdir_flag_spec_ld=
8737  hardcode_libdir_separator=
8738  hardcode_direct=no
8739  hardcode_minus_L=no
8740  hardcode_shlibpath_var=unsupported
8741  link_all_deplibs=unknown
8742  hardcode_automatic=no
8743  module_cmds=
8744  module_expsym_cmds=
8745  always_export_symbols=no
8746  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8747  # include_expsyms should be a list of space-separated symbols to be *always*
8748  # included in the symbol list
8749  include_expsyms=
8750  # exclude_expsyms can be an extended regexp of symbols to exclude
8751  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8752  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8753  # as well as any symbol that contains `d'.
8754  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8755  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8756  # platforms (ab)use it in PIC code, but their linkers get confused if
8757  # the symbol is explicitly referenced.  Since portable code cannot
8758  # rely on this symbol name, it's probably fine to never include it in
8759  # preloaded symbol tables.
8760  extract_expsyms_cmds=
8761  # Just being paranoid about ensuring that cc_basename is set.
8762  for cc_temp in $compiler""; do
8763  case $cc_temp in
8764    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8765    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8766    \-*) ;;
8767    *) break;;
8768  esac
8769done
8770cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8771
8772  case $host_os in
8773  cygwin* | mingw* | pw32*)
8774    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8775    # When not using gcc, we currently assume that we are using
8776    # Microsoft Visual C++.
8777    if test "$GCC" != yes; then
8778      with_gnu_ld=no
8779    fi
8780    ;;
8781  interix*)
8782    # we just hope/assume this is gcc and not c89 (= MSVC++)
8783    with_gnu_ld=yes
8784    ;;
8785  openbsd*)
8786    with_gnu_ld=no
8787    ;;
8788  esac
8789
8790  ld_shlibs=yes
8791  if test "$with_gnu_ld" = yes; then
8792    # If archive_cmds runs LD, not CC, wlarc should be empty
8793    wlarc='${wl}'
8794
8795    # Set some defaults for GNU ld with shared library support. These
8796    # are reset later if shared libraries are not supported. Putting them
8797    # here allows them to be overridden if necessary.
8798    runpath_var=LD_RUN_PATH
8799    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8800    export_dynamic_flag_spec='${wl}--export-dynamic'
8801    # ancient GNU ld didn't support --whole-archive et. al.
8802    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8803        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8804      else
8805        whole_archive_flag_spec=
8806    fi
8807    supports_anon_versioning=no
8808    case `$LD -v 2>/dev/null` in
8809      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8810      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8811      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8812      *\ 2.11.*) ;; # other 2.11 versions
8813      *) supports_anon_versioning=yes ;;
8814    esac
8815
8816    # See if GNU ld supports shared libraries.
8817    case $host_os in
8818    aix3* | aix4* | aix5*)
8819      # On AIX/PPC, the GNU linker is very broken
8820      if test "$host_cpu" != ia64; then
8821        ld_shlibs=no
8822        cat <<EOF 1>&2
8823
8824*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8825*** to be unable to reliably create shared libraries on AIX.
8826*** Therefore, libtool is disabling shared libraries support.  If you
8827*** really care for shared libraries, you may want to modify your PATH
8828*** so that a non-GNU linker is found, and then restart.
8829
8830EOF
8831      fi
8832      ;;
8833
8834    amigaos*)
8835      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)'
8836      hardcode_libdir_flag_spec='-L$libdir'
8837      hardcode_minus_L=yes
8838
8839      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8840      # that the semantics of dynamic libraries on AmigaOS, at least up
8841      # to version 4, is to share data among multiple programs linked
8842      # with the same dynamic library.  Since this doesn't match the
8843      # behavior of shared libraries on other platforms, we can't use
8844      # them.
8845      ld_shlibs=no
8846      ;;
8847
8848    beos*)
8849      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8850        allow_undefined_flag=unsupported
8851        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8852        # support --undefined.  This deserves some investigation.  FIXME
8853        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854      else
8855        ld_shlibs=no
8856      fi
8857      ;;
8858
8859    cygwin* | mingw* | pw32*)
8860      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8861      # as there is no search path for DLLs.
8862      hardcode_libdir_flag_spec='-L$libdir'
8863      allow_undefined_flag=unsupported
8864      always_export_symbols=no
8865      enable_shared_with_static_runtimes=yes
8866      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8867
8868      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8869        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8870        # If the export-symbols file already is a .def file (1st line
8871        # is EXPORTS), use it as is; otherwise, prepend...
8872        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8873          cp $export_symbols $output_objdir/$soname.def;
8874        else
8875          echo EXPORTS > $output_objdir/$soname.def;
8876          cat $export_symbols >> $output_objdir/$soname.def;
8877        fi~
8878        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8879      else
8880        ld_shlibs=no
8881      fi
8882      ;;
8883
8884    interix3*)
8885      hardcode_direct=no
8886      hardcode_shlibpath_var=no
8887      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8888      export_dynamic_flag_spec='${wl}-E'
8889      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8890      # Instead, shared libraries are loaded at an image base (0x10000000 by
8891      # default) and relocated if they conflict, which is a slow very memory
8892      # consuming and fragmenting process.  To avoid this, we pick a random,
8893      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8894      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8895      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8896      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'
8897      ;;
8898
8899    linux*)
8900      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8901        tmp_addflag=
8902        case $cc_basename,$host_cpu in
8903        pgcc*)                          # Portland Group C compiler
8904          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'
8905          tmp_addflag=' $pic_flag'
8906          ;;
8907        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8908          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'
8909          tmp_addflag=' $pic_flag -Mnomain' ;;
8910        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8911          tmp_addflag=' -i_dynamic' ;;
8912        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8913          tmp_addflag=' -i_dynamic -nofor_main' ;;
8914        ifc* | ifort*)                  # Intel Fortran compiler
8915          tmp_addflag=' -nofor_main' ;;
8916        esac
8917        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918
8919        if test $supports_anon_versioning = yes; then
8920          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8921  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8922  $echo "local: *; };" >> $output_objdir/$libname.ver~
8923          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8924        fi
8925      else
8926        ld_shlibs=no
8927      fi
8928      ;;
8929
8930    netbsd*)
8931      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8932        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8933        wlarc=
8934      else
8935        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8936        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8937      fi
8938      ;;
8939
8940    solaris*)
8941      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8942        ld_shlibs=no
8943        cat <<EOF 1>&2
8944
8945*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8946*** create shared libraries on Solaris systems.  Therefore, libtool
8947*** is disabling shared libraries support.  We urge you to upgrade GNU
8948*** binutils to release 2.9.1 or newer.  Another option is to modify
8949*** your PATH or compiler configuration so that the native linker is
8950*** used, and then restart.
8951
8952EOF
8953      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8954        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8956      else
8957        ld_shlibs=no
8958      fi
8959      ;;
8960
8961    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8962      case `$LD -v 2>&1` in
8963        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8964        ld_shlibs=no
8965        cat <<_LT_EOF 1>&2
8966
8967*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8968*** reliably create shared libraries on SCO systems.  Therefore, libtool
8969*** is disabling shared libraries support.  We urge you to upgrade GNU
8970*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8971*** your PATH or compiler configuration so that the native linker is
8972*** used, and then restart.
8973
8974_LT_EOF
8975        ;;
8976        *)
8977          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8978            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8979            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8980            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8981          else
8982            ld_shlibs=no
8983          fi
8984        ;;
8985      esac
8986      ;;
8987
8988    sunos4*)
8989      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8990      wlarc=
8991      hardcode_direct=yes
8992      hardcode_shlibpath_var=no
8993      ;;
8994
8995    *)
8996      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8997        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8998        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8999      else
9000        ld_shlibs=no
9001      fi
9002      ;;
9003    esac
9004
9005    if test "$ld_shlibs" = no; then
9006      runpath_var=
9007      hardcode_libdir_flag_spec=
9008      export_dynamic_flag_spec=
9009      whole_archive_flag_spec=
9010    fi
9011  else
9012    # PORTME fill in a description of your system's linker (not GNU ld)
9013    case $host_os in
9014    aix3*)
9015      allow_undefined_flag=unsupported
9016      always_export_symbols=yes
9017      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'
9018      # Note: this linker hardcodes the directories in LIBPATH if there
9019      # are no directories specified by -L.
9020      hardcode_minus_L=yes
9021      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9022        # Neither direct hardcoding nor static linking is supported with a
9023        # broken collect2.
9024        hardcode_direct=unsupported
9025      fi
9026      ;;
9027
9028    aix4* | aix5*)
9029      if test "$host_cpu" = ia64; then
9030        # On IA64, the linker does run time linking by default, so we don't
9031        # have to do anything special.
9032        aix_use_runtimelinking=no
9033        exp_sym_flag='-Bexport'
9034        no_entry_flag=""
9035      else
9036        # If we're using GNU nm, then we don't want the "-C" option.
9037        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9038        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9039          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'
9040        else
9041          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'
9042        fi
9043        aix_use_runtimelinking=no
9044
9045        # Test if we are trying to use run time linking or normal
9046        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9047        # need to do runtime linking.
9048        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9049          for ld_flag in $LDFLAGS; do
9050          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9051            aix_use_runtimelinking=yes
9052            break
9053          fi
9054          done
9055          ;;
9056        esac
9057
9058        exp_sym_flag='-bexport'
9059        no_entry_flag='-bnoentry'
9060      fi
9061
9062      # When large executables or shared objects are built, AIX ld can
9063      # have problems creating the table of contents.  If linking a library
9064      # or program results in "error TOC overflow" add -mminimal-toc to
9065      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9066      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9067
9068      archive_cmds=''
9069      hardcode_direct=yes
9070      hardcode_libdir_separator=':'
9071      link_all_deplibs=yes
9072
9073      if test "$GCC" = yes; then
9074        case $host_os in aix4.[012]|aix4.[012].*)
9075        # We only want to do this on AIX 4.2 and lower, the check
9076        # below for broken collect2 doesn't work under 4.3+
9077          collect2name=`${CC} -print-prog-name=collect2`
9078          if test -f "$collect2name" && \
9079           strings "$collect2name" | grep resolve_lib_name >/dev/null
9080          then
9081          # We have reworked collect2
9082          hardcode_direct=yes
9083          else
9084          # We have old collect2
9085          hardcode_direct=unsupported
9086          # It fails to find uninstalled libraries when the uninstalled
9087          # path is not listed in the libpath.  Setting hardcode_minus_L
9088          # to unsupported forces relinking
9089          hardcode_minus_L=yes
9090          hardcode_libdir_flag_spec='-L$libdir'
9091          hardcode_libdir_separator=
9092          fi
9093          ;;
9094        esac
9095        shared_flag='-shared'
9096        if test "$aix_use_runtimelinking" = yes; then
9097          shared_flag="$shared_flag "'${wl}-G'
9098        fi
9099      else
9100        # not using gcc
9101        if test "$host_cpu" = ia64; then
9102        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9103        # chokes on -Wl,-G. The following line is correct:
9104          shared_flag='-G'
9105        else
9106          if test "$aix_use_runtimelinking" = yes; then
9107            shared_flag='${wl}-G'
9108          else
9109            shared_flag='${wl}-bM:SRE'
9110          fi
9111        fi
9112      fi
9113
9114      # It seems that -bexpall does not export symbols beginning with
9115      # underscore (_), so it is better to generate a list of symbols to export.
9116      always_export_symbols=yes
9117      if test "$aix_use_runtimelinking" = yes; then
9118        # Warning - without using the other runtime loading flags (-brtl),
9119        # -berok will link without error, but may produce a broken library.
9120        allow_undefined_flag='-berok'
9121       # Determine the default libpath from the value encoded in an empty executable.
9122       cat >conftest.$ac_ext <<_ACEOF
9123/* confdefs.h.  */
9124_ACEOF
9125cat confdefs.h >>conftest.$ac_ext
9126cat >>conftest.$ac_ext <<_ACEOF
9127/* end confdefs.h.  */
9128
9129int
9130main ()
9131{
9132
9133  ;
9134  return 0;
9135}
9136_ACEOF
9137rm -f conftest.$ac_objext conftest$ac_exeext
9138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139  (eval $ac_link) 2>conftest.er1
9140  ac_status=$?
9141  grep -v '^ *+' conftest.er1 >conftest.err
9142  rm -f conftest.er1
9143  cat conftest.err >&5
9144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145  (exit $ac_status); } &&
9146         { ac_try='test -z "$ac_c_werror_flag"
9147                         || test ! -s conftest.err'
9148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149  (eval $ac_try) 2>&5
9150  ac_status=$?
9151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152  (exit $ac_status); }; } &&
9153         { ac_try='test -s conftest$ac_exeext'
9154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155  (eval $ac_try) 2>&5
9156  ac_status=$?
9157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158  (exit $ac_status); }; }; then
9159
9160aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9161}'`
9162# Check for a 64-bit object if we didn't find anything.
9163if 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; }
9164}'`; fi
9165else
9166  echo "$as_me: failed program was:" >&5
9167sed 's/^/| /' conftest.$ac_ext >&5
9168
9169fi
9170rm -f conftest.err conftest.$ac_objext \
9171      conftest$ac_exeext conftest.$ac_ext
9172if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9173
9174       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9175        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"
9176       else
9177        if test "$host_cpu" = ia64; then
9178          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9179          allow_undefined_flag="-z nodefs"
9180          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"
9181        else
9182         # Determine the default libpath from the value encoded in an empty executable.
9183         cat >conftest.$ac_ext <<_ACEOF
9184/* confdefs.h.  */
9185_ACEOF
9186cat confdefs.h >>conftest.$ac_ext
9187cat >>conftest.$ac_ext <<_ACEOF
9188/* end confdefs.h.  */
9189
9190int
9191main ()
9192{
9193
9194  ;
9195  return 0;
9196}
9197_ACEOF
9198rm -f conftest.$ac_objext conftest$ac_exeext
9199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9200  (eval $ac_link) 2>conftest.er1
9201  ac_status=$?
9202  grep -v '^ *+' conftest.er1 >conftest.err
9203  rm -f conftest.er1
9204  cat conftest.err >&5
9205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206  (exit $ac_status); } &&
9207         { ac_try='test -z "$ac_c_werror_flag"
9208                         || test ! -s conftest.err'
9209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210  (eval $ac_try) 2>&5
9211  ac_status=$?
9212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213  (exit $ac_status); }; } &&
9214         { ac_try='test -s conftest$ac_exeext'
9215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216  (eval $ac_try) 2>&5
9217  ac_status=$?
9218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219  (exit $ac_status); }; }; then
9220
9221aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9222}'`
9223# Check for a 64-bit object if we didn't find anything.
9224if 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; }
9225}'`; fi
9226else
9227  echo "$as_me: failed program was:" >&5
9228sed 's/^/| /' conftest.$ac_ext >&5
9229
9230fi
9231rm -f conftest.err conftest.$ac_objext \
9232      conftest$ac_exeext conftest.$ac_ext
9233if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9234
9235         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9236          # Warning - without using the other run time loading flags,
9237          # -berok will link without error, but may produce a broken library.
9238          no_undefined_flag=' ${wl}-bernotok'
9239          allow_undefined_flag=' ${wl}-berok'
9240          # Exported symbols can be pulled into shared objects from archives
9241          whole_archive_flag_spec='$convenience'
9242          archive_cmds_need_lc=yes
9243          # This is similar to how AIX traditionally builds its shared libraries.
9244          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'
9245        fi
9246      fi
9247      ;;
9248
9249    amigaos*)
9250      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)'
9251      hardcode_libdir_flag_spec='-L$libdir'
9252      hardcode_minus_L=yes
9253      # see comment about different semantics on the GNU ld section
9254      ld_shlibs=no
9255      ;;
9256
9257    bsdi[45]*)
9258      export_dynamic_flag_spec=-rdynamic
9259      ;;
9260
9261    cygwin* | mingw* | pw32*)
9262      # When not using gcc, we currently assume that we are using
9263      # Microsoft Visual C++.
9264      # hardcode_libdir_flag_spec is actually meaningless, as there is
9265      # no search path for DLLs.
9266      hardcode_libdir_flag_spec=' '
9267      allow_undefined_flag=unsupported
9268      # Tell ltmain to make .lib files, not .a files.
9269      libext=lib
9270      # Tell ltmain to make .dll files, not .so files.
9271      shrext_cmds=".dll"
9272      # FIXME: Setting linknames here is a bad hack.
9273      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9274      # The linker will automatically build a .lib file if we build a DLL.
9275      old_archive_From_new_cmds='true'
9276      # FIXME: Should let the user specify the lib program.
9277      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9278      fix_srcfile_path='`cygpath -w "$srcfile"`'
9279      enable_shared_with_static_runtimes=yes
9280      ;;
9281
9282    darwin* | rhapsody*)
9283      case $host_os in
9284        rhapsody* | darwin1.[012])
9285         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9286         ;;
9287       *) # Darwin 1.3 on
9288         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9289           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9290         else
9291           case ${MACOSX_DEPLOYMENT_TARGET} in
9292             10.[012])
9293               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9294               ;;
9295             10.*)
9296               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9297               ;;
9298           esac
9299         fi
9300         ;;
9301      esac
9302      archive_cmds_need_lc=no
9303      hardcode_direct=no
9304      hardcode_automatic=yes
9305      hardcode_shlibpath_var=unsupported
9306      whole_archive_flag_spec=''
9307      link_all_deplibs=yes
9308    if test "$GCC" = yes ; then
9309        output_verbose_link_cmd='echo'
9310        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9311      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9312      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9313      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}'
9314      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}'
9315    else
9316      case $cc_basename in
9317        xlc*)
9318         output_verbose_link_cmd='echo'
9319         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9320         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9321          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9322         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}'
9323          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}'
9324          ;;
9325       *)
9326         ld_shlibs=no
9327          ;;
9328      esac
9329    fi
9330      ;;
9331
9332    dgux*)
9333      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334      hardcode_libdir_flag_spec='-L$libdir'
9335      hardcode_shlibpath_var=no
9336      ;;
9337
9338    freebsd1*)
9339      ld_shlibs=no
9340      ;;
9341
9342    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9343    # support.  Future versions do this automatically, but an explicit c++rt0.o
9344    # does not break anything, and helps significantly (at the cost of a little
9345    # extra space).
9346    freebsd2.2*)
9347      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9348      hardcode_libdir_flag_spec='-R$libdir'
9349      hardcode_direct=yes
9350      hardcode_shlibpath_var=no
9351      ;;
9352
9353    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9354    freebsd2*)
9355      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9356      hardcode_direct=yes
9357      hardcode_minus_L=yes
9358      hardcode_shlibpath_var=no
9359      ;;
9360
9361    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9362    freebsd* | kfreebsd*-gnu | dragonfly*)
9363      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9364      hardcode_libdir_flag_spec='-R$libdir'
9365      hardcode_direct=yes
9366      hardcode_shlibpath_var=no
9367      ;;
9368
9369    hpux9*)
9370      if test "$GCC" = yes; then
9371        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'
9372      else
9373        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'
9374      fi
9375      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9376      hardcode_libdir_separator=:
9377      hardcode_direct=yes
9378
9379      # hardcode_minus_L: Not really in the search PATH,
9380      # but as the default location of the library.
9381      hardcode_minus_L=yes
9382      export_dynamic_flag_spec='${wl}-E'
9383      ;;
9384
9385    hpux10*)
9386      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9387        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9388      else
9389        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9390      fi
9391      if test "$with_gnu_ld" = no; then
9392        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9393        hardcode_libdir_separator=:
9394
9395        hardcode_direct=yes
9396        export_dynamic_flag_spec='${wl}-E'
9397
9398        # hardcode_minus_L: Not really in the search PATH,
9399        # but as the default location of the library.
9400        hardcode_minus_L=yes
9401      fi
9402      ;;
9403
9404    hpux11*)
9405      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9406        case $host_cpu in
9407        hppa*64*)
9408          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9409          ;;
9410        ia64*)
9411          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9412          ;;
9413        *)
9414          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9415          ;;
9416        esac
9417      else
9418        case $host_cpu in
9419        hppa*64*)
9420          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9421          ;;
9422        ia64*)
9423          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9424          ;;
9425        *)
9426          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9427          ;;
9428        esac
9429      fi
9430      if test "$with_gnu_ld" = no; then
9431        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9432        hardcode_libdir_separator=:
9433
9434        case $host_cpu in
9435        hppa*64*|ia64*)
9436          hardcode_libdir_flag_spec_ld='+b $libdir'
9437          hardcode_direct=no
9438          hardcode_shlibpath_var=no
9439          ;;
9440        *)
9441          hardcode_direct=yes
9442          export_dynamic_flag_spec='${wl}-E'
9443
9444          # hardcode_minus_L: Not really in the search PATH,
9445          # but as the default location of the library.
9446          hardcode_minus_L=yes
9447          ;;
9448        esac
9449      fi
9450      ;;
9451
9452    irix5* | irix6* | nonstopux*)
9453      if test "$GCC" = yes; then
9454        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'
9455      else
9456        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'
9457        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9458      fi
9459      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9460      hardcode_libdir_separator=:
9461      link_all_deplibs=yes
9462      ;;
9463
9464    netbsd*)
9465      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9466        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9467      else
9468        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9469      fi
9470      hardcode_libdir_flag_spec='-R$libdir'
9471      hardcode_direct=yes
9472      hardcode_shlibpath_var=no
9473      ;;
9474
9475    newsos6)
9476      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9477      hardcode_direct=yes
9478      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479      hardcode_libdir_separator=:
9480      hardcode_shlibpath_var=no
9481      ;;
9482
9483    openbsd*)
9484      hardcode_direct=yes
9485      hardcode_shlibpath_var=no
9486      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9487        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9488        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9489        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9490        export_dynamic_flag_spec='${wl}-E'
9491      else
9492       case $host_os in
9493         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9494           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9495           hardcode_libdir_flag_spec='-R$libdir'
9496           ;;
9497         *)
9498           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9499           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9500           ;;
9501       esac
9502      fi
9503      ;;
9504
9505    os2*)
9506      hardcode_libdir_flag_spec='-L$libdir'
9507      hardcode_minus_L=yes
9508      allow_undefined_flag=unsupported
9509      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'
9510      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9511      ;;
9512
9513    osf3*)
9514      if test "$GCC" = yes; then
9515        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9516        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'
9517      else
9518        allow_undefined_flag=' -expect_unresolved \*'
9519        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'
9520      fi
9521      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9522      hardcode_libdir_separator=:
9523      ;;
9524
9525    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9526      if test "$GCC" = yes; then
9527        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9528        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'
9529        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530      else
9531        allow_undefined_flag=' -expect_unresolved \*'
9532        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'
9533        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9534        $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'
9535
9536        # Both c and cxx compiler support -rpath directly
9537        hardcode_libdir_flag_spec='-rpath $libdir'
9538      fi
9539      hardcode_libdir_separator=:
9540      ;;
9541
9542    solaris*)
9543      no_undefined_flag=' -z text'
9544      if test "$GCC" = yes; then
9545        wlarc='${wl}'
9546        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9547        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9548          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9549      else
9550        wlarc=''
9551        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9552        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9553        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9554      fi
9555      hardcode_libdir_flag_spec='-R$libdir'
9556      hardcode_shlibpath_var=no
9557      case $host_os in
9558      solaris2.[0-5] | solaris2.[0-5].*) ;;
9559      *)
9560        # The compiler driver will combine linker options so we
9561        # cannot just pass the convience library names through
9562        # without $wl, iff we do not link with $LD.
9563        # Luckily, gcc supports the same syntax we need for Sun Studio.
9564        # Supported since Solaris 2.6 (maybe 2.5.1?)
9565        case $wlarc in
9566        '')
9567          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9568        *)
9569          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' ;;
9570        esac ;;
9571      esac
9572      link_all_deplibs=yes
9573      ;;
9574
9575    sunos4*)
9576      if test "x$host_vendor" = xsequent; then
9577        # Use $CC to link under sequent, because it throws in some extra .o
9578        # files that make .init and .fini sections work.
9579        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9580      else
9581        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9582      fi
9583      hardcode_libdir_flag_spec='-L$libdir'
9584      hardcode_direct=yes
9585      hardcode_minus_L=yes
9586      hardcode_shlibpath_var=no
9587      ;;
9588
9589    sysv4)
9590      case $host_vendor in
9591        sni)
9592          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9593          hardcode_direct=yes # is this really true???
9594        ;;
9595        siemens)
9596          ## LD is ld it makes a PLAMLIB
9597          ## CC just makes a GrossModule.
9598          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9599          reload_cmds='$CC -r -o $output$reload_objs'
9600          hardcode_direct=no
9601        ;;
9602        motorola)
9603          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9604          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9605        ;;
9606      esac
9607      runpath_var='LD_RUN_PATH'
9608      hardcode_shlibpath_var=no
9609      ;;
9610
9611    sysv4.3*)
9612      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9613      hardcode_shlibpath_var=no
9614      export_dynamic_flag_spec='-Bexport'
9615      ;;
9616
9617    sysv4*MP*)
9618      if test -d /usr/nec; then
9619        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9620        hardcode_shlibpath_var=no
9621        runpath_var=LD_RUN_PATH
9622        hardcode_runpath_var=yes
9623        ld_shlibs=yes
9624      fi
9625      ;;
9626
9627    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9628      no_undefined_flag='${wl}-z,text'
9629      archive_cmds_need_lc=no
9630      hardcode_shlibpath_var=no
9631      runpath_var='LD_RUN_PATH'
9632
9633      if test "$GCC" = yes; then
9634        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9635        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9636      else
9637        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9638        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9639      fi
9640      ;;
9641
9642    sysv5* | sco3.2v5* | sco5v6*)
9643      # Note: We can NOT use -z defs as we might desire, because we do not
9644      # link with -lc, and that would cause any symbols used from libc to
9645      # always be unresolved, which means just about no library would
9646      # ever link correctly.  If we're not using GNU ld we use -z text
9647      # though, which does catch some bad symbols but isn't as heavy-handed
9648      # as -z defs.
9649      no_undefined_flag='${wl}-z,text'
9650      allow_undefined_flag='${wl}-z,nodefs'
9651      archive_cmds_need_lc=no
9652      hardcode_shlibpath_var=no
9653      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9654      hardcode_libdir_separator=':'
9655      link_all_deplibs=yes
9656      export_dynamic_flag_spec='${wl}-Bexport'
9657      runpath_var='LD_RUN_PATH'
9658
9659      if test "$GCC" = yes; then
9660        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9661        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9662      else
9663        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9664        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9665      fi
9666      ;;
9667
9668    uts4*)
9669      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670      hardcode_libdir_flag_spec='-L$libdir'
9671      hardcode_shlibpath_var=no
9672      ;;
9673
9674    *)
9675      ld_shlibs=no
9676      ;;
9677    esac
9678  fi
9679
9680echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9681echo "${ECHO_T}$ld_shlibs" >&6
9682test "$ld_shlibs" = no && can_build_shared=no
9683
9684#
9685# Do we need to explicitly link libc?
9686#
9687case "x$archive_cmds_need_lc" in
9688x|xyes)
9689  # Assume -lc should be added
9690  archive_cmds_need_lc=yes
9691
9692  if test "$enable_shared" = yes && test "$GCC" = yes; then
9693    case $archive_cmds in
9694    *'~'*)
9695      # FIXME: we may have to deal with multi-command sequences.
9696      ;;
9697    '$CC '*)
9698      # Test whether the compiler implicitly links with -lc since on some
9699      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9700      # to ld, don't add -lc before -lgcc.
9701      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9702echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9703      $rm conftest*
9704      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9705
9706      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9707  (eval $ac_compile) 2>&5
9708  ac_status=$?
9709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710  (exit $ac_status); } 2>conftest.err; then
9711        soname=conftest
9712        lib=conftest
9713        libobjs=conftest.$ac_objext
9714        deplibs=
9715        wl=$lt_prog_compiler_wl
9716        pic_flag=$lt_prog_compiler_pic
9717        compiler_flags=-v
9718        linker_flags=-v
9719        verstring=
9720        output_objdir=.
9721        libname=conftest
9722        lt_save_allow_undefined_flag=$allow_undefined_flag
9723        allow_undefined_flag=
9724        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9725  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9726  ac_status=$?
9727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728  (exit $ac_status); }
9729        then
9730          archive_cmds_need_lc=no
9731        else
9732          archive_cmds_need_lc=yes
9733        fi
9734        allow_undefined_flag=$lt_save_allow_undefined_flag
9735      else
9736        cat conftest.err 1>&5
9737      fi
9738      $rm conftest*
9739      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9740echo "${ECHO_T}$archive_cmds_need_lc" >&6
9741      ;;
9742    esac
9743  fi
9744  ;;
9745esac
9746
9747echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9748echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9749library_names_spec=
9750libname_spec='lib$name'
9751soname_spec=
9752shrext_cmds=".so"
9753postinstall_cmds=
9754postuninstall_cmds=
9755finish_cmds=
9756finish_eval=
9757shlibpath_var=
9758shlibpath_overrides_runpath=unknown
9759version_type=none
9760dynamic_linker="$host_os ld.so"
9761sys_lib_dlsearch_path_spec="/lib /usr/lib"
9762if test "$GCC" = yes; then
9763  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9764  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9765    # if the path contains ";" then we assume it to be the separator
9766    # otherwise default to the standard path separator (i.e. ":") - it is
9767    # assumed that no part of a normal pathname contains ";" but that should
9768    # okay in the real world where ";" in dirpaths is itself problematic.
9769    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9770  else
9771    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9772  fi
9773else
9774  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9775fi
9776need_lib_prefix=unknown
9777hardcode_into_libs=no
9778
9779# when you set need_version to no, make sure it does not cause -set_version
9780# flags to be left without arguments
9781need_version=unknown
9782
9783case $host_os in
9784aix3*)
9785  version_type=linux
9786  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9787  shlibpath_var=LIBPATH
9788
9789  # AIX 3 has no versioning support, so we append a major version to the name.
9790  soname_spec='${libname}${release}${shared_ext}$major'
9791  ;;
9792
9793aix4* | aix5*)
9794  version_type=linux
9795  need_lib_prefix=no
9796  need_version=no
9797  hardcode_into_libs=yes
9798  if test "$host_cpu" = ia64; then
9799    # AIX 5 supports IA64
9800    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9801    shlibpath_var=LD_LIBRARY_PATH
9802  else
9803    # With GCC up to 2.95.x, collect2 would create an import file
9804    # for dependence libraries.  The import file would start with
9805    # the line `#! .'.  This would cause the generated library to
9806    # depend on `.', always an invalid library.  This was fixed in
9807    # development snapshots of GCC prior to 3.0.
9808    case $host_os in
9809      aix4 | aix4.[01] | aix4.[01].*)
9810      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9811           echo ' yes '
9812           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9813        :
9814      else
9815        can_build_shared=no
9816      fi
9817      ;;
9818    esac
9819    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9820    # soname into executable. Probably we can add versioning support to
9821    # collect2, so additional links can be useful in future.
9822    if test "$aix_use_runtimelinking" = yes; then
9823      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9824      # instead of lib<name>.a to let people know that these are not
9825      # typical AIX shared libraries.
9826      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9827    else
9828      # We preserve .a as extension for shared libraries through AIX4.2
9829      # and later when we are not doing run time linking.
9830      library_names_spec='${libname}${release}.a $libname.a'
9831      soname_spec='${libname}${release}${shared_ext}$major'
9832    fi
9833    shlibpath_var=LIBPATH
9834  fi
9835  ;;
9836
9837amigaos*)
9838  library_names_spec='$libname.ixlibrary $libname.a'
9839  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9840  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'
9841  ;;
9842
9843beos*)
9844  library_names_spec='${libname}${shared_ext}'
9845  dynamic_linker="$host_os ld.so"
9846  shlibpath_var=LIBRARY_PATH
9847  ;;
9848
9849bsdi[45]*)
9850  version_type=linux
9851  need_version=no
9852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853  soname_spec='${libname}${release}${shared_ext}$major'
9854  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9855  shlibpath_var=LD_LIBRARY_PATH
9856  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9857  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9858  # the default ld.so.conf also contains /usr/contrib/lib and
9859  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9860  # libtool to hard-code these into programs
9861  ;;
9862
9863cygwin* | mingw* | pw32*)
9864  version_type=windows
9865  shrext_cmds=".dll"
9866  need_version=no
9867  need_lib_prefix=no
9868
9869  case $GCC,$host_os in
9870  yes,cygwin* | yes,mingw* | yes,pw32*)
9871    library_names_spec='$libname.dll.a'
9872    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9873    postinstall_cmds='base_file=`basename \${file}`~
9874      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9875      dldir=$destdir/`dirname \$dlpath`~
9876      test -d \$dldir || mkdir -p \$dldir~
9877      $install_prog $dir/$dlname \$dldir/$dlname~
9878      chmod a+x \$dldir/$dlname'
9879    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9880      dlpath=$dir/\$dldll~
9881       $rm \$dlpath'
9882    shlibpath_overrides_runpath=yes
9883
9884    case $host_os in
9885    cygwin*)
9886      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9887      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9888      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9889      ;;
9890    mingw*)
9891      # MinGW DLLs use traditional 'lib' prefix
9892      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9893      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9894      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9895        # It is most probably a Windows format PATH printed by
9896        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9897        # path with ; separators, and with drive letters. We can handle the
9898        # drive letters (cygwin fileutils understands them), so leave them,
9899        # especially as we might pass files found there to a mingw objdump,
9900        # which wouldn't understand a cygwinified path. Ahh.
9901        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9902      else
9903        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9904      fi
9905      ;;
9906    pw32*)
9907      # pw32 DLLs use 'pw' prefix rather than 'lib'
9908      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9909      ;;
9910    esac
9911    ;;
9912
9913  *)
9914    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9915    ;;
9916  esac
9917  dynamic_linker='Win32 ld.exe'
9918  # FIXME: first we should search . and the directory the executable is in
9919  shlibpath_var=PATH
9920  ;;
9921
9922darwin* | rhapsody*)
9923  dynamic_linker="$host_os dyld"
9924  version_type=darwin
9925  need_lib_prefix=no
9926  need_version=no
9927  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9928  soname_spec='${libname}${release}${major}$shared_ext'
9929  shlibpath_overrides_runpath=yes
9930  shlibpath_var=DYLD_LIBRARY_PATH
9931  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9932  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9933  if test "$GCC" = yes; then
9934    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"`
9935  else
9936    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9937  fi
9938  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9939  ;;
9940
9941dgux*)
9942  version_type=linux
9943  need_lib_prefix=no
9944  need_version=no
9945  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9946  soname_spec='${libname}${release}${shared_ext}$major'
9947  shlibpath_var=LD_LIBRARY_PATH
9948  ;;
9949
9950freebsd1*)
9951  dynamic_linker=no
9952  ;;
9953
9954kfreebsd*-gnu)
9955  version_type=linux
9956  need_lib_prefix=no
9957  need_version=no
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9959  soname_spec='${libname}${release}${shared_ext}$major'
9960  shlibpath_var=LD_LIBRARY_PATH
9961  shlibpath_overrides_runpath=no
9962  hardcode_into_libs=yes
9963  dynamic_linker='GNU ld.so'
9964  ;;
9965
9966freebsd* | dragonfly*)
9967  # DragonFly does not have aout.  When/if they implement a new
9968  # versioning mechanism, adjust this.
9969  if test -x /usr/bin/objformat; then
9970    objformat=`/usr/bin/objformat`
9971  else
9972    case $host_os in
9973    freebsd[123]*) objformat=aout ;;
9974    *) objformat=elf ;;
9975    esac
9976  fi
9977  version_type=freebsd-$objformat
9978  case $version_type in
9979    freebsd-elf*)
9980      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9981      need_version=no
9982      need_lib_prefix=no
9983      ;;
9984    freebsd-*)
9985      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9986      need_version=yes
9987      ;;
9988  esac
9989  shlibpath_var=LD_LIBRARY_PATH
9990  case $host_os in
9991  freebsd2*)
9992    shlibpath_overrides_runpath=yes
9993    ;;
9994  freebsd3.[01]* | freebsdelf3.[01]*)
9995    shlibpath_overrides_runpath=yes
9996    hardcode_into_libs=yes
9997    ;;
9998  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9999  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10000    shlibpath_overrides_runpath=no
10001    hardcode_into_libs=yes
10002    ;;
10003  freebsd*) # from 4.6 on
10004    shlibpath_overrides_runpath=yes
10005    hardcode_into_libs=yes
10006    ;;
10007  esac
10008  ;;
10009
10010gnu*)
10011  version_type=linux
10012  need_lib_prefix=no
10013  need_version=no
10014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10015  soname_spec='${libname}${release}${shared_ext}$major'
10016  shlibpath_var=LD_LIBRARY_PATH
10017  hardcode_into_libs=yes
10018  ;;
10019
10020hpux9* | hpux10* | hpux11*)
10021  # Give a soname corresponding to the major version so that dld.sl refuses to
10022  # link against other versions.
10023  version_type=sunos
10024  need_lib_prefix=no
10025  need_version=no
10026  case $host_cpu in
10027  ia64*)
10028    shrext_cmds='.so'
10029    hardcode_into_libs=yes
10030    dynamic_linker="$host_os dld.so"
10031    shlibpath_var=LD_LIBRARY_PATH
10032    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10033    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10034    soname_spec='${libname}${release}${shared_ext}$major'
10035    if test "X$HPUX_IA64_MODE" = X32; then
10036      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10037    else
10038      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10039    fi
10040    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10041    ;;
10042   hppa*64*)
10043     shrext_cmds='.sl'
10044     hardcode_into_libs=yes
10045     dynamic_linker="$host_os dld.sl"
10046     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10047     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10048     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049     soname_spec='${libname}${release}${shared_ext}$major'
10050     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10051     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10052     ;;
10053   *)
10054    shrext_cmds='.sl'
10055    dynamic_linker="$host_os dld.sl"
10056    shlibpath_var=SHLIB_PATH
10057    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10058    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059    soname_spec='${libname}${release}${shared_ext}$major'
10060    ;;
10061  esac
10062  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10063  postinstall_cmds='chmod 555 $lib'
10064  ;;
10065
10066interix3*)
10067  version_type=linux
10068  need_lib_prefix=no
10069  need_version=no
10070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10071  soname_spec='${libname}${release}${shared_ext}$major'
10072  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10073  shlibpath_var=LD_LIBRARY_PATH
10074  shlibpath_overrides_runpath=no
10075  hardcode_into_libs=yes
10076  ;;
10077
10078irix5* | irix6* | nonstopux*)
10079  case $host_os in
10080    nonstopux*) version_type=nonstopux ;;
10081    *)
10082        if test "$lt_cv_prog_gnu_ld" = yes; then
10083                version_type=linux
10084        else
10085                version_type=irix
10086        fi ;;
10087  esac
10088  need_lib_prefix=no
10089  need_version=no
10090  soname_spec='${libname}${release}${shared_ext}$major'
10091  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10092  case $host_os in
10093  irix5* | nonstopux*)
10094    libsuff= shlibsuff=
10095    ;;
10096  *)
10097    case $LD in # libtool.m4 will add one of these switches to LD
10098    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10099      libsuff= shlibsuff= libmagic=32-bit;;
10100    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10101      libsuff=32 shlibsuff=N32 libmagic=N32;;
10102    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10103      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10104    *) libsuff= shlibsuff= libmagic=never-match;;
10105    esac
10106    ;;
10107  esac
10108  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10109  shlibpath_overrides_runpath=no
10110  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10111  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10112  hardcode_into_libs=yes
10113  ;;
10114
10115# No shared lib support for Linux oldld, aout, or coff.
10116linux*oldld* | linux*aout* | linux*coff*)
10117  dynamic_linker=no
10118  ;;
10119
10120# This must be Linux ELF.
10121linux*)
10122  version_type=linux
10123  need_lib_prefix=no
10124  need_version=no
10125  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126  soname_spec='${libname}${release}${shared_ext}$major'
10127  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10128  shlibpath_var=LD_LIBRARY_PATH
10129  shlibpath_overrides_runpath=no
10130  # This implies no fast_install, which is unacceptable.
10131  # Some rework will be needed to allow for fast_install
10132  # before this can be enabled.
10133  hardcode_into_libs=yes
10134
10135  # Append ld.so.conf contents to the search path
10136  if test -f /etc/ld.so.conf; then
10137    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' ' '`
10138    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10139  fi
10140
10141  # We used to test for /lib/ld.so.1 and disable shared libraries on
10142  # powerpc, because MkLinux only supported shared libraries with the
10143  # GNU dynamic linker.  Since this was broken with cross compilers,
10144  # most powerpc-linux boxes support dynamic linking these days and
10145  # people can always --disable-shared, the test was removed, and we
10146  # assume the GNU/Linux dynamic linker is in use.
10147  dynamic_linker='GNU/Linux ld.so'
10148  ;;
10149
10150knetbsd*-gnu)
10151  version_type=linux
10152  need_lib_prefix=no
10153  need_version=no
10154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10155  soname_spec='${libname}${release}${shared_ext}$major'
10156  shlibpath_var=LD_LIBRARY_PATH
10157  shlibpath_overrides_runpath=no
10158  hardcode_into_libs=yes
10159  dynamic_linker='GNU ld.so'
10160  ;;
10161
10162netbsd*)
10163  version_type=sunos
10164  need_lib_prefix=no
10165  need_version=no
10166  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10167    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10168    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10169    dynamic_linker='NetBSD (a.out) ld.so'
10170  else
10171    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10172    soname_spec='${libname}${release}${shared_ext}$major'
10173    dynamic_linker='NetBSD ld.elf_so'
10174  fi
10175  shlibpath_var=LD_LIBRARY_PATH
10176  shlibpath_overrides_runpath=yes
10177  hardcode_into_libs=yes
10178  ;;
10179
10180newsos6)
10181  version_type=linux
10182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10183  shlibpath_var=LD_LIBRARY_PATH
10184  shlibpath_overrides_runpath=yes
10185  ;;
10186
10187nto-qnx*)
10188  version_type=linux
10189  need_lib_prefix=no
10190  need_version=no
10191  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192  soname_spec='${libname}${release}${shared_ext}$major'
10193  shlibpath_var=LD_LIBRARY_PATH
10194  shlibpath_overrides_runpath=yes
10195  ;;
10196
10197openbsd*)
10198  version_type=sunos
10199  sys_lib_dlsearch_path_spec="/usr/lib"
10200  need_lib_prefix=no
10201  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10202  case $host_os in
10203    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10204    *)                         need_version=no  ;;
10205  esac
10206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10207  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10208  shlibpath_var=LD_LIBRARY_PATH
10209  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10210    case $host_os in
10211      openbsd2.[89] | openbsd2.[89].*)
10212        shlibpath_overrides_runpath=no
10213        ;;
10214      *)
10215        shlibpath_overrides_runpath=yes
10216        ;;
10217      esac
10218  else
10219    shlibpath_overrides_runpath=yes
10220  fi
10221  ;;
10222
10223os2*)
10224  libname_spec='$name'
10225  shrext_cmds=".dll"
10226  need_lib_prefix=no
10227  library_names_spec='$libname${shared_ext} $libname.a'
10228  dynamic_linker='OS/2 ld.exe'
10229  shlibpath_var=LIBPATH
10230  ;;
10231
10232osf3* | osf4* | osf5*)
10233  version_type=osf
10234  need_lib_prefix=no
10235  need_version=no
10236  soname_spec='${libname}${release}${shared_ext}$major'
10237  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238  shlibpath_var=LD_LIBRARY_PATH
10239  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10240  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10241  ;;
10242
10243solaris*)
10244  version_type=linux
10245  need_lib_prefix=no
10246  need_version=no
10247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248  soname_spec='${libname}${release}${shared_ext}$major'
10249  shlibpath_var=LD_LIBRARY_PATH
10250  shlibpath_overrides_runpath=yes
10251  hardcode_into_libs=yes
10252  # ldd complains unless libraries are executable
10253  postinstall_cmds='chmod +x $lib'
10254  ;;
10255
10256sunos4*)
10257  version_type=sunos
10258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10259  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10260  shlibpath_var=LD_LIBRARY_PATH
10261  shlibpath_overrides_runpath=yes
10262  if test "$with_gnu_ld" = yes; then
10263    need_lib_prefix=no
10264  fi
10265  need_version=yes
10266  ;;
10267
10268sysv4 | sysv4.3*)
10269  version_type=linux
10270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10271  soname_spec='${libname}${release}${shared_ext}$major'
10272  shlibpath_var=LD_LIBRARY_PATH
10273  case $host_vendor in
10274    sni)
10275      shlibpath_overrides_runpath=no
10276      need_lib_prefix=no
10277      export_dynamic_flag_spec='${wl}-Blargedynsym'
10278      runpath_var=LD_RUN_PATH
10279      ;;
10280    siemens)
10281      need_lib_prefix=no
10282      ;;
10283    motorola)
10284      need_lib_prefix=no
10285      need_version=no
10286      shlibpath_overrides_runpath=no
10287      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10288      ;;
10289  esac
10290  ;;
10291
10292sysv4*MP*)
10293  if test -d /usr/nec ;then
10294    version_type=linux
10295    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10296    soname_spec='$libname${shared_ext}.$major'
10297    shlibpath_var=LD_LIBRARY_PATH
10298  fi
10299  ;;
10300
10301sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10302  version_type=freebsd-elf
10303  need_lib_prefix=no
10304  need_version=no
10305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10306  soname_spec='${libname}${release}${shared_ext}$major'
10307  shlibpath_var=LD_LIBRARY_PATH
10308  hardcode_into_libs=yes
10309  if test "$with_gnu_ld" = yes; then
10310    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10311    shlibpath_overrides_runpath=no
10312  else
10313    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10314    shlibpath_overrides_runpath=yes
10315    case $host_os in
10316      sco3.2v5*)
10317        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10318        ;;
10319    esac
10320  fi
10321  sys_lib_dlsearch_path_spec='/usr/lib'
10322  ;;
10323
10324uts4*)
10325  version_type=linux
10326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327  soname_spec='${libname}${release}${shared_ext}$major'
10328  shlibpath_var=LD_LIBRARY_PATH
10329  ;;
10330
10331*)
10332  dynamic_linker=no
10333  ;;
10334esac
10335echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10336echo "${ECHO_T}$dynamic_linker" >&6
10337test "$dynamic_linker" = no && can_build_shared=no
10338
10339variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10340if test "$GCC" = yes; then
10341  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10342fi
10343
10344echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10345echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10346hardcode_action=
10347if test -n "$hardcode_libdir_flag_spec" || \
10348   test -n "$runpath_var" || \
10349   test "X$hardcode_automatic" = "Xyes" ; then
10350
10351  # We can hardcode non-existant directories.
10352  if test "$hardcode_direct" != no &&
10353     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10354     # have to relink, otherwise we might link with an installed library
10355     # when we should be linking with a yet-to-be-installed one
10356     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10357     test "$hardcode_minus_L" != no; then
10358    # Linking always hardcodes the temporary library directory.
10359    hardcode_action=relink
10360  else
10361    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10362    hardcode_action=immediate
10363  fi
10364else
10365  # We cannot hardcode anything, or else we can only hardcode existing
10366  # directories.
10367  hardcode_action=unsupported
10368fi
10369echo "$as_me:$LINENO: result: $hardcode_action" >&5
10370echo "${ECHO_T}$hardcode_action" >&6
10371
10372if test "$hardcode_action" = relink; then
10373  # Fast installation is not supported
10374  enable_fast_install=no
10375elif test "$shlibpath_overrides_runpath" = yes ||
10376     test "$enable_shared" = no; then
10377  # Fast installation is not necessary
10378  enable_fast_install=needless
10379fi
10380
10381striplib=
10382old_striplib=
10383echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10384echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10385if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10386  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10387  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10388  echo "$as_me:$LINENO: result: yes" >&5
10389echo "${ECHO_T}yes" >&6
10390else
10391# FIXME - insert some real tests, host_os isn't really good enough
10392  case $host_os in
10393   darwin*)
10394       if test -n "$STRIP" ; then
10395         striplib="$STRIP -x"
10396         echo "$as_me:$LINENO: result: yes" >&5
10397echo "${ECHO_T}yes" >&6
10398       else
10399  echo "$as_me:$LINENO: result: no" >&5
10400echo "${ECHO_T}no" >&6
10401fi
10402       ;;
10403   *)
10404  echo "$as_me:$LINENO: result: no" >&5
10405echo "${ECHO_T}no" >&6
10406    ;;
10407  esac
10408fi
10409
10410if test "x$enable_dlopen" != xyes; then
10411  enable_dlopen=unknown
10412  enable_dlopen_self=unknown
10413  enable_dlopen_self_static=unknown
10414else
10415  lt_cv_dlopen=no
10416  lt_cv_dlopen_libs=
10417
10418  case $host_os in
10419  beos*)
10420    lt_cv_dlopen="load_add_on"
10421    lt_cv_dlopen_libs=
10422    lt_cv_dlopen_self=yes
10423    ;;
10424
10425  mingw* | pw32*)
10426    lt_cv_dlopen="LoadLibrary"
10427    lt_cv_dlopen_libs=
10428   ;;
10429
10430  cygwin*)
10431    lt_cv_dlopen="dlopen"
10432    lt_cv_dlopen_libs=
10433   ;;
10434
10435  darwin*)
10436  # if libdl is installed we need to link against it
10437    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10438echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10439if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10440  echo $ECHO_N "(cached) $ECHO_C" >&6
10441else
10442  ac_check_lib_save_LIBS=$LIBS
10443LIBS="-ldl  $LIBS"
10444cat >conftest.$ac_ext <<_ACEOF
10445/* confdefs.h.  */
10446_ACEOF
10447cat confdefs.h >>conftest.$ac_ext
10448cat >>conftest.$ac_ext <<_ACEOF
10449/* end confdefs.h.  */
10450
10451/* Override any gcc2 internal prototype to avoid an error.  */
10452#ifdef __cplusplus
10453extern "C"
10454#endif
10455/* We use char because int might match the return type of a gcc2
10456   builtin and then its argument prototype would still apply.  */
10457char dlopen ();
10458int
10459main ()
10460{
10461dlopen ();
10462  ;
10463  return 0;
10464}
10465_ACEOF
10466rm -f conftest.$ac_objext conftest$ac_exeext
10467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468  (eval $ac_link) 2>conftest.er1
10469  ac_status=$?
10470  grep -v '^ *+' conftest.er1 >conftest.err
10471  rm -f conftest.er1
10472  cat conftest.err >&5
10473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); } &&
10475         { ac_try='test -z "$ac_c_werror_flag"
10476                         || test ! -s conftest.err'
10477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478  (eval $ac_try) 2>&5
10479  ac_status=$?
10480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481  (exit $ac_status); }; } &&
10482         { ac_try='test -s conftest$ac_exeext'
10483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484  (eval $ac_try) 2>&5
10485  ac_status=$?
10486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487  (exit $ac_status); }; }; then
10488  ac_cv_lib_dl_dlopen=yes
10489else
10490  echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493ac_cv_lib_dl_dlopen=no
10494fi
10495rm -f conftest.err conftest.$ac_objext \
10496      conftest$ac_exeext conftest.$ac_ext
10497LIBS=$ac_check_lib_save_LIBS
10498fi
10499echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10500echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10501if test $ac_cv_lib_dl_dlopen = yes; then
10502  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10503else
10504
10505    lt_cv_dlopen="dyld"
10506    lt_cv_dlopen_libs=
10507    lt_cv_dlopen_self=yes
10508
10509fi
10510
10511   ;;
10512
10513  *)
10514    echo "$as_me:$LINENO: checking for shl_load" >&5
10515echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10516if test "${ac_cv_func_shl_load+set}" = set; then
10517  echo $ECHO_N "(cached) $ECHO_C" >&6
10518else
10519  cat >conftest.$ac_ext <<_ACEOF
10520/* confdefs.h.  */
10521_ACEOF
10522cat confdefs.h >>conftest.$ac_ext
10523cat >>conftest.$ac_ext <<_ACEOF
10524/* end confdefs.h.  */
10525/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10526   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10527#define shl_load innocuous_shl_load
10528
10529/* System header to define __stub macros and hopefully few prototypes,
10530    which can conflict with char shl_load (); below.
10531    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10532    <limits.h> exists even on freestanding compilers.  */
10533
10534#ifdef __STDC__
10535# include <limits.h>
10536#else
10537# include <assert.h>
10538#endif
10539
10540#undef shl_load
10541
10542/* Override any gcc2 internal prototype to avoid an error.  */
10543#ifdef __cplusplus
10544extern "C"
10545{
10546#endif
10547/* We use char because int might match the return type of a gcc2
10548   builtin and then its argument prototype would still apply.  */
10549char shl_load ();
10550/* The GNU C library defines this for functions which it implements
10551    to always fail with ENOSYS.  Some functions are actually named
10552    something starting with __ and the normal name is an alias.  */
10553#if defined (__stub_shl_load) || defined (__stub___shl_load)
10554choke me
10555#else
10556char (*f) () = shl_load;
10557#endif
10558#ifdef __cplusplus
10559}
10560#endif
10561
10562int
10563main ()
10564{
10565return f != shl_load;
10566  ;
10567  return 0;
10568}
10569_ACEOF
10570rm -f conftest.$ac_objext conftest$ac_exeext
10571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10572  (eval $ac_link) 2>conftest.er1
10573  ac_status=$?
10574  grep -v '^ *+' conftest.er1 >conftest.err
10575  rm -f conftest.er1
10576  cat conftest.err >&5
10577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578  (exit $ac_status); } &&
10579         { ac_try='test -z "$ac_c_werror_flag"
10580                         || test ! -s conftest.err'
10581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10582  (eval $ac_try) 2>&5
10583  ac_status=$?
10584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585  (exit $ac_status); }; } &&
10586         { ac_try='test -s conftest$ac_exeext'
10587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588  (eval $ac_try) 2>&5
10589  ac_status=$?
10590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591  (exit $ac_status); }; }; then
10592  ac_cv_func_shl_load=yes
10593else
10594  echo "$as_me: failed program was:" >&5
10595sed 's/^/| /' conftest.$ac_ext >&5
10596
10597ac_cv_func_shl_load=no
10598fi
10599rm -f conftest.err conftest.$ac_objext \
10600      conftest$ac_exeext conftest.$ac_ext
10601fi
10602echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10603echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10604if test $ac_cv_func_shl_load = yes; then
10605  lt_cv_dlopen="shl_load"
10606else
10607  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10608echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10609if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10610  echo $ECHO_N "(cached) $ECHO_C" >&6
10611else
10612  ac_check_lib_save_LIBS=$LIBS
10613LIBS="-ldld  $LIBS"
10614cat >conftest.$ac_ext <<_ACEOF
10615/* confdefs.h.  */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h.  */
10620
10621/* Override any gcc2 internal prototype to avoid an error.  */
10622#ifdef __cplusplus
10623extern "C"
10624#endif
10625/* We use char because int might match the return type of a gcc2
10626   builtin and then its argument prototype would still apply.  */
10627char shl_load ();
10628int
10629main ()
10630{
10631shl_load ();
10632  ;
10633  return 0;
10634}
10635_ACEOF
10636rm -f conftest.$ac_objext conftest$ac_exeext
10637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10638  (eval $ac_link) 2>conftest.er1
10639  ac_status=$?
10640  grep -v '^ *+' conftest.er1 >conftest.err
10641  rm -f conftest.er1
10642  cat conftest.err >&5
10643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644  (exit $ac_status); } &&
10645         { ac_try='test -z "$ac_c_werror_flag"
10646                         || test ! -s conftest.err'
10647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648  (eval $ac_try) 2>&5
10649  ac_status=$?
10650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651  (exit $ac_status); }; } &&
10652         { ac_try='test -s conftest$ac_exeext'
10653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654  (eval $ac_try) 2>&5
10655  ac_status=$?
10656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657  (exit $ac_status); }; }; then
10658  ac_cv_lib_dld_shl_load=yes
10659else
10660  echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663ac_cv_lib_dld_shl_load=no
10664fi
10665rm -f conftest.err conftest.$ac_objext \
10666      conftest$ac_exeext conftest.$ac_ext
10667LIBS=$ac_check_lib_save_LIBS
10668fi
10669echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10670echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10671if test $ac_cv_lib_dld_shl_load = yes; then
10672  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10673else
10674  echo "$as_me:$LINENO: checking for dlopen" >&5
10675echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10676if test "${ac_cv_func_dlopen+set}" = set; then
10677  echo $ECHO_N "(cached) $ECHO_C" >&6
10678else
10679  cat >conftest.$ac_ext <<_ACEOF
10680/* confdefs.h.  */
10681_ACEOF
10682cat confdefs.h >>conftest.$ac_ext
10683cat >>conftest.$ac_ext <<_ACEOF
10684/* end confdefs.h.  */
10685/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10686   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10687#define dlopen innocuous_dlopen
10688
10689/* System header to define __stub macros and hopefully few prototypes,
10690    which can conflict with char dlopen (); below.
10691    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10692    <limits.h> exists even on freestanding compilers.  */
10693
10694#ifdef __STDC__
10695# include <limits.h>
10696#else
10697# include <assert.h>
10698#endif
10699
10700#undef dlopen
10701
10702/* Override any gcc2 internal prototype to avoid an error.  */
10703#ifdef __cplusplus
10704extern "C"
10705{
10706#endif
10707/* We use char because int might match the return type of a gcc2
10708   builtin and then its argument prototype would still apply.  */
10709char dlopen ();
10710/* The GNU C library defines this for functions which it implements
10711    to always fail with ENOSYS.  Some functions are actually named
10712    something starting with __ and the normal name is an alias.  */
10713#if defined (__stub_dlopen) || defined (__stub___dlopen)
10714choke me
10715#else
10716char (*f) () = dlopen;
10717#endif
10718#ifdef __cplusplus
10719}
10720#endif
10721
10722int
10723main ()
10724{
10725return f != dlopen;
10726  ;
10727  return 0;
10728}
10729_ACEOF
10730rm -f conftest.$ac_objext conftest$ac_exeext
10731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10732  (eval $ac_link) 2>conftest.er1
10733  ac_status=$?
10734  grep -v '^ *+' conftest.er1 >conftest.err
10735  rm -f conftest.er1
10736  cat conftest.err >&5
10737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738  (exit $ac_status); } &&
10739         { ac_try='test -z "$ac_c_werror_flag"
10740                         || test ! -s conftest.err'
10741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742  (eval $ac_try) 2>&5
10743  ac_status=$?
10744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745  (exit $ac_status); }; } &&
10746         { ac_try='test -s conftest$ac_exeext'
10747  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748  (eval $ac_try) 2>&5
10749  ac_status=$?
10750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751  (exit $ac_status); }; }; then
10752  ac_cv_func_dlopen=yes
10753else
10754  echo "$as_me: failed program was:" >&5
10755sed 's/^/| /' conftest.$ac_ext >&5
10756
10757ac_cv_func_dlopen=no
10758fi
10759rm -f conftest.err conftest.$ac_objext \
10760      conftest$ac_exeext conftest.$ac_ext
10761fi
10762echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10763echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10764if test $ac_cv_func_dlopen = yes; then
10765  lt_cv_dlopen="dlopen"
10766else
10767  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10768echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10769if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10770  echo $ECHO_N "(cached) $ECHO_C" >&6
10771else
10772  ac_check_lib_save_LIBS=$LIBS