source: trunk/Clp/configure @ 1362

Last change on this file since 1362 was 1326, checked in by forrest, 11 years ago

First attempt at Benders decomposition

  • Property svn:executable set to *
File size: 730.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp trunk.
4#
5# Report bugs to <coin-clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Clp trunk'
434PACKAGE_BUGREPORT='coin-clp@list.coin-or.org'
435
436ac_unique_file="src/ClpCholeskyBase.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE 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 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 F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Clp trunk to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Clp trunk:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-clp compile this project (Clp) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-gnu-packages   compile with GNU packages (disabled by default)
1096
1097Optional Packages:
1098  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1099  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1100  --with-clp-verbosity specify the debug verbosity level for project Clp
1101  --with-clp-checklevel specify the sanity check level for project Clp
1102  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1103  --with-pic              try to use only PIC/non-PIC objects [default=use
1104                          both]
1105  --with-tags[=TAGS]
1106                          include additional configurations [automatic]
1107  --with-wsmp             specify WSMP library
1108
1109Some influential environment variables:
1110  CDEFS       Additional -D flags to be used when compiling C code.
1111  ADD_CFLAGS  Additional C compiler options
1112  DBG_CFLAGS  Debug C compiler options
1113  OPT_CFLAGS  Optimize C compiler options
1114  CC          C compiler command
1115  CFLAGS      C compiler flags
1116  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1117              nonstandard directory <lib dir>
1118  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1119              headers in a nonstandard directory <include dir>
1120  MPICC       C MPI Compiler
1121  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1122  ADD_CXXFLAGS
1123              Additional C++ compiler options
1124  DBG_CXXFLAGS
1125              Debug C++ compiler options
1126  OPT_CXXFLAGS
1127              Optimize C++ compiler options
1128  CXX         C++ compiler command
1129  CXXFLAGS    C++ compiler flags
1130  MPICXX      C++ MPI Compiler
1131  CPP         C preprocessor
1132  CXXCPP      C++ preprocessor
1133  F77         Fortran 77 compiler command
1134  FFLAGS      Fortran 77 compiler flags
1135
1136Use these variables to override the choices made by `configure' or to help
1137it to find libraries and programs with nonstandard names/locations.
1138
1139Report bugs to <coin-clp@list.coin-or.org>.
1140_ACEOF
1141fi
1142
1143if test "$ac_init_help" = "recursive"; then
1144  # If there are subdirs, report their specific --help.
1145  ac_popdir=`pwd`
1146  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1147    test -d $ac_dir || continue
1148    ac_builddir=.
1149
1150if test "$ac_dir" != .; then
1151  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1152  # A "../" for each directory in $ac_dir_suffix.
1153  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1154else
1155  ac_dir_suffix= ac_top_builddir=
1156fi
1157
1158case $srcdir in
1159  .)  # No --srcdir option.  We are building in place.
1160    ac_srcdir=.
1161    if test -z "$ac_top_builddir"; then
1162       ac_top_srcdir=.
1163    else
1164       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1165    fi ;;
1166  [\\/]* | ?:[\\/]* )  # Absolute path.
1167    ac_srcdir=$srcdir$ac_dir_suffix;
1168    ac_top_srcdir=$srcdir ;;
1169  *) # Relative path.
1170    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1171    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1172esac
1173
1174# Do not use `cd foo && pwd` to compute absolute paths, because
1175# the directories may not exist.
1176case `pwd` in
1177.) ac_abs_builddir="$ac_dir";;
1178*)
1179  case "$ac_dir" in
1180  .) ac_abs_builddir=`pwd`;;
1181  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1182  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1183  esac;;
1184esac
1185case $ac_abs_builddir in
1186.) ac_abs_top_builddir=${ac_top_builddir}.;;
1187*)
1188  case ${ac_top_builddir}. in
1189  .) ac_abs_top_builddir=$ac_abs_builddir;;
1190  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1191  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1192  esac;;
1193esac
1194case $ac_abs_builddir in
1195.) ac_abs_srcdir=$ac_srcdir;;
1196*)
1197  case $ac_srcdir in
1198  .) ac_abs_srcdir=$ac_abs_builddir;;
1199  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1200  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1201  esac;;
1202esac
1203case $ac_abs_builddir in
1204.) ac_abs_top_srcdir=$ac_top_srcdir;;
1205*)
1206  case $ac_top_srcdir in
1207  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1208  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1209  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1210  esac;;
1211esac
1212
1213    cd $ac_dir
1214    # Check for guested configure; otherwise get Cygnus style configure.
1215    if test -f $ac_srcdir/configure.gnu; then
1216      echo
1217      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1218    elif test -f $ac_srcdir/configure; then
1219      echo
1220      $SHELL $ac_srcdir/configure  --help=recursive
1221    elif test -f $ac_srcdir/configure.ac ||
1222           test -f $ac_srcdir/configure.in; then
1223      echo
1224      $ac_configure --help
1225    else
1226      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227    fi
1228    cd $ac_popdir
1229  done
1230fi
1231
1232test -n "$ac_init_help" && exit 0
1233if $ac_init_version; then
1234  cat <<\_ACEOF
1235Clp configure trunk
1236generated by GNU Autoconf 2.59
1237
1238Copyright (C) 2003 Free Software Foundation, Inc.
1239This configure script is free software; the Free Software Foundation
1240gives unlimited permission to copy, distribute and modify it.
1241
1242
1243Copyright 2006 International Business Machines and others.
1244All Rights Reserved.
1245This file is part of the open source package Coin which is distributed
1246under the Common Public License.
1247_ACEOF
1248  exit 0
1249fi
1250exec 5>config.log
1251cat >&5 <<_ACEOF
1252This file contains any messages produced by compilers while
1253running configure, to aid debugging if configure makes a mistake.
1254
1255It was created by Clp $as_me trunk, which was
1256generated by GNU Autoconf 2.59.  Invocation command line was
1257
1258  $ $0 $@
1259
1260_ACEOF
1261{
1262cat <<_ASUNAME
1263## --------- ##
1264## Platform. ##
1265## --------- ##
1266
1267hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1268uname -m = `(uname -m) 2>/dev/null || echo unknown`
1269uname -r = `(uname -r) 2>/dev/null || echo unknown`
1270uname -s = `(uname -s) 2>/dev/null || echo unknown`
1271uname -v = `(uname -v) 2>/dev/null || echo unknown`
1272
1273/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1274/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1275
1276/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1277/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1278/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1279hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1280/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1281/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1282/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1283
1284_ASUNAME
1285
1286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1287for as_dir in $PATH
1288do
1289  IFS=$as_save_IFS
1290  test -z "$as_dir" && as_dir=.
1291  echo "PATH: $as_dir"
1292done
1293
1294} >&5
1295
1296cat >&5 <<_ACEOF
1297
1298
1299## ----------- ##
1300## Core tests. ##
1301## ----------- ##
1302
1303_ACEOF
1304
1305
1306# Keep a trace of the command line.
1307# Strip out --no-create and --no-recursion so they do not pile up.
1308# Strip out --silent because we don't want to record it for future runs.
1309# Also quote any args containing shell meta-characters.
1310# Make two passes to allow for proper duplicate-argument suppression.
1311ac_configure_args=
1312ac_configure_args0=
1313ac_configure_args1=
1314ac_sep=
1315ac_must_keep_next=false
1316for ac_pass in 1 2
1317do
1318  for ac_arg
1319  do
1320    case $ac_arg in
1321    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1322    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323    | -silent | --silent | --silen | --sile | --sil)
1324      continue ;;
1325    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1326      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1327    esac
1328    case $ac_pass in
1329    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1330    2)
1331      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1332      if test $ac_must_keep_next = true; then
1333        ac_must_keep_next=false # Got value, back to normal.
1334      else
1335        case $ac_arg in
1336          *=* | --config-cache | -C | -disable-* | --disable-* \
1337          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1338          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1339          | -with-* | --with-* | -without-* | --without-* | --x)
1340            case "$ac_configure_args0 " in
1341              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1342            esac
1343            ;;
1344          -* ) ac_must_keep_next=true ;;
1345        esac
1346      fi
1347      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1348      # Get rid of the leading space.
1349      ac_sep=" "
1350      ;;
1351    esac
1352  done
1353done
1354$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1355$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1356
1357# When interrupted or exit'd, cleanup temporary files, and complete
1358# config.log.  We remove comments because anyway the quotes in there
1359# would cause problems or look ugly.
1360# WARNING: Be sure not to use single quotes in there, as some shells,
1361# such as our DU 5.0 friend, will then `close' the trap.
1362trap 'exit_status=$?
1363  # Save into config.log some information that might help in debugging.
1364  {
1365    echo
1366
1367    cat <<\_ASBOX
1368## ---------------- ##
1369## Cache variables. ##
1370## ---------------- ##
1371_ASBOX
1372    echo
1373    # The following way of writing the cache mishandles newlines in values,
1374{
1375  (set) 2>&1 |
1376    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1377    *ac_space=\ *)
1378      sed -n \
1379        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1380          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1381      ;;
1382    *)
1383      sed -n \
1384        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1385      ;;
1386    esac;
1387}
1388    echo
1389
1390    cat <<\_ASBOX
1391## ----------------- ##
1392## Output variables. ##
1393## ----------------- ##
1394_ASBOX
1395    echo
1396    for ac_var in $ac_subst_vars
1397    do
1398      eval ac_val=$`echo $ac_var`
1399      echo "$ac_var='"'"'$ac_val'"'"'"
1400    done | sort
1401    echo
1402
1403    if test -n "$ac_subst_files"; then
1404      cat <<\_ASBOX
1405## ------------- ##
1406## Output files. ##
1407## ------------- ##
1408_ASBOX
1409      echo
1410      for ac_var in $ac_subst_files
1411      do
1412        eval ac_val=$`echo $ac_var`
1413        echo "$ac_var='"'"'$ac_val'"'"'"
1414      done | sort
1415      echo
1416    fi
1417
1418    if test -s confdefs.h; then
1419      cat <<\_ASBOX
1420## ----------- ##
1421## confdefs.h. ##
1422## ----------- ##
1423_ASBOX
1424      echo
1425      sed "/^$/d" confdefs.h | sort
1426      echo
1427    fi
1428    test "$ac_signal" != 0 &&
1429      echo "$as_me: caught signal $ac_signal"
1430    echo "$as_me: exit $exit_status"
1431  } >&5
1432  rm -f core *.core &&
1433  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1434    exit $exit_status
1435     ' 0
1436for ac_signal in 1 2 13 15; do
1437  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1438done
1439ac_signal=0
1440
1441# confdefs.h avoids OS command line length limits that DEFS can exceed.
1442rm -rf conftest* confdefs.h
1443# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1444echo >confdefs.h
1445
1446# Predefined preprocessor variables.
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_NAME "$PACKAGE_NAME"
1450_ACEOF
1451
1452
1453cat >>confdefs.h <<_ACEOF
1454#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1455_ACEOF
1456
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_VERSION "$PACKAGE_VERSION"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_STRING "$PACKAGE_STRING"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1470_ACEOF
1471
1472
1473# Let the site file select an alternate cache file if it wants to.
1474# Prefer explicitly selected file to automatically selected ones.
1475if test -z "$CONFIG_SITE"; then
1476  if test "x$prefix" != xNONE; then
1477    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1478  else
1479    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1480  fi
1481fi
1482for ac_site_file in $CONFIG_SITE; do
1483  if test -r "$ac_site_file"; then
1484    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1485echo "$as_me: loading site script $ac_site_file" >&6;}
1486    sed 's/^/| /' "$ac_site_file" >&5
1487    . "$ac_site_file"
1488  fi
1489done
1490
1491if test -r "$cache_file"; then
1492  # Some versions of bash will fail to source /dev/null (special
1493  # files actually), so we avoid doing that.
1494  if test -f "$cache_file"; then
1495    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1496echo "$as_me: loading cache $cache_file" >&6;}
1497    case $cache_file in
1498      [\\/]* | ?:[\\/]* ) . $cache_file;;
1499      *)                      . ./$cache_file;;
1500    esac
1501  fi
1502else
1503  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1504echo "$as_me: creating cache $cache_file" >&6;}
1505  >$cache_file
1506fi
1507
1508# Check that the precious variables saved in the cache have kept the same
1509# value.
1510ac_cache_corrupted=false
1511for ac_var in `(set) 2>&1 |
1512               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1513  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1514  eval ac_new_set=\$ac_env_${ac_var}_set
1515  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1516  eval ac_new_val="\$ac_env_${ac_var}_value"
1517  case $ac_old_set,$ac_new_set in
1518    set,)
1519      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1520echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1521      ac_cache_corrupted=: ;;
1522    ,set)
1523      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1524echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1525      ac_cache_corrupted=: ;;
1526    ,);;
1527    *)
1528      if test "x$ac_old_val" != "x$ac_new_val"; then
1529        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1530echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1531        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1532echo "$as_me:   former value:  $ac_old_val" >&2;}
1533        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1534echo "$as_me:   current value: $ac_new_val" >&2;}
1535        ac_cache_corrupted=:
1536      fi;;
1537  esac
1538  # Pass precious variables to config.status.
1539  if test "$ac_new_set" = set; then
1540    case $ac_new_val in
1541    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1542      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1543    *) ac_arg=$ac_var=$ac_new_val ;;
1544    esac
1545    case " $ac_configure_args " in
1546      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1547      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1548    esac
1549  fi
1550done
1551if $ac_cache_corrupted; then
1552  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1553echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1554  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1555echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1556   { (exit 1); exit 1; }; }
1557fi
1558
1559ac_ext=c
1560ac_cpp='$CPP $CPPFLAGS'
1561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1563ac_compiler_gnu=$ac_cv_c_compiler_gnu
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594# List one file in the package so that the configure script can test
1595# whether the package is actually there
1596
1597
1598# Where should everything be installed by default?  Here, we want it
1599# to be installed directly in 'bin', 'lib', 'include' subdirectories
1600# of the directory where configure is run.  The default would be
1601# /usr/local.
1602
1603
1604#############################################################################
1605#                         Standard build tool stuff                         #
1606#############################################################################
1607
1608# Get the system type
1609ac_aux_dir=
1610for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1611  if test -f $ac_dir/install-sh; then
1612    ac_aux_dir=$ac_dir
1613    ac_install_sh="$ac_aux_dir/install-sh -c"
1614    break
1615  elif test -f $ac_dir/install.sh; then
1616    ac_aux_dir=$ac_dir
1617    ac_install_sh="$ac_aux_dir/install.sh -c"
1618    break
1619  elif test -f $ac_dir/shtool; then
1620    ac_aux_dir=$ac_dir
1621    ac_install_sh="$ac_aux_dir/shtool install -c"
1622    break
1623  fi
1624done
1625if test -z "$ac_aux_dir"; then
1626  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1627echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1628   { (exit 1); exit 1; }; }
1629fi
1630ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1631ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1632ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1633
1634# Make sure we can run config.sub.
1635$ac_config_sub sun4 >/dev/null 2>&1 ||
1636  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1637echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1638   { (exit 1); exit 1; }; }
1639
1640echo "$as_me:$LINENO: checking build system type" >&5
1641echo $ECHO_N "checking build system type... $ECHO_C" >&6
1642if test "${ac_cv_build+set}" = set; then
1643  echo $ECHO_N "(cached) $ECHO_C" >&6
1644else
1645  ac_cv_build_alias=$build_alias
1646test -z "$ac_cv_build_alias" &&
1647  ac_cv_build_alias=`$ac_config_guess`
1648test -z "$ac_cv_build_alias" &&
1649  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1650echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1651   { (exit 1); exit 1; }; }
1652ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1653  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1654echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1655   { (exit 1); exit 1; }; }
1656
1657fi
1658echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1659echo "${ECHO_T}$ac_cv_build" >&6
1660build=$ac_cv_build
1661build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1662build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1663build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1664
1665
1666
1667# If this project depends on external projects, the Externals file in
1668# the source root directory contains definition of where to find those
1669# externals.  The following macro ensures that those externals are
1670# retrieved by svn if they are not there yet.
1671# Initialize the ADDLIBS variable
1672ADDLIBS="-lm $LIBS"
1673
1674
1675# Initialize the FADDLIBS variable (which is to be used with a fortran
1676# compiler and will not include FLIBS)
1677FADDLIBS="$LIBS"
1678
1679
1680# A useful makefile conditional that is always false
1681
1682
1683if false; then
1684  ALWAYS_FALSE_TRUE=
1685  ALWAYS_FALSE_FALSE='#'
1686else
1687  ALWAYS_FALSE_TRUE='#'
1688  ALWAYS_FALSE_FALSE=
1689fi
1690
1691
1692# We set the following variable so that we know later in AC_COIN_FINALIZE
1693# that we are in a project main directory
1694coin_projectdir=yes
1695
1696
1697# Check if user wants to produce debugging code
1698
1699echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1700echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1701
1702# Check whether --enable-debug or --disable-debug was given.
1703if test "${enable_debug+set}" = set; then
1704  enableval="$enable_debug"
1705  case "${enableval}" in
1706   yes) coin_debug_compile=true
1707        if test "${enable_shared+set}" = set; then :; else
1708          enable_shared=no
1709        fi
1710        ;;
1711   no)  coin_debug_compile=false
1712        ;;
1713   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1714echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1715   { (exit 1); exit 1; }; }
1716        ;;
1717esac
1718else
1719  coin_debug_compile=false
1720fi;
1721
1722# Check whether --enable-debug-clp or --disable-debug-clp was given.
1723if test "${enable_debug_clp+set}" = set; then
1724  enableval="$enable_debug_clp"
1725  case "${enableval}" in
1726    yes) coin_debug_compile=true
1727         enable_shared=no
1728         ;;
1729    no)  coin_debug_compile=false
1730         ;;
1731    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1732echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1733   { (exit 1); exit 1; }; }
1734         ;;
1735 esac
1736else
1737  :
1738fi;
1739
1740 # m4_ifvaln([Clp],
1741
1742if test $coin_debug_compile = true; then
1743  echo "$as_me:$LINENO: result: yes" >&5
1744echo "${ECHO_T}yes" >&6
1745else
1746  echo "$as_me:$LINENO: result: no" >&5
1747echo "${ECHO_T}no" >&6
1748fi
1749
1750
1751# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1752if test "${with_clp_verbosity+set}" = set; then
1753  withval="$with_clp_verbosity"
1754  if test "$withval" = yes; then
1755                withval=1
1756              fi
1757              coin_clp_verbosity=$withval
1758else
1759  coin_clp_verbosity=0
1760fi;
1761
1762cat >>confdefs.h <<_ACEOF
1763#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1764_ACEOF
1765
1766
1767
1768# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1769if test "${with_clp_checklevel+set}" = set; then
1770  withval="$with_clp_checklevel"
1771  if test "$withval" = yes; then
1772                withval=1
1773              fi
1774              coin_clp_checklevel=$withval
1775else
1776  coin_clp_checklevel=0
1777fi;
1778
1779cat >>confdefs.h <<_ACEOF
1780#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1781_ACEOF
1782
1783
1784# We use the following variable to have a string with the upper case
1785# version of the project name
1786COIN_PRJCT=CLP
1787
1788
1789 # m4_ifvaln([Clp],
1790
1791
1792
1793# Get the name of the C++ compiler and appropriate compiler options
1794case $build in
1795  *-mingw*)
1796    if test "${LD+set}" = set; then :; else
1797      LD=link
1798    fi
1799    ;;
1800 esac
1801 case $enable_doscompile in
1802   msvc)
1803     if test "x${LD+set}" = xset; then :; else
1804       LD=link
1805     fi
1806     ;;
1807 esac
1808
1809
1810 # Check whether --enable-doscompile or --disable-doscompile was given.
1811if test "${enable_doscompile+set}" = set; then
1812  enableval="$enable_doscompile"
1813  if test "$enable_doscompile" != no; then
1814     case $build in
1815       *-cygwin* | *-mingw*) ;;
1816       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1817echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1818   { (exit 1); exit 1; }; } ;;
1819     esac
1820   fi
1821else
1822  enable_doscompile=no
1823fi;
1824 case "$enable_doscompile" in
1825   mingw)
1826     case $build in
1827       *-mingw*) enable_doscompile=no ;;
1828     esac
1829     ;;
1830   msvc|no) ;;
1831   yes) enable_doscompile=mingw ;;
1832   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1833                    Try configure --help=recursive." >&5
1834echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1835                    Try configure --help=recursive." >&2;}
1836   { (exit 1); exit 1; }; }
1837      ;;
1838  esac
1839  if test "$enable_doscompile" != no ; then
1840    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1841echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1842  fi
1843
1844
1845
1846
1847ac_ext=c
1848ac_cpp='$CPP $CPPFLAGS'
1849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851ac_compiler_gnu=$ac_cv_c_compiler_gnu
1852
1853
1854# For consistency, we set the C compiler to the same value of the C++
1855# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1856if test x"$CXX" != x; then
1857  case "$CXX" in
1858    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1859      if test x"$CC" = x; then
1860        CC="$CXX"
1861        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1862echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1863      fi
1864      ;;
1865  esac
1866fi
1867
1868
1869
1870
1871
1872
1873coin_has_cc=yes
1874
1875save_cflags="$CFLAGS"
1876
1877# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1878# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1879# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1880# compiler. In this case, put cc after gcc.
1881
1882case $build in
1883  *-cygwin* | *-mingw*)
1884             if test "$enable_doscompile" = msvc ; then
1885               comps="icl cl"
1886             else
1887               comps="gcc cl"
1888             fi ;;
1889  *-*-solaris*)
1890             # Extract the first word of "cc", so it can be a program name with args.
1891set dummy cc; ac_word=$2
1892echo "$as_me:$LINENO: checking for $ac_word" >&5
1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1895  echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897  if test -n "$sol_cc_compiler"; then
1898  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1899else
1900  ac_prog_rejected=no
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904  IFS=$as_save_IFS
1905  test -z "$as_dir" && as_dir=.
1906  for ac_exec_ext in '' $ac_executable_extensions; do
1907  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1909       ac_prog_rejected=yes
1910       continue
1911     fi
1912    ac_cv_prog_sol_cc_compiler="cc"
1913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1914    break 2
1915  fi
1916done
1917done
1918
1919if test $ac_prog_rejected = yes; then
1920  # We found a bogon in the path, so make sure we never use it.
1921  set dummy $ac_cv_prog_sol_cc_compiler
1922  shift
1923  if test $# != 0; then
1924    # We chose a different compiler from the bogus one.
1925    # However, it has the same basename, so the bogon will be chosen
1926    # first if we set sol_cc_compiler to just the basename; use the full file name.
1927    shift
1928    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1929  fi
1930fi
1931fi
1932fi
1933sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1934if test -n "$sol_cc_compiler"; then
1935  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1936echo "${ECHO_T}$sol_cc_compiler" >&6
1937else
1938  echo "$as_me:$LINENO: result: no" >&5
1939echo "${ECHO_T}no" >&6
1940fi
1941
1942             if test "$sol_cc_compiler" = "cc" ; then
1943               comps="cc xlc gcc pgcc icc"
1944             else
1945               comps="xlc gcc pgcc icc cc"
1946             fi
1947             ;;
1948  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1949  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1950esac
1951
1952# We delete the cached value, since the test might not have been
1953# performed with our choice of compilers earlier
1954$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1955# AC_MSG_NOTICE([C compiler candidates: $comps])
1956ac_ext=c
1957ac_cpp='$CPP $CPPFLAGS'
1958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1960ac_compiler_gnu=$ac_cv_c_compiler_gnu
1961if test -n "$ac_tool_prefix"; then
1962  for ac_prog in $comps
1963  do
1964    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1965set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1966echo "$as_me:$LINENO: checking for $ac_word" >&5
1967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968if test "${ac_cv_prog_CC+set}" = set; then
1969  echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971  if test -n "$CC"; then
1972  ac_cv_prog_CC="$CC" # Let the user override the test.
1973else
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977  IFS=$as_save_IFS
1978  test -z "$as_dir" && as_dir=.
1979  for ac_exec_ext in '' $ac_executable_extensions; do
1980  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1982    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983    break 2
1984  fi
1985done
1986done
1987
1988fi
1989fi
1990CC=$ac_cv_prog_CC
1991if test -n "$CC"; then
1992  echo "$as_me:$LINENO: result: $CC" >&5
1993echo "${ECHO_T}$CC" >&6
1994else
1995  echo "$as_me:$LINENO: result: no" >&5
1996echo "${ECHO_T}no" >&6
1997fi
1998
1999    test -n "$CC" && break
2000  done
2001fi
2002if test -z "$CC"; then
2003  ac_ct_CC=$CC
2004  for ac_prog in $comps
2005do
2006  # Extract the first word of "$ac_prog", so it can be a program name with args.
2007set dummy $ac_prog; ac_word=$2
2008echo "$as_me:$LINENO: checking for $ac_word" >&5
2009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011  echo $ECHO_N "(cached) $ECHO_C" >&6
2012else
2013  if test -n "$ac_ct_CC"; then
2014  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015else
2016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017for as_dir in $PATH
2018do
2019  IFS=$as_save_IFS
2020  test -z "$as_dir" && as_dir=.
2021  for ac_exec_ext in '' $ac_executable_extensions; do
2022  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023    ac_cv_prog_ac_ct_CC="$ac_prog"
2024    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025    break 2
2026  fi
2027done
2028done
2029
2030fi
2031fi
2032ac_ct_CC=$ac_cv_prog_ac_ct_CC
2033if test -n "$ac_ct_CC"; then
2034  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2035echo "${ECHO_T}$ac_ct_CC" >&6
2036else
2037  echo "$as_me:$LINENO: result: no" >&5
2038echo "${ECHO_T}no" >&6
2039fi
2040
2041  test -n "$ac_ct_CC" && break
2042done
2043
2044  CC=$ac_ct_CC
2045fi
2046
2047
2048test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2049See \`config.log' for more details." >&5
2050echo "$as_me: error: no acceptable C compiler found in \$PATH
2051See \`config.log' for more details." >&2;}
2052   { (exit 1); exit 1; }; }
2053
2054# Provide some information about the compiler.
2055echo "$as_me:$LINENO:" \
2056     "checking for C compiler version" >&5
2057ac_compiler=`set X $ac_compile; echo $2`
2058{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2059  (eval $ac_compiler --version </dev/null >&5) 2>&5
2060  ac_status=$?
2061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062  (exit $ac_status); }
2063{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2064  (eval $ac_compiler -v </dev/null >&5) 2>&5
2065  ac_status=$?
2066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067  (exit $ac_status); }
2068{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2069  (eval $ac_compiler -V </dev/null >&5) 2>&5
2070  ac_status=$?
2071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2072  (exit $ac_status); }
2073
2074cat >conftest.$ac_ext <<_ACEOF
2075/* confdefs.h.  */
2076_ACEOF
2077cat confdefs.h >>conftest.$ac_ext
2078cat >>conftest.$ac_ext <<_ACEOF
2079/* end confdefs.h.  */
2080
2081int
2082main ()
2083{
2084
2085  ;
2086  return 0;
2087}
2088_ACEOF
2089ac_clean_files_save=$ac_clean_files
2090ac_clean_files="$ac_clean_files a.out a.exe b.out"
2091# Try to create an executable without -o first, disregard a.out.
2092# It will help us diagnose broken compilers, and finding out an intuition
2093# of exeext.
2094echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2095echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2096ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2097if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2098  (eval $ac_link_default) 2>&5
2099  ac_status=$?
2100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101  (exit $ac_status); }; then
2102  # Find the output, starting from the most likely.  This scheme is
2103# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2104# resort.
2105
2106# Be careful to initialize this variable, since it used to be cached.
2107# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2108ac_cv_exeext=
2109# b.out is created by i960 compilers.
2110for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2111do
2112  test -f "$ac_file" || continue
2113  case $ac_file in
2114    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2115        ;;
2116    conftest.$ac_ext )
2117        # This is the source file.
2118        ;;
2119    [ab].out )
2120        # We found the default executable, but exeext='' is most
2121        # certainly right.
2122        break;;
2123    *.* )
2124        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2125        # FIXME: I believe we export ac_cv_exeext for Libtool,
2126        # but it would be cool to find out if it's true.  Does anybody
2127        # maintain Libtool? --akim.
2128        export ac_cv_exeext
2129        break;;
2130    * )
2131        break;;
2132  esac
2133done
2134else
2135  echo "$as_me: failed program was:" >&5
2136sed 's/^/| /' conftest.$ac_ext >&5
2137
2138{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2139See \`config.log' for more details." >&5
2140echo "$as_me: error: C compiler cannot create executables
2141See \`config.log' for more details." >&2;}
2142   { (exit 77); exit 77; }; }
2143fi
2144
2145ac_exeext=$ac_cv_exeext
2146echo "$as_me:$LINENO: result: $ac_file" >&5
2147echo "${ECHO_T}$ac_file" >&6
2148
2149# Check the compiler produces executables we can run.  If not, either
2150# the compiler is broken, or we cross compile.
2151echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2152echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2153# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2154# If not cross compiling, check that we can run a simple program.
2155if test "$cross_compiling" != yes; then
2156  if { ac_try='./$ac_file'
2157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158  (eval $ac_try) 2>&5
2159  ac_status=$?
2160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161  (exit $ac_status); }; }; then
2162    cross_compiling=no
2163  else
2164    if test "$cross_compiling" = maybe; then
2165        cross_compiling=yes
2166    else
2167        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2168If you meant to cross compile, use \`--host'.
2169See \`config.log' for more details." >&5
2170echo "$as_me: error: cannot run C compiled programs.
2171If you meant to cross compile, use \`--host'.
2172See \`config.log' for more details." >&2;}
2173   { (exit 1); exit 1; }; }
2174    fi
2175  fi
2176fi
2177echo "$as_me:$LINENO: result: yes" >&5
2178echo "${ECHO_T}yes" >&6
2179
2180rm -f a.out a.exe conftest$ac_cv_exeext b.out
2181ac_clean_files=$ac_clean_files_save
2182# Check the compiler produces executables we can run.  If not, either
2183# the compiler is broken, or we cross compile.
2184echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2185echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2186echo "$as_me:$LINENO: result: $cross_compiling" >&5
2187echo "${ECHO_T}$cross_compiling" >&6
2188
2189echo "$as_me:$LINENO: checking for suffix of executables" >&5
2190echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2192  (eval $ac_link) 2>&5
2193  ac_status=$?
2194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195  (exit $ac_status); }; then
2196  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2197# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2198# work properly (i.e., refer to `conftest.exe'), while it won't with
2199# `rm'.
2200for ac_file in conftest.exe conftest conftest.*; do
2201  test -f "$ac_file" || continue
2202  case $ac_file in
2203    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2204    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2205          export ac_cv_exeext
2206          break;;
2207    * ) break;;
2208  esac
2209done
2210else
2211  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2212See \`config.log' for more details." >&5
2213echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2214See \`config.log' for more details." >&2;}
2215   { (exit 1); exit 1; }; }
2216fi
2217
2218rm -f conftest$ac_cv_exeext
2219echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2220echo "${ECHO_T}$ac_cv_exeext" >&6
2221
2222rm -f conftest.$ac_ext
2223EXEEXT=$ac_cv_exeext
2224ac_exeext=$EXEEXT
2225echo "$as_me:$LINENO: checking for suffix of object files" >&5
2226echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2227if test "${ac_cv_objext+set}" = set; then
2228  echo $ECHO_N "(cached) $ECHO_C" >&6
2229else
2230  cat >conftest.$ac_ext <<_ACEOF
2231/* confdefs.h.  */
2232_ACEOF
2233cat confdefs.h >>conftest.$ac_ext
2234cat >>conftest.$ac_ext <<_ACEOF
2235/* end confdefs.h.  */
2236
2237int
2238main ()
2239{
2240
2241  ;
2242  return 0;
2243}
2244_ACEOF
2245rm -f conftest.o conftest.obj
2246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247  (eval $ac_compile) 2>&5
2248  ac_status=$?
2249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250  (exit $ac_status); }; then
2251  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2252  case $ac_file in
2253    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2254    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2255       break;;
2256  esac
2257done
2258else
2259  echo "$as_me: failed program was:" >&5
2260sed 's/^/| /' conftest.$ac_ext >&5
2261
2262{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2263See \`config.log' for more details." >&5
2264echo "$as_me: error: cannot compute suffix of object files: cannot compile
2265See \`config.log' for more details." >&2;}
2266   { (exit 1); exit 1; }; }
2267fi
2268
2269rm -f conftest.$ac_cv_objext conftest.$ac_ext
2270fi
2271echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2272echo "${ECHO_T}$ac_cv_objext" >&6
2273OBJEXT=$ac_cv_objext
2274ac_objext=$OBJEXT
2275echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2276echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2277if test "${ac_cv_c_compiler_gnu+set}" = set; then
2278  echo $ECHO_N "(cached) $ECHO_C" >&6
2279else
2280  cat >conftest.$ac_ext <<_ACEOF
2281/* confdefs.h.  */
2282_ACEOF
2283cat confdefs.h >>conftest.$ac_ext
2284cat >>conftest.$ac_ext <<_ACEOF
2285/* end confdefs.h.  */
2286
2287int
2288main ()
2289{
2290#ifndef __GNUC__
2291       choke me
2292#endif
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_compiler_gnu=yes
2321else
2322  echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325ac_compiler_gnu=no
2326fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328ac_cv_c_compiler_gnu=$ac_compiler_gnu
2329
2330fi
2331echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2332echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2333GCC=`test $ac_compiler_gnu = yes && echo yes`
2334ac_test_CFLAGS=${CFLAGS+set}
2335ac_save_CFLAGS=$CFLAGS
2336CFLAGS="-g"
2337echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2338echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2339if test "${ac_cv_prog_cc_g+set}" = set; then
2340  echo $ECHO_N "(cached) $ECHO_C" >&6
2341else
2342  cat >conftest.$ac_ext <<_ACEOF
2343/* confdefs.h.  */
2344_ACEOF
2345cat confdefs.h >>conftest.$ac_ext
2346cat >>conftest.$ac_ext <<_ACEOF
2347/* end confdefs.h.  */
2348
2349int
2350main ()
2351{
2352
2353  ;
2354  return 0;
2355}
2356_ACEOF
2357rm -f conftest.$ac_objext
2358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359  (eval $ac_compile) 2>conftest.er1
2360  ac_status=$?
2361  grep -v '^ *+' conftest.er1 >conftest.err
2362  rm -f conftest.er1
2363  cat conftest.err >&5
2364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365  (exit $ac_status); } &&
2366         { ac_try='test -z "$ac_c_werror_flag"
2367                         || test ! -s conftest.err'
2368  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369  (eval $ac_try) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; } &&
2373         { ac_try='test -s conftest.$ac_objext'
2374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375  (eval $ac_try) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; }; then
2379  ac_cv_prog_cc_g=yes
2380else
2381  echo "$as_me: failed program was:" >&5
2382sed 's/^/| /' conftest.$ac_ext >&5
2383
2384ac_cv_prog_cc_g=no
2385fi
2386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387fi
2388echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2389echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2390if test "$ac_test_CFLAGS" = set; then
2391  CFLAGS=$ac_save_CFLAGS
2392elif test $ac_cv_prog_cc_g = yes; then
2393  if test "$GCC" = yes; then
2394    CFLAGS="-g -O2"
2395  else
2396    CFLAGS="-g"
2397  fi
2398else
2399  if test "$GCC" = yes; then
2400    CFLAGS="-O2"
2401  else
2402    CFLAGS=
2403  fi
2404fi
2405echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2406echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2407if test "${ac_cv_prog_cc_stdc+set}" = set; then
2408  echo $ECHO_N "(cached) $ECHO_C" >&6
2409else
2410  ac_cv_prog_cc_stdc=no
2411ac_save_CC=$CC
2412cat >conftest.$ac_ext <<_ACEOF
2413/* confdefs.h.  */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h.  */
2418#include <stdarg.h>
2419#include <stdio.h>
2420#include <sys/types.h>
2421#include <sys/stat.h>
2422/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2423struct buf { int x; };
2424FILE * (*rcsopen) (struct buf *, struct stat *, int);
2425static char *e (p, i)
2426     char **p;
2427     int i;
2428{
2429  return p[i];
2430}
2431static char *f (char * (*g) (char **, int), char **p, ...)
2432{
2433  char *s;
2434  va_list v;
2435  va_start (v,p);
2436  s = g (p, va_arg (v,int));
2437  va_end (v);
2438  return s;
2439}
2440
2441/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2442   function prototypes and stuff, but not '\xHH' hex character constants.
2443   These don't provoke an error unfortunately, instead are silently treated
2444   as 'x'.  The following induces an error, until -std1 is added to get
2445   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2446   array size at least.  It's necessary to write '\x00'==0 to get something
2447   that's true only with -std1.  */
2448int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2449
2450int test (int i, double x);
2451struct s1 {int (*f) (int a);};
2452struct s2 {int (*f) (double a);};
2453int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2454int argc;
2455char **argv;
2456int
2457main ()
2458{
2459return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2460  ;
2461  return 0;
2462}
2463_ACEOF
2464# Don't try gcc -ansi; that turns off useful extensions and
2465# breaks some systems' header files.
2466# AIX                   -qlanglvl=ansi
2467# Ultrix and OSF/1      -std1
2468# HP-UX 10.20 and later -Ae
2469# HP-UX older versions  -Aa -D_HPUX_SOURCE
2470# SVR4                  -Xc -D__EXTENSIONS__
2471for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2472do
2473  CC="$ac_save_CC $ac_arg"
2474  rm -f conftest.$ac_objext
2475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476  (eval $ac_compile) 2>conftest.er1
2477  ac_status=$?
2478  grep -v '^ *+' conftest.er1 >conftest.err
2479  rm -f conftest.er1
2480  cat conftest.err >&5
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); } &&
2483         { ac_try='test -z "$ac_c_werror_flag"
2484                         || test ! -s conftest.err'
2485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486  (eval $ac_try) 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; } &&
2490         { ac_try='test -s conftest.$ac_objext'
2491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492  (eval $ac_try) 2>&5
2493  ac_status=$?
2494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495  (exit $ac_status); }; }; then
2496  ac_cv_prog_cc_stdc=$ac_arg
2497break
2498else
2499  echo "$as_me: failed program was:" >&5
2500sed 's/^/| /' conftest.$ac_ext >&5
2501
2502fi
2503rm -f conftest.err conftest.$ac_objext
2504done
2505rm -f conftest.$ac_ext conftest.$ac_objext
2506CC=$ac_save_CC
2507
2508fi
2509
2510case "x$ac_cv_prog_cc_stdc" in
2511  x|xno)
2512    echo "$as_me:$LINENO: result: none needed" >&5
2513echo "${ECHO_T}none needed" >&6 ;;
2514  *)
2515    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2516echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2517    CC="$CC $ac_cv_prog_cc_stdc" ;;
2518esac
2519
2520# Some people use a C++ compiler to compile C.  Since we use `exit',
2521# in C++ we need to declare it.  In case someone uses the same compiler
2522# for both compiling C and C++ we need to have the C++ compiler decide
2523# the declaration of exit, since it's the most demanding environment.
2524cat >conftest.$ac_ext <<_ACEOF
2525#ifndef __cplusplus
2526  choke me
2527#endif
2528_ACEOF
2529rm -f conftest.$ac_objext
2530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2531  (eval $ac_compile) 2>conftest.er1
2532  ac_status=$?
2533  grep -v '^ *+' conftest.er1 >conftest.err
2534  rm -f conftest.er1
2535  cat conftest.err >&5
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); } &&
2538         { ac_try='test -z "$ac_c_werror_flag"
2539                         || test ! -s conftest.err'
2540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2541  (eval $ac_try) 2>&5
2542  ac_status=$?
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); }; } &&
2545         { ac_try='test -s conftest.$ac_objext'
2546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547  (eval $ac_try) 2>&5
2548  ac_status=$?
2549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550  (exit $ac_status); }; }; then
2551  for ac_declaration in \
2552   '' \
2553   'extern "C" void std::exit (int) throw (); using std::exit;' \
2554   'extern "C" void std::exit (int); using std::exit;' \
2555   'extern "C" void exit (int) throw ();' \
2556   'extern "C" void exit (int);' \
2557   'void exit (int);'
2558do
2559  cat >conftest.$ac_ext <<_ACEOF
2560/* confdefs.h.  */
2561_ACEOF
2562cat confdefs.h >>conftest.$ac_ext
2563cat >>conftest.$ac_ext <<_ACEOF
2564/* end confdefs.h.  */
2565$ac_declaration
2566#include <stdlib.h>
2567int
2568main ()
2569{
2570exit (42);
2571  ;
2572  return 0;
2573}
2574_ACEOF
2575rm -f conftest.$ac_objext
2576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577  (eval $ac_compile) 2>conftest.er1
2578  ac_status=$?
2579  grep -v '^ *+' conftest.er1 >conftest.err
2580  rm -f conftest.er1
2581  cat conftest.err >&5
2582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583  (exit $ac_status); } &&
2584         { ac_try='test -z "$ac_c_werror_flag"
2585                         || test ! -s conftest.err'
2586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587  (eval $ac_try) 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; } &&
2591         { ac_try='test -s conftest.$ac_objext'
2592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593  (eval $ac_try) 2>&5
2594  ac_status=$?
2595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596  (exit $ac_status); }; }; then
2597  :
2598else
2599  echo "$as_me: failed program was:" >&5
2600sed 's/^/| /' conftest.$ac_ext >&5
2601
2602continue
2603fi
2604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2605  cat >conftest.$ac_ext <<_ACEOF
2606/* confdefs.h.  */
2607_ACEOF
2608cat confdefs.h >>conftest.$ac_ext
2609cat >>conftest.$ac_ext <<_ACEOF
2610/* end confdefs.h.  */
2611$ac_declaration
2612int
2613main ()
2614{
2615exit (42);
2616  ;
2617  return 0;
2618}
2619_ACEOF
2620rm -f conftest.$ac_objext
2621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2622  (eval $ac_compile) 2>conftest.er1
2623  ac_status=$?
2624  grep -v '^ *+' conftest.er1 >conftest.err
2625  rm -f conftest.er1
2626  cat conftest.err >&5
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); } &&
2629         { ac_try='test -z "$ac_c_werror_flag"
2630                         || test ! -s conftest.err'
2631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632  (eval $ac_try) 2>&5
2633  ac_status=$?
2634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635  (exit $ac_status); }; } &&
2636         { ac_try='test -s conftest.$ac_objext'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; }; then
2642  break
2643else
2644  echo "$as_me: failed program was:" >&5
2645sed 's/^/| /' conftest.$ac_ext >&5
2646
2647fi
2648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649done
2650rm -f conftest*
2651if test -n "$ac_declaration"; then
2652  echo '#ifdef __cplusplus' >>confdefs.h
2653  echo $ac_declaration      >>confdefs.h
2654  echo '#endif'             >>confdefs.h
2655fi
2656
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661fi
2662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2663ac_ext=c
2664ac_cpp='$CPP $CPPFLAGS'
2665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668
2669if test -z "$CC" ; then
2670  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2671echo "$as_me: error: Failed to find a C compiler!" >&2;}
2672   { (exit 1); exit 1; }; }
2673fi
2674# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2675case "$CC" in
2676  cl* | */cl* | CL* | */CL* )
2677    if test "$ac_cv_prog_cc_g" = yes ; then
2678      ac_cv_prog_cc_g=no
2679      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2680echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2681    fi ;;
2682esac
2683CFLAGS="$save_cflags"
2684
2685# Check if a project specific CFLAGS variable has been set
2686if test x$COIN_PRJCT != x; then
2687  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2688  if test x$coin_tmp = xset; then
2689    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2690  fi
2691fi
2692
2693if test x"$CFLAGS" = x; then
2694
2695  coin_add_cflags=
2696  coin_opt_cflags=
2697  coin_dbg_cflags=
2698  coin_warn_cflags=
2699
2700  if test "$GCC" = "yes"; then
2701    case "$CC" in
2702      icc* | */icc*)
2703        ;;
2704      *)
2705        coin_opt_cflags="-O3 -fomit-frame-pointer"
2706        coin_add_cflags="-pipe"
2707        coin_dbg_cflags="-g"
2708        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2709        case $build in
2710          *-darwin*)
2711            ;;
2712          *)
2713            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2714            ;;
2715        esac
2716        case $enable_doscompile in
2717          mingw)
2718            CFLAGS="-mno-cygwin"
2719            cat >conftest.$ac_ext <<_ACEOF
2720/* confdefs.h.  */
2721_ACEOF
2722cat confdefs.h >>conftest.$ac_ext
2723cat >>conftest.$ac_ext <<_ACEOF
2724/* end confdefs.h.  */
2725
2726int
2727main ()
2728{
2729int i=0; i++;
2730  ;
2731  return 0;
2732}
2733_ACEOF
2734rm -f conftest.$ac_objext conftest$ac_exeext
2735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2736  (eval $ac_link) 2>conftest.er1
2737  ac_status=$?
2738  grep -v '^ *+' conftest.er1 >conftest.err
2739  rm -f conftest.er1
2740  cat conftest.err >&5
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); } &&
2743         { ac_try='test -z "$ac_c_werror_flag"
2744                         || test ! -s conftest.err'
2745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746  (eval $ac_try) 2>&5
2747  ac_status=$?
2748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749  (exit $ac_status); }; } &&
2750         { ac_try='test -s conftest$ac_exeext'
2751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752  (eval $ac_try) 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }; }; then
2756  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2757else
2758  echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761fi
2762rm -f conftest.err conftest.$ac_objext \
2763      conftest$ac_exeext conftest.$ac_ext
2764            CFLAGS=
2765          ;;
2766        esac
2767    esac
2768  fi
2769  if test -z "$coin_opt_cflags"; then
2770    case $build in
2771      *-cygwin* | *-mingw*)
2772        case "$CC" in
2773          cl* | */cl* | CL* | */CL*)
2774            coin_opt_cflags='-MT -O2'
2775            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2776            coin_dbg_cflags='-MTd'
2777            ;;
2778          icl* | */icl* | ICL* | */ICL*)
2779            coin_opt_cflags='-MT -Ox'
2780            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2781            coin_dbg_cflags='-MTd -debug'
2782            ;;
2783        esac
2784        ;;
2785      *-linux-*)
2786        case "$CC" in
2787          icc* | */icc*)
2788            coin_opt_cflags="-O3 -ip -mp1"
2789            coin_add_cflags=""
2790            coin_dbg_cflags="-g"
2791            # Check if -i_dynamic is necessary (for new glibc library)
2792            CFLAGS=
2793            cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h.  */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h.  */
2799
2800int
2801main ()
2802{
2803int i=0; i++;
2804  ;
2805  return 0;
2806}
2807_ACEOF
2808rm -f conftest.$ac_objext conftest$ac_exeext
2809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2810  (eval $ac_link) 2>conftest.er1
2811  ac_status=$?
2812  grep -v '^ *+' conftest.er1 >conftest.err
2813  rm -f conftest.er1
2814  cat conftest.err >&5
2815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816  (exit $ac_status); } &&
2817         { ac_try='test -z "$ac_c_werror_flag"
2818                         || test ! -s conftest.err'
2819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820  (eval $ac_try) 2>&5
2821  ac_status=$?
2822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823  (exit $ac_status); }; } &&
2824         { ac_try='test -s conftest$ac_exeext'
2825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826  (eval $ac_try) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); }; }; then
2830  :
2831else
2832  echo "$as_me: failed program was:" >&5
2833sed 's/^/| /' conftest.$ac_ext >&5
2834
2835coin_add_cflags="-i_dynamic $coin_add_cflags"
2836fi
2837rm -f conftest.err conftest.$ac_objext \
2838      conftest$ac_exeext conftest.$ac_ext
2839            ;;
2840          pgcc* | */pgcc*)
2841            coin_opt_cflags="-fast"
2842            coin_add_cflags="-Kieee -pc 64"
2843            coin_dbg_cflags="-g"
2844            ;;
2845        esac
2846        ;;
2847      *-ibm-*)
2848        case "$CC" in
2849          xlc* | */xlc* | mpxlc* | */mpxlc*)
2850            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2851            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2852            coin_dbg_cflags="-g"
2853          ;;
2854        esac
2855        ;;
2856      *-hp-*)
2857        coin_opt_cflags="-O"
2858        coin_add_cflags="-Ae"
2859        coin_dbg_cflags="-g"
2860        ;;
2861      *-*-solaris*)
2862        coin_opt_cflags="-xO4"
2863        coin_dbg_cflags="-g"
2864        ;;
2865      *-sgi-*)
2866        coin_opt_cflags="-O -OPT:Olimit=0"
2867        coin_dbg_cflags="-g"
2868        ;;
2869    esac
2870  fi
2871
2872  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2873    coin_dbg_cflags="-g"
2874  fi
2875
2876  if test -z "$coin_opt_cflags"; then
2877    # Try if -O option works if nothing else is set
2878    CFLAGS="-O"
2879    cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h.  */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h.  */
2885
2886int
2887main ()
2888{
2889int i=0; i++;
2890  ;
2891  return 0;
2892}
2893_ACEOF
2894rm -f conftest.$ac_objext conftest$ac_exeext
2895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2896  (eval $ac_link) 2>conftest.er1
2897  ac_status=$?
2898  grep -v '^ *+' conftest.er1 >conftest.err
2899  rm -f conftest.er1
2900  cat conftest.err >&5
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); } &&
2903         { ac_try='test -z "$ac_c_werror_flag"
2904                         || test ! -s conftest.err'
2905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906  (eval $ac_try) 2>&5
2907  ac_status=$?
2908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909  (exit $ac_status); }; } &&
2910         { ac_try='test -s conftest$ac_exeext'
2911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912  (eval $ac_try) 2>&5
2913  ac_status=$?
2914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915  (exit $ac_status); }; }; then
2916  coin_opt_cflags="-O"
2917else
2918  echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
2921fi
2922rm -f conftest.err conftest.$ac_objext \
2923      conftest$ac_exeext conftest.$ac_ext
2924  fi
2925
2926  # if PM doesn't want the warning messages, take them out
2927  if test x"$coin_skip_warn_cflags" = xyes; then
2928    coin_warn_cflags=
2929  fi
2930
2931  if test x${DBG_CFLAGS+set} != xset; then
2932    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2933  fi
2934  if test x${OPT_CFLAGS+set} != xset; then
2935    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2936  fi
2937
2938  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2939  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2940
2941  if test "$coin_debug_compile" = "true"; then
2942    CFLAGS="$DBG_CFLAGS"
2943  else
2944    CFLAGS="$OPT_CFLAGS"
2945  fi
2946else
2947  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2948  if test x${DBG_CFLAGS+set} != xset; then
2949    DBG_CFLAGS="$CFLAGS"
2950  fi
2951  if test x${OPT_CFLAGS+set} != xset; then
2952    OPT_CFLAGS="$CFLAGS"
2953  fi
2954fi
2955
2956# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2957
2958case "$CFLAGS" in
2959  *-mno-cygwin*)
2960    if test x${CPPFLAGS+set} != xset ; then
2961      CPPFLAGS="-mno-cygwin"
2962    else
2963      case "$CPPFLAGS" in
2964        *-mno-cygwin*)
2965          ;;
2966        *)
2967          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2968          ;;
2969      esac
2970    fi ;;
2971esac
2972
2973# Try if CFLAGS works
2974save_CFLAGS="$CFLAGS"
2975cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h.  */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h.  */
2981
2982int
2983main ()
2984{
2985int i=0; i++;
2986  ;
2987  return 0;
2988}
2989_ACEOF
2990rm -f conftest.$ac_objext conftest$ac_exeext
2991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2992  (eval $ac_link) 2>conftest.er1
2993  ac_status=$?
2994  grep -v '^ *+' conftest.er1 >conftest.err
2995  rm -f conftest.er1
2996  cat conftest.err >&5
2997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998  (exit $ac_status); } &&
2999         { ac_try='test -z "$ac_c_werror_flag"
3000                         || test ! -s conftest.err'
3001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002  (eval $ac_try) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }; } &&
3006         { ac_try='test -s conftest$ac_exeext'
3007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008  (eval $ac_try) 2>&5
3009  ac_status=$?
3010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011  (exit $ac_status); }; }; then
3012  :
3013else
3014  echo "$as_me: failed program was:" >&5
3015sed 's/^/| /' conftest.$ac_ext >&5
3016
3017CFLAGS=
3018fi
3019rm -f conftest.err conftest.$ac_objext \
3020      conftest$ac_exeext conftest.$ac_ext
3021if test -z "$CFLAGS"; then
3022  { 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
3023echo "$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;}
3024  CFLAGS='-O'
3025  cat >conftest.$ac_ext <<_ACEOF
3026/* confdefs.h.  */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h.  */
3031
3032int
3033main ()
3034{
3035int i=0; i++;
3036  ;
3037  return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext conftest$ac_exeext
3041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3042  (eval $ac_link) 2>conftest.er1
3043  ac_status=$?
3044  grep -v '^ *+' conftest.er1 >conftest.err
3045  rm -f conftest.er1
3046  cat conftest.err >&5
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); } &&
3049         { ac_try='test -z "$ac_c_werror_flag"
3050                         || test ! -s conftest.err'
3051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052  (eval $ac_try) 2>&5
3053  ac_status=$?
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); }; } &&
3056         { ac_try='test -s conftest$ac_exeext'
3057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058  (eval $ac_try) 2>&5
3059  ac_status=$?
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); }; }; then
3062  :
3063else
3064  echo "$as_me: failed program was:" >&5
3065sed 's/^/| /' conftest.$ac_ext >&5
3066
3067CFLAGS=
3068fi
3069rm -f conftest.err conftest.$ac_objext \
3070      conftest$ac_exeext conftest.$ac_ext
3071  if test -z "$CFLAGS"; then
3072    { 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
3073echo "$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;}
3074  fi
3075fi
3076
3077{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3078echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3079
3080
3081if test x"$MPICC" = x; then :; else
3082  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3083echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3084  CC="$MPICC"
3085fi
3086
3087# Correct ADDLIBS initialization if we are using the MS compiler
3088case "$CC" in
3089  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3090    ADDLIBS=
3091    case $build in
3092  *-mingw*)
3093    if test "${LD+set}" = set; then :; else
3094      LD=link
3095    fi
3096    ;;
3097 esac
3098 case $enable_doscompile in
3099   msvc)
3100     if test "x${LD+set}" = xset; then :; else
3101       LD=link
3102     fi
3103     ;;
3104 esac
3105
3106    ;;
3107esac
3108
3109ac_ext=c
3110ac_cpp='$CPP $CPPFLAGS'
3111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113ac_compiler_gnu=$ac_cv_c_compiler_gnu
3114
3115
3116
3117 #Let's try if that overcomes configuration problem with VC++ 6.0
3118
3119ac_ext=cc
3120ac_cpp='$CXXCPP $CPPFLAGS'
3121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3124
3125
3126
3127
3128
3129
3130
3131coin_has_cxx=yes
3132
3133save_cxxflags="$CXXFLAGS"
3134# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3135case $build in
3136  *-cygwin* | *-mingw*)
3137             if test "$enable_doscompile" = msvc ; then
3138               comps="icl cl"
3139             else
3140               comps="g++ cl"
3141             fi ;;
3142  *-*-solaris*)
3143             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3144  *-darwin*) comps="g++ c++ CC" ;;
3145          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3146esac
3147
3148# We delete the cached value, since the test might not have been
3149# performed with our choice of compilers earlier
3150$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3151# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3152ac_ext=cc
3153ac_cpp='$CXXCPP $CPPFLAGS'
3154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3157if test -n "$ac_tool_prefix"; then
3158  for ac_prog in $CCC $comps
3159  do
3160    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3161set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3162echo "$as_me:$LINENO: checking for $ac_word" >&5
3163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164if test "${ac_cv_prog_CXX+set}" = set; then
3165  echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167  if test -n "$CXX"; then
3168  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3169else
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173  IFS=$as_save_IFS
3174  test -z "$as_dir" && as_dir=.
3175  for ac_exec_ext in '' $ac_executable_extensions; do
3176  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179    break 2
3180  fi
3181done
3182done
3183
3184fi
3185fi
3186CXX=$ac_cv_prog_CXX
3187if test -n "$CXX"; then
3188  echo "$as_me:$LINENO: result: $CXX" >&5
3189echo "${ECHO_T}$CXX" >&6
3190else
3191  echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6
3193fi
3194
3195    test -n "$CXX" && break
3196  done
3197fi
3198if test -z "$CXX"; then
3199  ac_ct_CXX=$CXX
3200  for ac_prog in $CCC $comps
3201do
3202  # Extract the first word of "$ac_prog", so it can be a program name with args.
3203set dummy $ac_prog; ac_word=$2
3204echo "$as_me:$LINENO: checking for $ac_word" >&5
3205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3207  echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209  if test -n "$ac_ct_CXX"; then
3210  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3211else
3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213for as_dir in $PATH
3214do
3215  IFS=$as_save_IFS
3216  test -z "$as_dir" && as_dir=.
3217  for ac_exec_ext in '' $ac_executable_extensions; do
3218  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219    ac_cv_prog_ac_ct_CXX="$ac_prog"
3220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221    break 2
3222  fi
3223done
3224done
3225
3226fi
3227fi
3228ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3229if test -n "$ac_ct_CXX"; then
3230  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3231echo "${ECHO_T}$ac_ct_CXX" >&6
3232else
3233  echo "$as_me:$LINENO: result: no" >&5
3234echo "${ECHO_T}no" >&6
3235fi
3236
3237  test -n "$ac_ct_CXX" && break
3238done
3239test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3240
3241  CXX=$ac_ct_CXX
3242fi
3243
3244
3245# Provide some information about the compiler.
3246echo "$as_me:$LINENO:" \
3247     "checking for C++ compiler version" >&5
3248ac_compiler=`set X $ac_compile; echo $2`
3249{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3250  (eval $ac_compiler --version </dev/null >&5) 2>&5
3251  ac_status=$?
3252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253  (exit $ac_status); }
3254{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3255  (eval $ac_compiler -v </dev/null >&5) 2>&5
3256  ac_status=$?
3257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258  (exit $ac_status); }
3259{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3260  (eval $ac_compiler -V </dev/null >&5) 2>&5
3261  ac_status=$?
3262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263  (exit $ac_status); }
3264
3265echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3266echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3267if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3268  echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270  cat >conftest.$ac_ext <<_ACEOF
3271/* confdefs.h.  */
3272_ACEOF
3273cat confdefs.h >>conftest.$ac_ext
3274cat >>conftest.$ac_ext <<_ACEOF
3275/* end confdefs.h.  */
3276
3277int
3278main ()
3279{
3280#ifndef __GNUC__
3281       choke me
3282#endif
3283
3284  ;
3285  return 0;
3286}
3287_ACEOF
3288rm -f conftest.$ac_objext
3289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290  (eval $ac_compile) 2>conftest.er1
3291  ac_status=$?
3292  grep -v '^ *+' conftest.er1 >conftest.err
3293  rm -f conftest.er1
3294  cat conftest.err >&5
3295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296  (exit $ac_status); } &&
3297         { ac_try='test -z "$ac_cxx_werror_flag"
3298                         || test ! -s conftest.err'
3299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300  (eval $ac_try) 2>&5
3301  ac_status=$?
3302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303  (exit $ac_status); }; } &&
3304         { ac_try='test -s conftest.$ac_objext'
3305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306  (eval $ac_try) 2>&5
3307  ac_status=$?
3308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309  (exit $ac_status); }; }; then
3310  ac_compiler_gnu=yes
3311else
3312  echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315ac_compiler_gnu=no
3316fi
3317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3319
3320fi
3321echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3322echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3323GXX=`test $ac_compiler_gnu = yes && echo yes`
3324ac_test_CXXFLAGS=${CXXFLAGS+set}
3325ac_save_CXXFLAGS=$CXXFLAGS
3326CXXFLAGS="-g"
3327echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3328echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3329if test "${ac_cv_prog_cxx_g+set}" = set; then
3330  echo $ECHO_N "(cached) $ECHO_C" >&6
3331else
3332  cat >conftest.$ac_ext <<_ACEOF
3333/* confdefs.h.  */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h.  */
3338
3339int
3340main ()
3341{
3342
3343  ;
3344  return 0;
3345}
3346_ACEOF
3347rm -f conftest.$ac_objext
3348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349  (eval $ac_compile) 2>conftest.er1
3350  ac_status=$?
3351  grep -v '^ *+' conftest.er1 >conftest.err
3352  rm -f conftest.er1
3353  cat conftest.err >&5
3354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355  (exit $ac_status); } &&
3356         { ac_try='test -z "$ac_cxx_werror_flag"
3357                         || test ! -s conftest.err'
3358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359  (eval $ac_try) 2>&5
3360  ac_status=$?
3361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362  (exit $ac_status); }; } &&
3363         { ac_try='test -s conftest.$ac_objext'
3364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365  (eval $ac_try) 2>&5
3366  ac_status=$?
3367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368  (exit $ac_status); }; }; then
3369  ac_cv_prog_cxx_g=yes
3370else
3371  echo "$as_me: failed program was:" >&5
3372sed 's/^/| /' conftest.$ac_ext >&5
3373
3374ac_cv_prog_cxx_g=no
3375fi
3376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3377fi
3378echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3379echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3380if test "$ac_test_CXXFLAGS" = set; then
3381  CXXFLAGS=$ac_save_CXXFLAGS
3382elif test $ac_cv_prog_cxx_g = yes; then
3383  if test "$GXX" = yes; then
3384    CXXFLAGS="-g -O2"
3385  else
3386    CXXFLAGS="-g"
3387  fi
3388else
3389  if test "$GXX" = yes; then
3390    CXXFLAGS="-O2"
3391  else
3392    CXXFLAGS=
3393  fi
3394fi
3395for ac_declaration in \
3396   '' \
3397   'extern "C" void std::exit (int) throw (); using std::exit;' \
3398   'extern "C" void std::exit (int); using std::exit;' \
3399   'extern "C" void exit (int) throw ();' \
3400   'extern "C" void exit (int);' \
3401   'void exit (int);'
3402do
3403  cat >conftest.$ac_ext <<_ACEOF
3404/* confdefs.h.  */
3405_ACEOF
3406cat confdefs.h >>conftest.$ac_ext
3407cat >>conftest.$ac_ext <<_ACEOF
3408/* end confdefs.h.  */
3409$ac_declaration
3410#include <stdlib.h>
3411int
3412main ()
3413{
3414exit (42);
3415  ;
3416  return 0;
3417}
3418_ACEOF
3419rm -f conftest.$ac_objext
3420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3421  (eval $ac_compile) 2>conftest.er1
3422  ac_status=$?
3423  grep -v '^ *+' conftest.er1 >conftest.err
3424  rm -f conftest.er1
3425  cat conftest.err >&5
3426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427  (exit $ac_status); } &&
3428         { ac_try='test -z "$ac_cxx_werror_flag"
3429                         || test ! -s conftest.err'
3430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431  (eval $ac_try) 2>&5
3432  ac_status=$?
3433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434  (exit $ac_status); }; } &&
3435         { ac_try='test -s conftest.$ac_objext'
3436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437  (eval $ac_try) 2>&5
3438  ac_status=$?
3439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440  (exit $ac_status); }; }; then
3441  :
3442else
3443  echo "$as_me: failed program was:" >&5
3444sed 's/^/| /' conftest.$ac_ext >&5
3445
3446continue
3447fi
3448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3449  cat >conftest.$ac_ext <<_ACEOF
3450/* confdefs.h.  */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h.  */
3455$ac_declaration
3456int
3457main ()
3458{
3459exit (42);
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464rm -f conftest.$ac_objext
3465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466  (eval $ac_compile) 2>conftest.er1
3467  ac_status=$?
3468  grep -v '^ *+' conftest.er1 >conftest.err
3469  rm -f conftest.er1
3470  cat conftest.err >&5
3471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472  (exit $ac_status); } &&
3473         { ac_try='test -z "$ac_cxx_werror_flag"
3474                         || test ! -s conftest.err'
3475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476  (eval $ac_try) 2>&5
3477  ac_status=$?
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); }; } &&
3480         { ac_try='test -s conftest.$ac_objext'
3481  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482  (eval $ac_try) 2>&5
3483  ac_status=$?
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); }; }; then
3486  break
3487else
3488  echo "$as_me: failed program was:" >&5
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
3491fi
3492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3493done
3494rm -f conftest*
3495if test -n "$ac_declaration"; then
3496  echo '#ifdef __cplusplus' >>confdefs.h
3497  echo $ac_declaration      >>confdefs.h
3498  echo '#endif'             >>confdefs.h
3499fi
3500
3501ac_ext=cc
3502ac_cpp='$CXXCPP $CPPFLAGS'
3503ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3506
3507
3508#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3509#thus, we test here whether $CXX is actually working
3510ac_ext=cc
3511ac_cpp='$CXXCPP $CPPFLAGS'
3512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3515
3516echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3517echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3518cat >conftest.$ac_ext <<_ACEOF
3519/* confdefs.h.  */
3520_ACEOF
3521cat confdefs.h >>conftest.$ac_ext
3522cat >>conftest.$ac_ext <<_ACEOF
3523/* end confdefs.h.  */
3524
3525int
3526main ()
3527{
3528int i=0;
3529  ;
3530  return 0;
3531}
3532_ACEOF
3533rm -f conftest.$ac_objext
3534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3535  (eval $ac_compile) 2>conftest.er1
3536  ac_status=$?
3537  grep -v '^ *+' conftest.er1 >conftest.err
3538  rm -f conftest.er1
3539  cat conftest.err >&5
3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); } &&
3542         { ac_try='test -z "$ac_cxx_werror_flag"
3543                         || test ! -s conftest.err'
3544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545  (eval $ac_try) 2>&5
3546  ac_status=$?
3547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548  (exit $ac_status); }; } &&
3549         { ac_try='test -s conftest.$ac_objext'
3550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551  (eval $ac_try) 2>&5
3552  ac_status=$?
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); }; }; then
3555  echo "$as_me:$LINENO: result: yes" >&5
3556echo "${ECHO_T}yes" >&6
3557else
3558  echo "$as_me: failed program was:" >&5
3559sed 's/^/| /' conftest.$ac_ext >&5
3560
3561echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
3563   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3564echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3565   { (exit 1); exit 1; }; }
3566
3567fi
3568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569ac_ext=cc
3570ac_cpp='$CXXCPP $CPPFLAGS'
3571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3574
3575
3576# It seems that we need to cleanup something here for the Windows
3577case "$CXX" in
3578  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3579    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3580    mv confdefs.hh confdefs.h
3581    ;;
3582esac
3583
3584# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3585case "$CXX" in
3586  cl* | */cl* | CL* | */CL* )
3587    if test "$ac_cv_prog_cxx_g" = yes ; then
3588      ac_cv_prog_cxx_g=no
3589      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3590echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3591    fi ;;
3592esac
3593CXXFLAGS="$save_cxxflags"
3594
3595# Check if a project specific CXXFLAGS variable has been set
3596if test x$COIN_PRJCT != x; then
3597  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3598  if test x$coin_tmp = xset; then
3599    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3600  fi
3601fi
3602
3603if test x"$CXXFLAGS" = x; then
3604
3605# ToDo decide whether we want -DNDEBUG for optimization
3606  coin_add_cxxflags=
3607  coin_opt_cxxflags=
3608  coin_dbg_cxxflags=
3609  coin_warn_cxxflags=
3610
3611  if test "$GXX" = "yes"; then
3612    case "$CXX" in
3613      icpc* | */icpc*)
3614        ;;
3615      *)
3616# ToDo decide about unroll-loops
3617        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3618        coin_add_cxxflags="-pipe"
3619        coin_dbg_cxxflags="-g"
3620        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3621        case $build in
3622          *-darwin*)
3623            ;;
3624          *)
3625            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3626            ;;
3627        esac
3628
3629        case $enable_doscompile in
3630          mingw)
3631            CXXFLAGS="-mno-cygwin"
3632            cat >conftest.$ac_ext <<_ACEOF
3633/* confdefs.h.  */
3634_ACEOF
3635cat confdefs.h >>conftest.$ac_ext
3636cat >>conftest.$ac_ext <<_ACEOF
3637/* end confdefs.h.  */
3638
3639int
3640main ()
3641{
3642int i=0; i++;
3643  ;
3644  return 0;
3645}
3646_ACEOF
3647rm -f conftest.$ac_objext conftest$ac_exeext
3648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3649  (eval $ac_link) 2>conftest.er1
3650  ac_status=$?
3651  grep -v '^ *+' conftest.er1 >conftest.err
3652  rm -f conftest.er1
3653  cat conftest.err >&5
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); } &&
3656         { ac_try='test -z "$ac_cxx_werror_flag"
3657                         || test ! -s conftest.err'
3658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659  (eval $ac_try) 2>&5
3660  ac_status=$?
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); }; } &&
3663         { ac_try='test -s conftest$ac_exeext'
3664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665  (eval $ac_try) 2>&5
3666  ac_status=$?
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); }; }; then
3669  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3670else
3671  echo "$as_me: failed program was:" >&5
3672sed 's/^/| /' conftest.$ac_ext >&5
3673
3674fi
3675rm -f conftest.err conftest.$ac_objext \
3676      conftest$ac_exeext conftest.$ac_ext
3677            CXXFLAGS=
3678          ;;
3679        esac
3680    esac
3681  fi
3682
3683# Note that we do not need to cover GCC in the following tests.
3684
3685  if test -z "$coin_opt_cxxflags"; then
3686    case $build in
3687      *-cygwin* | *-mingw*)
3688        case "$CXX" in
3689          cl* | */cl* | CL* | */CL*)
3690            # The MT and MTd options are mutually exclusive
3691            coin_opt_cxxflags='-MT -O2'
3692            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3693            coin_dbg_cxxflags='-MTd'
3694            ;;
3695          icl* | */icl* | ICL* | */ICL*)
3696            # The MT and MTd options are mutually exclusive
3697            coin_opt_cxxflags='-MT -Ox'
3698            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3699            coin_dbg_cxxflags='-MTd -debug'
3700            ;;
3701        esac
3702        ;;
3703      *-linux-*)
3704        case "$CXX" in
3705          icpc* | */icpc*)
3706            coin_opt_cxxflags="-O3 -ip -mp1"
3707            coin_add_cxxflags=""
3708            coin_dbg_cxxflags="-g"
3709            # Check if -i_dynamic is necessary (for new glibc library)
3710            CXXFLAGS=
3711            cat >conftest.$ac_ext <<_ACEOF
3712/* confdefs.h.  */
3713_ACEOF
3714cat confdefs.h >>conftest.$ac_ext
3715cat >>conftest.$ac_ext <<_ACEOF
3716/* end confdefs.h.  */
3717
3718int
3719main ()
3720{
3721int i=0; i++;
3722  ;
3723  return 0;
3724}
3725_ACEOF
3726rm -f conftest.$ac_objext conftest$ac_exeext
3727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3728  (eval $ac_link) 2>conftest.er1
3729  ac_status=$?
3730  grep -v '^ *+' conftest.er1 >conftest.err
3731  rm -f conftest.er1
3732  cat conftest.err >&5
3733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734  (exit $ac_status); } &&
3735         { ac_try='test -z "$ac_cxx_werror_flag"
3736                         || test ! -s conftest.err'
3737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3738  (eval $ac_try) 2>&5
3739  ac_status=$?
3740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741  (exit $ac_status); }; } &&
3742         { ac_try='test -s conftest$ac_exeext'
3743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744  (eval $ac_try) 2>&5
3745  ac_status=$?
3746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747  (exit $ac_status); }; }; then
3748  :
3749else
3750  echo "$as_me: failed program was:" >&5
3751sed 's/^/| /' conftest.$ac_ext >&5
3752
3753coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3754fi
3755rm -f conftest.err conftest.$ac_objext \
3756      conftest$ac_exeext conftest.$ac_ext
3757            ;;
3758          pgCC* | */pgCC*)
3759            coin_opt_cxxflags="-fast"
3760            coin_add_cxxflags="-Kieee -pc 64"
3761            coin_dbg_cxxflags="-g"
3762            ;;
3763        esac
3764        ;;
3765      *-ibm-*)
3766        case "$CXX" in
3767          xlC* | */xlC* | mpxlC* | */mpxlC*)
3768            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3769            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3770            coin_dbg_cxxflags="-g"
3771            ;;
3772        esac
3773        ;;
3774      *-hp-*)
3775        case "$CXX" in
3776          aCC* | */aCC* )
3777            coin_opt_cxxflags="-O"
3778            coin_add_cxxflags="-AA"
3779            coin_dbg_cxxflags="-g"
3780            ;;
3781        esac
3782        ;;
3783      *-*-solaris*)
3784          coin_opt_cxxflags="-O4"
3785          coin_dbg_cxxflags="-g"
3786        ;;
3787    esac
3788  fi
3789
3790# Generic flag settings. If these don't work, add a case above.
3791
3792  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3793    coin_dbg_cxxflags="-g"
3794  fi
3795
3796  if test -z "$coin_opt_cxxflags"; then
3797    # Try if -O option works if nothing else is set
3798    CXXFLAGS=-O
3799    cat >conftest.$ac_ext <<_ACEOF
3800/* confdefs.h.  */
3801_ACEOF
3802cat confdefs.h >>conftest.$ac_ext
3803cat >>conftest.$ac_ext <<_ACEOF
3804/* end confdefs.h.  */
3805
3806int
3807main ()
3808{
3809int i=0; i++;
3810  ;
3811  return 0;
3812}
3813_ACEOF
3814rm -f conftest.$ac_objext conftest$ac_exeext
3815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3816  (eval $ac_link) 2>conftest.er1
3817  ac_status=$?
3818  grep -v '^ *+' conftest.er1 >conftest.err
3819  rm -f conftest.er1
3820  cat conftest.err >&5
3821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822  (exit $ac_status); } &&
3823         { ac_try='test -z "$ac_cxx_werror_flag"
3824                         || test ! -s conftest.err'
3825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826  (eval $ac_try) 2>&5
3827  ac_status=$?
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); }; } &&
3830         { ac_try='test -s conftest$ac_exeext'
3831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832  (eval $ac_try) 2>&5
3833  ac_status=$?
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); }; }; then
3836  coin_opt_cxxflags="-O"
3837else
3838  echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
3841fi
3842rm -f conftest.err conftest.$ac_objext \
3843      conftest$ac_exeext conftest.$ac_ext
3844  fi
3845
3846  # if PM doesn't want the warning messages, take them out
3847  if test x"$coin_skip_warn_cxxflags" = xyes; then
3848    coin_warn_cxxflags=
3849  fi
3850
3851# Do final setup of flags based on values determined above.
3852
3853  if test x${DBG_CXXFLAGS+set} != xset; then
3854    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3855  fi
3856  if test x${OPT_CXXFLAGS+set} != xset; then
3857    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3858  fi
3859
3860  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3861  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3862
3863  if test "$coin_debug_compile" = "true"; then
3864    CXXFLAGS="$DBG_CXXFLAGS"
3865  else
3866    CXXFLAGS="$OPT_CXXFLAGS"
3867  fi
3868
3869# Handle the case where CXXFLAGS was set externally.
3870else
3871  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3872  if test x${DBG_CXXFLAGS+set} != xset; then
3873    DBG_CXXFLAGS="$CXXFLAGS"
3874  fi
3875  if test x${OPT_CXXFLAGS+set} != xset; then
3876    OPT_CXXFLAGS="$CXXFLAGS"
3877  fi
3878fi
3879
3880# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3881
3882case "$CXXFLAGS" in
3883  *-mno-cygwin*)
3884    if test x${CPPFLAGS+set} != xset ; then
3885      CPPFLAGS="-mno-cygwin"
3886    else
3887      case "$CPPFLAGS" in
3888        *-mno-cygwin*)
3889          ;;
3890        *)
3891          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3892          ;;
3893      esac
3894    fi ;;
3895esac
3896
3897# Try if CXXFLAGS works
3898save_CXXFLAGS="$CXXFLAGS"
3899cat >conftest.$ac_ext <<_ACEOF
3900/* confdefs.h.  */
3901_ACEOF
3902cat confdefs.h >>conftest.$ac_ext
3903cat >>conftest.$ac_ext <<_ACEOF
3904/* end confdefs.h.  */
3905
3906int
3907main ()
3908{
3909int i=0; i++;
3910  ;
3911  return 0;
3912}
3913_ACEOF
3914rm -f conftest.$ac_objext conftest$ac_exeext
3915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3916  (eval $ac_link) 2>conftest.er1
3917  ac_status=$?
3918  grep -v '^ *+' conftest.er1 >conftest.err
3919  rm -f conftest.er1
3920  cat conftest.err >&5
3921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922  (exit $ac_status); } &&
3923         { ac_try='test -z "$ac_cxx_werror_flag"
3924                         || test ! -s conftest.err'
3925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926  (eval $ac_try) 2>&5
3927  ac_status=$?
3928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929  (exit $ac_status); }; } &&
3930         { ac_try='test -s conftest$ac_exeext'
3931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932  (eval $ac_try) 2>&5
3933  ac_status=$?
3934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935  (exit $ac_status); }; }; then
3936  :
3937else
3938  echo "$as_me: failed program was:" >&5
3939sed 's/^/| /' conftest.$ac_ext >&5
3940
3941CXXFLAGS=
3942fi
3943rm -f conftest.err conftest.$ac_objext \
3944      conftest$ac_exeext conftest.$ac_ext
3945if test -z "$CXXFLAGS"; then
3946  { 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
3947echo "$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;}
3948  CXXFLAGS='-O'
3949  cat >conftest.$ac_ext <<_ACEOF
3950/* confdefs.h.  */
3951_ACEOF
3952cat confdefs.h >>conftest.$ac_ext
3953cat >>conftest.$ac_ext <<_ACEOF
3954/* end confdefs.h.  */
3955
3956int
3957main ()
3958{
3959int i=0; i++;
3960  ;
3961  return 0;
3962}
3963_ACEOF
3964rm -f conftest.$ac_objext conftest$ac_exeext
3965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3966  (eval $ac_link) 2>conftest.er1
3967  ac_status=$?
3968  grep -v '^ *+' conftest.er1 >conftest.err
3969  rm -f conftest.er1
3970  cat conftest.err >&5
3971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972  (exit $ac_status); } &&
3973         { ac_try='test -z "$ac_cxx_werror_flag"
3974                         || test ! -s conftest.err'
3975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976  (eval $ac_try) 2>&5
3977  ac_status=$?
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); }; } &&
3980         { ac_try='test -s conftest$ac_exeext'
3981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982  (eval $ac_try) 2>&5
3983  ac_status=$?
3984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985  (exit $ac_status); }; }; then
3986  :
3987else
3988  echo "$as_me: failed program was:" >&5
3989sed 's/^/| /' conftest.$ac_ext >&5
3990
3991CXXFLAGS=
3992fi
3993rm -f conftest.err conftest.$ac_objext \
3994      conftest$ac_exeext conftest.$ac_ext
3995  if test -z "$CXXFLAGS"; then
3996    { 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
3997echo "$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;}
3998  fi
3999fi
4000
4001{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4002echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4003
4004
4005if test x"$MPICXX" = x; then :; else
4006  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4007echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4008  CXX="$MPICXX"
4009fi
4010
4011case "$CXX" in
4012  cl* | */cl* | CL* | */CL* )
4013    case $build in
4014  *-mingw*)
4015    if test "${LD+set}" = set; then :; else
4016      LD=link
4017    fi
4018    ;;
4019 esac
4020 case $enable_doscompile in
4021   msvc)
4022     if test "x${LD+set}" = xset; then :; else
4023       LD=link
4024     fi
4025     ;;
4026 esac
4027
4028    ;;
4029esac
4030
4031ac_ext=c
4032ac_cpp='$CPP $CPPFLAGS'
4033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036
4037
4038
4039# Initialize automake and libtool
4040{
4041
4042
4043
4044# START
4045
4046# Test if force_shared has been set
4047if test "x" = xforce_shared; then
4048  if test x$enable_shared = xno; then
4049    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4050echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4051   { (exit 1); exit 1; }; }
4052  fi
4053  enable_shared=yes;
4054else
4055  # On Cygwin and AIX, building DLLs doesn't work
4056  case $build in
4057    *-cygwin*)
4058      coin_disable_shared=yes
4059      platform=Cygwin
4060    ;;
4061    *-aix*)
4062      coin_disable_shared=yes
4063      platform=AIX
4064    ;;
4065    *-mingw*)
4066      coin_disable_shared=yes
4067      platform="Msys"
4068#      case "$CXX" in
4069#        cl*)
4070#          coin_disable_shared=yes
4071#          platform="Msys with cl"
4072#      ;;
4073#      esac
4074    ;;
4075  esac
4076fi
4077if test x"$coin_disable_shared" = xyes; then
4078  if test x"$enable_shared" = xyes; then
4079    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4080echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4081  fi
4082  enable_shared=no
4083fi
4084# By default, we only want the shared objects to be compiled
4085# Check whether --enable-static or --disable-static was given.
4086if test "${enable_static+set}" = set; then
4087  enableval="$enable_static"
4088  p=${PACKAGE-default}
4089    case $enableval in
4090    yes) enable_static=yes ;;
4091    no) enable_static=no ;;
4092    *)
4093     enable_static=no
4094      # Look at the argument we got.  We use all the common list separators.
4095      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4096      for pkg in $enableval; do
4097        IFS="$lt_save_ifs"
4098        if test "X$pkg" = "X$p"; then
4099          enable_static=yes
4100        fi
4101      done
4102      IFS="$lt_save_ifs"
4103      ;;
4104    esac
4105else
4106  enable_static=no
4107fi;
4108
4109
4110
4111
4112# Initialize automake
4113echo "$as_me:$LINENO: checking for egrep" >&5
4114echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4115if test "${ac_cv_prog_egrep+set}" = set; then
4116  echo $ECHO_N "(cached) $ECHO_C" >&6
4117else
4118  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4119    then ac_cv_prog_egrep='grep -E'
4120    else ac_cv_prog_egrep='egrep'
4121    fi
4122fi
4123echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4124echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4125 EGREP=$ac_cv_prog_egrep
4126
4127
4128am__api_version="1.9"
4129# Find a good install program.  We prefer a C program (faster),
4130# so one script is as good as another.  But avoid the broken or
4131# incompatible versions:
4132# SysV /etc/install, /usr/sbin/install
4133# SunOS /usr/etc/install
4134# IRIX /sbin/install
4135# AIX /bin/install
4136# AmigaOS /C/install, which installs bootblocks on floppy discs
4137# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4138# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4139# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4140# OS/2's system install, which has a completely different semantic
4141# ./install, which can be erroneously created by make from ./install.sh.
4142echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4143echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4144if test -z "$INSTALL"; then
4145if test "${ac_cv_path_install+set}" = set; then
4146  echo $ECHO_N "(cached) $ECHO_C" >&6
4147else
4148  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149for as_dir in $PATH
4150do
4151  IFS=$as_save_IFS
4152  test -z "$as_dir" && as_dir=.
4153  # Account for people who put trailing slashes in PATH elements.
4154case $as_dir/ in
4155  ./ | .// | /cC/* | \
4156  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4157  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4158  /usr/ucb/* ) ;;
4159  *)
4160    # OSF1 and SCO ODT 3.0 have their own names for install.
4161    # Don't use installbsd from OSF since it installs stuff as root
4162    # by default.
4163    for ac_prog in ginstall scoinst install; do
4164      for ac_exec_ext in '' $ac_executable_extensions; do
4165        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4166          if test $ac_prog = install &&
4167            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4168            # AIX install.  It has an incompatible calling convention.
4169            :
4170          elif test $ac_prog = install &&
4171            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4172            # program-specific install script used by HP pwplus--don't use.
4173            :
4174          else
4175            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4176            break 3
4177          fi
4178        fi
4179      done
4180    done
4181    ;;
4182esac
4183done
4184
4185
4186fi
4187  if test "${ac_cv_path_install+set}" = set; then
4188    INSTALL=$ac_cv_path_install
4189  else
4190    # As a last resort, use the slow shell script.  We don't cache a
4191    # path for INSTALL within a source directory, because that will
4192    # break other packages using the cache if that directory is
4193    # removed, or if the path is relative.
4194    INSTALL=$ac_install_sh
4195  fi
4196fi
4197echo "$as_me:$LINENO: result: $INSTALL" >&5
4198echo "${ECHO_T}$INSTALL" >&6
4199
4200# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4201# It thinks the first close brace ends the variable substitution.
4202test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4203
4204test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4205
4206test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4207
4208echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4209echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4210# Just in case
4211sleep 1
4212echo timestamp > conftest.file
4213# Do `set' in a subshell so we don't clobber the current shell's
4214# arguments.  Must try -L first in case configure is actually a
4215# symlink; some systems play weird games with the mod time of symlinks
4216# (eg FreeBSD returns the mod time of the symlink's containing
4217# directory).
4218if (
4219   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4220   if test "$*" = "X"; then
4221      # -L didn't work.
4222      set X `ls -t $srcdir/configure conftest.file`
4223   fi
4224   rm -f conftest.file
4225   if test "$*" != "X $srcdir/configure conftest.file" \
4226      && test "$*" != "X conftest.file $srcdir/configure"; then
4227
4228      # If neither matched, then we have a broken ls.  This can happen
4229      # if, for instance, CONFIG_SHELL is bash and it inherits a
4230      # broken ls alias from the environment.  This has actually
4231      # happened.  Such a system could not be considered "sane".
4232      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4233alias in your environment" >&5
4234echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4235alias in your environment" >&2;}
4236   { (exit 1); exit 1; }; }
4237   fi
4238
4239   test "$2" = conftest.file
4240   )
4241then
4242   # Ok.
4243   :
4244else
4245   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4246Check your system clock" >&5
4247echo "$as_me: error: newly created file is older than distributed files!
4248Check your system clock" >&2;}
4249   { (exit 1); exit 1; }; }
4250fi
4251echo "$as_me:$LINENO: result: yes" >&5
4252echo "${ECHO_T}yes" >&6
4253test "$program_prefix" != NONE &&
4254  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4255# Use a double $ so make ignores it.
4256test "$program_suffix" != NONE &&
4257  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4258# Double any \ or $.  echo might interpret backslashes.
4259# By default was `s,x,x', remove it if useless.
4260cat <<\_ACEOF >conftest.sed
4261s/[\\$]/&&/g;s/;s,x,x,$//
4262_ACEOF
4263program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4264rm conftest.sed
4265
4266# expand $ac_aux_dir to an absolute path
4267am_aux_dir=`cd $ac_aux_dir && pwd`
4268
4269test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4270# Use eval to expand $SHELL
4271if eval "$MISSING --run true"; then
4272  am_missing_run="$MISSING --run "
4273else
4274  am_missing_run=
4275  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4276echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4277fi
4278
4279if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4280  # We used to keeping the `.' as first argument, in order to
4281  # allow $(mkdir_p) to be used without argument.  As in
4282  #   $(mkdir_p) $(somedir)
4283  # where $(somedir) is conditionally defined.  However this is wrong
4284  # for two reasons:
4285  #  1. if the package is installed by a user who cannot write `.'
4286  #     make install will fail,
4287  #  2. the above comment should most certainly read
4288  #     $(mkdir_p) $(DESTDIR)$(somedir)
4289  #     so it does not work when $(somedir) is undefined and
4290  #     $(DESTDIR) is not.
4291  #  To support the latter case, we have to write
4292  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4293  #  so the `.' trick is pointless.
4294  mkdir_p='mkdir -p --'
4295else
4296  # On NextStep and OpenStep, the `mkdir' command does not
4297  # recognize any option.  It will interpret all options as
4298  # directories to create, and then abort because `.' already
4299  # exists.
4300  for d in ./-p ./--version;
4301  do
4302    test -d $d && rmdir $d
4303  done
4304  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4305  if test -f "$ac_aux_dir/mkinstalldirs"; then
4306    mkdir_p='$(mkinstalldirs)'
4307  else
4308    mkdir_p='$(install_sh) -d'
4309  fi
4310fi
4311
4312for ac_prog in gawk mawk nawk awk
4313do
4314  # Extract the first word of "$ac_prog", so it can be a program name with args.
4315set dummy $ac_prog; ac_word=$2
4316echo "$as_me:$LINENO: checking for $ac_word" >&5
4317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318if test "${ac_cv_prog_AWK+set}" = set; then
4319  echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321  if test -n "$AWK"; then
4322  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4323else
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327  IFS=$as_save_IFS
4328  test -z "$as_dir" && as_dir=.
4329  for ac_exec_ext in '' $ac_executable_extensions; do
4330  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331    ac_cv_prog_AWK="$ac_prog"
4332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333    break 2
4334  fi
4335done
4336done
4337
4338fi
4339fi
4340AWK=$ac_cv_prog_AWK
4341if test -n "$AWK"; then
4342  echo "$as_me:$LINENO: result: $AWK" >&5
4343echo "${ECHO_T}$AWK" >&6
4344else
4345  echo "$as_me:$LINENO: result: no" >&5
4346echo "${ECHO_T}no" >&6
4347fi
4348
4349  test -n "$AWK" && break
4350done
4351
4352echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4353echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4354set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4355if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4356  echo $ECHO_N "(cached) $ECHO_C" >&6
4357else
4358  cat >conftest.make <<\_ACEOF
4359all:
4360        @echo 'ac_maketemp="$(MAKE)"'
4361_ACEOF
4362# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4363eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4364if test -n "$ac_maketemp"; then
4365  eval ac_cv_prog_make_${ac_make}_set=yes
4366else
4367  eval ac_cv_prog_make_${ac_make}_set=no
4368fi
4369rm -f conftest.make
4370fi
4371if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4372  echo "$as_me:$LINENO: result: yes" >&5
4373echo "${ECHO_T}yes" >&6
4374  SET_MAKE=
4375else
4376  echo "$as_me:$LINENO: result: no" >&5
4377echo "${ECHO_T}no" >&6
4378  SET_MAKE="MAKE=${MAKE-make}"
4379fi
4380
4381rm -rf .tst 2>/dev/null
4382mkdir .tst 2>/dev/null
4383if test -d .tst; then
4384  am__leading_dot=.
4385else
4386  am__leading_dot=_
4387fi
4388rmdir .tst 2>/dev/null
4389
4390DEPDIR="${am__leading_dot}deps"
4391
4392          ac_config_commands="$ac_config_commands depfiles"
4393
4394
4395am_make=${MAKE-make}
4396cat > confinc << 'END'
4397am__doit:
4398        @echo done
4399.PHONY: am__doit
4400END
4401# If we don't find an include directive, just comment out the code.
4402echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4403echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4404am__include="#"
4405am__quote=
4406_am_result=none
4407# First try GNU make style include.
4408echo "include confinc" > confmf
4409# We grep out `Entering directory' and `Leaving directory'
4410# messages which can occur if `w' ends up in MAKEFLAGS.
4411# In particular we don't look at `^make:' because GNU make might
4412# be invoked under some other name (usually "gmake"), in which
4413# case it prints its new name instead of `make'.
4414if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4415   am__include=include
4416   am__quote=
4417   _am_result=GNU
4418fi
4419# Now try BSD make style include.
4420if test "$am__include" = "#"; then
4421   echo '.include "confinc"' > confmf
4422   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4423      am__include=.include
4424      am__quote="\""
4425      _am_result=BSD
4426   fi
4427fi
4428
4429
4430echo "$as_me:$LINENO: result: $_am_result" >&5
4431echo "${ECHO_T}$_am_result" >&6
4432rm -f confinc confmf
4433
4434# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4435if test "${enable_dependency_tracking+set}" = set; then
4436  enableval="$enable_dependency_tracking"
4437
4438fi;
4439if test "x$enable_dependency_tracking" != xno; then
4440  am_depcomp="$ac_aux_dir/depcomp"
4441  AMDEPBACKSLASH='\'
4442fi
4443
4444
4445if test "x$enable_dependency_tracking" != xno; then
4446  AMDEP_TRUE=
4447  AMDEP_FALSE='#'
4448else
4449  AMDEP_TRUE='#'
4450  AMDEP_FALSE=
4451fi
4452
4453
4454
4455
4456
4457# AC_MSG_NOTICE([Beginning automake initialisation.])
4458# Stuff for automake
4459# test to see if srcdir already configured
4460if test "`cd $srcdir && pwd`" != "`pwd`" &&
4461   test -f $srcdir/config.status; then
4462  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4463echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4464   { (exit 1); exit 1; }; }
4465fi
4466
4467# test whether we have cygpath
4468if test -z "$CYGPATH_W"; then
4469  if (cygpath --version) >/dev/null 2>/dev/null; then
4470    CYGPATH_W='cygpath -w'
4471  else
4472    CYGPATH_W=echo
4473  fi
4474fi
4475
4476
4477# Define the identity of the package.
4478 PACKAGE='clp'
4479 VERSION='trunk'
4480
4481
4482cat >>confdefs.h <<_ACEOF
4483#define PACKAGE "$PACKAGE"
4484_ACEOF
4485
4486
4487cat >>confdefs.h <<_ACEOF
4488#define VERSION "$VERSION"
4489_ACEOF
4490
4491# Some tools Automake needs.
4492
4493ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4494
4495
4496AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4497
4498
4499AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4500
4501
4502AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4503
4504
4505MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4506
4507install_sh=${install_sh-"$am_aux_dir/install-sh"}
4508
4509# Installed binaries are usually stripped using `strip' when the user
4510# run `make install-strip'.  However `strip' might not be the right
4511# tool to use in cross-compilation environments, therefore Automake
4512# will honor the `STRIP' environment variable to overrule this program.
4513if test "$cross_compiling" != no; then
4514  if test -n "$ac_tool_prefix"; then
4515  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4516set dummy ${ac_tool_prefix}strip; ac_word=$2
4517echo "$as_me:$LINENO: checking for $ac_word" >&5
4518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4519if test "${ac_cv_prog_STRIP+set}" = set; then
4520  echo $ECHO_N "(cached) $ECHO_C" >&6
4521else
4522  if test -n "$STRIP"; then
4523  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4524else
4525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH
4527do
4528  IFS=$as_save_IFS
4529  test -z "$as_dir" && as_dir=.
4530  for ac_exec_ext in '' $ac_executable_extensions; do
4531  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4533    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534    break 2
4535  fi
4536done
4537done
4538
4539fi
4540fi
4541STRIP=$ac_cv_prog_STRIP
4542if test -n "$STRIP"; then
4543  echo "$as_me:$LINENO: result: $STRIP" >&5
4544echo "${ECHO_T}$STRIP" >&6
4545else
4546  echo "$as_me:$LINENO: result: no" >&5
4547echo "${ECHO_T}no" >&6
4548fi
4549
4550fi
4551if test -z "$ac_cv_prog_STRIP"; then
4552  ac_ct_STRIP=$STRIP
4553  # Extract the first word of "strip", so it can be a program name with args.
4554set dummy strip; ac_word=$2
4555echo "$as_me:$LINENO: checking for $ac_word" >&5
4556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4558  echo $ECHO_N "(cached) $ECHO_C" >&6
4559else
4560  if test -n "$ac_ct_STRIP"; then
4561  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566  IFS=$as_save_IFS
4567  test -z "$as_dir" && as_dir=.
4568  for ac_exec_ext in '' $ac_executable_extensions; do
4569  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570    ac_cv_prog_ac_ct_STRIP="strip"
4571    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572    break 2
4573  fi
4574done
4575done
4576
4577  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4578fi
4579fi
4580ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4581if test -n "$ac_ct_STRIP"; then
4582  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4583echo "${ECHO_T}$ac_ct_STRIP" >&6
4584else
4585  echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
4587fi
4588
4589  STRIP=$ac_ct_STRIP
4590else
4591  STRIP="$ac_cv_prog_STRIP"
4592fi
4593
4594fi
4595INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4596
4597# We need awk for the "check" target.  The system "awk" is bad on
4598# some platforms.
4599# Always define AMTAR for backward compatibility.
4600
4601AMTAR=${AMTAR-"${am_missing_run}tar"}
4602
4603am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4604
4605
4606
4607
4608depcc="$CC"   am_compiler_list=
4609
4610echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4611echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4612if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4613  echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
4615  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4616  # We make a subdir and do the tests there.  Otherwise we can end up
4617  # making bogus files that we don't know about and never remove.  For
4618  # instance it was reported that on HP-UX the gcc test will end up
4619  # making a dummy file named `D' -- because `-MD' means `put the output
4620  # in D'.
4621  mkdir conftest.dir
4622  # Copy depcomp to subdir because otherwise we won't find it if we're
4623  # using a relative directory.
4624  cp "$am_depcomp" conftest.dir
4625  cd conftest.dir
4626  # We will build objects and dependencies in a subdirectory because
4627  # it helps to detect inapplicable dependency modes.  For instance
4628  # both Tru64's cc and ICC support -MD to output dependencies as a
4629  # side effect of compilation, but ICC will put the dependencies in
4630  # the current directory while Tru64 will put them in the object
4631  # directory.
4632  mkdir sub
4633
4634  am_cv_CC_dependencies_compiler_type=none
4635  if test "$am_compiler_list" = ""; then
4636     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4637  fi
4638  for depmode in $am_compiler_list; do
4639    # Setup a source with many dependencies, because some compilers
4640    # like to wrap large dependency lists on column 80 (with \), and
4641    # we should not choose a depcomp mode which is confused by this.
4642    #
4643    # We need to recreate these files for each test, as the compiler may
4644    # overwrite some of them when testing with obscure command lines.
4645    # This happens at least with the AIX C compiler.
4646    : > sub/conftest.c
4647    for i in 1 2 3 4 5 6; do
4648      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4649      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4650      # Solaris 8's {/usr,}/bin/sh.
4651      touch sub/conftst$i.h
4652    done
4653    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4654
4655    case $depmode in
4656    nosideeffect)
4657      # after this tag, mechanisms are not by side-effect, so they'll
4658      # only be used when explicitly requested
4659      if test "x$enable_dependency_tracking" = xyes; then
4660        continue
4661      else
4662        break
4663      fi
4664      ;;
4665    none) break ;;
4666    esac
4667    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4668    # mode.  It turns out that the SunPro C++ compiler does not properly
4669    # handle `-M -o', and we need to detect this.
4670    if depmode=$depmode \
4671       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4672       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4673       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4674         >/dev/null 2>conftest.err &&
4675       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4676       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4677       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4678      # icc doesn't choke on unknown options, it will just issue warnings
4679      # or remarks (even with -Werror).  So we grep stderr for any message
4680      # that says an option was ignored or not supported.
4681      # When given -MP, icc 7.0 and 7.1 complain thusly:
4682      #   icc: Command line warning: ignoring option '-M'; no argument required
4683      # The diagnosis changed in icc 8.0:
4684      #   icc: Command line remark: option '-MP' not supported
4685      if (grep 'ignoring option' conftest.err ||
4686          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4687        am_cv_CC_dependencies_compiler_type=$depmode
4688        break
4689      fi
4690    fi
4691  done
4692
4693  cd ..
4694  rm -rf conftest.dir
4695else
4696  am_cv_CC_dependencies_compiler_type=none
4697fi
4698
4699fi
4700echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4701echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4702CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4703
4704
4705
4706if
4707  test "x$enable_dependency_tracking" != xno \
4708  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4709  am__fastdepCC_TRUE=
4710  am__fastdepCC_FALSE='#'
4711else
4712  am__fastdepCC_TRUE='#'
4713  am__fastdepCC_FALSE=
4714fi
4715
4716
4717depcc="$CXX"  am_compiler_list=
4718
4719echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4720echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4721if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4722  echo $ECHO_N "(cached) $ECHO_C" >&6
4723else
4724  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4725  # We make a subdir and do the tests there.  Otherwise we can end up
4726  # making bogus files that we don't know about and never remove.  For
4727  # instance it was reported that on HP-UX the gcc test will end up
4728  # making a dummy file named `D' -- because `-MD' means `put the output
4729  # in D'.
4730  mkdir conftest.dir
4731  # Copy depcomp to subdir because otherwise we won't find it if we're
4732  # using a relative directory.
4733  cp "$am_depcomp" conftest.dir
4734  cd conftest.dir
4735  # We will build objects and dependencies in a subdirectory because
4736  # it helps to detect inapplicable dependency modes.  For instance
4737  # both Tru64's cc and ICC support -MD to output dependencies as a
4738  # side effect of compilation, but ICC will put the dependencies in
4739  # the current directory while Tru64 will put them in the object
4740  # directory.
4741  mkdir sub
4742
4743  am_cv_CXX_dependencies_compiler_type=none
4744  if test "$am_compiler_list" = ""; then
4745     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4746  fi
4747  for depmode in $am_compiler_list; do
4748    # Setup a source with many dependencies, because some compilers
4749    # like to wrap large dependency lists on column 80 (with \), and
4750    # we should not choose a depcomp mode which is confused by this.
4751    #
4752    # We need to recreate these files for each test, as the compiler may
4753    # overwrite some of them when testing with obscure command lines.
4754    # This happens at least with the AIX C compiler.
4755    : > sub/conftest.c
4756    for i in 1 2 3 4 5 6; do
4757      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4758      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4759      # Solaris 8's {/usr,}/bin/sh.
4760      touch sub/conftst$i.h
4761    done
4762    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4763
4764    case $depmode in
4765    nosideeffect)
4766      # after this tag, mechanisms are not by side-effect, so they'll
4767      # only be used when explicitly requested
4768      if test "x$enable_dependency_tracking" = xyes; then
4769        continue
4770      else
4771        break
4772      fi
4773      ;;
4774    none) break ;;
4775    esac
4776    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4777    # mode.  It turns out that the SunPro C++ compiler does not properly
4778    # handle `-M -o', and we need to detect this.
4779    if depmode=$depmode \
4780       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4781       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4782       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4783         >/dev/null 2>conftest.err &&
4784       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4785       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4786       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4787      # icc doesn't choke on unknown options, it will just issue warnings
4788      # or remarks (even with -Werror).  So we grep stderr for any message
4789      # that says an option was ignored or not supported.
4790      # When given -MP, icc 7.0 and 7.1 complain thusly:
4791      #   icc: Command line warning: ignoring option '-M'; no argument required
4792      # The diagnosis changed in icc 8.0:
4793      #   icc: Command line remark: option '-MP' not supported
4794      if (grep 'ignoring option' conftest.err ||
4795          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4796        am_cv_CXX_dependencies_compiler_type=$depmode
4797        break
4798      fi
4799    fi
4800  done
4801
4802  cd ..
4803  rm -rf conftest.dir
4804else
4805  am_cv_CXX_dependencies_compiler_type=none
4806fi
4807
4808fi
4809echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4810echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4811CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4812
4813
4814
4815if
4816  test "x$enable_dependency_tracking" != xno \
4817  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4818  am__fastdepCXX_TRUE=
4819  am__fastdepCXX_FALSE='#'
4820else
4821  am__fastdepCXX_TRUE='#'
4822  am__fastdepCXX_FALSE=
4823fi
4824
4825
4826
4827echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4828echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4829    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4830if test "${enable_maintainer_mode+set}" = set; then
4831  enableval="$enable_maintainer_mode"
4832  USE_MAINTAINER_MODE=$enableval
4833else
4834  USE_MAINTAINER_MODE=no
4835fi;
4836  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4837echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4838
4839
4840if test $USE_MAINTAINER_MODE = yes; then
4841  MAINTAINER_MODE_TRUE=
4842  MAINTAINER_MODE_FALSE='#'
4843else
4844  MAINTAINER_MODE_TRUE='#'
4845  MAINTAINER_MODE_FALSE=
4846fi
4847
4848  MAINT=$MAINTAINER_MODE_TRUE
4849
4850
4851
4852coin_have_externals=no
4853if test "$enable_maintainer_mode" = yes; then
4854
4855  # If maintainer mode is chosen, we make sure that the correct versions
4856  # of the tools are used, and that we know where libtool.m4 is (to
4857  # recreate acinclude.m4)
4858
4859
4860  LIBTOOLM4=
4861  # Normally, $HOME
4862  AUTOTOOLS_DFLT=$HOME
4863
4864  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4865echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4866if test "${ac_cv_use_correct_autotools+set}" = set; then
4867  echo $ECHO_N "(cached) $ECHO_C" >&6
4868else
4869  ac_cv_use_correct_autotools=check
4870fi
4871echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4872echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4873
4874  if test $ac_cv_use_correct_autotools = check; then
4875    ac_cv_use_correct_autotools=yes
4876    # Check if we have autoconf
4877    # Extract the first word of "autoconf", so it can be a program name with args.
4878set dummy autoconf; 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_have_autoconf+set}" = set; then
4882  echo $ECHO_N "(cached) $ECHO_C" >&6
4883else
4884  if test -n "$have_autoconf"; then
4885  ac_cv_prog_have_autoconf="$have_autoconf" # 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_have_autoconf="yes"
4895    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896    break 2
4897  fi
4898done
4899done
4900
4901  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4902fi
4903fi
4904have_autoconf=$ac_cv_prog_have_autoconf
4905if test -n "$have_autoconf"; then
4906  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4907echo "${ECHO_T}$have_autoconf" >&6
4908else
4909  echo "$as_me:$LINENO: result: no" >&5
4910echo "${ECHO_T}no" >&6
4911fi
4912
4913    if test $have_autoconf = no; then
4914      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4915echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4916   { (exit 1); exit 1; }; }
4917    fi
4918
4919    # Check whether autoconf is the correct version
4920    correct_version='2.59'
4921    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4922    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4923echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4924    autoconf --version > confauto.out 2>&1
4925    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4926      echo "$as_me:$LINENO: result: yes" >&5
4927echo "${ECHO_T}yes" >&6
4928    else
4929      rm -f confauto.out
4930      echo "$as_me:$LINENO: result: no" >&5
4931echo "${ECHO_T}no" >&6
4932      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4933echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4934   { (exit 1); exit 1; }; }
4935    fi
4936    rm -f confauto.out
4937
4938    # Check if the executable autoconf is picked up from the correct location
4939    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4940echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4941    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4942    autoconf_dir=`cd $autoconf_dir; pwd`
4943    if test x$AUTOTOOLS_DIR = x; then
4944      want_dir=$AUTOTOOLS_DFLT/bin
4945    else
4946      want_dir=$AUTOTOOLS_DIR/bin
4947    fi
4948    if test $autoconf_dir = `cd $want_dir; pwd`; then
4949      echo "$as_me:$LINENO: result: yes" >&5
4950echo "${ECHO_T}yes" >&6
4951    else
4952      rm -f confauto.out
4953      echo "$as_me:$LINENO: result: no" >&5
4954echo "${ECHO_T}no" >&6
4955      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4956echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4957   { (exit 1); exit 1; }; }
4958    fi
4959
4960    # Check if we have automake
4961    # Extract the first word of "automake", so it can be a program name with args.
4962set dummy automake; ac_word=$2
4963echo "$as_me:$LINENO: checking for $ac_word" >&5
4964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965if test "${ac_cv_prog_have_automake+set}" = set; then
4966  echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968  if test -n "$have_automake"; then
4969  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4970else
4971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972for as_dir in $PATH
4973do
4974  IFS=$as_save_IFS
4975  test -z "$as_dir" && as_dir=.
4976  for ac_exec_ext in '' $ac_executable_extensions; do
4977  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978    ac_cv_prog_have_automake="yes"
4979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980    break 2
4981  fi
4982done
4983done
4984
4985  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4986fi
4987fi
4988have_automake=$ac_cv_prog_have_automake
4989if test -n "$have_automake"; then
4990  echo "$as_me:$LINENO: result: $have_automake" >&5
4991echo "${ECHO_T}$have_automake" >&6
4992else
4993  echo "$as_me:$LINENO: result: no" >&5
4994echo "${ECHO_T}no" >&6
4995fi
4996
4997    if test $have_automake = no; then
4998      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4999echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5000   { (exit 1); exit 1; }; }
5001    fi
5002
5003    # Check whether automake is the correct version
5004    correct_version='1.9.6'
5005    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5006    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5007echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5008    automake --version > confauto.out 2>&1
5009    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5010      echo "$as_me:$LINENO: result: yes" >&5
5011echo "${ECHO_T}yes" >&6
5012    else
5013      rm -f confauto.out
5014      echo "$as_me:$LINENO: result: no" >&5
5015echo "${ECHO_T}no" >&6
5016      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5017echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5018   { (exit 1); exit 1; }; }
5019    fi
5020    rm -f confauto.out
5021
5022    # Check if the executable automake is picked up from the correct location
5023    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5024echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5025    automake_dir=`which automake | sed -e 's=/automake=='`
5026    automake_dir=`cd $automake_dir; pwd`
5027    if test x$AUTOTOOLS_DIR = x; then
5028      want_dir=$AUTOTOOLS_DFLT/bin
5029    else
5030      want_dir=$AUTOTOOLS_DIR/bin
5031    fi
5032    if test $automake_dir = `cd $want_dir; pwd`; then
5033      echo "$as_me:$LINENO: result: yes" >&5
5034echo "${ECHO_T}yes" >&6
5035    else
5036      rm -f confauto.out
5037      echo "$as_me:$LINENO: result: no" >&5
5038echo "${ECHO_T}no" >&6
5039      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5040echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5041   { (exit 1); exit 1; }; }
5042    fi
5043
5044    # Check if this is the correct version of libtool (with escaped dots)
5045    if test x$AUTOTOOLS_DIR = x; then
5046      want_dir=$AUTOTOOLS_DFLT/share
5047    else
5048      want_dir=$AUTOTOOLS_DIR/share
5049    fi
5050    correct_version='1.5.22'
5051    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5052    if test -r $want_dir/libtool/ltmain.sh; then
5053  have_ltmain=yes
5054  :
5055else
5056  have_ltmain=no
5057  :
5058fi
5059
5060    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5061echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5062    if test $have_ltmain = yes; then
5063    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5064        echo "$as_me:$LINENO: result: yes" >&5
5065echo "${ECHO_T}yes" >&6
5066      else
5067        echo "$as_me:$LINENO: result: no" >&5
5068echo "${ECHO_T}no" >&6
5069        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5070echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5071   { (exit 1); exit 1; }; }
5072      fi
5073    else
5074      echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
5076      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5077echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5078   { (exit 1); exit 1; }; }
5079    fi
5080  fi
5081
5082  # Check if we can find the libtool file
5083  if test x$AUTOTOOLS_DIR = x; then
5084    want_dir=$AUTOTOOLS_DFLT/share
5085  else
5086    want_dir=$AUTOTOOLS_DIR/share
5087  fi
5088  if test -r $want_dir/aclocal/libtool.m4; then
5089  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5090  :
5091else
5092  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5093echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5094   { (exit 1); exit 1; }; }
5095  :
5096fi
5097
5098
5099  # Check if we have an Externals file
5100  if test -r $srcdir/Externals; then
5101    coin_have_externals=yes
5102  fi
5103  # Check if subversion is installed and understands https
5104  # Extract the first word of "svn", so it can be a program name with args.
5105set dummy svn; ac_word=$2
5106echo "$as_me:$LINENO: checking for $ac_word" >&5
5107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5108if test "${ac_cv_prog_have_svn+set}" = set; then
5109  echo $ECHO_N "(cached) $ECHO_C" >&6
5110else
5111  if test -n "$have_svn"; then
5112  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5113else
5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115for as_dir in $PATH
5116do
5117  IFS=$as_save_IFS
5118  test -z "$as_dir" && as_dir=.
5119  for ac_exec_ext in '' $ac_executable_extensions; do
5120  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5121    ac_cv_prog_have_svn="yes"
5122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123    break 2
5124  fi
5125done
5126done
5127
5128  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5129fi
5130fi
5131have_svn=$ac_cv_prog_have_svn
5132if test -n "$have_svn"; then
5133  echo "$as_me:$LINENO: result: $have_svn" >&5
5134echo "${ECHO_T}$have_svn" >&6
5135else
5136  echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6
5138fi
5139
5140  if test x$have_svn = xyes; then
5141    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5142echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5143if test "${ac_cv_svn_understands_https+set}" = set; then
5144  echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146  svn --version > confauto.out 2>&1
5147                    if $EGREP https confauto.out >/dev/null 2>&1; then
5148                      ac_cv_svn_understands_https=yes
5149                    else
5150                      ac_cv_svn_understands_https=no
5151                      have_svn=no
5152                      ac_cv_prog_have_svn=no
5153                    fi
5154                    rm -f confauto.out
5155fi
5156echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5157echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5158  fi
5159
5160  # Find the location of the BuildTools directory
5161  BUILDTOOLSDIR=
5162  if test -r $srcdir/BuildTools/coin.m4; then
5163    BUILDTOOLSDIR=$srcdir/BuildTools
5164  else
5165    if test -r $srcdir/../BuildTools/coin.m4; then
5166      BUILDTOOLSDIR=$srcdir/../BuildTools
5167    else
5168      if test -r $srcdir/../../BuildTools/coin.m4; then
5169        BUILDTOOLSDIR=$srcdir/../../BuildTools
5170      else
5171        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5172echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5173   { (exit 1); exit 1; }; }
5174      fi
5175    fi
5176  fi
5177
5178
5179  # The following variable is set to the name of the directory where
5180  # the autotool scripts are located
5181
5182  AUX_DIR=$ac_aux_dir
5183fi
5184
5185# helpful variable for the base directory of this package
5186abs_source_dir=`cd $srcdir; pwd`
5187
5188
5189# Stuff for example Makefiles
5190if test x$prefix = xNONE; then
5191  full_prefix=$ac_default_prefix
5192else
5193  full_prefix=$prefix
5194fi
5195full_prefix=`cd $full_prefix ; pwd`
5196
5197abs_lib_dir=$full_prefix/lib
5198
5199abs_include_dir=$full_prefix/include
5200
5201abs_bin_dir=$full_prefix/bin
5202
5203
5204
5205if test $coin_have_externals = yes && test x$have_svn = xyes; then
5206  HAVE_EXTERNALS_TRUE=
5207  HAVE_EXTERNALS_FALSE='#'
5208else
5209  HAVE_EXTERNALS_TRUE='#'
5210  HAVE_EXTERNALS_FALSE=
5211fi
5212
5213
5214# AC_MSG_NOTICE([End automake initialisation.])
5215
5216
5217
5218LIBTOOL=
5219if test -r ../libtool; then
5220  coin_config_dir=..
5221  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5222fi
5223if test "x$LIBTOOL" = x; then
5224  if test -r ../../libtool; then
5225    coin_config_dir=../..
5226    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5227  fi
5228fi
5229
5230if test "x$LIBTOOL" = x; then
5231# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5232  # Stuff for libtool
5233  # Check whether --enable-shared or --disable-shared was given.
5234if test "${enable_shared+set}" = set; then
5235  enableval="$enable_shared"
5236  p=${PACKAGE-default}
5237    case $enableval in
5238    yes) enable_shared=yes ;;
5239    no) enable_shared=no ;;
5240    *)
5241      enable_shared=no
5242      # Look at the argument we got.  We use all the common list separators.
5243      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5244      for pkg in $enableval; do
5245        IFS="$lt_save_ifs"
5246        if test "X$pkg" = "X$p"; then
5247          enable_shared=yes
5248        fi
5249      done
5250      IFS="$lt_save_ifs"
5251      ;;
5252    esac
5253else
5254  enable_shared=yes
5255fi;
5256
5257# Check whether --enable-fast-install or --disable-fast-install was given.
5258if test "${enable_fast_install+set}" = set; then
5259  enableval="$enable_fast_install"
5260  p=${PACKAGE-default}
5261    case $enableval in
5262    yes) enable_fast_install=yes ;;
5263    no) enable_fast_install=no ;;
5264    *)
5265      enable_fast_install=no
5266      # Look at the argument we got.  We use all the common list separators.
5267      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5268      for pkg in $enableval; do
5269        IFS="$lt_save_ifs"
5270        if test "X$pkg" = "X$p"; then
5271          enable_fast_install=yes
5272        fi
5273      done
5274      IFS="$lt_save_ifs"
5275      ;;
5276    esac
5277else
5278  enable_fast_install=yes
5279fi;
5280
5281echo "$as_me:$LINENO: checking host system type" >&5
5282echo $ECHO_N "checking host system type... $ECHO_C" >&6
5283if test "${ac_cv_host+set}" = set; then
5284  echo $ECHO_N "(cached) $ECHO_C" >&6
5285else
5286  ac_cv_host_alias=$host_alias
5287test -z "$ac_cv_host_alias" &&
5288  ac_cv_host_alias=$ac_cv_build_alias
5289ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5290  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5291echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5292   { (exit 1); exit 1; }; }
5293
5294fi
5295echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5296echo "${ECHO_T}$ac_cv_host" >&6
5297host=$ac_cv_host
5298host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5299host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5300host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5301
5302
5303echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5304echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5305if test "${lt_cv_path_SED+set}" = set; then
5306  echo $ECHO_N "(cached) $ECHO_C" >&6
5307else
5308  # Loop through the user's path and test for sed and gsed.
5309# Then use that list of sed's as ones to test for truncation.
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313  IFS=$as_save_IFS
5314  test -z "$as_dir" && as_dir=.
5315  for lt_ac_prog in sed gsed; do
5316    for ac_exec_ext in '' $ac_executable_extensions; do
5317      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5318        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5319      fi
5320    done
5321  done
5322done
5323lt_ac_max=0
5324lt_ac_count=0
5325# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5326# along with /bin/sed that truncates output.
5327for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5328  test ! -f $lt_ac_sed && continue
5329  cat /dev/null > conftest.in
5330  lt_ac_count=0
5331  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5332  # Check for GNU sed and select it if it is found.
5333  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5334    lt_cv_path_SED=$lt_ac_sed
5335    break
5336  fi
5337  while true; do
5338    cat conftest.in conftest.in >conftest.tmp
5339    mv conftest.tmp conftest.in
5340    cp conftest.in conftest.nl
5341    echo >>conftest.nl
5342    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5343    cmp -s conftest.out conftest.nl || break
5344    # 10000 chars as input seems more than enough
5345    test $lt_ac_count -gt 10 && break
5346    lt_ac_count=`expr $lt_ac_count + 1`
5347    if test $lt_ac_count -gt $lt_ac_max; then
5348      lt_ac_max=$lt_ac_count
5349      lt_cv_path_SED=$lt_ac_sed
5350    fi
5351  done
5352done
5353
5354fi
5355
5356SED=$lt_cv_path_SED
5357echo "$as_me:$LINENO: result: $SED" >&5
5358echo "${ECHO_T}$SED" >&6
5359
5360
5361# Check whether --with-gnu-ld or --without-gnu-ld was given.
5362if test "${with_gnu_ld+set}" = set; then
5363  withval="$with_gnu_ld"
5364  test "$withval" = no || with_gnu_ld=yes
5365else
5366  with_gnu_ld=no
5367fi;
5368ac_prog=ld
5369if test "$GCC" = yes; then
5370  # Check if gcc -print-prog-name=ld gives a path.
5371  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5372echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5373  case $host in
5374  *-*-mingw*)
5375    # gcc leaves a trailing carriage return which upsets mingw
5376    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5377  *)
5378    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5379  esac
5380  case $ac_prog in
5381    # Accept absolute paths.
5382    [\\/]* | ?:[\\/]*)
5383      re_direlt='/[^/][^/]*/\.\./'
5384      # Canonicalize the pathname of ld
5385      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5386      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5387        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5388      done
5389      test -z "$LD" && LD="$ac_prog"
5390      ;;
5391  "")
5392    # If it fails, then pretend we aren't using GCC.
5393    ac_prog=ld
5394    ;;
5395  *)
5396    # If it is relative, then search for the first ld in PATH.
5397    with_gnu_ld=unknown
5398    ;;
5399  esac
5400elif test "$with_gnu_ld" = yes; then
5401  echo "$as_me:$LINENO: checking for GNU ld" >&5
5402echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5403else
5404  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5405echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5406fi
5407if test "${lt_cv_path_LD+set}" = set; then
5408  echo $ECHO_N "(cached) $ECHO_C" >&6
5409else
5410  if test -z "$LD"; then
5411  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5412  for ac_dir in $PATH; do
5413    IFS="$lt_save_ifs"
5414    test -z "$ac_dir" && ac_dir=.
5415    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5416      lt_cv_path_LD="$ac_dir/$ac_prog"
5417      # Check to see if the program is GNU ld.  I'd rather use --version,
5418      # but apparently some variants of GNU ld only accept -v.
5419      # Break only if it was the GNU/non-GNU ld that we prefer.
5420      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5421      *GNU* | *'with BFD'*)
5422        test "$with_gnu_ld" != no && break
5423        ;;
5424      *)
5425        test "$with_gnu_ld" != yes && break
5426        ;;
5427      esac
5428    fi
5429  done
5430  IFS="$lt_save_ifs"
5431else
5432  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5433fi
5434fi
5435
5436LD="$lt_cv_path_LD"
5437if test -n "$LD"; then
5438  echo "$as_me:$LINENO: result: $LD" >&5
5439echo "${ECHO_T}$LD" >&6
5440else
5441  echo "$as_me:$LINENO: result: no" >&5
5442echo "${ECHO_T}no" >&6
5443fi
5444test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5445echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5446   { (exit 1); exit 1; }; }
5447echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5448echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5449if test "${lt_cv_prog_gnu_ld+set}" = set; then
5450  echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5453case `$LD -v 2>&1 </dev/null` in
5454*GNU* | *'with BFD'*)
5455  lt_cv_prog_gnu_ld=yes
5456  ;;
5457*)
5458  lt_cv_prog_gnu_ld=no
5459  ;;
5460esac
5461fi
5462echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5463echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5464with_gnu_ld=$lt_cv_prog_gnu_ld
5465
5466
5467echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5468echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5469if test "${lt_cv_ld_reload_flag+set}" = set; then
5470  echo $ECHO_N "(cached) $ECHO_C" >&6
5471else
5472  lt_cv_ld_reload_flag='-r'
5473fi
5474echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5475echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5476reload_flag=$lt_cv_ld_reload_flag
5477case $reload_flag in
5478"" | " "*) ;;
5479*) reload_flag=" $reload_flag" ;;
5480esac
5481reload_cmds='$LD$reload_flag -o $output$reload_objs'
5482case $host_os in
5483  darwin*)
5484    if test "$GCC" = yes; then
5485      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5486    else
5487      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5488    fi
5489    ;;
5490esac
5491
5492echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5493echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5494if test "${lt_cv_path_NM+set}" = set; then
5495  echo $ECHO_N "(cached) $ECHO_C" >&6
5496else
5497  if test -n "$NM"; then
5498  # Let the user override the test.
5499  lt_cv_path_NM="$NM"
5500else
5501  lt_nm_to_check="${ac_tool_prefix}nm"
5502  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5503    lt_nm_to_check="$lt_nm_to_check nm"
5504  fi
5505  for lt_tmp_nm in $lt_nm_to_check; do
5506    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5507    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5508      IFS="$lt_save_ifs"
5509      test -z "$ac_dir" && ac_dir=.
5510      tmp_nm="$ac_dir/$lt_tmp_nm"
5511      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5512        # Check to see if the nm accepts a BSD-compat flag.
5513        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5514        #   nm: unknown option "B" ignored
5515        # Tru64's nm complains that /dev/null is an invalid object file
5516        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5517        */dev/null* | *'Invalid file or object type'*)
5518          lt_cv_path_NM="$tmp_nm -B"
5519          break
5520          ;;
5521        *)
5522          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5523          */dev/null*)
5524            lt_cv_path_NM="$tmp_nm -p"
5525            break
5526            ;;
5527          *)
5528            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5529            continue # so that we can try to find one that supports BSD flags
5530            ;;
5531          esac
5532          ;;
5533        esac
5534      fi
5535    done
5536    IFS="$lt_save_ifs"
5537  done
5538  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5539fi
5540fi
5541echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5542echo "${ECHO_T}$lt_cv_path_NM" >&6
5543NM="$lt_cv_path_NM"
5544
5545echo "$as_me:$LINENO: checking whether ln -s works" >&5
5546echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5547LN_S=$as_ln_s
5548if test "$LN_S" = "ln -s"; then
5549  echo "$as_me:$LINENO: result: yes" >&5
5550echo "${ECHO_T}yes" >&6
5551else
5552  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5553echo "${ECHO_T}no, using $LN_S" >&6
5554fi
5555
5556echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5557echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5558if test "${lt_cv_deplibs_check_method+set}" = set; then
5559  echo $ECHO_N "(cached) $ECHO_C" >&6
5560else
5561  lt_cv_file_magic_cmd='$MAGIC_CMD'
5562lt_cv_file_magic_test_file=
5563lt_cv_deplibs_check_method='unknown'
5564# Need to set the preceding variable on all platforms that support
5565# interlibrary dependencies.
5566# 'none' -- dependencies not supported.
5567# `unknown' -- same as none, but documents that we really don't know.
5568# 'pass_all' -- all dependencies passed with no checks.
5569# 'test_compile' -- check by making test program.
5570# 'file_magic [[regex]]' -- check by looking for files in library path
5571# which responds to the $file_magic_cmd with a given extended regex.
5572# If you have `file' or equivalent on your system and you're not sure
5573# whether `pass_all' will *always* work, you probably want this one.
5574
5575case $host_os in
5576aix4* | aix5*)
5577  lt_cv_deplibs_check_method=pass_all
5578  ;;
5579
5580beos*)
5581  lt_cv_deplibs_check_method=pass_all
5582  ;;
5583
5584bsdi[45]*)
5585  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5586  lt_cv_file_magic_cmd='/usr/bin/file -L'
5587  lt_cv_file_magic_test_file=/shlib/libc.so
5588  ;;
5589
5590cygwin*)
5591  # func_win32_libid is a shell function defined in ltmain.sh
5592  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5593  lt_cv_file_magic_cmd='func_win32_libid'
5594  ;;
5595
5596mingw* | pw32*)
5597  # Base MSYS/MinGW do not provide the 'file' command needed by
5598  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5599  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5600  lt_cv_file_magic_cmd='$OBJDUMP -f'
5601  ;;
5602
5603darwin* | rhapsody*)
5604  lt_cv_deplibs_check_method=pass_all
5605  ;;
5606
5607freebsd* | kfreebsd*-gnu | dragonfly*)
5608  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5609    case $host_cpu in
5610    i*86 )
5611      # Not sure whether the presence of OpenBSD here was a mistake.
5612      # Let's accept both of them until this is cleared up.
5613      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5614      lt_cv_file_magic_cmd=/usr/bin/file
5615      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5616      ;;
5617    esac
5618  else
5619    lt_cv_deplibs_check_method=pass_all
5620  fi
5621  ;;
5622
5623gnu*)
5624  lt_cv_deplibs_check_method=pass_all
5625  ;;
5626
5627hpux10.20* | hpux11*)
5628  lt_cv_file_magic_cmd=/usr/bin/file
5629  case $host_cpu in
5630  ia64*)
5631    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5632    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5633    ;;
5634  hppa*64*)
5635    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]'
5636    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5637    ;;
5638  *)
5639    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5640    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5641    ;;
5642  esac
5643  ;;
5644
5645interix3*)
5646  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5647  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5648  ;;
5649
5650irix5* | irix6* | nonstopux*)
5651  case $LD in
5652  *-32|*"-32 ") libmagic=32-bit;;
5653  *-n32|*"-n32 ") libmagic=N32;;
5654  *-64|*"-64 ") libmagic=64-bit;;
5655  *) libmagic=never-match;;
5656  esac
5657  lt_cv_deplibs_check_method=pass_all
5658  ;;
5659
5660# This must be Linux ELF.
5661linux*)
5662  lt_cv_deplibs_check_method=pass_all
5663  ;;
5664
5665netbsd*)
5666  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5667    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5668  else
5669    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5670  fi
5671  ;;
5672
5673newos6*)
5674  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5675  lt_cv_file_magic_cmd=/usr/bin/file
5676  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5677  ;;
5678
5679nto-qnx*)
5680  lt_cv_deplibs_check_method=unknown
5681  ;;
5682
5683openbsd*)
5684  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5685    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5686  else
5687    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5688  fi
5689  ;;
5690
5691osf3* | osf4* | osf5*)
5692  lt_cv_deplibs_check_method=pass_all
5693  ;;
5694
5695solaris*)
5696  lt_cv_deplibs_check_method=pass_all
5697  ;;
5698
5699sysv4 | sysv4.3*)
5700  case $host_vendor in
5701  motorola)
5702    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]'
5703    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5704    ;;
5705  ncr)
5706    lt_cv_deplibs_check_method=pass_all
5707    ;;
5708  sequent)
5709    lt_cv_file_magic_cmd='/bin/file'
5710    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5711    ;;
5712  sni)
5713    lt_cv_file_magic_cmd='/bin/file'
5714    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5715    lt_cv_file_magic_test_file=/lib/libc.so
5716    ;;
5717  siemens)
5718    lt_cv_deplibs_check_method=pass_all
5719    ;;
5720  pc)
5721    lt_cv_deplibs_check_method=pass_all
5722    ;;
5723  esac
5724  ;;
5725
5726sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5727  lt_cv_deplibs_check_method=pass_all
5728  ;;
5729esac
5730
5731fi
5732echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5733echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5734file_magic_cmd=$lt_cv_file_magic_cmd
5735deplibs_check_method=$lt_cv_deplibs_check_method
5736test -z "$deplibs_check_method" && deplibs_check_method=unknown
5737
5738
5739
5740
5741# If no C compiler was specified, use CC.
5742LTCC=${LTCC-"$CC"}
5743
5744# If no C compiler flags were specified, use CFLAGS.
5745LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5746
5747# Allow CC to be a program name with arguments.
5748compiler=$CC
5749
5750# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5751if test "${enable_libtool_lock+set}" = set; then
5752  enableval="$enable_libtool_lock"
5753
5754fi;
5755test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5756
5757# Some flags need to be propagated to the compiler or linker for good
5758# libtool support.
5759case $host in
5760ia64-*-hpux*)
5761  # Find out which ABI we are using.
5762  echo 'int i;' > conftest.$ac_ext
5763  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5764  (eval $ac_compile) 2>&5
5765  ac_status=$?
5766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767  (exit $ac_status); }; then
5768    case `/usr/bin/file conftest.$ac_objext` in
5769    *ELF-32*)
5770      HPUX_IA64_MODE="32"
5771      ;;
5772    *ELF-64*)
5773      HPUX_IA64_MODE="64"
5774      ;;
5775    esac
5776  fi
5777  rm -rf conftest*
5778  ;;
5779*-*-irix6*)
5780  # Find out which ABI we are using.
5781  echo '#line 5781 "configure"' > conftest.$ac_ext
5782  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783  (eval $ac_compile) 2>&5
5784  ac_status=$?
5785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786  (exit $ac_status); }; then
5787   if test "$lt_cv_prog_gnu_ld" = yes; then
5788    case `/usr/bin/file conftest.$ac_objext` in
5789    *32-bit*)
5790      LD="${LD-ld} -melf32bsmip"
5791      ;;
5792    *N32*)
5793      LD="${LD-ld} -melf32bmipn32"
5794      ;;
5795    *64-bit*)
5796      LD="${LD-ld} -melf64bmip"
5797      ;;
5798    esac
5799   else
5800    case `/usr/bin/file conftest.$ac_objext` in
5801    *32-bit*)
5802      LD="${LD-ld} -32"
5803      ;;
5804    *N32*)
5805      LD="${LD-ld} -n32"
5806      ;;
5807    *64-bit*)
5808      LD="${LD-ld} -64"
5809      ;;
5810    esac
5811   fi
5812  fi
5813  rm -rf conftest*
5814  ;;
5815
5816x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5817  # Find out which ABI we are using.
5818  echo 'int i;' > conftest.$ac_ext
5819  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5820  (eval $ac_compile) 2>&5
5821  ac_status=$?
5822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823  (exit $ac_status); }; then
5824    case `/usr/bin/file conftest.o` in
5825    *32-bit*)
5826      case $host in
5827        x86_64-*linux*)
5828          LD="${LD-ld} -m elf_i386"
5829          ;;
5830        ppc64-*linux*|powerpc64-*linux*)
5831          LD="${LD-ld} -m elf32ppclinux"
5832          ;;
5833        s390x-*linux*)
5834          LD="${LD-ld} -m elf_s390"
5835          ;;
5836        sparc64-*linux*)
5837          LD="${LD-ld} -m elf32_sparc"
5838          ;;
5839      esac
5840      ;;
5841    *64-bit*)
5842      case $host in
5843        x86_64-*linux*)
5844          LD="${LD-ld} -m elf_x86_64"
5845          ;;
5846        ppc*-*linux*|powerpc*-*linux*)
5847          LD="${LD-ld} -m elf64ppc"
5848          ;;
5849        s390*-*linux*)
5850          LD="${LD-ld} -m elf64_s390"
5851          ;;
5852        sparc*-*linux*)
5853          LD="${LD-ld} -m elf64_sparc"
5854          ;;
5855      esac
5856      ;;
5857    esac
5858  fi
5859  rm -rf conftest*
5860  ;;
5861
5862*-*-sco3.2v5*)
5863  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5864  SAVE_CFLAGS="$CFLAGS"
5865  CFLAGS="$CFLAGS -belf"
5866  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5867echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5868if test "${lt_cv_cc_needs_belf+set}" = set; then
5869  echo $ECHO_N "(cached) $ECHO_C" >&6
5870else
5871  ac_ext=c
5872ac_cpp='$CPP $CPPFLAGS'
5873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5875ac_compiler_gnu=$ac_cv_c_compiler_gnu
5876
5877     cat >conftest.$ac_ext <<_ACEOF
5878/* confdefs.h.  */
5879_ACEOF
5880cat confdefs.h >>conftest.$ac_ext
5881cat >>conftest.$ac_ext <<_ACEOF
5882/* end confdefs.h.  */
5883
5884int
5885main ()
5886{
5887
5888  ;
5889  return 0;
5890}
5891_ACEOF
5892rm -f conftest.$ac_objext conftest$ac_exeext
5893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5894  (eval $ac_link) 2>conftest.er1
5895  ac_status=$?
5896  grep -v '^ *+' conftest.er1 >conftest.err
5897  rm -f conftest.er1
5898  cat conftest.err >&5
5899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900  (exit $ac_status); } &&
5901         { ac_try='test -z "$ac_c_werror_flag"
5902                         || test ! -s conftest.err'
5903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904  (eval $ac_try) 2>&5
5905  ac_status=$?
5906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907  (exit $ac_status); }; } &&
5908         { ac_try='test -s conftest$ac_exeext'
5909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910  (eval $ac_try) 2>&5
5911  ac_status=$?
5912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913  (exit $ac_status); }; }; then
5914  lt_cv_cc_needs_belf=yes
5915else
5916  echo "$as_me: failed program was:" >&5
5917sed 's/^/| /' conftest.$ac_ext >&5
5918
5919lt_cv_cc_needs_belf=no
5920fi
5921rm -f conftest.err conftest.$ac_objext \
5922      conftest$ac_exeext conftest.$ac_ext
5923     ac_ext=c
5924ac_cpp='$CPP $CPPFLAGS'
5925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5927ac_compiler_gnu=$ac_cv_c_compiler_gnu
5928
5929fi
5930echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5931echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5932  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5933    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5934    CFLAGS="$SAVE_CFLAGS"
5935  fi
5936  ;;
5937sparc*-*solaris*)
5938  # Find out which ABI we are using.
5939  echo 'int i;' > conftest.$ac_ext
5940  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5941  (eval $ac_compile) 2>&5
5942  ac_status=$?
5943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944  (exit $ac_status); }; then
5945    case `/usr/bin/file conftest.o` in
5946    *64-bit*)
5947      case $lt_cv_prog_gnu_ld in
5948      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5949      *)    LD="${LD-ld} -64" ;;
5950      esac
5951      ;;
5952    esac
5953  fi
5954  rm -rf conftest*
5955  ;;
5956
5957
5958esac
5959
5960need_locks="$enable_libtool_lock"
5961
5962
5963ac_ext=c
5964ac_cpp='$CPP $CPPFLAGS'
5965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5967ac_compiler_gnu=$ac_cv_c_compiler_gnu
5968echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5969echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5970# On Suns, sometimes $CPP names a directory.
5971if test -n "$CPP" && test -d "$CPP"; then
5972  CPP=
5973fi
5974if test -z "$CPP"; then
5975  if test "${ac_cv_prog_CPP+set}" = set; then
5976  echo $ECHO_N "(cached) $ECHO_C" >&6
5977else
5978      # Double quotes because CPP needs to be expanded
5979    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5980    do
5981      ac_preproc_ok=false
5982for ac_c_preproc_warn_flag in '' yes
5983do
5984  # Use a header file that comes with gcc, so configuring glibc
5985  # with a fresh cross-compiler works.
5986  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5987  # <limits.h> exists even on freestanding compilers.
5988  # On the NeXT, cc -E runs the code through the compiler's parser,
5989  # not just through cpp. "Syntax error" is here to catch this case.
5990  cat >conftest.$ac_ext <<_ACEOF
5991/* confdefs.h.  */
5992_ACEOF
5993cat confdefs.h >>conftest.$ac_ext
5994cat >>conftest.$ac_ext <<_ACEOF
5995/* end confdefs.h.  */
5996#ifdef __STDC__
5997# include <limits.h>
5998#else
5999# include <assert.h>
6000#endif
6001                     Syntax error
6002_ACEOF
6003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6004  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6005  ac_status=$?
6006  grep -v '^ *+' conftest.er1 >conftest.err
6007  rm -f conftest.er1
6008  cat conftest.err >&5
6009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010  (exit $ac_status); } >/dev/null; then
6011  if test -s conftest.err; then
6012    ac_cpp_err=$ac_c_preproc_warn_flag
6013    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6014  else
6015    ac_cpp_err=
6016  fi
6017else
6018  ac_cpp_err=yes
6019fi
6020if test -z "$ac_cpp_err"; then
6021  :
6022else
6023  echo "$as_me: failed program was:" >&5
6024sed 's/^/| /' conftest.$ac_ext >&5
6025
6026  # Broken: fails on valid input.
6027continue
6028fi
6029rm -f conftest.err conftest.$ac_ext
6030
6031  # OK, works on sane cases.  Now check whether non-existent headers
6032  # can be detected and how.
6033  cat >conftest.$ac_ext <<_ACEOF
6034/* confdefs.h.  */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h.  */
6039#include <ac_nonexistent.h>
6040_ACEOF
6041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6042  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6043  ac_status=$?
6044  grep -v '^ *+' conftest.er1 >conftest.err
6045  rm -f conftest.er1
6046  cat conftest.err >&5
6047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048  (exit $ac_status); } >/dev/null; then
6049  if test -s conftest.err; then
6050    ac_cpp_err=$ac_c_preproc_warn_flag
6051    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6052  else
6053    ac_cpp_err=
6054  fi
6055else
6056  ac_cpp_err=yes
6057fi
6058if test -z "$ac_cpp_err"; then
6059  # Broken: success on invalid input.
6060continue
6061else
6062  echo "$as_me: failed program was:" >&5
6063sed 's/^/| /' conftest.$ac_ext >&5
6064
6065  # Passes both tests.
6066ac_preproc_ok=:
6067break
6068fi
6069rm -f conftest.err conftest.$ac_ext
6070
6071done
6072# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6073rm -f conftest.err conftest.$ac_ext
6074if $ac_preproc_ok; then
6075  break
6076fi
6077
6078    done
6079    ac_cv_prog_CPP=$CPP
6080
6081fi
6082  CPP=$ac_cv_prog_CPP
6083else
6084  ac_cv_prog_CPP=$CPP
6085fi
6086echo "$as_me:$LINENO: result: $CPP" >&5
6087echo "${ECHO_T}$CPP" >&6
6088ac_preproc_ok=false
6089for ac_c_preproc_warn_flag in '' yes
6090do
6091  # Use a header file that comes with gcc, so configuring glibc
6092  # with a fresh cross-compiler works.
6093  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6094  # <limits.h> exists even on freestanding compilers.
6095  # On the NeXT, cc -E runs the code through the compiler's parser,
6096  # not just through cpp. "Syntax error" is here to catch this case.
6097  cat >conftest.$ac_ext <<_ACEOF
6098/* confdefs.h.  */
6099_ACEOF
6100cat confdefs.h >>conftest.$ac_ext
6101cat >>conftest.$ac_ext <<_ACEOF
6102/* end confdefs.h.  */
6103#ifdef __STDC__
6104# include <limits.h>
6105#else
6106# include <assert.h>
6107#endif
6108                     Syntax error
6109_ACEOF
6110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6111  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6112  ac_status=$?
6113  grep -v '^ *+' conftest.er1 >conftest.err
6114  rm -f conftest.er1
6115  cat conftest.err >&5
6116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117  (exit $ac_status); } >/dev/null; then
6118  if test -s conftest.err; then
6119    ac_cpp_err=$ac_c_preproc_warn_flag
6120    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6121  else
6122    ac_cpp_err=
6123  fi
6124else
6125  ac_cpp_err=yes
6126fi
6127if test -z "$ac_cpp_err"; then
6128  :
6129else
6130  echo "$as_me: failed program was:" >&5
6131sed 's/^/| /' conftest.$ac_ext >&5
6132
6133  # Broken: fails on valid input.
6134continue
6135fi
6136rm -f conftest.err conftest.$ac_ext
6137
6138  # OK, works on sane cases.  Now check whether non-existent headers
6139  # can be detected and how.
6140  cat >conftest.$ac_ext <<_ACEOF
6141/* confdefs.h.  */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h.  */
6146#include <ac_nonexistent.h>
6147_ACEOF
6148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6149  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6150  ac_status=$?
6151  grep -v '^ *+' conftest.er1 >conftest.err
6152  rm -f conftest.er1
6153  cat conftest.err >&5
6154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155  (exit $ac_status); } >/dev/null; then
6156  if test -s conftest.err; then
6157    ac_cpp_err=$ac_c_preproc_warn_flag
6158    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6159  else
6160    ac_cpp_err=
6161  fi
6162else
6163  ac_cpp_err=yes
6164fi
6165if test -z "$ac_cpp_err"; then
6166  # Broken: success on invalid input.
6167continue
6168else
6169  echo "$as_me: failed program was:" >&5
6170sed 's/^/| /' conftest.$ac_ext >&5
6171
6172  # Passes both tests.
6173ac_preproc_ok=:
6174break
6175fi
6176rm -f conftest.err conftest.$ac_ext
6177
6178done
6179# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6180rm -f conftest.err conftest.$ac_ext
6181if $ac_preproc_ok; then
6182  :
6183else
6184  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6185See \`config.log' for more details." >&5
6186echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6187See \`config.log' for more details." >&2;}
6188   { (exit 1); exit 1; }; }
6189fi
6190
6191ac_ext=c
6192ac_cpp='$CPP $CPPFLAGS'
6193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6195ac_compiler_gnu=$ac_cv_c_compiler_gnu
6196
6197
6198echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6199echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6200if test "${ac_cv_header_stdc+set}" = set; then
6201  echo $ECHO_N "(cached) $ECHO_C" >&6
6202else
6203  cat >conftest.$ac_ext <<_ACEOF
6204/* confdefs.h.  */
6205_ACEOF
6206cat confdefs.h >>conftest.$ac_ext
6207cat >>conftest.$ac_ext <<_ACEOF
6208/* end confdefs.h.  */
6209#include <stdlib.h>
6210#include <stdarg.h>
6211#include <string.h>
6212#include <float.h>
6213
6214int
6215main ()
6216{
6217
6218  ;
6219  return 0;
6220}
6221_ACEOF
6222rm -f conftest.$ac_objext
6223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6224  (eval $ac_compile) 2>conftest.er1
6225  ac_status=$?
6226  grep -v '^ *+' conftest.er1 >conftest.err
6227  rm -f conftest.er1
6228  cat conftest.err >&5
6229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230  (exit $ac_status); } &&
6231         { ac_try='test -z "$ac_c_werror_flag"
6232                         || test ! -s conftest.err'
6233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234  (eval $ac_try) 2>&5
6235  ac_status=$?
6236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237  (exit $ac_status); }; } &&
6238         { ac_try='test -s conftest.$ac_objext'
6239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240  (eval $ac_try) 2>&5
6241  ac_status=$?
6242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243  (exit $ac_status); }; }; then
6244  ac_cv_header_stdc=yes
6245else
6246  echo "$as_me: failed program was:" >&5
6247sed 's/^/| /' conftest.$ac_ext >&5
6248
6249ac_cv_header_stdc=no
6250fi
6251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6252
6253if test $ac_cv_header_stdc = yes; then
6254  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6255  cat >conftest.$ac_ext <<_ACEOF
6256/* confdefs.h.  */
6257_ACEOF
6258cat confdefs.h >>conftest.$ac_ext
6259cat >>conftest.$ac_ext <<_ACEOF
6260/* end confdefs.h.  */
6261#include <string.h>
6262
6263_ACEOF
6264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265  $EGREP "memchr" >/dev/null 2>&1; then
6266  :
6267else
6268  ac_cv_header_stdc=no
6269fi
6270rm -f conftest*
6271
6272fi
6273
6274if test $ac_cv_header_stdc = yes; then
6275  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6276  cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h.  */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h.  */
6282#include <stdlib.h>
6283
6284_ACEOF
6285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6286  $EGREP "free" >/dev/null 2>&1; then
6287  :
6288else
6289  ac_cv_header_stdc=no
6290fi
6291rm -f conftest*
6292
6293fi
6294
6295if test $ac_cv_header_stdc = yes; then
6296  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6297  if test "$cross_compiling" = yes; then
6298  :
6299else
6300  cat >conftest.$ac_ext <<_ACEOF
6301/* confdefs.h.  */
6302_ACEOF
6303cat confdefs.h >>conftest.$ac_ext
6304cat >>conftest.$ac_ext <<_ACEOF
6305/* end confdefs.h.  */
6306#include <ctype.h>
6307#if ((' ' & 0x0FF) == 0x020)
6308# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6309# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6310#else
6311# define ISLOWER(c) \
6312                   (('a' <= (c) && (c) <= 'i') \
6313                     || ('j' <= (c) && (c) <= 'r') \
6314                     || ('s' <= (c) && (c) <= 'z'))
6315# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6316#endif
6317
6318#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6319int
6320main ()
6321{
6322  int i;
6323  for (i = 0; i < 256; i++)
6324    if (XOR (islower (i), ISLOWER (i))
6325        || toupper (i) != TOUPPER (i))
6326      exit(2);
6327  exit (0);
6328}
6329_ACEOF
6330rm -f conftest$ac_exeext
6331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6332  (eval $ac_link) 2>&5
6333  ac_status=$?
6334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6336  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337  (eval $ac_try) 2>&5
6338  ac_status=$?
6339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340  (exit $ac_status); }; }; then
6341  :
6342else
6343  echo "$as_me: program exited with status $ac_status" >&5
6344echo "$as_me: failed program was:" >&5
6345sed 's/^/| /' conftest.$ac_ext >&5
6346
6347( exit $ac_status )
6348ac_cv_header_stdc=no
6349fi
6350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6351fi
6352fi
6353fi
6354echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6355echo "${ECHO_T}$ac_cv_header_stdc" >&6
6356if test $ac_cv_header_stdc = yes; then
6357
6358cat >>confdefs.h <<\_ACEOF
6359#define STDC_HEADERS 1
6360_ACEOF
6361
6362fi
6363
6364# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6375                  inttypes.h stdint.h unistd.h
6376do
6377as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6378echo "$as_me:$LINENO: checking for $ac_header" >&5
6379echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6380if eval "test \"\${$as_ac_Header+set}\" = set"; then
6381  echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
6383  cat >conftest.$ac_ext <<_ACEOF
6384/* confdefs.h.  */
6385_ACEOF
6386cat confdefs.h >>conftest.$ac_ext
6387cat >>conftest.$ac_ext <<_ACEOF
6388/* end confdefs.h.  */
6389$ac_includes_default
6390
6391#include <$ac_header>
6392_ACEOF
6393rm -f conftest.$ac_objext
6394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6395  (eval $ac_compile) 2>conftest.er1
6396  ac_status=$?
6397  grep -v '^ *+' conftest.er1 >conftest.err
6398  rm -f conftest.er1
6399  cat conftest.err >&5
6400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401  (exit $ac_status); } &&
6402         { ac_try='test -z "$ac_c_werror_flag"
6403                         || test ! -s conftest.err'
6404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6405  (eval $ac_try) 2>&5
6406  ac_status=$?
6407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408  (exit $ac_status); }; } &&
6409         { ac_try='test -s conftest.$ac_objext'
6410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6411  (eval $ac_try) 2>&5
6412  ac_status=$?
6413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414  (exit $ac_status); }; }; then
6415  eval "$as_ac_Header=yes"
6416else
6417  echo "$as_me: failed program was:" >&5
6418sed 's/^/| /' conftest.$ac_ext >&5
6419
6420eval "$as_ac_Header=no"
6421fi
6422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6423fi
6424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426if test `eval echo '${'$as_ac_Header'}'` = yes; then
6427  cat >>confdefs.h <<_ACEOF
6428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6429_ACEOF
6430
6431fi
6432
6433done
6434
6435
6436
6437for ac_header in dlfcn.h
6438do
6439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6440if eval "test \"\${$as_ac_Header+set}\" = set"; then
6441  echo "$as_me:$LINENO: checking for $ac_header" >&5
6442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6443if eval "test \"\${$as_ac_Header+set}\" = set"; then
6444  echo $ECHO_N "(cached) $ECHO_C" >&6
6445fi
6446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6448else
6449  # Is the header compilable?
6450echo "$as_me:$LINENO: checking $ac_header usability" >&5
6451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6452cat >conftest.$ac_ext <<_ACEOF
6453/* confdefs.h.  */
6454_ACEOF
6455cat confdefs.h >>conftest.$ac_ext
6456cat >>conftest.$ac_ext <<_ACEOF
6457/* end confdefs.h.  */
6458$ac_includes_default
6459#include <$ac_header>
6460_ACEOF
6461rm -f conftest.$ac_objext
6462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463  (eval $ac_compile) 2>conftest.er1
6464  ac_status=$?
6465  grep -v '^ *+' conftest.er1 >conftest.err
6466  rm -f conftest.er1
6467  cat conftest.err >&5
6468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469  (exit $ac_status); } &&
6470         { ac_try='test -z "$ac_c_werror_flag"
6471                         || test ! -s conftest.err'
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); }; } &&
6477         { ac_try='test -s conftest.$ac_objext'
6478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479  (eval $ac_try) 2>&5
6480  ac_status=$?
6481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482  (exit $ac_status); }; }; then
6483  ac_header_compiler=yes
6484else
6485  echo "$as_me: failed program was:" >&5
6486sed 's/^/| /' conftest.$ac_ext >&5
6487
6488ac_header_compiler=no
6489fi
6490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6491echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6492echo "${ECHO_T}$ac_header_compiler" >&6
6493
6494# Is the header present?
6495echo "$as_me:$LINENO: checking $ac_header presence" >&5
6496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6497cat >conftest.$ac_ext <<_ACEOF
6498/* confdefs.h.  */
6499_ACEOF
6500cat confdefs.h >>conftest.$ac_ext
6501cat >>conftest.$ac_ext <<_ACEOF
6502/* end confdefs.h.  */
6503#include <$ac_header>
6504_ACEOF
6505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6506  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6507  ac_status=$?
6508  grep -v '^ *+' conftest.er1 >conftest.err
6509  rm -f conftest.er1
6510  cat conftest.err >&5
6511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512  (exit $ac_status); } >/dev/null; then
6513  if test -s conftest.err; then
6514    ac_cpp_err=$ac_c_preproc_warn_flag
6515    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6516  else
6517    ac_cpp_err=
6518  fi
6519else
6520  ac_cpp_err=yes
6521fi
6522if test -z "$ac_cpp_err"; then
6523  ac_header_preproc=yes
6524else
6525  echo "$as_me: failed program was:" >&5
6526sed 's/^/| /' conftest.$ac_ext >&5
6527
6528  ac_header_preproc=no
6529fi
6530rm -f conftest.err conftest.$ac_ext
6531echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6532echo "${ECHO_T}$ac_header_preproc" >&6
6533
6534# So?  What about this header?
6535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6536  yes:no: )
6537    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6538echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6539    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6540echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6541    ac_header_preproc=yes
6542    ;;
6543  no:yes:* )
6544    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6545echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6546    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6547echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6548    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6549echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6550    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6551echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6552    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6554    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6555echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6556    (
6557      cat <<\_ASBOX
6558## ---------------------------------------- ##
6559## Report this to coin-clp@list.coin-or.org ##
6560## ---------------------------------------- ##
6561_ASBOX
6562    ) |
6563      sed "s/^/$as_me: WARNING:     /" >&2
6564    ;;
6565esac
6566echo "$as_me:$LINENO: checking for $ac_header" >&5
6567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6568if eval "test \"\${$as_ac_Header+set}\" = set"; then
6569  echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571  eval "$as_ac_Header=\$ac_header_preproc"
6572fi
6573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6575
6576fi
6577if test `eval echo '${'$as_ac_Header'}'` = yes; then
6578  cat >>confdefs.h <<_ACEOF
6579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6580_ACEOF
6581
6582fi
6583
6584done
6585
6586
6587
6588if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6589    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6590    (test "X$CXX" != "Xg++"))) ; then
6591  ac_ext=cc
6592ac_cpp='$CXXCPP $CPPFLAGS'
6593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6596echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6597echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6598if test -z "$CXXCPP"; then
6599  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6600  echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602      # Double quotes because CXXCPP needs to be expanded
6603    for CXXCPP in "$CXX -E" "/lib/cpp"
6604    do
6605      ac_preproc_ok=false
6606for ac_cxx_preproc_warn_flag in '' yes
6607do
6608  # Use a header file that comes with gcc, so configuring glibc
6609  # with a fresh cross-compiler works.
6610  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6611  # <limits.h> exists even on freestanding compilers.
6612  # On the NeXT, cc -E runs the code through the compiler's parser,
6613  # not just through cpp. "Syntax error" is here to catch this case.
6614  cat >conftest.$ac_ext <<_ACEOF
6615/* confdefs.h.  */
6616_ACEOF
6617cat confdefs.h >>conftest.$ac_ext
6618cat >>conftest.$ac_ext <<_ACEOF
6619/* end confdefs.h.  */
6620#ifdef __STDC__
6621# include <limits.h>
6622#else
6623# include <assert.h>
6624#endif
6625                     Syntax error
6626_ACEOF
6627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6628  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6629  ac_status=$?
6630  grep -v '^ *+' conftest.er1 >conftest.err
6631  rm -f conftest.er1
6632  cat conftest.err >&5
6633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634  (exit $ac_status); } >/dev/null; then
6635  if test -s conftest.err; then
6636    ac_cpp_err=$ac_cxx_preproc_warn_flag
6637    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6638  else
6639    ac_cpp_err=
6640  fi
6641else
6642  ac_cpp_err=yes
6643fi
6644if test -z "$ac_cpp_err"; then
6645  :
6646else
6647  echo "$as_me: failed program was:" >&5
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
6650  # Broken: fails on valid input.
6651continue
6652fi
6653rm -f conftest.err conftest.$ac_ext
6654
6655  # OK, works on sane cases.  Now check whether non-existent headers
6656  # can be detected and how.
6657  cat >conftest.$ac_ext <<_ACEOF
6658/* confdefs.h.  */
6659_ACEOF
6660cat confdefs.h >>conftest.$ac_ext
6661cat >>conftest.$ac_ext <<_ACEOF
6662/* end confdefs.h.  */
6663#include <ac_nonexistent.h>
6664_ACEOF
6665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6666  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6667  ac_status=$?
6668  grep -v '^ *+' conftest.er1 >conftest.err
6669  rm -f conftest.er1
6670  cat conftest.err >&5
6671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672  (exit $ac_status); } >/dev/null; then
6673  if test -s conftest.err; then
6674    ac_cpp_err=$ac_cxx_preproc_warn_flag
6675    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6676  else
6677    ac_cpp_err=
6678  fi
6679else
6680  ac_cpp_err=yes
6681fi
6682if test -z "$ac_cpp_err"; then
6683  # Broken: success on invalid input.
6684continue
6685else
6686  echo "$as_me: failed program was:" >&5
6687sed 's/^/| /' conftest.$ac_ext >&5
6688
6689  # Passes both tests.
6690ac_preproc_ok=:
6691break
6692fi
6693rm -f conftest.err conftest.$ac_ext
6694
6695done
6696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6697rm -f conftest.err conftest.$ac_ext
6698if $ac_preproc_ok; then
6699  break
6700fi
6701
6702    done
6703    ac_cv_prog_CXXCPP=$CXXCPP
6704
6705fi
6706  CXXCPP=$ac_cv_prog_CXXCPP
6707else
6708  ac_cv_prog_CXXCPP=$CXXCPP
6709fi
6710echo "$as_me:$LINENO: result: $CXXCPP" >&5
6711echo "${ECHO_T}$CXXCPP" >&6
6712ac_preproc_ok=false
6713for ac_cxx_preproc_warn_flag in '' yes
6714do
6715  # Use a header file that comes with gcc, so configuring glibc
6716  # with a fresh cross-compiler works.
6717  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6718  # <limits.h> exists even on freestanding compilers.
6719  # On the NeXT, cc -E runs the code through the compiler's parser,
6720  # not just through cpp. "Syntax error" is here to catch this case.
6721  cat >conftest.$ac_ext <<_ACEOF
6722/* confdefs.h.  */
6723_ACEOF
6724cat confdefs.h >>conftest.$ac_ext
6725cat >>conftest.$ac_ext <<_ACEOF
6726/* end confdefs.h.  */
6727#ifdef __STDC__
6728# include <limits.h>
6729#else
6730# include <assert.h>
6731#endif
6732                     Syntax error
6733_ACEOF
6734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6735  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6736  ac_status=$?
6737  grep -v '^ *+' conftest.er1 >conftest.err
6738  rm -f conftest.er1
6739  cat conftest.err >&5
6740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6741  (exit $ac_status); } >/dev/null; then
6742  if test -s conftest.err; then
6743    ac_cpp_err=$ac_cxx_preproc_warn_flag
6744    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6745  else
6746    ac_cpp_err=
6747  fi
6748else
6749  ac_cpp_err=yes
6750fi
6751if test -z "$ac_cpp_err"; then
6752  :
6753else
6754  echo "$as_me: failed program was:" >&5
6755sed 's/^/| /' conftest.$ac_ext >&5
6756
6757  # Broken: fails on valid input.
6758continue
6759fi
6760rm -f conftest.err conftest.$ac_ext
6761
6762  # OK, works on sane cases.  Now check whether non-existent headers
6763  # can be detected and how.
6764  cat >conftest.$ac_ext <<_ACEOF
6765/* confdefs.h.  */
6766_ACEOF
6767cat confdefs.h >>conftest.$ac_ext
6768cat >>conftest.$ac_ext <<_ACEOF
6769/* end confdefs.h.  */
6770#include <ac_nonexistent.h>
6771_ACEOF
6772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6773  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6774  ac_status=$?
6775  grep -v '^ *+' conftest.er1 >conftest.err
6776  rm -f conftest.er1
6777  cat conftest.err >&5
6778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779  (exit $ac_status); } >/dev/null; then
6780  if test -s conftest.err; then
6781    ac_cpp_err=$ac_cxx_preproc_warn_flag
6782    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6783  else
6784    ac_cpp_err=
6785  fi
6786else
6787  ac_cpp_err=yes
6788fi
6789if test -z "$ac_cpp_err"; then
6790  # Broken: success on invalid input.
6791continue
6792else
6793  echo "$as_me: failed program was:" >&5
6794sed 's/^/| /' conftest.$ac_ext >&5
6795
6796  # Passes both tests.
6797ac_preproc_ok=:
6798break
6799fi
6800rm -f conftest.err conftest.$ac_ext
6801
6802done
6803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6804rm -f conftest.err conftest.$ac_ext
6805if $ac_preproc_ok; then
6806  :
6807else
6808  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6809See \`config.log' for more details." >&5
6810echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6811See \`config.log' for more details." >&2;}
6812   { (exit 1); exit 1; }; }
6813fi
6814
6815ac_ext=cc
6816ac_cpp='$CXXCPP $CPPFLAGS'
6817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6820
6821fi
6822
6823ac_ext=f
6824ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6825ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6826ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6827if test -n "$ac_tool_prefix"; then
6828  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6829  do
6830    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6831set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6832echo "$as_me:$LINENO: checking for $ac_word" >&5
6833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6834if test "${ac_cv_prog_F77+set}" = set; then
6835  echo $ECHO_N "(cached) $ECHO_C" >&6
6836else
6837  if test -n "$F77"; then
6838  ac_cv_prog_F77="$F77" # Let the user override the test.
6839else
6840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841for as_dir in $PATH
6842do
6843  IFS=$as_save_IFS
6844  test -z "$as_dir" && as_dir=.
6845  for ac_exec_ext in '' $ac_executable_extensions; do
6846  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6849    break 2
6850  fi
6851done
6852done
6853
6854fi
6855fi
6856F77=$ac_cv_prog_F77
6857if test -n "$F77"; then
6858  echo "$as_me:$LINENO: result: $F77" >&5
6859echo "${ECHO_T}$F77" >&6
6860else
6861  echo "$as_me:$LINENO: result: no" >&5
6862echo "${ECHO_T}no" >&6
6863fi
6864
6865    test -n "$F77" && break
6866  done
6867fi
6868if test -z "$F77"; then
6869  ac_ct_F77=$F77
6870  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6871do
6872  # Extract the first word of "$ac_prog", so it can be a program name with args.
6873set dummy $ac_prog; ac_word=$2
6874echo "$as_me:$LINENO: checking for $ac_word" >&5
6875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6876if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6877  echo $ECHO_N "(cached) $ECHO_C" >&6
6878else
6879  if test -n "$ac_ct_F77"; then
6880  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6881else
6882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6883for as_dir in $PATH
6884do
6885  IFS=$as_save_IFS
6886  test -z "$as_dir" && as_dir=.
6887  for ac_exec_ext in '' $ac_executable_extensions; do
6888  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6889    ac_cv_prog_ac_ct_F77="$ac_prog"
6890    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6891    break 2
6892  fi
6893done
6894done
6895
6896fi
6897fi
6898ac_ct_F77=$ac_cv_prog_ac_ct_F77
6899if test -n "$ac_ct_F77"; then
6900  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6901echo "${ECHO_T}$ac_ct_F77" >&6
6902else
6903  echo "$as_me:$LINENO: result: no" >&5
6904echo "${ECHO_T}no" >&6
6905fi
6906
6907  test -n "$ac_ct_F77" && break
6908done
6909
6910  F77=$ac_ct_F77
6911fi
6912
6913
6914# Provide some information about the compiler.
6915echo "$as_me:6915:" \
6916     "checking for Fortran 77 compiler version" >&5
6917ac_compiler=`set X $ac_compile; echo $2`
6918{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6919  (eval $ac_compiler --version </dev/null >&5) 2>&5
6920  ac_status=$?
6921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922  (exit $ac_status); }
6923{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6924  (eval $ac_compiler -v </dev/null >&5) 2>&5
6925  ac_status=$?
6926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927  (exit $ac_status); }
6928{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6929  (eval $ac_compiler -V </dev/null >&5) 2>&5
6930  ac_status=$?
6931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932  (exit $ac_status); }
6933rm -f a.out
6934
6935# If we don't use `.F' as extension, the preprocessor is not run on the
6936# input file.  (Note that this only needs to work for GNU compilers.)
6937ac_save_ext=$ac_ext
6938ac_ext=F
6939echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6940echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6941if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6942  echo $ECHO_N "(cached) $ECHO_C" >&6
6943else
6944  cat >conftest.$ac_ext <<_ACEOF
6945      program main
6946#ifndef __GNUC__
6947       choke me
6948#endif
6949
6950      end
6951_ACEOF
6952rm -f conftest.$ac_objext
6953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6954  (eval $ac_compile) 2>conftest.er1
6955  ac_status=$?
6956  grep -v '^ *+' conftest.er1 >conftest.err
6957  rm -f conftest.er1
6958  cat conftest.err >&5
6959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960  (exit $ac_status); } &&
6961         { ac_try='test -z "$ac_f77_werror_flag"
6962                         || test ! -s conftest.err'
6963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964  (eval $ac_try) 2>&5
6965  ac_status=$?
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); }; } &&
6968         { ac_try='test -s conftest.$ac_objext'
6969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6970  (eval $ac_try) 2>&5
6971  ac_status=$?
6972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973  (exit $ac_status); }; }; then
6974  ac_compiler_gnu=yes
6975else
6976  echo "$as_me: failed program was:" >&5
6977sed 's/^/| /' conftest.$ac_ext >&5
6978
6979ac_compiler_gnu=no
6980fi
6981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6982ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6983
6984fi
6985echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6986echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6987ac_ext=$ac_save_ext
6988ac_test_FFLAGS=${FFLAGS+set}
6989ac_save_FFLAGS=$FFLAGS
6990FFLAGS=
6991echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6992echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6993if test "${ac_cv_prog_f77_g+set}" = set; then
6994  echo $ECHO_N "(cached) $ECHO_C" >&6
6995else
6996  FFLAGS=-g
6997cat >conftest.$ac_ext <<_ACEOF
6998      program main
6999
7000      end
7001_ACEOF
7002rm -f conftest.$ac_objext
7003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7004  (eval $ac_compile) 2>conftest.er1
7005  ac_status=$?
7006  grep -v '^ *+' conftest.er1 >conftest.err
7007  rm -f conftest.er1
7008  cat conftest.err >&5
7009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010  (exit $ac_status); } &&
7011         { ac_try='test -z "$ac_f77_werror_flag"
7012                         || test ! -s conftest.err'
7013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014  (eval $ac_try) 2>&5
7015  ac_status=$?
7016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017  (exit $ac_status); }; } &&
7018         { ac_try='test -s conftest.$ac_objext'
7019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020  (eval $ac_try) 2>&5
7021  ac_status=$?
7022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023  (exit $ac_status); }; }; then
7024  ac_cv_prog_f77_g=yes
7025else
7026  echo "$as_me: failed program was:" >&5
7027sed 's/^/| /' conftest.$ac_ext >&5
7028
7029ac_cv_prog_f77_g=no
7030fi
7031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7032
7033fi
7034echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7035echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7036if test "$ac_test_FFLAGS" = set; then
7037  FFLAGS=$ac_save_FFLAGS
7038elif test $ac_cv_prog_f77_g = yes; then
7039  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7040    FFLAGS="-g -O2"
7041  else
7042    FFLAGS="-g"
7043  fi
7044else
7045  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7046    FFLAGS="-O2"
7047  else
7048    FFLAGS=
7049  fi
7050fi
7051
7052G77=`test $ac_compiler_gnu = yes && echo yes`
7053ac_ext=c
7054ac_cpp='$CPP $CPPFLAGS'
7055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058
7059
7060
7061# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7062
7063# find the maximum length of command line arguments
7064echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7065echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7066if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7067  echo $ECHO_N "(cached) $ECHO_C" >&6
7068else
7069    i=0
7070  teststring="ABCD"
7071
7072  case $build_os in
7073  msdosdjgpp*)
7074    # On DJGPP, this test can blow up pretty badly due to problems in libc
7075    # (any single argument exceeding 2000 bytes causes a buffer overrun
7076    # during glob expansion).  Even if it were fixed, the result of this
7077    # check would be larger than it should be.
7078    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7079    ;;
7080
7081  gnu*)
7082    # Under GNU Hurd, this test is not required because there is
7083    # no limit to the length of command line arguments.
7084    # Libtool will interpret -1 as no limit whatsoever
7085    lt_cv_sys_max_cmd_len=-1;
7086    ;;
7087
7088  cygwin* | mingw*)
7089    # On Win9x/ME, this test blows up -- it succeeds, but takes
7090    # about 5 minutes as the teststring grows exponentially.
7091    # Worse, since 9x/ME are not pre-emptively multitasking,
7092    # you end up with a "frozen" computer, even though with patience
7093    # the test eventually succeeds (with a max line length of 256k).
7094    # Instead, let's just punt: use the minimum linelength reported by
7095    # all of the supported platforms: 8192 (on NT/2K/XP).
7096    lt_cv_sys_max_cmd_len=8192;
7097    ;;
7098
7099  amigaos*)
7100    # On AmigaOS with pdksh, this test takes hours, literally.
7101    # So we just punt and use a minimum line length of 8192.
7102    lt_cv_sys_max_cmd_len=8192;
7103    ;;
7104
7105  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7106    # This has been around since 386BSD, at least.  Likely further.
7107    if test -x /sbin/sysctl; then
7108      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7109    elif test -x /usr/sbin/sysctl; then
7110      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7111    else
7112      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7113    fi
7114    # And add a safety zone
7115    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7116    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7117    ;;
7118
7119  interix*)
7120    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7121    lt_cv_sys_max_cmd_len=196608
7122    ;;
7123
7124  osf*)
7125    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7126    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7127    # nice to cause kernel panics so lets avoid the loop below.
7128    # First set a reasonable default.
7129    lt_cv_sys_max_cmd_len=16384
7130    #
7131    if test -x /sbin/sysconfig; then
7132      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7133        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7134      esac
7135    fi
7136    ;;
7137  sco3.2v5*)
7138    lt_cv_sys_max_cmd_len=102400
7139    ;;
7140  sysv5* | sco5v6* | sysv4.2uw2*)
7141    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7142    if test -n "$kargmax"; then
7143      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7144    else
7145      lt_cv_sys_max_cmd_len=32768
7146    fi
7147    ;;
7148  *)
7149    # If test is not a shell built-in, we'll probably end up computing a
7150    # maximum length that is only half of the actual maximum length, but
7151    # we can't tell.
7152    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7153    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7154               = "XX$teststring") >/dev/null 2>&1 &&
7155            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7156            lt_cv_sys_max_cmd_len=$new_result &&
7157            test $i != 17 # 1/2 MB should be enough
7158    do
7159      i=`expr $i + 1`
7160      teststring=$teststring$teststring
7161    done
7162    teststring=
7163    # Add a significant safety factor because C++ compilers can tack on massive
7164    # amounts of additional arguments before passing them to the linker.
7165    # It appears as though 1/2 is a usable value.
7166    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7167    ;;
7168  esac
7169
7170fi
7171
7172if test -n $lt_cv_sys_max_cmd_len ; then
7173  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7174echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7175else
7176  echo "$as_me:$LINENO: result: none" >&5
7177echo "${ECHO_T}none" >&6
7178fi
7179
7180
7181
7182
7183# Check for command to grab the raw symbol name followed by C symbol from nm.
7184echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7185echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7186if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7187  echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189
7190# These are sane defaults that work on at least a few old systems.
7191# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7192
7193# Character class describing NM global symbol codes.
7194symcode='[BCDEGRST]'
7195
7196# Regexp to match symbols that can be accessed directly from C.
7197sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7198
7199# Transform an extracted symbol line into a proper C declaration
7200lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7201
7202# Transform an extracted symbol line into symbol name and symbol address
7203lt_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'"
7204
7205# Define system-specific variables.
7206case $host_os in
7207aix*)
7208  symcode='[BCDT]'
7209  ;;
7210cygwin* | mingw* | pw32*)
7211  symcode='[ABCDGISTW]'
7212  ;;
7213hpux*) # Its linker distinguishes data from code symbols
7214  if test "$host_cpu" = ia64; then
7215    symcode='[ABCDEGRST]'
7216  fi
7217  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7218  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'"
7219  ;;
7220linux*)
7221  if test "$host_cpu" = ia64; then
7222    symcode='[ABCDGIRSTW]'
7223    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7224    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'"
7225  fi
7226  ;;
7227irix* | nonstopux*)
7228  symcode='[BCDEGRST]'
7229  ;;
7230osf*)
7231  symcode='[BCDEGQRST]'
7232  ;;
7233solaris*)
7234  symcode='[BDRT]'
7235  ;;
7236sco3.2v5*)
7237  symcode='[DT]'
7238  ;;
7239sysv4.2uw2*)
7240  symcode='[DT]'
7241  ;;
7242sysv5* | sco5v6* | unixware* | OpenUNIX*)
7243  symcode='[ABDT]'
7244  ;;
7245sysv4)
7246  symcode='[DFNSTU]'
7247  ;;
7248esac
7249
7250# Handle CRLF in mingw tool chain
7251opt_cr=
7252case $build_os in
7253mingw*)
7254  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7255  ;;
7256esac
7257
7258# If we're using GNU nm, then use its standard symbol codes.
7259case `$NM -V 2>&1` in
7260*GNU* | *'with BFD'*)
7261  symcode='[ABCDGIRSTW]' ;;
7262esac
7263
7264# Try without a prefix undercore, then with it.
7265for ac_symprfx in "" "_"; do
7266
7267  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7268  symxfrm="\\1 $ac_symprfx\\2 \\2"
7269
7270  # Write the raw and C identifiers.
7271  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7272
7273  # Check to see that the pipe works correctly.
7274  pipe_works=no
7275
7276  rm -f conftest*
7277  cat > conftest.$ac_ext <<EOF
7278#ifdef __cplusplus
7279extern "C" {
7280#endif
7281char nm_test_var;
7282void nm_test_func(){}
7283#ifdef __cplusplus
7284}
7285#endif
7286int main(){nm_test_var='a';nm_test_func();return(0);}
7287EOF
7288
7289  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7290  (eval $ac_compile) 2>&5
7291  ac_status=$?
7292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293  (exit $ac_status); }; then
7294    # Now try to grab the symbols.
7295    nlist=conftest.nm
7296    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7297  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7298  ac_status=$?
7299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300  (exit $ac_status); } && test -s "$nlist"; then
7301      # Try sorting and uniquifying the output.
7302      if sort "$nlist" | uniq > "$nlist"T; then
7303        mv -f "$nlist"T "$nlist"
7304      else
7305        rm -f "$nlist"T
7306      fi
7307
7308      # Make sure that we snagged all the symbols we need.
7309      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7310        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7311          cat <<EOF > conftest.$ac_ext
7312#ifdef __cplusplus
7313extern "C" {
7314#endif
7315
7316EOF
7317          # Now generate the symbol file.
7318          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7319
7320          cat <<EOF >> conftest.$ac_ext
7321#if defined (__STDC__) && __STDC__
7322# define lt_ptr_t void *
7323#else
7324# define lt_ptr_t char *
7325# define const
7326#endif
7327
7328/* The mapping between symbol names and symbols. */
7329const struct {
7330  const char *name;
7331  lt_ptr_t address;
7332}
7333lt_preloaded_symbols[] =
7334{
7335EOF
7336          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7337          cat <<\EOF >> conftest.$ac_ext
7338  {0, (lt_ptr_t) 0}
7339};
7340
7341#ifdef __cplusplus
7342}
7343#endif
7344EOF
7345          # Now try linking the two files.
7346          mv conftest.$ac_objext conftstm.$ac_objext
7347          lt_save_LIBS="$LIBS"
7348          lt_save_CFLAGS="$CFLAGS"
7349          LIBS="conftstm.$ac_objext"
7350          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7351          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352  (eval $ac_link) 2>&5
7353  ac_status=$?
7354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7356            pipe_works=yes
7357          fi
7358          LIBS="$lt_save_LIBS"
7359          CFLAGS="$lt_save_CFLAGS"
7360        else
7361          echo "cannot find nm_test_func in $nlist" >&5
7362        fi
7363      else
7364        echo "cannot find nm_test_var in $nlist" >&5
7365      fi
7366    else
7367      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7368    fi
7369  else
7370    echo "$progname: failed program was:" >&5
7371    cat conftest.$ac_ext >&5
7372  fi
7373  rm -f conftest* conftst*
7374
7375  # Do not use the global_symbol_pipe unless it works.
7376  if test "$pipe_works" = yes; then
7377    break
7378  else
7379    lt_cv_sys_global_symbol_pipe=
7380  fi
7381done
7382
7383fi
7384
7385if test -z "$lt_cv_sys_global_symbol_pipe"; then
7386  lt_cv_sys_global_symbol_to_cdecl=
7387fi
7388if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7389  echo "$as_me:$LINENO: result: failed" >&5
7390echo "${ECHO_T}failed" >&6
7391else
7392  echo "$as_me:$LINENO: result: ok" >&5
7393echo "${ECHO_T}ok" >&6
7394fi
7395
7396echo "$as_me:$LINENO: checking for objdir" >&5
7397echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7398if test "${lt_cv_objdir+set}" = set; then
7399  echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401  rm -f .libs 2>/dev/null
7402mkdir .libs 2>/dev/null
7403if test -d .libs; then
7404  lt_cv_objdir=.libs
7405else
7406  # MS-DOS does not allow filenames that begin with a dot.
7407  lt_cv_objdir=_libs
7408fi
7409rmdir .libs 2>/dev/null
7410fi
7411echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7412echo "${ECHO_T}$lt_cv_objdir" >&6
7413objdir=$lt_cv_objdir
7414
7415
7416
7417
7418
7419case $host_os in
7420aix3*)
7421  # AIX sometimes has problems with the GCC collect2 program.  For some
7422  # reason, if we set the COLLECT_NAMES environment variable, the problems
7423  # vanish in a puff of smoke.
7424  if test "X${COLLECT_NAMES+set}" != Xset; then
7425    COLLECT_NAMES=
7426    export COLLECT_NAMES
7427  fi
7428  ;;
7429esac
7430
7431# Sed substitution that helps us do robust quoting.  It backslashifies
7432# metacharacters that are still active within double-quoted strings.
7433Xsed='sed -e 1s/^X//'
7434sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7435
7436# Same as above, but do not quote variable references.
7437double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7438
7439# Sed substitution to delay expansion of an escaped shell variable in a
7440# double_quote_subst'ed string.
7441delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7442
7443# Sed substitution to avoid accidental globbing in evaled expressions
7444no_glob_subst='s/\*/\\\*/g'
7445
7446# Constants:
7447rm="rm -f"
7448
7449# Global variables:
7450default_ofile=libtool
7451can_build_shared=yes
7452
7453# All known linkers require a `.a' archive for static linking (except MSVC,
7454# which needs '.lib').
7455libext=a
7456ltmain="$ac_aux_dir/ltmain.sh"
7457ofile="$default_ofile"
7458with_gnu_ld="$lt_cv_prog_gnu_ld"
7459
7460if test -n "$ac_tool_prefix"; then
7461  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7462set dummy ${ac_tool_prefix}ar; ac_word=$2
7463echo "$as_me:$LINENO: checking for $ac_word" >&5
7464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7465if test "${ac_cv_prog_AR+set}" = set; then
7466  echo $ECHO_N "(cached) $ECHO_C" >&6
7467else
7468  if test -n "$AR"; then
7469  ac_cv_prog_AR="$AR" # Let the user override the test.
7470else
7471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472for as_dir in $PATH
7473do
7474  IFS=$as_save_IFS
7475  test -z "$as_dir" && as_dir=.
7476  for ac_exec_ext in '' $ac_executable_extensions; do
7477  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478    ac_cv_prog_AR="${ac_tool_prefix}ar"
7479    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480    break 2
7481  fi
7482done
7483done
7484
7485fi
7486fi
7487AR=$ac_cv_prog_AR
7488if test -n "$AR"; then
7489  echo "$as_me:$LINENO: result: $AR" >&5
7490echo "${ECHO_T}$AR" >&6
7491else
7492  echo "$as_me:$LINENO: result: no" >&5
7493echo "${ECHO_T}no" >&6
7494fi
7495
7496fi
7497if test -z "$ac_cv_prog_AR"; then
7498  ac_ct_AR=$AR
7499  # Extract the first word of "ar", so it can be a program name with args.
7500set dummy ar; ac_word=$2
7501echo "$as_me:$LINENO: checking for $ac_word" >&5
7502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7503if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7504  echo $ECHO_N "(cached) $ECHO_C" >&6
7505else
7506  if test -n "$ac_ct_AR"; then
7507  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7508else
7509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510for as_dir in $PATH
7511do
7512  IFS=$as_save_IFS
7513  test -z "$as_dir" && as_dir=.
7514  for ac_exec_ext in '' $ac_executable_extensions; do
7515  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516    ac_cv_prog_ac_ct_AR="ar"
7517    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518    break 2
7519  fi
7520done
7521done
7522
7523  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7524fi
7525fi
7526ac_ct_AR=$ac_cv_prog_ac_ct_AR
7527if test -n "$ac_ct_AR"; then
7528  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7529echo "${ECHO_T}$ac_ct_AR" >&6
7530else
7531  echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6
7533fi
7534
7535  AR=$ac_ct_AR
7536else
7537  AR="$ac_cv_prog_AR"
7538fi
7539
7540if test -n "$ac_tool_prefix"; then
7541  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7542set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7543echo "$as_me:$LINENO: checking for $ac_word" >&5
7544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545if test "${ac_cv_prog_RANLIB+set}" = set; then
7546  echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548  if test -n "$RANLIB"; then
7549  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7550else
7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554  IFS=$as_save_IFS
7555  test -z "$as_dir" && as_dir=.
7556  for ac_exec_ext in '' $ac_executable_extensions; do
7557  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560    break 2
7561  fi
7562done
7563done
7564
7565fi
7566fi
7567RANLIB=$ac_cv_prog_RANLIB
7568if test -n "$RANLIB"; then
7569  echo "$as_me:$LINENO: result: $RANLIB" >&5
7570echo "${ECHO_T}$RANLIB" >&6
7571else
7572  echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6
7574fi
7575
7576fi
7577if test -z "$ac_cv_prog_RANLIB"; then
7578  ac_ct_RANLIB=$RANLIB
7579  # Extract the first word of "ranlib", so it can be a program name with args.
7580set dummy ranlib; ac_word=$2
7581echo "$as_me:$LINENO: checking for $ac_word" >&5
7582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7583if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7584  echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586  if test -n "$ac_ct_RANLIB"; then
7587  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592  IFS=$as_save_IFS
7593  test -z "$as_dir" && as_dir=.
7594  for ac_exec_ext in '' $ac_executable_extensions; do
7595  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596    ac_cv_prog_ac_ct_RANLIB="ranlib"
7597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598    break 2
7599  fi
7600done
7601done
7602
7603  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7604fi
7605fi
7606ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7607if test -n "$ac_ct_RANLIB"; then
7608  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7609echo "${ECHO_T}$ac_ct_RANLIB" >&6
7610else
7611  echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6
7613fi
7614
7615  RANLIB=$ac_ct_RANLIB
7616else
7617  RANLIB="$ac_cv_prog_RANLIB"
7618fi
7619
7620if test -n "$ac_tool_prefix"; then
7621  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7622set dummy ${ac_tool_prefix}strip; ac_word=$2
7623echo "$as_me:$LINENO: checking for $ac_word" >&5
7624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7625if test "${ac_cv_prog_STRIP+set}" = set; then
7626  echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628  if test -n "$STRIP"; then
7629  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7630else
7631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632for as_dir in $PATH
7633do
7634  IFS=$as_save_IFS
7635  test -z "$as_dir" && as_dir=.
7636  for ac_exec_ext in '' $ac_executable_extensions; do
7637  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640    break 2
7641  fi
7642done
7643done
7644
7645fi
7646fi
7647STRIP=$ac_cv_prog_STRIP
7648if test -n "$STRIP"; then
7649  echo "$as_me:$LINENO: result: $STRIP" >&5
7650echo "${ECHO_T}$STRIP" >&6
7651else
7652  echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6
7654fi
7655
7656fi
7657if test -z "$ac_cv_prog_STRIP"; then
7658  ac_ct_STRIP=$STRIP
7659  # Extract the first word of "strip", so it can be a program name with args.
7660set dummy strip; ac_word=$2
7661echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7663if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  if test -n "$ac_ct_STRIP"; then
7667  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7668else
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672  IFS=$as_save_IFS
7673  test -z "$as_dir" && as_dir=.
7674  for ac_exec_ext in '' $ac_executable_extensions; do
7675  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676    ac_cv_prog_ac_ct_STRIP="strip"
7677    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678    break 2
7679  fi
7680done
7681done
7682
7683  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7684fi
7685fi
7686ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7687if test -n "$ac_ct_STRIP"; then
7688  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7689echo "${ECHO_T}$ac_ct_STRIP" >&6
7690else
7691  echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6
7693fi
7694
7695  STRIP=$ac_ct_STRIP
7696else
7697  STRIP="$ac_cv_prog_STRIP"
7698fi
7699
7700
7701old_CC="$CC"
7702old_CFLAGS="$CFLAGS"
7703
7704# Set sane defaults for various variables
7705test -z "$AR" && AR=ar
7706test -z "$AR_FLAGS" && AR_FLAGS=cru
7707test -z "$AS" && AS=as
7708test -z "$CC" && CC=cc
7709test -z "$LTCC" && LTCC=$CC
7710test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7711test -z "$DLLTOOL" && DLLTOOL=dlltool
7712test -z "$LD" && LD=ld
7713test -z "$LN_S" && LN_S="ln -s"
7714test -z "$MAGIC_CMD" && MAGIC_CMD=file
7715test -z "$NM" && NM=nm
7716test -z "$SED" && SED=sed
7717test -z "$OBJDUMP" && OBJDUMP=objdump
7718test -z "$RANLIB" && RANLIB=:
7719test -z "$STRIP" && STRIP=:
7720test -z "$ac_objext" && ac_objext=o
7721
7722# Determine commands to create old-style static archives.
7723old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7724old_postinstall_cmds='chmod 644 $oldlib'
7725old_postuninstall_cmds=
7726
7727if test -n "$RANLIB"; then
7728  case $host_os in
7729  openbsd*)
7730    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7731    ;;
7732  *)
7733    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7734    ;;
7735  esac
7736  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7737fi
7738
7739for cc_temp in $compiler""; do
7740  case $cc_temp in
7741    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7742    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7743    \-*) ;;
7744    *) break;;
7745  esac
7746done
7747cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7748
7749
7750# Only perform the check for file, if the check method requires it
7751case $deplibs_check_method in
7752file_magic*)
7753  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7754    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7755echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7756if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7757  echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759  case $MAGIC_CMD in
7760[\\/*] |  ?:[\\/]*)
7761  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7762  ;;
7763*)
7764  lt_save_MAGIC_CMD="$MAGIC_CMD"
7765  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7766  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7767  for ac_dir in $ac_dummy; do
7768    IFS="$lt_save_ifs"
7769    test -z "$ac_dir" && ac_dir=.
7770    if test -f $ac_dir/${ac_tool_prefix}file; then
7771      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7772      if test -n "$file_magic_test_file"; then
7773        case $deplibs_check_method in
7774        "file_magic "*)
7775          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7776          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7777          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7778            $EGREP "$file_magic_regex" > /dev/null; then
7779            :
7780          else
7781            cat <<EOF 1>&2
7782
7783*** Warning: the command libtool uses to detect shared libraries,
7784*** $file_magic_cmd, produces output that libtool cannot recognize.
7785*** The result is that libtool may fail to recognize shared libraries
7786*** as such.  This will affect the creation of libtool libraries that
7787*** depend on shared libraries, but programs linked with such libtool
7788*** libraries will work regardless of this problem.  Nevertheless, you
7789*** may want to report the problem to your system manager and/or to
7790*** bug-libtool@gnu.org
7791
7792EOF
7793          fi ;;
7794        esac
7795      fi
7796      break
7797    fi
7798  done
7799  IFS="$lt_save_ifs"
7800  MAGIC_CMD="$lt_save_MAGIC_CMD"
7801  ;;
7802esac
7803fi
7804
7805MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7806if test -n "$MAGIC_CMD"; then
7807  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7808echo "${ECHO_T}$MAGIC_CMD" >&6
7809else
7810  echo "$as_me:$LINENO: result: no" >&5
7811echo "${ECHO_T}no" >&6
7812fi
7813
7814if test -z "$lt_cv_path_MAGIC_CMD"; then
7815  if test -n "$ac_tool_prefix"; then
7816    echo "$as_me:$LINENO: checking for file" >&5
7817echo $ECHO_N "checking for file... $ECHO_C" >&6
7818if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7819  echo $ECHO_N "(cached) $ECHO_C" >&6
7820else
7821  case $MAGIC_CMD in
7822[\\/*] |  ?:[\\/]*)
7823  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7824  ;;
7825*)
7826  lt_save_MAGIC_CMD="$MAGIC_CMD"
7827  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7828  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7829  for ac_dir in $ac_dummy; do
7830    IFS="$lt_save_ifs"
7831    test -z "$ac_dir" && ac_dir=.
7832    if test -f $ac_dir/file; then
7833      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7834      if test -n "$file_magic_test_file"; then
7835        case $deplibs_check_method in
7836        "file_magic "*)
7837          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7838          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7839          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7840            $EGREP "$file_magic_regex" > /dev/null; then
7841            :
7842          else
7843            cat <<EOF 1>&2
7844
7845*** Warning: the command libtool uses to detect shared libraries,
7846*** $file_magic_cmd, produces output that libtool cannot recognize.
7847*** The result is that libtool may fail to recognize shared libraries
7848*** as such.  This will affect the creation of libtool libraries that
7849*** depend on shared libraries, but programs linked with such libtool
7850*** libraries will work regardless of this problem.  Nevertheless, you
7851*** may want to report the problem to your system manager and/or to
7852*** bug-libtool@gnu.org
7853
7854EOF
7855          fi ;;
7856        esac
7857      fi
7858      break
7859    fi
7860  done
7861  IFS="$lt_save_ifs"
7862  MAGIC_CMD="$lt_save_MAGIC_CMD"
7863  ;;
7864esac
7865fi
7866
7867MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7868if test -n "$MAGIC_CMD"; then
7869  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7870echo "${ECHO_T}$MAGIC_CMD" >&6
7871else
7872  echo "$as_me:$LINENO: result: no" >&5
7873echo "${ECHO_T}no" >&6
7874fi
7875
7876  else
7877    MAGIC_CMD=:
7878  fi
7879fi
7880
7881  fi
7882  ;;
7883esac
7884
7885enable_dlopen=no
7886enable_win32_dll=no
7887
7888# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7889if test "${enable_libtool_lock+set}" = set; then
7890  enableval="$enable_libtool_lock"
7891
7892fi;
7893test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7894
7895
7896# Check whether --with-pic or --without-pic was given.
7897if test "${with_pic+set}" = set; then
7898  withval="$with_pic"
7899  pic_mode="$withval"
7900else
7901  pic_mode=default
7902fi;
7903test -z "$pic_mode" && pic_mode=default
7904
7905# Use C for the default configuration in the libtool script
7906tagname=
7907lt_save_CC="$CC"
7908ac_ext=c
7909ac_cpp='$CPP $CPPFLAGS'
7910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7912ac_compiler_gnu=$ac_cv_c_compiler_gnu
7913
7914
7915# Source file extension for C test sources.
7916ac_ext=c
7917
7918# Object file extension for compiled C test sources.
7919objext=o
7920objext=$objext
7921
7922# Code to be used in simple compile tests
7923lt_simple_compile_test_code="int some_variable = 0;\n"
7924
7925# Code to be used in simple link tests
7926lt_simple_link_test_code='int main(){return(0);}\n'
7927
7928
7929# If no C compiler was specified, use CC.
7930LTCC=${LTCC-"$CC"}
7931
7932# If no C compiler flags were specified, use CFLAGS.
7933LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7934
7935# Allow CC to be a program name with arguments.
7936compiler=$CC
7937
7938
7939# save warnings/boilerplate of simple test code
7940ac_outfile=conftest.$ac_objext
7941printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7942eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7943_lt_compiler_boilerplate=`cat conftest.err`
7944$rm conftest*
7945
7946ac_outfile=conftest.$ac_objext
7947printf "$lt_simple_link_test_code" >conftest.$ac_ext
7948eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7949_lt_linker_boilerplate=`cat conftest.err`
7950$rm conftest*
7951
7952
7953## CAVEAT EMPTOR:
7954## There is no encapsulation within the following macros, do not change
7955## the running order or otherwise move them around unless you know exactly
7956## what you are doing...
7957
7958lt_prog_compiler_no_builtin_flag=
7959
7960if test "$GCC" = yes; then
7961  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7962
7963
7964echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7965echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7966if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7967  echo $ECHO_N "(cached) $ECHO_C" >&6
7968else
7969  lt_cv_prog_compiler_rtti_exceptions=no
7970  ac_outfile=conftest.$ac_objext
7971   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7972   lt_compiler_flag="-fno-rtti -fno-exceptions"
7973   # Insert the option either (1) after the last *FLAGS variable, or
7974   # (2) before a word containing "conftest.", or (3) at the end.
7975   # Note that $ac_compile itself does not contain backslashes and begins
7976   # with a dollar sign (not a hyphen), so the echo should work correctly.
7977   # The option is referenced via a variable to avoid confusing sed.
7978   lt_compile=`echo "$ac_compile" | $SED \
7979   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7981   -e 's:$: $lt_compiler_flag:'`
7982   (eval echo "\"\$as_me:7982: $lt_compile\"" >&5)
7983   (eval "$lt_compile" 2>conftest.err)
7984   ac_status=$?
7985   cat conftest.err >&5
7986   echo "$as_me:7986: \$? = $ac_status" >&5
7987   if (exit $ac_status) && test -s "$ac_outfile"; then
7988     # The compiler can only warn and ignore the option if not recognized
7989     # So say no if there are warnings other than the usual output.
7990     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7991     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7992     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7993       lt_cv_prog_compiler_rtti_exceptions=yes
7994     fi
7995   fi
7996   $rm conftest*
7997
7998fi
7999echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8000echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8001
8002if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8003    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8004else
8005    :
8006fi
8007
8008fi
8009
8010lt_prog_compiler_wl=
8011lt_prog_compiler_pic=
8012lt_prog_compiler_static=
8013
8014echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8015echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8016
8017  if test "$GCC" = yes; then
8018    lt_prog_compiler_wl='-Wl,'
8019    lt_prog_compiler_static='-static'
8020
8021    case $host_os in
8022      aix*)
8023      # All AIX code is PIC.
8024      if test "$host_cpu" = ia64; then
8025        # AIX 5 now supports IA64 processor
8026        lt_prog_compiler_static='-Bstatic'
8027      fi
8028      ;;
8029
8030    amigaos*)
8031      # FIXME: we need at least 68020 code to build shared libraries, but
8032      # adding the `-m68020' flag to GCC prevents building anything better,
8033      # like `-m68040'.
8034      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8035      ;;
8036
8037    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8038      # PIC is the default for these OSes.
8039      ;;
8040
8041    mingw* | pw32* | os2*)
8042      # This hack is so that the source file can tell whether it is being
8043      # built for inclusion in a dll (and should export symbols for example).
8044      lt_prog_compiler_pic='-DDLL_EXPORT'
8045      ;;
8046
8047    darwin* | rhapsody*)
8048      # PIC is the default on this platform
8049      # Common symbols not allowed in MH_DYLIB files
8050      lt_prog_compiler_pic='-fno-common'
8051      ;;
8052
8053    interix3*)
8054      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8055      # Instead, we relocate shared libraries at runtime.
8056      ;;
8057
8058    msdosdjgpp*)
8059      # Just because we use GCC doesn't mean we suddenly get shared libraries
8060      # on systems that don't support them.
8061      lt_prog_compiler_can_build_shared=no
8062      enable_shared=no
8063      ;;
8064
8065    sysv4*MP*)
8066      if test -d /usr/nec; then
8067        lt_prog_compiler_pic=-Kconform_pic
8068      fi
8069      ;;
8070
8071    hpux*)
8072      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8073      # not for PA HP-UX.
8074      case $host_cpu in
8075      hppa*64*|ia64*)
8076        # +Z the default
8077        ;;
8078      *)
8079        lt_prog_compiler_pic='-fPIC'
8080        ;;
8081      esac
8082      ;;
8083
8084    *)
8085      lt_prog_compiler_pic='-fPIC'
8086      ;;
8087    esac
8088  else
8089    # PORTME Check for flag to pass linker flags through the system compiler.
8090    case $host_os in
8091    aix*)
8092      lt_prog_compiler_wl='-Wl,'
8093      if test "$host_cpu" = ia64; then
8094        # AIX 5 now supports IA64 processor
8095        lt_prog_compiler_static='-Bstatic'
8096      else
8097        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8098      fi
8099      ;;
8100      darwin*)
8101        # PIC is the default on this platform
8102        # Common symbols not allowed in MH_DYLIB files
8103       case $cc_basename in
8104         xlc*)
8105         lt_prog_compiler_pic='-qnocommon'
8106         lt_prog_compiler_wl='-Wl,'
8107         ;;
8108       esac
8109       ;;
8110
8111    mingw* | pw32* | os2*)
8112      # This hack is so that the source file can tell whether it is being
8113      # built for inclusion in a dll (and should export symbols for example).
8114      lt_prog_compiler_pic='-DDLL_EXPORT'
8115      ;;
8116
8117    hpux9* | hpux10* | hpux11*)
8118      lt_prog_compiler_wl='-Wl,'
8119      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8120      # not for PA HP-UX.
8121      case $host_cpu in
8122      hppa*64*|ia64*)
8123        # +Z the default
8124        ;;
8125      *)
8126        lt_prog_compiler_pic='+Z'
8127        ;;
8128      esac
8129      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8130      lt_prog_compiler_static='${wl}-a ${wl}archive'
8131      ;;
8132
8133    irix5* | irix6* | nonstopux*)
8134      lt_prog_compiler_wl='-Wl,'
8135      # PIC (with -KPIC) is the default.
8136      lt_prog_compiler_static='-non_shared'
8137      ;;
8138
8139    newsos6)
8140      lt_prog_compiler_pic='-KPIC'
8141      lt_prog_compiler_static='-Bstatic'
8142      ;;
8143
8144    linux*)
8145      case $cc_basename in
8146      icc* | ecc*)
8147        lt_prog_compiler_wl='-Wl,'
8148        lt_prog_compiler_pic='-KPIC'
8149        lt_prog_compiler_static='-static'
8150        ;;
8151      pgcc* | pgf77* | pgf90* | pgf95*)
8152        # Portland Group compilers (*not* the Pentium gcc compiler,
8153        # which looks to be a dead project)
8154        lt_prog_compiler_wl='-Wl,'
8155        lt_prog_compiler_pic='-fpic'
8156        lt_prog_compiler_static='-Bstatic'
8157        ;;
8158      ccc*)
8159        lt_prog_compiler_wl='-Wl,'
8160        # All Alpha code is PIC.
8161        lt_prog_compiler_static='-non_shared'
8162        ;;
8163      esac
8164      ;;
8165
8166    osf3* | osf4* | osf5*)
8167      lt_prog_compiler_wl='-Wl,'
8168      # All OSF/1 code is PIC.
8169      lt_prog_compiler_static='-non_shared'
8170      ;;
8171
8172    solaris*)
8173      lt_prog_compiler_pic='-KPIC'
8174      lt_prog_compiler_static='-Bstatic'
8175      case $cc_basename in
8176      f77* | f90* | f95*)
8177        lt_prog_compiler_wl='-Qoption ld ';;
8178      *)
8179        lt_prog_compiler_wl='-Wl,';;
8180      esac
8181      ;;
8182
8183    sunos4*)
8184      lt_prog_compiler_wl='-Qoption ld '
8185      lt_prog_compiler_pic='-PIC'
8186      lt_prog_compiler_static='-Bstatic'
8187      ;;
8188
8189    sysv4 | sysv4.2uw2* | sysv4.3*)
8190      lt_prog_compiler_wl='-Wl,'
8191      lt_prog_compiler_pic='-KPIC'
8192      lt_prog_compiler_static='-Bstatic'
8193      ;;
8194
8195    sysv4*MP*)
8196      if test -d /usr/nec ;then
8197        lt_prog_compiler_pic='-Kconform_pic'
8198        lt_prog_compiler_static='-Bstatic'
8199      fi
8200      ;;
8201
8202    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8203      lt_prog_compiler_wl='-Wl,'
8204      lt_prog_compiler_pic='-KPIC'
8205      lt_prog_compiler_static='-Bstatic'
8206      ;;
8207
8208    unicos*)
8209      lt_prog_compiler_wl='-Wl,'
8210      lt_prog_compiler_can_build_shared=no
8211      ;;
8212
8213    uts4*)
8214      lt_prog_compiler_pic='-pic'
8215      lt_prog_compiler_static='-Bstatic'
8216      ;;
8217
8218    *)
8219      lt_prog_compiler_can_build_shared=no
8220      ;;
8221    esac
8222  fi
8223
8224echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8225echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8226
8227#
8228# Check to make sure the PIC flag actually works.
8229#
8230if test -n "$lt_prog_compiler_pic"; then
8231
8232echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8233echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8234if test "${lt_prog_compiler_pic_works+set}" = set; then
8235  echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237  lt_prog_compiler_pic_works=no
8238  ac_outfile=conftest.$ac_objext
8239   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8240   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8241   # Insert the option either (1) after the last *FLAGS variable, or
8242   # (2) before a word containing "conftest.", or (3) at the end.
8243   # Note that $ac_compile itself does not contain backslashes and begins
8244   # with a dollar sign (not a hyphen), so the echo should work correctly.
8245   # The option is referenced via a variable to avoid confusing sed.
8246   lt_compile=`echo "$ac_compile" | $SED \
8247   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8248   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8249   -e 's:$: $lt_compiler_flag:'`
8250   (eval echo "\"\$as_me:8250: $lt_compile\"" >&5)
8251   (eval "$lt_compile" 2>conftest.err)
8252   ac_status=$?
8253   cat conftest.err >&5
8254   echo "$as_me:8254: \$? = $ac_status" >&5
8255   if (exit $ac_status) && test -s "$ac_outfile"; then
8256     # The compiler can only warn and ignore the option if not recognized
8257     # So say no if there are warnings other than the usual output.
8258     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8259     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8260     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8261       lt_prog_compiler_pic_works=yes
8262     fi
8263   fi
8264   $rm conftest*
8265
8266fi
8267echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8268echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8269
8270if test x"$lt_prog_compiler_pic_works" = xyes; then
8271    case $lt_prog_compiler_pic in
8272     "" | " "*) ;;
8273     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8274     esac
8275else
8276    lt_prog_compiler_pic=
8277     lt_prog_compiler_can_build_shared=no
8278fi
8279
8280fi
8281case $host_os in
8282  # For platforms which do not support PIC, -DPIC is meaningless:
8283  *djgpp*)
8284    lt_prog_compiler_pic=
8285    ;;
8286  *)
8287    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8288    ;;
8289esac
8290
8291#
8292# Check to make sure the static flag actually works.
8293#
8294wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8295echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8296echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8297if test "${lt_prog_compiler_static_works+set}" = set; then
8298  echo $ECHO_N "(cached) $ECHO_C" >&6
8299else
8300  lt_prog_compiler_static_works=no
8301   save_LDFLAGS="$LDFLAGS"
8302   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8303   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8304   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8305     # The linker can only warn and ignore the option if not recognized
8306     # So say no if there are warnings
8307     if test -s conftest.err; then
8308       # Append any errors to the config.log.
8309       cat conftest.err 1>&5
8310       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8311       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8312       if diff conftest.exp conftest.er2 >/dev/null; then
8313         lt_prog_compiler_static_works=yes
8314       fi
8315     else
8316       lt_prog_compiler_static_works=yes
8317     fi
8318   fi
8319   $rm conftest*
8320   LDFLAGS="$save_LDFLAGS"
8321
8322fi
8323echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8324echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8325
8326if test x"$lt_prog_compiler_static_works" = xyes; then
8327    :
8328else
8329    lt_prog_compiler_static=
8330fi
8331
8332
8333echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8334echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8335if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8336  echo $ECHO_N "(cached) $ECHO_C" >&6
8337else
8338  lt_cv_prog_compiler_c_o=no
8339   $rm -r conftest 2>/dev/null
8340   mkdir conftest
8341   cd conftest
8342   mkdir out
8343   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8344
8345   lt_compiler_flag="-o out/conftest2.$ac_objext"
8346   # Insert the option either (1) after the last *FLAGS variable, or
8347   # (2) before a word containing "conftest.", or (3) at the end.
8348   # Note that $ac_compile itself does not contain backslashes and begins
8349   # with a dollar sign (not a hyphen), so the echo should work correctly.
8350   lt_compile=`echo "$ac_compile" | $SED \
8351   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8352   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8353   -e 's:$: $lt_compiler_flag:'`
8354   (eval echo "\"\$as_me:8354: $lt_compile\"" >&5)
8355   (eval "$lt_compile" 2>out/conftest.err)
8356   ac_status=$?
8357   cat out/conftest.err >&5
8358   echo "$as_me:8358: \$? = $ac_status" >&5
8359   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8360   then
8361     # The compiler can only warn and ignore the option if not recognized
8362     # So say no if there are warnings
8363     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8364     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8365     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8366       lt_cv_prog_compiler_c_o=yes
8367     fi
8368   fi
8369   chmod u+w . 2>&5
8370   $rm conftest*
8371   # SGI C++ compiler will create directory out/ii_files/ for
8372   # template instantiation
8373   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8374   $rm out/* && rmdir out
8375   cd ..
8376   rmdir conftest
8377   $rm conftest*
8378
8379fi
8380echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8381echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8382
8383
8384hard_links="nottested"
8385if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8386  # do not overwrite the value of need_locks provided by the user
8387  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8388echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8389  hard_links=yes
8390  $rm conftest*
8391  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8392  touch conftest.a
8393  ln conftest.a conftest.b 2>&5 || hard_links=no
8394  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8395  echo "$as_me:$LINENO: result: $hard_links" >&5
8396echo "${ECHO_T}$hard_links" >&6
8397  if test "$hard_links" = no; then
8398    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8399echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8400    need_locks=warn
8401  fi
8402else
8403  need_locks=no
8404fi
8405
8406echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8407echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8408
8409  runpath_var=
8410  allow_undefined_flag=
8411  enable_shared_with_static_runtimes=no
8412  archive_cmds=
8413  archive_expsym_cmds=
8414  old_archive_From_new_cmds=
8415  old_archive_from_expsyms_cmds=
8416  export_dynamic_flag_spec=
8417  whole_archive_flag_spec=
8418  thread_safe_flag_spec=
8419  hardcode_libdir_flag_spec=
8420  hardcode_libdir_flag_spec_ld=
8421  hardcode_libdir_separator=
8422  hardcode_direct=no
8423  hardcode_minus_L=no
8424  hardcode_shlibpath_var=unsupported
8425  link_all_deplibs=unknown
8426  hardcode_automatic=no
8427  module_cmds=
8428  module_expsym_cmds=
8429  always_export_symbols=no
8430  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8431  # include_expsyms should be a list of space-separated symbols to be *always*
8432  # included in the symbol list
8433  include_expsyms=
8434  # exclude_expsyms can be an extended regexp of symbols to exclude
8435  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8436  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8437  # as well as any symbol that contains `d'.
8438  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8439  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8440  # platforms (ab)use it in PIC code, but their linkers get confused if
8441  # the symbol is explicitly referenced.  Since portable code cannot
8442  # rely on this symbol name, it's probably fine to never include it in
8443  # preloaded symbol tables.
8444  extract_expsyms_cmds=
8445  # Just being paranoid about ensuring that cc_basename is set.
8446  for cc_temp in $compiler""; do
8447  case $cc_temp in
8448    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8449    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8450    \-*) ;;
8451    *) break;;
8452  esac
8453done
8454cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8455
8456  case $host_os in
8457  cygwin* | mingw* | pw32*)
8458    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8459    # When not using gcc, we currently assume that we are using
8460    # Microsoft Visual C++.
8461    if test "$GCC" != yes; then
8462      with_gnu_ld=no
8463    fi
8464    ;;
8465  interix*)
8466    # we just hope/assume this is gcc and not c89 (= MSVC++)
8467    with_gnu_ld=yes
8468    ;;
8469  openbsd*)
8470    with_gnu_ld=no
8471    ;;
8472  esac
8473
8474  ld_shlibs=yes
8475  if test "$with_gnu_ld" = yes; then
8476    # If archive_cmds runs LD, not CC, wlarc should be empty
8477    wlarc='${wl}'
8478
8479    # Set some defaults for GNU ld with shared library support. These
8480    # are reset later if shared libraries are not supported. Putting them
8481    # here allows them to be overridden if necessary.
8482    runpath_var=LD_RUN_PATH
8483    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8484    export_dynamic_flag_spec='${wl}--export-dynamic'
8485    # ancient GNU ld didn't support --whole-archive et. al.
8486    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8487        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8488      else
8489        whole_archive_flag_spec=
8490    fi
8491    supports_anon_versioning=no
8492    case `$LD -v 2>/dev/null` in
8493      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8494      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8495      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8496      *\ 2.11.*) ;; # other 2.11 versions
8497      *) supports_anon_versioning=yes ;;
8498    esac
8499
8500    # See if GNU ld supports shared libraries.
8501    case $host_os in
8502    aix3* | aix4* | aix5*)
8503      # On AIX/PPC, the GNU linker is very broken
8504      if test "$host_cpu" != ia64; then
8505        ld_shlibs=no
8506        cat <<EOF 1>&2
8507
8508*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8509*** to be unable to reliably create shared libraries on AIX.
8510*** Therefore, libtool is disabling shared libraries support.  If you
8511*** really care for shared libraries, you may want to modify your PATH
8512*** so that a non-GNU linker is found, and then restart.
8513
8514EOF
8515      fi
8516      ;;
8517
8518    amigaos*)
8519      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)'
8520      hardcode_libdir_flag_spec='-L$libdir'
8521      hardcode_minus_L=yes
8522
8523      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8524      # that the semantics of dynamic libraries on AmigaOS, at least up
8525      # to version 4, is to share data among multiple programs linked
8526      # with the same dynamic library.  Since this doesn't match the
8527      # behavior of shared libraries on other platforms, we can't use
8528      # them.
8529      ld_shlibs=no
8530      ;;
8531
8532    beos*)
8533      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8534        allow_undefined_flag=unsupported
8535        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8536        # support --undefined.  This deserves some investigation.  FIXME
8537        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8538      else
8539        ld_shlibs=no
8540      fi
8541      ;;
8542
8543    cygwin* | mingw* | pw32*)
8544      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8545      # as there is no search path for DLLs.
8546      hardcode_libdir_flag_spec='-L$libdir'
8547      allow_undefined_flag=unsupported
8548      always_export_symbols=no
8549      enable_shared_with_static_runtimes=yes
8550      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8551
8552      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8553        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8554        # If the export-symbols file already is a .def file (1st line
8555        # is EXPORTS), use it as is; otherwise, prepend...
8556        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8557          cp $export_symbols $output_objdir/$soname.def;
8558        else
8559          echo EXPORTS > $output_objdir/$soname.def;
8560          cat $export_symbols >> $output_objdir/$soname.def;
8561        fi~
8562        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8563      else
8564        ld_shlibs=no
8565      fi
8566      ;;
8567
8568    interix3*)
8569      hardcode_direct=no
8570      hardcode_shlibpath_var=no
8571      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8572      export_dynamic_flag_spec='${wl}-E'
8573      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8574      # Instead, shared libraries are loaded at an image base (0x10000000 by
8575      # default) and relocated if they conflict, which is a slow very memory
8576      # consuming and fragmenting process.  To avoid this, we pick a random,
8577      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8578      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8579      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8580      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'
8581      ;;
8582
8583    linux*)
8584      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8585        tmp_addflag=
8586        case $cc_basename,$host_cpu in
8587        pgcc*)                          # Portland Group C compiler
8588          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'
8589          tmp_addflag=' $pic_flag'
8590          ;;
8591        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8592          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'
8593          tmp_addflag=' $pic_flag -Mnomain' ;;
8594        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8595          tmp_addflag=' -i_dynamic' ;;
8596        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8597          tmp_addflag=' -i_dynamic -nofor_main' ;;
8598        ifc* | ifort*)                  # Intel Fortran compiler
8599          tmp_addflag=' -nofor_main' ;;
8600        esac
8601        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8602
8603        if test $supports_anon_versioning = yes; then
8604          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8605  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8606  $echo "local: *; };" >> $output_objdir/$libname.ver~
8607          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8608        fi
8609      else
8610        ld_shlibs=no
8611      fi
8612      ;;
8613
8614    netbsd*)
8615      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8616        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8617        wlarc=
8618      else
8619        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8620        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8621      fi
8622      ;;
8623
8624    solaris*)
8625      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8626        ld_shlibs=no
8627        cat <<EOF 1>&2
8628
8629*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8630*** create shared libraries on Solaris systems.  Therefore, libtool
8631*** is disabling shared libraries support.  We urge you to upgrade GNU
8632*** binutils to release 2.9.1 or newer.  Another option is to modify
8633*** your PATH or compiler configuration so that the native linker is
8634*** used, and then restart.
8635
8636EOF
8637      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8638        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8639        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8640      else
8641        ld_shlibs=no
8642      fi
8643      ;;
8644
8645    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8646      case `$LD -v 2>&1` in
8647        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8648        ld_shlibs=no
8649        cat <<_LT_EOF 1>&2
8650
8651*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8652*** reliably create shared libraries on SCO systems.  Therefore, libtool
8653*** is disabling shared libraries support.  We urge you to upgrade GNU
8654*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8655*** your PATH or compiler configuration so that the native linker is
8656*** used, and then restart.
8657
8658_LT_EOF
8659        ;;
8660        *)
8661          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8662            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8663            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8664            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8665          else
8666            ld_shlibs=no
8667          fi
8668        ;;
8669      esac
8670      ;;
8671
8672    sunos4*)
8673      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8674      wlarc=
8675      hardcode_direct=yes
8676      hardcode_shlibpath_var=no
8677      ;;
8678
8679    *)
8680      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8681        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8683      else
8684        ld_shlibs=no
8685      fi
8686      ;;
8687    esac
8688
8689    if test "$ld_shlibs" = no; then
8690      runpath_var=
8691      hardcode_libdir_flag_spec=
8692      export_dynamic_flag_spec=
8693      whole_archive_flag_spec=
8694    fi
8695  else
8696    # PORTME fill in a description of your system's linker (not GNU ld)
8697    case $host_os in
8698    aix3*)
8699      allow_undefined_flag=unsupported
8700      always_export_symbols=yes
8701      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'
8702      # Note: this linker hardcodes the directories in LIBPATH if there
8703      # are no directories specified by -L.
8704      hardcode_minus_L=yes
8705      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8706        # Neither direct hardcoding nor static linking is supported with a
8707        # broken collect2.
8708        hardcode_direct=unsupported
8709      fi
8710      ;;
8711
8712    aix4* | aix5*)
8713      if test "$host_cpu" = ia64; then
8714        # On IA64, the linker does run time linking by default, so we don't
8715        # have to do anything special.
8716        aix_use_runtimelinking=no
8717        exp_sym_flag='-Bexport'
8718        no_entry_flag=""
8719      else
8720        # If we're using GNU nm, then we don't want the "-C" option.
8721        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8722        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8723          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'
8724        else
8725          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'
8726        fi
8727        aix_use_runtimelinking=no
8728
8729        # Test if we are trying to use run time linking or normal
8730        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8731        # need to do runtime linking.
8732        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8733          for ld_flag in $LDFLAGS; do
8734          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8735            aix_use_runtimelinking=yes
8736            break
8737          fi
8738          done
8739          ;;
8740        esac
8741
8742        exp_sym_flag='-bexport'
8743        no_entry_flag='-bnoentry'
8744      fi
8745
8746      # When large executables or shared objects are built, AIX ld can
8747      # have problems creating the table of contents.  If linking a library
8748      # or program results in "error TOC overflow" add -mminimal-toc to
8749      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8750      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8751
8752      archive_cmds=''
8753      hardcode_direct=yes
8754      hardcode_libdir_separator=':'
8755      link_all_deplibs=yes
8756
8757      if test "$GCC" = yes; then
8758        case $host_os in aix4.[012]|aix4.[012].*)
8759        # We only want to do this on AIX 4.2 and lower, the check
8760        # below for broken collect2 doesn't work under 4.3+
8761          collect2name=`${CC} -print-prog-name=collect2`
8762          if test -f "$collect2name" && \
8763           strings "$collect2name" | grep resolve_lib_name >/dev/null
8764          then
8765          # We have reworked collect2
8766          hardcode_direct=yes
8767          else
8768          # We have old collect2
8769          hardcode_direct=unsupported
8770          # It fails to find uninstalled libraries when the uninstalled
8771          # path is not listed in the libpath.  Setting hardcode_minus_L
8772          # to unsupported forces relinking
8773          hardcode_minus_L=yes
8774          hardcode_libdir_flag_spec='-L$libdir'
8775          hardcode_libdir_separator=
8776          fi
8777          ;;
8778        esac
8779        shared_flag='-shared'
8780        if test "$aix_use_runtimelinking" = yes; then
8781          shared_flag="$shared_flag "'${wl}-G'
8782        fi
8783      else
8784        # not using gcc
8785        if test "$host_cpu" = ia64; then
8786        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8787        # chokes on -Wl,-G. The following line is correct:
8788          shared_flag='-G'
8789        else
8790          if test "$aix_use_runtimelinking" = yes; then
8791            shared_flag='${wl}-G'
8792          else
8793            shared_flag='${wl}-bM:SRE'
8794          fi
8795        fi
8796      fi
8797
8798      # It seems that -bexpall does not export symbols beginning with
8799      # underscore (_), so it is better to generate a list of symbols to export.
8800      always_export_symbols=yes
8801      if test "$aix_use_runtimelinking" = yes; then
8802        # Warning - without using the other runtime loading flags (-brtl),
8803        # -berok will link without error, but may produce a broken library.
8804        allow_undefined_flag='-berok'
8805       # Determine the default libpath from the value encoded in an empty executable.
8806       cat >conftest.$ac_ext <<_ACEOF
8807/* confdefs.h.  */
8808_ACEOF
8809cat confdefs.h >>conftest.$ac_ext
8810cat >>conftest.$ac_ext <<_ACEOF
8811/* end confdefs.h.  */
8812
8813int
8814main ()
8815{
8816
8817  ;
8818  return 0;
8819}
8820_ACEOF
8821rm -f conftest.$ac_objext conftest$ac_exeext
8822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8823  (eval $ac_link) 2>conftest.er1
8824  ac_status=$?
8825  grep -v '^ *+' conftest.er1 >conftest.err
8826  rm -f conftest.er1
8827  cat conftest.err >&5
8828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829  (exit $ac_status); } &&
8830         { ac_try='test -z "$ac_c_werror_flag"
8831                         || test ! -s conftest.err'
8832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833  (eval $ac_try) 2>&5
8834  ac_status=$?
8835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836  (exit $ac_status); }; } &&
8837         { ac_try='test -s conftest$ac_exeext'
8838  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839  (eval $ac_try) 2>&5
8840  ac_status=$?
8841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842  (exit $ac_status); }; }; then
8843
8844aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8845}'`
8846# Check for a 64-bit object if we didn't find anything.
8847if 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; }
8848}'`; fi
8849else
8850  echo "$as_me: failed program was:" >&5
8851sed 's/^/| /' conftest.$ac_ext >&5
8852
8853fi
8854rm -f conftest.err conftest.$ac_objext \
8855      conftest$ac_exeext conftest.$ac_ext
8856if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8857
8858       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8859        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"
8860       else
8861        if test "$host_cpu" = ia64; then
8862          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8863          allow_undefined_flag="-z nodefs"
8864          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"
8865        else
8866         # Determine the default libpath from the value encoded in an empty executable.
8867         cat >conftest.$ac_ext <<_ACEOF
8868/* confdefs.h.  */
8869_ACEOF
8870cat confdefs.h >>conftest.$ac_ext
8871cat >>conftest.$ac_ext <<_ACEOF
8872/* end confdefs.h.  */
8873
8874int
8875main ()
8876{
8877
8878  ;
8879  return 0;
8880}
8881_ACEOF
8882rm -f conftest.$ac_objext conftest$ac_exeext
8883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884  (eval $ac_link) 2>conftest.er1
8885  ac_status=$?
8886  grep -v '^ *+' conftest.er1 >conftest.err
8887  rm -f conftest.er1
8888  cat conftest.err >&5
8889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890  (exit $ac_status); } &&
8891         { ac_try='test -z "$ac_c_werror_flag"
8892                         || test ! -s conftest.err'
8893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894  (eval $ac_try) 2>&5
8895  ac_status=$?
8896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897  (exit $ac_status); }; } &&
8898         { ac_try='test -s conftest$ac_exeext'
8899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900  (eval $ac_try) 2>&5
8901  ac_status=$?
8902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903  (exit $ac_status); }; }; then
8904
8905aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8906}'`
8907# Check for a 64-bit object if we didn't find anything.
8908if 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; }
8909}'`; fi
8910else
8911  echo "$as_me: failed program was:" >&5
8912sed 's/^/| /' conftest.$ac_ext >&5
8913
8914fi
8915rm -f conftest.err conftest.$ac_objext \
8916      conftest$ac_exeext conftest.$ac_ext
8917if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8918
8919         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8920          # Warning - without using the other run time loading flags,
8921          # -berok will link without error, but may produce a broken library.
8922          no_undefined_flag=' ${wl}-bernotok'
8923          allow_undefined_flag=' ${wl}-berok'
8924          # Exported symbols can be pulled into shared objects from archives
8925          whole_archive_flag_spec='$convenience'
8926          archive_cmds_need_lc=yes
8927          # This is similar to how AIX traditionally builds its shared libraries.
8928          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'
8929        fi
8930      fi
8931      ;;
8932
8933    amigaos*)
8934      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)'
8935      hardcode_libdir_flag_spec='-L$libdir'
8936      hardcode_minus_L=yes
8937      # see comment about different semantics on the GNU ld section
8938      ld_shlibs=no
8939      ;;
8940
8941    bsdi[45]*)
8942      export_dynamic_flag_spec=-rdynamic
8943      ;;
8944
8945    cygwin* | mingw* | pw32*)
8946      # When not using gcc, we currently assume that we are using
8947      # Microsoft Visual C++.
8948      # hardcode_libdir_flag_spec is actually meaningless, as there is
8949      # no search path for DLLs.
8950      hardcode_libdir_flag_spec=' '
8951      allow_undefined_flag=unsupported
8952      # Tell ltmain to make .lib files, not .a files.
8953      libext=lib
8954      # Tell ltmain to make .dll files, not .so files.
8955      shrext_cmds=".dll"
8956      # FIXME: Setting linknames here is a bad hack.
8957      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8958      # The linker will automatically build a .lib file if we build a DLL.
8959      old_archive_From_new_cmds='true'
8960      # FIXME: Should let the user specify the lib program.
8961      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8962      fix_srcfile_path='`cygpath -w "$srcfile"`'
8963      enable_shared_with_static_runtimes=yes
8964      ;;
8965
8966    darwin* | rhapsody*)
8967      case $host_os in
8968        rhapsody* | darwin1.[012])
8969         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8970         ;;
8971       *) # Darwin 1.3 on
8972         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8973           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8974         else
8975           case ${MACOSX_DEPLOYMENT_TARGET} in
8976             10.[012])
8977               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8978               ;;
8979             10.*)
8980               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8981               ;;
8982           esac
8983         fi
8984         ;;
8985      esac
8986      archive_cmds_need_lc=no
8987      hardcode_direct=no
8988      hardcode_automatic=yes
8989      hardcode_shlibpath_var=unsupported
8990      whole_archive_flag_spec=''
8991      link_all_deplibs=yes
8992    if test "$GCC" = yes ; then
8993        output_verbose_link_cmd='echo'
8994        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8995      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8996      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8997      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}'
8998      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}'
8999    else
9000      case $cc_basename in
9001        xlc*)
9002         output_verbose_link_cmd='echo'
9003         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9004         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9005          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9006         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}'
9007          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}'
9008          ;;
9009       *)
9010         ld_shlibs=no
9011          ;;
9012      esac
9013    fi
9014      ;;
9015
9016    dgux*)
9017      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9018      hardcode_libdir_flag_spec='-L$libdir'
9019      hardcode_shlibpath_var=no
9020      ;;
9021
9022    freebsd1*)
9023      ld_shlibs=no
9024      ;;
9025
9026    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9027    # support.  Future versions do this automatically, but an explicit c++rt0.o
9028    # does not break anything, and helps significantly (at the cost of a little
9029    # extra space).
9030    freebsd2.2*)
9031      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9032      hardcode_libdir_flag_spec='-R$libdir'
9033      hardcode_direct=yes
9034      hardcode_shlibpath_var=no
9035      ;;
9036
9037    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9038    freebsd2*)
9039      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9040      hardcode_direct=yes
9041      hardcode_minus_L=yes
9042      hardcode_shlibpath_var=no
9043      ;;
9044
9045    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9046    freebsd* | kfreebsd*-gnu | dragonfly*)
9047      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9048      hardcode_libdir_flag_spec='-R$libdir'
9049      hardcode_direct=yes
9050      hardcode_shlibpath_var=no
9051      ;;
9052
9053    hpux9*)
9054      if test "$GCC" = yes; then
9055        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'
9056      else
9057        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'
9058      fi
9059      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9060      hardcode_libdir_separator=:
9061      hardcode_direct=yes
9062
9063      # hardcode_minus_L: Not really in the search PATH,
9064      # but as the default location of the library.
9065      hardcode_minus_L=yes
9066      export_dynamic_flag_spec='${wl}-E'
9067      ;;
9068
9069    hpux10*)
9070      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9071        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9072      else
9073        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9074      fi
9075      if test "$with_gnu_ld" = no; then
9076        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9077        hardcode_libdir_separator=:
9078
9079        hardcode_direct=yes
9080        export_dynamic_flag_spec='${wl}-E'
9081
9082        # hardcode_minus_L: Not really in the search PATH,
9083        # but as the default location of the library.
9084        hardcode_minus_L=yes
9085      fi
9086      ;;
9087
9088    hpux11*)
9089      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9090        case $host_cpu in
9091        hppa*64*)
9092          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9093          ;;
9094        ia64*)
9095          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9096          ;;
9097        *)
9098          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9099          ;;
9100        esac
9101      else
9102        case $host_cpu in
9103        hppa*64*)
9104          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9105          ;;
9106        ia64*)
9107          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9108          ;;
9109        *)
9110          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9111          ;;
9112        esac
9113      fi
9114      if test "$with_gnu_ld" = no; then
9115        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9116        hardcode_libdir_separator=:
9117
9118        case $host_cpu in
9119        hppa*64*|ia64*)
9120          hardcode_libdir_flag_spec_ld='+b $libdir'
9121          hardcode_direct=no
9122          hardcode_shlibpath_var=no
9123          ;;
9124        *)
9125          hardcode_direct=yes
9126          export_dynamic_flag_spec='${wl}-E'
9127
9128          # hardcode_minus_L: Not really in the search PATH,
9129          # but as the default location of the library.
9130          hardcode_minus_L=yes
9131          ;;
9132        esac
9133      fi
9134      ;;
9135
9136    irix5* | irix6* | nonstopux*)
9137      if test "$GCC" = yes; then
9138        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'
9139      else
9140        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'
9141        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9142      fi
9143      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9144      hardcode_libdir_separator=:
9145      link_all_deplibs=yes
9146      ;;
9147
9148    netbsd*)
9149      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9150        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9151      else
9152        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9153      fi
9154      hardcode_libdir_flag_spec='-R$libdir'
9155      hardcode_direct=yes
9156      hardcode_shlibpath_var=no
9157      ;;
9158
9159    newsos6)
9160      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9161      hardcode_direct=yes
9162      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9163      hardcode_libdir_separator=:
9164      hardcode_shlibpath_var=no
9165      ;;
9166
9167    openbsd*)
9168      hardcode_direct=yes
9169      hardcode_shlibpath_var=no
9170      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9171        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9172        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9173        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9174        export_dynamic_flag_spec='${wl}-E'
9175      else
9176       case $host_os in
9177         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9178           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9179           hardcode_libdir_flag_spec='-R$libdir'
9180           ;;
9181         *)
9182           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9183           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9184           ;;
9185       esac
9186      fi
9187      ;;
9188
9189    os2*)
9190      hardcode_libdir_flag_spec='-L$libdir'
9191      hardcode_minus_L=yes
9192      allow_undefined_flag=unsupported
9193      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'
9194      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9195      ;;
9196
9197    osf3*)
9198      if test "$GCC" = yes; then
9199        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9200        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'
9201      else
9202        allow_undefined_flag=' -expect_unresolved \*'
9203        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'
9204      fi
9205      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9206      hardcode_libdir_separator=:
9207      ;;
9208
9209    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9210      if test "$GCC" = yes; then
9211        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9212        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'
9213        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9214      else
9215        allow_undefined_flag=' -expect_unresolved \*'
9216        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'
9217        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9218        $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'
9219
9220        # Both c and cxx compiler support -rpath directly
9221        hardcode_libdir_flag_spec='-rpath $libdir'
9222      fi
9223      hardcode_libdir_separator=:
9224      ;;
9225
9226    solaris*)
9227      no_undefined_flag=' -z text'
9228      if test "$GCC" = yes; then
9229        wlarc='${wl}'
9230        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9231        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9232          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9233      else
9234        wlarc=''
9235        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9236        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9237        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9238      fi
9239      hardcode_libdir_flag_spec='-R$libdir'
9240      hardcode_shlibpath_var=no
9241      case $host_os in
9242      solaris2.[0-5] | solaris2.[0-5].*) ;;
9243      *)
9244        # The compiler driver will combine linker options so we
9245        # cannot just pass the convience library names through
9246        # without $wl, iff we do not link with $LD.
9247        # Luckily, gcc supports the same syntax we need for Sun Studio.
9248        # Supported since Solaris 2.6 (maybe 2.5.1?)
9249        case $wlarc in
9250        '')
9251          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9252        *)
9253          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' ;;
9254        esac ;;
9255      esac
9256      link_all_deplibs=yes
9257      ;;
9258
9259    sunos4*)
9260      if test "x$host_vendor" = xsequent; then
9261        # Use $CC to link under sequent, because it throws in some extra .o
9262        # files that make .init and .fini sections work.
9263        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9264      else
9265        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9266      fi
9267      hardcode_libdir_flag_spec='-L$libdir'
9268      hardcode_direct=yes
9269      hardcode_minus_L=yes
9270      hardcode_shlibpath_var=no
9271      ;;
9272
9273    sysv4)
9274      case $host_vendor in
9275        sni)
9276          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9277          hardcode_direct=yes # is this really true???
9278        ;;
9279        siemens)
9280          ## LD is ld it makes a PLAMLIB
9281          ## CC just makes a GrossModule.
9282          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9283          reload_cmds='$CC -r -o $output$reload_objs'
9284          hardcode_direct=no
9285        ;;
9286        motorola)
9287          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9288          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9289        ;;
9290      esac
9291      runpath_var='LD_RUN_PATH'
9292      hardcode_shlibpath_var=no
9293      ;;
9294
9295    sysv4.3*)
9296      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9297      hardcode_shlibpath_var=no
9298      export_dynamic_flag_spec='-Bexport'
9299      ;;
9300
9301    sysv4*MP*)
9302      if test -d /usr/nec; then
9303        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304        hardcode_shlibpath_var=no
9305        runpath_var=LD_RUN_PATH
9306        hardcode_runpath_var=yes
9307        ld_shlibs=yes
9308      fi
9309      ;;
9310
9311    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9312      no_undefined_flag='${wl}-z,text'
9313      archive_cmds_need_lc=no
9314      hardcode_shlibpath_var=no
9315      runpath_var='LD_RUN_PATH'
9316
9317      if test "$GCC" = yes; then
9318        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9319        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9320      else
9321        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9322        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9323      fi
9324      ;;
9325
9326    sysv5* | sco3.2v5* | sco5v6*)
9327      # Note: We can NOT use -z defs as we might desire, because we do not
9328      # link with -lc, and that would cause any symbols used from libc to
9329      # always be unresolved, which means just about no library would
9330      # ever link correctly.  If we're not using GNU ld we use -z text
9331      # though, which does catch some bad symbols but isn't as heavy-handed
9332      # as -z defs.
9333      no_undefined_flag='${wl}-z,text'
9334      allow_undefined_flag='${wl}-z,nodefs'
9335      archive_cmds_need_lc=no
9336      hardcode_shlibpath_var=no
9337      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9338      hardcode_libdir_separator=':'
9339      link_all_deplibs=yes
9340      export_dynamic_flag_spec='${wl}-Bexport'
9341      runpath_var='LD_RUN_PATH'
9342
9343      if test "$GCC" = yes; then
9344        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9345        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9346      else
9347        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9348        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9349      fi
9350      ;;
9351
9352    uts4*)
9353      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9354      hardcode_libdir_flag_spec='-L$libdir'
9355      hardcode_shlibpath_var=no
9356      ;;
9357
9358    *)
9359      ld_shlibs=no
9360      ;;
9361    esac
9362  fi
9363
9364echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9365echo "${ECHO_T}$ld_shlibs" >&6
9366test "$ld_shlibs" = no && can_build_shared=no
9367
9368#
9369# Do we need to explicitly link libc?
9370#
9371case "x$archive_cmds_need_lc" in
9372x|xyes)
9373  # Assume -lc should be added
9374  archive_cmds_need_lc=yes
9375
9376  if test "$enable_shared" = yes && test "$GCC" = yes; then
9377    case $archive_cmds in
9378    *'~'*)
9379      # FIXME: we may have to deal with multi-command sequences.
9380      ;;
9381    '$CC '*)
9382      # Test whether the compiler implicitly links with -lc since on some
9383      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9384      # to ld, don't add -lc before -lgcc.
9385      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9386echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9387      $rm conftest*
9388      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9389
9390      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9391  (eval $ac_compile) 2>&5
9392  ac_status=$?
9393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394  (exit $ac_status); } 2>conftest.err; then
9395        soname=conftest
9396        lib=conftest
9397        libobjs=conftest.$ac_objext
9398        deplibs=
9399        wl=$lt_prog_compiler_wl
9400        pic_flag=$lt_prog_compiler_pic
9401        compiler_flags=-v
9402        linker_flags=-v
9403        verstring=
9404        output_objdir=.
9405        libname=conftest
9406        lt_save_allow_undefined_flag=$allow_undefined_flag
9407        allow_undefined_flag=
9408        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9409  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9410  ac_status=$?
9411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412  (exit $ac_status); }
9413        then
9414          archive_cmds_need_lc=no
9415        else
9416          archive_cmds_need_lc=yes
9417        fi
9418        allow_undefined_flag=$lt_save_allow_undefined_flag
9419      else
9420        cat conftest.err 1>&5
9421      fi
9422      $rm conftest*
9423      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9424echo "${ECHO_T}$archive_cmds_need_lc" >&6
9425      ;;
9426    esac
9427  fi
9428  ;;
9429esac
9430
9431echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9432echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9433library_names_spec=
9434libname_spec='lib$name'
9435soname_spec=
9436shrext_cmds=".so"
9437postinstall_cmds=
9438postuninstall_cmds=
9439finish_cmds=
9440finish_eval=
9441shlibpath_var=
9442shlibpath_overrides_runpath=unknown
9443version_type=none
9444dynamic_linker="$host_os ld.so"
9445sys_lib_dlsearch_path_spec="/lib /usr/lib"
9446if test "$GCC" = yes; then
9447  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9448  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9449    # if the path contains ";" then we assume it to be the separator
9450    # otherwise default to the standard path separator (i.e. ":") - it is
9451    # assumed that no part of a normal pathname contains ";" but that should
9452    # okay in the real world where ";" in dirpaths is itself problematic.
9453    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9454  else
9455    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9456  fi
9457else
9458  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9459fi
9460need_lib_prefix=unknown
9461hardcode_into_libs=no
9462
9463# when you set need_version to no, make sure it does not cause -set_version
9464# flags to be left without arguments
9465need_version=unknown
9466
9467case $host_os in
9468aix3*)
9469  version_type=linux
9470  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9471  shlibpath_var=LIBPATH
9472
9473  # AIX 3 has no versioning support, so we append a major version to the name.
9474  soname_spec='${libname}${release}${shared_ext}$major'
9475  ;;
9476
9477aix4* | aix5*)
9478  version_type=linux
9479  need_lib_prefix=no
9480  need_version=no
9481  hardcode_into_libs=yes
9482  if test "$host_cpu" = ia64; then
9483    # AIX 5 supports IA64
9484    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9485    shlibpath_var=LD_LIBRARY_PATH
9486  else
9487    # With GCC up to 2.95.x, collect2 would create an import file
9488    # for dependence libraries.  The import file would start with
9489    # the line `#! .'.  This would cause the generated library to
9490    # depend on `.', always an invalid library.  This was fixed in
9491    # development snapshots of GCC prior to 3.0.
9492    case $host_os in
9493      aix4 | aix4.[01] | aix4.[01].*)
9494      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9495           echo ' yes '
9496           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9497        :
9498      else
9499        can_build_shared=no
9500      fi
9501      ;;
9502    esac
9503    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9504    # soname into executable. Probably we can add versioning support to
9505    # collect2, so additional links can be useful in future.
9506    if test "$aix_use_runtimelinking" = yes; then
9507      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9508      # instead of lib<name>.a to let people know that these are not
9509      # typical AIX shared libraries.
9510      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9511    else
9512      # We preserve .a as extension for shared libraries through AIX4.2
9513      # and later when we are not doing run time linking.
9514      library_names_spec='${libname}${release}.a $libname.a'
9515      soname_spec='${libname}${release}${shared_ext}$major'
9516    fi
9517    shlibpath_var=LIBPATH
9518  fi
9519  ;;
9520
9521amigaos*)
9522  library_names_spec='$libname.ixlibrary $libname.a'
9523  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9524  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'
9525  ;;
9526
9527beos*)
9528  library_names_spec='${libname}${shared_ext}'
9529  dynamic_linker="$host_os ld.so"
9530  shlibpath_var=LIBRARY_PATH
9531  ;;
9532
9533bsdi[45]*)
9534  version_type=linux
9535  need_version=no
9536  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537  soname_spec='${libname}${release}${shared_ext}$major'
9538  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9539  shlibpath_var=LD_LIBRARY_PATH
9540  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9541  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9542  # the default ld.so.conf also contains /usr/contrib/lib and
9543  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9544  # libtool to hard-code these into programs
9545  ;;
9546
9547cygwin* | mingw* | pw32*)
9548  version_type=windows
9549  shrext_cmds=".dll"
9550  need_version=no
9551  need_lib_prefix=no
9552
9553  case $GCC,$host_os in
9554  yes,cygwin* | yes,mingw* | yes,pw32*)
9555    library_names_spec='$libname.dll.a'
9556    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9557    postinstall_cmds='base_file=`basename \${file}`~
9558      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9559      dldir=$destdir/`dirname \$dlpath`~
9560      test -d \$dldir || mkdir -p \$dldir~
9561      $install_prog $dir/$dlname \$dldir/$dlname~
9562      chmod a+x \$dldir/$dlname'
9563    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9564      dlpath=$dir/\$dldll~
9565       $rm \$dlpath'
9566    shlibpath_overrides_runpath=yes
9567
9568    case $host_os in
9569    cygwin*)
9570      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9571      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9572      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9573      ;;
9574    mingw*)
9575      # MinGW DLLs use traditional 'lib' prefix
9576      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9577      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9578      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9579        # It is most probably a Windows format PATH printed by
9580        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9581        # path with ; separators, and with drive letters. We can handle the
9582        # drive letters (cygwin fileutils understands them), so leave them,
9583        # especially as we might pass files found there to a mingw objdump,
9584        # which wouldn't understand a cygwinified path. Ahh.
9585        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9586      else
9587        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9588      fi
9589      ;;
9590    pw32*)
9591      # pw32 DLLs use 'pw' prefix rather than 'lib'
9592      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9593      ;;
9594    esac
9595    ;;
9596
9597  *)
9598    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9599    ;;
9600  esac
9601  dynamic_linker='Win32 ld.exe'
9602  # FIXME: first we should search . and the directory the executable is in
9603  shlibpath_var=PATH
9604  ;;
9605
9606darwin* | rhapsody*)
9607  dynamic_linker="$host_os dyld"
9608  version_type=darwin
9609  need_lib_prefix=no
9610  need_version=no
9611  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9612  soname_spec='${libname}${release}${major}$shared_ext'
9613  shlibpath_overrides_runpath=yes
9614  shlibpath_var=DYLD_LIBRARY_PATH
9615  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9616  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9617  if test "$GCC" = yes; then
9618    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"`
9619  else
9620    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9621  fi
9622  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9623  ;;
9624
9625dgux*)
9626  version_type=linux
9627  need_lib_prefix=no
9628  need_version=no
9629  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9630  soname_spec='${libname}${release}${shared_ext}$major'
9631  shlibpath_var=LD_LIBRARY_PATH
9632  ;;
9633
9634freebsd1*)
9635  dynamic_linker=no
9636  ;;
9637
9638kfreebsd*-gnu)
9639  version_type=linux
9640  need_lib_prefix=no
9641  need_version=no
9642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9643  soname_spec='${libname}${release}${shared_ext}$major'
9644  shlibpath_var=LD_LIBRARY_PATH
9645  shlibpath_overrides_runpath=no
9646  hardcode_into_libs=yes
9647  dynamic_linker='GNU ld.so'
9648  ;;
9649
9650freebsd* | dragonfly*)
9651  # DragonFly does not have aout.  When/if they implement a new
9652  # versioning mechanism, adjust this.
9653  if test -x /usr/bin/objformat; then
9654    objformat=`/usr/bin/objformat`
9655  else
9656    case $host_os in
9657    freebsd[123]*) objformat=aout ;;
9658    *) objformat=elf ;;
9659    esac
9660  fi
9661  version_type=freebsd-$objformat
9662  case $version_type in
9663    freebsd-elf*)
9664      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9665      need_version=no
9666      need_lib_prefix=no
9667      ;;
9668    freebsd-*)
9669      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9670      need_version=yes
9671      ;;
9672  esac
9673  shlibpath_var=LD_LIBRARY_PATH
9674  case $host_os in
9675  freebsd2*)
9676    shlibpath_overrides_runpath=yes
9677    ;;
9678  freebsd3.[01]* | freebsdelf3.[01]*)
9679    shlibpath_overrides_runpath=yes
9680    hardcode_into_libs=yes
9681    ;;
9682  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9683  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9684    shlibpath_overrides_runpath=no
9685    hardcode_into_libs=yes
9686    ;;
9687  freebsd*) # from 4.6 on
9688    shlibpath_overrides_runpath=yes
9689    hardcode_into_libs=yes
9690    ;;
9691  esac
9692  ;;
9693
9694gnu*)
9695  version_type=linux
9696  need_lib_prefix=no
9697  need_version=no
9698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9699  soname_spec='${libname}${release}${shared_ext}$major'
9700  shlibpath_var=LD_LIBRARY_PATH
9701  hardcode_into_libs=yes
9702  ;;
9703
9704hpux9* | hpux10* | hpux11*)
9705  # Give a soname corresponding to the major version so that dld.sl refuses to
9706  # link against other versions.
9707  version_type=sunos
9708  need_lib_prefix=no
9709  need_version=no
9710  case $host_cpu in
9711  ia64*)
9712    shrext_cmds='.so'
9713    hardcode_into_libs=yes
9714    dynamic_linker="$host_os dld.so"
9715    shlibpath_var=LD_LIBRARY_PATH
9716    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9717    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718    soname_spec='${libname}${release}${shared_ext}$major'
9719    if test "X$HPUX_IA64_MODE" = X32; then
9720      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9721    else
9722      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9723    fi
9724    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9725    ;;
9726   hppa*64*)
9727     shrext_cmds='.sl'
9728     hardcode_into_libs=yes
9729     dynamic_linker="$host_os dld.sl"
9730     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9731     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9732     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9733     soname_spec='${libname}${release}${shared_ext}$major'
9734     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9735     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9736     ;;
9737   *)
9738    shrext_cmds='.sl'
9739    dynamic_linker="$host_os dld.sl"
9740    shlibpath_var=SHLIB_PATH
9741    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9742    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9743    soname_spec='${libname}${release}${shared_ext}$major'
9744    ;;
9745  esac
9746  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9747  postinstall_cmds='chmod 555 $lib'
9748  ;;
9749
9750interix3*)
9751  version_type=linux
9752  need_lib_prefix=no
9753  need_version=no
9754  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9755  soname_spec='${libname}${release}${shared_ext}$major'
9756  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9757  shlibpath_var=LD_LIBRARY_PATH
9758  shlibpath_overrides_runpath=no
9759  hardcode_into_libs=yes
9760  ;;
9761
9762irix5* | irix6* | nonstopux*)
9763  case $host_os in
9764    nonstopux*) version_type=nonstopux ;;
9765    *)
9766        if test "$lt_cv_prog_gnu_ld" = yes; then
9767                version_type=linux
9768        else
9769                version_type=irix
9770        fi ;;
9771  esac
9772  need_lib_prefix=no
9773  need_version=no
9774  soname_spec='${libname}${release}${shared_ext}$major'
9775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9776  case $host_os in
9777  irix5* | nonstopux*)
9778    libsuff= shlibsuff=
9779    ;;
9780  *)
9781    case $LD in # libtool.m4 will add one of these switches to LD
9782    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9783      libsuff= shlibsuff= libmagic=32-bit;;
9784    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9785      libsuff=32 shlibsuff=N32 libmagic=N32;;
9786    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9787      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9788    *) libsuff= shlibsuff= libmagic=never-match;;
9789    esac
9790    ;;
9791  esac
9792  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9793  shlibpath_overrides_runpath=no
9794  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9795  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9796  hardcode_into_libs=yes
9797  ;;
9798
9799# No shared lib support for Linux oldld, aout, or coff.
9800linux*oldld* | linux*aout* | linux*coff*)
9801  dynamic_linker=no
9802  ;;
9803
9804# This must be Linux ELF.
9805linux*)
9806  version_type=linux
9807  need_lib_prefix=no
9808  need_version=no
9809  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810  soname_spec='${libname}${release}${shared_ext}$major'
9811  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9812  shlibpath_var=LD_LIBRARY_PATH
9813  shlibpath_overrides_runpath=no
9814  # This implies no fast_install, which is unacceptable.
9815  # Some rework will be needed to allow for fast_install
9816  # before this can be enabled.
9817  hardcode_into_libs=yes
9818
9819  # Append ld.so.conf contents to the search path
9820  if test -f /etc/ld.so.conf; then
9821    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' ' '`
9822    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9823  fi
9824
9825  # We used to test for /lib/ld.so.1 and disable shared libraries on
9826  # powerpc, because MkLinux only supported shared libraries with the
9827  # GNU dynamic linker.  Since this was broken with cross compilers,
9828  # most powerpc-linux boxes support dynamic linking these days and
9829  # people can always --disable-shared, the test was removed, and we
9830  # assume the GNU/Linux dynamic linker is in use.
9831  dynamic_linker='GNU/Linux ld.so'
9832  ;;
9833
9834knetbsd*-gnu)
9835  version_type=linux
9836  need_lib_prefix=no
9837  need_version=no
9838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9839  soname_spec='${libname}${release}${shared_ext}$major'
9840  shlibpath_var=LD_LIBRARY_PATH
9841  shlibpath_overrides_runpath=no
9842  hardcode_into_libs=yes
9843  dynamic_linker='GNU ld.so'
9844  ;;
9845
9846netbsd*)
9847  version_type=sunos
9848  need_lib_prefix=no
9849  need_version=no
9850  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9851    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9852    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9853    dynamic_linker='NetBSD (a.out) ld.so'
9854  else
9855    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9856    soname_spec='${libname}${release}${shared_ext}$major'
9857    dynamic_linker='NetBSD ld.elf_so'
9858  fi
9859  shlibpath_var=LD_LIBRARY_PATH
9860  shlibpath_overrides_runpath=yes
9861  hardcode_into_libs=yes
9862  ;;
9863
9864newsos6)
9865  version_type=linux
9866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9867  shlibpath_var=LD_LIBRARY_PATH
9868  shlibpath_overrides_runpath=yes
9869  ;;
9870
9871nto-qnx*)
9872  version_type=linux
9873  need_lib_prefix=no
9874  need_version=no
9875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9876  soname_spec='${libname}${release}${shared_ext}$major'
9877  shlibpath_var=LD_LIBRARY_PATH
9878  shlibpath_overrides_runpath=yes
9879  ;;
9880
9881openbsd*)
9882  version_type=sunos
9883  sys_lib_dlsearch_path_spec="/usr/lib"
9884  need_lib_prefix=no
9885  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9886  case $host_os in
9887    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9888    *)                         need_version=no  ;;
9889  esac
9890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9891  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9892  shlibpath_var=LD_LIBRARY_PATH
9893  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9894    case $host_os in
9895      openbsd2.[89] | openbsd2.[89].*)
9896        shlibpath_overrides_runpath=no
9897        ;;
9898      *)
9899        shlibpath_overrides_runpath=yes
9900        ;;
9901      esac
9902  else
9903    shlibpath_overrides_runpath=yes
9904  fi
9905  ;;
9906
9907os2*)
9908  libname_spec='$name'
9909  shrext_cmds=".dll"
9910  need_lib_prefix=no
9911  library_names_spec='$libname${shared_ext} $libname.a'
9912  dynamic_linker='OS/2 ld.exe'
9913  shlibpath_var=LIBPATH
9914  ;;
9915
9916osf3* | osf4* | osf5*)
9917  version_type=osf
9918  need_lib_prefix=no
9919  need_version=no
9920  soname_spec='${libname}${release}${shared_ext}$major'
9921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922  shlibpath_var=LD_LIBRARY_PATH
9923  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9924  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9925  ;;
9926
9927solaris*)
9928  version_type=linux
9929  need_lib_prefix=no
9930  need_version=no
9931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932  soname_spec='${libname}${release}${shared_ext}$major'
9933  shlibpath_var=LD_LIBRARY_PATH
9934  shlibpath_overrides_runpath=yes
9935  hardcode_into_libs=yes
9936  # ldd complains unless libraries are executable
9937  postinstall_cmds='chmod +x $lib'
9938  ;;
9939
9940sunos4*)
9941  version_type=sunos
9942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9943  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9944  shlibpath_var=LD_LIBRARY_PATH
9945  shlibpath_overrides_runpath=yes
9946  if test "$with_gnu_ld" = yes; then
9947    need_lib_prefix=no
9948  fi
9949  need_version=yes
9950  ;;
9951
9952sysv4 | sysv4.3*)
9953  version_type=linux
9954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955  soname_spec='${libname}${release}${shared_ext}$major'
9956  shlibpath_var=LD_LIBRARY_PATH
9957  case $host_vendor in
9958    sni)
9959      shlibpath_overrides_runpath=no
9960      need_lib_prefix=no
9961      export_dynamic_flag_spec='${wl}-Blargedynsym'
9962      runpath_var=LD_RUN_PATH
9963      ;;
9964    siemens)
9965      need_lib_prefix=no
9966      ;;
9967    motorola)
9968      need_lib_prefix=no
9969      need_version=no
9970      shlibpath_overrides_runpath=no
9971      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9972      ;;
9973  esac
9974  ;;
9975
9976sysv4*MP*)
9977  if test -d /usr/nec ;then
9978    version_type=linux
9979    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9980    soname_spec='$libname${shared_ext}.$major'
9981    shlibpath_var=LD_LIBRARY_PATH
9982  fi
9983  ;;
9984
9985sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9986  version_type=freebsd-elf
9987  need_lib_prefix=no
9988  need_version=no
9989  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9990  soname_spec='${libname}${release}${shared_ext}$major'
9991  shlibpath_var=LD_LIBRARY_PATH
9992  hardcode_into_libs=yes
9993  if test "$with_gnu_ld" = yes; then
9994    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9995    shlibpath_overrides_runpath=no
9996  else
9997    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9998    shlibpath_overrides_runpath=yes
9999    case $host_os in
10000      sco3.2v5*)
10001        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10002        ;;
10003    esac
10004  fi
10005  sys_lib_dlsearch_path_spec='/usr/lib'
10006  ;;
10007
10008uts4*)
10009  version_type=linux
10010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10011  soname_spec='${libname}${release}${shared_ext}$major'
10012  shlibpath_var=LD_LIBRARY_PATH
10013  ;;
10014
10015*)
10016  dynamic_linker=no
10017  ;;
10018esac
10019echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10020echo "${ECHO_T}$dynamic_linker" >&6
10021test "$dynamic_linker" = no && can_build_shared=no
10022
10023variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10024if test "$GCC" = yes; then
10025  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10026fi
10027
10028echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10029echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10030hardcode_action=
10031if test -n "$hardcode_libdir_flag_spec" || \
10032   test -n "$runpath_var" || \
10033   test "X$hardcode_automatic" = "Xyes" ; then
10034
10035  # We can hardcode non-existant directories.
10036  if test "$hardcode_direct" != no &&
10037     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10038     # have to relink, otherwise we might link with an installed library
10039     # when we should be linking with a yet-to-be-installed one
10040     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10041     test "$hardcode_minus_L" != no; then
10042    # Linking always hardcodes the temporary library directory.
10043    hardcode_action=relink
10044  else
10045    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10046    hardcode_action=immediate
10047  fi
10048else
10049  # We cannot hardcode anything, or else we can only hardcode existing
10050  # directories.
10051  hardcode_action=unsupported
10052fi
10053echo "$as_me:$LINENO: result: $hardcode_action" >&5
10054echo "${ECHO_T}$hardcode_action" >&6
10055
10056if test "$hardcode_action" = relink; then
10057  # Fast installation is not supported
10058  enable_fast_install=no
10059elif test "$shlibpath_overrides_runpath" = yes ||
10060     test "$enable_shared" = no; then
10061  # Fast installation is not necessary
10062  enable_fast_install=needless
10063fi
10064
10065striplib=
10066old_striplib=
10067echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10068echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10069if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10070  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10071  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10072  echo "$as_me:$LINENO: result: yes" >&5
10073echo "${ECHO_T}yes" >&6
10074else
10075# FIXME - insert some real tests, host_os isn't really good enough
10076  case $host_os in
10077   darwin*)
10078       if test -n "$STRIP" ; then
10079         striplib="$STRIP -x"
10080         echo "$as_me:$LINENO: result: yes" >&5
10081echo "${ECHO_T}yes" >&6
10082       else
10083  echo "$as_me:$LINENO: result: no" >&5
10084echo "${ECHO_T}no" >&6
10085fi
10086       ;;
10087   *)
10088  echo "$as_me:$LINENO: result: no" >&5
10089echo "${ECHO_T}no" >&6
10090    ;;
10091  esac
10092fi
10093
10094if test "x$enable_dlopen" != xyes; then
10095  enable_dlopen=unknown
10096  enable_dlopen_self=unknown
10097  enable_dlopen_self_static=unknown
10098else
10099  lt_cv_dlopen=no
10100  lt_cv_dlopen_libs=
10101
10102  case $host_os in
10103  beos*)
10104    lt_cv_dlopen="load_add_on"
10105    lt_cv_dlopen_libs=
10106    lt_cv_dlopen_self=yes
10107    ;;
10108
10109  mingw* | pw32*)
10110    lt_cv_dlopen="LoadLibrary"
10111    lt_cv_dlopen_libs=
10112   ;;
10113
10114  cygwin*)
10115    lt_cv_dlopen="dlopen"
10116    lt_cv_dlopen_libs=
10117   ;;
10118
10119  darwin*)
10120  # if libdl is installed we need to link against it
10121    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10122echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10123if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10124  echo $ECHO_N "(cached) $ECHO_C" >&6
10125else
10126  ac_check_lib_save_LIBS=$LIBS
10127LIBS="-ldl  $LIBS"
10128cat >conftest.$ac_ext <<_ACEOF
10129/* confdefs.h.  */
10130_ACEOF
10131cat confdefs.h >>conftest.$ac_ext
10132cat >>conftest.$ac_ext <<_ACEOF
10133/* end confdefs.h.  */
10134
10135/* Override any gcc2 internal prototype to avoid an error.  */
10136#ifdef __cplusplus
10137extern "C"
10138#endif
10139/* We use char because int might match the return type of a gcc2
10140   builtin and then its argument prototype would still apply.  */
10141char dlopen ();
10142int
10143main ()
10144{
10145dlopen ();
10146  ;
10147  return 0;
10148}
10149_ACEOF
10150rm -f conftest.$ac_objext conftest$ac_exeext
10151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10152  (eval $ac_link) 2>conftest.er1
10153  ac_status=$?
10154  grep -v '^ *+' conftest.er1 >conftest.err
10155  rm -f conftest.er1
10156  cat conftest.err >&5
10157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158  (exit $ac_status); } &&
10159         { ac_try='test -z "$ac_c_werror_flag"
10160                         || test ! -s conftest.err'
10161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162  (eval $ac_try) 2>&5
10163  ac_status=$?
10164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165  (exit $ac_status); }; } &&
10166         { ac_try='test -s conftest$ac_exeext'
10167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10168  (eval $ac_try) 2>&5
10169  ac_status=$?
10170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171  (exit $ac_status); }; }; then
10172  ac_cv_lib_dl_dlopen=yes
10173else
10174  echo "$as_me: failed program was:" >&5
10175sed 's/^/| /' conftest.$ac_ext >&5
10176
10177ac_cv_lib_dl_dlopen=no
10178fi
10179rm -f conftest.err conftest.$ac_objext \
10180      conftest$ac_exeext conftest.$ac_ext
10181LIBS=$ac_check_lib_save_LIBS
10182fi
10183echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10184echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10185if test $ac_cv_lib_dl_dlopen = yes; then
10186  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10187else
10188
10189    lt_cv_dlopen="dyld"
10190    lt_cv_dlopen_libs=
10191    lt_cv_dlopen_self=yes
10192
10193fi
10194
10195   ;;
10196
10197  *)
10198    echo "$as_me:$LINENO: checking for shl_load" >&5
10199echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10200if test "${ac_cv_func_shl_load+set}" = set; then
10201  echo $ECHO_N "(cached) $ECHO_C" >&6
10202else
10203  cat >conftest.$ac_ext <<_ACEOF
10204/* confdefs.h.  */
10205_ACEOF
10206cat confdefs.h >>conftest.$ac_ext
10207cat >>conftest.$ac_ext <<_ACEOF
10208/* end confdefs.h.  */
10209/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10210   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10211#define shl_load innocuous_shl_load
10212
10213/* System header to define __stub macros and hopefully few prototypes,
10214    which can conflict with char shl_load (); below.
10215    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10216    <limits.h> exists even on freestanding compilers.  */
10217
10218#ifdef __STDC__
10219# include <limits.h>
10220#else
10221# include <assert.h>
10222#endif
10223
10224#undef shl_load
10225
10226/* Override any gcc2 internal prototype to avoid an error.  */
10227#ifdef __cplusplus
10228extern "C"
10229{
10230#endif
10231/* We use char because int might match the return type of a gcc2
10232   builtin and then its argument prototype would still apply.  */
10233char shl_load ();
10234/* The GNU C library defines this for functions which it implements
10235    to always fail with ENOSYS.  Some functions are actually named
10236    something starting with __ and the normal name is an alias.  */
10237#if defined (__stub_shl_load) || defined (__stub___shl_load)
10238choke me
10239#else
10240char (*f) () = shl_load;
10241#endif
10242#ifdef __cplusplus
10243}
10244#endif
10245
10246int
10247main ()
10248{
10249return f != shl_load;
10250  ;
10251  return 0;
10252}
10253_ACEOF
10254rm -f conftest.$ac_objext conftest$ac_exeext
10255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10256  (eval $ac_link) 2>conftest.er1
10257  ac_status=$?
10258  grep -v '^ *+' conftest.er1 >conftest.err
10259  rm -f conftest.er1
10260  cat conftest.err >&5
10261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262  (exit $ac_status); } &&
10263         { ac_try='test -z "$ac_c_werror_flag"
10264                         || test ! -s conftest.err'
10265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266  (eval $ac_try) 2>&5
10267  ac_status=$?
10268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269  (exit $ac_status); }; } &&
10270         { ac_try='test -s conftest$ac_exeext'
10271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272  (eval $ac_try) 2>&5
10273  ac_status=$?
10274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275  (exit $ac_status); }; }; then
10276  ac_cv_func_shl_load=yes
10277else
10278  echo "$as_me: failed program was:" >&5
10279sed 's/^/| /' conftest.$ac_ext >&5
10280
10281ac_cv_func_shl_load=no
10282fi
10283rm -f conftest.err conftest.$ac_objext \
10284      conftest$ac_exeext conftest.$ac_ext
10285fi
10286echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10287echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10288if test $ac_cv_func_shl_load = yes; then
10289  lt_cv_dlopen="shl_load"
10290else
10291  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10292echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10293if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10294  echo $ECHO_N "(cached) $ECHO_C" >&6
10295else
10296  ac_check_lib_save_LIBS=$LIBS
10297LIBS="-ldld  $LIBS"
10298cat >conftest.$ac_ext <<_ACEOF
10299/* confdefs.h.  */
10300_ACEOF
10301cat confdefs.h >>conftest.$ac_ext
10302cat >>conftest.$ac_ext <<_ACEOF
10303/* end confdefs.h.  */
10304
10305/* Override any gcc2 internal prototype to avoid an error.  */
10306#ifdef __cplusplus
10307extern "C"
10308#endif
10309/* We use char because int might match the return type of a gcc2
10310   builtin and then its argument prototype would still apply.  */
10311char shl_load ();
10312int
10313main ()
10314{
10315shl_load ();
10316  ;
10317  return 0;
10318}
10319_ACEOF
10320rm -f conftest.$ac_objext conftest$ac_exeext
10321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322  (eval $ac_link) 2>conftest.er1
10323  ac_status=$?
10324  grep -v '^ *+' conftest.er1 >conftest.err
10325  rm -f conftest.er1
10326  cat conftest.err >&5
10327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328  (exit $ac_status); } &&
10329         { ac_try='test -z "$ac_c_werror_flag"
10330                         || test ! -s conftest.err'
10331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332  (eval $ac_try) 2>&5
10333  ac_status=$?
10334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335  (exit $ac_status); }; } &&
10336         { ac_try='test -s conftest$ac_exeext'
10337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10338  (eval $ac_try) 2>&5
10339  ac_status=$?
10340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341  (exit $ac_status); }; }; then
10342  ac_cv_lib_dld_shl_load=yes
10343else
10344  echo "$as_me: failed program was:" >&5
10345sed 's/^/| /' conftest.$ac_ext >&5
10346
10347ac_cv_lib_dld_shl_load=no
10348fi
10349rm -f conftest.err conftest.$ac_objext \
10350      conftest$ac_exeext conftest.$ac_ext
10351LIBS=$ac_check_lib_save_LIBS
10352fi
10353echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10354echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10355if test $ac_cv_lib_dld_shl_load = yes; then
10356  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10357else
10358  echo "$as_me:$LINENO: checking for dlopen" >&5
10359echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10360if test "${ac_cv_func_dlopen+set}" = set; then
10361  echo $ECHO_N "(cached) $ECHO_C" >&6
10362else
10363  cat >conftest.$ac_ext <<_ACEOF
10364/* confdefs.h.  */
10365_ACEOF
10366cat confdefs.h >>conftest.$ac_ext
10367cat >>conftest.$ac_ext <<_ACEOF
10368/* end confdefs.h.  */
10369/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10370   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10371#define dlopen innocuous_dlopen
10372
10373/* System header to define __stub macros and hopefully few prototypes,
10374    which can conflict with char dlopen (); below.
10375    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10376    <limits.h> exists even on freestanding compilers.  */
10377
10378#ifdef __STDC__
10379# include <limits.h>
10380#else
10381# include <assert.h>
10382#endif
10383
10384#undef dlopen
10385
10386/* Override any gcc2 internal prototype to avoid an error.  */
10387#ifdef __cplusplus
10388extern "C"
10389{
10390#endif
10391/* We use char because int might match the return type of a gcc2
10392   builtin and then its argument prototype would still apply.  */
10393char dlopen ();
10394/* The GNU C library defines this for functions which it implements
10395    to always fail with ENOSYS.  Some functions are actually named
10396    something starting with __ and the normal name is an alias.  */
10397#if defined (__stub_dlopen) || defined (__stub___dlopen)
10398choke me
10399#else
10400char (*f) () = dlopen;
10401#endif
10402#ifdef __cplusplus
10403}
10404#endif
10405
10406int
10407main ()
10408{
10409return f != dlopen;
10410  ;
10411  return 0;
10412}
10413_ACEOF
10414rm -f conftest.$ac_objext conftest$ac_exeext
10415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10416  (eval $ac_link) 2>conftest.er1
10417  ac_status=$?
10418  grep -v '^ *+' conftest.er1 >conftest.err
10419  rm -f conftest.er1
10420  cat conftest.err >&5
10421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422  (exit $ac_status); } &&
10423         { ac_try='test -z "$ac_c_werror_flag"
10424                         || test ! -s conftest.err'
10425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10426  (eval $ac_try) 2>&5
10427  ac_status=$?
10428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429  (exit $ac_status); }; } &&
10430         { ac_try='test -s conftest$ac_exeext'
10431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10432  (eval $ac_try) 2>&5
10433  ac_status=$?
10434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435  (exit $ac_status); }; }; then
10436  ac_cv_func_dlopen=yes
10437else
10438  echo "$as_me: failed program was:" >&5
10439sed 's/^/| /' conftest.$ac_ext >&5
10440
10441ac_cv_func_dlopen=no
10442fi
10443rm -f conftest.err conftest.$ac_objext \
10444      conftest$ac_exeext conftest.$ac_ext
10445fi
10446echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10447echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10448if test $ac_cv_func_dlopen = yes; then
10449  lt_cv_dlopen="dlopen"
10450else
10451  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10452echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10453if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10454  echo $ECHO_N "(cached) $ECHO_C" >&6
10455else
10456  ac_check_lib_save_LIBS=$LIBS
10457LIBS="-ldl  $LIBS"
10458cat >conftest.$ac_ext <<_ACEOF
10459/* confdefs.h.  */
10460_ACEOF
10461cat confdefs.h >>conftest.$ac_ext
10462cat >>conftest.$ac_ext <<_ACEOF
10463/* end confdefs.h.  */
10464
10465/* Override any gcc2 internal prototype to avoid an error.  */
10466#ifdef __cplusplus
10467extern "C"
10468#endif
10469/* We use char because int might match the return type of a gcc2
10470   builtin and then its argument prototype would still apply.  */
10471char dlopen ();
10472int
10473main ()
10474{
10475dlopen ();
10476  ;
10477  return 0;
10478}
10479_ACEOF
10480rm -f conftest.$ac_objext conftest$ac_exeext
10481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482  (eval $ac_link) 2>conftest.er1
10483  ac_status=$?
10484  grep -v '^ *+' conftest.er1 >conftest.err
10485  rm -f conftest.er1
10486  cat conftest.err >&5
10487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488  (exit $ac_status); } &&
10489         { ac_try='test -z "$ac_c_werror_flag"
10490                         || test ! -s conftest.err'
10491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492  (eval $ac_try) 2>&5
10493  ac_status=$?
10494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495  (exit $ac_status); }; } &&
10496         { ac_try='test -s conftest$ac_exeext'
10497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10498  (eval $ac_try) 2>&5
10499  ac_status=$?
10500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501  (exit $ac_status); }; }; then
10502  ac_cv_lib_dl_dlopen=yes
10503else
10504  echo "$as_me: failed program was:" >&5
10505sed 's/^/| /' conftest.$ac_ext >&5
10506
10507ac_cv_lib_dl_dlopen=no
10508fi
10509rm -f conftest.err conftest.$ac_objext \
10510      conftest$ac_exeext conftest.$ac_ext
10511LIBS=$ac_check_lib_save_LIBS
10512fi
10513echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10514echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10515if test $ac_cv_lib_dl_dlopen = yes; then
10516  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10517else
10518  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10519echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10520if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10521  echo $ECHO_N "(cached) $ECHO_C" >&6
10522else
10523  ac_check_lib_save_LIBS=$LIBS
10524LIBS="-lsvld  $LIBS"
10525cat >conftest.$ac_ext <<_ACEOF
10526/* confdefs.h.  */
10527_ACEOF
10528cat confdefs.h >>conftest.$ac_ext
10529cat >>conftest.$ac_ext <<_ACEOF
10530/* end confdefs.h.  */
10531
10532/* Override any gcc2 internal prototype to avoid an error.  */
10533#ifdef __cplusplus
10534extern "C"
10535#endif
10536/* We use char because int might match the return type of a gcc2
10537   builtin and then its argument prototype would still apply.  */
10538char dlopen ();
10539int
10540main ()
10541{
10542dlopen ();
10543  ;
10544  return 0;
10545}
10546_ACEOF
10547rm -f conftest.$ac_objext conftest$ac_exeext
10548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549  (eval $ac_link) 2>conftest.er1
10550  ac_status=$?
10551  grep -v '^ *+' conftest.er1 >conftest.err
10552  rm -f conftest.er1
10553  cat conftest.err >&5
10554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555  (exit $ac_status); } &&
10556         { ac_try='test -z "$ac_c_werror_flag"
10557                         || test ! -s conftest.err'
10558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559  (eval $ac_try) 2>&5
10560  ac_status=$?
10561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562  (exit $ac_status); }; } &&
10563         { ac_try='test -s conftest$ac_exeext'
10564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565  (eval $ac_try) 2>&5
10566  ac_status=$?
10567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568  (exit $ac_status); }; }; then
10569  ac_cv_lib_svld_dlopen=yes
10570else
10571  echo "$as_me: failed program was:" >&5
10572sed 's/^/| /' conftest.$ac_ext >&5
10573
10574ac_cv_lib_svld_dlopen=no
10575fi
10576rm -f conftest.err conftest.$ac_objext \
10577      conftest$ac_exeext conftest.$ac_ext
10578LIBS=$ac_check_lib_save_LIBS
10579fi
10580echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10581echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10582if test $ac_cv_lib_svld_dlopen = yes; then
10583  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10584else
10585  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10586echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10587if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10588  echo $ECHO_N "(cached) $ECHO_C" >&6
10589else
10590  ac_check_lib_save_LIBS=$LIBS
10591LIBS="-ldld  $LIBS"
10592cat >conftest.$ac_ext <<_ACEOF
10593/* confdefs.h.  */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
10597/* end confdefs.h.  */
10598
10599/* Override any gcc2 internal prototype to avoid an error.  */
10600#ifdef __cplusplus
10601extern "C"
10602#endif
10603/* We use char because int might match the return type of a gcc2
10604   builtin and then its argument prototype would still apply.  */
10605char dld_link ();
10606int
10607main ()
10608{
10609dld_link ();
10610  ;
10611  return 0;
10612}
10613_ACEOF
10614rm -f conftest.$ac_objext conftest$ac_exeext
10615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10616  (eval $ac_link) 2>conftest.er1
10617  ac_status=$?
10618  grep -v '^ *+' conftest.er1 >conftest.err
10619  rm -f conftest.er1
10620  cat conftest.err >&5
10621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622  (exit $ac_status); } &&
10623         { ac_try='test -z "$ac_c_werror_flag"
10624                         || test ! -s conftest.err'
10625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626  (eval $ac_try) 2>&5
10627  ac_status=$?
10628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629  (exit $ac_status); }; } &&
10630         { ac_try='test -s conftest$ac_exeext'
10631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632  (eval $ac_try) 2>&5
10633  ac_status=$?
10634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635  (exit $ac_status); }; }; then
10636  ac_cv_lib_dld_dld_link=yes
10637else
10638  echo "$as_me: failed program was:" >&5
10639sed 's/^/| /' conftest.$ac_ext >&5
10640
10641ac_cv_lib_dld_dld_link=no
10642fi
10643rm -f conftest.err conftest.$ac_objext \
10644      conftest$ac_exeext conftest.$ac_ext
10645LIBS=$ac_check_lib_save_LIBS
10646fi
10647echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10648echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10649if test $ac_cv_lib_dld_dld_link = yes; then
10650  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10651fi
10652
10653
10654fi
10655
10656
10657fi
10658
10659
10660fi
10661
10662
10663fi
10664
10665
10666fi
10667
10668    ;;
10669  esac
10670
10671  if test "x$lt_cv_dlopen" != xno; then
10672    enable_dlopen=yes
10673  else
10674    enable_dlopen=no
10675  fi
10676
10677  case $lt_cv_dlopen in
10678  dlopen)
10679    save_CPPFLAGS="$CPPFLAGS"
10680    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10681
10682    save_LDFLAGS="$LDFLAGS"
10683    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10684
10685    save_LIBS="$LIBS"
10686    LIBS="$lt_cv_dlopen_libs $LIBS"
10687
10688    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10689echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10690if test "${lt_cv_dlopen_self+set}" = set; then
10691  echo $ECHO_N "(cached) $ECHO_C" >&6
10692else
10693          if test "$cross_compiling" = yes; then :
10694  lt_cv_dlopen_self=cross
10695else
10696  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10697  lt_status=$lt_dlunknown
10698  cat > conftest.$ac_ext <<EOF
10699#line 10699 "configure"
10700#include "confdefs.h"
10701
10702#if HAVE_DLFCN_H
10703#include <dlfcn.h>
10704#endif
10705
10706#include <stdio.h>
10707
10708#ifdef RTLD_GLOBAL
10709#  define LT_DLGLOBAL           RTLD_GLOBAL
10710#else
10711#  ifdef DL_GLOBAL
10712#    define LT_DLGLOBAL         DL_GLOBAL
10713#  else
10714#    define LT_DLGLOBAL         0
10715#  endif
10716#endif
10717
10718/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10719   find out it does not work in some platform. */
10720#ifndef LT_DLLAZY_OR_NOW
10721#  ifdef RTLD_LAZY
10722#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10723#  else
10724#    ifdef DL_LAZY
10725#      define LT_DLLAZY_OR_NOW          DL_LAZY
10726#    else
10727#      ifdef RTLD_NOW
10728#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10729#      else
10730#        ifdef DL_NOW
10731#          define LT_DLLAZY_OR_NOW      DL_NOW
10732#        else
10733#          define LT_DLLAZY_OR_NOW      0
10734#        endif
10735#      endif
10736#    endif
10737#  endif
10738#endif
10739
10740#ifdef __cplusplus
10741extern "C" void exit (int);
10742#endif
10743
10744void fnord() { int i=42;}
10745int main ()
10746{
10747  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10748  int status = $lt_dlunknown;
10749
10750  if (self)
10751    {
10752      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10753      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10754      /* dlclose (self); */
10755    }
10756  else
10757    puts (dlerror ());
10758
10759    exit (status);
10760}
10761EOF
10762  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10763  (eval $ac_link) 2>&5
10764  ac_status=$?
10765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10766  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10767    (./conftest; exit; ) >&5 2>/dev/null
10768    lt_status=$?
10769    case x$lt_status in
10770      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10771      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10772      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10773    esac
10774  else :
10775    # compilation failed
10776    lt_cv_dlopen_self=no
10777  fi
10778fi
10779rm -fr conftest*
10780