source: ThirdParty/SoPlex/stable/1.0/configure @ 2392

Last change on this file since 2392 was 2392, checked in by stefan, 9 years ago

restoring BuildTools/ThirdParty/SoPlex?/stable/1.0

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