source: stable/1.4/configure @ 2257

Last change on this file since 2257 was 1047, checked in by forrest, 12 years ago

restoring stable/1.4

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