source: ThirdParty/SoPlex/releases/1.2.2/configure @ 2985

Last change on this file since 2985 was 2985, checked in by stefan, 7 years ago

revert r2394:HEAD - releases are not to be modified

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