source: stable/1.6/configure @ 1135

Last change on this file since 1135 was 1135, checked in by ladanyi, 13 years ago

restoring stable/1.6

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