source: trunk/configure @ 994

Last change on this file since 994 was 994, checked in by andreasw, 13 years ago

reran autotools; added support for WSMP (--with-wsmp as configure option)

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