source: stable/1.8/CoinMP/configure @ 677

Last change on this file since 677 was 677, checked in by stefan, 4 months ago

restoring CoinMP/stable/1.8

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