source: stable/1.8/CoinMP/configure @ 675

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

temporarily committing release candidate

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