source: stable/1.9/configure @ 1334

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

changed version info to 'trunk' and ran run_autotools

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