source: stable/1.9/configure @ 1338

Last change on this file since 1338 was 1338, checked in by ladanyi, 11 years ago

restoring stable/1.9

  • Property svn:executable set to *
File size: 723.8 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Clp 1.9stable.
5#
6# Report bugs to <coin-clp@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Clp'
432PACKAGE_TARNAME='clp'
433PACKAGE_VERSION='1.9stable'
434PACKAGE_STRING='Clp 1.9stable'
435PACKAGE_BUGREPORT='coin-clp@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all CoinUtils"
477ac_subdirs_all="$ac_subdirs_all Data/Netlib"
478ac_subdirs_all="$ac_subdirs_all Data/Sample"
479ac_subdirs_all="$ac_subdirs_all Clp"
480ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS subdirs LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
481ac_subst_files=''
482
483# Initialize some variables set by options.
484ac_init_help=
485ac_init_version=false
486# The variables have the same names as the options, with
487# dashes changed to underlines.
488cache_file=/dev/null
489exec_prefix=NONE
490no_create=
491no_recursion=
492prefix=NONE
493program_prefix=NONE
494program_suffix=NONE
495program_transform_name=s,x,x,
496silent=
497site=
498srcdir=
499verbose=
500x_includes=NONE
501x_libraries=NONE
502
503# Installation directory options.
504# These are left unexpanded so users can "make install exec_prefix=/foo"
505# and all the variables that are supposed to be based on exec_prefix
506# by default will actually change.
507# Use braces instead of parens because sh, perl, etc. also accept them.
508bindir='${exec_prefix}/bin'
509sbindir='${exec_prefix}/sbin'
510libexecdir='${exec_prefix}/libexec'
511datadir='${prefix}/share'
512sysconfdir='${prefix}/etc'
513sharedstatedir='${prefix}/com'
514localstatedir='${prefix}/var'
515libdir='${exec_prefix}/lib'
516includedir='${prefix}/include'
517oldincludedir='/usr/include'
518infodir='${prefix}/info'
519mandir='${prefix}/man'
520
521ac_prev=
522for ac_option
523do
524  # If the previous option needs an argument, assign it.
525  if test -n "$ac_prev"; then
526    eval "$ac_prev=\$ac_option"
527    ac_prev=
528    continue
529  fi
530
531  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
532
533  # Accept the important Cygnus configure options, so we can diagnose typos.
534
535  case $ac_option in
536
537  -bindir | --bindir | --bindi | --bind | --bin | --bi)
538    ac_prev=bindir ;;
539  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
540    bindir=$ac_optarg ;;
541
542  -build | --build | --buil | --bui | --bu)
543    ac_prev=build_alias ;;
544  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
545    build_alias=$ac_optarg ;;
546
547  -cache-file | --cache-file | --cache-fil | --cache-fi \
548  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
549    ac_prev=cache_file ;;
550  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
551  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
552    cache_file=$ac_optarg ;;
553
554  --config-cache | -C)
555    cache_file=config.cache ;;
556
557  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
558    ac_prev=datadir ;;
559  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
560  | --da=*)
561    datadir=$ac_optarg ;;
562
563  -disable-* | --disable-*)
564    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
565    # Reject names that are not valid shell variable names.
566    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568   { (exit 1); exit 1; }; }
569    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570    eval "enable_$ac_feature=no" ;;
571
572  -enable-* | --enable-*)
573    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
574    # Reject names that are not valid shell variable names.
575    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
576      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
577   { (exit 1); exit 1; }; }
578    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
579    case $ac_option in
580      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
581      *) ac_optarg=yes ;;
582    esac
583    eval "enable_$ac_feature='$ac_optarg'" ;;
584
585  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
586  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
587  | --exec | --exe | --ex)
588    ac_prev=exec_prefix ;;
589  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
590  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
591  | --exec=* | --exe=* | --ex=*)
592    exec_prefix=$ac_optarg ;;
593
594  -gas | --gas | --ga | --g)
595    # Obsolete; use --with-gas.
596    with_gas=yes ;;
597
598  -help | --help | --hel | --he | -h)
599    ac_init_help=long ;;
600  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
601    ac_init_help=recursive ;;
602  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
603    ac_init_help=short ;;
604
605  -host | --host | --hos | --ho)
606    ac_prev=host_alias ;;
607  -host=* | --host=* | --hos=* | --ho=*)
608    host_alias=$ac_optarg ;;
609
610  -includedir | --includedir | --includedi | --included | --include \
611  | --includ | --inclu | --incl | --inc)
612    ac_prev=includedir ;;
613  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
614  | --includ=* | --inclu=* | --incl=* | --inc=*)
615    includedir=$ac_optarg ;;
616
617  -infodir | --infodir | --infodi | --infod | --info | --inf)
618    ac_prev=infodir ;;
619  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
620    infodir=$ac_optarg ;;
621
622  -libdir | --libdir | --libdi | --libd)
623    ac_prev=libdir ;;
624  -libdir=* | --libdir=* | --libdi=* | --libd=*)
625    libdir=$ac_optarg ;;
626
627  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
628  | --libexe | --libex | --libe)
629    ac_prev=libexecdir ;;
630  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
631  | --libexe=* | --libex=* | --libe=*)
632    libexecdir=$ac_optarg ;;
633
634  -localstatedir | --localstatedir | --localstatedi | --localstated \
635  | --localstate | --localstat | --localsta | --localst \
636  | --locals | --local | --loca | --loc | --lo)
637    ac_prev=localstatedir ;;
638  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
639  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
640  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
641    localstatedir=$ac_optarg ;;
642
643  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
644    ac_prev=mandir ;;
645  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
646    mandir=$ac_optarg ;;
647
648  -nfp | --nfp | --nf)
649    # Obsolete; use --without-fp.
650    with_fp=no ;;
651
652  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
653  | --no-cr | --no-c | -n)
654    no_create=yes ;;
655
656  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
657  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
658    no_recursion=yes ;;
659
660  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
661  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
662  | --oldin | --oldi | --old | --ol | --o)
663    ac_prev=oldincludedir ;;
664  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
665  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
666  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
667    oldincludedir=$ac_optarg ;;
668
669  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
670    ac_prev=prefix ;;
671  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
672    prefix=$ac_optarg ;;
673
674  -program-prefix | --program-prefix | --program-prefi | --program-pref \
675  | --program-pre | --program-pr | --program-p)
676    ac_prev=program_prefix ;;
677  -program-prefix=* | --program-prefix=* | --program-prefi=* \
678  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
679    program_prefix=$ac_optarg ;;
680
681  -program-suffix | --program-suffix | --program-suffi | --program-suff \
682  | --program-suf | --program-su | --program-s)
683    ac_prev=program_suffix ;;
684  -program-suffix=* | --program-suffix=* | --program-suffi=* \
685  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
686    program_suffix=$ac_optarg ;;
687
688  -program-transform-name | --program-transform-name \
689  | --program-transform-nam | --program-transform-na \
690  | --program-transform-n | --program-transform- \
691  | --program-transform | --program-transfor \
692  | --program-transfo | --program-transf \
693  | --program-trans | --program-tran \
694  | --progr-tra | --program-tr | --program-t)
695    ac_prev=program_transform_name ;;
696  -program-transform-name=* | --program-transform-name=* \
697  | --program-transform-nam=* | --program-transform-na=* \
698  | --program-transform-n=* | --program-transform-=* \
699  | --program-transform=* | --program-transfor=* \
700  | --program-transfo=* | --program-transf=* \
701  | --program-trans=* | --program-tran=* \
702  | --progr-tra=* | --program-tr=* | --program-t=*)
703    program_transform_name=$ac_optarg ;;
704
705  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
706  | -silent | --silent | --silen | --sile | --sil)
707    silent=yes ;;
708
709  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
710    ac_prev=sbindir ;;
711  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
712  | --sbi=* | --sb=*)
713    sbindir=$ac_optarg ;;
714
715  -sharedstatedir | --sharedstatedir | --sharedstatedi \
716  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
717  | --sharedst | --shareds | --shared | --share | --shar \
718  | --sha | --sh)
719    ac_prev=sharedstatedir ;;
720  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
721  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
722  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
723  | --sha=* | --sh=*)
724    sharedstatedir=$ac_optarg ;;
725
726  -site | --site | --sit)
727    ac_prev=site ;;
728  -site=* | --site=* | --sit=*)
729    site=$ac_optarg ;;
730
731  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
732    ac_prev=srcdir ;;
733  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
734    srcdir=$ac_optarg ;;
735
736  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
737  | --syscon | --sysco | --sysc | --sys | --sy)
738    ac_prev=sysconfdir ;;
739  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
740  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
741    sysconfdir=$ac_optarg ;;
742
743  -target | --target | --targe | --targ | --tar | --ta | --t)
744    ac_prev=target_alias ;;
745  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
746    target_alias=$ac_optarg ;;
747
748  -v | -verbose | --verbose | --verbos | --verbo | --verb)
749    verbose=yes ;;
750
751  -version | --version | --versio | --versi | --vers | -V)
752    ac_init_version=: ;;
753
754  -with-* | --with-*)
755    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package| sed 's/-/_/g'`
761    case $ac_option in
762      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
763      *) ac_optarg=yes ;;
764    esac
765    eval "with_$ac_package='$ac_optarg'" ;;
766
767  -without-* | --without-*)
768    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
769    # Reject names that are not valid shell variable names.
770    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
771      { echo "$as_me: error: invalid package name: $ac_package" >&2
772   { (exit 1); exit 1; }; }
773    ac_package=`echo $ac_package | sed 's/-/_/g'`
774    eval "with_$ac_package=no" ;;
775
776  --x)
777    # Obsolete; use --with-x.
778    with_x=yes ;;
779
780  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
781  | --x-incl | --x-inc | --x-in | --x-i)
782    ac_prev=x_includes ;;
783  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
784  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
785    x_includes=$ac_optarg ;;
786
787  -x-libraries | --x-libraries | --x-librarie | --x-librari \
788  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
789    ac_prev=x_libraries ;;
790  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
791  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
792    x_libraries=$ac_optarg ;;
793
794  -*) { echo "$as_me: error: unrecognized option: $ac_option
795Try \`$0 --help' for more information." >&2
796   { (exit 1); exit 1; }; }
797    ;;
798
799  *=*)
800    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
801    # Reject names that are not valid shell variable names.
802    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
803      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
804   { (exit 1); exit 1; }; }
805    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
806    eval "$ac_envvar='$ac_optarg'"
807    export $ac_envvar ;;
808
809  *)
810    # FIXME: should be removed in autoconf 3.0.
811    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
812    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
813      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
814    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
815    ;;
816
817  esac
818done
819
820if test -n "$ac_prev"; then
821  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
822  { echo "$as_me: error: missing argument to $ac_option" >&2
823   { (exit 1); exit 1; }; }
824fi
825
826# Be sure to have absolute paths.
827for ac_var in exec_prefix prefix
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# Be sure to have absolute paths.
838for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
839              localstatedir libdir includedir oldincludedir infodir mandir
840do
841  eval ac_val=$`echo $ac_var`
842  case $ac_val in
843    [\\/$]* | ?:[\\/]* ) ;;
844    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845   { (exit 1); exit 1; }; };;
846  esac
847done
848
849# There might be people who depend on the old broken behavior: `$host'
850# used to hold the argument of --host etc.
851# FIXME: To remove some day.
852build=$build_alias
853host=$host_alias
854target=$target_alias
855
856# FIXME: To remove some day.
857if test "x$host_alias" != x; then
858  if test "x$build_alias" = x; then
859    cross_compiling=maybe
860    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
861    If a cross compiler is detected then cross compile mode will be used." >&2
862  elif test "x$build_alias" != "x$host_alias"; then
863    cross_compiling=yes
864  fi
865fi
866
867ac_tool_prefix=
868test -n "$host_alias" && ac_tool_prefix=$host_alias-
869
870test "$silent" = yes && exec 6>/dev/null
871
872
873# Find the source files, if location was not specified.
874if test -z "$srcdir"; then
875  ac_srcdir_defaulted=yes
876  # Try the directory containing this script, then its parent.
877  ac_confdir=`(dirname "$0") 2>/dev/null ||
878$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
879         X"$0" : 'X\(//\)[^/]' \| \
880         X"$0" : 'X\(//\)$' \| \
881         X"$0" : 'X\(/\)' \| \
882         .     : '\(.\)' 2>/dev/null ||
883echo X"$0" |
884    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
885          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
886          /^X\(\/\/\)$/{ s//\1/; q; }
887          /^X\(\/\).*/{ s//\1/; q; }
888          s/.*/./; q'`
889  srcdir=$ac_confdir
890  if test ! -r $srcdir/$ac_unique_file; then
891    srcdir=..
892  fi
893else
894  ac_srcdir_defaulted=no
895fi
896if test ! -r $srcdir/$ac_unique_file; then
897  if test "$ac_srcdir_defaulted" = yes; then
898    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
899   { (exit 1); exit 1; }; }
900  else
901    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
902   { (exit 1); exit 1; }; }
903  fi
904fi
905(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
906  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
907   { (exit 1); exit 1; }; }
908srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
909ac_env_build_alias_set=${build_alias+set}
910ac_env_build_alias_value=$build_alias
911ac_cv_env_build_alias_set=${build_alias+set}
912ac_cv_env_build_alias_value=$build_alias
913ac_env_host_alias_set=${host_alias+set}
914ac_env_host_alias_value=$host_alias
915ac_cv_env_host_alias_set=${host_alias+set}
916ac_cv_env_host_alias_value=$host_alias
917ac_env_target_alias_set=${target_alias+set}
918ac_env_target_alias_value=$target_alias
919ac_cv_env_target_alias_set=${target_alias+set}
920ac_cv_env_target_alias_value=$target_alias
921ac_env_CDEFS_set=${CDEFS+set}
922ac_env_CDEFS_value=$CDEFS
923ac_cv_env_CDEFS_set=${CDEFS+set}
924ac_cv_env_CDEFS_value=$CDEFS
925ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
926ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
927ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
928ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
929ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
930ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
931ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
932ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
933ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
934ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
935ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
936ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
937ac_env_CC_set=${CC+set}
938ac_env_CC_value=$CC
939ac_cv_env_CC_set=${CC+set}
940ac_cv_env_CC_value=$CC
941ac_env_CFLAGS_set=${CFLAGS+set}
942ac_env_CFLAGS_value=$CFLAGS
943ac_cv_env_CFLAGS_set=${CFLAGS+set}
944ac_cv_env_CFLAGS_value=$CFLAGS
945ac_env_LDFLAGS_set=${LDFLAGS+set}
946ac_env_LDFLAGS_value=$LDFLAGS
947ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
948ac_cv_env_LDFLAGS_value=$LDFLAGS
949ac_env_CPPFLAGS_set=${CPPFLAGS+set}
950ac_env_CPPFLAGS_value=$CPPFLAGS
951ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
952ac_cv_env_CPPFLAGS_value=$CPPFLAGS
953ac_env_MPICC_set=${MPICC+set}
954ac_env_MPICC_value=$MPICC
955ac_cv_env_MPICC_set=${MPICC+set}
956ac_cv_env_MPICC_value=$MPICC
957ac_env_CXXDEFS_set=${CXXDEFS+set}
958ac_env_CXXDEFS_value=$CXXDEFS
959ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
960ac_cv_env_CXXDEFS_value=$CXXDEFS
961ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
962ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
963ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
964ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
965ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
966ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
967ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
968ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
969ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
970ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
971ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
972ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
973ac_env_CXX_set=${CXX+set}
974ac_env_CXX_value=$CXX
975ac_cv_env_CXX_set=${CXX+set}
976ac_cv_env_CXX_value=$CXX
977ac_env_CXXFLAGS_set=${CXXFLAGS+set}
978ac_env_CXXFLAGS_value=$CXXFLAGS
979ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
980ac_cv_env_CXXFLAGS_value=$CXXFLAGS
981ac_env_MPICXX_set=${MPICXX+set}
982ac_env_MPICXX_value=$MPICXX
983ac_cv_env_MPICXX_set=${MPICXX+set}
984ac_cv_env_MPICXX_value=$MPICXX
985ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
986ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
987ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
988ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
989ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
990ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
991ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
992ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
993ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
994ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
995ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
996ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
997ac_env_F77_set=${F77+set}
998ac_env_F77_value=$F77
999ac_cv_env_F77_set=${F77+set}
1000ac_cv_env_F77_value=$F77
1001ac_env_FFLAGS_set=${FFLAGS+set}
1002ac_env_FFLAGS_value=$FFLAGS
1003ac_cv_env_FFLAGS_set=${FFLAGS+set}
1004ac_cv_env_FFLAGS_value=$FFLAGS
1005ac_env_MPIF77_set=${MPIF77+set}
1006ac_env_MPIF77_value=$MPIF77
1007ac_cv_env_MPIF77_set=${MPIF77+set}
1008ac_cv_env_MPIF77_value=$MPIF77
1009ac_env_CPP_set=${CPP+set}
1010ac_env_CPP_value=$CPP
1011ac_cv_env_CPP_set=${CPP+set}
1012ac_cv_env_CPP_value=$CPP
1013ac_env_CXXCPP_set=${CXXCPP+set}
1014ac_env_CXXCPP_value=$CXXCPP
1015ac_cv_env_CXXCPP_set=${CXXCPP+set}
1016ac_cv_env_CXXCPP_value=$CXXCPP
1017ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1018ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1019ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1020ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1021
1022#
1023# Report the --help message.
1024#
1025if test "$ac_init_help" = "long"; then
1026  # Omit some internal or obsolete options to make the list less imposing.
1027  # This message is too long to be a string in the A/UX 3.1 sh.
1028  cat <<_ACEOF
1029\`configure' configures Clp 1.9stable to adapt to many kinds of systems.
1030
1031Usage: $0 [OPTION]... [VAR=VALUE]...
1032
1033To assign environment variables (e.g., CC, CFLAGS...), specify them as
1034VAR=VALUE.  See below for descriptions of some of the useful variables.
1035
1036Defaults for the options are specified in brackets.
1037
1038Configuration:
1039  -h, --help              display this help and exit
1040      --help=short        display options specific to this package
1041      --help=recursive    display the short help of all the included packages
1042  -V, --version           display version information and exit
1043  -q, --quiet, --silent   do not print \`checking...' messages
1044      --cache-file=FILE   cache test results in FILE [disabled]
1045  -C, --config-cache      alias for \`--cache-file=config.cache'
1046  -n, --no-create         do not create output files
1047      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1048
1049_ACEOF
1050
1051  cat <<_ACEOF
1052Installation directories:
1053  --prefix=PREFIX         install architecture-independent files in PREFIX
1054                          [$ac_default_prefix]
1055  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1056                          [PREFIX]
1057
1058By default, \`make install' will install all the files in
1059\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1060an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1061for instance \`--prefix=\$HOME'.
1062
1063For better control, use the options below.
1064
1065Fine tuning of the installation directories:
1066  --bindir=DIR           user executables [EPREFIX/bin]
1067  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1068  --libexecdir=DIR       program executables [EPREFIX/libexec]
1069  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1070  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1071  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1072  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1073  --libdir=DIR           object code libraries [EPREFIX/lib]
1074  --includedir=DIR       C header files [PREFIX/include]
1075  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1076  --infodir=DIR          info documentation [PREFIX/info]
1077  --mandir=DIR           man documentation [PREFIX/man]
1078_ACEOF
1079
1080  cat <<\_ACEOF
1081
1082Program names:
1083  --program-prefix=PREFIX            prepend PREFIX to installed program names
1084  --program-suffix=SUFFIX            append SUFFIX to installed program names
1085  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1086
1087System types:
1088  --build=BUILD     configure for building on BUILD [guessed]
1089  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1090_ACEOF
1091fi
1092
1093if test -n "$ac_init_help"; then
1094  case $ac_init_help in
1095     short | recursive ) echo "Configuration of Clp 1.9stable:";;
1096   esac
1097  cat <<\_ACEOF
1098
1099Optional Features:
1100  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1101  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1102  --enable-debug          compile all projects with debug options tests
1103  --enable-doscompile     Under Cygwin, compile so that executables run under
1104                          DOS. Set to mingw to use gcc/g++/ld with
1105                          -mno-cygwin. Set to msvc to use cl/link (or
1106                          icl/link). Default when mentioned: mingw. Default
1107                          when not mentioned: disabled.
1108  --enable-static[=PKGS]
1109                          build static libraries [default=no]
1110  --disable-dependency-tracking  speeds up one-time build
1111  --enable-dependency-tracking   do not reject slow dependency extractors
1112  --enable-maintainer-mode  enable make rules and dependencies not useful
1113                          (and sometimes confusing) to the casual installer
1114  --enable-shared[=PKGS]
1115                          build shared libraries [default=yes]
1116  --enable-fast-install[=PKGS]
1117                          optimize for fast installation [default=yes]
1118  --disable-libtool-lock  avoid locking (might break parallel builds)
1119
1120Optional Packages:
1121  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1122  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1123  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1124  --with-pic              try to use only PIC/non-PIC objects [default=use
1125                          both]
1126  --with-tags[=TAGS]
1127                          include additional configurations [automatic]
1128
1129Some influential environment variables:
1130  CDEFS       Additional -D flags to be used when compiling C code.
1131  ADD_CFLAGS  Additional C compiler options
1132  DBG_CFLAGS  Debug C compiler options
1133  OPT_CFLAGS  Optimize C compiler options
1134  CC          C compiler command
1135  CFLAGS      C compiler flags
1136  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1137              nonstandard directory <lib dir>
1138  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1139              headers in a nonstandard directory <include dir>
1140  MPICC       C MPI Compiler
1141  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1142  ADD_CXXFLAGS
1143              Additional C++ compiler options
1144  DBG_CXXFLAGS
1145              Debug C++ compiler options
1146  OPT_CXXFLAGS
1147              Optimize C++ compiler options
1148  CXX         C++ compiler command
1149  CXXFLAGS    C++ compiler flags
1150  MPICXX      C++ MPI Compiler
1151  ADD_FFLAGS  Additional Fortran compiler options
1152  DBG_FFLAGS  Debug Fortran compiler options
1153  OPT_FFLAGS  Optimize Fortran compiler options
1154  F77         Fortran 77 compiler command
1155  FFLAGS      Fortran 77 compiler flags
1156  MPIF77      Fortran MPI Compiler
1157  CPP         C preprocessor
1158  CXXCPP      C++ preprocessor
1159  COIN_SKIP_PROJECTS
1160              Set to the subdirectories of projects that should be skipped in
1161              the configuration
1162
1163Use these variables to override the choices made by `configure' or to help
1164it to find libraries and programs with nonstandard names/locations.
1165
1166Report bugs to <coin-clp@lists.coin-or.org>.
1167_ACEOF
1168fi
1169
1170if test "$ac_init_help" = "recursive"; then
1171  # If there are subdirs, report their specific --help.
1172  ac_popdir=`pwd`
1173  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1174    test -d $ac_dir || continue
1175    ac_builddir=.
1176
1177if test "$ac_dir" != .; then
1178  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1179  # A "../" for each directory in $ac_dir_suffix.
1180  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1181else
1182  ac_dir_suffix= ac_top_builddir=
1183fi
1184
1185case $srcdir in
1186  .)  # No --srcdir option.  We are building in place.
1187    ac_srcdir=.
1188    if test -z "$ac_top_builddir"; then
1189       ac_top_srcdir=.
1190    else
1191       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1192    fi ;;
1193  [\\/]* | ?:[\\/]* )  # Absolute path.
1194    ac_srcdir=$srcdir$ac_dir_suffix;
1195    ac_top_srcdir=$srcdir ;;
1196  *) # Relative path.
1197    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1198    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1199esac
1200
1201# Do not use `cd foo && pwd` to compute absolute paths, because
1202# the directories may not exist.
1203case `pwd` in
1204.) ac_abs_builddir="$ac_dir";;
1205*)
1206  case "$ac_dir" in
1207  .) ac_abs_builddir=`pwd`;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1209  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1210  esac;;
1211esac
1212case $ac_abs_builddir in
1213.) ac_abs_top_builddir=${ac_top_builddir}.;;
1214*)
1215  case ${ac_top_builddir}. in
1216  .) ac_abs_top_builddir=$ac_abs_builddir;;
1217  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1218  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1219  esac;;
1220esac
1221case $ac_abs_builddir in
1222.) ac_abs_srcdir=$ac_srcdir;;
1223*)
1224  case $ac_srcdir in
1225  .) ac_abs_srcdir=$ac_abs_builddir;;
1226  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1227  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1228  esac;;
1229esac
1230case $ac_abs_builddir in
1231.) ac_abs_top_srcdir=$ac_top_srcdir;;
1232*)
1233  case $ac_top_srcdir in
1234  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1235  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1236  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1237  esac;;
1238esac
1239
1240    cd $ac_dir
1241    # Check for guested configure; otherwise get Cygnus style configure.
1242    if test -f $ac_srcdir/configure.gnu; then
1243      echo
1244      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1245    elif test -f $ac_srcdir/configure; then
1246      echo
1247      $SHELL $ac_srcdir/configure  --help=recursive
1248    elif test -f $ac_srcdir/configure.ac ||
1249           test -f $ac_srcdir/configure.in; then
1250      echo
1251      $ac_configure --help
1252    else
1253      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1254    fi
1255    cd $ac_popdir
1256  done
1257fi
1258
1259test -n "$ac_init_help" && exit 0
1260if $ac_init_version; then
1261  cat <<\_ACEOF
1262Clp configure 1.9stable
1263generated by GNU Autoconf 2.59
1264
1265Copyright (C) 2003 Free Software Foundation, Inc.
1266This configure script is free software; the Free Software Foundation
1267gives unlimited permission to copy, distribute and modify it.
1268
1269
1270Copyright 2006 International Business Machines and others.
1271All Rights Reserved.
1272This file is part of the open source package Coin which is distributed
1273under the Common Public License.
1274_ACEOF
1275  exit 0
1276fi
1277exec 5>config.log
1278cat >&5 <<_ACEOF
1279This file contains any messages produced by compilers while
1280running configure, to aid debugging if configure makes a mistake.
1281
1282It was created by Clp $as_me 1.9stable, which was
1283generated by GNU Autoconf 2.59.  Invocation command line was
1284
1285  $ $0 $@
1286
1287_ACEOF
1288{
1289cat <<_ASUNAME
1290## --------- ##
1291## Platform. ##
1292## --------- ##
1293
1294hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1295uname -m = `(uname -m) 2>/dev/null || echo unknown`
1296uname -r = `(uname -r) 2>/dev/null || echo unknown`
1297uname -s = `(uname -s) 2>/dev/null || echo unknown`
1298uname -v = `(uname -v) 2>/dev/null || echo unknown`
1299
1300/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1301/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1302
1303/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1304/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1305/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1306hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1307/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1308/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1309/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1310
1311_ASUNAME
1312
1313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1314for as_dir in $PATH
1315do
1316  IFS=$as_save_IFS
1317  test -z "$as_dir" && as_dir=.
1318  echo "PATH: $as_dir"
1319done
1320
1321} >&5
1322
1323cat >&5 <<_ACEOF
1324
1325
1326## ----------- ##
1327## Core tests. ##
1328## ----------- ##
1329
1330_ACEOF
1331
1332
1333# Keep a trace of the command line.
1334# Strip out --no-create and --no-recursion so they do not pile up.
1335# Strip out --silent because we don't want to record it for future runs.
1336# Also quote any args containing shell meta-characters.
1337# Make two passes to allow for proper duplicate-argument suppression.
1338ac_configure_args=
1339ac_configure_args0=
1340ac_configure_args1=
1341ac_sep=
1342ac_must_keep_next=false
1343for ac_pass in 1 2
1344do
1345  for ac_arg
1346  do
1347    case $ac_arg in
1348    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1349    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1350    | -silent | --silent | --silen | --sile | --sil)
1351      continue ;;
1352    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1354    esac
1355    case $ac_pass in
1356    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1357    2)
1358      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1359      if test $ac_must_keep_next = true; then
1360        ac_must_keep_next=false # Got value, back to normal.
1361      else
1362        case $ac_arg in
1363          *=* | --config-cache | -C | -disable-* | --disable-* \
1364          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1365          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1366          | -with-* | --with-* | -without-* | --without-* | --x)
1367            case "$ac_configure_args0 " in
1368              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1369            esac
1370            ;;
1371          -* ) ac_must_keep_next=true ;;
1372        esac
1373      fi
1374      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1375      # Get rid of the leading space.
1376      ac_sep=" "
1377      ;;
1378    esac
1379  done
1380done
1381$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1382$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1383
1384# When interrupted or exit'd, cleanup temporary files, and complete
1385# config.log.  We remove comments because anyway the quotes in there
1386# would cause problems or look ugly.
1387# WARNING: Be sure not to use single quotes in there, as some shells,
1388# such as our DU 5.0 friend, will then `close' the trap.
1389trap 'exit_status=$?
1390  # Save into config.log some information that might help in debugging.
1391  {
1392    echo
1393
1394    cat <<\_ASBOX
1395## ---------------- ##
1396## Cache variables. ##
1397## ---------------- ##
1398_ASBOX
1399    echo
1400    # The following way of writing the cache mishandles newlines in values,
1401{
1402  (set) 2>&1 |
1403    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1404    *ac_space=\ *)
1405      sed -n \
1406        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1407          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1408      ;;
1409    *)
1410      sed -n \
1411        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1412      ;;
1413    esac;
1414}
1415    echo
1416
1417    cat <<\_ASBOX
1418## ----------------- ##
1419## Output variables. ##
1420## ----------------- ##
1421_ASBOX
1422    echo
1423    for ac_var in $ac_subst_vars
1424    do
1425      eval ac_val=$`echo $ac_var`
1426      echo "$ac_var='"'"'$ac_val'"'"'"
1427    done | sort
1428    echo
1429
1430    if test -n "$ac_subst_files"; then
1431      cat <<\_ASBOX
1432## ------------- ##
1433## Output files. ##
1434## ------------- ##
1435_ASBOX
1436      echo
1437      for ac_var in $ac_subst_files
1438      do
1439        eval ac_val=$`echo $ac_var`
1440        echo "$ac_var='"'"'$ac_val'"'"'"
1441      done | sort
1442      echo
1443    fi
1444
1445    if test -s confdefs.h; then
1446      cat <<\_ASBOX
1447## ----------- ##
1448## confdefs.h. ##
1449## ----------- ##
1450_ASBOX
1451      echo
1452      sed "/^$/d" confdefs.h | sort
1453      echo
1454    fi
1455    test "$ac_signal" != 0 &&
1456      echo "$as_me: caught signal $ac_signal"
1457    echo "$as_me: exit $exit_status"
1458  } >&5
1459  rm -f core *.core &&
1460  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1461    exit $exit_status
1462     ' 0
1463for ac_signal in 1 2 13 15; do
1464  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1465done
1466ac_signal=0
1467
1468# confdefs.h avoids OS command line length limits that DEFS can exceed.
1469rm -rf conftest* confdefs.h
1470# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1471echo >confdefs.h
1472
1473# Predefined preprocessor variables.
1474
1475cat >>confdefs.h <<_ACEOF
1476#define PACKAGE_NAME "$PACKAGE_NAME"
1477_ACEOF
1478
1479
1480cat >>confdefs.h <<_ACEOF
1481#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1482_ACEOF
1483
1484
1485cat >>confdefs.h <<_ACEOF
1486#define PACKAGE_VERSION "$PACKAGE_VERSION"
1487_ACEOF
1488
1489
1490cat >>confdefs.h <<_ACEOF
1491#define PACKAGE_STRING "$PACKAGE_STRING"
1492_ACEOF
1493
1494
1495cat >>confdefs.h <<_ACEOF
1496#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1497_ACEOF
1498
1499
1500# Let the site file select an alternate cache file if it wants to.
1501# Prefer explicitly selected file to automatically selected ones.
1502if test -z "$CONFIG_SITE"; then
1503  if test "x$prefix" != xNONE; then
1504    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1505  else
1506    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1507  fi
1508fi
1509for ac_site_file in $CONFIG_SITE; do
1510  if test -r "$ac_site_file"; then
1511    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1512echo "$as_me: loading site script $ac_site_file" >&6;}
1513    sed 's/^/| /' "$ac_site_file" >&5
1514    . "$ac_site_file"
1515  fi
1516done
1517
1518if test -r "$cache_file"; then
1519  # Some versions of bash will fail to source /dev/null (special
1520  # files actually), so we avoid doing that.
1521  if test -f "$cache_file"; then
1522    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1523echo "$as_me: loading cache $cache_file" >&6;}
1524    case $cache_file in
1525      [\\/]* | ?:[\\/]* ) . $cache_file;;
1526      *)                      . ./$cache_file;;
1527    esac
1528  fi
1529else
1530  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1531echo "$as_me: creating cache $cache_file" >&6;}
1532  >$cache_file
1533fi
1534
1535# Check that the precious variables saved in the cache have kept the same
1536# value.
1537ac_cache_corrupted=false
1538for ac_var in `(set) 2>&1 |
1539               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1540  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1541  eval ac_new_set=\$ac_env_${ac_var}_set
1542  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1543  eval ac_new_val="\$ac_env_${ac_var}_value"
1544  case $ac_old_set,$ac_new_set in
1545    set,)
1546      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1547echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1548      ac_cache_corrupted=: ;;
1549    ,set)
1550      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1551echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1552      ac_cache_corrupted=: ;;
1553    ,);;
1554    *)
1555      if test "x$ac_old_val" != "x$ac_new_val"; then
1556        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1557echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1558        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1559echo "$as_me:   former value:  $ac_old_val" >&2;}
1560        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1561echo "$as_me:   current value: $ac_new_val" >&2;}
1562        ac_cache_corrupted=:
1563      fi;;
1564  esac
1565  # Pass precious variables to config.status.
1566  if test "$ac_new_set" = set; then
1567    case $ac_new_val in
1568    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1569      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1570    *) ac_arg=$ac_var=$ac_new_val ;;
1571    esac
1572    case " $ac_configure_args " in
1573      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1574      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1575    esac
1576  fi
1577done
1578if $ac_cache_corrupted; then
1579  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1580echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1581  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1582echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1583   { (exit 1); exit 1; }; }
1584fi
1585
1586ac_ext=c
1587ac_cpp='$CPP $CPPFLAGS'
1588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1590ac_compiler_gnu=$ac_cv_c_compiler_gnu
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623# List one file in the package so that the configure script can test
1624# whether the package is actually there
1625
1626
1627# Where should everything be installed by default?  Here, we want it
1628# to be installed directly in 'bin', 'lib', 'include' subdirectories
1629# of the directory where configure is run.  The default would be
1630# /usr/local.
1631
1632
1633#############################################################################
1634#              Create the libtool script for the subdirectories             #
1635#############################################################################
1636
1637ac_aux_dir=
1638for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1639  if test -f $ac_dir/install-sh; then
1640    ac_aux_dir=$ac_dir
1641    ac_install_sh="$ac_aux_dir/install-sh -c"
1642    break
1643  elif test -f $ac_dir/install.sh; then
1644    ac_aux_dir=$ac_dir
1645    ac_install_sh="$ac_aux_dir/install.sh -c"
1646    break
1647  elif test -f $ac_dir/shtool; then
1648    ac_aux_dir=$ac_dir
1649    ac_install_sh="$ac_aux_dir/shtool install -c"
1650    break
1651  fi
1652done
1653if test -z "$ac_aux_dir"; then
1654  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1655echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1656   { (exit 1); exit 1; }; }
1657fi
1658ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1659ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1660ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1661
1662# Make sure we can run config.sub.
1663$ac_config_sub sun4 >/dev/null 2>&1 ||
1664  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1665echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1666   { (exit 1); exit 1; }; }
1667
1668echo "$as_me:$LINENO: checking build system type" >&5
1669echo $ECHO_N "checking build system type... $ECHO_C" >&6
1670if test "${ac_cv_build+set}" = set; then
1671  echo $ECHO_N "(cached) $ECHO_C" >&6
1672else
1673  ac_cv_build_alias=$build_alias
1674test -z "$ac_cv_build_alias" &&
1675  ac_cv_build_alias=`$ac_config_guess`
1676test -z "$ac_cv_build_alias" &&
1677  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1678echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1679   { (exit 1); exit 1; }; }
1680ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1681  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1682echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1683   { (exit 1); exit 1; }; }
1684
1685fi
1686echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1687echo "${ECHO_T}$ac_cv_build" >&6
1688build=$ac_cv_build
1689build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692
1693
1694
1695# Check if user wants to produce debugging code
1696
1697echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1698echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1699
1700# Check whether --enable-debug or --disable-debug was given.
1701if test "${enable_debug+set}" = set; then
1702  enableval="$enable_debug"
1703  case "${enableval}" in
1704   yes) coin_debug_compile=true
1705        if test "${enable_shared+set}" = set; then :; else
1706          enable_shared=no
1707        fi
1708        ;;
1709   no)  coin_debug_compile=false
1710        ;;
1711   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1712echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1713   { (exit 1); exit 1; }; }
1714        ;;
1715esac
1716else
1717  coin_debug_compile=false
1718fi;
1719
1720 # m4_ifvaln([],
1721
1722if test $coin_debug_compile = true; then
1723  echo "$as_me:$LINENO: result: yes" >&5
1724echo "${ECHO_T}yes" >&6
1725else
1726  echo "$as_me:$LINENO: result: no" >&5
1727echo "${ECHO_T}no" >&6
1728fi
1729
1730 # m4_ifvaln([],
1731
1732
1733
1734# Get the name of the C compiler and appropriate compiler options
1735case $build in
1736  *-mingw*)
1737    if test "${LD+set}" = set; then :; else
1738      LD=link
1739    fi
1740    ;;
1741 esac
1742 case $enable_doscompile in
1743   msvc)
1744     if test "x${LD+set}" = xset; then :; else
1745       LD=link
1746     fi
1747     ;;
1748 esac
1749
1750
1751 # Check whether --enable-doscompile or --disable-doscompile was given.
1752if test "${enable_doscompile+set}" = set; then
1753  enableval="$enable_doscompile"
1754  if test "$enable_doscompile" != no; then
1755     case $build in
1756       *-cygwin* | *-mingw*) ;;
1757       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1758echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1759   { (exit 1); exit 1; }; } ;;
1760     esac
1761   fi
1762else
1763  enable_doscompile=no
1764fi;
1765 case "$enable_doscompile" in
1766   mingw)
1767     case $build in
1768       *-mingw*) enable_doscompile=no ;;
1769     esac
1770     ;;
1771   msvc|no) ;;
1772   yes) enable_doscompile=mingw ;;
1773   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1774                    Try configure --help=recursive." >&5
1775echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1776                    Try configure --help=recursive." >&2;}
1777   { (exit 1); exit 1; }; }
1778      ;;
1779  esac
1780  if test "$enable_doscompile" != no ; then
1781    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1782echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1783  fi
1784
1785
1786
1787
1788ac_ext=c
1789ac_cpp='$CPP $CPPFLAGS'
1790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792ac_compiler_gnu=$ac_cv_c_compiler_gnu
1793
1794
1795# For consistency, we set the C compiler to the same value of the C++
1796# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1797if test x"$CXX" != x; then
1798  case "$CXX" in
1799    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1800      if test x"$CC" = x; then
1801        CC="$CXX"
1802        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1803echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1804      fi
1805      ;;
1806  esac
1807fi
1808
1809
1810
1811
1812
1813
1814coin_has_cc=yes
1815
1816save_cflags="$CFLAGS"
1817
1818# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1819# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1820# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1821# compiler. In this case, put cc after gcc.
1822
1823case $build in
1824  *-cygwin* | *-mingw*)
1825             if test "$enable_doscompile" = msvc ; then
1826               comps="icl cl"
1827             else
1828               comps="gcc cl"
1829             fi ;;
1830  *-*-solaris*)
1831             # Extract the first word of "cc", so it can be a program name with args.
1832set dummy cc; ac_word=$2
1833echo "$as_me:$LINENO: checking for $ac_word" >&5
1834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1836  echo $ECHO_N "(cached) $ECHO_C" >&6
1837else
1838  if test -n "$sol_cc_compiler"; then
1839  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1840else
1841  ac_prog_rejected=no
1842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843for as_dir in $PATH
1844do
1845  IFS=$as_save_IFS
1846  test -z "$as_dir" && as_dir=.
1847  for ac_exec_ext in '' $ac_executable_extensions; do
1848  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1849    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1850       ac_prog_rejected=yes
1851       continue
1852     fi
1853    ac_cv_prog_sol_cc_compiler="cc"
1854    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855    break 2
1856  fi
1857done
1858done
1859
1860if test $ac_prog_rejected = yes; then
1861  # We found a bogon in the path, so make sure we never use it.
1862  set dummy $ac_cv_prog_sol_cc_compiler
1863  shift
1864  if test $# != 0; then
1865    # We chose a different compiler from the bogus one.
1866    # However, it has the same basename, so the bogon will be chosen
1867    # first if we set sol_cc_compiler to just the basename; use the full file name.
1868    shift
1869    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1870  fi
1871fi
1872fi
1873fi
1874sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1875if test -n "$sol_cc_compiler"; then
1876  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1877echo "${ECHO_T}$sol_cc_compiler" >&6
1878else
1879  echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881fi
1882
1883             if test "$sol_cc_compiler" = "cc" ; then
1884               comps="cc xlc gcc pgcc icc"
1885             else
1886               comps="xlc gcc pgcc icc cc"
1887             fi
1888             ;;
1889  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1890  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1891esac
1892
1893# We delete the cached value, since the test might not have been
1894# performed with our choice of compilers earlier
1895$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1896# AC_MSG_NOTICE([C compiler candidates: $comps])
1897ac_ext=c
1898ac_cpp='$CPP $CPPFLAGS'
1899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901ac_compiler_gnu=$ac_cv_c_compiler_gnu
1902if test -n "$ac_tool_prefix"; then
1903  for ac_prog in $comps
1904  do
1905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1907echo "$as_me:$LINENO: checking for $ac_word" >&5
1908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1909if test "${ac_cv_prog_CC+set}" = set; then
1910  echo $ECHO_N "(cached) $ECHO_C" >&6
1911else
1912  if test -n "$CC"; then
1913  ac_cv_prog_CC="$CC" # Let the user override the test.
1914else
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918  IFS=$as_save_IFS
1919  test -z "$as_dir" && as_dir=.
1920  for ac_exec_ext in '' $ac_executable_extensions; do
1921  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1922    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1923    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1924    break 2
1925  fi
1926done
1927done
1928
1929fi
1930fi
1931CC=$ac_cv_prog_CC
1932if test -n "$CC"; then
1933  echo "$as_me:$LINENO: result: $CC" >&5
1934echo "${ECHO_T}$CC" >&6
1935else
1936  echo "$as_me:$LINENO: result: no" >&5
1937echo "${ECHO_T}no" >&6
1938fi
1939
1940    test -n "$CC" && break
1941  done
1942fi
1943if test -z "$CC"; then
1944  ac_ct_CC=$CC
1945  for ac_prog in $comps
1946do
1947  # Extract the first word of "$ac_prog", so it can be a program name with args.
1948set dummy $ac_prog; ac_word=$2
1949echo "$as_me:$LINENO: checking for $ac_word" >&5
1950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1952  echo $ECHO_N "(cached) $ECHO_C" >&6
1953else
1954  if test -n "$ac_ct_CC"; then
1955  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1956else
1957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960  IFS=$as_save_IFS
1961  test -z "$as_dir" && as_dir=.
1962  for ac_exec_ext in '' $ac_executable_extensions; do
1963  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964    ac_cv_prog_ac_ct_CC="$ac_prog"
1965    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1966    break 2
1967  fi
1968done
1969done
1970
1971fi
1972fi
1973ac_ct_CC=$ac_cv_prog_ac_ct_CC
1974if test -n "$ac_ct_CC"; then
1975  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1976echo "${ECHO_T}$ac_ct_CC" >&6
1977else
1978  echo "$as_me:$LINENO: result: no" >&5
1979echo "${ECHO_T}no" >&6
1980fi
1981
1982  test -n "$ac_ct_CC" && break
1983done
1984
1985  CC=$ac_ct_CC
1986fi
1987
1988
1989test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1990See \`config.log' for more details." >&5
1991echo "$as_me: error: no acceptable C compiler found in \$PATH
1992See \`config.log' for more details." >&2;}
1993   { (exit 1); exit 1; }; }
1994
1995# Provide some information about the compiler.
1996echo "$as_me:$LINENO:" \
1997     "checking for C compiler version" >&5
1998ac_compiler=`set X $ac_compile; echo $2`
1999{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2000  (eval $ac_compiler --version </dev/null >&5) 2>&5
2001  ac_status=$?
2002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003  (exit $ac_status); }
2004{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2005  (eval $ac_compiler -v </dev/null >&5) 2>&5
2006  ac_status=$?
2007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008  (exit $ac_status); }
2009{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2010  (eval $ac_compiler -V </dev/null >&5) 2>&5
2011  ac_status=$?
2012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2013  (exit $ac_status); }
2014
2015cat >conftest.$ac_ext <<_ACEOF
2016/* confdefs.h.  */
2017_ACEOF
2018cat confdefs.h >>conftest.$ac_ext
2019cat >>conftest.$ac_ext <<_ACEOF
2020/* end confdefs.h.  */
2021
2022int
2023main ()
2024{
2025
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030ac_clean_files_save=$ac_clean_files
2031ac_clean_files="$ac_clean_files a.out a.exe b.out"
2032# Try to create an executable without -o first, disregard a.out.
2033# It will help us diagnose broken compilers, and finding out an intuition
2034# of exeext.
2035echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2036echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2037ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2038if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2039  (eval $ac_link_default) 2>&5
2040  ac_status=$?
2041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2042  (exit $ac_status); }; then
2043  # Find the output, starting from the most likely.  This scheme is
2044# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2045# resort.
2046
2047# Be careful to initialize this variable, since it used to be cached.
2048# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2049ac_cv_exeext=
2050# b.out is created by i960 compilers.
2051for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2052do
2053  test -f "$ac_file" || continue
2054  case $ac_file in
2055    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2056        ;;
2057    conftest.$ac_ext )
2058        # This is the source file.
2059        ;;
2060    [ab].out )
2061        # We found the default executable, but exeext='' is most
2062        # certainly right.
2063        break;;
2064    *.* )
2065        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2066        # FIXME: I believe we export ac_cv_exeext for Libtool,
2067        # but it would be cool to find out if it's true.  Does anybody
2068        # maintain Libtool? --akim.
2069        export ac_cv_exeext
2070        break;;
2071    * )
2072        break;;
2073  esac
2074done
2075else
2076  echo "$as_me: failed program was:" >&5
2077sed 's/^/| /' conftest.$ac_ext >&5
2078
2079{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2080See \`config.log' for more details." >&5
2081echo "$as_me: error: C compiler cannot create executables
2082See \`config.log' for more details." >&2;}
2083   { (exit 77); exit 77; }; }
2084fi
2085
2086ac_exeext=$ac_cv_exeext
2087echo "$as_me:$LINENO: result: $ac_file" >&5
2088echo "${ECHO_T}$ac_file" >&6
2089
2090# Check the compiler produces executables we can run.  If not, either
2091# the compiler is broken, or we cross compile.
2092echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2093echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2094# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2095# If not cross compiling, check that we can run a simple program.
2096if test "$cross_compiling" != yes; then
2097  if { ac_try='./$ac_file'
2098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099  (eval $ac_try) 2>&5
2100  ac_status=$?
2101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102  (exit $ac_status); }; }; then
2103    cross_compiling=no
2104  else
2105    if test "$cross_compiling" = maybe; then
2106        cross_compiling=yes
2107    else
2108        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2109If you meant to cross compile, use \`--host'.
2110See \`config.log' for more details." >&5
2111echo "$as_me: error: cannot run C compiled programs.
2112If you meant to cross compile, use \`--host'.
2113See \`config.log' for more details." >&2;}
2114   { (exit 1); exit 1; }; }
2115    fi
2116  fi
2117fi
2118echo "$as_me:$LINENO: result: yes" >&5
2119echo "${ECHO_T}yes" >&6
2120
2121rm -f a.out a.exe conftest$ac_cv_exeext b.out
2122ac_clean_files=$ac_clean_files_save
2123# Check the compiler produces executables we can run.  If not, either
2124# the compiler is broken, or we cross compile.
2125echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2126echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2127echo "$as_me:$LINENO: result: $cross_compiling" >&5
2128echo "${ECHO_T}$cross_compiling" >&6
2129
2130echo "$as_me:$LINENO: checking for suffix of executables" >&5
2131echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2133  (eval $ac_link) 2>&5
2134  ac_status=$?
2135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136  (exit $ac_status); }; then
2137  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2138# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2139# work properly (i.e., refer to `conftest.exe'), while it won't with
2140# `rm'.
2141for ac_file in conftest.exe conftest conftest.*; do
2142  test -f "$ac_file" || continue
2143  case $ac_file in
2144    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2145    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2146          export ac_cv_exeext
2147          break;;
2148    * ) break;;
2149  esac
2150done
2151else
2152  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2153See \`config.log' for more details." >&5
2154echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2155See \`config.log' for more details." >&2;}
2156   { (exit 1); exit 1; }; }
2157fi
2158
2159rm -f conftest$ac_cv_exeext
2160echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2161echo "${ECHO_T}$ac_cv_exeext" >&6
2162
2163rm -f conftest.$ac_ext
2164EXEEXT=$ac_cv_exeext
2165ac_exeext=$EXEEXT
2166echo "$as_me:$LINENO: checking for suffix of object files" >&5
2167echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2168if test "${ac_cv_objext+set}" = set; then
2169  echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171  cat >conftest.$ac_ext <<_ACEOF
2172/* confdefs.h.  */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h.  */
2177
2178int
2179main ()
2180{
2181
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186rm -f conftest.o conftest.obj
2187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188  (eval $ac_compile) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; then
2192  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2193  case $ac_file in
2194    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2195    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2196       break;;
2197  esac
2198done
2199else
2200  echo "$as_me: failed program was:" >&5
2201sed 's/^/| /' conftest.$ac_ext >&5
2202
2203{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2204See \`config.log' for more details." >&5
2205echo "$as_me: error: cannot compute suffix of object files: cannot compile
2206See \`config.log' for more details." >&2;}
2207   { (exit 1); exit 1; }; }
2208fi
2209
2210rm -f conftest.$ac_cv_objext conftest.$ac_ext
2211fi
2212echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2213echo "${ECHO_T}$ac_cv_objext" >&6
2214OBJEXT=$ac_cv_objext
2215ac_objext=$OBJEXT
2216echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2217echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2218if test "${ac_cv_c_compiler_gnu+set}" = set; then
2219  echo $ECHO_N "(cached) $ECHO_C" >&6
2220else
2221  cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231#ifndef __GNUC__
2232       choke me
2233#endif
2234
2235  ;
2236  return 0;
2237}
2238_ACEOF
2239rm -f conftest.$ac_objext
2240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241  (eval $ac_compile) 2>conftest.er1
2242  ac_status=$?
2243  grep -v '^ *+' conftest.er1 >conftest.err
2244  rm -f conftest.er1
2245  cat conftest.err >&5
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); } &&
2248         { ac_try='test -z "$ac_c_werror_flag"
2249                         || test ! -s conftest.err'
2250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251  (eval $ac_try) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); }; } &&
2255         { ac_try='test -s conftest.$ac_objext'
2256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257  (eval $ac_try) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; }; then
2261  ac_compiler_gnu=yes
2262else
2263  echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266ac_compiler_gnu=no
2267fi
2268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2269ac_cv_c_compiler_gnu=$ac_compiler_gnu
2270
2271fi
2272echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2273echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2274GCC=`test $ac_compiler_gnu = yes && echo yes`
2275ac_test_CFLAGS=${CFLAGS+set}
2276ac_save_CFLAGS=$CFLAGS
2277CFLAGS="-g"
2278echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2279echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2280if test "${ac_cv_prog_cc_g+set}" = set; then
2281  echo $ECHO_N "(cached) $ECHO_C" >&6
2282else
2283  cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h.  */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h.  */
2289
2290int
2291main ()
2292{
2293
2294  ;
2295  return 0;
2296}
2297_ACEOF
2298rm -f conftest.$ac_objext
2299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2300  (eval $ac_compile) 2>conftest.er1
2301  ac_status=$?
2302  grep -v '^ *+' conftest.er1 >conftest.err
2303  rm -f conftest.er1
2304  cat conftest.err >&5
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); } &&
2307         { ac_try='test -z "$ac_c_werror_flag"
2308                         || test ! -s conftest.err'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; } &&
2314         { ac_try='test -s conftest.$ac_objext'
2315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316  (eval $ac_try) 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); }; }; then
2320  ac_cv_prog_cc_g=yes
2321else
2322  echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325ac_cv_prog_cc_g=no
2326fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328fi
2329echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2330echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2331if test "$ac_test_CFLAGS" = set; then
2332  CFLAGS=$ac_save_CFLAGS
2333elif test $ac_cv_prog_cc_g = yes; then
2334  if test "$GCC" = yes; then
2335    CFLAGS="-g -O2"
2336  else
2337    CFLAGS="-g"
2338  fi
2339else
2340  if test "$GCC" = yes; then
2341    CFLAGS="-O2"
2342  else
2343    CFLAGS=
2344  fi
2345fi
2346echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2347echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2348if test "${ac_cv_prog_cc_stdc+set}" = set; then
2349  echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351  ac_cv_prog_cc_stdc=no
2352ac_save_CC=$CC
2353cat >conftest.$ac_ext <<_ACEOF
2354/* confdefs.h.  */
2355_ACEOF
2356cat confdefs.h >>conftest.$ac_ext
2357cat >>conftest.$ac_ext <<_ACEOF
2358/* end confdefs.h.  */
2359#include <stdarg.h>
2360#include <stdio.h>
2361#include <sys/types.h>
2362#include <sys/stat.h>
2363/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2364struct buf { int x; };
2365FILE * (*rcsopen) (struct buf *, struct stat *, int);
2366static char *e (p, i)
2367     char **p;
2368     int i;
2369{
2370  return p[i];
2371}
2372static char *f (char * (*g) (char **, int), char **p, ...)
2373{
2374  char *s;
2375  va_list v;
2376  va_start (v,p);
2377  s = g (p, va_arg (v,int));
2378  va_end (v);
2379  return s;
2380}
2381
2382/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2383   function prototypes and stuff, but not '\xHH' hex character constants.
2384   These don't provoke an error unfortunately, instead are silently treated
2385   as 'x'.  The following induces an error, until -std1 is added to get
2386   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2387   array size at least.  It's necessary to write '\x00'==0 to get something
2388   that's true only with -std1.  */
2389int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2390
2391int test (int i, double x);
2392struct s1 {int (*f) (int a);};
2393struct s2 {int (*f) (double a);};
2394int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2395int argc;
2396char **argv;
2397int
2398main ()
2399{
2400return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2401  ;
2402  return 0;
2403}
2404_ACEOF
2405# Don't try gcc -ansi; that turns off useful extensions and
2406# breaks some systems' header files.
2407# AIX                   -qlanglvl=ansi
2408# Ultrix and OSF/1      -std1
2409# HP-UX 10.20 and later -Ae
2410# HP-UX older versions  -Aa -D_HPUX_SOURCE
2411# SVR4                  -Xc -D__EXTENSIONS__
2412for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2413do
2414  CC="$ac_save_CC $ac_arg"
2415  rm -f conftest.$ac_objext
2416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417  (eval $ac_compile) 2>conftest.er1
2418  ac_status=$?
2419  grep -v '^ *+' conftest.er1 >conftest.err
2420  rm -f conftest.er1
2421  cat conftest.err >&5
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); } &&
2424         { ac_try='test -z "$ac_c_werror_flag"
2425                         || test ! -s conftest.err'
2426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427  (eval $ac_try) 2>&5
2428  ac_status=$?
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); }; } &&
2431         { ac_try='test -s conftest.$ac_objext'
2432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433  (eval $ac_try) 2>&5
2434  ac_status=$?
2435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436  (exit $ac_status); }; }; then
2437  ac_cv_prog_cc_stdc=$ac_arg
2438break
2439else
2440  echo "$as_me: failed program was:" >&5
2441sed 's/^/| /' conftest.$ac_ext >&5
2442
2443fi
2444rm -f conftest.err conftest.$ac_objext
2445done
2446rm -f conftest.$ac_ext conftest.$ac_objext
2447CC=$ac_save_CC
2448
2449fi
2450
2451case "x$ac_cv_prog_cc_stdc" in
2452  x|xno)
2453    echo "$as_me:$LINENO: result: none needed" >&5
2454echo "${ECHO_T}none needed" >&6 ;;
2455  *)
2456    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2457echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2458    CC="$CC $ac_cv_prog_cc_stdc" ;;
2459esac
2460
2461# Some people use a C++ compiler to compile C.  Since we use `exit',
2462# in C++ we need to declare it.  In case someone uses the same compiler
2463# for both compiling C and C++ we need to have the C++ compiler decide
2464# the declaration of exit, since it's the most demanding environment.
2465cat >conftest.$ac_ext <<_ACEOF
2466#ifndef __cplusplus
2467  choke me
2468#endif
2469_ACEOF
2470rm -f conftest.$ac_objext
2471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2472  (eval $ac_compile) 2>conftest.er1
2473  ac_status=$?
2474  grep -v '^ *+' conftest.er1 >conftest.err
2475  rm -f conftest.er1
2476  cat conftest.err >&5
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); } &&
2479         { ac_try='test -z "$ac_c_werror_flag"
2480                         || test ! -s conftest.err'
2481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482  (eval $ac_try) 2>&5
2483  ac_status=$?
2484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485  (exit $ac_status); }; } &&
2486         { ac_try='test -s conftest.$ac_objext'
2487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488  (eval $ac_try) 2>&5
2489  ac_status=$?
2490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491  (exit $ac_status); }; }; then
2492  for ac_declaration in \
2493   '' \
2494   'extern "C" void std::exit (int) throw (); using std::exit;' \
2495   'extern "C" void std::exit (int); using std::exit;' \
2496   'extern "C" void exit (int) throw ();' \
2497   'extern "C" void exit (int);' \
2498   'void exit (int);'
2499do
2500  cat >conftest.$ac_ext <<_ACEOF
2501/* confdefs.h.  */
2502_ACEOF
2503cat confdefs.h >>conftest.$ac_ext
2504cat >>conftest.$ac_ext <<_ACEOF
2505/* end confdefs.h.  */
2506$ac_declaration
2507#include <stdlib.h>
2508int
2509main ()
2510{
2511exit (42);
2512  ;
2513  return 0;
2514}
2515_ACEOF
2516rm -f conftest.$ac_objext
2517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518  (eval $ac_compile) 2>conftest.er1
2519  ac_status=$?
2520  grep -v '^ *+' conftest.er1 >conftest.err
2521  rm -f conftest.er1
2522  cat conftest.err >&5
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); } &&
2525         { ac_try='test -z "$ac_c_werror_flag"
2526                         || test ! -s conftest.err'
2527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528  (eval $ac_try) 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }; } &&
2532         { ac_try='test -s conftest.$ac_objext'
2533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534  (eval $ac_try) 2>&5
2535  ac_status=$?
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); }; }; then
2538  :
2539else
2540  echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543continue
2544fi
2545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546  cat >conftest.$ac_ext <<_ACEOF
2547/* confdefs.h.  */
2548_ACEOF
2549cat confdefs.h >>conftest.$ac_ext
2550cat >>conftest.$ac_ext <<_ACEOF
2551/* end confdefs.h.  */
2552$ac_declaration
2553int
2554main ()
2555{
2556exit (42);
2557  ;
2558  return 0;
2559}
2560_ACEOF
2561rm -f conftest.$ac_objext
2562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2563  (eval $ac_compile) 2>conftest.er1
2564  ac_status=$?
2565  grep -v '^ *+' conftest.er1 >conftest.err
2566  rm -f conftest.er1
2567  cat conftest.err >&5
2568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2569  (exit $ac_status); } &&
2570         { ac_try='test -z "$ac_c_werror_flag"
2571                         || test ! -s conftest.err'
2572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2573  (eval $ac_try) 2>&5
2574  ac_status=$?
2575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576  (exit $ac_status); }; } &&
2577         { ac_try='test -s conftest.$ac_objext'
2578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579  (eval $ac_try) 2>&5
2580  ac_status=$?
2581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582  (exit $ac_status); }; }; then
2583  break
2584else
2585  echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588fi
2589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590done
2591rm -f conftest*
2592if test -n "$ac_declaration"; then
2593  echo '#ifdef __cplusplus' >>confdefs.h
2594  echo $ac_declaration      >>confdefs.h
2595  echo '#endif'             >>confdefs.h
2596fi
2597
2598else
2599  echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602fi
2603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2604ac_ext=c
2605ac_cpp='$CPP $CPPFLAGS'
2606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608ac_compiler_gnu=$ac_cv_c_compiler_gnu
2609
2610if test -z "$CC" ; then
2611  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2612echo "$as_me: error: Failed to find a C compiler!" >&2;}
2613   { (exit 1); exit 1; }; }
2614fi
2615# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2616case "$CC" in
2617  cl* | */cl* | CL* | */CL* )
2618    if test "$ac_cv_prog_cc_g" = yes ; then
2619      ac_cv_prog_cc_g=no
2620      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2621echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2622    fi ;;
2623esac
2624CFLAGS="$save_cflags"
2625
2626# Check if a project specific CFLAGS variable has been set
2627if test x$COIN_PRJCT != x; then
2628  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2629  if test x$coin_tmp = xset; then
2630    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2631  fi
2632fi
2633
2634if test x"$CFLAGS" = x; then
2635
2636  coin_add_cflags=
2637  coin_opt_cflags=
2638  coin_dbg_cflags=
2639  coin_warn_cflags=
2640
2641  if test "$GCC" = "yes"; then
2642    case "$CC" in
2643      icc* | */icc*)
2644        ;;
2645      *)
2646        coin_opt_cflags="-O3 -fomit-frame-pointer"
2647        coin_add_cflags="-pipe"
2648        coin_dbg_cflags="-g"
2649        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2650        case $build in
2651          *-darwin*)
2652            ;;
2653          *)
2654            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2655            ;;
2656        esac
2657        case $enable_doscompile in
2658          mingw)
2659            CFLAGS="-mno-cygwin"
2660            cat >conftest.$ac_ext <<_ACEOF
2661/* confdefs.h.  */
2662_ACEOF
2663cat confdefs.h >>conftest.$ac_ext
2664cat >>conftest.$ac_ext <<_ACEOF
2665/* end confdefs.h.  */
2666
2667int
2668main ()
2669{
2670int i=0; i++;
2671  ;
2672  return 0;
2673}
2674_ACEOF
2675rm -f conftest.$ac_objext conftest$ac_exeext
2676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2677  (eval $ac_link) 2>conftest.er1
2678  ac_status=$?
2679  grep -v '^ *+' conftest.er1 >conftest.err
2680  rm -f conftest.er1
2681  cat conftest.err >&5
2682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683  (exit $ac_status); } &&
2684         { ac_try='test -z "$ac_c_werror_flag"
2685                         || test ! -s conftest.err'
2686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2687  (eval $ac_try) 2>&5
2688  ac_status=$?
2689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2690  (exit $ac_status); }; } &&
2691         { ac_try='test -s conftest$ac_exeext'
2692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693  (eval $ac_try) 2>&5
2694  ac_status=$?
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); }; }; then
2697  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2698else
2699  echo "$as_me: failed program was:" >&5
2700sed 's/^/| /' conftest.$ac_ext >&5
2701
2702fi
2703rm -f conftest.err conftest.$ac_objext \
2704      conftest$ac_exeext conftest.$ac_ext
2705            CFLAGS=
2706          ;;
2707        esac
2708    esac
2709  fi
2710  if test -z "$coin_opt_cflags"; then
2711    case $build in
2712      *-cygwin* | *-mingw*)
2713        case "$CC" in
2714          cl* | */cl* | CL* | */CL*)
2715            coin_opt_cflags='-MT -O2'
2716            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2717            coin_dbg_cflags='-MTd'
2718            ;;
2719          icl* | */icl* | ICL* | */ICL*)
2720            coin_opt_cflags='-MT -Ox'
2721            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2722            coin_dbg_cflags='-MTd -debug'
2723            ;;
2724        esac
2725        ;;
2726      *-linux-*)
2727        case "$CC" in
2728          icc* | */icc*)
2729            coin_opt_cflags="-O3 -ip -mp1"
2730            coin_add_cflags=""
2731            coin_dbg_cflags="-g"
2732            # Check if -i_dynamic is necessary (for new glibc library)
2733            CFLAGS=
2734            cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h.  */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h.  */
2740
2741int
2742main ()
2743{
2744int i=0; i++;
2745  ;
2746  return 0;
2747}
2748_ACEOF
2749rm -f conftest.$ac_objext conftest$ac_exeext
2750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2751  (eval $ac_link) 2>conftest.er1
2752  ac_status=$?
2753  grep -v '^ *+' conftest.er1 >conftest.err
2754  rm -f conftest.er1
2755  cat conftest.err >&5
2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757  (exit $ac_status); } &&
2758         { ac_try='test -z "$ac_c_werror_flag"
2759                         || test ! -s conftest.err'
2760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761  (eval $ac_try) 2>&5
2762  ac_status=$?
2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764  (exit $ac_status); }; } &&
2765         { ac_try='test -s conftest$ac_exeext'
2766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767  (eval $ac_try) 2>&5
2768  ac_status=$?
2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770  (exit $ac_status); }; }; then
2771  :
2772else
2773  echo "$as_me: failed program was:" >&5
2774sed 's/^/| /' conftest.$ac_ext >&5
2775
2776coin_add_cflags="-i_dynamic $coin_add_cflags"
2777fi
2778rm -f conftest.err conftest.$ac_objext \
2779      conftest$ac_exeext conftest.$ac_ext
2780            ;;
2781          pgcc* | */pgcc*)
2782            coin_opt_cflags="-fast"
2783            coin_add_cflags="-Kieee -pc 64"
2784            coin_dbg_cflags="-g"
2785            ;;
2786        esac
2787        ;;
2788      *-ibm-*)
2789        case "$CC" in
2790          xlc* | */xlc* | mpxlc* | */mpxlc*)
2791            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2792            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2793            coin_dbg_cflags="-g"
2794          ;;
2795        esac
2796        ;;
2797      *-hp-*)
2798        coin_opt_cflags="-O"
2799        coin_add_cflags="-Ae"
2800        coin_dbg_cflags="-g"
2801        ;;
2802      *-*-solaris*)
2803        coin_opt_cflags="-xO4"
2804        coin_dbg_cflags="-g"
2805        ;;
2806      *-sgi-*)
2807        coin_opt_cflags="-O -OPT:Olimit=0"
2808        coin_dbg_cflags="-g"
2809        ;;
2810    esac
2811  fi
2812
2813  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2814    coin_dbg_cflags="-g"
2815  fi
2816
2817  if test -z "$coin_opt_cflags"; then
2818    # Try if -O option works if nothing else is set
2819    CFLAGS="-O"
2820    cat >conftest.$ac_ext <<_ACEOF
2821/* confdefs.h.  */
2822_ACEOF
2823cat confdefs.h >>conftest.$ac_ext
2824cat >>conftest.$ac_ext <<_ACEOF
2825/* end confdefs.h.  */
2826
2827int
2828main ()
2829{
2830int i=0; i++;
2831  ;
2832  return 0;
2833}
2834_ACEOF
2835rm -f conftest.$ac_objext conftest$ac_exeext
2836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2837  (eval $ac_link) 2>conftest.er1
2838  ac_status=$?
2839  grep -v '^ *+' conftest.er1 >conftest.err
2840  rm -f conftest.er1
2841  cat conftest.err >&5
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); } &&
2844         { ac_try='test -z "$ac_c_werror_flag"
2845                         || test ! -s conftest.err'
2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847  (eval $ac_try) 2>&5
2848  ac_status=$?
2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850  (exit $ac_status); }; } &&
2851         { ac_try='test -s conftest$ac_exeext'
2852  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853  (eval $ac_try) 2>&5
2854  ac_status=$?
2855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856  (exit $ac_status); }; }; then
2857  coin_opt_cflags="-O"
2858else
2859  echo "$as_me: failed program was:" >&5
2860sed 's/^/| /' conftest.$ac_ext >&5
2861
2862fi
2863rm -f conftest.err conftest.$ac_objext \
2864      conftest$ac_exeext conftest.$ac_ext
2865  fi
2866
2867  # if PM doesn't want the warning messages, take them out
2868  if test x"$coin_skip_warn_cflags" = xyes; then
2869    coin_warn_cflags=
2870  fi
2871
2872  if test x${DBG_CFLAGS+set} != xset; then
2873    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2874  fi
2875  if test x${OPT_CFLAGS+set} != xset; then
2876    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2877  fi
2878
2879  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2880  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2881
2882  if test "$coin_debug_compile" = "true"; then
2883    CFLAGS="$DBG_CFLAGS"
2884  else
2885    CFLAGS="$OPT_CFLAGS"
2886  fi
2887else
2888  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2889  if test x${DBG_CFLAGS+set} != xset; then
2890    DBG_CFLAGS="$CFLAGS"
2891  fi
2892  if test x${OPT_CFLAGS+set} != xset; then
2893    OPT_CFLAGS="$CFLAGS"
2894  fi
2895fi
2896
2897# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2898
2899case "$CFLAGS" in
2900  *-mno-cygwin*)
2901    if test x${CPPFLAGS+set} != xset ; then
2902      CPPFLAGS="-mno-cygwin"
2903    else
2904      case "$CPPFLAGS" in
2905        *-mno-cygwin*)
2906          ;;
2907        *)
2908          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2909          ;;
2910      esac
2911    fi ;;
2912esac
2913
2914# Try if CFLAGS works
2915save_CFLAGS="$CFLAGS"
2916cat >conftest.$ac_ext <<_ACEOF
2917/* confdefs.h.  */
2918_ACEOF
2919cat confdefs.h >>conftest.$ac_ext
2920cat >>conftest.$ac_ext <<_ACEOF
2921/* end confdefs.h.  */
2922
2923int
2924main ()
2925{
2926int i=0; i++;
2927  ;
2928  return 0;
2929}
2930_ACEOF
2931rm -f conftest.$ac_objext conftest$ac_exeext
2932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2933  (eval $ac_link) 2>conftest.er1
2934  ac_status=$?
2935  grep -v '^ *+' conftest.er1 >conftest.err
2936  rm -f conftest.er1
2937  cat conftest.err >&5
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); } &&
2940         { ac_try='test -z "$ac_c_werror_flag"
2941                         || test ! -s conftest.err'
2942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943  (eval $ac_try) 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }; } &&
2947         { ac_try='test -s conftest$ac_exeext'
2948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2949  (eval $ac_try) 2>&5
2950  ac_status=$?
2951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952  (exit $ac_status); }; }; then
2953  :
2954else
2955  echo "$as_me: failed program was:" >&5
2956sed 's/^/| /' conftest.$ac_ext >&5
2957
2958CFLAGS=
2959fi
2960rm -f conftest.err conftest.$ac_objext \
2961      conftest$ac_exeext conftest.$ac_ext
2962if test -z "$CFLAGS"; then
2963  { 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
2964echo "$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;}
2965  CFLAGS='-O'
2966  cat >conftest.$ac_ext <<_ACEOF
2967/* confdefs.h.  */
2968_ACEOF
2969cat confdefs.h >>conftest.$ac_ext
2970cat >>conftest.$ac_ext <<_ACEOF
2971/* end confdefs.h.  */
2972
2973int
2974main ()
2975{
2976int i=0; i++;
2977  ;
2978  return 0;
2979}
2980_ACEOF
2981rm -f conftest.$ac_objext conftest$ac_exeext
2982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2983  (eval $ac_link) 2>conftest.er1
2984  ac_status=$?
2985  grep -v '^ *+' conftest.er1 >conftest.err
2986  rm -f conftest.er1
2987  cat conftest.err >&5
2988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); } &&
2990         { ac_try='test -z "$ac_c_werror_flag"
2991                         || test ! -s conftest.err'
2992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2993  (eval $ac_try) 2>&5
2994  ac_status=$?
2995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996  (exit $ac_status); }; } &&
2997         { ac_try='test -s conftest$ac_exeext'
2998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999  (eval $ac_try) 2>&5
3000  ac_status=$?
3001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002  (exit $ac_status); }; }; then
3003  :
3004else
3005  echo "$as_me: failed program was:" >&5
3006sed 's/^/| /' conftest.$ac_ext >&5
3007
3008CFLAGS=
3009fi
3010rm -f conftest.err conftest.$ac_objext \
3011      conftest$ac_exeext conftest.$ac_ext
3012  if test -z "$CFLAGS"; then
3013    { 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
3014echo "$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;}
3015  fi
3016fi
3017
3018{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3019echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3020
3021
3022if test x"$MPICC" = x; then :; else
3023  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3024echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3025  CC="$MPICC"
3026fi
3027
3028# Correct ADDLIBS initialization if we are using the MS compiler
3029case "$CC" in
3030  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3031    ADDLIBS=
3032    case $build in
3033  *-mingw*)
3034    if test "${LD+set}" = set; then :; else
3035      LD=link
3036    fi
3037    ;;
3038 esac
3039 case $enable_doscompile in
3040   msvc)
3041     if test "x${LD+set}" = xset; then :; else
3042       LD=link
3043     fi
3044     ;;
3045 esac
3046
3047    ;;
3048esac
3049
3050ac_ext=c
3051ac_cpp='$CPP $CPPFLAGS'
3052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054ac_compiler_gnu=$ac_cv_c_compiler_gnu
3055
3056
3057
3058# Get the name of the C++ compiler and appropriate compiler options
3059
3060 #Let's try if that overcomes configuration problem with VC++ 6.0
3061
3062ac_ext=cc
3063ac_cpp='$CXXCPP $CPPFLAGS'
3064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3067
3068
3069
3070
3071
3072
3073
3074coin_has_cxx=yes
3075
3076save_cxxflags="$CXXFLAGS"
3077# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3078case $build in
3079  *-cygwin* | *-mingw*)
3080             if test "$enable_doscompile" = msvc ; then
3081               comps="icl cl"
3082             else
3083               comps="g++ cl"
3084             fi ;;
3085  *-*-solaris*)
3086             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3087  *-darwin*) comps="g++ c++ CC" ;;
3088          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3089esac
3090
3091# We delete the cached value, since the test might not have been
3092# performed with our choice of compilers earlier
3093$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3094# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3095ac_ext=cc
3096ac_cpp='$CXXCPP $CPPFLAGS'
3097ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3100if test -n "$ac_tool_prefix"; then
3101  for ac_prog in $CCC $comps
3102  do
3103    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3105echo "$as_me:$LINENO: checking for $ac_word" >&5
3106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3107if test "${ac_cv_prog_CXX+set}" = set; then
3108  echo $ECHO_N "(cached) $ECHO_C" >&6
3109else
3110  if test -n "$CXX"; then
3111  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3112else
3113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116  IFS=$as_save_IFS
3117  test -z "$as_dir" && as_dir=.
3118  for ac_exec_ext in '' $ac_executable_extensions; do
3119  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3121    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122    break 2
3123  fi
3124done
3125done
3126
3127fi
3128fi
3129CXX=$ac_cv_prog_CXX
3130if test -n "$CXX"; then
3131  echo "$as_me:$LINENO: result: $CXX" >&5
3132echo "${ECHO_T}$CXX" >&6
3133else
3134  echo "$as_me:$LINENO: result: no" >&5
3135echo "${ECHO_T}no" >&6
3136fi
3137
3138    test -n "$CXX" && break
3139  done
3140fi
3141if test -z "$CXX"; then
3142  ac_ct_CXX=$CXX
3143  for ac_prog in $CCC $comps
3144do
3145  # Extract the first word of "$ac_prog", so it can be a program name with args.
3146set dummy $ac_prog; ac_word=$2
3147echo "$as_me:$LINENO: checking for $ac_word" >&5
3148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3150  echo $ECHO_N "(cached) $ECHO_C" >&6
3151else
3152  if test -n "$ac_ct_CXX"; then
3153  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160  for ac_exec_ext in '' $ac_executable_extensions; do
3161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162    ac_cv_prog_ac_ct_CXX="$ac_prog"
3163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166done
3167done
3168
3169fi
3170fi
3171ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3172if test -n "$ac_ct_CXX"; then
3173  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3174echo "${ECHO_T}$ac_ct_CXX" >&6
3175else
3176  echo "$as_me:$LINENO: result: no" >&5
3177echo "${ECHO_T}no" >&6
3178fi
3179
3180  test -n "$ac_ct_CXX" && break
3181done
3182test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3183
3184  CXX=$ac_ct_CXX
3185fi
3186
3187
3188# Provide some information about the compiler.
3189echo "$as_me:$LINENO:" \
3190     "checking for C++ compiler version" >&5
3191ac_compiler=`set X $ac_compile; echo $2`
3192{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3193  (eval $ac_compiler --version </dev/null >&5) 2>&5
3194  ac_status=$?
3195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }
3197{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3198  (eval $ac_compiler -v </dev/null >&5) 2>&5
3199  ac_status=$?
3200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201  (exit $ac_status); }
3202{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3203  (eval $ac_compiler -V </dev/null >&5) 2>&5
3204  ac_status=$?
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); }
3207
3208echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3209echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3210if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3211  echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213  cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h.  */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h.  */
3219
3220int
3221main ()
3222{
3223#ifndef __GNUC__
3224       choke me
3225#endif
3226
3227  ;
3228  return 0;
3229}
3230_ACEOF
3231rm -f conftest.$ac_objext
3232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3233  (eval $ac_compile) 2>conftest.er1
3234  ac_status=$?
3235  grep -v '^ *+' conftest.er1 >conftest.err
3236  rm -f conftest.er1
3237  cat conftest.err >&5
3238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239  (exit $ac_status); } &&
3240         { ac_try='test -z "$ac_cxx_werror_flag"
3241                         || test ! -s conftest.err'
3242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243  (eval $ac_try) 2>&5
3244  ac_status=$?
3245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246  (exit $ac_status); }; } &&
3247         { ac_try='test -s conftest.$ac_objext'
3248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249  (eval $ac_try) 2>&5
3250  ac_status=$?
3251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252  (exit $ac_status); }; }; then
3253  ac_compiler_gnu=yes
3254else
3255  echo "$as_me: failed program was:" >&5
3256sed 's/^/| /' conftest.$ac_ext >&5
3257
3258ac_compiler_gnu=no
3259fi
3260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3261ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3262
3263fi
3264echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3265echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3266GXX=`test $ac_compiler_gnu = yes && echo yes`
3267ac_test_CXXFLAGS=${CXXFLAGS+set}
3268ac_save_CXXFLAGS=$CXXFLAGS
3269CXXFLAGS="-g"
3270echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3271echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3272if test "${ac_cv_prog_cxx_g+set}" = set; then
3273  echo $ECHO_N "(cached) $ECHO_C" >&6
3274else
3275  cat >conftest.$ac_ext <<_ACEOF
3276/* confdefs.h.  */
3277_ACEOF
3278cat confdefs.h >>conftest.$ac_ext
3279cat >>conftest.$ac_ext <<_ACEOF
3280/* end confdefs.h.  */
3281
3282int
3283main ()
3284{
3285
3286  ;
3287  return 0;
3288}
3289_ACEOF
3290rm -f conftest.$ac_objext
3291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3292  (eval $ac_compile) 2>conftest.er1
3293  ac_status=$?
3294  grep -v '^ *+' conftest.er1 >conftest.err
3295  rm -f conftest.er1
3296  cat conftest.err >&5
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); } &&
3299         { ac_try='test -z "$ac_cxx_werror_flag"
3300                         || test ! -s conftest.err'
3301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302  (eval $ac_try) 2>&5
3303  ac_status=$?
3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305  (exit $ac_status); }; } &&
3306         { ac_try='test -s conftest.$ac_objext'
3307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308  (eval $ac_try) 2>&5
3309  ac_status=$?
3310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311  (exit $ac_status); }; }; then
3312  ac_cv_prog_cxx_g=yes
3313else
3314  echo "$as_me: failed program was:" >&5
3315sed 's/^/| /' conftest.$ac_ext >&5
3316
3317ac_cv_prog_cxx_g=no
3318fi
3319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3320fi
3321echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3322echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3323if test "$ac_test_CXXFLAGS" = set; then
3324  CXXFLAGS=$ac_save_CXXFLAGS
3325elif test $ac_cv_prog_cxx_g = yes; then
3326  if test "$GXX" = yes; then
3327    CXXFLAGS="-g -O2"
3328  else
3329    CXXFLAGS="-g"
3330  fi
3331else
3332  if test "$GXX" = yes; then
3333    CXXFLAGS="-O2"
3334  else
3335    CXXFLAGS=
3336  fi
3337fi
3338for ac_declaration in \
3339   '' \
3340   'extern "C" void std::exit (int) throw (); using std::exit;' \
3341   'extern "C" void std::exit (int); using std::exit;' \
3342   'extern "C" void exit (int) throw ();' \
3343   'extern "C" void exit (int);' \
3344   'void exit (int);'
3345do
3346  cat >conftest.$ac_ext <<_ACEOF
3347/* confdefs.h.  */
3348_ACEOF
3349cat confdefs.h >>conftest.$ac_ext
3350cat >>conftest.$ac_ext <<_ACEOF
3351/* end confdefs.h.  */
3352$ac_declaration
3353#include <stdlib.h>
3354int
3355main ()
3356{
3357exit (42);
3358  ;
3359  return 0;
3360}
3361_ACEOF
3362rm -f conftest.$ac_objext
3363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364  (eval $ac_compile) 2>conftest.er1
3365  ac_status=$?
3366  grep -v '^ *+' conftest.er1 >conftest.err
3367  rm -f conftest.er1
3368  cat conftest.err >&5
3369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370  (exit $ac_status); } &&
3371         { ac_try='test -z "$ac_cxx_werror_flag"
3372                         || test ! -s conftest.err'
3373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374  (eval $ac_try) 2>&5
3375  ac_status=$?
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); }; } &&
3378         { ac_try='test -s conftest.$ac_objext'
3379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3380  (eval $ac_try) 2>&5
3381  ac_status=$?
3382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383  (exit $ac_status); }; }; then
3384  :
3385else
3386  echo "$as_me: failed program was:" >&5
3387sed 's/^/| /' conftest.$ac_ext >&5
3388
3389continue
3390fi
3391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3392  cat >conftest.$ac_ext <<_ACEOF
3393/* confdefs.h.  */
3394_ACEOF
3395cat confdefs.h >>conftest.$ac_ext
3396cat >>conftest.$ac_ext <<_ACEOF
3397/* end confdefs.h.  */
3398$ac_declaration
3399int
3400main ()
3401{
3402exit (42);
3403  ;
3404  return 0;
3405}
3406_ACEOF
3407rm -f conftest.$ac_objext
3408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3409  (eval $ac_compile) 2>conftest.er1
3410  ac_status=$?
3411  grep -v '^ *+' conftest.er1 >conftest.err
3412  rm -f conftest.er1
3413  cat conftest.err >&5
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); } &&
3416         { ac_try='test -z "$ac_cxx_werror_flag"
3417                         || test ! -s conftest.err'
3418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419  (eval $ac_try) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); }; } &&
3423         { ac_try='test -s conftest.$ac_objext'
3424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425  (eval $ac_try) 2>&5
3426  ac_status=$?
3427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428  (exit $ac_status); }; }; then
3429  break
3430else
3431  echo "$as_me: failed program was:" >&5
3432sed 's/^/| /' conftest.$ac_ext >&5
3433
3434fi
3435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3436done
3437rm -f conftest*
3438if test -n "$ac_declaration"; then
3439  echo '#ifdef __cplusplus' >>confdefs.h
3440  echo $ac_declaration      >>confdefs.h
3441  echo '#endif'             >>confdefs.h
3442fi
3443
3444ac_ext=cc
3445ac_cpp='$CXXCPP $CPPFLAGS'
3446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3449
3450if test -z "$CXX" ; then
3451  { { echo "$as_me:$LINENO: error: Failed to find a C++ compiler!" >&5
3452echo "$as_me: error: Failed to find a C++ compiler!" >&2;}
3453   { (exit 1); exit 1; }; }
3454fi
3455
3456# It seems that we need to cleanup something here for the Windows
3457case "$CXX" in
3458  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3459    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3460    mv confdefs.hh confdefs.h
3461    ;;
3462esac
3463
3464# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3465case "$CXX" in
3466  cl* | */cl* | CL* | */CL* )
3467    if test "$ac_cv_prog_cxx_g" = yes ; then
3468      ac_cv_prog_cxx_g=no
3469      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3470echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3471    fi ;;
3472esac
3473CXXFLAGS="$save_cxxflags"
3474
3475# Check if a project specific CXXFLAGS variable has been set
3476if test x$COIN_PRJCT != x; then
3477  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3478  if test x$coin_tmp = xset; then
3479    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3480  fi
3481fi
3482
3483if test x"$CXXFLAGS" = x; then
3484
3485# ToDo decide whether we want -DNDEBUG for optimization
3486  coin_add_cxxflags=
3487  coin_opt_cxxflags=
3488  coin_dbg_cxxflags=
3489  coin_warn_cxxflags=
3490
3491  if test "$GXX" = "yes"; then
3492    case "$CXX" in
3493      icpc* | */icpc*)
3494        ;;
3495      *)
3496# ToDo decide about unroll-loops
3497        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3498        coin_add_cxxflags="-pipe"
3499        coin_dbg_cxxflags="-g"
3500        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3501        case $build in
3502          *-darwin*)
3503            ;;
3504          *)
3505            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3506            ;;
3507        esac
3508
3509        case $enable_doscompile in
3510          mingw)
3511            CXXFLAGS="-mno-cygwin"
3512            cat >conftest.$ac_ext <<_ACEOF
3513/* confdefs.h.  */
3514_ACEOF
3515cat confdefs.h >>conftest.$ac_ext
3516cat >>conftest.$ac_ext <<_ACEOF
3517/* end confdefs.h.  */
3518
3519int
3520main ()
3521{
3522int i=0; i++;
3523  ;
3524  return 0;
3525}
3526_ACEOF
3527rm -f conftest.$ac_objext conftest$ac_exeext
3528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3529  (eval $ac_link) 2>conftest.er1
3530  ac_status=$?
3531  grep -v '^ *+' conftest.er1 >conftest.err
3532  rm -f conftest.er1
3533  cat conftest.err >&5
3534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535  (exit $ac_status); } &&
3536         { ac_try='test -z "$ac_cxx_werror_flag"
3537                         || test ! -s conftest.err'
3538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539  (eval $ac_try) 2>&5
3540  ac_status=$?
3541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542  (exit $ac_status); }; } &&
3543         { ac_try='test -s conftest$ac_exeext'
3544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545  (eval $ac_try) 2>&5
3546  ac_status=$?
3547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548  (exit $ac_status); }; }; then
3549  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3550else
3551  echo "$as_me: failed program was:" >&5
3552sed 's/^/| /' conftest.$ac_ext >&5
3553
3554fi
3555rm -f conftest.err conftest.$ac_objext \
3556      conftest$ac_exeext conftest.$ac_ext
3557            CXXFLAGS=
3558          ;;
3559        esac
3560    esac
3561  fi
3562
3563# Note that we do not need to cover GCC in the following tests.
3564
3565  if test -z "$coin_opt_cxxflags"; then
3566    case $build in
3567      *-cygwin* | *-mingw*)
3568        case "$CXX" in
3569          cl* | */cl* | CL* | */CL*)
3570            # The MT and MTd options are mutually exclusive
3571            coin_opt_cxxflags='-MT -O2'
3572            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3573            coin_dbg_cxxflags='-MTd'
3574            ;;
3575          icl* | */icl* | ICL* | */ICL*)
3576            # The MT and MTd options are mutually exclusive
3577            coin_opt_cxxflags='-MT -Ox'
3578            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3579            coin_dbg_cxxflags='-MTd -debug'
3580            ;;
3581        esac
3582        ;;
3583      *-linux-*)
3584        case "$CXX" in
3585          icpc* | */icpc*)
3586            coin_opt_cxxflags="-O3 -ip -mp1"
3587            coin_add_cxxflags=""
3588            coin_dbg_cxxflags="-g"
3589            # Check if -i_dynamic is necessary (for new glibc library)
3590            CXXFLAGS=
3591            cat >conftest.$ac_ext <<_ACEOF
3592/* confdefs.h.  */
3593_ACEOF
3594cat confdefs.h >>conftest.$ac_ext
3595cat >>conftest.$ac_ext <<_ACEOF
3596/* end confdefs.h.  */
3597
3598int
3599main ()
3600{
3601int i=0; i++;
3602  ;
3603  return 0;
3604}
3605_ACEOF
3606rm -f conftest.$ac_objext conftest$ac_exeext
3607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3608  (eval $ac_link) 2>conftest.er1
3609  ac_status=$?
3610  grep -v '^ *+' conftest.er1 >conftest.err
3611  rm -f conftest.er1
3612  cat conftest.err >&5
3613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614  (exit $ac_status); } &&
3615         { ac_try='test -z "$ac_cxx_werror_flag"
3616                         || test ! -s conftest.err'
3617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618  (eval $ac_try) 2>&5
3619  ac_status=$?
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); }; } &&
3622         { ac_try='test -s conftest$ac_exeext'
3623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624  (eval $ac_try) 2>&5
3625  ac_status=$?
3626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627  (exit $ac_status); }; }; then
3628  :
3629else
3630  echo "$as_me: failed program was:" >&5
3631sed 's/^/| /' conftest.$ac_ext >&5
3632
3633coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3634fi
3635rm -f conftest.err conftest.$ac_objext \
3636      conftest$ac_exeext conftest.$ac_ext
3637            ;;
3638          pgCC* | */pgCC*)
3639            coin_opt_cxxflags="-fast"
3640            coin_add_cxxflags="-Kieee -pc 64"
3641            coin_dbg_cxxflags="-g"
3642            ;;
3643        esac
3644        ;;
3645      *-ibm-*)
3646        case "$CXX" in
3647          xlC* | */xlC* | mpxlC* | */mpxlC*)
3648            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3649            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3650            coin_dbg_cxxflags="-g"
3651            ;;
3652        esac
3653        ;;
3654      *-hp-*)
3655        case "$CXX" in
3656          aCC* | */aCC* )
3657            coin_opt_cxxflags="-O"
3658            coin_add_cxxflags="-AA"
3659            coin_dbg_cxxflags="-g"
3660            ;;
3661        esac
3662        ;;
3663      *-*-solaris*)
3664          coin_opt_cxxflags="-O4"
3665          coin_dbg_cxxflags="-g"
3666        ;;
3667    esac
3668  fi
3669
3670# Generic flag settings. If these don't work, add a case above.
3671
3672  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3673    coin_dbg_cxxflags="-g"
3674  fi
3675
3676  if test -z "$coin_opt_cxxflags"; then
3677    # Try if -O option works if nothing else is set
3678    CXXFLAGS=-O
3679    cat >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  coin_opt_cxxflags="-O"
3717else
3718  echo "$as_me: failed program was:" >&5
3719sed 's/^/| /' conftest.$ac_ext >&5
3720
3721fi
3722rm -f conftest.err conftest.$ac_objext \
3723      conftest$ac_exeext conftest.$ac_ext
3724  fi
3725
3726  # if PM doesn't want the warning messages, take them out
3727  if test x"$coin_skip_warn_cxxflags" = xyes; then
3728    coin_warn_cxxflags=
3729  fi
3730
3731# Do final setup of flags based on values determined above.
3732
3733  if test x${DBG_CXXFLAGS+set} != xset; then
3734    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3735  fi
3736  if test x${OPT_CXXFLAGS+set} != xset; then
3737    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3738  fi
3739
3740  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3741  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3742
3743  if test "$coin_debug_compile" = "true"; then
3744    CXXFLAGS="$DBG_CXXFLAGS"
3745  else
3746    CXXFLAGS="$OPT_CXXFLAGS"
3747  fi
3748
3749# Handle the case where CXXFLAGS was set externally.
3750else
3751  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3752  if test x${DBG_CXXFLAGS+set} != xset; then
3753    DBG_CXXFLAGS="$CXXFLAGS"
3754  fi
3755  if test x${OPT_CXXFLAGS+set} != xset; then
3756    OPT_CXXFLAGS="$CXXFLAGS"
3757  fi
3758fi
3759
3760# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3761
3762case "$CXXFLAGS" in
3763  *-mno-cygwin*)
3764    if test x${CPPFLAGS+set} != xset ; then
3765      CPPFLAGS="-mno-cygwin"
3766    else
3767      case "$CPPFLAGS" in
3768        *-mno-cygwin*)
3769          ;;
3770        *)
3771          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3772          ;;
3773      esac
3774    fi ;;
3775esac
3776
3777# Try if CXXFLAGS works
3778save_CXXFLAGS="$CXXFLAGS"
3779cat >conftest.$ac_ext <<_ACEOF
3780/* confdefs.h.  */
3781_ACEOF
3782cat confdefs.h >>conftest.$ac_ext
3783cat >>conftest.$ac_ext <<_ACEOF
3784/* end confdefs.h.  */
3785
3786int
3787main ()
3788{
3789int i=0; i++;
3790  ;
3791  return 0;
3792}
3793_ACEOF
3794rm -f conftest.$ac_objext conftest$ac_exeext
3795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3796  (eval $ac_link) 2>conftest.er1
3797  ac_status=$?
3798  grep -v '^ *+' conftest.er1 >conftest.err
3799  rm -f conftest.er1
3800  cat conftest.err >&5
3801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802  (exit $ac_status); } &&
3803         { ac_try='test -z "$ac_cxx_werror_flag"
3804                         || test ! -s conftest.err'
3805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3806  (eval $ac_try) 2>&5
3807  ac_status=$?
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); }; } &&
3810         { ac_try='test -s conftest$ac_exeext'
3811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812  (eval $ac_try) 2>&5
3813  ac_status=$?
3814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815  (exit $ac_status); }; }; then
3816  :
3817else
3818  echo "$as_me: failed program was:" >&5
3819sed 's/^/| /' conftest.$ac_ext >&5
3820
3821CXXFLAGS=
3822fi
3823rm -f conftest.err conftest.$ac_objext \
3824      conftest$ac_exeext conftest.$ac_ext
3825if test -z "$CXXFLAGS"; then
3826  { 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
3827echo "$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;}
3828  CXXFLAGS='-O'
3829  cat >conftest.$ac_ext <<_ACEOF
3830/* confdefs.h.  */
3831_ACEOF
3832cat confdefs.h >>conftest.$ac_ext
3833cat >>conftest.$ac_ext <<_ACEOF
3834/* end confdefs.h.  */
3835
3836int
3837main ()
3838{
3839int i=0; i++;
3840  ;
3841  return 0;
3842}
3843_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext
3845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846  (eval $ac_link) 2>conftest.er1
3847  ac_status=$?
3848  grep -v '^ *+' conftest.er1 >conftest.err
3849  rm -f conftest.er1
3850  cat conftest.err >&5
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); } &&
3853         { ac_try='test -z "$ac_cxx_werror_flag"
3854                         || test ! -s conftest.err'
3855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856  (eval $ac_try) 2>&5
3857  ac_status=$?
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); }; } &&
3860         { ac_try='test -s conftest$ac_exeext'
3861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862  (eval $ac_try) 2>&5
3863  ac_status=$?
3864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865  (exit $ac_status); }; }; then
3866  :
3867else
3868  echo "$as_me: failed program was:" >&5
3869sed 's/^/| /' conftest.$ac_ext >&5
3870
3871CXXFLAGS=
3872fi
3873rm -f conftest.err conftest.$ac_objext \
3874      conftest$ac_exeext conftest.$ac_ext
3875  if test -z "$CXXFLAGS"; then
3876    { 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
3877echo "$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;}
3878  fi
3879fi
3880
3881{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
3882echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
3883
3884
3885if test x"$MPICXX" = x; then :; else
3886  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
3887echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
3888  CXX="$MPICXX"
3889fi
3890
3891case "$CXX" in
3892  cl* | */cl* | CL* | */CL* )
3893    case $build in
3894  *-mingw*)
3895    if test "${LD+set}" = set; then :; else
3896      LD=link
3897    fi
3898    ;;
3899 esac
3900 case $enable_doscompile in
3901   msvc)
3902     if test "x${LD+set}" = xset; then :; else
3903       LD=link
3904     fi
3905     ;;
3906 esac
3907
3908    ;;
3909esac
3910
3911ac_ext=c
3912ac_cpp='$CPP $CPPFLAGS'
3913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
3917
3918
3919# Get the name of the Fortran compiler and appropriate compiler options
3920case $build in
3921  *-cygwin* | *-mingw*)
3922     if test "$enable_doscompile" = msvc ; then
3923       coin_f77_comps="ifort fl32 compile_f2c"
3924     else
3925       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
3926     fi ;;
3927  *-*-solaris*)
3928     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
3929  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
3930 esac
3931
3932
3933
3934
3935
3936
3937ac_ext=f
3938ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
3939ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3940ac_compiler_gnu=$ac_cv_f77_compiler_gnu
3941
3942
3943
3944
3945
3946
3947coin_has_f77=yes
3948
3949save_fflags="$FFLAGS"
3950
3951# We delete the cached value, since the test might not have been
3952# performed with our choice of compilers earlier
3953$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
3954
3955# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
3956# coin_f77_comps to see if there's a program that matches one of the names.
3957# If there's no such program, F77 = unavailable. If we match the name,
3958# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
3959# compiler.
3960# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
3961
3962
3963{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
3964echo "$as_me: Trying to determine Fortran compiler name" >&6;}
3965for ac_prog in $coin_f77_comps
3966do
3967  # Extract the first word of "$ac_prog", so it can be a program name with args.
3968set dummy $ac_prog; ac_word=$2
3969echo "$as_me:$LINENO: checking for $ac_word" >&5
3970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971if test "${ac_cv_prog_F77+set}" = set; then
3972  echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974  if test -n "$F77"; then
3975  ac_cv_prog_F77="$F77" # Let the user override the test.
3976else
3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980  IFS=$as_save_IFS
3981  test -z "$as_dir" && as_dir=.
3982  for ac_exec_ext in '' $ac_executable_extensions; do
3983  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984    ac_cv_prog_F77="$ac_prog"
3985    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3986    break 2
3987  fi
3988done
3989done
3990
3991fi
3992fi
3993F77=$ac_cv_prog_F77
3994if test -n "$F77"; then
3995  echo "$as_me:$LINENO: result: $F77" >&5
3996echo "${ECHO_T}$F77" >&6
3997else
3998  echo "$as_me:$LINENO: result: no" >&5
3999echo "${ECHO_T}no" >&6
4000fi
4001
4002  test -n "$F77" && break
4003done
4004test -n "$F77" || F77="unavailable"
4005
4006
4007if test "$F77" != "unavailable" ; then
4008  ac_ext=f
4009ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4010ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4012if test -n "$ac_tool_prefix"; then
4013  for ac_prog in $coin_f77_comps
4014  do
4015    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4016set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4017echo "$as_me:$LINENO: checking for $ac_word" >&5
4018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4019if test "${ac_cv_prog_F77+set}" = set; then
4020  echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022  if test -n "$F77"; then
4023  ac_cv_prog_F77="$F77" # Let the user override the test.
4024else
4025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026for as_dir in $PATH
4027do
4028  IFS=$as_save_IFS
4029  test -z "$as_dir" && as_dir=.
4030  for ac_exec_ext in '' $ac_executable_extensions; do
4031  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4032    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4033    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4034    break 2
4035  fi
4036done
4037done
4038
4039fi
4040fi
4041F77=$ac_cv_prog_F77
4042if test -n "$F77"; then
4043  echo "$as_me:$LINENO: result: $F77" >&5
4044echo "${ECHO_T}$F77" >&6
4045else
4046  echo "$as_me:$LINENO: result: no" >&5
4047echo "${ECHO_T}no" >&6
4048fi
4049
4050    test -n "$F77" && break
4051  done
4052fi
4053if test -z "$F77"; then
4054  ac_ct_F77=$F77
4055  for ac_prog in $coin_f77_comps
4056do
4057  # Extract the first word of "$ac_prog", so it can be a program name with args.
4058set dummy $ac_prog; ac_word=$2
4059echo "$as_me:$LINENO: checking for $ac_word" >&5
4060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4061if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4062  echo $ECHO_N "(cached) $ECHO_C" >&6
4063else
4064  if test -n "$ac_ct_F77"; then
4065  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4066else
4067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068for as_dir in $PATH
4069do
4070  IFS=$as_save_IFS
4071  test -z "$as_dir" && as_dir=.
4072  for ac_exec_ext in '' $ac_executable_extensions; do
4073  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074    ac_cv_prog_ac_ct_F77="$ac_prog"
4075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4076    break 2
4077  fi
4078done
4079done
4080
4081fi
4082fi
4083ac_ct_F77=$ac_cv_prog_ac_ct_F77
4084if test -n "$ac_ct_F77"; then
4085  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4086echo "${ECHO_T}$ac_ct_F77" >&6
4087else
4088  echo "$as_me:$LINENO: result: no" >&5
4089echo "${ECHO_T}no" >&6
4090fi
4091
4092  test -n "$ac_ct_F77" && break
4093done
4094
4095  F77=$ac_ct_F77
4096fi
4097
4098
4099# Provide some information about the compiler.
4100echo "$as_me:4100:" \
4101     "checking for Fortran 77 compiler version" >&5
4102ac_compiler=`set X $ac_compile; echo $2`
4103{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4104  (eval $ac_compiler --version </dev/null >&5) 2>&5
4105  ac_status=$?
4106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107  (exit $ac_status); }
4108{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4109  (eval $ac_compiler -v </dev/null >&5) 2>&5
4110  ac_status=$?
4111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112  (exit $ac_status); }
4113{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4114  (eval $ac_compiler -V </dev/null >&5) 2>&5
4115  ac_status=$?
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); }
4118rm -f a.out
4119
4120# If we don't use `.F' as extension, the preprocessor is not run on the
4121# input file.  (Note that this only needs to work for GNU compilers.)
4122ac_save_ext=$ac_ext
4123ac_ext=F
4124echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4125echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4126if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4127  echo $ECHO_N "(cached) $ECHO_C" >&6
4128else
4129  cat >conftest.$ac_ext <<_ACEOF
4130      program main
4131#ifndef __GNUC__
4132       choke me
4133#endif
4134
4135      end
4136_ACEOF
4137rm -f conftest.$ac_objext
4138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4139  (eval $ac_compile) 2>conftest.er1
4140  ac_status=$?
4141  grep -v '^ *+' conftest.er1 >conftest.err
4142  rm -f conftest.er1
4143  cat conftest.err >&5
4144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145  (exit $ac_status); } &&
4146         { ac_try='test -z "$ac_f77_werror_flag"
4147                         || test ! -s conftest.err'
4148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149  (eval $ac_try) 2>&5
4150  ac_status=$?
4151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152  (exit $ac_status); }; } &&
4153         { ac_try='test -s conftest.$ac_objext'
4154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155  (eval $ac_try) 2>&5
4156  ac_status=$?
4157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158  (exit $ac_status); }; }; then
4159  ac_compiler_gnu=yes
4160else
4161  echo "$as_me: failed program was:" >&5
4162sed 's/^/| /' conftest.$ac_ext >&5
4163
4164ac_compiler_gnu=no
4165fi
4166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4167ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4168
4169fi
4170echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4171echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4172ac_ext=$ac_save_ext
4173ac_test_FFLAGS=${FFLAGS+set}
4174ac_save_FFLAGS=$FFLAGS
4175FFLAGS=
4176echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4177echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4178if test "${ac_cv_prog_f77_g+set}" = set; then
4179  echo $ECHO_N "(cached) $ECHO_C" >&6
4180else
4181  FFLAGS=-g
4182cat >conftest.$ac_ext <<_ACEOF
4183      program main
4184
4185      end
4186_ACEOF
4187rm -f conftest.$ac_objext
4188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189  (eval $ac_compile) 2>conftest.er1
4190  ac_status=$?
4191  grep -v '^ *+' conftest.er1 >conftest.err
4192  rm -f conftest.er1
4193  cat conftest.err >&5
4194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195  (exit $ac_status); } &&
4196         { ac_try='test -z "$ac_f77_werror_flag"
4197                         || test ! -s conftest.err'
4198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199  (eval $ac_try) 2>&5
4200  ac_status=$?
4201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202  (exit $ac_status); }; } &&
4203         { ac_try='test -s conftest.$ac_objext'
4204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4205  (eval $ac_try) 2>&5
4206  ac_status=$?
4207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208  (exit $ac_status); }; }; then
4209  ac_cv_prog_f77_g=yes
4210else
4211  echo "$as_me: failed program was:" >&5
4212sed 's/^/| /' conftest.$ac_ext >&5
4213
4214ac_cv_prog_f77_g=no
4215fi
4216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217
4218fi
4219echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4220echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4221if test "$ac_test_FFLAGS" = set; then
4222  FFLAGS=$ac_save_FFLAGS
4223elif test $ac_cv_prog_f77_g = yes; then
4224  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4225    FFLAGS="-g -O2"
4226  else
4227    FFLAGS="-g"
4228  fi
4229else
4230  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4231    FFLAGS="-O2"
4232  else
4233    FFLAGS=
4234  fi
4235fi
4236
4237G77=`test $ac_compiler_gnu = yes && echo yes`
4238ac_ext=f
4239ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4240ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4241ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4242
4243else
4244  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4245echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4246fi
4247
4248FFLAGS="$save_fflags"
4249
4250# Check if a project specific FFLAGS variable has been set
4251if test x$COIN_PRJCT != x; then
4252  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4253  if test x$coin_tmp = xset; then
4254    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4255  fi
4256fi
4257
4258if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4259
4260  coin_add_fflags=
4261  coin_opt_fflags=
4262  coin_dbg_fflags=
4263  coin_warn_fflags=
4264
4265  if test "$G77" = "yes"; then
4266    coin_opt_fflags="-O3 -fomit-frame-pointer"
4267    coin_add_fflags="-pipe"
4268    coin_dbg_fflags="-g"
4269    case $enable_doscompile in
4270      mingw)
4271        FFLAGS="-mno-cygwin"
4272        cat >conftest.$ac_ext <<_ACEOF
4273      program main
4274      write(*,*) 'Hello world'
4275      end
4276_ACEOF
4277rm -f conftest.$ac_objext conftest$ac_exeext
4278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279  (eval $ac_link) 2>conftest.er1
4280  ac_status=$?
4281  grep -v '^ *+' conftest.er1 >conftest.err
4282  rm -f conftest.er1
4283  cat conftest.err >&5
4284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285  (exit $ac_status); } &&
4286         { ac_try='test -z "$ac_f77_werror_flag"
4287                         || test ! -s conftest.err'
4288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289  (eval $ac_try) 2>&5
4290  ac_status=$?
4291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292  (exit $ac_status); }; } &&
4293         { ac_try='test -s conftest$ac_exeext'
4294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295  (eval $ac_try) 2>&5
4296  ac_status=$?
4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298  (exit $ac_status); }; }; then
4299  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4300else
4301  echo "$as_me: failed program was:" >&5
4302sed 's/^/| /' conftest.$ac_ext >&5
4303
4304fi
4305rm -f conftest.err conftest.$ac_objext \
4306      conftest$ac_exeext conftest.$ac_ext
4307        FFLAGS=
4308      ;;
4309    esac
4310  else
4311    case $build in
4312      *-cygwin* | *-mingw*)
4313        case $F77 in
4314          ifort* | */ifort* | IFORT* | */IFORT* )
4315            coin_opt_fflags='-MT -O3'
4316            coin_add_fflags='-fpp -nologo'
4317            coin_dbg_fflags='-MTd -debug'
4318          ;;
4319          compile_f2c*)
4320            coin_opt_fflags='-MT -O2'
4321            coin_add_fflags='-nologo -wd4996'
4322            coin_dbg_fflags='-MTd'
4323          ;;
4324        esac
4325        ;;
4326      *-linux-*)
4327        case $F77 in
4328          ifc* | */ifc* | ifort* | */ifort*)
4329            coin_opt_fflags="-O3 -ip"
4330            coin_add_fflags="-cm -w90 -w95"
4331            coin_dbg_fflags="-g -CA -CB -CS"
4332            # Check if -i_dynamic is necessary (for new glibc library)
4333            FFLAGS=
4334            cat >conftest.$ac_ext <<_ACEOF
4335      program main
4336      write(*,*) 'Hello world'
4337      end
4338_ACEOF
4339rm -f conftest.$ac_objext conftest$ac_exeext
4340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4341  (eval $ac_link) 2>conftest.er1
4342  ac_status=$?
4343  grep -v '^ *+' conftest.er1 >conftest.err
4344  rm -f conftest.er1
4345  cat conftest.err >&5
4346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347  (exit $ac_status); } &&
4348         { ac_try='test -z "$ac_f77_werror_flag"
4349                         || test ! -s conftest.err'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; } &&
4355         { ac_try='test -s conftest$ac_exeext'
4356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357  (eval $ac_try) 2>&5
4358  ac_status=$?
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); }; }; then
4361  :
4362else
4363  echo "$as_me: failed program was:" >&5
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
4366coin_add_fflags="-i_dynamic $coin_add_fflags"
4367fi
4368rm -f conftest.err conftest.$ac_objext \
4369      conftest$ac_exeext conftest.$ac_ext
4370            ;;
4371          pgf77* | */pgf77* | pgf90* | */pgf90*)
4372            coin_opt_fflags="-fast"
4373            coin_add_fflags="-Kieee -pc 64"
4374            coin_dbg_fflags="-g"
4375          ;;
4376        esac
4377        ;;
4378      *-ibm-*)
4379        case "$F77" in
4380          xlf* | */xlf* | mpxlf* | */mpxlf* )
4381            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4382            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4383            coin_dbg_fflags="-g -C"
4384            ;;
4385        esac
4386        ;;
4387      *-hp-*)
4388        coin_opt_fflags="+O3"
4389        coin_add_fflags="+U77"
4390        coin_dbg_fflags="-C -g"
4391        ;;
4392      *-*-solaris*)
4393        coin_opt_fflags="-O4"
4394        coin_dbg_fflags="-g"
4395        ;;
4396      *-sgi-*)
4397        coin_opt_fflags="-O5 -OPT:Olimit=0"
4398        coin_dbg_fflags="-g"
4399        ;;
4400    esac
4401  fi
4402
4403  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4404    coin_dbg_fflags="-g"
4405  fi
4406
4407  if test -z "$coin_opt_fflags"; then
4408    # Try if -O option works if nothing else is set
4409    FFLAGS=-O
4410    cat >conftest.$ac_ext <<_ACEOF
4411      program main
4412      integer i
4413      end
4414_ACEOF
4415rm -f conftest.$ac_objext conftest$ac_exeext
4416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4417  (eval $ac_link) 2>conftest.er1
4418  ac_status=$?
4419  grep -v '^ *+' conftest.er1 >conftest.err
4420  rm -f conftest.er1
4421  cat conftest.err >&5
4422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423  (exit $ac_status); } &&
4424         { ac_try='test -z "$ac_f77_werror_flag"
4425                         || test ! -s conftest.err'
4426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427  (eval $ac_try) 2>&5
4428  ac_status=$?
4429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430  (exit $ac_status); }; } &&
4431         { ac_try='test -s conftest$ac_exeext'
4432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433  (eval $ac_try) 2>&5
4434  ac_status=$?
4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); }; }; then
4437  coin_opt_fflags="-O"
4438else
4439  echo "$as_me: failed program was:" >&5
4440sed 's/^/| /' conftest.$ac_ext >&5
4441
4442fi
4443rm -f conftest.err conftest.$ac_objext \
4444      conftest$ac_exeext conftest.$ac_ext
4445  fi
4446
4447  # if PM doesn't want the warning messages, take them out
4448  if test x"$coin_skip_warn_fflags" = xyes; then
4449    coin_warn_fflags=
4450  fi
4451
4452  if test x${DBG_FFLAGS+set} != xset; then
4453    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4454  fi
4455  if test x${OPT_FFLAGS+set} != xset; then
4456    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4457  fi
4458
4459  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4460  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4461
4462  if test "$coin_debug_compile" = "true"; then
4463    FFLAGS="$DBG_FFLAGS"
4464  else
4465    FFLAGS="$OPT_FFLAGS"
4466  fi
4467else
4468  FFLAGS="$FFLAGS $ADD_FFLAGS"
4469  if test x${DBG_FFLAGS+set} != xset; then
4470    DBG_FFLAGS="$FFLAGS"
4471  fi
4472  if test x${OPT_FFLAGS+set} != xset; then
4473    OPT_FFLAGS="$FFLAGS"
4474  fi
4475fi
4476
4477# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4478case "$FFLAGS" in
4479  *-mno-cygwin*)
4480    if test x${CPPFLAGS+set} != xset ; then
4481      CPPFLAGS="-mno-cygwin"
4482    else
4483      case "$CPPFLAGS" in
4484        *-mno-cygwin*)
4485          ;;
4486        *)
4487          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4488          ;;
4489      esac
4490    fi ;;
4491esac
4492
4493# Try if FFLAGS works
4494if test "$F77" != "unavailable" ; then
4495  cat >conftest.$ac_ext <<_ACEOF
4496      program main
4497      integer i
4498      end
4499_ACEOF
4500rm -f conftest.$ac_objext conftest$ac_exeext
4501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4502  (eval $ac_link) 2>conftest.er1
4503  ac_status=$?
4504  grep -v '^ *+' conftest.er1 >conftest.err
4505  rm -f conftest.er1
4506  cat conftest.err >&5
4507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508  (exit $ac_status); } &&
4509         { ac_try='test -z "$ac_f77_werror_flag"
4510                         || test ! -s conftest.err'
4511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512  (eval $ac_try) 2>&5
4513  ac_status=$?
4514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515  (exit $ac_status); }; } &&
4516         { ac_try='test -s conftest$ac_exeext'
4517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518  (eval $ac_try) 2>&5
4519  ac_status=$?
4520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521  (exit $ac_status); }; }; then
4522  :
4523else
4524  echo "$as_me: failed program was:" >&5
4525sed 's/^/| /' conftest.$ac_ext >&5
4526
4527FFLAGS=
4528fi
4529rm -f conftest.err conftest.$ac_objext \
4530      conftest$ac_exeext conftest.$ac_ext
4531  if test -z "$FFLAGS"; then
4532    { 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
4533echo "$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;}
4534    FFLAGS='-O'
4535    cat >conftest.$ac_ext <<_ACEOF
4536      program main
4537      integer i
4538      end
4539_ACEOF
4540rm -f conftest.$ac_objext conftest$ac_exeext
4541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4542  (eval $ac_link) 2>conftest.er1
4543  ac_status=$?
4544  grep -v '^ *+' conftest.er1 >conftest.err
4545  rm -f conftest.er1
4546  cat conftest.err >&5
4547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548  (exit $ac_status); } &&
4549         { ac_try='test -z "$ac_f77_werror_flag"
4550                         || test ! -s conftest.err'
4551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4552  (eval $ac_try) 2>&5
4553  ac_status=$?
4554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555  (exit $ac_status); }; } &&
4556         { ac_try='test -s conftest$ac_exeext'
4557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4558  (eval $ac_try) 2>&5
4559  ac_status=$?
4560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561  (exit $ac_status); }; }; then
4562  :
4563else
4564  echo "$as_me: failed program was:" >&5
4565sed 's/^/| /' conftest.$ac_ext >&5
4566
4567FFLAGS=
4568fi
4569rm -f conftest.err conftest.$ac_objext \
4570      conftest$ac_exeext conftest.$ac_ext
4571    if test -z "$FFLAGS"; then
4572      { 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
4573echo "$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;}
4574    fi
4575  fi
4576fi
4577
4578{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4579echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4580
4581
4582if test x"$MPIF77" = x; then :; else
4583  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4584echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4585  F77="$MPIF77"
4586fi
4587
4588case "$F77" in
4589  ifort* | */ifort* | IFORT* | */IFORT*)
4590    case $build in
4591  *-mingw*)
4592    if test "${LD+set}" = set; then :; else
4593      LD=link
4594    fi
4595    ;;
4596 esac
4597 case $enable_doscompile in
4598   msvc)
4599     if test "x${LD+set}" = xset; then :; else
4600       LD=link
4601     fi
4602     ;;
4603 esac
4604
4605    ;;
4606esac
4607
4608ac_ext=c
4609ac_cpp='$CPP $CPPFLAGS'
4610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613
4614
4615
4616# Initialize automake and libtool
4617# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4618{
4619
4620
4621
4622# START
4623
4624# Test if force_shared has been set
4625if test "x" = xforce_shared; then
4626  if test x$enable_shared = xno; then
4627    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4628echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4629   { (exit 1); exit 1; }; }
4630  fi
4631  enable_shared=yes;
4632else
4633  # On Cygwin and AIX, building DLLs doesn't work
4634  case $build in
4635    *-cygwin*)
4636      coin_disable_shared=yes
4637      platform=Cygwin
4638    ;;
4639    *-aix*)
4640      coin_disable_shared=yes
4641      platform=AIX
4642    ;;
4643    *-mingw*)
4644      coin_disable_shared=yes
4645      platform="Msys"
4646#      case "$CXX" in
4647#        cl*)
4648#          coin_disable_shared=yes
4649#          platform="Msys with cl"
4650#      ;;
4651#      esac
4652    ;;
4653  esac
4654fi
4655if test x"$coin_disable_shared" = xyes; then
4656  if test x"$enable_shared" = xyes; then
4657    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4658echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4659  fi
4660  enable_shared=no
4661fi
4662# By default, we only want the shared objects to be compiled
4663# Check whether --enable-static or --disable-static was given.
4664if test "${enable_static+set}" = set; then
4665  enableval="$enable_static"
4666  p=${PACKAGE-default}
4667    case $enableval in
4668    yes) enable_static=yes ;;
4669    no) enable_static=no ;;
4670    *)
4671     enable_static=no
4672      # Look at the argument we got.  We use all the common list separators.
4673      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4674      for pkg in $enableval; do
4675        IFS="$lt_save_ifs"
4676        if test "X$pkg" = "X$p"; then
4677          enable_static=yes
4678        fi
4679      done
4680      IFS="$lt_save_ifs"
4681      ;;
4682    esac
4683else
4684  enable_static=no
4685fi;
4686
4687
4688
4689
4690# Initialize automake
4691echo "$as_me:$LINENO: checking for egrep" >&5
4692echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4693if test "${ac_cv_prog_egrep+set}" = set; then
4694  echo $ECHO_N "(cached) $ECHO_C" >&6
4695else
4696  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4697    then ac_cv_prog_egrep='grep -E'
4698    else ac_cv_prog_egrep='egrep'
4699    fi
4700fi
4701echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4702echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4703 EGREP=$ac_cv_prog_egrep
4704
4705
4706am__api_version="1.9"
4707# Find a good install program.  We prefer a C program (faster),
4708# so one script is as good as another.  But avoid the broken or
4709# incompatible versions:
4710# SysV /etc/install, /usr/sbin/install
4711# SunOS /usr/etc/install
4712# IRIX /sbin/install
4713# AIX /bin/install
4714# AmigaOS /C/install, which installs bootblocks on floppy discs
4715# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4716# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4717# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4718# OS/2's system install, which has a completely different semantic
4719# ./install, which can be erroneously created by make from ./install.sh.
4720echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4721echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4722if test -z "$INSTALL"; then
4723if test "${ac_cv_path_install+set}" = set; then
4724  echo $ECHO_N "(cached) $ECHO_C" >&6
4725else
4726  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727for as_dir in $PATH
4728do
4729  IFS=$as_save_IFS
4730  test -z "$as_dir" && as_dir=.
4731  # Account for people who put trailing slashes in PATH elements.
4732case $as_dir/ in
4733  ./ | .// | /cC/* | \
4734  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4735  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4736  /usr/ucb/* ) ;;
4737  *)
4738    # OSF1 and SCO ODT 3.0 have their own names for install.
4739    # Don't use installbsd from OSF since it installs stuff as root
4740    # by default.
4741    for ac_prog in ginstall scoinst install; do
4742      for ac_exec_ext in '' $ac_executable_extensions; do
4743        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4744          if test $ac_prog = install &&
4745            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4746            # AIX install.  It has an incompatible calling convention.
4747            :
4748          elif test $ac_prog = install &&
4749            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4750            # program-specific install script used by HP pwplus--don't use.
4751            :
4752          else
4753            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4754            break 3
4755          fi
4756        fi
4757      done
4758    done
4759    ;;
4760esac
4761done
4762
4763
4764fi
4765  if test "${ac_cv_path_install+set}" = set; then
4766    INSTALL=$ac_cv_path_install
4767  else
4768    # As a last resort, use the slow shell script.  We don't cache a
4769    # path for INSTALL within a source directory, because that will
4770    # break other packages using the cache if that directory is
4771    # removed, or if the path is relative.
4772    INSTALL=$ac_install_sh
4773  fi
4774fi
4775echo "$as_me:$LINENO: result: $INSTALL" >&5
4776echo "${ECHO_T}$INSTALL" >&6
4777
4778# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4779# It thinks the first close brace ends the variable substitution.
4780test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4781
4782test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4783
4784test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4785
4786echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4787echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4788# Just in case
4789sleep 1
4790echo timestamp > conftest.file
4791# Do `set' in a subshell so we don't clobber the current shell's
4792# arguments.  Must try -L first in case configure is actually a
4793# symlink; some systems play weird games with the mod time of symlinks
4794# (eg FreeBSD returns the mod time of the symlink's containing
4795# directory).
4796if (
4797   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4798   if test "$*" = "X"; then
4799      # -L didn't work.
4800      set X `ls -t $srcdir/configure conftest.file`
4801   fi
4802   rm -f conftest.file
4803   if test "$*" != "X $srcdir/configure conftest.file" \
4804      && test "$*" != "X conftest.file $srcdir/configure"; then
4805
4806      # If neither matched, then we have a broken ls.  This can happen
4807      # if, for instance, CONFIG_SHELL is bash and it inherits a
4808      # broken ls alias from the environment.  This has actually
4809      # happened.  Such a system could not be considered "sane".
4810      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4811alias in your environment" >&5
4812echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4813alias in your environment" >&2;}
4814   { (exit 1); exit 1; }; }
4815   fi
4816
4817   test "$2" = conftest.file
4818   )
4819then
4820   # Ok.
4821   :
4822else
4823   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4824Check your system clock" >&5
4825echo "$as_me: error: newly created file is older than distributed files!
4826Check your system clock" >&2;}
4827   { (exit 1); exit 1; }; }
4828fi
4829echo "$as_me:$LINENO: result: yes" >&5
4830echo "${ECHO_T}yes" >&6
4831test "$program_prefix" != NONE &&
4832  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4833# Use a double $ so make ignores it.
4834test "$program_suffix" != NONE &&
4835  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4836# Double any \ or $.  echo might interpret backslashes.
4837# By default was `s,x,x', remove it if useless.
4838cat <<\_ACEOF >conftest.sed
4839s/[\\$]/&&/g;s/;s,x,x,$//
4840_ACEOF
4841program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4842rm conftest.sed
4843
4844# expand $ac_aux_dir to an absolute path
4845am_aux_dir=`cd $ac_aux_dir && pwd`
4846
4847test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4848# Use eval to expand $SHELL
4849if eval "$MISSING --run true"; then
4850  am_missing_run="$MISSING --run "
4851else
4852  am_missing_run=
4853  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4854echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4855fi
4856
4857if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4858  # We used to keeping the `.' as first argument, in order to
4859  # allow $(mkdir_p) to be used without argument.  As in
4860  #   $(mkdir_p) $(somedir)
4861  # where $(somedir) is conditionally defined.  However this is wrong
4862  # for two reasons:
4863  #  1. if the package is installed by a user who cannot write `.'
4864  #     make install will fail,
4865  #  2. the above comment should most certainly read
4866  #     $(mkdir_p) $(DESTDIR)$(somedir)
4867  #     so it does not work when $(somedir) is undefined and
4868  #     $(DESTDIR) is not.
4869  #  To support the latter case, we have to write
4870  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4871  #  so the `.' trick is pointless.
4872  mkdir_p='mkdir -p --'
4873else
4874  # On NextStep and OpenStep, the `mkdir' command does not
4875  # recognize any option.  It will interpret all options as
4876  # directories to create, and then abort because `.' already
4877  # exists.
4878  for d in ./-p ./--version;
4879  do
4880    test -d $d && rmdir $d
4881  done
4882  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4883  if test -f "$ac_aux_dir/mkinstalldirs"; then
4884    mkdir_p='$(mkinstalldirs)'
4885  else
4886    mkdir_p='$(install_sh) -d'
4887  fi
4888fi
4889
4890for ac_prog in gawk mawk nawk awk
4891do
4892  # Extract the first word of "$ac_prog", so it can be a program name with args.
4893set dummy $ac_prog; ac_word=$2
4894echo "$as_me:$LINENO: checking for $ac_word" >&5
4895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4896if test "${ac_cv_prog_AWK+set}" = set; then
4897  echo $ECHO_N "(cached) $ECHO_C" >&6
4898else
4899  if test -n "$AWK"; then
4900  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4901else
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905  IFS=$as_save_IFS
4906  test -z "$as_dir" && as_dir=.
4907  for ac_exec_ext in '' $ac_executable_extensions; do
4908  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4909    ac_cv_prog_AWK="$ac_prog"
4910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911    break 2
4912  fi
4913done
4914done
4915
4916fi
4917fi
4918AWK=$ac_cv_prog_AWK
4919if test -n "$AWK"; then
4920  echo "$as_me:$LINENO: result: $AWK" >&5
4921echo "${ECHO_T}$AWK" >&6
4922else
4923  echo "$as_me:$LINENO: result: no" >&5
4924echo "${ECHO_T}no" >&6
4925fi
4926
4927  test -n "$AWK" && break
4928done
4929
4930echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4931echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4932set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4933if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4934  echo $ECHO_N "(cached) $ECHO_C" >&6
4935else
4936  cat >conftest.make <<\_ACEOF
4937all:
4938        @echo 'ac_maketemp="$(MAKE)"'
4939_ACEOF
4940# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4941eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4942if test -n "$ac_maketemp"; then
4943  eval ac_cv_prog_make_${ac_make}_set=yes
4944else
4945  eval ac_cv_prog_make_${ac_make}_set=no
4946fi
4947rm -f conftest.make
4948fi
4949if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4950  echo "$as_me:$LINENO: result: yes" >&5
4951echo "${ECHO_T}yes" >&6
4952  SET_MAKE=
4953else
4954  echo "$as_me:$LINENO: result: no" >&5
4955echo "${ECHO_T}no" >&6
4956  SET_MAKE="MAKE=${MAKE-make}"
4957fi
4958
4959rm -rf .tst 2>/dev/null
4960mkdir .tst 2>/dev/null
4961if test -d .tst; then
4962  am__leading_dot=.
4963else
4964  am__leading_dot=_
4965fi
4966rmdir .tst 2>/dev/null
4967
4968DEPDIR="${am__leading_dot}deps"
4969
4970          ac_config_commands="$ac_config_commands depfiles"
4971
4972
4973am_make=${MAKE-make}
4974cat > confinc << 'END'
4975am__doit:
4976        @echo done
4977.PHONY: am__doit
4978END
4979# If we don't find an include directive, just comment out the code.
4980echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4981echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4982am__include="#"
4983am__quote=
4984_am_result=none
4985# First try GNU make style include.
4986echo "include confinc" > confmf
4987# We grep out `Entering directory' and `Leaving directory'
4988# messages which can occur if `w' ends up in MAKEFLAGS.
4989# In particular we don't look at `^make:' because GNU make might
4990# be invoked under some other name (usually "gmake"), in which
4991# case it prints its new name instead of `make'.
4992if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4993   am__include=include
4994   am__quote=
4995   _am_result=GNU
4996fi
4997# Now try BSD make style include.
4998if test "$am__include" = "#"; then
4999   echo '.include "confinc"' > confmf
5000   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5001      am__include=.include
5002      am__quote="\""
5003      _am_result=BSD
5004   fi
5005fi
5006
5007
5008echo "$as_me:$LINENO: result: $_am_result" >&5
5009echo "${ECHO_T}$_am_result" >&6
5010rm -f confinc confmf
5011
5012# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5013if test "${enable_dependency_tracking+set}" = set; then
5014  enableval="$enable_dependency_tracking"
5015
5016fi;
5017if test "x$enable_dependency_tracking" != xno; then
5018  am_depcomp="$ac_aux_dir/depcomp"
5019  AMDEPBACKSLASH='\'
5020fi
5021
5022
5023if test "x$enable_dependency_tracking" != xno; then
5024  AMDEP_TRUE=
5025  AMDEP_FALSE='#'
5026else
5027  AMDEP_TRUE='#'
5028  AMDEP_FALSE=
5029fi
5030
5031
5032
5033
5034
5035# AC_MSG_NOTICE([Beginning automake initialisation.])
5036# Stuff for automake
5037# test to see if srcdir already configured
5038if test "`cd $srcdir && pwd`" != "`pwd`" &&
5039   test -f $srcdir/config.status; then
5040  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5041echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5042   { (exit 1); exit 1; }; }
5043fi
5044
5045# test whether we have cygpath
5046if test -z "$CYGPATH_W"; then
5047  if (cygpath --version) >/dev/null 2>/dev/null; then
5048    CYGPATH_W='cygpath -w'
5049  else
5050    CYGPATH_W=echo
5051  fi
5052fi
5053
5054
5055# Define the identity of the package.
5056 PACKAGE='clp'
5057 VERSION='1.9stable'
5058
5059
5060cat >>confdefs.h <<_ACEOF
5061#define PACKAGE "$PACKAGE"
5062_ACEOF
5063
5064
5065cat >>confdefs.h <<_ACEOF
5066#define VERSION "$VERSION"
5067_ACEOF
5068
5069# Some tools Automake needs.
5070
5071ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5072
5073
5074AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5075
5076
5077AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5078
5079
5080AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5081
5082
5083MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5084
5085install_sh=${install_sh-"$am_aux_dir/install-sh"}
5086
5087# Installed binaries are usually stripped using `strip' when the user
5088# run `make install-strip'.  However `strip' might not be the right
5089# tool to use in cross-compilation environments, therefore Automake
5090# will honor the `STRIP' environment variable to overrule this program.
5091if test "$cross_compiling" != no; then
5092  if test -n "$ac_tool_prefix"; then
5093  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5094set dummy ${ac_tool_prefix}strip; ac_word=$2
5095echo "$as_me:$LINENO: checking for $ac_word" >&5
5096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5097if test "${ac_cv_prog_STRIP+set}" = set; then
5098  echo $ECHO_N "(cached) $ECHO_C" >&6
5099else
5100  if test -n "$STRIP"; then
5101  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5102else
5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104for as_dir in $PATH
5105do
5106  IFS=$as_save_IFS
5107  test -z "$as_dir" && as_dir=.
5108  for ac_exec_ext in '' $ac_executable_extensions; do
5109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5112    break 2
5113  fi
5114done
5115done
5116
5117fi
5118fi
5119STRIP=$ac_cv_prog_STRIP
5120if test -n "$STRIP"; then
5121  echo "$as_me:$LINENO: result: $STRIP" >&5
5122echo "${ECHO_T}$STRIP" >&6
5123else
5124  echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126fi
5127
5128fi
5129if test -z "$ac_cv_prog_STRIP"; then
5130  ac_ct_STRIP=$STRIP
5131  # Extract the first word of "strip", so it can be a program name with args.
5132set dummy strip; ac_word=$2
5133echo "$as_me:$LINENO: checking for $ac_word" >&5
5134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5136  echo $ECHO_N "(cached) $ECHO_C" >&6
5137else
5138  if test -n "$ac_ct_STRIP"; then
5139  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5140else
5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144  IFS=$as_save_IFS
5145  test -z "$as_dir" && as_dir=.
5146  for ac_exec_ext in '' $ac_executable_extensions; do
5147  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148    ac_cv_prog_ac_ct_STRIP="strip"
5149    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150    break 2
5151  fi
5152done
5153done
5154
5155  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5156fi
5157fi
5158ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5159if test -n "$ac_ct_STRIP"; then
5160  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5161echo "${ECHO_T}$ac_ct_STRIP" >&6
5162else
5163  echo "$as_me:$LINENO: result: no" >&5
5164echo "${ECHO_T}no" >&6
5165fi
5166
5167  STRIP=$ac_ct_STRIP
5168else
5169  STRIP="$ac_cv_prog_STRIP"
5170fi
5171
5172fi
5173INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5174
5175# We need awk for the "check" target.  The system "awk" is bad on
5176# some platforms.
5177# Always define AMTAR for backward compatibility.
5178
5179AMTAR=${AMTAR-"${am_missing_run}tar"}
5180
5181am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5182
5183
5184
5185
5186depcc="$CC"   am_compiler_list=
5187
5188echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5189echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5190if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5191  echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5194  # We make a subdir and do the tests there.  Otherwise we can end up
5195  # making bogus files that we don't know about and never remove.  For
5196  # instance it was reported that on HP-UX the gcc test will end up
5197  # making a dummy file named `D' -- because `-MD' means `put the output
5198  # in D'.
5199  mkdir conftest.dir
5200  # Copy depcomp to subdir because otherwise we won't find it if we're
5201  # using a relative directory.
5202  cp "$am_depcomp" conftest.dir
5203  cd conftest.dir
5204  # We will build objects and dependencies in a subdirectory because
5205  # it helps to detect inapplicable dependency modes.  For instance
5206  # both Tru64's cc and ICC support -MD to output dependencies as a
5207  # side effect of compilation, but ICC will put the dependencies in
5208  # the current directory while Tru64 will put them in the object
5209  # directory.
5210  mkdir sub
5211
5212  am_cv_CC_dependencies_compiler_type=none
5213  if test "$am_compiler_list" = ""; then
5214     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5215  fi
5216  for depmode in $am_compiler_list; do
5217    # Setup a source with many dependencies, because some compilers
5218    # like to wrap large dependency lists on column 80 (with \), and
5219    # we should not choose a depcomp mode which is confused by this.
5220    #
5221    # We need to recreate these files for each test, as the compiler may
5222    # overwrite some of them when testing with obscure command lines.
5223    # This happens at least with the AIX C compiler.
5224    : > sub/conftest.c
5225    for i in 1 2 3 4 5 6; do
5226      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5227      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5228      # Solaris 8's {/usr,}/bin/sh.
5229      touch sub/conftst$i.h
5230    done
5231    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5232
5233    case $depmode in
5234    nosideeffect)
5235      # after this tag, mechanisms are not by side-effect, so they'll
5236      # only be used when explicitly requested
5237      if test "x$enable_dependency_tracking" = xyes; then
5238        continue
5239      else
5240        break
5241      fi
5242      ;;
5243    none) break ;;
5244    esac
5245    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5246    # mode.  It turns out that the SunPro C++ compiler does not properly
5247    # handle `-M -o', and we need to detect this.
5248    if depmode=$depmode \
5249       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5250       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5251       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5252         >/dev/null 2>conftest.err &&
5253       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5254       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5255       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5256      # icc doesn't choke on unknown options, it will just issue warnings
5257      # or remarks (even with -Werror).  So we grep stderr for any message
5258      # that says an option was ignored or not supported.
5259      # When given -MP, icc 7.0 and 7.1 complain thusly:
5260      #   icc: Command line warning: ignoring option '-M'; no argument required
5261      # The diagnosis changed in icc 8.0:
5262      #   icc: Command line remark: option '-MP' not supported
5263      if (grep 'ignoring option' conftest.err ||
5264          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5265        am_cv_CC_dependencies_compiler_type=$depmode
5266        break
5267      fi
5268    fi
5269  done
5270
5271  cd ..
5272  rm -rf conftest.dir
5273else
5274  am_cv_CC_dependencies_compiler_type=none
5275fi
5276
5277fi
5278echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5279echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5280CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5281
5282
5283
5284if
5285  test "x$enable_dependency_tracking" != xno \
5286  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5287  am__fastdepCC_TRUE=
5288  am__fastdepCC_FALSE='#'
5289else
5290  am__fastdepCC_TRUE='#'
5291  am__fastdepCC_FALSE=
5292fi
5293
5294
5295depcc="$CXX"  am_compiler_list=
5296
5297echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5298echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5299if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5300  echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5303  # We make a subdir and do the tests there.  Otherwise we can end up
5304  # making bogus files that we don't know about and never remove.  For
5305  # instance it was reported that on HP-UX the gcc test will end up
5306  # making a dummy file named `D' -- because `-MD' means `put the output
5307  # in D'.
5308  mkdir conftest.dir
5309  # Copy depcomp to subdir because otherwise we won't find it if we're
5310  # using a relative directory.
5311  cp "$am_depcomp" conftest.dir
5312  cd conftest.dir
5313  # We will build objects and dependencies in a subdirectory because
5314  # it helps to detect inapplicable dependency modes.  For instance
5315  # both Tru64's cc and ICC support -MD to output dependencies as a
5316  # side effect of compilation, but ICC will put the dependencies in
5317  # the current directory while Tru64 will put them in the object
5318  # directory.
5319  mkdir sub
5320
5321  am_cv_CXX_dependencies_compiler_type=none
5322  if test "$am_compiler_list" = ""; then
5323     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5324  fi
5325  for depmode in $am_compiler_list; do
5326    # Setup a source with many dependencies, because some compilers
5327    # like to wrap large dependency lists on column 80 (with \), and
5328    # we should not choose a depcomp mode which is confused by this.
5329    #
5330    # We need to recreate these files for each test, as the compiler may
5331    # overwrite some of them when testing with obscure command lines.
5332    # This happens at least with the AIX C compiler.
5333    : > sub/conftest.c
5334    for i in 1 2 3 4 5 6; do
5335      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5336      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5337      # Solaris 8's {/usr,}/bin/sh.
5338      touch sub/conftst$i.h
5339    done
5340    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5341
5342    case $depmode in
5343    nosideeffect)
5344      # after this tag, mechanisms are not by side-effect, so they'll
5345      # only be used when explicitly requested
5346      if test "x$enable_dependency_tracking" = xyes; then
5347        continue
5348      else
5349        break
5350      fi
5351      ;;
5352    none) break ;;
5353    esac
5354    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355    # mode.  It turns out that the SunPro C++ compiler does not properly
5356    # handle `-M -o', and we need to detect this.
5357    if depmode=$depmode \
5358       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5359       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5360       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5361         >/dev/null 2>conftest.err &&
5362       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5363       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5364       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5365      # icc doesn't choke on unknown options, it will just issue warnings
5366      # or remarks (even with -Werror).  So we grep stderr for any message
5367      # that says an option was ignored or not supported.
5368      # When given -MP, icc 7.0 and 7.1 complain thusly:
5369      #   icc: Command line warning: ignoring option '-M'; no argument required
5370      # The diagnosis changed in icc 8.0:
5371      #   icc: Command line remark: option '-MP' not supported
5372      if (grep 'ignoring option' conftest.err ||
5373          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5374        am_cv_CXX_dependencies_compiler_type=$depmode
5375        break
5376      fi
5377    fi
5378  done
5379
5380  cd ..
5381  rm -rf conftest.dir
5382else
5383  am_cv_CXX_dependencies_compiler_type=none
5384fi
5385
5386fi
5387echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5388echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5389CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5390
5391
5392
5393if
5394  test "x$enable_dependency_tracking" != xno \
5395  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5396  am__fastdepCXX_TRUE=
5397  am__fastdepCXX_FALSE='#'
5398else
5399  am__fastdepCXX_TRUE='#'
5400  am__fastdepCXX_FALSE=
5401fi
5402
5403
5404
5405echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5406echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5407    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5408if test "${enable_maintainer_mode+set}" = set; then
5409  enableval="$enable_maintainer_mode"
5410  USE_MAINTAINER_MODE=$enableval
5411else
5412  USE_MAINTAINER_MODE=no
5413fi;
5414  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5415echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5416
5417
5418if test $USE_MAINTAINER_MODE = yes; then
5419  MAINTAINER_MODE_TRUE=
5420  MAINTAINER_MODE_FALSE='#'
5421else
5422  MAINTAINER_MODE_TRUE='#'
5423  MAINTAINER_MODE_FALSE=
5424fi
5425
5426  MAINT=$MAINTAINER_MODE_TRUE
5427
5428
5429
5430coin_have_externals=no
5431if test "$enable_maintainer_mode" = yes; then
5432
5433  # If maintainer mode is chosen, we make sure that the correct versions
5434  # of the tools are used, and that we know where libtool.m4 is (to
5435  # recreate acinclude.m4)
5436
5437
5438  LIBTOOLM4=
5439  # Normally, $HOME
5440  AUTOTOOLS_DFLT=$HOME
5441
5442  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5443echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5444if test "${ac_cv_use_correct_autotools+set}" = set; then
5445  echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447  ac_cv_use_correct_autotools=check
5448fi
5449echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5450echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5451
5452  if test $ac_cv_use_correct_autotools = check; then
5453    ac_cv_use_correct_autotools=yes
5454    # Check if we have autoconf
5455    # Extract the first word of "autoconf", so it can be a program name with args.
5456set dummy autoconf; ac_word=$2
5457echo "$as_me:$LINENO: checking for $ac_word" >&5
5458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5459if test "${ac_cv_prog_have_autoconf+set}" = set; then
5460  echo $ECHO_N "(cached) $ECHO_C" >&6
5461else
5462  if test -n "$have_autoconf"; then
5463  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5464else
5465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466for as_dir in $PATH
5467do
5468  IFS=$as_save_IFS
5469  test -z "$as_dir" && as_dir=.
5470  for ac_exec_ext in '' $ac_executable_extensions; do
5471  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472    ac_cv_prog_have_autoconf="yes"
5473    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474    break 2
5475  fi
5476done
5477done
5478
5479  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5480fi
5481fi
5482have_autoconf=$ac_cv_prog_have_autoconf
5483if test -n "$have_autoconf"; then
5484  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5485echo "${ECHO_T}$have_autoconf" >&6
5486else
5487  echo "$as_me:$LINENO: result: no" >&5
5488echo "${ECHO_T}no" >&6
5489fi
5490
5491    if test $have_autoconf = no; then
5492      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5493echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5494   { (exit 1); exit 1; }; }
5495    fi
5496
5497    # Check whether autoconf is the correct version
5498    correct_version='2.59'
5499    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5500    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5501echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5502    autoconf --version > confauto.out 2>&1
5503    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5504      echo "$as_me:$LINENO: result: yes" >&5
5505echo "${ECHO_T}yes" >&6
5506    else
5507      rm -f confauto.out
5508      echo "$as_me:$LINENO: result: no" >&5
5509echo "${ECHO_T}no" >&6
5510      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5511echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5512   { (exit 1); exit 1; }; }
5513    fi
5514    rm -f confauto.out
5515
5516    # Check if the executable autoconf is picked up from the correct location
5517    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5518echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5519    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5520    autoconf_dir=`cd $autoconf_dir; pwd`
5521    if test x$AUTOTOOLS_DIR = x; then
5522      want_dir=$AUTOTOOLS_DFLT/bin
5523    else
5524      want_dir=$AUTOTOOLS_DIR/bin
5525    fi
5526    if test $autoconf_dir = `cd $want_dir; pwd`; then
5527      echo "$as_me:$LINENO: result: yes" >&5
5528echo "${ECHO_T}yes" >&6
5529    else
5530      rm -f confauto.out
5531      echo "$as_me:$LINENO: result: no" >&5
5532echo "${ECHO_T}no" >&6
5533      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5534echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5535   { (exit 1); exit 1; }; }
5536    fi
5537
5538    # Check if we have automake
5539    # Extract the first word of "automake", so it can be a program name with args.
5540set dummy automake; ac_word=$2
5541echo "$as_me:$LINENO: checking for $ac_word" >&5
5542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5543if test "${ac_cv_prog_have_automake+set}" = set; then
5544  echo $ECHO_N "(cached) $ECHO_C" >&6
5545else
5546  if test -n "$have_automake"; then
5547  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5548else
5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552  IFS=$as_save_IFS
5553  test -z "$as_dir" && as_dir=.
5554  for ac_exec_ext in '' $ac_executable_extensions; do
5555  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5556    ac_cv_prog_have_automake="yes"
5557    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558    break 2
5559  fi
5560done
5561done
5562
5563  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5564fi
5565fi
5566have_automake=$ac_cv_prog_have_automake
5567if test -n "$have_automake"; then
5568  echo "$as_me:$LINENO: result: $have_automake" >&5
5569echo "${ECHO_T}$have_automake" >&6
5570else
5571  echo "$as_me:$LINENO: result: no" >&5
5572echo "${ECHO_T}no" >&6
5573fi
5574
5575    if test $have_automake = no; then
5576      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5577echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5578   { (exit 1); exit 1; }; }
5579    fi
5580
5581    # Check whether automake is the correct version
5582    correct_version='1.9.6'
5583    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5584    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5585echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5586    automake --version > confauto.out 2>&1
5587    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5588      echo "$as_me:$LINENO: result: yes" >&5
5589echo "${ECHO_T}yes" >&6
5590    else
5591      rm -f confauto.out
5592      echo "$as_me:$LINENO: result: no" >&5
5593echo "${ECHO_T}no" >&6
5594      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5595echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5596   { (exit 1); exit 1; }; }
5597    fi
5598    rm -f confauto.out
5599
5600    # Check if the executable automake is picked up from the correct location
5601    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5602echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5603    automake_dir=`which automake | sed -e 's=/automake=='`
5604    automake_dir=`cd $automake_dir; pwd`
5605    if test x$AUTOTOOLS_DIR = x; then
5606      want_dir=$AUTOTOOLS_DFLT/bin
5607    else
5608      want_dir=$AUTOTOOLS_DIR/bin
5609    fi
5610    if test $automake_dir = `cd $want_dir; pwd`; then
5611      echo "$as_me:$LINENO: result: yes" >&5
5612echo "${ECHO_T}yes" >&6
5613    else
5614      rm -f confauto.out
5615      echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6
5617      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5618echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5619   { (exit 1); exit 1; }; }
5620    fi
5621
5622    # Check if this is the correct version of libtool (with escaped dots)
5623    if test x$AUTOTOOLS_DIR = x; then
5624      want_dir=$AUTOTOOLS_DFLT/share
5625    else
5626      want_dir=$AUTOTOOLS_DIR/share
5627    fi
5628    correct_version='1.5.22'
5629    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5630    if test -r $want_dir/libtool/ltmain.sh; then
5631  have_ltmain=yes
5632  :
5633else
5634  have_ltmain=no
5635  :
5636fi
5637
5638    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5639echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5640    if test $have_ltmain = yes; then
5641    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5642        echo "$as_me:$LINENO: result: yes" >&5
5643echo "${ECHO_T}yes" >&6
5644      else
5645        echo "$as_me:$LINENO: result: no" >&5
5646echo "${ECHO_T}no" >&6
5647        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5648echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5649   { (exit 1); exit 1; }; }
5650      fi
5651    else
5652      echo "$as_me:$LINENO: result: no" >&5
5653echo "${ECHO_T}no" >&6
5654      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5655echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5656   { (exit 1); exit 1; }; }
5657    fi
5658  fi
5659
5660  # Check if we can find the libtool file
5661  if test x$AUTOTOOLS_DIR = x; then
5662    want_dir=$AUTOTOOLS_DFLT/share
5663  else
5664    want_dir=$AUTOTOOLS_DIR/share
5665  fi
5666  if test -r $want_dir/aclocal/libtool.m4; then
5667  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5668  :
5669else
5670  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5671echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5672   { (exit 1); exit 1; }; }
5673  :
5674fi
5675
5676
5677  # Check if we have an Externals file
5678  if test -r $srcdir/Externals; then
5679    coin_have_externals=yes
5680  fi
5681  # Check if subversion is installed and understands https
5682  # Extract the first word of "svn", so it can be a program name with args.
5683set dummy svn; ac_word=$2
5684echo "$as_me:$LINENO: checking for $ac_word" >&5
5685echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5686if test "${ac_cv_prog_have_svn+set}" = set; then
5687  echo $ECHO_N "(cached) $ECHO_C" >&6
5688else
5689  if test -n "$have_svn"; then
5690  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5691else
5692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693for as_dir in $PATH
5694do
5695  IFS=$as_save_IFS
5696  test -z "$as_dir" && as_dir=.
5697  for ac_exec_ext in '' $ac_executable_extensions; do
5698  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5699    ac_cv_prog_have_svn="yes"
5700    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5701    break 2
5702  fi
5703done
5704done
5705
5706  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5707fi
5708fi
5709have_svn=$ac_cv_prog_have_svn
5710if test -n "$have_svn"; then
5711  echo "$as_me:$LINENO: result: $have_svn" >&5
5712echo "${ECHO_T}$have_svn" >&6
5713else
5714  echo "$as_me:$LINENO: result: no" >&5
5715echo "${ECHO_T}no" >&6
5716fi
5717
5718  if test x$have_svn = xyes; then
5719    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5720echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5721if test "${ac_cv_svn_understands_https+set}" = set; then
5722  echo $ECHO_N "(cached) $ECHO_C" >&6
5723else
5724  svn --version > confauto.out 2>&1
5725                    if $EGREP https confauto.out >/dev/null 2>&1; then
5726                      ac_cv_svn_understands_https=yes
5727                    else
5728                      ac_cv_svn_understands_https=no
5729                      have_svn=no
5730                      ac_cv_prog_have_svn=no
5731                    fi
5732                    rm -f confauto.out
5733fi
5734echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5735echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5736  fi
5737
5738  # Find the location of the BuildTools directory
5739  BUILDTOOLSDIR=
5740  if test -r $srcdir/BuildTools/coin.m4; then
5741    BUILDTOOLSDIR=$srcdir/BuildTools
5742  else
5743    if test -r $srcdir/../BuildTools/coin.m4; then
5744      BUILDTOOLSDIR=$srcdir/../BuildTools
5745    else
5746      if test -r $srcdir/../../BuildTools/coin.m4; then
5747        BUILDTOOLSDIR=$srcdir/../../BuildTools
5748      else
5749        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5750echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5751   { (exit 1); exit 1; }; }
5752      fi
5753    fi
5754  fi
5755
5756
5757  # The following variable is set to the name of the directory where
5758  # the autotool scripts are located
5759
5760  AUX_DIR=$ac_aux_dir
5761fi
5762
5763# helpful variable for the base directory of this package
5764abs_source_dir=`cd $srcdir; pwd`
5765
5766
5767# Stuff for example Makefiles
5768if test x$prefix = xNONE; then
5769  full_prefix=$ac_default_prefix
5770else
5771  full_prefix=$prefix
5772fi
5773full_prefix=`cd $full_prefix ; pwd`
5774
5775abs_lib_dir=$full_prefix/lib
5776
5777abs_include_dir=$full_prefix/include
5778
5779abs_bin_dir=$full_prefix/bin
5780
5781
5782
5783if test $coin_have_externals = yes && test x$have_svn = xyes; then
5784  HAVE_EXTERNALS_TRUE=
5785  HAVE_EXTERNALS_FALSE='#'
5786else
5787  HAVE_EXTERNALS_TRUE='#'
5788  HAVE_EXTERNALS_FALSE=
5789fi
5790
5791
5792# AC_MSG_NOTICE([End automake initialisation.])
5793
5794
5795
5796LIBTOOL=
5797if test -r ../libtool; then
5798  coin_config_dir=..
5799  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5800fi
5801if test "x$LIBTOOL" = x; then
5802  if test -r ../../libtool; then
5803    coin_config_dir=../..
5804    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5805  fi
5806fi
5807
5808if test "x$LIBTOOL" = x; then
5809# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5810  # Stuff for libtool
5811  # Check whether --enable-shared or --disable-shared was given.
5812if test "${enable_shared+set}" = set; then
5813  enableval="$enable_shared"
5814  p=${PACKAGE-default}
5815    case $enableval in
5816    yes) enable_shared=yes ;;
5817    no) enable_shared=no ;;
5818    *)
5819      enable_shared=no
5820      # Look at the argument we got.  We use all the common list separators.
5821      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5822      for pkg in $enableval; do
5823        IFS="$lt_save_ifs"
5824        if test "X$pkg" = "X$p"; then
5825          enable_shared=yes
5826        fi
5827      done
5828      IFS="$lt_save_ifs"
5829      ;;
5830    esac
5831else
5832  enable_shared=yes
5833fi;
5834
5835# Check whether --enable-fast-install or --disable-fast-install was given.
5836if test "${enable_fast_install+set}" = set; then
5837  enableval="$enable_fast_install"
5838  p=${PACKAGE-default}
5839    case $enableval in
5840    yes) enable_fast_install=yes ;;
5841    no) enable_fast_install=no ;;
5842    *)
5843      enable_fast_install=no
5844      # Look at the argument we got.  We use all the common list separators.
5845      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5846      for pkg in $enableval; do
5847        IFS="$lt_save_ifs"
5848        if test "X$pkg" = "X$p"; then
5849          enable_fast_install=yes
5850        fi
5851      done
5852      IFS="$lt_save_ifs"
5853      ;;
5854    esac
5855else
5856  enable_fast_install=yes
5857fi;
5858
5859echo "$as_me:$LINENO: checking host system type" >&5
5860echo $ECHO_N "checking host system type... $ECHO_C" >&6
5861if test "${ac_cv_host+set}" = set; then
5862  echo $ECHO_N "(cached) $ECHO_C" >&6
5863else
5864  ac_cv_host_alias=$host_alias
5865test -z "$ac_cv_host_alias" &&
5866  ac_cv_host_alias=$ac_cv_build_alias
5867ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5868  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5869echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5870   { (exit 1); exit 1; }; }
5871
5872fi
5873echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5874echo "${ECHO_T}$ac_cv_host" >&6
5875host=$ac_cv_host
5876host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5877host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5878host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5879
5880
5881echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5882echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5883if test "${lt_cv_path_SED+set}" = set; then
5884  echo $ECHO_N "(cached) $ECHO_C" >&6
5885else
5886  # Loop through the user's path and test for sed and gsed.
5887# Then use that list of sed's as ones to test for truncation.
5888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889for as_dir in $PATH
5890do
5891  IFS=$as_save_IFS
5892  test -z "$as_dir" && as_dir=.
5893  for lt_ac_prog in sed gsed; do
5894    for ac_exec_ext in '' $ac_executable_extensions; do
5895      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5896        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5897      fi
5898    done
5899  done
5900done
5901lt_ac_max=0
5902lt_ac_count=0
5903# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5904# along with /bin/sed that truncates output.
5905for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5906  test ! -f $lt_ac_sed && continue
5907  cat /dev/null > conftest.in
5908  lt_ac_count=0
5909  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5910  # Check for GNU sed and select it if it is found.
5911  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5912    lt_cv_path_SED=$lt_ac_sed
5913    break
5914  fi
5915  while true; do
5916    cat conftest.in conftest.in >conftest.tmp
5917    mv conftest.tmp conftest.in
5918    cp conftest.in conftest.nl
5919    echo >>conftest.nl
5920    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5921    cmp -s conftest.out conftest.nl || break
5922    # 10000 chars as input seems more than enough
5923    test $lt_ac_count -gt 10 && break
5924    lt_ac_count=`expr $lt_ac_count + 1`
5925    if test $lt_ac_count -gt $lt_ac_max; then
5926      lt_ac_max=$lt_ac_count
5927      lt_cv_path_SED=$lt_ac_sed
5928    fi
5929  done
5930done
5931
5932fi
5933
5934SED=$lt_cv_path_SED
5935echo "$as_me:$LINENO: result: $SED" >&5
5936echo "${ECHO_T}$SED" >&6
5937
5938
5939# Check whether --with-gnu-ld or --without-gnu-ld was given.
5940if test "${with_gnu_ld+set}" = set; then
5941  withval="$with_gnu_ld"
5942  test "$withval" = no || with_gnu_ld=yes
5943else
5944  with_gnu_ld=no
5945fi;
5946ac_prog=ld
5947if test "$GCC" = yes; then
5948  # Check if gcc -print-prog-name=ld gives a path.
5949  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5950echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5951  case $host in
5952  *-*-mingw*)
5953    # gcc leaves a trailing carriage return which upsets mingw
5954    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5955  *)
5956    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5957  esac
5958  case $ac_prog in
5959    # Accept absolute paths.
5960    [\\/]* | ?:[\\/]*)
5961      re_direlt='/[^/][^/]*/\.\./'
5962      # Canonicalize the pathname of ld
5963      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5964      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5965        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5966      done
5967      test -z "$LD" && LD="$ac_prog"
5968      ;;
5969  "")
5970    # If it fails, then pretend we aren't using GCC.
5971    ac_prog=ld
5972    ;;
5973  *)
5974    # If it is relative, then search for the first ld in PATH.
5975    with_gnu_ld=unknown
5976    ;;
5977  esac
5978elif test "$with_gnu_ld" = yes; then
5979  echo "$as_me:$LINENO: checking for GNU ld" >&5
5980echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5981else
5982  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5983echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5984fi
5985if test "${lt_cv_path_LD+set}" = set; then
5986  echo $ECHO_N "(cached) $ECHO_C" >&6
5987else
5988  if test -z "$LD"; then
5989  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5990  for ac_dir in $PATH; do
5991    IFS="$lt_save_ifs"
5992    test -z "$ac_dir" && ac_dir=.
5993    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5994      lt_cv_path_LD="$ac_dir/$ac_prog"
5995      # Check to see if the program is GNU ld.  I'd rather use --version,
5996      # but apparently some variants of GNU ld only accept -v.
5997      # Break only if it was the GNU/non-GNU ld that we prefer.
5998      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5999      *GNU* | *'with BFD'*)
6000        test "$with_gnu_ld" != no && break
6001        ;;
6002      *)
6003        test "$with_gnu_ld" != yes && break
6004        ;;
6005      esac
6006    fi
6007  done
6008  IFS="$lt_save_ifs"
6009else
6010  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6011fi
6012fi
6013
6014LD="$lt_cv_path_LD"
6015if test -n "$LD"; then
6016  echo "$as_me:$LINENO: result: $LD" >&5
6017echo "${ECHO_T}$LD" >&6
6018else
6019  echo "$as_me:$LINENO: result: no" >&5
6020echo "${ECHO_T}no" >&6
6021fi
6022test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6023echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6024   { (exit 1); exit 1; }; }
6025echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6026echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6027if test "${lt_cv_prog_gnu_ld+set}" = set; then
6028  echo $ECHO_N "(cached) $ECHO_C" >&6
6029else
6030  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6031case `$LD -v 2>&1 </dev/null` in
6032*GNU* | *'with BFD'*)
6033  lt_cv_prog_gnu_ld=yes
6034  ;;
6035*)
6036  lt_cv_prog_gnu_ld=no
6037  ;;
6038esac
6039fi
6040echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6041echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6042with_gnu_ld=$lt_cv_prog_gnu_ld
6043
6044
6045echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6046echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6047if test "${lt_cv_ld_reload_flag+set}" = set; then
6048  echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050  lt_cv_ld_reload_flag='-r'
6051fi
6052echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6053echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6054reload_flag=$lt_cv_ld_reload_flag
6055case $reload_flag in
6056"" | " "*) ;;
6057*) reload_flag=" $reload_flag" ;;
6058esac
6059reload_cmds='$LD$reload_flag -o $output$reload_objs'
6060case $host_os in
6061  darwin*)
6062    if test "$GCC" = yes; then
6063      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6064    else
6065      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6066    fi
6067    ;;
6068esac
6069
6070echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6071echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6072if test "${lt_cv_path_NM+set}" = set; then
6073  echo $ECHO_N "(cached) $ECHO_C" >&6
6074else
6075  if test -n "$NM"; then
6076  # Let the user override the test.
6077  lt_cv_path_NM="$NM"
6078else
6079  lt_nm_to_check="${ac_tool_prefix}nm"
6080  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6081    lt_nm_to_check="$lt_nm_to_check nm"
6082  fi
6083  for lt_tmp_nm in $lt_nm_to_check; do
6084    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6085    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6086      IFS="$lt_save_ifs"
6087      test -z "$ac_dir" && ac_dir=.
6088      tmp_nm="$ac_dir/$lt_tmp_nm"
6089      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6090        # Check to see if the nm accepts a BSD-compat flag.
6091        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6092        #   nm: unknown option "B" ignored
6093        # Tru64's nm complains that /dev/null is an invalid object file
6094        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6095        */dev/null* | *'Invalid file or object type'*)
6096          lt_cv_path_NM="$tmp_nm -B"
6097          break
6098          ;;
6099        *)
6100          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6101          */dev/null*)
6102            lt_cv_path_NM="$tmp_nm -p"
6103            break
6104            ;;
6105          *)
6106            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6107            continue # so that we can try to find one that supports BSD flags
6108            ;;
6109          esac
6110          ;;
6111        esac
6112      fi
6113    done
6114    IFS="$lt_save_ifs"
6115  done
6116  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6117fi
6118fi
6119echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6120echo "${ECHO_T}$lt_cv_path_NM" >&6
6121NM="$lt_cv_path_NM"
6122
6123echo "$as_me:$LINENO: checking whether ln -s works" >&5
6124echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6125LN_S=$as_ln_s
6126if test "$LN_S" = "ln -s"; then
6127  echo "$as_me:$LINENO: result: yes" >&5
6128echo "${ECHO_T}yes" >&6
6129else
6130  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6131echo "${ECHO_T}no, using $LN_S" >&6
6132fi
6133
6134echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6135echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6136if test "${lt_cv_deplibs_check_method+set}" = set; then
6137  echo $ECHO_N "(cached) $ECHO_C" >&6
6138else
6139  lt_cv_file_magic_cmd='$MAGIC_CMD'
6140lt_cv_file_magic_test_file=
6141lt_cv_deplibs_check_method='unknown'
6142# Need to set the preceding variable on all platforms that support
6143# interlibrary dependencies.
6144# 'none' -- dependencies not supported.
6145# `unknown' -- same as none, but documents that we really don't know.
6146# 'pass_all' -- all dependencies passed with no checks.
6147# 'test_compile' -- check by making test program.
6148# 'file_magic [[regex]]' -- check by looking for files in library path
6149# which responds to the $file_magic_cmd with a given extended regex.
6150# If you have `file' or equivalent on your system and you're not sure
6151# whether `pass_all' will *always* work, you probably want this one.
6152
6153case $host_os in
6154aix4* | aix5*)
6155  lt_cv_deplibs_check_method=pass_all
6156  ;;
6157
6158beos*)
6159  lt_cv_deplibs_check_method=pass_all
6160  ;;
6161
6162bsdi[45]*)
6163  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6164  lt_cv_file_magic_cmd='/usr/bin/file -L'
6165  lt_cv_file_magic_test_file=/shlib/libc.so
6166  ;;
6167
6168cygwin*)
6169  # func_win32_libid is a shell function defined in ltmain.sh
6170  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6171  lt_cv_file_magic_cmd='func_win32_libid'
6172  ;;
6173
6174mingw* | pw32*)
6175  # Base MSYS/MinGW do not provide the 'file' command needed by
6176  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6177  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6178  lt_cv_file_magic_cmd='$OBJDUMP -f'
6179  ;;
6180
6181darwin* | rhapsody*)
6182  lt_cv_deplibs_check_method=pass_all
6183  ;;
6184
6185freebsd* | kfreebsd*-gnu | dragonfly*)
6186  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6187    case $host_cpu in
6188    i*86 )
6189      # Not sure whether the presence of OpenBSD here was a mistake.
6190      # Let's accept both of them until this is cleared up.
6191      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6192      lt_cv_file_magic_cmd=/usr/bin/file
6193      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6194      ;;
6195    esac
6196  else
6197    lt_cv_deplibs_check_method=pass_all
6198  fi
6199  ;;
6200
6201gnu*)
6202  lt_cv_deplibs_check_method=pass_all
6203  ;;
6204
6205hpux10.20* | hpux11*)
6206  lt_cv_file_magic_cmd=/usr/bin/file
6207  case $host_cpu in
6208  ia64*)
6209    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6210    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6211    ;;
6212  hppa*64*)
6213    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]'
6214    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6215    ;;
6216  *)
6217    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6218    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6219    ;;
6220  esac
6221  ;;
6222
6223interix3*)
6224  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6225  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6226  ;;
6227
6228irix5* | irix6* | nonstopux*)
6229  case $LD in
6230  *-32|*"-32 ") libmagic=32-bit;;
6231  *-n32|*"-n32 ") libmagic=N32;;
6232  *-64|*"-64 ") libmagic=64-bit;;
6233  *) libmagic=never-match;;
6234  esac
6235  lt_cv_deplibs_check_method=pass_all
6236  ;;
6237
6238# This must be Linux ELF.
6239linux*)
6240  lt_cv_deplibs_check_method=pass_all
6241  ;;
6242
6243netbsd*)
6244  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6245    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6246  else
6247    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6248  fi
6249  ;;
6250
6251newos6*)
6252  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6253  lt_cv_file_magic_cmd=/usr/bin/file
6254  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6255  ;;
6256
6257nto-qnx*)
6258  lt_cv_deplibs_check_method=unknown
6259  ;;
6260
6261openbsd*)
6262  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6263    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6264  else
6265    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6266  fi
6267  ;;
6268
6269osf3* | osf4* | osf5*)
6270  lt_cv_deplibs_check_method=pass_all
6271  ;;
6272
6273solaris*)
6274  lt_cv_deplibs_check_method=pass_all
6275  ;;
6276
6277sysv4 | sysv4.3*)
6278  case $host_vendor in
6279  motorola)
6280    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]'
6281    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6282    ;;
6283  ncr)
6284    lt_cv_deplibs_check_method=pass_all
6285    ;;
6286  sequent)
6287    lt_cv_file_magic_cmd='/bin/file'
6288    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6289    ;;
6290  sni)
6291    lt_cv_file_magic_cmd='/bin/file'
6292    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6293    lt_cv_file_magic_test_file=/lib/libc.so
6294    ;;
6295  siemens)
6296    lt_cv_deplibs_check_method=pass_all
6297    ;;
6298  pc)
6299    lt_cv_deplibs_check_method=pass_all
6300    ;;
6301  esac
6302  ;;
6303
6304sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307esac
6308
6309fi
6310echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6311echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6312file_magic_cmd=$lt_cv_file_magic_cmd
6313deplibs_check_method=$lt_cv_deplibs_check_method
6314test -z "$deplibs_check_method" && deplibs_check_method=unknown
6315
6316
6317
6318
6319# If no C compiler was specified, use CC.
6320LTCC=${LTCC-"$CC"}
6321
6322# If no C compiler flags were specified, use CFLAGS.
6323LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6324
6325# Allow CC to be a program name with arguments.
6326compiler=$CC
6327
6328# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6329if test "${enable_libtool_lock+set}" = set; then
6330  enableval="$enable_libtool_lock"
6331
6332fi;
6333test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6334
6335# Some flags need to be propagated to the compiler or linker for good
6336# libtool support.
6337case $host in
6338ia64-*-hpux*)
6339  # Find out which ABI we are using.
6340  echo 'int i;' > conftest.$ac_ext
6341  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6342  (eval $ac_compile) 2>&5
6343  ac_status=$?
6344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345  (exit $ac_status); }; then
6346    case `/usr/bin/file conftest.$ac_objext` in
6347    *ELF-32*)
6348      HPUX_IA64_MODE="32"
6349      ;;
6350    *ELF-64*)
6351      HPUX_IA64_MODE="64"
6352      ;;
6353    esac
6354  fi
6355  rm -rf conftest*
6356  ;;
6357*-*-irix6*)
6358  # Find out which ABI we are using.
6359  echo '#line 6359 "configure"' > conftest.$ac_ext
6360  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361  (eval $ac_compile) 2>&5
6362  ac_status=$?
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); }; then
6365   if test "$lt_cv_prog_gnu_ld" = yes; then
6366    case `/usr/bin/file conftest.$ac_objext` in
6367    *32-bit*)
6368      LD="${LD-ld} -melf32bsmip"
6369      ;;
6370    *N32*)
6371      LD="${LD-ld} -melf32bmipn32"
6372      ;;
6373    *64-bit*)
6374      LD="${LD-ld} -melf64bmip"
6375      ;;
6376    esac
6377   else
6378    case `/usr/bin/file conftest.$ac_objext` in
6379    *32-bit*)
6380      LD="${LD-ld} -32"
6381      ;;
6382    *N32*)
6383      LD="${LD-ld} -n32"
6384      ;;
6385    *64-bit*)
6386      LD="${LD-ld} -64"
6387      ;;
6388    esac
6389   fi
6390  fi
6391  rm -rf conftest*
6392  ;;
6393
6394x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6395  # Find out which ABI we are using.
6396  echo 'int i;' > conftest.$ac_ext
6397  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6398  (eval $ac_compile) 2>&5
6399  ac_status=$?
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); }; then
6402    case `/usr/bin/file conftest.o` in
6403    *32-bit*)
6404      case $host in
6405        x86_64-*linux*)
6406          LD="${LD-ld} -m elf_i386"
6407          ;;
6408        ppc64-*linux*|powerpc64-*linux*)
6409          LD="${LD-ld} -m elf32ppclinux"
6410          ;;
6411        s390x-*linux*)
6412          LD="${LD-ld} -m elf_s390"
6413          ;;
6414        sparc64-*linux*)
6415          LD="${LD-ld} -m elf32_sparc"
6416          ;;
6417      esac
6418      ;;
6419    *64-bit*)
6420      case $host in
6421        x86_64-*linux*)
6422          LD="${LD-ld} -m elf_x86_64"
6423          ;;
6424        ppc*-*linux*|powerpc*-*linux*)
6425          LD="${LD-ld} -m elf64ppc"
6426          ;;
6427        s390*-*linux*)
6428          LD="${LD-ld} -m elf64_s390"
6429          ;;
6430        sparc*-*linux*)
6431          LD="${LD-ld} -m elf64_sparc"
6432          ;;
6433      esac
6434      ;;
6435    esac
6436  fi
6437  rm -rf conftest*
6438  ;;
6439
6440*-*-sco3.2v5*)
6441  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6442  SAVE_CFLAGS="$CFLAGS"
6443  CFLAGS="$CFLAGS -belf"
6444  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6445echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6446if test "${lt_cv_cc_needs_belf+set}" = set; then
6447  echo $ECHO_N "(cached) $ECHO_C" >&6
6448else
6449  ac_ext=c
6450ac_cpp='$CPP $CPPFLAGS'
6451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6453ac_compiler_gnu=$ac_cv_c_compiler_gnu
6454
6455     cat >conftest.$ac_ext <<_ACEOF
6456/* confdefs.h.  */
6457_ACEOF
6458cat confdefs.h >>conftest.$ac_ext
6459cat >>conftest.$ac_ext <<_ACEOF
6460/* end confdefs.h.  */
6461
6462int
6463main ()
6464{
6465
6466  ;
6467  return 0;
6468}
6469_ACEOF
6470rm -f conftest.$ac_objext conftest$ac_exeext
6471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6472  (eval $ac_link) 2>conftest.er1
6473  ac_status=$?
6474  grep -v '^ *+' conftest.er1 >conftest.err
6475  rm -f conftest.er1
6476  cat conftest.err >&5
6477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478  (exit $ac_status); } &&
6479         { ac_try='test -z "$ac_c_werror_flag"
6480                         || test ! -s conftest.err'
6481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482  (eval $ac_try) 2>&5
6483  ac_status=$?
6484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485  (exit $ac_status); }; } &&
6486         { ac_try='test -s conftest$ac_exeext'
6487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488  (eval $ac_try) 2>&5
6489  ac_status=$?
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); }; }; then
6492  lt_cv_cc_needs_belf=yes
6493else
6494  echo "$as_me: failed program was:" >&5
6495sed 's/^/| /' conftest.$ac_ext >&5
6496
6497lt_cv_cc_needs_belf=no
6498fi
6499rm -f conftest.err conftest.$ac_objext \
6500      conftest$ac_exeext conftest.$ac_ext
6501     ac_ext=c
6502ac_cpp='$CPP $CPPFLAGS'
6503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506
6507fi
6508echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6509echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6510  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6511    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6512    CFLAGS="$SAVE_CFLAGS"
6513  fi
6514  ;;
6515sparc*-*solaris*)
6516  # Find out which ABI we are using.
6517  echo 'int i;' > conftest.$ac_ext
6518  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6519  (eval $ac_compile) 2>&5
6520  ac_status=$?
6521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522  (exit $ac_status); }; then
6523    case `/usr/bin/file conftest.o` in
6524    *64-bit*)
6525      case $lt_cv_prog_gnu_ld in
6526      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6527      *)    LD="${LD-ld} -64" ;;
6528      esac
6529      ;;
6530    esac
6531  fi
6532  rm -rf conftest*
6533  ;;
6534
6535
6536esac
6537
6538need_locks="$enable_libtool_lock"
6539
6540
6541ac_ext=c
6542ac_cpp='$CPP $CPPFLAGS'
6543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6545ac_compiler_gnu=$ac_cv_c_compiler_gnu
6546echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6547echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6548# On Suns, sometimes $CPP names a directory.
6549if test -n "$CPP" && test -d "$CPP"; then
6550  CPP=
6551fi
6552if test -z "$CPP"; then
6553  if test "${ac_cv_prog_CPP+set}" = set; then
6554  echo $ECHO_N "(cached) $ECHO_C" >&6
6555else
6556      # Double quotes because CPP needs to be expanded
6557    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6558    do
6559      ac_preproc_ok=false
6560for ac_c_preproc_warn_flag in '' yes
6561do
6562  # Use a header file that comes with gcc, so configuring glibc
6563  # with a fresh cross-compiler works.
6564  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6565  # <limits.h> exists even on freestanding compilers.
6566  # On the NeXT, cc -E runs the code through the compiler's parser,
6567  # not just through cpp. "Syntax error" is here to catch this case.
6568  cat >conftest.$ac_ext <<_ACEOF
6569/* confdefs.h.  */
6570_ACEOF
6571cat confdefs.h >>conftest.$ac_ext
6572cat >>conftest.$ac_ext <<_ACEOF
6573/* end confdefs.h.  */
6574#ifdef __STDC__
6575# include <limits.h>
6576#else
6577# include <assert.h>
6578#endif
6579                     Syntax error
6580_ACEOF
6581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6582  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6583  ac_status=$?
6584  grep -v '^ *+' conftest.er1 >conftest.err
6585  rm -f conftest.er1
6586  cat conftest.err >&5
6587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588  (exit $ac_status); } >/dev/null; then
6589  if test -s conftest.err; then
6590    ac_cpp_err=$ac_c_preproc_warn_flag
6591    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6592  else
6593    ac_cpp_err=
6594  fi
6595else
6596  ac_cpp_err=yes
6597fi
6598if test -z "$ac_cpp_err"; then
6599  :
6600else
6601  echo "$as_me: failed program was:" >&5
6602sed 's/^/| /' conftest.$ac_ext >&5
6603
6604  # Broken: fails on valid input.
6605continue
6606fi
6607rm -f conftest.err conftest.$ac_ext
6608
6609  # OK, works on sane cases.  Now check whether non-existent headers
6610  # can be detected and how.
6611  cat >conftest.$ac_ext <<_ACEOF
6612/* confdefs.h.  */
6613_ACEOF
6614cat confdefs.h >>conftest.$ac_ext
6615cat >>conftest.$ac_ext <<_ACEOF
6616/* end confdefs.h.  */
6617#include <ac_nonexistent.h>
6618_ACEOF
6619if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6620  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6621  ac_status=$?
6622  grep -v '^ *+' conftest.er1 >conftest.err
6623  rm -f conftest.er1
6624  cat conftest.err >&5
6625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); } >/dev/null; then
6627  if test -s conftest.err; then
6628    ac_cpp_err=$ac_c_preproc_warn_flag
6629    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6630  else
6631    ac_cpp_err=
6632  fi
6633else
6634  ac_cpp_err=yes
6635fi
6636if test -z "$ac_cpp_err"; then
6637  # Broken: success on invalid input.
6638continue
6639else
6640  echo "$as_me: failed program was:" >&5
6641sed 's/^/| /' conftest.$ac_ext >&5
6642
6643  # Passes both tests.
6644ac_preproc_ok=:
6645break
6646fi
6647rm -f conftest.err conftest.$ac_ext
6648
6649done
6650# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6651rm -f conftest.err conftest.$ac_ext
6652if $ac_preproc_ok; then
6653  break
6654fi
6655
6656    done
6657    ac_cv_prog_CPP=$CPP
6658
6659fi
6660  CPP=$ac_cv_prog_CPP
6661else
6662  ac_cv_prog_CPP=$CPP
6663fi
6664echo "$as_me:$LINENO: result: $CPP" >&5
6665echo "${ECHO_T}$CPP" >&6
6666ac_preproc_ok=false
6667for ac_c_preproc_warn_flag in '' yes
6668do
6669  # Use a header file that comes with gcc, so configuring glibc
6670  # with a fresh cross-compiler works.
6671  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6672  # <limits.h> exists even on freestanding compilers.
6673  # On the NeXT, cc -E runs the code through the compiler's parser,
6674  # not just through cpp. "Syntax error" is here to catch this case.
6675  cat >conftest.$ac_ext <<_ACEOF
6676/* confdefs.h.  */
6677_ACEOF
6678cat confdefs.h >>conftest.$ac_ext
6679cat >>conftest.$ac_ext <<_ACEOF
6680/* end confdefs.h.  */
6681#ifdef __STDC__
6682# include <limits.h>
6683#else
6684# include <assert.h>
6685#endif
6686                     Syntax error
6687_ACEOF
6688if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6689  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6690  ac_status=$?
6691  grep -v '^ *+' conftest.er1 >conftest.err
6692  rm -f conftest.er1
6693  cat conftest.err >&5
6694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695  (exit $ac_status); } >/dev/null; then
6696  if test -s conftest.err; then
6697    ac_cpp_err=$ac_c_preproc_warn_flag
6698    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6699  else
6700    ac_cpp_err=
6701  fi
6702else
6703  ac_cpp_err=yes
6704fi
6705if test -z "$ac_cpp_err"; then
6706  :
6707else
6708  echo "$as_me: failed program was:" >&5
6709sed 's/^/| /' conftest.$ac_ext >&5
6710
6711  # Broken: fails on valid input.
6712continue
6713fi
6714rm -f conftest.err conftest.$ac_ext
6715
6716  # OK, works on sane cases.  Now check whether non-existent headers
6717  # can be detected and how.
6718  cat >conftest.$ac_ext <<_ACEOF
6719/* confdefs.h.  */
6720_ACEOF
6721cat confdefs.h >>conftest.$ac_ext
6722cat >>conftest.$ac_ext <<_ACEOF
6723/* end confdefs.h.  */
6724#include <ac_nonexistent.h>
6725_ACEOF
6726if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6727  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6728  ac_status=$?
6729  grep -v '^ *+' conftest.er1 >conftest.err
6730  rm -f conftest.er1
6731  cat conftest.err >&5
6732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733  (exit $ac_status); } >/dev/null; then
6734  if test -s conftest.err; then
6735    ac_cpp_err=$ac_c_preproc_warn_flag
6736    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6737  else
6738    ac_cpp_err=
6739  fi
6740else
6741  ac_cpp_err=yes
6742fi
6743if test -z "$ac_cpp_err"; then
6744  # Broken: success on invalid input.
6745continue
6746else
6747  echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
6750  # Passes both tests.
6751ac_preproc_ok=:
6752break
6753fi
6754rm -f conftest.err conftest.$ac_ext
6755
6756done
6757# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6758rm -f conftest.err conftest.$ac_ext
6759if $ac_preproc_ok; then
6760  :
6761else
6762  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6763See \`config.log' for more details." >&5
6764echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6765See \`config.log' for more details." >&2;}
6766   { (exit 1); exit 1; }; }
6767fi
6768
6769ac_ext=c
6770ac_cpp='$CPP $CPPFLAGS'
6771ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6772ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6773ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774
6775
6776echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6777echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6778if test "${ac_cv_header_stdc+set}" = set; then
6779  echo $ECHO_N "(cached) $ECHO_C" >&6
6780else
6781  cat >conftest.$ac_ext <<_ACEOF
6782/* confdefs.h.  */
6783_ACEOF
6784cat confdefs.h >>conftest.$ac_ext
6785cat >>conftest.$ac_ext <<_ACEOF
6786/* end confdefs.h.  */
6787#include <stdlib.h>
6788#include <stdarg.h>
6789#include <string.h>
6790#include <float.h>
6791
6792int
6793main ()
6794{
6795
6796  ;
6797  return 0;
6798}
6799_ACEOF
6800rm -f conftest.$ac_objext
6801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802  (eval $ac_compile) 2>conftest.er1
6803  ac_status=$?
6804  grep -v '^ *+' conftest.er1 >conftest.err
6805  rm -f conftest.er1
6806  cat conftest.err >&5
6807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808  (exit $ac_status); } &&
6809         { ac_try='test -z "$ac_c_werror_flag"
6810                         || test ! -s conftest.err'
6811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6812  (eval $ac_try) 2>&5
6813  ac_status=$?
6814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815  (exit $ac_status); }; } &&
6816         { ac_try='test -s conftest.$ac_objext'
6817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818  (eval $ac_try) 2>&5
6819  ac_status=$?
6820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821  (exit $ac_status); }; }; then
6822  ac_cv_header_stdc=yes
6823else
6824  echo "$as_me: failed program was:" >&5
6825sed 's/^/| /' conftest.$ac_ext >&5
6826
6827ac_cv_header_stdc=no
6828fi
6829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6830
6831if test $ac_cv_header_stdc = yes; then
6832  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6833  cat >conftest.$ac_ext <<_ACEOF
6834/* confdefs.h.  */
6835_ACEOF
6836cat confdefs.h >>conftest.$ac_ext
6837cat >>conftest.$ac_ext <<_ACEOF
6838/* end confdefs.h.  */
6839#include <string.h>
6840
6841_ACEOF
6842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843  $EGREP "memchr" >/dev/null 2>&1; then
6844  :
6845else
6846  ac_cv_header_stdc=no
6847fi
6848rm -f conftest*
6849
6850fi
6851
6852if test $ac_cv_header_stdc = yes; then
6853  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6854  cat >conftest.$ac_ext <<_ACEOF
6855/* confdefs.h.  */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h.  */
6860#include <stdlib.h>
6861
6862_ACEOF
6863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864  $EGREP "free" >/dev/null 2>&1; then
6865  :
6866else
6867  ac_cv_header_stdc=no
6868fi
6869rm -f conftest*
6870
6871fi
6872
6873if test $ac_cv_header_stdc = yes; then
6874  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6875  if test "$cross_compiling" = yes; then
6876  :
6877else
6878  cat >conftest.$ac_ext <<_ACEOF
6879/* confdefs.h.  */
6880_ACEOF
6881cat confdefs.h >>conftest.$ac_ext
6882cat >>conftest.$ac_ext <<_ACEOF
6883/* end confdefs.h.  */
6884#include <ctype.h>
6885#if ((' ' & 0x0FF) == 0x020)
6886# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6887# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6888#else
6889# define ISLOWER(c) \
6890                   (('a' <= (c) && (c) <= 'i') \
6891                     || ('j' <= (c) && (c) <= 'r') \
6892                     || ('s' <= (c) && (c) <= 'z'))
6893# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6894#endif
6895
6896#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6897int
6898main ()
6899{
6900  int i;
6901  for (i = 0; i < 256; i++)
6902    if (XOR (islower (i), ISLOWER (i))
6903        || toupper (i) != TOUPPER (i))
6904      exit(2);
6905  exit (0);
6906}
6907_ACEOF
6908rm -f conftest$ac_exeext
6909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910  (eval $ac_link) 2>&5
6911  ac_status=$?
6912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6915  (eval $ac_try) 2>&5
6916  ac_status=$?
6917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918  (exit $ac_status); }; }; then
6919  :
6920else
6921  echo "$as_me: program exited with status $ac_status" >&5
6922echo "$as_me: failed program was:" >&5
6923sed 's/^/| /' conftest.$ac_ext >&5
6924
6925( exit $ac_status )
6926ac_cv_header_stdc=no
6927fi
6928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6929fi
6930fi
6931fi
6932echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6933echo "${ECHO_T}$ac_cv_header_stdc" >&6
6934if test $ac_cv_header_stdc = yes; then
6935
6936cat >>confdefs.h <<\_ACEOF
6937#define STDC_HEADERS 1
6938_ACEOF
6939
6940fi
6941
6942# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6953                  inttypes.h stdint.h unistd.h
6954do
6955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6956echo "$as_me:$LINENO: checking for $ac_header" >&5
6957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6958if eval "test \"\${$as_ac_Header+set}\" = set"; then
6959  echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961  cat >conftest.$ac_ext <<_ACEOF
6962/* confdefs.h.  */
6963_ACEOF
6964cat confdefs.h >>conftest.$ac_ext
6965cat >>conftest.$ac_ext <<_ACEOF
6966/* end confdefs.h.  */
6967$ac_includes_default
6968
6969#include <$ac_header>
6970_ACEOF
6971rm -f conftest.$ac_objext
6972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6973  (eval $ac_compile) 2>conftest.er1
6974  ac_status=$?
6975  grep -v '^ *+' conftest.er1 >conftest.err
6976  rm -f conftest.er1
6977  cat conftest.err >&5
6978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979  (exit $ac_status); } &&
6980         { ac_try='test -z "$ac_c_werror_flag"
6981                         || test ! -s conftest.err'
6982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983  (eval $ac_try) 2>&5
6984  ac_status=$?
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); }; } &&
6987         { ac_try='test -s conftest.$ac_objext'
6988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989  (eval $ac_try) 2>&5
6990  ac_status=$?
6991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992  (exit $ac_status); }; }; then
6993  eval "$as_ac_Header=yes"
6994else
6995  echo "$as_me: failed program was:" >&5
6996sed 's/^/| /' conftest.$ac_ext >&5
6997
6998eval "$as_ac_Header=no"
6999fi
7000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7001fi
7002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7003echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7004if test `eval echo '${'$as_ac_Header'}'` = yes; then
7005  cat >>confdefs.h <<_ACEOF
7006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7007_ACEOF
7008
7009fi
7010
7011done
7012
7013
7014
7015for ac_header in dlfcn.h
7016do
7017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7018if eval "test \"\${$as_ac_Header+set}\" = set"; then
7019  echo "$as_me:$LINENO: checking for $ac_header" >&5
7020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7021if eval "test \"\${$as_ac_Header+set}\" = set"; then
7022  echo $ECHO_N "(cached) $ECHO_C" >&6
7023fi
7024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7026else
7027  # Is the header compilable?
7028echo "$as_me:$LINENO: checking $ac_header usability" >&5
7029echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7030cat >conftest.$ac_ext <<_ACEOF
7031/* confdefs.h.  */
7032_ACEOF
7033cat confdefs.h >>conftest.$ac_ext
7034cat >>conftest.$ac_ext <<_ACEOF
7035/* end confdefs.h.  */
7036$ac_includes_default
7037#include <$ac_header>
7038_ACEOF
7039rm -f conftest.$ac_objext
7040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7041  (eval $ac_compile) 2>conftest.er1
7042  ac_status=$?
7043  grep -v '^ *+' conftest.er1 >conftest.err
7044  rm -f conftest.er1
7045  cat conftest.err >&5
7046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047  (exit $ac_status); } &&
7048         { ac_try='test -z "$ac_c_werror_flag"
7049                         || test ! -s conftest.err'
7050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051  (eval $ac_try) 2>&5
7052  ac_status=$?
7053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054  (exit $ac_status); }; } &&
7055         { ac_try='test -s conftest.$ac_objext'
7056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057  (eval $ac_try) 2>&5
7058  ac_status=$?
7059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060  (exit $ac_status); }; }; then
7061  ac_header_compiler=yes
7062else
7063  echo "$as_me: failed program was:" >&5
7064sed 's/^/| /' conftest.$ac_ext >&5
7065
7066ac_header_compiler=no
7067fi
7068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7069echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7070echo "${ECHO_T}$ac_header_compiler" >&6
7071
7072# Is the header present?
7073echo "$as_me:$LINENO: checking $ac_header presence" >&5
7074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7075cat >conftest.$ac_ext <<_ACEOF
7076/* confdefs.h.  */
7077_ACEOF
7078cat confdefs.h >>conftest.$ac_ext
7079cat >>conftest.$ac_ext <<_ACEOF
7080/* end confdefs.h.  */
7081#include <$ac_header>
7082_ACEOF
7083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7084  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7085  ac_status=$?
7086  grep -v '^ *+' conftest.er1 >conftest.err
7087  rm -f conftest.er1
7088  cat conftest.err >&5
7089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090  (exit $ac_status); } >/dev/null; then
7091  if test -s conftest.err; then
7092    ac_cpp_err=$ac_c_preproc_warn_flag
7093    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7094  else
7095    ac_cpp_err=
7096  fi
7097else
7098  ac_cpp_err=yes
7099fi
7100if test -z "$ac_cpp_err"; then
7101  ac_header_preproc=yes
7102else
7103  echo "$as_me: failed program was:" >&5
7104sed 's/^/| /' conftest.$ac_ext >&5
7105
7106  ac_header_preproc=no
7107fi
7108rm -f conftest.err conftest.$ac_ext
7109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7110echo "${ECHO_T}$ac_header_preproc" >&6
7111
7112# So?  What about this header?
7113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7114  yes:no: )
7115    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7117    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7118echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7119    ac_header_preproc=yes
7120    ;;
7121  no:yes:* )
7122    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7124    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7125echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7126    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7127echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7128    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7129echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7130    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7132    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7133echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7134    (
7135      cat <<\_ASBOX
7136## ----------------------------------------- ##
7137## Report this to coin-clp@lists.coin-or.org ##
7138## ----------------------------------------- ##
7139_ASBOX
7140    ) |
7141      sed "s/^/$as_me: WARNING:     /" >&2
7142    ;;
7143esac
7144echo "$as_me:$LINENO: checking for $ac_header" >&5
7145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7146if eval "test \"\${$as_ac_Header+set}\" = set"; then
7147  echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149  eval "$as_ac_Header=\$ac_header_preproc"
7150fi
7151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7153
7154fi
7155if test `eval echo '${'$as_ac_Header'}'` = yes; then
7156  cat >>confdefs.h <<_ACEOF
7157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7158_ACEOF
7159
7160fi
7161
7162done
7163
7164
7165
7166if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7167    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7168    (test "X$CXX" != "Xg++"))) ; then
7169  ac_ext=cc
7170ac_cpp='$CXXCPP $CPPFLAGS'
7171ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7172ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7173ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7174echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7175echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7176if test -z "$CXXCPP"; then
7177  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7178  echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180      # Double quotes because CXXCPP needs to be expanded
7181    for CXXCPP in "$CXX -E" "/lib/cpp"
7182    do
7183      ac_preproc_ok=false
7184for ac_cxx_preproc_warn_flag in '' yes
7185do
7186  # Use a header file that comes with gcc, so configuring glibc
7187  # with a fresh cross-compiler works.
7188  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189  # <limits.h> exists even on freestanding compilers.
7190  # On the NeXT, cc -E runs the code through the compiler's parser,
7191  # not just through cpp. "Syntax error" is here to catch this case.
7192  cat >conftest.$ac_ext <<_ACEOF
7193/* confdefs.h.  */
7194_ACEOF
7195cat confdefs.h >>conftest.$ac_ext
7196cat >>conftest.$ac_ext <<_ACEOF
7197/* end confdefs.h.  */
7198#ifdef __STDC__
7199# include <limits.h>
7200#else
7201# include <assert.h>
7202#endif
7203                     Syntax error
7204_ACEOF
7205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7206  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7207  ac_status=$?
7208  grep -v '^ *+' conftest.er1 >conftest.err
7209  rm -f conftest.er1
7210  cat conftest.err >&5
7211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212  (exit $ac_status); } >/dev/null; then
7213  if test -s conftest.err; then
7214    ac_cpp_err=$ac_cxx_preproc_warn_flag
7215    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7216  else
7217    ac_cpp_err=
7218  fi
7219else
7220  ac_cpp_err=yes
7221fi
7222if test -z "$ac_cpp_err"; then
7223  :
7224else
7225  echo "$as_me: failed program was:" >&5
7226sed 's/^/| /' conftest.$ac_ext >&5
7227
7228  # Broken: fails on valid input.
7229continue
7230fi
7231rm -f conftest.err conftest.$ac_ext
7232
7233  # OK, works on sane cases.  Now check whether non-existent headers
7234  # can be detected and how.
7235  cat >conftest.$ac_ext <<_ACEOF
7236/* confdefs.h.  */
7237_ACEOF
7238cat confdefs.h >>conftest.$ac_ext
7239cat >>conftest.$ac_ext <<_ACEOF
7240/* end confdefs.h.  */
7241#include <ac_nonexistent.h>
7242_ACEOF
7243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7245  ac_status=$?
7246  grep -v '^ *+' conftest.er1 >conftest.err
7247  rm -f conftest.er1
7248  cat conftest.err >&5
7249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250  (exit $ac_status); } >/dev/null; then
7251  if test -s conftest.err; then
7252    ac_cpp_err=$ac_cxx_preproc_warn_flag
7253    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7254  else
7255    ac_cpp_err=
7256  fi
7257else
7258  ac_cpp_err=yes
7259fi
7260if test -z "$ac_cpp_err"; then
7261  # Broken: success on invalid input.
7262continue
7263else
7264  echo "$as_me: failed program was:" >&5
7265sed 's/^/| /' conftest.$ac_ext >&5
7266
7267  # Passes both tests.
7268ac_preproc_ok=:
7269break
7270fi
7271rm -f conftest.err conftest.$ac_ext
7272
7273done
7274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7275rm -f conftest.err conftest.$ac_ext
7276if $ac_preproc_ok; then
7277  break
7278fi
7279
7280    done
7281    ac_cv_prog_CXXCPP=$CXXCPP
7282
7283fi
7284  CXXCPP=$ac_cv_prog_CXXCPP
7285else
7286  ac_cv_prog_CXXCPP=$CXXCPP
7287fi
7288echo "$as_me:$LINENO: result: $CXXCPP" >&5
7289echo "${ECHO_T}$CXXCPP" >&6
7290ac_preproc_ok=false
7291for ac_cxx_preproc_warn_flag in '' yes
7292do
7293  # Use a header file that comes with gcc, so configuring glibc
7294  # with a fresh cross-compiler works.
7295  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7296  # <limits.h> exists even on freestanding compilers.
7297  # On the NeXT, cc -E runs the code through the compiler's parser,
7298  # not just through cpp. "Syntax error" is here to catch this case.
7299  cat >conftest.$ac_ext <<_ACEOF
7300/* confdefs.h.  */
7301_ACEOF
7302cat confdefs.h >>conftest.$ac_ext
7303cat >>conftest.$ac_ext <<_ACEOF
7304/* end confdefs.h.  */
7305#ifdef __STDC__
7306# include <limits.h>
7307#else
7308# include <assert.h>
7309#endif
7310                     Syntax error
7311_ACEOF
7312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7313  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7314  ac_status=$?
7315  grep -v '^ *+' conftest.er1 >conftest.err
7316  rm -f conftest.er1
7317  cat conftest.err >&5
7318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319  (exit $ac_status); } >/dev/null; then
7320  if test -s conftest.err; then
7321    ac_cpp_err=$ac_cxx_preproc_warn_flag
7322    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7323  else
7324    ac_cpp_err=
7325  fi
7326else
7327  ac_cpp_err=yes
7328fi
7329if test -z "$ac_cpp_err"; then
7330  :
7331else
7332  echo "$as_me: failed program was:" >&5
7333sed 's/^/| /' conftest.$ac_ext >&5
7334
7335  # Broken: fails on valid input.
7336continue
7337fi
7338rm -f conftest.err conftest.$ac_ext
7339
7340  # OK, works on sane cases.  Now check whether non-existent headers
7341  # can be detected and how.
7342  cat >conftest.$ac_ext <<_ACEOF
7343/* confdefs.h.  */
7344_ACEOF
7345cat confdefs.h >>conftest.$ac_ext
7346cat >>conftest.$ac_ext <<_ACEOF
7347/* end confdefs.h.  */
7348#include <ac_nonexistent.h>
7349_ACEOF
7350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7351  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7352  ac_status=$?
7353  grep -v '^ *+' conftest.er1 >conftest.err
7354  rm -f conftest.er1
7355  cat conftest.err >&5
7356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357  (exit $ac_status); } >/dev/null; then
7358  if test -s conftest.err; then
7359    ac_cpp_err=$ac_cxx_preproc_warn_flag
7360    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7361  else
7362    ac_cpp_err=
7363  fi
7364else
7365  ac_cpp_err=yes
7366fi
7367if test -z "$ac_cpp_err"; then
7368  # Broken: success on invalid input.
7369continue
7370else
7371  echo "$as_me: failed program was:" >&5
7372sed 's/^/| /' conftest.$ac_ext >&5
7373
7374  # Passes both tests.
7375ac_preproc_ok=:
7376break
7377fi
7378rm -f conftest.err conftest.$ac_ext
7379
7380done
7381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7382rm -f conftest.err conftest.$ac_ext
7383if $ac_preproc_ok; then
7384  :
7385else
7386  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7387See \`config.log' for more details." >&5
7388echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7389See \`config.log' for more details." >&2;}
7390   { (exit 1); exit 1; }; }
7391fi
7392
7393ac_ext=cc
7394ac_cpp='$CXXCPP $CPPFLAGS'
7395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7398
7399fi
7400
7401
7402# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7403
7404# find the maximum length of command line arguments
7405echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7406echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7407if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7408  echo $ECHO_N "(cached) $ECHO_C" >&6
7409else
7410    i=0
7411  teststring="ABCD"
7412
7413  case $build_os in
7414  msdosdjgpp*)
7415    # On DJGPP, this test can blow up pretty badly due to problems in libc
7416    # (any single argument exceeding 2000 bytes causes a buffer overrun
7417    # during glob expansion).  Even if it were fixed, the result of this
7418    # check would be larger than it should be.
7419    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7420    ;;
7421
7422  gnu*)
7423    # Under GNU Hurd, this test is not required because there is
7424    # no limit to the length of command line arguments.
7425    # Libtool will interpret -1 as no limit whatsoever
7426    lt_cv_sys_max_cmd_len=-1;
7427    ;;
7428
7429  cygwin* | mingw*)
7430    # On Win9x/ME, this test blows up -- it succeeds, but takes
7431    # about 5 minutes as the teststring grows exponentially.
7432    # Worse, since 9x/ME are not pre-emptively multitasking,
7433    # you end up with a "frozen" computer, even though with patience
7434    # the test eventually succeeds (with a max line length of 256k).
7435    # Instead, let's just punt: use the minimum linelength reported by
7436    # all of the supported platforms: 8192 (on NT/2K/XP).
7437    lt_cv_sys_max_cmd_len=8192;
7438    ;;
7439
7440  amigaos*)
7441    # On AmigaOS with pdksh, this test takes hours, literally.
7442    # So we just punt and use a minimum line length of 8192.
7443    lt_cv_sys_max_cmd_len=8192;
7444    ;;
7445
7446  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7447    # This has been around since 386BSD, at least.  Likely further.
7448    if test -x /sbin/sysctl; then
7449      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7450    elif test -x /usr/sbin/sysctl; then
7451      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7452    else
7453      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7454    fi
7455    # And add a safety zone
7456    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7457    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7458    ;;
7459
7460  interix*)
7461    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7462    lt_cv_sys_max_cmd_len=196608
7463    ;;
7464
7465  osf*)
7466    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7467    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7468    # nice to cause kernel panics so lets avoid the loop below.
7469    # First set a reasonable default.
7470    lt_cv_sys_max_cmd_len=16384
7471    #
7472    if test -x /sbin/sysconfig; then
7473      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7474        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7475      esac
7476    fi
7477    ;;
7478  sco3.2v5*)
7479    lt_cv_sys_max_cmd_len=102400
7480    ;;
7481  sysv5* | sco5v6* | sysv4.2uw2*)
7482    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7483    if test -n "$kargmax"; then
7484      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7485    else
7486      lt_cv_sys_max_cmd_len=32768
7487    fi
7488    ;;
7489  *)
7490    # If test is not a shell built-in, we'll probably end up computing a
7491    # maximum length that is only half of the actual maximum length, but
7492    # we can't tell.
7493    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7494    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7495               = "XX$teststring") >/dev/null 2>&1 &&
7496            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7497            lt_cv_sys_max_cmd_len=$new_result &&
7498            test $i != 17 # 1/2 MB should be enough
7499    do
7500      i=`expr $i + 1`
7501      teststring=$teststring$teststring
7502    done
7503    teststring=
7504    # Add a significant safety factor because C++ compilers can tack on massive
7505    # amounts of additional arguments before passing them to the linker.
7506    # It appears as though 1/2 is a usable value.
7507    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7508    ;;
7509  esac
7510
7511fi
7512
7513if test -n $lt_cv_sys_max_cmd_len ; then
7514  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7515echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7516else
7517  echo "$as_me:$LINENO: result: none" >&5
7518echo "${ECHO_T}none" >&6
7519fi
7520
7521
7522
7523
7524# Check for command to grab the raw symbol name followed by C symbol from nm.
7525echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7526echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7527if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7528  echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530
7531# These are sane defaults that work on at least a few old systems.
7532# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7533
7534# Character class describing NM global symbol codes.
7535symcode='[BCDEGRST]'
7536
7537# Regexp to match symbols that can be accessed directly from C.
7538sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7539
7540# Transform an extracted symbol line into a proper C declaration
7541lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7542
7543# Transform an extracted symbol line into symbol name and symbol address
7544lt_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'"
7545
7546# Define system-specific variables.
7547case $host_os in
7548aix*)
7549  symcode='[BCDT]'
7550  ;;
7551cygwin* | mingw* | pw32*)
7552  symcode='[ABCDGISTW]'
7553  ;;
7554hpux*) # Its linker distinguishes data from code symbols
7555  if test "$host_cpu" = ia64; then
7556    symcode='[ABCDEGRST]'
7557  fi
7558  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7559  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'"
7560  ;;
7561linux*)
7562  if test "$host_cpu" = ia64; then
7563    symcode='[ABCDGIRSTW]'
7564    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7565    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'"
7566  fi
7567  ;;
7568irix* | nonstopux*)
7569  symcode='[BCDEGRST]'
7570  ;;
7571osf*)
7572  symcode='[BCDEGQRST]'
7573  ;;
7574solaris*)
7575  symcode='[BDRT]'
7576  ;;
7577sco3.2v5*)
7578  symcode='[DT]'
7579  ;;
7580sysv4.2uw2*)
7581  symcode='[DT]'
7582  ;;
7583sysv5* | sco5v6* | unixware* | OpenUNIX*)
7584  symcode='[ABDT]'
7585  ;;
7586sysv4)
7587  symcode='[DFNSTU]'
7588  ;;
7589esac
7590
7591# Handle CRLF in mingw tool chain
7592opt_cr=
7593case $build_os in
7594mingw*)
7595  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7596  ;;
7597esac
7598
7599# If we're using GNU nm, then use its standard symbol codes.
7600case `$NM -V 2>&1` in
7601*GNU* | *'with BFD'*)
7602  symcode='[ABCDGIRSTW]' ;;
7603esac
7604
7605# Try without a prefix undercore, then with it.
7606for ac_symprfx in "" "_"; do
7607
7608  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7609  symxfrm="\\1 $ac_symprfx\\2 \\2"
7610
7611  # Write the raw and C identifiers.
7612  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7613
7614  # Check to see that the pipe works correctly.
7615  pipe_works=no
7616
7617  rm -f conftest*
7618  cat > conftest.$ac_ext <<EOF
7619#ifdef __cplusplus
7620extern "C" {
7621#endif
7622char nm_test_var;
7623void nm_test_func(){}
7624#ifdef __cplusplus
7625}
7626#endif
7627int main(){nm_test_var='a';nm_test_func();return(0);}
7628EOF
7629
7630  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631  (eval $ac_compile) 2>&5
7632  ac_status=$?
7633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634  (exit $ac_status); }; then
7635    # Now try to grab the symbols.
7636    nlist=conftest.nm
7637    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7638  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7639  ac_status=$?
7640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641  (exit $ac_status); } && test -s "$nlist"; then
7642      # Try sorting and uniquifying the output.
7643      if sort "$nlist" | uniq > "$nlist"T; then
7644        mv -f "$nlist"T "$nlist"
7645      else
7646        rm -f "$nlist"T
7647      fi
7648
7649      # Make sure that we snagged all the symbols we need.
7650      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7651        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7652          cat <<EOF > conftest.$ac_ext
7653#ifdef __cplusplus
7654extern "C" {
7655#endif
7656
7657EOF
7658          # Now generate the symbol file.
7659          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7660
7661          cat <<EOF >> conftest.$ac_ext
7662#if defined (__STDC__) && __STDC__
7663# define lt_ptr_t void *
7664#else
7665# define lt_ptr_t char *
7666# define const
7667#endif
7668
7669/* The mapping between symbol names and symbols. */
7670const struct {
7671  const char *name;
7672  lt_ptr_t address;
7673}
7674lt_preloaded_symbols[] =
7675{
7676EOF
7677          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7678          cat <<\EOF >> conftest.$ac_ext
7679  {0, (lt_ptr_t) 0}
7680};
7681
7682#ifdef __cplusplus
7683}
7684#endif
7685EOF
7686          # Now try linking the two files.
7687          mv conftest.$ac_objext conftstm.$ac_objext
7688          lt_save_LIBS="$LIBS"
7689          lt_save_CFLAGS="$CFLAGS"
7690          LIBS="conftstm.$ac_objext"
7691          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7692          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693  (eval $ac_link) 2>&5
7694  ac_status=$?
7695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7697            pipe_works=yes
7698          fi
7699          LIBS="$lt_save_LIBS"
7700          CFLAGS="$lt_save_CFLAGS"
7701        else
7702          echo "cannot find nm_test_func in $nlist" >&5
7703        fi
7704      else
7705        echo "cannot find nm_test_var in $nlist" >&5
7706      fi
7707    else
7708      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7709    fi
7710  else
7711    echo "$progname: failed program was:" >&5
7712    cat conftest.$ac_ext >&5
7713  fi
7714  rm -f conftest* conftst*
7715
7716  # Do not use the global_symbol_pipe unless it works.
7717  if test "$pipe_works" = yes; then
7718    break
7719  else
7720    lt_cv_sys_global_symbol_pipe=
7721  fi
7722done
7723
7724fi
7725
7726if test -z "$lt_cv_sys_global_symbol_pipe"; then
7727  lt_cv_sys_global_symbol_to_cdecl=
7728fi
7729if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7730  echo "$as_me:$LINENO: result: failed" >&5
7731echo "${ECHO_T}failed" >&6
7732else
7733  echo "$as_me:$LINENO: result: ok" >&5
7734echo "${ECHO_T}ok" >&6
7735fi
7736
7737echo "$as_me:$LINENO: checking for objdir" >&5
7738echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7739if test "${lt_cv_objdir+set}" = set; then
7740  echo $ECHO_N "(cached) $ECHO_C" >&6
7741else
7742  rm -f .libs 2>/dev/null
7743mkdir .libs 2>/dev/null
7744if test -d .libs; then
7745  lt_cv_objdir=.libs
7746else
7747  # MS-DOS does not allow filenames that begin with a dot.
7748  lt_cv_objdir=_libs
7749fi
7750rmdir .libs 2>/dev/null
7751fi
7752echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7753echo "${ECHO_T}$lt_cv_objdir" >&6
7754objdir=$lt_cv_objdir
7755
7756
7757
7758
7759
7760case $host_os in
7761aix3*)
7762  # AIX sometimes has problems with the GCC collect2 program.  For some
7763  # reason, if we set the COLLECT_NAMES environment variable, the problems
7764  # vanish in a puff of smoke.
7765  if test "X${COLLECT_NAMES+set}" != Xset; then
7766    COLLECT_NAMES=
7767    export COLLECT_NAMES
7768  fi
7769  ;;
7770esac
7771
7772# Sed substitution that helps us do robust quoting.  It backslashifies
7773# metacharacters that are still active within double-quoted strings.
7774Xsed='sed -e 1s/^X//'
7775sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7776
7777# Same as above, but do not quote variable references.
7778double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7779
7780# Sed substitution to delay expansion of an escaped shell variable in a
7781# double_quote_subst'ed string.
7782delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7783
7784# Sed substitution to avoid accidental globbing in evaled expressions
7785no_glob_subst='s/\*/\\\*/g'
7786
7787# Constants:
7788rm="rm -f"
7789
7790# Global variables:
7791default_ofile=libtool
7792can_build_shared=yes
7793
7794# All known linkers require a `.a' archive for static linking (except MSVC,
7795# which needs '.lib').
7796libext=a
7797ltmain="$ac_aux_dir/ltmain.sh"
7798ofile="$default_ofile"
7799with_gnu_ld="$lt_cv_prog_gnu_ld"
7800
7801if test -n "$ac_tool_prefix"; then
7802  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7803set dummy ${ac_tool_prefix}ar; ac_word=$2
7804echo "$as_me:$LINENO: checking for $ac_word" >&5
7805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7806if test "${ac_cv_prog_AR+set}" = set; then
7807  echo $ECHO_N "(cached) $ECHO_C" >&6
7808else
7809  if test -n "$AR"; then
7810  ac_cv_prog_AR="$AR" # Let the user override the test.
7811else
7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815  IFS=$as_save_IFS
7816  test -z "$as_dir" && as_dir=.
7817  for ac_exec_ext in '' $ac_executable_extensions; do
7818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819    ac_cv_prog_AR="${ac_tool_prefix}ar"
7820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821    break 2
7822  fi
7823done
7824done
7825
7826fi
7827fi
7828AR=$ac_cv_prog_AR
7829if test -n "$AR"; then
7830  echo "$as_me:$LINENO: result: $AR" >&5
7831echo "${ECHO_T}$AR" >&6
7832else
7833  echo "$as_me:$LINENO: result: no" >&5
7834echo "${ECHO_T}no" >&6
7835fi
7836
7837fi
7838if test -z "$ac_cv_prog_AR"; then
7839  ac_ct_AR=$AR
7840  # Extract the first word of "ar", so it can be a program name with args.
7841set dummy ar; ac_word=$2
7842echo "$as_me:$LINENO: checking for $ac_word" >&5
7843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7844if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7845  echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847  if test -n "$ac_ct_AR"; then
7848  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7849else
7850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853  IFS=$as_save_IFS
7854  test -z "$as_dir" && as_dir=.
7855  for ac_exec_ext in '' $ac_executable_extensions; do
7856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7857    ac_cv_prog_ac_ct_AR="ar"
7858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859    break 2
7860  fi
7861done
7862done
7863
7864  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7865fi
7866fi
7867ac_ct_AR=$ac_cv_prog_ac_ct_AR
7868if test -n "$ac_ct_AR"; then
7869  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7870echo "${ECHO_T}$ac_ct_AR" >&6
7871else
7872  echo "$as_me:$LINENO: result: no" >&5
7873echo "${ECHO_T}no" >&6
7874fi
7875
7876  AR=$ac_ct_AR
7877else
7878  AR="$ac_cv_prog_AR"
7879fi
7880
7881if test -n "$ac_tool_prefix"; then
7882  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7883set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7884echo "$as_me:$LINENO: checking for $ac_word" >&5
7885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7886if test "${ac_cv_prog_RANLIB+set}" = set; then
7887  echo $ECHO_N "(cached) $ECHO_C" >&6
7888else
7889  if test -n "$RANLIB"; then
7890  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7891else
7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893for as_dir in $PATH
7894do
7895  IFS=$as_save_IFS
7896  test -z "$as_dir" && as_dir=.
7897  for ac_exec_ext in '' $ac_executable_extensions; do
7898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901    break 2
7902  fi
7903done
7904done
7905
7906fi
7907fi
7908RANLIB=$ac_cv_prog_RANLIB
7909if test -n "$RANLIB"; then
7910  echo "$as_me:$LINENO: result: $RANLIB" >&5
7911echo "${ECHO_T}$RANLIB" >&6
7912else
7913  echo "$as_me:$LINENO: result: no" >&5
7914echo "${ECHO_T}no" >&6
7915fi
7916
7917fi
7918if test -z "$ac_cv_prog_RANLIB"; then
7919  ac_ct_RANLIB=$RANLIB
7920  # Extract the first word of "ranlib", so it can be a program name with args.
7921set dummy ranlib; ac_word=$2
7922echo "$as_me:$LINENO: checking for $ac_word" >&5
7923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7924if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7925  echo $ECHO_N "(cached) $ECHO_C" >&6
7926else
7927  if test -n "$ac_ct_RANLIB"; then
7928  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7929else
7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931for as_dir in $PATH
7932do
7933  IFS=$as_save_IFS
7934  test -z "$as_dir" && as_dir=.
7935  for ac_exec_ext in '' $ac_executable_extensions; do
7936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937    ac_cv_prog_ac_ct_RANLIB="ranlib"
7938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939    break 2
7940  fi
7941done
7942done
7943
7944  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7945fi
7946fi
7947ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7948if test -n "$ac_ct_RANLIB"; then
7949  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7950echo "${ECHO_T}$ac_ct_RANLIB" >&6
7951else
7952  echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954fi
7955
7956  RANLIB=$ac_ct_RANLIB
7957else
7958  RANLIB="$ac_cv_prog_RANLIB"
7959fi
7960
7961if test -n "$ac_tool_prefix"; then
7962  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7963set dummy ${ac_tool_prefix}strip; ac_word=$2
7964echo "$as_me:$LINENO: checking for $ac_word" >&5
7965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7966if test "${ac_cv_prog_STRIP+set}" = set; then
7967  echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969  if test -n "$STRIP"; then
7970  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7971else
7972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973for as_dir in $PATH
7974do
7975  IFS=$as_save_IFS
7976  test -z "$as_dir" && as_dir=.
7977  for ac_exec_ext in '' $ac_executable_extensions; do
7978  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7979    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7980    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7981    break 2
7982  fi
7983done
7984done
7985
7986fi
7987fi
7988STRIP=$ac_cv_prog_STRIP
7989if test -n "$STRIP"; then
7990  echo "$as_me:$LINENO: result: $STRIP" >&5
7991echo "${ECHO_T}$STRIP" >&6
7992else
7993  echo "$as_me:$LINENO: result: no" >&5
7994echo "${ECHO_T}no" >&6
7995fi
7996
7997fi
7998if test -z "$ac_cv_prog_STRIP"; then
7999  ac_ct_STRIP=$STRIP
8000  # Extract the first word of "strip", so it can be a program name with args.
8001set dummy strip; ac_word=$2
8002echo "$as_me:$LINENO: checking for $ac_word" >&5
8003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8004if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8005  echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007  if test -n "$ac_ct_STRIP"; then
8008  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8009else
8010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011for as_dir in $PATH
8012do
8013  IFS=$as_save_IFS
8014  test -z "$as_dir" && as_dir=.
8015  for ac_exec_ext in '' $ac_executable_extensions; do
8016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017    ac_cv_prog_ac_ct_STRIP="strip"
8018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8019    break 2
8020  fi
8021done
8022done
8023
8024  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8025fi
8026fi
8027ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8028if test -n "$ac_ct_STRIP"; then
8029  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8030echo "${ECHO_T}$ac_ct_STRIP" >&6
8031else
8032  echo "$as_me:$LINENO: result: no" >&5
8033echo "${ECHO_T}no" >&6
8034fi
8035
8036  STRIP=$ac_ct_STRIP
8037else
8038  STRIP="$ac_cv_prog_STRIP"
8039fi
8040
8041
8042old_CC="$CC"
8043old_CFLAGS="$CFLAGS"
8044
8045# Set sane defaults for various variables
8046test -z "$AR" && AR=ar
8047test -z "$AR_FLAGS" && AR_FLAGS=cru
8048test -z "$AS" && AS=as
8049test -z "$CC" && CC=cc
8050test -z "$LTCC" && LTCC=$CC
8051test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8052test -z "$DLLTOOL" && DLLTOOL=dlltool
8053test -z "$LD" && LD=ld
8054test -z "$LN_S" && LN_S="ln -s"
8055test -z "$MAGIC_CMD" && MAGIC_CMD=file
8056test -z "$NM" && NM=nm
8057test -z "$SED" && SED=sed
8058test -z "$OBJDUMP" && OBJDUMP=objdump
8059test -z "$RANLIB" && RANLIB=:
8060test -z "$STRIP" && STRIP=:
8061test -z "$ac_objext" && ac_objext=o
8062
8063# Determine commands to create old-style static archives.
8064old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8065old_postinstall_cmds='chmod 644 $oldlib'
8066old_postuninstall_cmds=
8067
8068if test -n "$RANLIB"; then
8069  case $host_os in
8070  openbsd*)
8071    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8072    ;;
8073  *)
8074    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8075    ;;
8076  esac
8077  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8078fi
8079
8080for cc_temp in $compiler""; do
8081  case $cc_temp in
8082    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8083    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8084    \-*) ;;
8085    *) break;;
8086  esac
8087done
8088cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8089
8090
8091# Only perform the check for file, if the check method requires it
8092case $deplibs_check_method in
8093file_magic*)
8094  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8095    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8096echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8097if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8098  echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100  case $MAGIC_CMD in
8101[\\/*] |  ?:[\\/]*)
8102  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8103  ;;
8104*)
8105  lt_save_MAGIC_CMD="$MAGIC_CMD"
8106  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8107  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8108  for ac_dir in $ac_dummy; do
8109    IFS="$lt_save_ifs"
8110    test -z "$ac_dir" && ac_dir=.
8111    if test -f $ac_dir/${ac_tool_prefix}file; then
8112      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8113      if test -n "$file_magic_test_file"; then
8114        case $deplibs_check_method in
8115        "file_magic "*)
8116          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8117          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8118          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8119            $EGREP "$file_magic_regex" > /dev/null; then
8120            :
8121          else
8122            cat <<EOF 1>&2
8123
8124*** Warning: the command libtool uses to detect shared libraries,
8125*** $file_magic_cmd, produces output that libtool cannot recognize.
8126*** The result is that libtool may fail to recognize shared libraries
8127*** as such.  This will affect the creation of libtool libraries that
8128*** depend on shared libraries, but programs linked with such libtool
8129*** libraries will work regardless of this problem.  Nevertheless, you
8130*** may want to report the problem to your system manager and/or to
8131*** bug-libtool@gnu.org
8132
8133EOF
8134          fi ;;
8135        esac
8136      fi
8137      break
8138    fi
8139  done
8140  IFS="$lt_save_ifs"
8141  MAGIC_CMD="$lt_save_MAGIC_CMD"
8142  ;;
8143esac
8144fi
8145
8146MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8147if test -n "$MAGIC_CMD"; then
8148  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8149echo "${ECHO_T}$MAGIC_CMD" >&6
8150else
8151  echo "$as_me:$LINENO: result: no" >&5
8152echo "${ECHO_T}no" >&6
8153fi
8154
8155if test -z "$lt_cv_path_MAGIC_CMD"; then
8156  if test -n "$ac_tool_prefix"; then
8157    echo "$as_me:$LINENO: checking for file" >&5
8158echo $ECHO_N "checking for file... $ECHO_C" >&6
8159if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8160  echo $ECHO_N "(cached) $ECHO_C" >&6
8161else
8162  case $MAGIC_CMD in
8163[\\/*] |  ?:[\\/]*)
8164  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8165  ;;
8166*)
8167  lt_save_MAGIC_CMD="$MAGIC_CMD"
8168  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8169  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8170  for ac_dir in $ac_dummy; do
8171    IFS="$lt_save_ifs"
8172    test -z "$ac_dir" && ac_dir=.
8173    if test -f $ac_dir/file; then
8174      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8175      if test -n "$file_magic_test_file"; then
8176        case $deplibs_check_method in
8177        "file_magic "*)
8178          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8179          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8180          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8181            $EGREP "$file_magic_regex" > /dev/null; then
8182            :
8183          else
8184            cat <<EOF 1>&2
8185
8186*** Warning: the command libtool uses to detect shared libraries,
8187*** $file_magic_cmd, produces output that libtool cannot recognize.
8188*** The result is that libtool may fail to recognize shared libraries
8189*** as such.  This will affect the creation of libtool libraries that
8190*** depend on shared libraries, but programs linked with such libtool
8191*** libraries will work regardless of this problem.  Nevertheless, you
8192*** may want to report the problem to your system manager and/or to
8193*** bug-libtool@gnu.org
8194
8195EOF
8196          fi ;;
8197        esac
8198      fi
8199      break
8200    fi
8201  done
8202  IFS="$lt_save_ifs"
8203  MAGIC_CMD="$lt_save_MAGIC_CMD"
8204  ;;
8205esac
8206fi
8207
8208MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8209if test -n "$MAGIC_CMD"; then
8210  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8211echo "${ECHO_T}$MAGIC_CMD" >&6
8212else
8213  echo "$as_me:$LINENO: result: no" >&5
8214echo "${ECHO_T}no" >&6
8215fi
8216
8217  else
8218    MAGIC_CMD=:
8219  fi
8220fi
8221
8222  fi
8223  ;;
8224esac
8225
8226enable_dlopen=no
8227enable_win32_dll=no
8228
8229# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8230if test "${enable_libtool_lock+set}" = set; then
8231  enableval="$enable_libtool_lock"
8232
8233fi;
8234test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8235
8236
8237# Check whether --with-pic or --without-pic was given.
8238if test "${with_pic+set}" = set; then
8239  withval="$with_pic"
8240  pic_mode="$withval"
8241else
8242  pic_mode=default
8243fi;
8244test -z "$pic_mode" && pic_mode=default
8245
8246# Use C for the default configuration in the libtool script
8247tagname=
8248lt_save_CC="$CC"
8249ac_ext=c
8250ac_cpp='$CPP $CPPFLAGS'
8251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8253ac_compiler_gnu=$ac_cv_c_compiler_gnu
8254
8255
8256# Source file extension for C test sources.
8257ac_ext=c
8258
8259# Object file extension for compiled C test sources.
8260objext=o
8261objext=$objext
8262
8263# Code to be used in simple compile tests
8264lt_simple_compile_test_code="int some_variable = 0;\n"
8265
8266# Code to be used in simple link tests
8267lt_simple_link_test_code='int main(){return(0);}\n'
8268
8269
8270# If no C compiler was specified, use CC.
8271LTCC=${LTCC-"$CC"}
8272
8273# If no C compiler flags were specified, use CFLAGS.
8274LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8275
8276# Allow CC to be a program name with arguments.
8277compiler=$CC
8278
8279
8280# save warnings/boilerplate of simple test code
8281ac_outfile=conftest.$ac_objext
8282printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8283eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8284_lt_compiler_boilerplate=`cat conftest.err`
8285$rm conftest*
8286
8287ac_outfile=conftest.$ac_objext
8288printf "$lt_simple_link_test_code" >conftest.$ac_ext
8289eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8290_lt_linker_boilerplate=`cat conftest.err`
8291$rm conftest*
8292
8293
8294## CAVEAT EMPTOR:
8295## There is no encapsulation within the following macros, do not change
8296## the running order or otherwise move them around unless you know exactly
8297## what you are doing...
8298
8299lt_prog_compiler_no_builtin_flag=
8300
8301if test "$GCC" = yes; then
8302  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8303
8304
8305echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8306echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8307if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8308  echo $ECHO_N "(cached) $ECHO_C" >&6
8309else
8310  lt_cv_prog_compiler_rtti_exceptions=no
8311  ac_outfile=conftest.$ac_objext
8312   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8313   lt_compiler_flag="-fno-rtti -fno-exceptions"
8314   # Insert the option either (1) after the last *FLAGS variable, or
8315   # (2) before a word containing "conftest.", or (3) at the end.
8316   # Note that $ac_compile itself does not contain backslashes and begins
8317   # with a dollar sign (not a hyphen), so the echo should work correctly.
8318   # The option is referenced via a variable to avoid confusing sed.
8319   lt_compile=`echo "$ac_compile" | $SED \
8320   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8321   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8322   -e 's:$: $lt_compiler_flag:'`
8323   (eval echo "\"\$as_me:8323: $lt_compile\"" >&5)
8324   (eval "$lt_compile" 2>conftest.err)
8325   ac_status=$?
8326   cat conftest.err >&5
8327   echo "$as_me:8327: \$? = $ac_status" >&5
8328   if (exit $ac_status) && test -s "$ac_outfile"; then
8329     # The compiler can only warn and ignore the option if not recognized
8330     # So say no if there are warnings other than the usual output.
8331     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8332     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8333     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8334       lt_cv_prog_compiler_rtti_exceptions=yes
8335     fi
8336   fi
8337   $rm conftest*
8338
8339fi
8340echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8341echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8342
8343if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8344    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8345else
8346    :
8347fi
8348
8349fi
8350
8351lt_prog_compiler_wl=
8352lt_prog_compiler_pic=
8353lt_prog_compiler_static=
8354
8355echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8356echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8357
8358  if test "$GCC" = yes; then
8359    lt_prog_compiler_wl='-Wl,'
8360    lt_prog_compiler_static='-static'
8361
8362    case $host_os in
8363      aix*)
8364      # All AIX code is PIC.
8365      if test "$host_cpu" = ia64; then
8366        # AIX 5 now supports IA64 processor
8367        lt_prog_compiler_static='-Bstatic'
8368      fi
8369      ;;
8370
8371    amigaos*)
8372      # FIXME: we need at least 68020 code to build shared libraries, but
8373      # adding the `-m68020' flag to GCC prevents building anything better,
8374      # like `-m68040'.
8375      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8376      ;;
8377
8378    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8379      # PIC is the default for these OSes.
8380      ;;
8381
8382    mingw* | pw32* | os2*)
8383      # This hack is so that the source file can tell whether it is being
8384      # built for inclusion in a dll (and should export symbols for example).
8385      lt_prog_compiler_pic='-DDLL_EXPORT'
8386      ;;
8387
8388    darwin* | rhapsody*)
8389      # PIC is the default on this platform
8390      # Common symbols not allowed in MH_DYLIB files
8391      lt_prog_compiler_pic='-fno-common'
8392      ;;
8393
8394    interix3*)
8395      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8396      # Instead, we relocate shared libraries at runtime.
8397      ;;
8398
8399    msdosdjgpp*)
8400      # Just because we use GCC doesn't mean we suddenly get shared libraries
8401      # on systems that don't support them.
8402      lt_prog_compiler_can_build_shared=no
8403      enable_shared=no
8404      ;;
8405
8406    sysv4*MP*)
8407      if test -d /usr/nec; then
8408        lt_prog_compiler_pic=-Kconform_pic
8409      fi
8410      ;;
8411
8412    hpux*)
8413      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8414      # not for PA HP-UX.
8415      case $host_cpu in
8416      hppa*64*|ia64*)
8417        # +Z the default
8418        ;;
8419      *)
8420        lt_prog_compiler_pic='-fPIC'
8421        ;;
8422      esac
8423      ;;
8424
8425    *)
8426      lt_prog_compiler_pic='-fPIC'
8427      ;;
8428    esac
8429  else
8430    # PORTME Check for flag to pass linker flags through the system compiler.
8431    case $host_os in
8432    aix*)
8433      lt_prog_compiler_wl='-Wl,'
8434      if test "$host_cpu" = ia64; then
8435        # AIX 5 now supports IA64 processor
8436        lt_prog_compiler_static='-Bstatic'
8437      else
8438        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8439      fi
8440      ;;
8441      darwin*)
8442        # PIC is the default on this platform
8443        # Common symbols not allowed in MH_DYLIB files
8444       case $cc_basename in
8445         xlc*)
8446         lt_prog_compiler_pic='-qnocommon'
8447         lt_prog_compiler_wl='-Wl,'
8448         ;;
8449       esac
8450       ;;
8451
8452    mingw* | pw32* | os2*)
8453      # This hack is so that the source file can tell whether it is being
8454      # built for inclusion in a dll (and should export symbols for example).
8455      lt_prog_compiler_pic='-DDLL_EXPORT'
8456      ;;
8457
8458    hpux9* | hpux10* | hpux11*)
8459      lt_prog_compiler_wl='-Wl,'
8460      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8461      # not for PA HP-UX.
8462      case $host_cpu in
8463      hppa*64*|ia64*)
8464        # +Z the default
8465        ;;
8466      *)
8467        lt_prog_compiler_pic='+Z'
8468        ;;
8469      esac
8470      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8471      lt_prog_compiler_static='${wl}-a ${wl}archive'
8472      ;;
8473
8474    irix5* | irix6* | nonstopux*)
8475      lt_prog_compiler_wl='-Wl,'
8476      # PIC (with -KPIC) is the default.
8477      lt_prog_compiler_static='-non_shared'
8478      ;;
8479
8480    newsos6)
8481      lt_prog_compiler_pic='-KPIC'
8482      lt_prog_compiler_static='-Bstatic'
8483      ;;
8484
8485    linux*)
8486      case $cc_basename in
8487      icc* | ecc*)
8488        lt_prog_compiler_wl='-Wl,'
8489        lt_prog_compiler_pic='-KPIC'
8490        lt_prog_compiler_static='-static'
8491        ;;
8492      pgcc* | pgf77* | pgf90* | pgf95*)
8493        # Portland Group compilers (*not* the Pentium gcc compiler,
8494        # which looks to be a dead project)
8495        lt_prog_compiler_wl='-Wl,'
8496        lt_prog_compiler_pic='-fpic'
8497        lt_prog_compiler_static='-Bstatic'
8498        ;;
8499      ccc*)
8500        lt_prog_compiler_wl='-Wl,'
8501        # All Alpha code is PIC.
8502        lt_prog_compiler_static='-non_shared'
8503        ;;
8504      esac
8505      ;;
8506
8507    osf3* | osf4* | osf5*)
8508      lt_prog_compiler_wl='-Wl,'
8509      # All OSF/1 code is PIC.
8510      lt_prog_compiler_static='-non_shared'
8511      ;;
8512
8513    solaris*)
8514      lt_prog_compiler_pic='-KPIC'
8515      lt_prog_compiler_static='-Bstatic'
8516      case $cc_basename in
8517      f77* | f90* | f95*)
8518        lt_prog_compiler_wl='-Qoption ld ';;
8519      *)
8520        lt_prog_compiler_wl='-Wl,';;
8521      esac
8522      ;;
8523
8524    sunos4*)
8525      lt_prog_compiler_wl='-Qoption ld '
8526      lt_prog_compiler_pic='-PIC'
8527      lt_prog_compiler_static='-Bstatic'
8528      ;;
8529
8530    sysv4 | sysv4.2uw2* | sysv4.3*)
8531      lt_prog_compiler_wl='-Wl,'
8532      lt_prog_compiler_pic='-KPIC'
8533      lt_prog_compiler_static='-Bstatic'
8534      ;;
8535
8536    sysv4*MP*)
8537      if test -d /usr/nec ;then
8538        lt_prog_compiler_pic='-Kconform_pic'
8539        lt_prog_compiler_static='-Bstatic'
8540      fi
8541      ;;
8542
8543    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8544      lt_prog_compiler_wl='-Wl,'
8545      lt_prog_compiler_pic='-KPIC'
8546      lt_prog_compiler_static='-Bstatic'
8547      ;;
8548
8549    unicos*)
8550      lt_prog_compiler_wl='-Wl,'
8551      lt_prog_compiler_can_build_shared=no
8552      ;;
8553
8554    uts4*)
8555      lt_prog_compiler_pic='-pic'
8556      lt_prog_compiler_static='-Bstatic'
8557      ;;
8558
8559    *)
8560      lt_prog_compiler_can_build_shared=no
8561      ;;
8562    esac
8563  fi
8564
8565echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8566echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8567
8568#
8569# Check to make sure the PIC flag actually works.
8570#
8571if test -n "$lt_prog_compiler_pic"; then
8572
8573echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8574echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8575if test "${lt_prog_compiler_pic_works+set}" = set; then
8576  echo $ECHO_N "(cached) $ECHO_C" >&6
8577else
8578  lt_prog_compiler_pic_works=no
8579  ac_outfile=conftest.$ac_objext
8580   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8581   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8582   # Insert the option either (1) after the last *FLAGS variable, or
8583   # (2) before a word containing "conftest.", or (3) at the end.
8584   # Note that $ac_compile itself does not contain backslashes and begins
8585   # with a dollar sign (not a hyphen), so the echo should work correctly.
8586   # The option is referenced via a variable to avoid confusing sed.
8587   lt_compile=`echo "$ac_compile" | $SED \
8588   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8589   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8590   -e 's:$: $lt_compiler_flag:'`
8591   (eval echo "\"\$as_me:8591: $lt_compile\"" >&5)
8592   (eval "$lt_compile" 2>conftest.err)
8593   ac_status=$?
8594   cat conftest.err >&5
8595   echo "$as_me:8595: \$? = $ac_status" >&5
8596   if (exit $ac_status) && test -s "$ac_outfile"; then
8597     # The compiler can only warn and ignore the option if not recognized
8598     # So say no if there are warnings other than the usual output.
8599     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8600     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8601     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8602       lt_prog_compiler_pic_works=yes
8603     fi
8604   fi
8605   $rm conftest*
8606
8607fi
8608echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8609echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8610
8611if test x"$lt_prog_compiler_pic_works" = xyes; then
8612    case $lt_prog_compiler_pic in
8613     "" | " "*) ;;
8614     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8615     esac
8616else
8617    lt_prog_compiler_pic=
8618     lt_prog_compiler_can_build_shared=no
8619fi
8620
8621fi
8622case $host_os in
8623  # For platforms which do not support PIC, -DPIC is meaningless:
8624  *djgpp*)
8625    lt_prog_compiler_pic=
8626    ;;
8627  *)
8628    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8629    ;;
8630esac
8631
8632#
8633# Check to make sure the static flag actually works.
8634#
8635wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8636echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8637echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8638if test "${lt_prog_compiler_static_works+set}" = set; then
8639  echo $ECHO_N "(cached) $ECHO_C" >&6
8640else
8641  lt_prog_compiler_static_works=no
8642   save_LDFLAGS="$LDFLAGS"
8643   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8644   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8645   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8646     # The linker can only warn and ignore the option if not recognized
8647     # So say no if there are warnings
8648     if test -s conftest.err; then
8649       # Append any errors to the config.log.
8650       cat conftest.err 1>&5
8651       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8652       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8653       if diff conftest.exp conftest.er2 >/dev/null; then
8654         lt_prog_compiler_static_works=yes
8655       fi
8656     else
8657       lt_prog_compiler_static_works=yes
8658     fi
8659   fi
8660   $rm conftest*
8661   LDFLAGS="$save_LDFLAGS"
8662
8663fi
8664echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8665echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8666
8667if test x"$lt_prog_compiler_static_works" = xyes; then
8668    :
8669else
8670    lt_prog_compiler_static=
8671fi
8672
8673
8674echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8675echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8676if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8677  echo $ECHO_N "(cached) $ECHO_C" >&6
8678else
8679  lt_cv_prog_compiler_c_o=no
8680   $rm -r conftest 2>/dev/null
8681   mkdir conftest
8682   cd conftest
8683   mkdir out
8684   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8685
8686   lt_compiler_flag="-o out/conftest2.$ac_objext"
8687   # Insert the option either (1) after the last *FLAGS variable, or
8688   # (2) before a word containing "conftest.", or (3) at the end.
8689   # Note that $ac_compile itself does not contain backslashes and begins
8690   # with a dollar sign (not a hyphen), so the echo should work correctly.
8691   lt_compile=`echo "$ac_compile" | $SED \
8692   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8693   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8694   -e 's:$: $lt_compiler_flag:'`
8695   (eval echo "\"\$as_me:8695: $lt_compile\"" >&5)
8696   (eval "$lt_compile" 2>out/conftest.err)
8697   ac_status=$?
8698   cat out/conftest.err >&5
8699   echo "$as_me:8699: \$? = $ac_status" >&5
8700   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8701   then
8702     # The compiler can only warn and ignore the option if not recognized
8703     # So say no if there are warnings
8704     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8705     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8706     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8707       lt_cv_prog_compiler_c_o=yes
8708     fi
8709   fi
8710   chmod u+w . 2>&5
8711   $rm conftest*
8712   # SGI C++ compiler will create directory out/ii_files/ for
8713   # template instantiation
8714   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8715   $rm out/* && rmdir out
8716   cd ..
8717   rmdir conftest
8718   $rm conftest*
8719
8720fi
8721echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8722echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8723
8724
8725hard_links="nottested"
8726if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8727  # do not overwrite the value of need_locks provided by the user
8728  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8729echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8730  hard_links=yes
8731  $rm conftest*
8732  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8733  touch conftest.a
8734  ln conftest.a conftest.b 2>&5 || hard_links=no
8735  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8736  echo "$as_me:$LINENO: result: $hard_links" >&5
8737echo "${ECHO_T}$hard_links" >&6
8738  if test "$hard_links" = no; then
8739    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8740echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8741    need_locks=warn
8742  fi
8743else
8744  need_locks=no
8745fi
8746
8747echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8748echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8749
8750  runpath_var=
8751  allow_undefined_flag=
8752  enable_shared_with_static_runtimes=no
8753  archive_cmds=
8754  archive_expsym_cmds=
8755  old_archive_From_new_cmds=
8756  old_archive_from_expsyms_cmds=
8757  export_dynamic_flag_spec=
8758  whole_archive_flag_spec=
8759  thread_safe_flag_spec=
8760  hardcode_libdir_flag_spec=
8761  hardcode_libdir_flag_spec_ld=
8762  hardcode_libdir_separator=
8763  hardcode_direct=no
8764  hardcode_minus_L=no
8765  hardcode_shlibpath_var=unsupported
8766  link_all_deplibs=unknown
8767  hardcode_automatic=no
8768  module_cmds=
8769  module_expsym_cmds=
8770  always_export_symbols=no
8771  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8772  # include_expsyms should be a list of space-separated symbols to be *always*
8773  # included in the symbol list
8774  include_expsyms=
8775  # exclude_expsyms can be an extended regexp of symbols to exclude
8776  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8777  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8778  # as well as any symbol that contains `d'.
8779  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8780  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8781  # platforms (ab)use it in PIC code, but their linkers get confused if
8782  # the symbol is explicitly referenced.  Since portable code cannot
8783  # rely on this symbol name, it's probably fine to never include it in
8784  # preloaded symbol tables.
8785  extract_expsyms_cmds=
8786  # Just being paranoid about ensuring that cc_basename is set.
8787  for cc_temp in $compiler""; do
8788  case $cc_temp in
8789    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8790    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8791    \-*) ;;
8792    *) break;;
8793  esac
8794done
8795cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8796
8797  case $host_os in
8798  cygwin* | mingw* | pw32*)
8799    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8800    # When not using gcc, we currently assume that we are using
8801    # Microsoft Visual C++.
8802    if test "$GCC" != yes; then
8803      with_gnu_ld=no
8804    fi
8805    ;;
8806  interix*)
8807    # we just hope/assume this is gcc and not c89 (= MSVC++)
8808    with_gnu_ld=yes
8809    ;;
8810  openbsd*)
8811    with_gnu_ld=no
8812    ;;
8813  esac
8814
8815  ld_shlibs=yes
8816  if test "$with_gnu_ld" = yes; then
8817    # If archive_cmds runs LD, not CC, wlarc should be empty
8818    wlarc='${wl}'
8819
8820    # Set some defaults for GNU ld with shared library support. These
8821    # are reset later if shared libraries are not supported. Putting them
8822    # here allows them to be overridden if necessary.
8823    runpath_var=LD_RUN_PATH
8824    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8825    export_dynamic_flag_spec='${wl}--export-dynamic'
8826    # ancient GNU ld didn't support --whole-archive et. al.
8827    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8828        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8829      else
8830        whole_archive_flag_spec=
8831    fi
8832    supports_anon_versioning=no
8833    case `$LD -v 2>/dev/null` in
8834      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8835      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8836      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8837      *\ 2.11.*) ;; # other 2.11 versions
8838      *) supports_anon_versioning=yes ;;
8839    esac
8840
8841    # See if GNU ld supports shared libraries.
8842    case $host_os in
8843    aix3* | aix4* | aix5*)
8844      # On AIX/PPC, the GNU linker is very broken
8845      if test "$host_cpu" != ia64; then
8846        ld_shlibs=no
8847        cat <<EOF 1>&2
8848
8849*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8850*** to be unable to reliably create shared libraries on AIX.
8851*** Therefore, libtool is disabling shared libraries support.  If you
8852*** really care for shared libraries, you may want to modify your PATH
8853*** so that a non-GNU linker is found, and then restart.
8854
8855EOF
8856      fi
8857      ;;
8858
8859    amigaos*)
8860      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)'
8861      hardcode_libdir_flag_spec='-L$libdir'
8862      hardcode_minus_L=yes
8863
8864      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8865      # that the semantics of dynamic libraries on AmigaOS, at least up
8866      # to version 4, is to share data among multiple programs linked
8867      # with the same dynamic library.  Since this doesn't match the
8868      # behavior of shared libraries on other platforms, we can't use
8869      # them.
8870      ld_shlibs=no
8871      ;;
8872
8873    beos*)
8874      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8875        allow_undefined_flag=unsupported
8876        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8877        # support --undefined.  This deserves some investigation.  FIXME
8878        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8879      else
8880        ld_shlibs=no
8881      fi
8882      ;;
8883
8884    cygwin* | mingw* | pw32*)
8885      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8886      # as there is no search path for DLLs.
8887      hardcode_libdir_flag_spec='-L$libdir'
8888      allow_undefined_flag=unsupported
8889      always_export_symbols=no
8890      enable_shared_with_static_runtimes=yes
8891      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8892
8893      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8894        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8895        # If the export-symbols file already is a .def file (1st line
8896        # is EXPORTS), use it as is; otherwise, prepend...
8897        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8898          cp $export_symbols $output_objdir/$soname.def;
8899        else
8900          echo EXPORTS > $output_objdir/$soname.def;
8901          cat $export_symbols >> $output_objdir/$soname.def;
8902        fi~
8903        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8904      else
8905        ld_shlibs=no
8906      fi
8907      ;;
8908
8909    interix3*)
8910      hardcode_direct=no
8911      hardcode_shlibpath_var=no
8912      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8913      export_dynamic_flag_spec='${wl}-E'
8914      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8915      # Instead, shared libraries are loaded at an image base (0x10000000 by
8916      # default) and relocated if they conflict, which is a slow very memory
8917      # consuming and fragmenting process.  To avoid this, we pick a random,
8918      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8919      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8920      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8921      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'
8922      ;;
8923
8924    linux*)
8925      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8926        tmp_addflag=
8927        case $cc_basename,$host_cpu in
8928        pgcc*)                          # Portland Group C compiler
8929          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'
8930          tmp_addflag=' $pic_flag'
8931          ;;
8932        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8933          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'
8934          tmp_addflag=' $pic_flag -Mnomain' ;;
8935        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8936          tmp_addflag=' -i_dynamic' ;;
8937        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8938          tmp_addflag=' -i_dynamic -nofor_main' ;;
8939        ifc* | ifort*)                  # Intel Fortran compiler
8940          tmp_addflag=' -nofor_main' ;;
8941        esac
8942        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8943
8944        if test $supports_anon_versioning = yes; then
8945          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8946  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8947  $echo "local: *; };" >> $output_objdir/$libname.ver~
8948          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8949        fi
8950      else
8951        ld_shlibs=no
8952      fi
8953      ;;
8954
8955    netbsd*)
8956      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8957        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8958        wlarc=
8959      else
8960        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8961        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8962      fi
8963      ;;
8964
8965    solaris*)
8966      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8967        ld_shlibs=no
8968        cat <<EOF 1>&2
8969
8970*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8971*** create shared libraries on Solaris systems.  Therefore, libtool
8972*** is disabling shared libraries support.  We urge you to upgrade GNU
8973*** binutils to release 2.9.1 or newer.  Another option is to modify
8974*** your PATH or compiler configuration so that the native linker is
8975*** used, and then restart.
8976
8977EOF
8978      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8979        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8980        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8981      else
8982        ld_shlibs=no
8983      fi
8984      ;;
8985
8986    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8987      case `$LD -v 2>&1` in
8988        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8989        ld_shlibs=no
8990        cat <<_LT_EOF 1>&2
8991
8992*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8993*** reliably create shared libraries on SCO systems.  Therefore, libtool
8994*** is disabling shared libraries support.  We urge you to upgrade GNU
8995*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8996*** your PATH or compiler configuration so that the native linker is
8997*** used, and then restart.
8998
8999_LT_EOF
9000        ;;
9001        *)
9002          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9003            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9004            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9005            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9006          else
9007            ld_shlibs=no
9008          fi
9009        ;;
9010      esac
9011      ;;
9012
9013    sunos4*)
9014      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9015      wlarc=
9016      hardcode_direct=yes
9017      hardcode_shlibpath_var=no
9018      ;;
9019
9020    *)
9021      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9022        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9023        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9024      else
9025        ld_shlibs=no
9026      fi
9027      ;;
9028    esac
9029
9030    if test "$ld_shlibs" = no; then
9031      runpath_var=
9032      hardcode_libdir_flag_spec=
9033      export_dynamic_flag_spec=
9034      whole_archive_flag_spec=
9035    fi
9036  else
9037    # PORTME fill in a description of your system's linker (not GNU ld)
9038    case $host_os in
9039    aix3*)
9040      allow_undefined_flag=unsupported
9041      always_export_symbols=yes
9042      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'
9043      # Note: this linker hardcodes the directories in LIBPATH if there
9044      # are no directories specified by -L.
9045      hardcode_minus_L=yes
9046      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9047        # Neither direct hardcoding nor static linking is supported with a
9048        # broken collect2.
9049        hardcode_direct=unsupported
9050      fi
9051      ;;
9052
9053    aix4* | aix5*)
9054      if test "$host_cpu" = ia64; then
9055        # On IA64, the linker does run time linking by default, so we don't
9056        # have to do anything special.
9057        aix_use_runtimelinking=no
9058        exp_sym_flag='-Bexport'
9059        no_entry_flag=""
9060      else
9061        # If we're using GNU nm, then we don't want the "-C" option.
9062        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9063        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9064          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'
9065        else
9066          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'
9067        fi
9068        aix_use_runtimelinking=no
9069
9070        # Test if we are trying to use run time linking or normal
9071        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9072        # need to do runtime linking.
9073        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9074          for ld_flag in $LDFLAGS; do
9075          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9076            aix_use_runtimelinking=yes
9077            break
9078          fi
9079          done
9080          ;;
9081        esac
9082
9083        exp_sym_flag='-bexport'
9084        no_entry_flag='-bnoentry'
9085      fi
9086
9087      # When large executables or shared objects are built, AIX ld can
9088      # have problems creating the table of contents.  If linking a library
9089      # or program results in "error TOC overflow" add -mminimal-toc to
9090      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9091      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9092
9093      archive_cmds=''
9094      hardcode_direct=yes
9095      hardcode_libdir_separator=':'
9096      link_all_deplibs=yes
9097
9098      if test "$GCC" = yes; then
9099        case $host_os in aix4.[012]|aix4.[012].*)
9100        # We only want to do this on AIX 4.2 and lower, the check
9101        # below for broken collect2 doesn't work under 4.3+
9102          collect2name=`${CC} -print-prog-name=collect2`
9103          if test -f "$collect2name" && \
9104           strings "$collect2name" | grep resolve_lib_name >/dev/null
9105          then
9106          # We have reworked collect2
9107          hardcode_direct=yes
9108          else
9109          # We have old collect2
9110          hardcode_direct=unsupported
9111          # It fails to find uninstalled libraries when the uninstalled
9112          # path is not listed in the libpath.  Setting hardcode_minus_L
9113          # to unsupported forces relinking
9114          hardcode_minus_L=yes
9115          hardcode_libdir_flag_spec='-L$libdir'
9116          hardcode_libdir_separator=
9117          fi
9118          ;;
9119        esac
9120        shared_flag='-shared'
9121        if test "$aix_use_runtimelinking" = yes; then
9122          shared_flag="$shared_flag "'${wl}-G'
9123        fi
9124      else
9125        # not using gcc
9126        if test "$host_cpu" = ia64; then
9127        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9128        # chokes on -Wl,-G. The following line is correct:
9129          shared_flag='-G'
9130        else
9131          if test "$aix_use_runtimelinking" = yes; then
9132            shared_flag='${wl}-G'
9133          else
9134            shared_flag='${wl}-bM:SRE'
9135          fi
9136        fi
9137      fi
9138
9139      # It seems that -bexpall does not export symbols beginning with
9140      # underscore (_), so it is better to generate a list of symbols to export.
9141      always_export_symbols=yes
9142      if test "$aix_use_runtimelinking" = yes; then
9143        # Warning - without using the other runtime loading flags (-brtl),
9144        # -berok will link without error, but may produce a broken library.
9145        allow_undefined_flag='-berok'
9146       # Determine the default libpath from the value encoded in an empty executable.
9147       cat >conftest.$ac_ext <<_ACEOF
9148/* confdefs.h.  */
9149_ACEOF
9150cat confdefs.h >>conftest.$ac_ext
9151cat >>conftest.$ac_ext <<_ACEOF
9152/* end confdefs.h.  */
9153
9154int
9155main ()
9156{
9157
9158  ;
9159  return 0;
9160}
9161_ACEOF
9162rm -f conftest.$ac_objext conftest$ac_exeext
9163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164  (eval $ac_link) 2>conftest.er1
9165  ac_status=$?
9166  grep -v '^ *+' conftest.er1 >conftest.err
9167  rm -f conftest.er1
9168  cat conftest.err >&5
9169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170  (exit $ac_status); } &&
9171         { ac_try='test -z "$ac_c_werror_flag"
9172                         || test ! -s conftest.err'
9173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9174  (eval $ac_try) 2>&5
9175  ac_status=$?
9176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177  (exit $ac_status); }; } &&
9178         { ac_try='test -s conftest$ac_exeext'
9179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9180  (eval $ac_try) 2>&5
9181  ac_status=$?
9182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183  (exit $ac_status); }; }; then
9184
9185aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9186}'`
9187# Check for a 64-bit object if we didn't find anything.
9188if 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; }
9189}'`; fi
9190else
9191  echo "$as_me: failed program was:" >&5
9192sed 's/^/| /' conftest.$ac_ext >&5
9193
9194fi
9195rm -f conftest.err conftest.$ac_objext \
9196      conftest$ac_exeext conftest.$ac_ext
9197if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9198
9199       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9200        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"
9201       else
9202        if test "$host_cpu" = ia64; then
9203          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9204          allow_undefined_flag="-z nodefs"
9205          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"
9206        else
9207         # Determine the default libpath from the value encoded in an empty executable.
9208         cat >conftest.$ac_ext <<_ACEOF
9209/* confdefs.h.  */
9210_ACEOF
9211cat confdefs.h >>conftest.$ac_ext
9212cat >>conftest.$ac_ext <<_ACEOF
9213/* end confdefs.h.  */
9214
9215int
9216main ()
9217{
9218
9219  ;
9220  return 0;
9221}
9222_ACEOF
9223rm -f conftest.$ac_objext conftest$ac_exeext
9224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225  (eval $ac_link) 2>conftest.er1
9226  ac_status=$?
9227  grep -v '^ *+' conftest.er1 >conftest.err
9228  rm -f conftest.er1
9229  cat conftest.err >&5
9230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231  (exit $ac_status); } &&
9232         { ac_try='test -z "$ac_c_werror_flag"
9233                         || test ! -s conftest.err'
9234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235  (eval $ac_try) 2>&5
9236  ac_status=$?
9237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238  (exit $ac_status); }; } &&
9239         { ac_try='test -s conftest$ac_exeext'
9240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241  (eval $ac_try) 2>&5
9242  ac_status=$?
9243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244  (exit $ac_status); }; }; then
9245
9246aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9247}'`
9248# Check for a 64-bit object if we didn't find anything.
9249if 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; }
9250}'`; fi
9251else
9252  echo "$as_me: failed program was:" >&5
9253sed 's/^/| /' conftest.$ac_ext >&5
9254
9255fi
9256rm -f conftest.err conftest.$ac_objext \
9257      conftest$ac_exeext conftest.$ac_ext
9258if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9259
9260         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9261          # Warning - without using the other run time loading flags,
9262          # -berok will link without error, but may produce a broken library.
9263          no_undefined_flag=' ${wl}-bernotok'
9264          allow_undefined_flag=' ${wl}-berok'
9265          # Exported symbols can be pulled into shared objects from archives
9266          whole_archive_flag_spec='$convenience'
9267          archive_cmds_need_lc=yes
9268          # This is similar to how AIX traditionally builds its shared libraries.
9269          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'
9270        fi
9271      fi
9272      ;;
9273
9274    amigaos*)
9275      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)'
9276      hardcode_libdir_flag_spec='-L$libdir'
9277      hardcode_minus_L=yes
9278      # see comment about different semantics on the GNU ld section
9279      ld_shlibs=no
9280      ;;
9281
9282    bsdi[45]*)
9283      export_dynamic_flag_spec=-rdynamic
9284      ;;
9285
9286    cygwin* | mingw* | pw32*)
9287      # When not using gcc, we currently assume that we are using
9288      # Microsoft Visual C++.
9289      # hardcode_libdir_flag_spec is actually meaningless, as there is
9290      # no search path for DLLs.
9291      hardcode_libdir_flag_spec=' '
9292      allow_undefined_flag=unsupported
9293      # Tell ltmain to make .lib files, not .a files.
9294      libext=lib
9295      # Tell ltmain to make .dll files, not .so files.
9296      shrext_cmds=".dll"
9297      # FIXME: Setting linknames here is a bad hack.
9298      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9299      # The linker will automatically build a .lib file if we build a DLL.
9300      old_archive_From_new_cmds='true'
9301      # FIXME: Should let the user specify the lib program.
9302      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9303      fix_srcfile_path='`cygpath -w "$srcfile"`'
9304      enable_shared_with_static_runtimes=yes
9305      ;;
9306
9307    darwin* | rhapsody*)
9308      case $host_os in
9309        rhapsody* | darwin1.[012])
9310         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9311         ;;
9312       *) # Darwin 1.3 on
9313         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9314           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9315         else
9316           case ${MACOSX_DEPLOYMENT_TARGET} in
9317             10.[012])
9318               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9319               ;;
9320             10.*)
9321               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9322               ;;
9323           esac
9324         fi
9325         ;;
9326      esac
9327      archive_cmds_need_lc=no
9328      hardcode_direct=no
9329      hardcode_automatic=yes
9330      hardcode_shlibpath_var=unsupported
9331      whole_archive_flag_spec=''
9332      link_all_deplibs=yes
9333    if test "$GCC" = yes ; then
9334        output_verbose_link_cmd='echo'
9335        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9336      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9337      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9338      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}'
9339      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}'
9340    else
9341      case $cc_basename in
9342        xlc*)
9343         output_verbose_link_cmd='echo'
9344         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9345         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9346          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9347         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}'
9348          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}'
9349          ;;
9350       *)
9351         ld_shlibs=no
9352          ;;
9353      esac
9354    fi
9355      ;;
9356
9357    dgux*)
9358      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359      hardcode_libdir_flag_spec='-L$libdir'
9360      hardcode_shlibpath_var=no
9361      ;;
9362
9363    freebsd1*)
9364      ld_shlibs=no
9365      ;;
9366
9367    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9368    # support.  Future versions do this automatically, but an explicit c++rt0.o
9369    # does not break anything, and helps significantly (at the cost of a little
9370    # extra space).
9371    freebsd2.2*)
9372      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9373      hardcode_libdir_flag_spec='-R$libdir'
9374      hardcode_direct=yes
9375      hardcode_shlibpath_var=no
9376      ;;
9377
9378    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9379    freebsd2*)
9380      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9381      hardcode_direct=yes
9382      hardcode_minus_L=yes
9383      hardcode_shlibpath_var=no
9384      ;;
9385
9386    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9387    freebsd* | kfreebsd*-gnu | dragonfly*)
9388      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9389      hardcode_libdir_flag_spec='-R$libdir'
9390      hardcode_direct=yes
9391      hardcode_shlibpath_var=no
9392      ;;
9393
9394    hpux9*)
9395      if test "$GCC" = yes; then
9396        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'
9397      else
9398        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'
9399      fi
9400      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9401      hardcode_libdir_separator=:
9402      hardcode_direct=yes
9403
9404      # hardcode_minus_L: Not really in the search PATH,
9405      # but as the default location of the library.
9406      hardcode_minus_L=yes
9407      export_dynamic_flag_spec='${wl}-E'
9408      ;;
9409
9410    hpux10*)
9411      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9412        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9413      else
9414        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9415      fi
9416      if test "$with_gnu_ld" = no; then
9417        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9418        hardcode_libdir_separator=:
9419
9420        hardcode_direct=yes
9421        export_dynamic_flag_spec='${wl}-E'
9422
9423        # hardcode_minus_L: Not really in the search PATH,
9424        # but as the default location of the library.
9425        hardcode_minus_L=yes
9426      fi
9427      ;;
9428
9429    hpux11*)
9430      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9431        case $host_cpu in
9432        hppa*64*)
9433          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9434          ;;
9435        ia64*)
9436          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9437          ;;
9438        *)
9439          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9440          ;;
9441        esac
9442      else
9443        case $host_cpu in
9444        hppa*64*)
9445          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9446          ;;
9447        ia64*)
9448          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9449          ;;
9450        *)
9451          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9452          ;;
9453        esac
9454      fi
9455      if test "$with_gnu_ld" = no; then
9456        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9457        hardcode_libdir_separator=:
9458
9459        case $host_cpu in
9460        hppa*64*|ia64*)
9461          hardcode_libdir_flag_spec_ld='+b $libdir'
9462          hardcode_direct=no
9463          hardcode_shlibpath_var=no
9464          ;;
9465        *)
9466          hardcode_direct=yes
9467          export_dynamic_flag_spec='${wl}-E'
9468
9469          # hardcode_minus_L: Not really in the search PATH,
9470          # but as the default location of the library.
9471          hardcode_minus_L=yes
9472          ;;
9473        esac
9474      fi
9475      ;;
9476
9477    irix5* | irix6* | nonstopux*)
9478      if test "$GCC" = yes; then
9479        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'
9480      else
9481        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'
9482        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9483      fi
9484      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9485      hardcode_libdir_separator=:
9486      link_all_deplibs=yes
9487      ;;
9488
9489    netbsd*)
9490      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9491        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9492      else
9493        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9494      fi
9495      hardcode_libdir_flag_spec='-R$libdir'
9496      hardcode_direct=yes
9497      hardcode_shlibpath_var=no
9498      ;;
9499
9500    newsos6)
9501      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9502      hardcode_direct=yes
9503      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9504      hardcode_libdir_separator=:
9505      hardcode_shlibpath_var=no
9506      ;;
9507
9508    openbsd*)
9509      hardcode_direct=yes
9510      hardcode_shlibpath_var=no
9511      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9512        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9513        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9514        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9515        export_dynamic_flag_spec='${wl}-E'
9516      else
9517       case $host_os in
9518         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9519           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9520           hardcode_libdir_flag_spec='-R$libdir'
9521           ;;
9522         *)
9523           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9524           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9525           ;;
9526       esac
9527      fi
9528      ;;
9529
9530    os2*)
9531      hardcode_libdir_flag_spec='-L$libdir'
9532      hardcode_minus_L=yes
9533      allow_undefined_flag=unsupported
9534      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'
9535      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9536      ;;
9537
9538    osf3*)
9539      if test "$GCC" = yes; then
9540        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9541        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'
9542      else
9543        allow_undefined_flag=' -expect_unresolved \*'
9544        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'
9545      fi
9546      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9547      hardcode_libdir_separator=:
9548      ;;
9549
9550    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9551      if test "$GCC" = yes; then
9552        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9553        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'
9554        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9555      else
9556        allow_undefined_flag=' -expect_unresolved \*'
9557        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'
9558        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9559        $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'
9560
9561        # Both c and cxx compiler support -rpath directly
9562        hardcode_libdir_flag_spec='-rpath $libdir'
9563      fi
9564      hardcode_libdir_separator=:
9565      ;;
9566
9567    solaris*)
9568      no_undefined_flag=' -z text'
9569      if test "$GCC" = yes; then
9570        wlarc='${wl}'
9571        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9572        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9573          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9574      else
9575        wlarc=''
9576        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9577        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9578        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9579      fi
9580      hardcode_libdir_flag_spec='-R$libdir'
9581      hardcode_shlibpath_var=no
9582      case $host_os in
9583      solaris2.[0-5] | solaris2.[0-5].*) ;;
9584      *)
9585        # The compiler driver will combine linker options so we
9586        # cannot just pass the convience library names through
9587        # without $wl, iff we do not link with $LD.
9588        # Luckily, gcc supports the same syntax we need for Sun Studio.
9589        # Supported since Solaris 2.6 (maybe 2.5.1?)
9590        case $wlarc in
9591        '')
9592          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9593        *)
9594          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' ;;
9595        esac ;;
9596      esac
9597      link_all_deplibs=yes
9598      ;;
9599
9600    sunos4*)
9601      if test "x$host_vendor" = xsequent; then
9602        # Use $CC to link under sequent, because it throws in some extra .o
9603        # files that make .init and .fini sections work.
9604        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9605      else
9606        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9607      fi
9608      hardcode_libdir_flag_spec='-L$libdir'
9609      hardcode_direct=yes
9610      hardcode_minus_L=yes
9611      hardcode_shlibpath_var=no
9612      ;;
9613
9614    sysv4)
9615      case $host_vendor in
9616        sni)
9617          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9618          hardcode_direct=yes # is this really true???
9619        ;;
9620        siemens)
9621          ## LD is ld it makes a PLAMLIB
9622          ## CC just makes a GrossModule.
9623          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9624          reload_cmds='$CC -r -o $output$reload_objs'
9625          hardcode_direct=no
9626        ;;
9627        motorola)
9628          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9630        ;;
9631      esac
9632      runpath_var='LD_RUN_PATH'
9633      hardcode_shlibpath_var=no
9634      ;;
9635
9636    sysv4.3*)
9637      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638      hardcode_shlibpath_var=no
9639      export_dynamic_flag_spec='-Bexport'
9640      ;;
9641
9642    sysv4*MP*)
9643      if test -d /usr/nec; then
9644        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9645        hardcode_shlibpath_var=no
9646        runpath_var=LD_RUN_PATH
9647        hardcode_runpath_var=yes
9648        ld_shlibs=yes
9649      fi
9650      ;;
9651
9652    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9653      no_undefined_flag='${wl}-z,text'
9654      archive_cmds_need_lc=no
9655      hardcode_shlibpath_var=no
9656      runpath_var='LD_RUN_PATH'
9657
9658      if test "$GCC" = yes; then
9659        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9660        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9661      else
9662        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9663        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9664      fi
9665      ;;
9666
9667    sysv5* | sco3.2v5* | sco5v6*)
9668      # Note: We can NOT use -z defs as we might desire, because we do not
9669      # link with -lc, and that would cause any symbols used from libc to
9670      # always be unresolved, which means just about no library would
9671      # ever link correctly.  If we're not using GNU ld we use -z text
9672      # though, which does catch some bad symbols but isn't as heavy-handed
9673      # as -z defs.
9674      no_undefined_flag='${wl}-z,text'
9675      allow_undefined_flag='${wl}-z,nodefs'
9676      archive_cmds_need_lc=no
9677      hardcode_shlibpath_var=no
9678      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9679      hardcode_libdir_separator=':'
9680      link_all_deplibs=yes
9681      export_dynamic_flag_spec='${wl}-Bexport'
9682      runpath_var='LD_RUN_PATH'
9683
9684      if test "$GCC" = yes; then
9685        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9686        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9687      else
9688        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9689        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9690      fi
9691      ;;
9692
9693    uts4*)
9694      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9695      hardcode_libdir_flag_spec='-L$libdir'
9696      hardcode_shlibpath_var=no
9697      ;;
9698
9699    *)
9700      ld_shlibs=no
9701      ;;
9702    esac
9703  fi
9704
9705echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9706echo "${ECHO_T}$ld_shlibs" >&6
9707test "$ld_shlibs" = no && can_build_shared=no
9708
9709#
9710# Do we need to explicitly link libc?
9711#
9712case "x$archive_cmds_need_lc" in
9713x|xyes)
9714  # Assume -lc should be added
9715  archive_cmds_need_lc=yes
9716
9717  if test "$enable_shared" = yes && test "$GCC" = yes; then
9718    case $archive_cmds in
9719    *'~'*)
9720      # FIXME: we may have to deal with multi-command sequences.
9721      ;;
9722    '$CC '*)
9723      # Test whether the compiler implicitly links with -lc since on some
9724      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9725      # to ld, don't add -lc before -lgcc.
9726      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9727echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9728      $rm conftest*
9729      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9730
9731      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9732  (eval $ac_compile) 2>&5
9733  ac_status=$?
9734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735  (exit $ac_status); } 2>conftest.err; then
9736        soname=conftest
9737        lib=conftest
9738        libobjs=conftest.$ac_objext
9739        deplibs=
9740        wl=$lt_prog_compiler_wl
9741        pic_flag=$lt_prog_compiler_pic
9742        compiler_flags=-v
9743        linker_flags=-v
9744        verstring=
9745        output_objdir=.
9746        libname=conftest
9747        lt_save_allow_undefined_flag=$allow_undefined_flag
9748        allow_undefined_flag=
9749        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9750  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9751  ac_status=$?
9752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753  (exit $ac_status); }
9754        then
9755          archive_cmds_need_lc=no
9756        else
9757          archive_cmds_need_lc=yes
9758        fi
9759        allow_undefined_flag=$lt_save_allow_undefined_flag
9760      else
9761        cat conftest.err 1>&5
9762      fi
9763      $rm conftest*
9764      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9765echo "${ECHO_T}$archive_cmds_need_lc" >&6
9766      ;;
9767    esac
9768  fi
9769  ;;
9770esac
9771
9772echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9773echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9774library_names_spec=
9775libname_spec='lib$name'
9776soname_spec=
9777shrext_cmds=".so"
9778postinstall_cmds=
9779postuninstall_cmds=
9780finish_cmds=
9781finish_eval=
9782shlibpath_var=
9783shlibpath_overrides_runpath=unknown
9784version_type=none
9785dynamic_linker="$host_os ld.so"
9786sys_lib_dlsearch_path_spec="/lib /usr/lib"
9787if test "$GCC" = yes; then
9788  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9789  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9790    # if the path contains ";" then we assume it to be the separator
9791    # otherwise default to the standard path separator (i.e. ":") - it is
9792    # assumed that no part of a normal pathname contains ";" but that should
9793    # okay in the real world where ";" in dirpaths is itself problematic.
9794    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9795  else
9796    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9797  fi
9798else
9799  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9800fi
9801need_lib_prefix=unknown
9802hardcode_into_libs=no
9803
9804# when you set need_version to no, make sure it does not cause -set_version
9805# flags to be left without arguments
9806need_version=unknown
9807
9808case $host_os in
9809aix3*)
9810  version_type=linux
9811  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9812  shlibpath_var=LIBPATH
9813
9814  # AIX 3 has no versioning support, so we append a major version to the name.
9815  soname_spec='${libname}${release}${shared_ext}$major'
9816  ;;
9817
9818aix4* | aix5*)
9819  version_type=linux
9820  need_lib_prefix=no
9821  need_version=no
9822  hardcode_into_libs=yes
9823  if test "$host_cpu" = ia64; then
9824    # AIX 5 supports IA64
9825    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9826    shlibpath_var=LD_LIBRARY_PATH
9827  else
9828    # With GCC up to 2.95.x, collect2 would create an import file
9829    # for dependence libraries.  The import file would start with
9830    # the line `#! .'.  This would cause the generated library to
9831    # depend on `.', always an invalid library.  This was fixed in
9832    # development snapshots of GCC prior to 3.0.
9833    case $host_os in
9834      aix4 | aix4.[01] | aix4.[01].*)
9835      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9836           echo ' yes '
9837           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9838        :
9839      else
9840        can_build_shared=no
9841      fi
9842      ;;
9843    esac
9844    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9845    # soname into executable. Probably we can add versioning support to
9846    # collect2, so additional links can be useful in future.
9847    if test "$aix_use_runtimelinking" = yes; then
9848      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9849      # instead of lib<name>.a to let people know that these are not
9850      # typical AIX shared libraries.
9851      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852    else
9853      # We preserve .a as extension for shared libraries through AIX4.2
9854      # and later when we are not doing run time linking.
9855      library_names_spec='${libname}${release}.a $libname.a'
9856      soname_spec='${libname}${release}${shared_ext}$major'
9857    fi
9858    shlibpath_var=LIBPATH
9859  fi
9860  ;;
9861
9862amigaos*)
9863  library_names_spec='$libname.ixlibrary $libname.a'
9864  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9865  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'
9866  ;;
9867
9868beos*)
9869  library_names_spec='${libname}${shared_ext}'
9870  dynamic_linker="$host_os ld.so"
9871  shlibpath_var=LIBRARY_PATH
9872  ;;
9873
9874bsdi[45]*)
9875  version_type=linux
9876  need_version=no
9877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9878  soname_spec='${libname}${release}${shared_ext}$major'
9879  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9880  shlibpath_var=LD_LIBRARY_PATH
9881  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9882  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9883  # the default ld.so.conf also contains /usr/contrib/lib and
9884  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9885  # libtool to hard-code these into programs
9886  ;;
9887
9888cygwin* | mingw* | pw32*)
9889  version_type=windows
9890  shrext_cmds=".dll"
9891  need_version=no
9892  need_lib_prefix=no
9893
9894  case $GCC,$host_os in
9895  yes,cygwin* | yes,mingw* | yes,pw32*)
9896    library_names_spec='$libname.dll.a'
9897    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9898    postinstall_cmds='base_file=`basename \${file}`~
9899      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9900      dldir=$destdir/`dirname \$dlpath`~
9901      test -d \$dldir || mkdir -p \$dldir~
9902      $install_prog $dir/$dlname \$dldir/$dlname~
9903      chmod a+x \$dldir/$dlname'
9904    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9905      dlpath=$dir/\$dldll~
9906       $rm \$dlpath'
9907    shlibpath_overrides_runpath=yes
9908
9909    case $host_os in
9910    cygwin*)
9911      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9912      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9914      ;;
9915    mingw*)
9916      # MinGW DLLs use traditional 'lib' prefix
9917      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9918      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9919      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9920        # It is most probably a Windows format PATH printed by
9921        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9922        # path with ; separators, and with drive letters. We can handle the
9923        # drive letters (cygwin fileutils understands them), so leave them,
9924        # especially as we might pass files found there to a mingw objdump,
9925        # which wouldn't understand a cygwinified path. Ahh.
9926        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9927      else
9928        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9929      fi
9930      ;;
9931    pw32*)
9932      # pw32 DLLs use 'pw' prefix rather than 'lib'
9933      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9934      ;;
9935    esac
9936    ;;
9937
9938  *)
9939    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9940    ;;
9941  esac
9942  dynamic_linker='Win32 ld.exe'
9943  # FIXME: first we should search . and the directory the executable is in
9944  shlibpath_var=PATH
9945  ;;
9946
9947darwin* | rhapsody*)
9948  dynamic_linker="$host_os dyld"
9949  version_type=darwin
9950  need_lib_prefix=no
9951  need_version=no
9952  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9953  soname_spec='${libname}${release}${major}$shared_ext'
9954  shlibpath_overrides_runpath=yes
9955  shlibpath_var=DYLD_LIBRARY_PATH
9956  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9957  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9958  if test "$GCC" = yes; then
9959    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"`
9960  else
9961    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9962  fi
9963  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9964  ;;
9965
9966dgux*)
9967  version_type=linux
9968  need_lib_prefix=no
9969  need_version=no
9970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9971  soname_spec='${libname}${release}${shared_ext}$major'
9972  shlibpath_var=LD_LIBRARY_PATH
9973  ;;
9974
9975freebsd1*)
9976  dynamic_linker=no
9977  ;;
9978
9979kfreebsd*-gnu)
9980  version_type=linux
9981  need_lib_prefix=no
9982  need_version=no
9983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9984  soname_spec='${libname}${release}${shared_ext}$major'
9985  shlibpath_var=LD_LIBRARY_PATH
9986  shlibpath_overrides_runpath=no
9987  hardcode_into_libs=yes
9988  dynamic_linker='GNU ld.so'
9989  ;;
9990
9991freebsd* | dragonfly*)
9992  # DragonFly does not have aout.  When/if they implement a new
9993  # versioning mechanism, adjust this.
9994  if test -x /usr/bin/objformat; then
9995    objformat=`/usr/bin/objformat`
9996  else
9997    case $host_os in
9998    freebsd[123]*) objformat=aout ;;
9999    *) objformat=elf ;;
10000    esac
10001  fi
10002  version_type=freebsd-$objformat
10003  case $version_type in
10004    freebsd-elf*)
10005      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10006      need_version=no
10007      need_lib_prefix=no
10008      ;;
10009    freebsd-*)
10010      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10011      need_version=yes
10012      ;;
10013  esac
10014  shlibpath_var=LD_LIBRARY_PATH
10015  case $host_os in
10016  freebsd2*)
10017    shlibpath_overrides_runpath=yes
10018    ;;
10019  freebsd3.[01]* | freebsdelf3.[01]*)
10020    shlibpath_overrides_runpath=yes
10021    hardcode_into_libs=yes
10022    ;;
10023  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10024  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10025    shlibpath_overrides_runpath=no
10026    hardcode_into_libs=yes
10027    ;;
10028  freebsd*) # from 4.6 on
10029    shlibpath_overrides_runpath=yes
10030    hardcode_into_libs=yes
10031    ;;
10032  esac
10033  ;;
10034
10035gnu*)
10036  version_type=linux
10037  need_lib_prefix=no
10038  need_version=no
10039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10040  soname_spec='${libname}${release}${shared_ext}$major'
10041  shlibpath_var=LD_LIBRARY_PATH
10042  hardcode_into_libs=yes
10043  ;;
10044
10045hpux9* | hpux10* | hpux11*)
10046  # Give a soname corresponding to the major version so that dld.sl refuses to
10047  # link against other versions.
10048  version_type=sunos
10049  need_lib_prefix=no
10050  need_version=no
10051  case $host_cpu in
10052  ia64*)
10053    shrext_cmds='.so'
10054    hardcode_into_libs=yes
10055    dynamic_linker="$host_os dld.so"
10056    shlibpath_var=LD_LIBRARY_PATH
10057    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10058    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059    soname_spec='${libname}${release}${shared_ext}$major'
10060    if test "X$HPUX_IA64_MODE" = X32; then
10061      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10062    else
10063      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10064    fi
10065    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10066    ;;
10067   hppa*64*)
10068     shrext_cmds='.sl'
10069     hardcode_into_libs=yes
10070     dynamic_linker="$host_os dld.sl"
10071     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10072     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10073     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074     soname_spec='${libname}${release}${shared_ext}$major'
10075     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10076     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10077     ;;
10078   *)
10079    shrext_cmds='.sl'
10080    dynamic_linker="$host_os dld.sl"
10081    shlibpath_var=SHLIB_PATH
10082    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10083    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10084    soname_spec='${libname}${release}${shared_ext}$major'
10085    ;;
10086  esac
10087  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10088  postinstall_cmds='chmod 555 $lib'
10089  ;;
10090
10091interix3*)
10092  version_type=linux
10093  need_lib_prefix=no
10094  need_version=no
10095  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10096  soname_spec='${libname}${release}${shared_ext}$major'
10097  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10098  shlibpath_var=LD_LIBRARY_PATH
10099  shlibpath_overrides_runpath=no
10100  hardcode_into_libs=yes
10101  ;;
10102
10103irix5* | irix6* | nonstopux*)
10104  case $host_os in
10105    nonstopux*) version_type=nonstopux ;;
10106    *)
10107        if test "$lt_cv_prog_gnu_ld" = yes; then
10108                version_type=linux
10109        else
10110                version_type=irix
10111        fi ;;
10112  esac
10113  need_lib_prefix=no
10114  need_version=no
10115  soname_spec='${libname}${release}${shared_ext}$major'
10116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10117  case $host_os in
10118  irix5* | nonstopux*)
10119    libsuff= shlibsuff=
10120    ;;
10121  *)
10122    case $LD in # libtool.m4 will add one of these switches to LD
10123    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10124      libsuff= shlibsuff= libmagic=32-bit;;
10125    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10126      libsuff=32 shlibsuff=N32 libmagic=N32;;
10127    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10128      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10129    *) libsuff= shlibsuff= libmagic=never-match;;
10130    esac
10131    ;;
10132  esac
10133  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10134  shlibpath_overrides_runpath=no
10135  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10136  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10137  hardcode_into_libs=yes
10138  ;;
10139
10140# No shared lib support for Linux oldld, aout, or coff.
10141linux*oldld* | linux*aout* | linux*coff*)
10142  dynamic_linker=no
10143  ;;
10144
10145# This must be Linux ELF.
10146linux*)
10147  version_type=linux
10148  need_lib_prefix=no
10149  need_version=no
10150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10151  soname_spec='${libname}${release}${shared_ext}$major'
10152  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10153  shlibpath_var=LD_LIBRARY_PATH
10154  shlibpath_overrides_runpath=no
10155  # This implies no fast_install, which is unacceptable.
10156  # Some rework will be needed to allow for fast_install
10157  # before this can be enabled.
10158  hardcode_into_libs=yes
10159
10160  # Append ld.so.conf contents to the search path
10161  if test -f /etc/ld.so.conf; then
10162    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' ' '`
10163    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10164  fi
10165
10166  # We used to test for /lib/ld.so.1 and disable shared libraries on
10167  # powerpc, because MkLinux only supported shared libraries with the
10168  # GNU dynamic linker.  Since this was broken with cross compilers,
10169  # most powerpc-linux boxes support dynamic linking these days and
10170  # people can always --disable-shared, the test was removed, and we
10171  # assume the GNU/Linux dynamic linker is in use.
10172  dynamic_linker='GNU/Linux ld.so'
10173  ;;
10174
10175knetbsd*-gnu)
10176  version_type=linux
10177  need_lib_prefix=no
10178  need_version=no
10179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10180  soname_spec='${libname}${release}${shared_ext}$major'
10181  shlibpath_var=LD_LIBRARY_PATH
10182  shlibpath_overrides_runpath=no
10183  hardcode_into_libs=yes
10184  dynamic_linker='GNU ld.so'
10185  ;;
10186
10187netbsd*)
10188  version_type=sunos
10189  need_lib_prefix=no
10190  need_version=no
10191  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10192    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10193    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10194    dynamic_linker='NetBSD (a.out) ld.so'
10195  else
10196    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10197    soname_spec='${libname}${release}${shared_ext}$major'
10198    dynamic_linker='NetBSD ld.elf_so'
10199  fi
10200  shlibpath_var=LD_LIBRARY_PATH
10201  shlibpath_overrides_runpath=yes
10202  hardcode_into_libs=yes
10203  ;;
10204
10205newsos6)
10206  version_type=linux
10207  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10208  shlibpath_var=LD_LIBRARY_PATH
10209  shlibpath_overrides_runpath=yes
10210  ;;
10211
10212nto-qnx*)
10213  version_type=linux
10214  need_lib_prefix=no
10215  need_version=no
10216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217  soname_spec='${libname}${release}${shared_ext}$major'
10218  shlibpath_var=LD_LIBRARY_PATH
10219  shlibpath_overrides_runpath=yes
10220  ;;
10221
10222openbsd*)
10223  version_type=sunos
10224  sys_lib_dlsearch_path_spec="/usr/lib"
10225  need_lib_prefix=no
10226  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10227  case $host_os in
10228    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10229    *)                         need_version=no  ;;
10230  esac
10231  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10232  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10233  shlibpath_var=LD_LIBRARY_PATH
10234  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10235    case $host_os in
10236      openbsd2.[89] | openbsd2.[89].*)
10237        shlibpath_overrides_runpath=no
10238        ;;
10239      *)
10240        shlibpath_overrides_runpath=yes
10241        ;;
10242      esac
10243  else
10244    shlibpath_overrides_runpath=yes
10245  fi
10246  ;;
10247
10248os2*)
10249  libname_spec='$name'
10250  shrext_cmds=".dll"
10251  need_lib_prefix=no
10252  library_names_spec='$libname${shared_ext} $libname.a'
10253  dynamic_linker='OS/2 ld.exe'
10254  shlibpath_var=LIBPATH
10255  ;;
10256
10257osf3* | osf4* | osf5*)
10258  version_type=osf
10259  need_lib_prefix=no
10260  need_version=no
10261  soname_spec='${libname}${release}${shared_ext}$major'
10262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263  shlibpath_var=LD_LIBRARY_PATH
10264  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10265  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10266  ;;
10267
10268solaris*)
10269  version_type=linux
10270  need_lib_prefix=no
10271  need_version=no
10272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273  soname_spec='${libname}${release}${shared_ext}$major'
10274  shlibpath_var=LD_LIBRARY_PATH
10275  shlibpath_overrides_runpath=yes
10276  hardcode_into_libs=yes
10277  # ldd complains unless libraries are executable
10278  postinstall_cmds='chmod +x $lib'
10279  ;;
10280
10281sunos4*)
10282  version_type=sunos
10283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10284  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10285  shlibpath_var=LD_LIBRARY_PATH
10286  shlibpath_overrides_runpath=yes
10287  if test "$with_gnu_ld" = yes; then
10288    need_lib_prefix=no
10289  fi
10290  need_version=yes
10291  ;;
10292
10293sysv4 | sysv4.3*)
10294  version_type=linux
10295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296  soname_spec='${libname}${release}${shared_ext}$major'
10297  shlibpath_var=LD_LIBRARY_PATH
10298  case $host_vendor in
10299    sni)
10300      shlibpath_overrides_runpath=no
10301      need_lib_prefix=no
10302      export_dynamic_flag_spec='${wl}-Blargedynsym'
10303      runpath_var=LD_RUN_PATH
10304      ;;
10305    siemens)
10306      need_lib_prefix=no
10307      ;;
10308    motorola)
10309      need_lib_prefix=no
10310      need_version=no
10311      shlibpath_overrides_runpath=no
10312      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10313      ;;
10314  esac
10315  ;;
10316
10317sysv4*MP*)
10318  if test -d /usr/nec ;then
10319    version_type=linux
10320    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10321    soname_spec='$libname${shared_ext}.$major'
10322    shlibpath_var=LD_LIBRARY_PATH
10323  fi
10324  ;;
10325
10326sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10327  version_type=freebsd-elf
10328  need_lib_prefix=no
10329  need_version=no
10330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10331  soname_spec='${libname}${release}${shared_ext}$major'
10332  shlibpath_var=LD_LIBRARY_PATH
10333  hardcode_into_libs=yes
10334  if test "$with_gnu_ld" = yes; then
10335    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10336    shlibpath_overrides_runpath=no
10337  else
10338    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10339    shlibpath_overrides_runpath=yes
10340    case $host_os in
10341      sco3.2v5*)
10342        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10343        ;;
10344    esac
10345  fi
10346  sys_lib_dlsearch_path_spec='/usr/lib'
10347  ;;
10348
10349uts4*)
10350  version_type=linux
10351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352  soname_spec='${libname}${release}${shared_ext}$major'
10353  shlibpath_var=LD_LIBRARY_PATH
10354  ;;
10355
10356*)
10357  dynamic_linker=no
10358  ;;
10359esac
10360echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10361echo "${ECHO_T}$dynamic_linker" >&6
10362test "$dynamic_linker" = no && can_build_shared=no
10363
10364variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10365if test "$GCC" = yes; then
10366  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10367fi
10368
10369echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10370echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10371hardcode_action=
10372if test -n "$hardcode_libdir_flag_spec" || \
10373   test -n "$runpath_var" || \
10374   test "X$hardcode_automatic" = "Xyes" ; then
10375
10376  # We can hardcode non-existant directories.
10377  if test "$hardcode_direct" != no &&
10378     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10379     # have to relink, otherwise we might link with an installed library
10380     # when we should be linking with a yet-to-be-installed one
10381     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10382     test "$hardcode_minus_L" != no; then
10383    # Linking always hardcodes the temporary library directory.
10384    hardcode_action=relink
10385  else
10386    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10387    hardcode_action=immediate
10388  fi
10389else
10390  # We cannot hardcode anything, or else we can only hardcode existing
10391  # directories.
10392  hardcode_action=unsupported
10393fi
10394echo "$as_me:$LINENO: result: $hardcode_action" >&5
10395echo "${ECHO_T}$hardcode_action" >&6
10396
10397if test "$hardcode_action" = relink; then
10398  # Fast installation is not supported
10399  enable_fast_install=no
10400elif test "$shlibpath_overrides_runpath" = yes ||
10401     test "$enable_shared" = no; then
10402  # Fast installation is not necessary
10403  enable_fast_install=needless
10404fi
10405
10406striplib=
10407old_striplib=
10408echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10409echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10410if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10411  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10412  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10413  echo "$as_me:$LINENO: result: yes" >&5
10414echo "${ECHO_T}yes" >&6
10415else
10416# FIXME - insert some real tests, host_os isn't really good enough
10417  case $host_os in
10418   darwin*)
10419       if test -n "$STRIP" ; then
10420         striplib="$STRIP -x"
10421         echo "$as_me:$LINENO: result: yes" >&5
10422echo "${ECHO_T}yes" >&6
10423       else
10424  echo "$as_me:$LINENO: result: no" >&5
10425echo "${ECHO_T}no" >&6
10426fi
10427       ;;
10428   *)
10429  echo "$as_me:$LINENO: result: no" >&5
10430echo "${ECHO_T}no" >&6
10431    ;;
10432  esac
10433fi
10434
10435if test "x$enable_dlopen" != xyes; then
10436  enable_dlopen=unknown
10437  enable_dlopen_self=unknown
10438  enable_dlopen_self_static=unknown
10439else
10440  lt_cv_dlopen=no
10441  lt_cv_dlopen_libs=
10442
10443  case $host_os in
10444  beos*)
10445    lt_cv_dlopen="load_add_on"
10446    lt_cv_dlopen_libs=
10447    lt_cv_dlopen_self=yes
10448    ;;
10449
10450  mingw* | pw32*)
10451    lt_cv_dlopen="LoadLibrary"
10452    lt_cv_dlopen_libs=
10453   ;;
10454
10455  cygwin*)
10456    lt_cv_dlopen="dlopen"
10457    lt_cv_dlopen_libs=
10458   ;;
10459
10460  darwin*)
10461  # if libdl is installed we need to link against it
10462    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10463echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10464if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10465  echo $ECHO_N "(cached) $ECHO_C" >&6
10466else
10467  ac_check_lib_save_LIBS=$LIBS
10468LIBS="-ldl  $LIBS"
10469cat >conftest.$ac_ext <<_ACEOF
10470/* confdefs.h.  */
10471_ACEOF
10472cat confdefs.h >>conftest.$ac_ext
10473cat >>conftest.$ac_ext <<_ACEOF
10474/* end confdefs.h.  */
10475
10476/* Override any gcc2 internal prototype to avoid an error.  */
10477#ifdef __cplusplus
10478extern "C"
10479#endif
10480/* We use char because int might match the return type of a gcc2
10481   builtin and then its argument prototype would still apply.  */
10482char dlopen ();
10483int
10484main ()
10485{
10486dlopen ();
10487  ;
10488  return 0;
10489}
10490_ACEOF
10491rm -f conftest.$ac_objext conftest$ac_exeext
10492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10493  (eval $ac_link) 2>conftest.er1
10494  ac_status=$?
10495  grep -v '^ *+' conftest.er1 >conftest.err
10496  rm -f conftest.er1
10497  cat conftest.err >&5
10498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499  (exit $ac_status); } &&
10500         { ac_try='test -z "$ac_c_werror_flag"
10501                         || test ! -s conftest.err'
10502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10503  (eval $ac_try) 2>&5
10504  ac_status=$?
10505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506  (exit $ac_status); }; } &&
10507         { ac_try='test -s conftest$ac_exeext'
10508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509  (eval $ac_try) 2>&5
10510  ac_status=$?
10511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512  (exit $ac_status); }; }; then
10513  ac_cv_lib_dl_dlopen=yes
10514else
10515  echo "$as_me: failed program was:" >&5
10516sed 's/^/| /' conftest.$ac_ext >&5
10517
10518ac_cv_lib_dl_dlopen=no
10519fi
10520rm -f conftest.err conftest.$ac_objext \
10521      conftest$ac_exeext conftest.$ac_ext
10522LIBS=$ac_check_lib_save_LIBS
10523fi
10524echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10525echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10526if test $ac_cv_lib_dl_dlopen = yes; then
10527  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10528else
10529
10530    lt_cv_dlopen="dyld"
10531    lt_cv_dlopen_libs=
10532    lt_cv_dlopen_self=yes
10533
10534fi
10535
10536   ;;
10537
10538  *)
10539    echo "$as_me:$LINENO: checking for shl_load" >&5
10540echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10541if test "${ac_cv_func_shl_load+set}" = set; then
10542  echo $ECHO_N "(cached) $ECHO_C" >&6
10543else
10544  cat >conftest.$ac_ext <<_ACEOF
10545/* confdefs.h.  */
10546_ACEOF
10547cat confdefs.h >>conftest.$ac_ext
10548cat >>conftest.$ac_ext <<_ACEOF
10549/* end confdefs.h.  */
10550/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10551   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10552#define shl_load innocuous_shl_load
10553
10554/* System header to define __stub macros and hopefully few prototypes,
10555    which can conflict with char shl_load (); below.
10556    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10557    <limits.h> exists even on freestanding compilers.  */
10558
10559#ifdef __STDC__
10560# include <limits.h>
10561#else
10562# include <assert.h>
10563#endif
10564
10565#undef shl_load
10566
10567/* Override any gcc2 internal prototype to avoid an error.  */
10568#ifdef __cplusplus
10569extern "C"
10570{
10571#endif
10572/* We use char because int might match the return type of a gcc2
10573   builtin and then its argument prototype would still apply.  */
10574char shl_load ();
10575/* The GNU C library defines this for functions which it implements
10576    to always fail with ENOSYS.  Some functions are actually named
10577    something starting with __ and the normal name is an alias.  */
10578#if defined (__stub_shl_load) || defined (__stub___shl_load)
10579choke me
10580#else
10581char (*f) () = shl_load;
10582#endif
10583#ifdef __cplusplus
10584}
10585#endif
10586
10587int
10588main ()
10589{
10590return f != shl_load;
10591  ;
10592  return 0;
10593}
10594_ACEOF
10595rm -f conftest.$ac_objext conftest$ac_exeext
10596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597  (eval $ac_link) 2>conftest.er1
10598  ac_status=$?
10599  grep -v '^ *+' conftest.er1 >conftest.err
10600  rm -f conftest.er1
10601  cat conftest.err >&5
10602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603  (exit $ac_status); } &&
10604         { ac_try='test -z "$ac_c_werror_flag"
10605                         || test ! -s conftest.err'
10606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607  (eval $ac_try) 2>&5
10608  ac_status=$?
10609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610  (exit $ac_status); }; } &&
10611         { ac_try='test -s conftest$ac_exeext'
10612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613  (eval $ac_try) 2>&5
10614  ac_status=$?
10615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); }; }; then
10617  ac_cv_func_shl_load=yes
10618else
10619  echo "$as_me: failed program was:" >&5
10620sed 's/^/| /' conftest.$ac_ext >&5
10621
10622ac_cv_func_shl_load=no
10623fi
10624rm -f conftest.err conftest.$ac_objext \
10625      conftest$ac_exeext conftest.$ac_ext
10626fi
10627echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10628echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10629if test $ac_cv_func_shl_load = yes; then
10630  lt_cv_dlopen="shl_load"
10631else
10632  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10633echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10634if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10635  echo $ECHO_N "(cached) $ECHO_C" >&6
10636else
10637  ac_check_lib_save_LIBS=$LIBS
10638LIBS="-ldld  $LIBS"
10639cat >conftest.$ac_ext <<_ACEOF
10640/* confdefs.h.  */
10641_ACEOF
10642cat confdefs.h >>conftest.$ac_ext
10643cat >>conftest.$ac_ext <<_ACEOF
10644/* end confdefs.h.  */
10645
10646/* Override any gcc2 internal prototype to avoid an error.  */
10647#ifdef __cplusplus
10648extern "C"
10649#endif
10650/* We use char because int might match the return type of a gcc2
10651   builtin and then its argument prototype would still apply.  */
10652char shl_load ();
10653int
10654main ()
10655{
10656shl_load ();
10657  ;
10658  return 0;
10659}
10660_ACEOF
10661rm -f conftest.$ac_objext conftest$ac_exeext
10662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663  (eval $ac_link) 2>conftest.er1
10664  ac_status=$?
10665  grep -v '^ *+' conftest.er1 >conftest.err
10666  rm -f conftest.er1
10667  cat conftest.err >&5
10668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669  (exit $ac_status); } &&
10670         { ac_try='test -z "$ac_c_werror_flag"
10671                         || test ! -s conftest.err'
10672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673  (eval $ac_try) 2>&5
10674  ac_status=$?
10675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676  (exit $ac_status); }; } &&
10677         { ac_try='test -s conftest$ac_exeext'
10678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679  (eval $ac_try) 2>&5
10680  ac_status=$?
10681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682  (exit $ac_status); }; }; then
10683  ac_cv_lib_dld_shl_load=yes
10684else
10685  echo "$as_me: failed program was:" >&5
10686sed 's/^/| /' conftest.$ac_ext >&5
10687
10688ac_cv_lib_dld_shl_load=no
10689fi
10690rm -f conftest.err conftest.$ac_objext \
10691      conftest$ac_exeext conftest.$ac_ext
10692LIBS=$ac_check_lib_save_LIBS
10693fi
10694echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10695echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10696if test $ac_cv_lib_dld_shl_load = yes; then
10697  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10698else
10699  echo "$as_me:$LINENO: checking for dlopen" >&5
10700echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10701if test "${ac_cv_func_dlopen+set}" = set; then
10702  echo $ECHO_N "(cached) $ECHO_C" >&6
10703else
10704  cat >conftest.$ac_ext <<_ACEOF
10705/* confdefs.h.  */
10706_ACEOF
10707cat confdefs.h >>conftest.$ac_ext
10708cat >>conftest.$ac_ext <<_ACEOF
10709/* end confdefs.h.  */
10710/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10711   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10712#define dlopen innocuous_dlopen
10713
10714/* System header to define __stub macros and hopefully few prototypes,
10715    which can conflict with char dlopen (); below.
10716    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10717    <limits.h> exists even on freestanding compilers.  */
10718
10719#ifdef __STDC__
10720# include <limits.h>
10721#else
10722# include <assert.h>
10723#endif
10724
10725#undef dlopen
10726
10727/* Override any gcc2 internal prototype to avoid an error.  */
10728#ifdef __cplusplus
10729extern "C"
10730{
10731#endif
10732/* We use char because int might match the return type of a gcc2
10733   builtin and then its argument prototype would still apply.  */
10734char dlopen ();
10735/* The GNU C library defines this for functions which it implements
10736    to always fail with ENOSYS.  Some functions are actually named
10737    something starting with __ and the normal name is an alias.  */
10738#if defined (__stub_dlopen) || defined (__stub___dlopen)
10739choke me
10740#else
10741char (*f) () = dlopen;
10742#endif
10743#ifdef __cplusplus
10744}
10745#endif
10746
10747int
10748main ()
10749{
10750return f != dlopen;
10751  ;
10752  return 0;
10753}
10754_ACEOF
10755rm -f conftest.$ac_objext conftest$ac_exeext
10756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10757  (eval $ac_link) 2>conftest.er1
10758  ac_status=$?
10759  grep -v '^ *+' conftest.er1 >conftest.err
10760  rm -f conftest.er1
10761  cat conftest.err >&5
10762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763  (exit $ac_status); } &&
10764         { ac_try='test -z "$ac_c_werror_flag"
10765                         || test ! -s conftest.err'
10766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767  (eval $ac_try) 2>&5
10768  ac_status=$?
10769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770  (exit $ac_status); }; } &&
10771         { ac_try='test -s conftest$ac_exeext'
10772  { (eval echo "$as_me:$LINENO: \"