source: ThirdParty/SoPlex/trunk/configure @ 2494

Last change on this file since 2494 was 2494, checked in by tkr, 9 years ago

Re-running the autotools

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