source: ThirdParty/SoPlex/stable/1.2/configure @ 2735

Last change on this file since 2735 was 2735, checked in by stefan, 8 years ago

restoring BuildTools/ThirdParty/SoPlex?/stable/1.2

  • Property svn:executable set to *
File size: 746.0 KB
<
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartySoplex 1.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2010,2011 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartySoplex'
431PACKAGE_TARNAME='thirdpartysoplex'
432PACKAGE_VERSION='1.2'
433PACKAGE_STRING='ThirdPartySoplex 1.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="soplex/src/soplex.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SOPLEX_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX PKG_CONFIG ac_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_WITH_GMP_CFLAG SOPLEX_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
981ac_env_PKG_CONFIG_value=$PKG_CONFIG
982ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
983ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_F77_set=${F77+set}
993ac_env_F77_value=$F77
994ac_cv_env_F77_set=${F77+set}
995ac_cv_env_F77_value=$F77
996ac_env_FFLAGS_set=${FFLAGS+set}
997ac_env_FFLAGS_value=$FFLAGS
998ac_cv_env_FFLAGS_set=${FFLAGS+set}
999ac_cv_env_FFLAGS_value=$FFLAGS
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartySoplex 1.2 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartySoplex 1.2:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-soplex compile project SoPlex with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --disable-pkg-config    disable use of pkg-config (if available)
1090  --enable-static[=PKGS]
1091                          build static libraries [default=no]
1092  --disable-dependency-tracking  speeds up one-time build
1093  --enable-dependency-tracking   do not reject slow dependency extractors
1094  --enable-maintainer-mode  enable make rules and dependencies not useful
1095                          (and sometimes confusing) to the casual installer
1096  --enable-shared[=PKGS]
1097                          build shared libraries [default=yes]
1098  --enable-fast-install[=PKGS]
1099                          optimize for fast installation [default=yes]
1100  --disable-libtool-lock  avoid locking (might break parallel builds)
1101  --disable-zlib          do not compile with compression library zlib
1102  --disable-gmp           do not compile with GNU multiple precision library
1103
1104Optional Packages:
1105  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1106  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1107  --with-soplex-verbosity specify the debug verbosity level for project SoPlex
1108  --with-soplex-checklevel
1109                          specify the sanity check level for project SoPlex
1110  --with-coin-instdir     prefix of installation directory for precompiled
1111                          COIN packages
1112  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1113  --with-pic              try to use only PIC/non-PIC objects [default=use
1114                          both]
1115  --with-tags[=TAGS]
1116                          include additional configurations [automatic]
1117
1118Some influential environment variables:
1119  CDEFS       Additional -D flags to be used when compiling C code.
1120  ADD_CFLAGS  Additional C compiler options
1121  DBG_CFLAGS  Debug C compiler options
1122  OPT_CFLAGS  Optimize C compiler options
1123  CC          C compiler command
1124  CFLAGS      C compiler flags
1125  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1126              nonstandard directory <lib dir>
1127  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1128              headers in a nonstandard directory <include dir>
1129  MPICC       C MPI Compiler
1130  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1131  ADD_CXXFLAGS
1132              Additional C++ compiler options
1133  DBG_CXXFLAGS
1134              Debug C++ compiler options
1135  OPT_CXXFLAGS
1136              Optimize C++ compiler options
1137  CXX         C++ compiler command
1138  CXXFLAGS    C++ compiler flags
1139  MPICXX      C++ MPI Compiler
1140  PKG_CONFIG  path to pkg-config utility
1141  CPP         C preprocessor
1142  CXXCPP      C++ preprocessor
1143  F77         Fortran 77 compiler command
1144  FFLAGS      Fortran 77 compiler flags
1145
1146Use these variables to override the choices made by `configure' or to help
1147it to find libraries and programs with nonstandard names/locations.
1148
1149Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1150_ACEOF
1151fi
1152
1153if test "$ac_init_help" = "recursive"; then
1154  # If there are subdirs, report their specific --help.
1155  ac_popdir=`pwd`
1156  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1157    test -d $ac_dir || continue
1158    ac_builddir=.
1159
1160if test "$ac_dir" != .; then
1161  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1162  # A "../" for each directory in $ac_dir_suffix.
1163  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1164else
1165  ac_dir_suffix= ac_top_builddir=
1166fi
1167
1168case $srcdir in
1169  .)  # No --srcdir option.  We are building in place.
1170    ac_srcdir=.
1171    if test -z "$ac_top_builddir"; then
1172       ac_top_srcdir=.
1173    else
1174       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1175    fi ;;
1176  [\\/]* | ?:[\\/]* )  # Absolute path.
1177    ac_srcdir=$srcdir$ac_dir_suffix;
1178    ac_top_srcdir=$srcdir ;;
1179  *) # Relative path.
1180    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1181    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1182esac
1183
1184# Do not use `cd foo && pwd` to compute absolute paths, because
1185# the directories may not exist.
1186case `pwd` in
1187.) ac_abs_builddir="$ac_dir";;
1188*)
1189  case "$ac_dir" in
1190  .) ac_abs_builddir=`pwd`;;
1191  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1192  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1193  esac;;
1194esac
1195case $ac_abs_builddir in
1196.) ac_abs_top_builddir=${ac_top_builddir}.;;
1197*)
1198  case ${ac_top_builddir}. in
1199  .) ac_abs_top_builddir=$ac_abs_builddir;;
1200  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1201  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1202  esac;;
1203esac
1204case $ac_abs_builddir in
1205.) ac_abs_srcdir=$ac_srcdir;;
1206*)
1207  case $ac_srcdir in
1208  .) ac_abs_srcdir=$ac_abs_builddir;;
1209  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1210  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1211  esac;;
1212esac
1213case $ac_abs_builddir in
1214.) ac_abs_top_srcdir=$ac_top_srcdir;;
1215*)
1216  case $ac_top_srcdir in
1217  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1218  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1219  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1220  esac;;
1221esac
1222
1223    cd $ac_dir
1224    # Check for guested configure; otherwise get Cygnus style configure.
1225    if test -f $ac_srcdir/configure.gnu; then
1226      echo
1227      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1228    elif test -f $ac_srcdir/configure; then
1229      echo
1230      $SHELL $ac_srcdir/configure  --help=recursive
1231    elif test -f $ac_srcdir/configure.ac ||
1232           test -f $ac_srcdir/configure.in; then
1233      echo
1234      $ac_configure --help
1235    else
1236      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1237    fi
1238    cd $ac_popdir
1239  done
1240fi
1241
1242test -n "$ac_init_help" && exit 0
1243if $ac_init_version; then
1244  cat <<\_ACEOF
1245ThirdPartySoplex configure 1.2
1246generated by GNU Autoconf 2.59
1247
1248Copyright (C) 2003 Free Software Foundation, Inc.
1249This configure script is free software; the Free Software Foundation
1250gives unlimited permission to copy, distribute and modify it.
1251
1252
1253Copyright 2010,2011 Stefan Vigerske and others.
1254All Rights Reserved.
1255This file is part of the open source package COIN-OR which is distributed
1256under the Eclipse Public License.
1257_ACEOF
1258  exit 0
1259fi
1260exec 5>config.log
1261cat >&5 <<_ACEOF
1262This file contains any messages produced by compilers while
1263running configure, to aid debugging if configure makes a mistake.
1264
1265It was created by ThirdPartySoplex $as_me 1.2, which was
1266generated by GNU Autoconf 2.59.  Invocation command line was
1267
1268  $ $0 $@
1269
1270_ACEOF
1271{
1272cat <<_ASUNAME
1273## --------- ##
1274## Platform. ##
1275## --------- ##
1276
1277hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1278uname -m = `(uname -m) 2>/dev/null || echo unknown`
1279uname -r = `(uname -r) 2>/dev/null || echo unknown`
1280uname -s = `(uname -s) 2>/dev/null || echo unknown`
1281uname -v = `(uname -v) 2>/dev/null || echo unknown`
1282
1283/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1284/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1285
1286/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1287/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1288/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1289hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1290/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1291/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1292/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1293
1294_ASUNAME
1295
1296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1297for as_dir in $PATH
1298do
1299  IFS=$as_save_IFS
1300  test -z "$as_dir" && as_dir=.
1301  echo "PATH: $as_dir"
1302done
1303
1304} >&5
1305
1306cat >&5 <<_ACEOF
1307
1308
1309## ----------- ##
1310## Core tests. ##
1311## ----------- ##
1312
1313_ACEOF
1314
1315
1316# Keep a trace of the command line.
1317# Strip out --no-create and --no-recursion so they do not pile up.
1318# Strip out --silent because we don't want to record it for future runs.
1319# Also quote any args containing shell meta-characters.
1320# Make two passes to allow for proper duplicate-argument suppression.
1321ac_configure_args=
1322ac_configure_args0=
1323ac_configure_args1=
1324ac_sep=
1325ac_must_keep_next=false
1326for ac_pass in 1 2
1327do
1328  for ac_arg
1329  do
1330    case $ac_arg in
1331    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1332    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1333    | -silent | --silent | --silen | --sile | --sil)
1334      continue ;;
1335    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1336      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1337    esac
1338    case $ac_pass in
1339    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1340    2)
1341      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1342      if test $ac_must_keep_next = true; then
1343        ac_must_keep_next=false # Got value, back to normal.
1344      else
1345        case $ac_arg in
1346          *=* | --config-cache | -C | -disable-* | --disable-* \
1347          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1348          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1349          | -with-* | --with-* | -without-* | --without-* | --x)
1350            case "$ac_configure_args0 " in
1351              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1352            esac
1353            ;;
1354          -* ) ac_must_keep_next=true ;;
1355        esac
1356      fi
1357      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1358      # Get rid of the leading space.
1359      ac_sep=" "
1360      ;;
1361    esac
1362  done
1363done
1364$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1365$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1366
1367# When interrupted or exit'd, cleanup temporary files, and complete
1368# config.log.  We remove comments because anyway the quotes in there
1369# would cause problems or look ugly.
1370# WARNING: Be sure not to use single quotes in there, as some shells,
1371# such as our DU 5.0 friend, will then `close' the trap.
1372trap 'exit_status=$?
1373  # Save into config.log some information that might help in debugging.
1374  {
1375    echo
1376
1377    cat <<\_ASBOX
1378## ---------------- ##
1379## Cache variables. ##
1380## ---------------- ##
1381_ASBOX
1382    echo
1383    # The following way of writing the cache mishandles newlines in values,
1384{
1385  (set) 2>&1 |
1386    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1387    *ac_space=\ *)
1388      sed -n \
1389        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1390          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1391      ;;
1392    *)
1393      sed -n \
1394        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1395      ;;
1396    esac;
1397}
1398    echo
1399
1400    cat <<\_ASBOX
1401## ----------------- ##
1402## Output variables. ##
1403## ----------------- ##
1404_ASBOX
1405    echo
1406    for ac_var in $ac_subst_vars
1407    do
1408      eval ac_val=$`echo $ac_var`
1409      echo "$ac_var='"'"'$ac_val'"'"'"
1410    done | sort
1411    echo
1412
1413    if test -n "$ac_subst_files"; then
1414      cat <<\_ASBOX
1415## ------------- ##
1416## Output files. ##
1417## ------------- ##
1418_ASBOX
1419      echo
1420      for ac_var in $ac_subst_files
1421      do
1422        eval ac_val=$`echo $ac_var`
1423        echo "$ac_var='"'"'$ac_val'"'"'"
1424      done | sort
1425      echo
1426    fi
1427
1428    if test -s confdefs.h; then
1429      cat <<\_ASBOX
1430## ----------- ##
1431## confdefs.h. ##
1432## ----------- ##
1433_ASBOX
1434      echo
1435      sed "/^$/d" confdefs.h | sort
1436      echo
1437    fi
1438    test "$ac_signal" != 0 &&
1439      echo "$as_me: caught signal $ac_signal"
1440    echo "$as_me: exit $exit_status"
1441  } >&5
1442  rm -f core *.core &&
1443  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1444    exit $exit_status
1445     ' 0
1446for ac_signal in 1 2 13 15; do
1447  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1448done
1449ac_signal=0
1450
1451# confdefs.h avoids OS command line length limits that DEFS can exceed.
1452rm -rf conftest* confdefs.h
1453# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1454echo >confdefs.h
1455
1456# Predefined preprocessor variables.
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_NAME "$PACKAGE_NAME"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_VERSION "$PACKAGE_VERSION"
1470_ACEOF
1471
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_STRING "$PACKAGE_STRING"
1475_ACEOF
1476
1477
1478cat >>confdefs.h <<_ACEOF
1479#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1480_ACEOF
1481
1482
1483# Let the site file select an alternate cache file if it wants to.
1484# Prefer explicitly selected file to automatically selected ones.
1485if test -z "$CONFIG_SITE"; then
1486  if test "x$prefix" != xNONE; then
1487    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1488  else
1489    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1490  fi
1491fi
1492for ac_site_file in $CONFIG_SITE; do
1493  if test -r "$ac_site_file"; then
1494    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1495echo "$as_me: loading site script $ac_site_file" >&6;}
1496    sed 's/^/| /' "$ac_site_file" >&5
1497    . "$ac_site_file"
1498  fi
1499done
1500
1501if test -r "$cache_file"; then
1502  # Some versions of bash will fail to source /dev/null (special
1503  # files actually), so we avoid doing that.
1504  if test -f "$cache_file"; then
1505    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1506echo "$as_me: loading cache $cache_file" >&6;}
1507    case $cache_file in
1508      [\\/]* | ?:[\\/]* ) . $cache_file;;
1509      *)                      . ./$cache_file;;
1510    esac
1511  fi
1512else
1513  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1514echo "$as_me: creating cache $cache_file" >&6;}
1515  >$cache_file
1516fi
1517
1518# Check that the precious variables saved in the cache have kept the same
1519# value.
1520ac_cache_corrupted=false
1521for ac_var in `(set) 2>&1 |
1522               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1523  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1524  eval ac_new_set=\$ac_env_${ac_var}_set
1525  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1526  eval ac_new_val="\$ac_env_${ac_var}_value"
1527  case $ac_old_set,$ac_new_set in
1528    set,)
1529      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1530echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1531      ac_cache_corrupted=: ;;
1532    ,set)
1533      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1534echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1535      ac_cache_corrupted=: ;;
1536    ,);;
1537    *)
1538      if test "x$ac_old_val" != "x$ac_new_val"; then
1539        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1540echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1541        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1542echo "$as_me:   former value:  $ac_old_val" >&2;}
1543        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1544echo "$as_me:   current value: $ac_new_val" >&2;}
1545        ac_cache_corrupted=:
1546      fi;;
1547  esac
1548  # Pass precious variables to config.status.
1549  if test "$ac_new_set" = set; then
1550    case $ac_new_val in
1551    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1552      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1553    *) ac_arg=$ac_var=$ac_new_val ;;
1554    esac
1555    case " $ac_configure_args " in
1556      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1557      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1558    esac
1559  fi
1560done
1561if $ac_cache_corrupted; then
1562  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1563echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1564  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1565echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1566   { (exit 1); exit 1; }; }
1567fi
1568
1569ac_ext=c
1570ac_cpp='$CPP $CPPFLAGS'
1571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1573ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604# List one file in the package so that the configure script can test
1605# whether the package is actually there
1606
1607
1608# Where should everything be installed by default?  Here, we want it
1609# to be installed directly in 'bin', 'lib', 'include' subdirectories
1610# of the directory where configure is run.  The default would be
1611# /usr/local.
1612
1613
1614
1615# As backup, we make sure we don't loose an FLIBS if it has been set
1616# by the user
1617save_FLIBS="$FLIBS"
1618
1619# A useful makefile conditional that is always false
1620
1621
1622if false; then
1623  ALWAYS_FALSE_TRUE=
1624  ALWAYS_FALSE_FALSE='#'
1625else
1626  ALWAYS_FALSE_TRUE='#'
1627  ALWAYS_FALSE_FALSE=
1628fi
1629
1630
1631# We set the following variable so that we know later in AC_COIN_FINALIZE
1632# that we are in a project main directory
1633coin_projectdir=yes
1634
1635# Set the project's version numbers
1636
1637
1638cat >>confdefs.h <<_ACEOF
1639#define SOPLEX_VERSION "$PACKAGE_VERSION"
1640_ACEOF
1641
1642
1643  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1644  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1645  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1646  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1647  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1648  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1649
1650cat >>confdefs.h <<_ACEOF
1651#define SOPLEX_VERSION_MAJOR $coin_majorver
1652_ACEOF
1653
1654
1655cat >>confdefs.h <<_ACEOF
1656#define SOPLEX_VERSION_MINOR $coin_minorver
1657_ACEOF
1658
1659
1660cat >>confdefs.h <<_ACEOF
1661#define SOPLEX_VERSION_RELEASE $coin_releasever
1662_ACEOF
1663
1664
1665  # We use the following variable to have a string with the upper case
1666  # version of the project name
1667  COIN_PRJCT=SOPLEX
1668
1669  # Set the project's SVN revision number. The complicated sed expression
1670  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1671  # as a single number.
1672  # Extract the first word of "svnversion", so it can be a program name with args.
1673set dummy svnversion; ac_word=$2
1674echo "$as_me:$LINENO: checking for $ac_word" >&5
1675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676if test "${ac_cv_prog_have_svnversion+set}" = set; then
1677  echo $ECHO_N "(cached) $ECHO_C" >&6
1678else
1679  if test -n "$have_svnversion"; then
1680  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1681else
1682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683for as_dir in $PATH
1684do
1685  IFS=$as_save_IFS
1686  test -z "$as_dir" && as_dir=.
1687  for ac_exec_ext in '' $ac_executable_extensions; do
1688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689    ac_cv_prog_have_svnversion="yes"
1690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691    break 2
1692  fi
1693done
1694done
1695
1696  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1697fi
1698fi
1699have_svnversion=$ac_cv_prog_have_svnversion
1700if test -n "$have_svnversion"; then
1701  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1702echo "${ECHO_T}$have_svnversion" >&6
1703else
1704  echo "$as_me:$LINENO: result: no" >&5
1705echo "${ECHO_T}no" >&6
1706fi
1707
1708  if test "x$have_svnversion" = xyes; then
1709
1710    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1711    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1712      SOPLEX_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1713
1714cat >>confdefs.h <<_ACEOF
1715#define SOPLEX_SVN_REV $SOPLEX_SVN_REV
1716_ACEOF
1717
1718    fi
1719  fi
1720
1721
1722
1723# Capture libtool library version, if given.
1724
1725
1726
1727
1728#############################################################################
1729#                         Standard build tool stuff                         #
1730#############################################################################
1731
1732# Get the system type
1733ac_aux_dir=
1734for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1735  if test -f $ac_dir/install-sh; then
1736    ac_aux_dir=$ac_dir
1737    ac_install_sh="$ac_aux_dir/install-sh -c"
1738    break
1739  elif test -f $ac_dir/install.sh; then
1740    ac_aux_dir=$ac_dir
1741    ac_install_sh="$ac_aux_dir/install.sh -c"
1742    break
1743  elif test -f $ac_dir/shtool; then
1744    ac_aux_dir=$ac_dir
1745    ac_install_sh="$ac_aux_dir/shtool install -c"
1746    break
1747  fi
1748done
1749if test -z "$ac_aux_dir"; then
1750  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1751echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1752   { (exit 1); exit 1; }; }
1753fi
1754ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1755ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1756ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1757
1758# Make sure we can run config.sub.
1759$ac_config_sub sun4 >/dev/null 2>&1 ||
1760  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1761echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1762   { (exit 1); exit 1; }; }
1763
1764echo "$as_me:$LINENO: checking build system type" >&5
1765echo $ECHO_N "checking build system type... $ECHO_C" >&6
1766if test "${ac_cv_build+set}" = set; then
1767  echo $ECHO_N "(cached) $ECHO_C" >&6
1768else
1769  ac_cv_build_alias=$build_alias
1770test -z "$ac_cv_build_alias" &&
1771  ac_cv_build_alias=`$ac_config_guess`
1772test -z "$ac_cv_build_alias" &&
1773  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1774echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1775   { (exit 1); exit 1; }; }
1776ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1777  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1778echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1779   { (exit 1); exit 1; }; }
1780
1781fi
1782echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1783echo "${ECHO_T}$ac_cv_build" >&6
1784build=$ac_cv_build
1785build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1786build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1787build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1788
1789
1790
1791# Check if user wants to produce debugging code
1792
1793echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1794echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1795
1796# Check whether --enable-debug or --disable-debug was given.
1797if test "${enable_debug+set}" = set; then
1798  enableval="$enable_debug"
1799  case "${enableval}" in
1800   yes) coin_debug_compile=true
1801        if test "${enable_shared+set}" = set; then :; else
1802          enable_shared=no
1803        fi
1804        ;;
1805   no)  coin_debug_compile=false
1806        ;;
1807   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1808echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1809   { (exit 1); exit 1; }; }
1810        ;;
1811esac
1812else
1813  coin_debug_compile=false
1814fi;
1815
1816# Check whether --enable-debug-soplex or --disable-debug-soplex was given.
1817if test "${enable_debug_soplex+set}" = set; then
1818  enableval="$enable_debug_soplex"
1819  case "${enableval}" in
1820    yes) coin_debug_compile=true
1821         ;;
1822    no)  coin_debug_compile=false
1823         ;;
1824    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-soplex" >&5
1825echo "$as_me: error: bad value ${enableval} for --enable-debug-soplex" >&2;}
1826   { (exit 1); exit 1; }; }
1827         ;;
1828 esac
1829else
1830  :
1831fi;
1832
1833 # m4_ifvaln([SoPlex],
1834
1835if test $coin_debug_compile = true; then
1836  echo "$as_me:$LINENO: result: yes" >&5
1837echo "${ECHO_T}yes" >&6
1838else
1839  echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6
1841fi
1842
1843
1844# Check whether --with-soplex-verbosity or --without-soplex-verbosity was given.
1845if test "${with_soplex_verbosity+set}" = set; then
1846  withval="$with_soplex_verbosity"
1847  if test "$withval" = yes; then
1848                withval=1
1849              fi
1850              coin_soplex_verbosity=$withval
1851else
1852  coin_soplex_verbosity=0
1853fi;
1854
1855cat >>confdefs.h <<_ACEOF
1856#define COIN_SOPLEX_VERBOSITY $coin_soplex_verbosity
1857_ACEOF
1858
1859
1860
1861# Check whether --with-soplex-checklevel or --without-soplex-checklevel was given.
1862if test "${with_soplex_checklevel+set}" = set; then
1863  withval="$with_soplex_checklevel"
1864  if test "$withval" = yes; then
1865                withval=1
1866              fi
1867              coin_soplex_checklevel=$withval
1868else
1869  coin_soplex_checklevel=0
1870fi;
1871
1872cat >>confdefs.h <<_ACEOF
1873#define COIN_SOPLEX_CHECKLEVEL $coin_soplex_checklevel
1874_ACEOF
1875
1876
1877 # m4_ifvaln([SoPlex],
1878
1879
1880
1881# Get the name of the C compiler and appropriate compiler options
1882case $build in
1883  *-mingw*)
1884    if test "${LD+set}" = set; then :; else
1885      LD=link
1886    fi
1887    ;;
1888 esac
1889 case $enable_doscompile in
1890   msvc)
1891     if test "x${LD+set}" = xset; then :; else
1892       LD=link
1893     fi
1894     ;;
1895 esac
1896
1897
1898 # Check whether --enable-doscompile or --disable-doscompile was given.
1899if test "${enable_doscompile+set}" = set; then
1900  enableval="$enable_doscompile"
1901  if test "$enable_doscompile" != no; then
1902     case $build in
1903       *-cygwin* | *-mingw*) ;;
1904       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1905echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1906   { (exit 1); exit 1; }; } ;;
1907     esac
1908   fi
1909else
1910  enable_doscompile=no
1911fi;
1912 case "$enable_doscompile" in
1913   mingw)
1914     case $build in
1915       *-mingw*) enable_doscompile=no ;;
1916     esac
1917     ;;
1918   msvc|no) ;;
1919   yes) enable_doscompile=mingw ;;
1920   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1921                    Try configure --help=recursive." >&5
1922echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1923                    Try configure --help=recursive." >&2;}
1924   { (exit 1); exit 1; }; }
1925      ;;
1926  esac
1927  if test "$enable_doscompile" != no ; then
1928    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1929echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1930  fi
1931
1932
1933
1934
1935ac_ext=c
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942# For consistency, we set the C compiler to the same value of the C++
1943# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1944if test x"$CXX" != x; then
1945  case "$CXX" in
1946    clang* ) ;;
1947    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1948      if test x"$CC" = x; then
1949        CC="$CXX"
1950        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1951echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1952      fi
1953      ;;
1954  esac
1955fi
1956
1957
1958
1959
1960
1961
1962coin_has_cc=yes
1963
1964save_cflags="$CFLAGS"
1965
1966# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1967# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1968# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1969# compiler. In this case, put cc after gcc.
1970
1971case $build in
1972  *-cygwin* | *-mingw*)
1973             if test "$enable_doscompile" = msvc ; then
1974               comps="icl cl"
1975             else
1976               comps="gcc cl"
1977             fi ;;
1978  *-*-solaris*)
1979             # Extract the first word of "cc", so it can be a program name with args.
1980set dummy cc; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  if test -n "$sol_cc_compiler"; then
1987  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1988else
1989  ac_prog_rejected=no
1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991for as_dir in $PATH
1992do
1993  IFS=$as_save_IFS
1994  test -z "$as_dir" && as_dir=.
1995  for ac_exec_ext in '' $ac_executable_extensions; do
1996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1998       ac_prog_rejected=yes
1999       continue
2000     fi
2001    ac_cv_prog_sol_cc_compiler="cc"
2002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003    break 2
2004  fi
2005done
2006done
2007
2008if test $ac_prog_rejected = yes; then
2009  # We found a bogon in the path, so make sure we never use it.
2010  set dummy $ac_cv_prog_sol_cc_compiler
2011  shift
2012  if test $# != 0; then
2013    # We chose a different compiler from the bogus one.
2014    # However, it has the same basename, so the bogon will be chosen
2015    # first if we set sol_cc_compiler to just the basename; use the full file name.
2016    shift
2017    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2018  fi
2019fi
2020fi
2021fi
2022sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2023if test -n "$sol_cc_compiler"; then
2024  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2025echo "${ECHO_T}$sol_cc_compiler" >&6
2026else
2027  echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031             if test "$sol_cc_compiler" = "cc" ; then
2032               comps="cc xlc gcc pgcc icc"
2033             else
2034               comps="xlc gcc pgcc icc cc"
2035             fi
2036             ;;
2037  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2038  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2039  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2040esac
2041
2042# We delete the cached value, since the test might not have been
2043# performed with our choice of compilers earlier
2044$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2045# AC_MSG_NOTICE([C compiler candidates: $comps])
2046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051if test -n "$ac_tool_prefix"; then
2052  for ac_prog in $comps
2053  do
2054    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2055set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2056echo "$as_me:$LINENO: checking for $ac_word" >&5
2057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058if test "${ac_cv_prog_CC+set}" = set; then
2059  echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061  if test -n "$CC"; then
2062  ac_cv_prog_CC="$CC" # Let the user override the test.
2063else
2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065for as_dir in $PATH
2066do
2067  IFS=$as_save_IFS
2068  test -z "$as_dir" && as_dir=.
2069  for ac_exec_ext in '' $ac_executable_extensions; do
2070  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073    break 2
2074  fi
2075done
2076done
2077
2078fi
2079fi
2080CC=$ac_cv_prog_CC
2081if test -n "$CC"; then
2082  echo "$as_me:$LINENO: result: $CC" >&5
2083echo "${ECHO_T}$CC" >&6
2084else
2085  echo "$as_me:$LINENO: result: no" >&5
2086echo "${ECHO_T}no" >&6
2087fi
2088
2089    test -n "$CC" && break
2090  done
2091fi
2092if test -z "$CC"; then
2093  ac_ct_CC=$CC
2094  for ac_prog in $comps
2095do
2096  # Extract the first word of "$ac_prog", so it can be a program name with args.
2097set dummy $ac_prog; ac_word=$2
2098echo "$as_me:$LINENO: checking for $ac_word" >&5
2099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101  echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103  if test -n "$ac_ct_CC"; then
2104  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105else
2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109  IFS=$as_save_IFS
2110  test -z "$as_dir" && as_dir=.
2111  for ac_exec_ext in '' $ac_executable_extensions; do
2112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113    ac_cv_prog_ac_ct_CC="$ac_prog"
2114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115    break 2
2116  fi
2117done
2118done
2119
2120fi
2121fi
2122ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123if test -n "$ac_ct_CC"; then
2124  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125echo "${ECHO_T}$ac_ct_CC" >&6
2126else
2127  echo "$as_me:$LINENO: result: no" >&5
2128echo "${ECHO_T}no" >&6
2129fi
2130
2131  test -n "$ac_ct_CC" && break
2132done
2133
2134  CC=$ac_ct_CC
2135fi
2136
2137
2138test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2139See \`config.log' for more details." >&5
2140echo "$as_me: error: no acceptable C compiler found in \$PATH
2141See \`config.log' for more details." >&2;}
2142   { (exit 1); exit 1; }; }
2143
2144# Provide some information about the compiler.
2145echo "$as_me:$LINENO:" \
2146     "checking for C compiler version" >&5
2147ac_compiler=`set X $ac_compile; echo $2`
2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2149  (eval $ac_compiler --version </dev/null >&5) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }
2153{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2154  (eval $ac_compiler -v </dev/null >&5) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }
2158{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2159  (eval $ac_compiler -V </dev/null >&5) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }
2163
2164cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170
2171int
2172main ()
2173{
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179ac_clean_files_save=$ac_clean_files
2180ac_clean_files="$ac_clean_files a.out a.exe b.out"
2181# Try to create an executable without -o first, disregard a.out.
2182# It will help us diagnose broken compilers, and finding out an intuition
2183# of exeext.
2184echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2186ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2188  (eval $ac_link_default) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; then
2192  # Find the output, starting from the most likely.  This scheme is
2193# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2194# resort.
2195
2196# Be careful to initialize this variable, since it used to be cached.
2197# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2198ac_cv_exeext=
2199# b.out is created by i960 compilers.
2200for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2201do
2202  test -f "$ac_file" || continue
2203  case $ac_file in
2204    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2205        ;;
2206    conftest.$ac_ext )
2207        # This is the source file.
2208        ;;
2209    [ab].out )
2210        # We found the default executable, but exeext='' is most
2211        # certainly right.
2212        break;;
2213    *.* )
2214        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215        # FIXME: I believe we export ac_cv_exeext for Libtool,
2216        # but it would be cool to find out if it's true.  Does anybody
2217        # maintain Libtool? --akim.
2218        export ac_cv_exeext
2219        break;;
2220    * )
2221        break;;
2222  esac
2223done
2224else
2225  echo "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2229See \`config.log' for more details." >&5
2230echo "$as_me: error: C compiler cannot create executables
2231See \`config.log' for more details." >&2;}
2232   { (exit 77); exit 77; }; }
2233fi
2234
2235ac_exeext=$ac_cv_exeext
2236echo "$as_me:$LINENO: result: $ac_file" >&5
2237echo "${ECHO_T}$ac_file" >&6
2238
2239# Check the compiler produces executables we can run.  If not, either
2240# the compiler is broken, or we cross compile.
2241echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2242echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2243# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2244# If not cross compiling, check that we can run a simple program.
2245if test "$cross_compiling" != yes; then
2246  if { ac_try='./$ac_file'
2247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248  (eval $ac_try) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; }; then
2252    cross_compiling=no
2253  else
2254    if test "$cross_compiling" = maybe; then
2255        cross_compiling=yes
2256    else
2257        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2258If you meant to cross compile, use \`--host'.
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: cannot run C compiled programs.
2261If you meant to cross compile, use \`--host'.
2262See \`config.log' for more details." >&2;}
2263   { (exit 1); exit 1; }; }
2264    fi
2265  fi
2266fi
2267echo "$as_me:$LINENO: result: yes" >&5
2268echo "${ECHO_T}yes" >&6
2269
2270rm -f a.out a.exe conftest$ac_cv_exeext b.out
2271ac_clean_files=$ac_clean_files_save
2272# Check the compiler produces executables we can run.  If not, either
2273# the compiler is broken, or we cross compile.
2274echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2275echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2276echo "$as_me:$LINENO: result: $cross_compiling" >&5
2277echo "${ECHO_T}$cross_compiling" >&6
2278
2279echo "$as_me:$LINENO: checking for suffix of executables" >&5
2280echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2282  (eval $ac_link) 2>&5
2283  ac_status=$?
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); }; then
2286  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2288# work properly (i.e., refer to `conftest.exe'), while it won't with
2289# `rm'.
2290for ac_file in conftest.exe conftest conftest.*; do
2291  test -f "$ac_file" || continue
2292  case $ac_file in
2293    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2294    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295          export ac_cv_exeext
2296          break;;
2297    * ) break;;
2298  esac
2299done
2300else
2301  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2302See \`config.log' for more details." >&5
2303echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2304See \`config.log' for more details." >&2;}
2305   { (exit 1); exit 1; }; }
2306fi
2307
2308rm -f conftest$ac_cv_exeext
2309echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2310echo "${ECHO_T}$ac_cv_exeext" >&6
2311
2312rm -f conftest.$ac_ext
2313EXEEXT=$ac_cv_exeext
2314ac_exeext=$EXEEXT
2315echo "$as_me:$LINENO: checking for suffix of object files" >&5
2316echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2317if test "${ac_cv_objext+set}" = set; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  cat >conftest.$ac_ext <<_ACEOF
2321/* confdefs.h.  */
2322_ACEOF
2323cat confdefs.h >>conftest.$ac_ext
2324cat >>conftest.$ac_ext <<_ACEOF
2325/* end confdefs.h.  */
2326
2327int
2328main ()
2329{
2330
2331  ;
2332  return 0;
2333}
2334_ACEOF
2335rm -f conftest.o conftest.obj
2336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337  (eval $ac_compile) 2>&5
2338  ac_status=$?
2339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340  (exit $ac_status); }; then
2341  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2342  case $ac_file in
2343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2344    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345       break;;
2346  esac
2347done
2348else
2349  echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353See \`config.log' for more details." >&5
2354echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355See \`config.log' for more details." >&2;}
2356   { (exit 1); exit 1; }; }
2357fi
2358
2359rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360fi
2361echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362echo "${ECHO_T}$ac_cv_objext" >&6
2363OBJEXT=$ac_cv_objext
2364ac_objext=$OBJEXT
2365echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2367if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368  echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370  cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h.  */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h.  */
2376
2377int
2378main ()
2379{
2380#ifndef __GNUC__
2381       choke me
2382#endif
2383
2384  ;
2385  return 0;
2386}
2387_ACEOF
2388rm -f conftest.$ac_objext
2389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390  (eval $ac_compile) 2>conftest.er1
2391  ac_status=$?
2392  grep -v '^ *+' conftest.er1 >conftest.err
2393  rm -f conftest.er1
2394  cat conftest.err >&5
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); } &&
2397         { ac_try='test -z "$ac_c_werror_flag"
2398                         || test ! -s conftest.err'
2399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400  (eval $ac_try) 2>&5
2401  ac_status=$?
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); }; } &&
2404         { ac_try='test -s conftest.$ac_objext'
2405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406  (eval $ac_try) 2>&5
2407  ac_status=$?
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); }; }; then
2410  ac_compiler_gnu=yes
2411else
2412  echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415ac_compiler_gnu=no
2416fi
2417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419
2420fi
2421echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2423GCC=`test $ac_compiler_gnu = yes && echo yes`
2424ac_test_CFLAGS=${CFLAGS+set}
2425ac_save_CFLAGS=$CFLAGS
2426CFLAGS="-g"
2427echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2429if test "${ac_cv_prog_cc_g+set}" = set; then
2430  echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432  cat >conftest.$ac_ext <<_ACEOF
2433/* confdefs.h.  */
2434_ACEOF
2435cat confdefs.h >>conftest.$ac_ext
2436cat >>conftest.$ac_ext <<_ACEOF
2437/* end confdefs.h.  */
2438
2439int
2440main ()
2441{
2442
2443  ;
2444  return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449  (eval $ac_compile) 2>conftest.er1
2450  ac_status=$?
2451  grep -v '^ *+' conftest.er1 >conftest.err
2452  rm -f conftest.er1
2453  cat conftest.err >&5
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); } &&
2456         { ac_try='test -z "$ac_c_werror_flag"
2457                         || test ! -s conftest.err'
2458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459  (eval $ac_try) 2>&5
2460  ac_status=$?
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); }; } &&
2463         { ac_try='test -s conftest.$ac_objext'
2464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465  (eval $ac_try) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }; }; then
2469  ac_cv_prog_cc_g=yes
2470else
2471  echo "$as_me: failed program was:" >&5
2472sed 's/^/| /' conftest.$ac_ext >&5
2473
2474ac_cv_prog_cc_g=no
2475fi
2476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477fi
2478echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2479echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2480if test "$ac_test_CFLAGS" = set; then
2481  CFLAGS=$ac_save_CFLAGS
2482elif test $ac_cv_prog_cc_g = yes; then
2483  if test "$GCC" = yes; then
2484    CFLAGS="-g -O2"
2485  else
2486    CFLAGS="-g"
2487  fi
2488else
2489  if test "$GCC" = yes; then
2490    CFLAGS="-O2"
2491  else
2492    CFLAGS=
2493  fi
2494fi
2495echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2496echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2497if test "${ac_cv_prog_cc_stdc+set}" = set; then
2498  echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500  ac_cv_prog_cc_stdc=no
2501ac_save_CC=$CC
2502cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h.  */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h.  */
2508#include <stdarg.h>
2509#include <stdio.h>
2510#include <sys/types.h>
2511#include <sys/stat.h>
2512/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2513struct buf { int x; };
2514FILE * (*rcsopen) (struct buf *, struct stat *, int);
2515static char *e (p, i)
2516     char **p;
2517     int i;
2518{
2519  return p[i];
2520}
2521static char *f (char * (*g) (char **, int), char **p, ...)
2522{
2523  char *s;
2524  va_list v;
2525  va_start (v,p);
2526  s = g (p, va_arg (v,int));
2527  va_end (v);
2528  return s;
2529}
2530
2531/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2532   function prototypes and stuff, but not '\xHH' hex character constants.
2533   These don't provoke an error unfortunately, instead are silently treated
2534   as 'x'.  The following induces an error, until -std1 is added to get
2535   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2536   array size at least.  It's necessary to write '\x00'==0 to get something
2537   that's true only with -std1.  */
2538int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2539
2540int test (int i, double x);
2541struct s1 {int (*f) (int a);};
2542struct s2 {int (*f) (double a);};
2543int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2544int argc;
2545char **argv;
2546int
2547main ()
2548{
2549return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2550  ;
2551  return 0;
2552}
2553_ACEOF
2554# Don't try gcc -ansi; that turns off useful extensions and
2555# breaks some systems' header files.
2556# AIX                   -qlanglvl=ansi
2557# Ultrix and OSF/1      -std1
2558# HP-UX 10.20 and later -Ae
2559# HP-UX older versions  -Aa -D_HPUX_SOURCE
2560# SVR4                  -Xc -D__EXTENSIONS__
2561for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562do
2563  CC="$ac_save_CC $ac_arg"
2564  rm -f conftest.$ac_objext
2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566  (eval $ac_compile) 2>conftest.er1
2567  ac_status=$?
2568  grep -v '^ *+' conftest.er1 >conftest.err
2569  rm -f conftest.er1
2570  cat conftest.err >&5
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); } &&
2573         { ac_try='test -z "$ac_c_werror_flag"
2574                         || test ! -s conftest.err'
2575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576  (eval $ac_try) 2>&5
2577  ac_status=$?
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); }; } &&
2580         { ac_try='test -s conftest.$ac_objext'
2581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582  (eval $ac_try) 2>&5
2583  ac_status=$?
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); }; }; then
2586  ac_cv_prog_cc_stdc=$ac_arg
2587break
2588else
2589  echo "$as_me: failed program was:" >&5
2590sed 's/^/| /' conftest.$ac_ext >&5
2591
2592fi
2593rm -f conftest.err conftest.$ac_objext
2594done
2595rm -f conftest.$ac_ext conftest.$ac_objext
2596CC=$ac_save_CC
2597
2598fi
2599
2600case "x$ac_cv_prog_cc_stdc" in
2601  x|xno)
2602    echo "$as_me:$LINENO: result: none needed" >&5
2603echo "${ECHO_T}none needed" >&6 ;;
2604  *)
2605    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2606echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2607    CC="$CC $ac_cv_prog_cc_stdc" ;;
2608esac
2609
2610# Some people use a C++ compiler to compile C.  Since we use `exit',
2611# in C++ we need to declare it.  In case someone uses the same compiler
2612# for both compiling C and C++ we need to have the C++ compiler decide
2613# the declaration of exit, since it's the most demanding environment.
2614cat >conftest.$ac_ext <<_ACEOF
2615#ifndef __cplusplus
2616  choke me
2617#endif
2618_ACEOF
2619rm -f conftest.$ac_objext
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621  (eval $ac_compile) 2>conftest.er1
2622  ac_status=$?
2623  grep -v '^ *+' conftest.er1 >conftest.err
2624  rm -f conftest.er1
2625  cat conftest.err >&5
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); } &&
2628         { ac_try='test -z "$ac_c_werror_flag"
2629                         || test ! -s conftest.err'
2630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631  (eval $ac_try) 2>&5
2632  ac_status=$?
2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634  (exit $ac_status); }; } &&
2635         { ac_try='test -s conftest.$ac_objext'
2636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637  (eval $ac_try) 2>&5
2638  ac_status=$?
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); }; }; then
2641  for ac_declaration in \
2642   '' \
2643   'extern "C" void std::exit (int) throw (); using std::exit;' \
2644   'extern "C" void std::exit (int); using std::exit;' \
2645   'extern "C" void exit (int) throw ();' \
2646   'extern "C" void exit (int);' \
2647   'void exit (int);'
2648do
2649  cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h.  */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h.  */
2655$ac_declaration
2656#include <stdlib.h>
2657int
2658main ()
2659{
2660exit (42);
2661  ;
2662  return 0;
2663}
2664_ACEOF
2665rm -f conftest.$ac_objext
2666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667  (eval $ac_compile) 2>conftest.er1
2668  ac_status=$?
2669  grep -v '^ *+' conftest.er1 >conftest.err
2670  rm -f conftest.er1
2671  cat conftest.err >&5
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); } &&
2674         { ac_try='test -z "$ac_c_werror_flag"
2675                         || test ! -s conftest.err'
2676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677  (eval $ac_try) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; } &&
2681         { ac_try='test -s conftest.$ac_objext'
2682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683  (eval $ac_try) 2>&5
2684  ac_status=$?
2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686  (exit $ac_status); }; }; then
2687  :
2688else
2689  echo "$as_me: failed program was:" >&5
2690sed 's/^/| /' conftest.$ac_ext >&5
2691
2692continue
2693fi
2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695  cat >conftest.$ac_ext <<_ACEOF
2696/* confdefs.h.  */
2697_ACEOF
2698cat confdefs.h >>conftest.$ac_ext
2699cat >>conftest.$ac_ext <<_ACEOF
2700/* end confdefs.h.  */
2701$ac_declaration
2702int
2703main ()
2704{
2705exit (42);
2706  ;
2707  return 0;
2708}
2709_ACEOF
2710rm -f conftest.$ac_objext
2711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712  (eval $ac_compile) 2>conftest.er1
2713  ac_status=$?
2714  grep -v '^ *+' conftest.er1 >conftest.err
2715  rm -f conftest.er1
2716  cat conftest.err >&5
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); } &&
2719         { ac_try='test -z "$ac_c_werror_flag"
2720                         || test ! -s conftest.err'
2721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722  (eval $ac_try) 2>&5
2723  ac_status=$?
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); }; } &&
2726         { ac_try='test -s conftest.$ac_objext'
2727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728  (eval $ac_try) 2>&5
2729  ac_status=$?
2730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); }; }; then
2732  break
2733else
2734  echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737fi
2738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739done
2740rm -f conftest*
2741if test -n "$ac_declaration"; then
2742  echo '#ifdef __cplusplus' >>confdefs.h
2743  echo $ac_declaration      >>confdefs.h
2744  echo '#endif'             >>confdefs.h
2745fi
2746
2747else
2748  echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751fi
2752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753ac_ext=c
2754ac_cpp='$CPP $CPPFLAGS'
2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
2759if test -z "$CC" ; then
2760  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2761echo "$as_me: error: Failed to find a C compiler!" >&2;}
2762   { (exit 1); exit 1; }; }
2763fi
2764# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2765case "$CC" in
2766  clang* ) ;;
2767  cl* | */cl* | CL* | */CL* )
2768    if test "$ac_cv_prog_cc_g" = yes ; then
2769      ac_cv_prog_cc_g=no
2770      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2771echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2772    fi ;;
2773esac
2774CFLAGS="$save_cflags"
2775
2776# add automake conditional so we can recognize cl compiler in makefile
2777coin_cc_is_cl=false
2778case "$CC" in
2779  clang* ) ;;
2780  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2781    coin_cc_is_cl=true
2782    ;;
2783esac
2784
2785
2786if test $coin_cc_is_cl = true; then
2787  COIN_CC_IS_CL_TRUE=
2788  COIN_CC_IS_CL_FALSE='#'
2789else
2790  COIN_CC_IS_CL_TRUE='#'
2791  COIN_CC_IS_CL_FALSE=
2792fi
2793
2794
2795# Check if a project specific CFLAGS variable has been set
2796if test x$COIN_PRJCT != x; then
2797  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2798  if test x$coin_tmp = xset; then
2799    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2800  fi
2801fi
2802
2803if test x"$CFLAGS" = x; then
2804
2805  coin_add_cflags=
2806  coin_opt_cflags=
2807  coin_dbg_cflags=
2808  coin_warn_cflags=
2809
2810  if test "$GCC" = "yes"; then
2811    case "$CC" in
2812      icc* | */icc*)
2813        ;;
2814      *)
2815        coin_opt_cflags="-O3"
2816        coin_add_cflags="-pipe"
2817        coin_dbg_cflags="-g -O0"
2818        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2819        case $build in
2820          *-darwin*)
2821            ;;
2822          *)
2823            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2824            ;;
2825        esac
2826        case $enable_doscompile in
2827          mingw)
2828            CFLAGS="-mno-cygwin"
2829            cat >conftest.$ac_ext <<_ACEOF
2830/* confdefs.h.  */
2831_ACEOF
2832cat confdefs.h >>conftest.$ac_ext
2833cat >>conftest.$ac_ext <<_ACEOF
2834/* end confdefs.h.  */
2835
2836int
2837main ()
2838{
2839int i=0; i++;
2840  ;
2841  return 0;
2842}
2843_ACEOF
2844rm -f conftest.$ac_objext conftest$ac_exeext
2845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2846  (eval $ac_link) 2>conftest.er1
2847  ac_status=$?
2848  grep -v '^ *+' conftest.er1 >conftest.err
2849  rm -f conftest.er1
2850  cat conftest.err >&5
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); } &&
2853         { ac_try='test -z "$ac_c_werror_flag"
2854                         || test ! -s conftest.err'
2855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856  (eval $ac_try) 2>&5
2857  ac_status=$?
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); }; } &&
2860         { ac_try='test -s conftest$ac_exeext'
2861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862  (eval $ac_try) 2>&5
2863  ac_status=$?
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); }; }; then
2866  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2867else
2868  echo "$as_me: failed program was:" >&5
2869sed 's/^/| /' conftest.$ac_ext >&5
2870
2871fi
2872rm -f conftest.err conftest.$ac_objext \
2873      conftest$ac_exeext conftest.$ac_ext
2874            CFLAGS=
2875          ;;
2876        esac
2877    esac
2878  fi
2879  if test -z "$coin_opt_cflags"; then
2880    case $build in
2881      *-cygwin* | *-mingw*)
2882        case "$CC" in
2883          clang* ) ;;
2884          cl* | */cl* | CL* | */CL*)
2885            coin_opt_cflags='-MT -O2'
2886            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2887            coin_dbg_cflags='-MTd'
2888            ;;
2889          icl* | */icl* | ICL* | */ICL*)
2890            coin_opt_cflags='-MT -Ox'
2891            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2892            coin_dbg_cflags='-MTd -debug'
2893            ;;
2894        esac
2895        ;;
2896      *-linux-*)
2897        case "$CC" in
2898          icc* | */icc*)
2899            coin_opt_cflags="-O3 -ip -mp1"
2900            coin_add_cflags=""
2901            coin_dbg_cflags="-g"
2902            # Check if -i_dynamic is necessary (for new glibc library)
2903            CFLAGS=
2904            cat >conftest.$ac_ext <<_ACEOF
2905/* confdefs.h.  */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h.  */
2910
2911int
2912main ()
2913{
2914int i=0; i++;
2915  ;
2916  return 0;
2917}
2918_ACEOF
2919rm -f conftest.$ac_objext conftest$ac_exeext
2920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921  (eval $ac_link) 2>conftest.er1
2922  ac_status=$?
2923  grep -v '^ *+' conftest.er1 >conftest.err
2924  rm -f conftest.er1
2925  cat conftest.err >&5
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); } &&
2928         { ac_try='test -z "$ac_c_werror_flag"
2929                         || test ! -s conftest.err'
2930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931  (eval $ac_try) 2>&5
2932  ac_status=$?
2933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934  (exit $ac_status); }; } &&
2935         { ac_try='test -s conftest$ac_exeext'
2936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937  (eval $ac_try) 2>&5
2938  ac_status=$?
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); }; }; then
2941  :
2942else
2943  echo "$as_me: failed program was:" >&5
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946coin_add_cflags="-i_dynamic $coin_add_cflags"
2947fi
2948rm -f conftest.err conftest.$ac_objext \
2949      conftest$ac_exeext conftest.$ac_ext
2950            ;;
2951          pgcc* | */pgcc*)
2952            coin_opt_cflags="-fast"
2953            coin_add_cflags="-Kieee -pc 64"
2954            coin_dbg_cflags="-g"
2955            ;;
2956        esac
2957        ;;
2958      *-ibm-*)
2959        case "$CC" in
2960          xlc* | */xlc* | mpxlc* | */mpxlc*)
2961            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2962            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2963            coin_dbg_cflags="-g"
2964          ;;
2965        esac
2966        ;;
2967      *-hp-*)
2968        coin_opt_cflags="-O"
2969        coin_add_cflags="-Ae"
2970        coin_dbg_cflags="-g"
2971        ;;
2972      *-*-solaris*)
2973        coin_opt_cflags="-xO4"
2974        coin_dbg_cflags="-g"
2975        ;;
2976      *-sgi-*)
2977        coin_opt_cflags="-O -OPT:Olimit=0"
2978        coin_dbg_cflags="-g"
2979        ;;
2980    esac
2981  fi
2982
2983  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2984    coin_dbg_cflags="-g"
2985  fi
2986
2987  if test -z "$coin_opt_cflags"; then
2988    # Try if -O option works if nothing else is set
2989    CFLAGS="-O"
2990    cat >conftest.$ac_ext <<_ACEOF
2991/* confdefs.h.  */
2992_ACEOF
2993cat confdefs.h >>conftest.$ac_ext
2994cat >>conftest.$ac_ext <<_ACEOF
2995/* end confdefs.h.  */
2996
2997int
2998main ()
2999{
3000int i=0; i++;
3001  ;
3002  return 0;
3003}
3004_ACEOF
3005rm -f conftest.$ac_objext conftest$ac_exeext
3006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3007  (eval $ac_link) 2>conftest.er1
3008  ac_status=$?
3009  grep -v '^ *+' conftest.er1 >conftest.err
3010  rm -f conftest.er1
3011  cat conftest.err >&5
3012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013  (exit $ac_status); } &&
3014         { ac_try='test -z "$ac_c_werror_flag"
3015                         || test ! -s conftest.err'
3016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017  (eval $ac_try) 2>&5
3018  ac_status=$?
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); }; } &&
3021         { ac_try='test -s conftest$ac_exeext'
3022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023  (eval $ac_try) 2>&5
3024  ac_status=$?
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); }; }; then
3027  coin_opt_cflags="-O"
3028else
3029  echo "$as_me: failed program was:" >&5
3030sed 's/^/| /' conftest.$ac_ext >&5
3031
3032fi
3033rm -f conftest.err conftest.$ac_objext \
3034      conftest$ac_exeext conftest.$ac_ext
3035  fi
3036
3037  # if PM doesn't want the warning messages, take them out
3038  if test x"$coin_skip_warn_cflags" = xyes; then
3039    coin_warn_cflags=
3040  fi
3041
3042  if test x${DBG_CFLAGS+set} != xset; then
3043    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3044  fi
3045  if test x${OPT_CFLAGS+set} != xset; then
3046    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3047  fi
3048
3049  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3050  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3051
3052  if test "$coin_debug_compile" = "true"; then
3053    CFLAGS="$DBG_CFLAGS"
3054  else
3055    CFLAGS="$OPT_CFLAGS"
3056  fi
3057else
3058  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3059  if test x${DBG_CFLAGS+set} != xset; then
3060    DBG_CFLAGS="$CFLAGS"
3061  fi
3062  if test x${OPT_CFLAGS+set} != xset; then
3063    OPT_CFLAGS="$CFLAGS"
3064  fi
3065fi
3066
3067# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3068
3069case "$CFLAGS" in
3070  *-mno-cygwin*)
3071    if test x${CPPFLAGS+set} != xset ; then
3072      CPPFLAGS="-mno-cygwin"
3073    else
3074      case "$CPPFLAGS" in
3075        *-mno-cygwin*)
3076          ;;
3077        *)
3078          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3079          ;;
3080      esac
3081    fi ;;
3082esac
3083
3084# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3085if test x$COIN_PRJCT != x; then
3086  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3087fi
3088
3089# Try if CFLAGS works
3090save_CFLAGS="$CFLAGS"
3091cat >conftest.$ac_ext <<_ACEOF
3092/* confdefs.h.  */
3093_ACEOF
3094cat confdefs.h >>conftest.$ac_ext
3095cat >>conftest.$ac_ext <<_ACEOF
3096/* end confdefs.h.  */
3097
3098int
3099main ()
3100{
3101int i=0; i++;
3102  ;
3103  return 0;
3104}
3105_ACEOF
3106rm -f conftest.$ac_objext conftest$ac_exeext
3107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3108  (eval $ac_link) 2>conftest.er1
3109  ac_status=$?
3110  grep -v '^ *+' conftest.er1 >conftest.err
3111  rm -f conftest.er1
3112  cat conftest.err >&5
3113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114  (exit $ac_status); } &&
3115         { ac_try='test -z "$ac_c_werror_flag"
3116                         || test ! -s conftest.err'
3117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3118  (eval $ac_try) 2>&5
3119  ac_status=$?
3120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121  (exit $ac_status); }; } &&
3122         { ac_try='test -s conftest$ac_exeext'
3123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3124  (eval $ac_try) 2>&5
3125  ac_status=$?
3126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127  (exit $ac_status); }; }; then
3128  :
3129else
3130  echo "$as_me: failed program was:" >&5
3131sed 's/^/| /' conftest.$ac_ext >&5
3132
3133CFLAGS=
3134fi
3135rm -f conftest.err conftest.$ac_objext \
3136      conftest$ac_exeext conftest.$ac_ext
3137if test -z "$CFLAGS"; then
3138  { 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
3139echo "$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;}
3140  CFLAGS='-O'
3141  cat >conftest.$ac_ext <<_ACEOF
3142/* confdefs.h.  */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h.  */
3147
3148int
3149main ()
3150{
3151int i=0; i++;
3152  ;
3153  return 0;
3154}
3155_ACEOF
3156rm -f conftest.$ac_objext conftest$ac_exeext
3157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3158  (eval $ac_link) 2>conftest.er1
3159  ac_status=$?
3160  grep -v '^ *+' conftest.er1 >conftest.err
3161  rm -f conftest.er1
3162  cat conftest.err >&5
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); } &&
3165         { ac_try='test -z "$ac_c_werror_flag"
3166                         || test ! -s conftest.err'
3167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168  (eval $ac_try) 2>&5
3169  ac_status=$?
3170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171  (exit $ac_status); }; } &&
3172         { ac_try='test -s conftest$ac_exeext'
3173  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3174  (eval $ac_try) 2>&5
3175  ac_status=$?
3176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177  (exit $ac_status); }; }; then
3178  :
3179else
3180  echo "$as_me: failed program was:" >&5
3181sed 's/^/| /' conftest.$ac_ext >&5
3182
3183CFLAGS=
3184fi
3185rm -f conftest.err conftest.$ac_objext \
3186      conftest$ac_exeext conftest.$ac_ext
3187  if test -z "$CFLAGS"; then
3188    { 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
3189echo "$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;}
3190  fi
3191fi
3192
3193{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3194echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3195
3196
3197if test x"$MPICC" = x; then :; else
3198  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3199echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3200  CC="$MPICC"
3201fi
3202
3203# Correct the LD variable if we are using the MS or Intel-windows compiler
3204case "$CC" in
3205  clang* ) ;;
3206  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3207    case $build in
3208  *-mingw*)
3209    if test "${LD+set}" = set; then :; else
3210      LD=link
3211    fi
3212    ;;
3213 esac
3214 case $enable_doscompile in
3215   msvc)
3216     if test "x${LD+set}" = xset; then :; else
3217       LD=link
3218     fi
3219     ;;
3220 esac
3221
3222    ;;
3223esac
3224
3225ac_ext=c
3226ac_cpp='$CPP $CPPFLAGS'
3227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3229ac_compiler_gnu=$ac_cv_c_compiler_gnu
3230
3231
3232
3233# Get the name of the C++ compiler and appropriate compiler options
3234
3235 #Let's try if that overcomes configuration problem with VC++ 6.0
3236
3237ac_ext=cc
3238ac_cpp='$CXXCPP $CPPFLAGS'
3239ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3242
3243
3244
3245
3246
3247
3248
3249coin_has_cxx=yes
3250
3251save_cxxflags="$CXXFLAGS"
3252# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3253case $build in
3254  *-cygwin* | *-mingw*)
3255             if test "$enable_doscompile" = msvc ; then
3256               comps="icl cl"
3257             else
3258               comps="g++ cl"
3259             fi ;;
3260  *-*-solaris*)
3261             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3262  *-darwin*) comps="g++ c++ CC" ;;
3263  *-linux-gnu*)
3264             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3265          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3266esac
3267
3268# We delete the cached value, since the test might not have been
3269# performed with our choice of compilers earlier
3270$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3271# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3272ac_ext=cc
3273ac_cpp='$CXXCPP $CPPFLAGS'
3274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3277if test -n "$ac_tool_prefix"; then
3278  for ac_prog in $CCC $comps
3279  do
3280    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3281set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3282echo "$as_me:$LINENO: checking for $ac_word" >&5
3283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3284if test "${ac_cv_prog_CXX+set}" = set; then
3285  echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287  if test -n "$CXX"; then
3288  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293  IFS=$as_save_IFS
3294  test -z "$as_dir" && as_dir=.
3295  for ac_exec_ext in '' $ac_executable_extensions; do
3296  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3298    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299    break 2
3300  fi
3301done
3302done
3303
3304fi
3305fi
3306CXX=$ac_cv_prog_CXX
3307if test -n "$CXX"; then
3308  echo "$as_me:$LINENO: result: $CXX" >&5
3309echo "${ECHO_T}$CXX" >&6
3310else
3311  echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
3313fi
3314
3315    test -n "$CXX" && break
3316  done
3317fi
3318if test -z "$CXX"; then
3319  ac_ct_CXX=$CXX
3320  for ac_prog in $CCC $comps
3321do
3322  # Extract the first word of "$ac_prog", so it can be a program name with args.
3323set dummy $ac_prog; ac_word=$2
3324echo "$as_me:$LINENO: checking for $ac_word" >&5
3325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3326if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3327  echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329  if test -n "$ac_ct_CXX"; then
3330  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3331else
3332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333for as_dir in $PATH
3334do
3335  IFS=$as_save_IFS
3336  test -z "$as_dir" && as_dir=.
3337  for ac_exec_ext in '' $ac_executable_extensions; do
3338  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339    ac_cv_prog_ac_ct_CXX="$ac_prog"
3340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341    break 2
3342  fi
3343done
3344done
3345
3346fi
3347fi
3348ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3349if test -n "$ac_ct_CXX"; then
3350  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3351echo "${ECHO_T}$ac_ct_CXX" >&6
3352else
3353  echo "$as_me:$LINENO: result: no" >&5
3354echo "${ECHO_T}no" >&6
3355fi
3356
3357  test -n "$ac_ct_CXX" && break
3358done
3359test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3360
3361  CXX=$ac_ct_CXX
3362fi
3363
3364
3365# Provide some information about the compiler.
3366echo "$as_me:$LINENO:" \
3367     "checking for C++ compiler version" >&5
3368ac_compiler=`set X $ac_compile; echo $2`
3369{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3370  (eval $ac_compiler --version </dev/null >&5) 2>&5
3371  ac_status=$?
3372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373  (exit $ac_status); }
3374{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3375  (eval $ac_compiler -v </dev/null >&5) 2>&5
3376  ac_status=$?
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); }
3379{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3380  (eval $ac_compiler -V </dev/null >&5) 2>&5
3381  ac_status=$?
3382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383  (exit $ac_status); }
3384
3385echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3386echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3387if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3388  echo $ECHO_N "(cached) $ECHO_C" >&6
3389else
3390  cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h.  */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h.  */
3396
3397int
3398main ()
3399{
3400#ifndef __GNUC__
3401       choke me
3402#endif
3403
3404  ;
3405  return 0;
3406}
3407_ACEOF
3408rm -f conftest.$ac_objext
3409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3410  (eval $ac_compile) 2>conftest.er1
3411  ac_status=$?
3412  grep -v '^ *+' conftest.er1 >conftest.err
3413  rm -f conftest.er1
3414  cat conftest.err >&5
3415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416  (exit $ac_status); } &&
3417         { ac_try='test -z "$ac_cxx_werror_flag"
3418                         || test ! -s conftest.err'
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); }; } &&
3424         { ac_try='test -s conftest.$ac_objext'
3425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3426  (eval $ac_try) 2>&5
3427  ac_status=$?
3428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429  (exit $ac_status); }; }; then
3430  ac_compiler_gnu=yes
3431else
3432  echo "$as_me: failed program was:" >&5
3433sed 's/^/| /' conftest.$ac_ext >&5
3434
3435ac_compiler_gnu=no
3436fi
3437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3438ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3439
3440fi
3441echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3442echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3443GXX=`test $ac_compiler_gnu = yes && echo yes`
3444ac_test_CXXFLAGS=${CXXFLAGS+set}
3445ac_save_CXXFLAGS=$CXXFLAGS
3446CXXFLAGS="-g"
3447echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3448echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3449if test "${ac_cv_prog_cxx_g+set}" = set; then
3450  echo $ECHO_N "(cached) $ECHO_C" >&6
3451else
3452  cat >conftest.$ac_ext <<_ACEOF
3453/* confdefs.h.  */
3454_ACEOF
3455cat confdefs.h >>conftest.$ac_ext
3456cat >>conftest.$ac_ext <<_ACEOF
3457/* end confdefs.h.  */
3458
3459int
3460main ()
3461{
3462
3463  ;
3464  return 0;
3465}
3466_ACEOF
3467rm -f conftest.$ac_objext
3468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469  (eval $ac_compile) 2>conftest.er1
3470  ac_status=$?
3471  grep -v '^ *+' conftest.er1 >conftest.err
3472  rm -f conftest.er1
3473  cat conftest.err >&5
3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475  (exit $ac_status); } &&
3476         { ac_try='test -z "$ac_cxx_werror_flag"
3477                         || test ! -s conftest.err'
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); }; } &&
3483         { ac_try='test -s conftest.$ac_objext'
3484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485  (eval $ac_try) 2>&5
3486  ac_status=$?
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); }; }; then
3489  ac_cv_prog_cxx_g=yes
3490else
3491  echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494ac_cv_prog_cxx_g=no
3495fi
3496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3497fi
3498echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3499echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3500if test "$ac_test_CXXFLAGS" = set; then
3501  CXXFLAGS=$ac_save_CXXFLAGS
3502elif test $ac_cv_prog_cxx_g = yes; then
3503  if test "$GXX" = yes; then
3504    CXXFLAGS="-g -O2"
3505  else
3506    CXXFLAGS="-g"
3507  fi
3508else
3509  if test "$GXX" = yes; then
3510    CXXFLAGS="-O2"
3511  else
3512    CXXFLAGS=
3513  fi
3514fi
3515for ac_declaration in \
3516   '' \
3517   'extern "C" void std::exit (int) throw (); using std::exit;' \
3518   'extern "C" void std::exit (int); using std::exit;' \
3519   'extern "C" void exit (int) throw ();' \
3520   'extern "C" void exit (int);' \
3521   'void exit (int);'
3522do
3523  cat >conftest.$ac_ext <<_ACEOF
3524/* confdefs.h.  */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h.  */
3529$ac_declaration
3530#include <stdlib.h>
3531int
3532main ()
3533{
3534exit (42);
3535  ;
3536  return 0;
3537}
3538_ACEOF
3539rm -f conftest.$ac_objext
3540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3541  (eval $ac_compile) 2>conftest.er1
3542  ac_status=$?
3543  grep -v '^ *+' conftest.er1 >conftest.err
3544  rm -f conftest.er1
3545  cat conftest.err >&5
3546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); } &&
3548         { ac_try='test -z "$ac_cxx_werror_flag"
3549                         || test ! -s conftest.err'
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); }; } &&
3555         { ac_try='test -s conftest.$ac_objext'
3556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557  (eval $ac_try) 2>&5
3558  ac_status=$?
3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); }; }; then
3561  :
3562else
3563  echo "$as_me: failed program was:" >&5
3564sed 's/^/| /' conftest.$ac_ext >&5
3565
3566continue
3567fi
3568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3569  cat >conftest.$ac_ext <<_ACEOF
3570/* confdefs.h.  */
3571_ACEOF
3572cat confdefs.h >>conftest.$ac_ext
3573cat >>conftest.$ac_ext <<_ACEOF
3574/* end confdefs.h.  */
3575$ac_declaration
3576int
3577main ()
3578{
3579exit (42);
3580  ;
3581  return 0;
3582}
3583_ACEOF
3584rm -f conftest.$ac_objext
3585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3586  (eval $ac_compile) 2>conftest.er1
3587  ac_status=$?
3588  grep -v '^ *+' conftest.er1 >conftest.err
3589  rm -f conftest.er1
3590  cat conftest.err >&5
3591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592  (exit $ac_status); } &&
3593         { ac_try='test -z "$ac_cxx_werror_flag"
3594                         || test ! -s conftest.err'
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); }; } &&
3600         { ac_try='test -s conftest.$ac_objext'
3601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602  (eval $ac_try) 2>&5
3603  ac_status=$?
3604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605  (exit $ac_status); }; }; then
3606  break
3607else
3608  echo "$as_me: failed program was:" >&5
3609sed 's/^/| /' conftest.$ac_ext >&5
3610
3611fi
3612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3613done
3614rm -f conftest*
3615if test -n "$ac_declaration"; then
3616  echo '#ifdef __cplusplus' >>confdefs.h
3617  echo $ac_declaration      >>confdefs.h
3618  echo '#endif'             >>confdefs.h
3619fi
3620
3621ac_ext=cc
3622ac_cpp='$CXXCPP $CPPFLAGS'
3623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3626
3627
3628#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3629#thus, we test here whether $CXX is actually working
3630ac_ext=cc
3631ac_cpp='$CXXCPP $CPPFLAGS'
3632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3635
3636echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3637echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3638cat >conftest.$ac_ext <<_ACEOF
3639/* confdefs.h.  */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h.  */
3644
3645int
3646main ()
3647{
3648int i=0;
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653rm -f conftest.$ac_objext
3654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655  (eval $ac_compile) 2>conftest.er1
3656  ac_status=$?
3657  grep -v '^ *+' conftest.er1 >conftest.err
3658  rm -f conftest.er1
3659  cat conftest.err >&5
3660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661  (exit $ac_status); } &&
3662         { ac_try='test -z "$ac_cxx_werror_flag"
3663                         || test ! -s conftest.err'
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); }; } &&
3669         { ac_try='test -s conftest.$ac_objext'
3670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671  (eval $ac_try) 2>&5
3672  ac_status=$?
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); }; }; then
3675  echo "$as_me:$LINENO: result: yes" >&5
3676echo "${ECHO_T}yes" >&6
3677else
3678  echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681echo "$as_me:$LINENO: result: no" >&5
3682echo "${ECHO_T}no" >&6
3683   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3684echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3685   { (exit 1); exit 1; }; }
3686
3687fi
3688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3689ac_ext=cc
3690ac_cpp='$CXXCPP $CPPFLAGS'
3691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3694
3695
3696coin_cxx_is_cl=false
3697# It seems that we need to cleanup something here for the Windows
3698case "$CXX" in
3699  clang* ) ;;
3700  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3701    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3702    mv confdefs.hh confdefs.h
3703    coin_cxx_is_cl=true
3704    ;;
3705esac
3706
3707# add automake conditional so we can recognize cl compiler in makefile
3708
3709
3710if test $coin_cxx_is_cl = true; then
3711  COIN_CXX_IS_CL_TRUE=
3712  COIN_CXX_IS_CL_FALSE='#'
3713else
3714  COIN_CXX_IS_CL_TRUE='#'
3715  COIN_CXX_IS_CL_FALSE=
3716fi
3717
3718
3719# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3720case "$CXX" in
3721  clang* ) ;;
3722  cl* | */cl* | CL* | */CL* )
3723    if test "$ac_cv_prog_cxx_g" = yes ; then
3724      ac_cv_prog_cxx_g=no
3725      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3726echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3727    fi ;;
3728esac
3729CXXFLAGS="$save_cxxflags"
3730
3731# Check if a project specific CXXFLAGS variable has been set
3732if test x$COIN_PRJCT != x; then
3733  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3734  if test x$coin_tmp = xset; then
3735    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3736  fi
3737fi
3738
3739if test x"$CXXFLAGS" = x; then
3740
3741# ToDo decide whether we want -DNDEBUG for optimization
3742  coin_add_cxxflags=
3743  coin_opt_cxxflags=
3744  coin_dbg_cxxflags=
3745  coin_warn_cxxflags=
3746
3747  if test "$GXX" = "yes"; then
3748    case "$CXX" in
3749      icpc* | */icpc*)
3750        ;;
3751      *)
3752# ToDo decide about unroll-loops
3753        coin_opt_cxxflags="-O3"
3754        coin_add_cxxflags="-pipe"
3755        coin_dbg_cxxflags="-g -O0"
3756        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3757        case $build in
3758          *-darwin*)
3759            ;;
3760          *)
3761            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3762            ;;
3763        esac
3764
3765        case $enable_doscompile in
3766          mingw)
3767            CXXFLAGS="-mno-cygwin"
3768            cat >conftest.$ac_ext <<_ACEOF
3769/* confdefs.h.  */
3770_ACEOF
3771cat confdefs.h >>conftest.$ac_ext
3772cat >>conftest.$ac_ext <<_ACEOF
3773/* end confdefs.h.  */
3774
3775int
3776main ()
3777{
3778int i=0; i++;
3779  ;
3780  return 0;
3781}
3782_ACEOF
3783rm -f conftest.$ac_objext conftest$ac_exeext
3784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3785  (eval $ac_link) 2>conftest.er1
3786  ac_status=$?
3787  grep -v '^ *+' conftest.er1 >conftest.err
3788  rm -f conftest.er1
3789  cat conftest.err >&5
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); } &&
3792         { ac_try='test -z "$ac_cxx_werror_flag"
3793                         || test ! -s conftest.err'
3794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795  (eval $ac_try) 2>&5
3796  ac_status=$?
3797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798  (exit $ac_status); }; } &&
3799         { ac_try='test -s conftest$ac_exeext'
3800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801  (eval $ac_try) 2>&5
3802  ac_status=$?
3803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804  (exit $ac_status); }; }; then
3805  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3806else
3807  echo "$as_me: failed program was:" >&5
3808sed 's/^/| /' conftest.$ac_ext >&5
3809
3810fi
3811rm -f conftest.err conftest.$ac_objext \
3812      conftest$ac_exeext conftest.$ac_ext
3813            CXXFLAGS=
3814          ;;
3815        esac
3816    esac
3817  fi
3818
3819# Note that we do not need to cover GCC in the following tests.
3820
3821  if test -z "$coin_opt_cxxflags"; then
3822    case $build in
3823      *-cygwin* | *-mingw*)
3824        case "$CXX" in
3825          clang* ) ;;
3826          cl* | */cl* | CL* | */CL*)
3827            # The MT and MTd options are mutually exclusive
3828            coin_opt_cxxflags='-MT -O2'
3829            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3830            coin_dbg_cxxflags='-MTd'
3831            ;;
3832          icl* | */icl* | ICL* | */ICL*)
3833            # The MT and MTd options are mutually exclusive
3834            coin_opt_cxxflags='-MT -Ox'
3835            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3836            coin_dbg_cxxflags='-MTd -debug'
3837            ;;
3838        esac
3839        ;;
3840      *-linux-*)
3841        case "$CXX" in
3842          icpc* | */icpc*)
3843            coin_opt_cxxflags="-O3 -ip -mp1"
3844            coin_add_cxxflags=""
3845            coin_dbg_cxxflags="-g"
3846            # Check if -i_dynamic is necessary (for new glibc library)
3847            CXXFLAGS=
3848            cat >conftest.$ac_ext <<_ACEOF
3849/* confdefs.h.  */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h.  */
3854
3855int
3856main ()
3857{
3858int i=0; i++;
3859  ;
3860  return 0;
3861}
3862_ACEOF
3863rm -f conftest.$ac_objext conftest$ac_exeext
3864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865  (eval $ac_link) 2>conftest.er1
3866  ac_status=$?
3867  grep -v '^ *+' conftest.er1 >conftest.err
3868  rm -f conftest.er1
3869  cat conftest.err >&5
3870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871  (exit $ac_status); } &&
3872         { ac_try='test -z "$ac_cxx_werror_flag"
3873                         || test ! -s conftest.err'
3874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3875  (eval $ac_try) 2>&5
3876  ac_status=$?
3877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878  (exit $ac_status); }; } &&
3879         { ac_try='test -s conftest$ac_exeext'
3880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3881  (eval $ac_try) 2>&5
3882  ac_status=$?
3883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884  (exit $ac_status); }; }; then
3885  :
3886else
3887  echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
3889
3890coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3891fi
3892rm -f conftest.err conftest.$ac_objext \
3893      conftest$ac_exeext conftest.$ac_ext
3894            ;;
3895          pgCC* | */pgCC*)
3896            coin_opt_cxxflags="-fast"
3897            coin_add_cxxflags="-Kieee -pc 64"
3898            coin_dbg_cxxflags="-g"
3899            ;;
3900        esac
3901        ;;
3902      *-ibm-*)
3903        case "$CXX" in
3904          xlC* | */xlC* | mpxlC* | */mpxlC*)
3905            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3906            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3907            coin_dbg_cxxflags="-g"
3908            ;;
3909        esac
3910        ;;
3911      *-hp-*)
3912        case "$CXX" in
3913          aCC* | */aCC* )
3914            coin_opt_cxxflags="-O"
3915            coin_add_cxxflags="-AA"
3916            coin_dbg_cxxflags="-g"
3917            ;;
3918        esac
3919        ;;
3920      *-*-solaris*)
3921          coin_opt_cxxflags="-O4"
3922          coin_dbg_cxxflags="-g"
3923        ;;
3924    esac
3925  fi
3926
3927# Generic flag settings. If these don't work, add a case above.
3928
3929  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3930    coin_dbg_cxxflags="-g"
3931  fi
3932
3933  if test -z "$coin_opt_cxxflags"; then
3934    # Try if -O option works if nothing else is set
3935    CXXFLAGS=-O
3936    cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h.  */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h.  */
3942
3943int
3944main ()
3945{
3946int i=0; i++;
3947  ;
3948  return 0;
3949}
3950_ACEOF
3951rm -f conftest.$ac_objext conftest$ac_exeext
3952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3953  (eval $ac_link) 2>conftest.er1
3954  ac_status=$?
3955  grep -v '^ *+' conftest.er1 >conftest.err
3956  rm -f conftest.er1
3957  cat conftest.err >&5
3958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959  (exit $ac_status); } &&
3960         { ac_try='test -z "$ac_cxx_werror_flag"
3961                         || test ! -s conftest.err'
3962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963  (eval $ac_try) 2>&5
3964  ac_status=$?
3965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966  (exit $ac_status); }; } &&
3967         { ac_try='test -s conftest$ac_exeext'
3968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969  (eval $ac_try) 2>&5
3970  ac_status=$?
3971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972  (exit $ac_status); }; }; then
3973  coin_opt_cxxflags="-O"
3974else
3975  echo "$as_me: failed program was:" >&5
3976sed 's/^/| /' conftest.$ac_ext >&5
3977
3978fi
3979rm -f conftest.err conftest.$ac_objext \
3980      conftest$ac_exeext conftest.$ac_ext
3981  fi
3982
3983  # if PM doesn't want the warning messages, take them out
3984  if test x"$coin_skip_warn_cxxflags" = xyes; then
3985    coin_warn_cxxflags=
3986  fi
3987
3988# Do final setup of flags based on values determined above.
3989
3990  if test x${DBG_CXXFLAGS+set} != xset; then
3991    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3992  fi
3993  if test x${OPT_CXXFLAGS+set} != xset; then
3994    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3995  fi
3996
3997  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3998  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3999
4000  if test "$coin_debug_compile" = "true"; then
4001    CXXFLAGS="$DBG_CXXFLAGS"
4002  else
4003    CXXFLAGS="$OPT_CXXFLAGS"
4004  fi
4005
4006# Handle the case where CXXFLAGS was set externally.
4007else
4008  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4009  if test x${DBG_CXXFLAGS+set} != xset; then
4010    DBG_CXXFLAGS="$CXXFLAGS"
4011  fi
4012  if test x${OPT_CXXFLAGS+set} != xset; then
4013    OPT_CXXFLAGS="$CXXFLAGS"
4014  fi
4015fi
4016
4017# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4018
4019case "$CXXFLAGS" in
4020  *-mno-cygwin*)
4021    if test x${CPPFLAGS+set} != xset ; then
4022      CPPFLAGS="-mno-cygwin"
4023    else
4024      case "$CPPFLAGS" in
4025        *-mno-cygwin*)
4026          ;;
4027        *)
4028          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4029          ;;
4030      esac
4031    fi ;;
4032esac
4033
4034# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4035if test x$COIN_PRJCT != x; then
4036  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4037fi
4038
4039# Try if CXXFLAGS works
4040save_CXXFLAGS="$CXXFLAGS"
4041cat >conftest.$ac_ext <<_ACEOF
4042/* confdefs.h.  */
4043_ACEOF
4044cat confdefs.h >>conftest.$ac_ext
4045cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h.  */
4047
4048int
4049main ()
4050{
4051int i=0; i++;
4052  ;
4053  return 0;
4054}
4055_ACEOF
4056rm -f conftest.$ac_objext conftest$ac_exeext
4057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4058  (eval $ac_link) 2>conftest.er1
4059  ac_status=$?
4060  grep -v '^ *+' conftest.er1 >conftest.err
4061  rm -f conftest.er1
4062  cat conftest.err >&5
4063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064  (exit $ac_status); } &&
4065         { ac_try='test -z "$ac_cxx_werror_flag"
4066                         || test ! -s conftest.err'
4067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4068  (eval $ac_try) 2>&5
4069  ac_status=$?
4070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071  (exit $ac_status); }; } &&
4072         { ac_try='test -s conftest$ac_exeext'
4073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4074  (eval $ac_try) 2>&5
4075  ac_status=$?
4076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077  (exit $ac_status); }; }; then
4078  :
4079else
4080  echo "$as_me: failed program was:" >&5
4081sed 's/^/| /' conftest.$ac_ext >&5
4082
4083CXXFLAGS=
4084fi
4085rm -f conftest.err conftest.$ac_objext \
4086      conftest$ac_exeext conftest.$ac_ext
4087if test -z "$CXXFLAGS"; then
4088  { 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
4089echo "$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;}
4090  CXXFLAGS='-O'
4091  cat >conftest.$ac_ext <<_ACEOF
4092/* confdefs.h.  */
4093_ACEOF
4094cat confdefs.h >>conftest.$ac_ext
4095cat >>conftest.$ac_ext <<_ACEOF
4096/* end confdefs.h.  */
4097
4098int
4099main ()
4100{
4101int i=0; i++;
4102  ;
4103  return 0;
4104}
4105_ACEOF
4106rm -f conftest.$ac_objext conftest$ac_exeext
4107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4108  (eval $ac_link) 2>conftest.er1
4109  ac_status=$?
4110  grep -v '^ *+' conftest.er1 >conftest.err
4111  rm -f conftest.er1
4112  cat conftest.err >&5
4113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114  (exit $ac_status); } &&
4115         { ac_try='test -z "$ac_cxx_werror_flag"
4116                         || test ! -s conftest.err'
4117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118  (eval $ac_try) 2>&5
4119  ac_status=$?
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); }; } &&
4122         { ac_try='test -s conftest$ac_exeext'
4123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4124  (eval $ac_try) 2>&5
4125  ac_status=$?
4126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127  (exit $ac_status); }; }; then
4128  :
4129else
4130  echo "$as_me: failed program was:" >&5
4131sed 's/^/| /' conftest.$ac_ext >&5
4132
4133CXXFLAGS=
4134fi
4135rm -f conftest.err conftest.$ac_objext \
4136      conftest$ac_exeext conftest.$ac_ext
4137  if test -z "$CXXFLAGS"; then
4138    { 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
4139echo "$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;}
4140  fi
4141fi
4142
4143{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4144echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4145
4146
4147if test x"$MPICXX" = x; then :; else
4148  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4149echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4150  CXX="$MPICXX"
4151fi
4152
4153# correct the LD variable in a mingw build with MS or intel compiler
4154case "$CXX" in
4155  clang* ) ;;
4156  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4157    case $build in
4158  *-mingw*)
4159    if test "${LD+set}" = set; then :; else
4160      LD=link
4161    fi
4162    ;;
4163 esac
4164 case $enable_doscompile in
4165   msvc)
4166     if test "x${LD+set}" = xset; then :; else
4167       LD=link
4168     fi
4169     ;;
4170 esac
4171
4172    ;;
4173esac
4174
4175ac_ext=c
4176ac_cpp='$CPP $CPPFLAGS'
4177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180
4181
4182
4183# Check if pkg-config is available (to setup addlibs file)
4184
4185
4186# Check whether --enable-pkg-config or --disable-pkg-config was given.
4187if test "${enable_pkg_config+set}" = set; then
4188  enableval="$enable_pkg_config"
4189  use_pkgconfig="$enableval"
4190else
4191  use_pkgconfig=yes
4192fi;
4193
4194if test $use_pkgconfig = yes ; then
4195  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4196    if test -n "$ac_tool_prefix"; then
4197  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4198set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4199echo "$as_me:$LINENO: checking for $ac_word" >&5
4200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4201if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4202  echo $ECHO_N "(cached) $ECHO_C" >&6
4203else
4204  case $PKG_CONFIG in
4205  [\\/]* | ?:[\\/]*)
4206  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4207  ;;
4208  *)
4209  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH
4211do
4212  IFS=$as_save_IFS
4213  test -z "$as_dir" && as_dir=.
4214  for ac_exec_ext in '' $ac_executable_extensions; do
4215  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4216    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4217    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218    break 2
4219  fi
4220done
4221done
4222
4223  ;;
4224esac
4225fi
4226PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4227
4228if test -n "$PKG_CONFIG"; then
4229  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4230echo "${ECHO_T}$PKG_CONFIG" >&6
4231else
4232  echo "$as_me:$LINENO: result: no" >&5
4233echo "${ECHO_T}no" >&6
4234fi
4235
4236fi
4237if test -z "$ac_cv_path_PKG_CONFIG"; then
4238  ac_pt_PKG_CONFIG=$PKG_CONFIG
4239  # Extract the first word of "pkg-config", so it can be a program name with args.
4240set dummy pkg-config; ac_word=$2
4241echo "$as_me:$LINENO: checking for $ac_word" >&5
4242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4243if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4244  echo $ECHO_N "(cached) $ECHO_C" >&6
4245else
4246  case $ac_pt_PKG_CONFIG in
4247  [\\/]* | ?:[\\/]*)
4248  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4249  ;;
4250  *)
4251  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252for as_dir in $PATH
4253do
4254  IFS=$as_save_IFS
4255  test -z "$as_dir" && as_dir=.
4256  for ac_exec_ext in '' $ac_executable_extensions; do
4257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4258    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260    break 2
4261  fi
4262done
4263done
4264
4265  ;;
4266esac
4267fi
4268ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4269
4270if test -n "$ac_pt_PKG_CONFIG"; then
4271  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4272echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4273else
4274  echo "$as_me:$LINENO: result: no" >&5
4275echo "${ECHO_T}no" >&6
4276fi
4277
4278  PKG_CONFIG=$ac_pt_PKG_CONFIG
4279else
4280  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4281fi
4282
4283  fi
4284  if test -n "$PKG_CONFIG"; then
4285    _pkg_min_version=0.16.0
4286    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4287echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4288    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4289      echo "$as_me:$LINENO: result: yes" >&5
4290echo "${ECHO_T}yes" >&6
4291    else
4292      echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
4294      PKG_CONFIG=""
4295    fi
4296  fi
4297
4298  # check if pkg-config supports the short-errors flag
4299  if test -n "$PKG_CONFIG" && \
4300    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4301    pkg_short_errors=" --short-errors "
4302  else
4303    pkg_short_errors=""
4304  fi
4305fi
4306
4307
4308
4309if test -n "$PKG_CONFIG"; then
4310  COIN_HAS_PKGCONFIG_TRUE=
4311  COIN_HAS_PKGCONFIG_FALSE='#'
4312else
4313  COIN_HAS_PKGCONFIG_TRUE='#'
4314  COIN_HAS_PKGCONFIG_FALSE=
4315fi
4316
4317
4318
4319# assemble pkg-config search path for installed projects
4320COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4321
4322# 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
4323# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4324# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4325if test "x${prefix}" = xNONE ; then
4326  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4327else
4328  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4329fi
4330
4331
4332# Check whether --with-coin-instdir or --without-coin-instdir was given.
4333if test "${with_coin_instdir+set}" = set; then
4334  withval="$with_coin_instdir"
4335  if test -d "$withval"; then : ; else
4336     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4337echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4338   { (exit 1); exit 1; }; }
4339   fi
4340   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4341
4342fi;
4343
4344
4345
4346# assemble additional pkg-config search paths for uninstalled projects
4347if test x$coin_projectdir = xyes ; then
4348  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4349  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4350  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4351  # 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)
4352  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4353  if test -e ../coin_subdirs.txt ; then
4354    for i in `cat ../coin_subdirs.txt` ; do
4355      if test -d ../$i ; then
4356        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4357      fi
4358      if test -d ../$i/pkgconfig ; then
4359        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4360      fi
4361    done
4362  fi
4363
4364  if test -e ../../coin_subdirs.txt ; then
4365    for i in `cat ../../coin_subdirs.txt` ; do
4366      if test -d ../../$i ; then
4367        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4368      fi
4369      if test -d ../../$i/pkgconfig ; then
4370        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4371      fi
4372    done
4373  fi
4374
4375
4376fi
4377
4378if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4379  { 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
4380echo "$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;}
4381fi
4382
4383
4384
4385# Initialize automake
4386{
4387
4388
4389
4390# START
4391
4392# Test if force_shared has been set
4393if test "x" = xforce_shared; then
4394  if test x$enable_shared = xno; then
4395    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4396echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4397   { (exit 1); exit 1; }; }
4398  fi
4399  enable_shared=yes;
4400else
4401  # On Cygwin and AIX, building DLLs doesn't work
4402  case $build in
4403    *-cygwin*)
4404      coin_disable_shared=yes
4405      platform=Cygwin
4406    ;;
4407    *-aix*)
4408      coin_disable_shared=yes
4409      platform=AIX
4410    ;;
4411    *-mingw*)
4412      coin_disable_shared=yes
4413      platform="Msys"
4414#      case "$CXX" in
4415#        cl*)
4416#          coin_disable_shared=yes
4417#          platform="Msys with cl"
4418#      ;;
4419#      esac
4420    ;;
4421  esac
4422fi
4423if test x"$coin_disable_shared" = xyes; then
4424  if test x"$enable_shared" = xyes; then
4425    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4426echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4427  fi
4428  enable_shared=no
4429fi
4430# By default, we only want the shared objects to be compiled
4431# Check whether --enable-static or --disable-static was given.
4432if test "${enable_static+set}" = set; then
4433  enableval="$enable_static"
4434  p=${PACKAGE-default}
4435    case $enableval in
4436    yes) enable_static=yes ;;
4437    no) enable_static=no ;;
4438    *)
4439     enable_static=no
4440      # Look at the argument we got.  We use all the common list separators.
4441      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4442      for pkg in $enableval; do
4443        IFS="$lt_save_ifs"
4444        if test "X$pkg" = "X$p"; then
4445          enable_static=yes
4446        fi
4447      done
4448      IFS="$lt_save_ifs"
4449      ;;
4450    esac
4451else
4452  enable_static=no
4453fi;
4454
4455
4456
4457
4458# Initialize automake
4459echo "$as_me:$LINENO: checking for egrep" >&5
4460echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4461if test "${ac_cv_prog_egrep+set}" = set; then
4462  echo $ECHO_N "(cached) $ECHO_C" >&6
4463else
4464  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4465    then ac_cv_prog_egrep='grep -E'
4466    else ac_cv_prog_egrep='egrep'
4467    fi
4468fi
4469echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4470echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4471 EGREP=$ac_cv_prog_egrep
4472
4473
4474echo "$as_me:$LINENO: checking whether ln -s works" >&5
4475echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4476LN_S=$as_ln_s
4477if test "$LN_S" = "ln -s"; then
4478  echo "$as_me:$LINENO: result: yes" >&5
4479echo "${ECHO_T}yes" >&6
4480else
4481  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4482echo "${ECHO_T}no, using $LN_S" >&6
4483fi
4484
4485am__api_version="1.9"
4486# Find a good install program.  We prefer a C program (faster),
4487# so one script is as good as another.  But avoid the broken or
4488# incompatible versions:
4489# SysV /etc/install, /usr/sbin/install
4490# SunOS /usr/etc/install
4491# IRIX /sbin/install
4492# AIX /bin/install
4493# AmigaOS /C/install, which installs bootblocks on floppy discs
4494# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4495# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4496# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4497# OS/2's system install, which has a completely different semantic
4498# ./install, which can be erroneously created by make from ./install.sh.
4499echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4500echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4501if test -z "$INSTALL"; then
4502if test "${ac_cv_path_install+set}" = set; then
4503  echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
4505  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH
4507do
4508  IFS=$as_save_IFS
4509  test -z "$as_dir" && as_dir=.
4510  # Account for people who put trailing slashes in PATH elements.
4511case $as_dir/ in
4512  ./ | .// | /cC/* | \
4513  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4514  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4515  /usr/ucb/* ) ;;
4516  *)
4517    # OSF1 and SCO ODT 3.0 have their own names for install.
4518    # Don't use installbsd from OSF since it installs stuff as root
4519    # by default.
4520    for ac_prog in ginstall scoinst install; do
4521      for ac_exec_ext in '' $ac_executable_extensions; do
4522        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4523          if test $ac_prog = install &&
4524            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4525            # AIX install.  It has an incompatible calling convention.
4526            :
4527          elif test $ac_prog = install &&
4528            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4529            # program-specific install script used by HP pwplus--don't use.
4530            :
4531          else
4532            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4533            break 3
4534          fi
4535        fi
4536      done
4537    done
4538    ;;
4539esac
4540done
4541
4542
4543fi
4544  if test "${ac_cv_path_install+set}" = set; then
4545    INSTALL=$ac_cv_path_install
4546  else
4547    # As a last resort, use the slow shell script.  We don't cache a
4548    # path for INSTALL within a source directory, because that will
4549    # break other packages using the cache if that directory is
4550    # removed, or if the path is relative.
4551    INSTALL=$ac_install_sh
4552  fi
4553fi
4554echo "$as_me:$LINENO: result: $INSTALL" >&5
4555echo "${ECHO_T}$INSTALL" >&6
4556
4557# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4558# It thinks the first close brace ends the variable substitution.
4559test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4560
4561test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4562
4563test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4564
4565echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4566echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4567# Just in case
4568sleep 1
4569echo timestamp > conftest.file
4570# Do `set' in a subshell so we don't clobber the current shell's
4571# arguments.  Must try -L first in case configure is actually a
4572# symlink; some systems play weird games with the mod time of symlinks
4573# (eg FreeBSD returns the mod time of the symlink's containing
4574# directory).
4575if (
4576   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4577   if test "$*" = "X"; then
4578      # -L didn't work.
4579      set X `ls -t $srcdir/configure conftest.file`
4580   fi
4581   rm -f conftest.file
4582   if test "$*" != "X $srcdir/configure conftest.file" \
4583      && test "$*" != "X conftest.file $srcdir/configure"; then
4584
4585      # If neither matched, then we have a broken ls.  This can happen
4586      # if, for instance, CONFIG_SHELL is bash and it inherits a
4587      # broken ls alias from the environment.  This has actually
4588      # happened.  Such a system could not be considered "sane".
4589      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4590alias in your environment" >&5
4591echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4592alias in your environment" >&2;}
4593   { (exit 1); exit 1; }; }
4594   fi
4595
4596   test "$2" = conftest.file
4597   )
4598then
4599   # Ok.
4600   :
4601else
4602   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4603Check your system clock" >&5
4604echo "$as_me: error: newly created file is older than distributed files!
4605Check your system clock" >&2;}
4606   { (exit 1); exit 1; }; }
4607fi
4608echo "$as_me:$LINENO: result: yes" >&5
4609echo "${ECHO_T}yes" >&6
4610test "$program_prefix" != NONE &&
4611  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4612# Use a double $ so make ignores it.
4613test "$program_suffix" != NONE &&
4614  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4615# Double any \ or $.  echo might interpret backslashes.
4616# By default was `s,x,x', remove it if useless.
4617cat <<\_ACEOF >conftest.sed
4618s/[\\$]/&&/g;s/;s,x,x,$//
4619_ACEOF
4620program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4621rm conftest.sed
4622
4623# expand $ac_aux_dir to an absolute path
4624am_aux_dir=`cd $ac_aux_dir && pwd`
4625
4626test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4627# Use eval to expand $SHELL
4628if eval "$MISSING --run true"; then
4629  am_missing_run="$MISSING --run "
4630else
4631  am_missing_run=
4632  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4633echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4634fi
4635
4636if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4637  # We used to keeping the `.' as first argument, in order to
4638  # allow $(mkdir_p) to be used without argument.  As in
4639  #   $(mkdir_p) $(somedir)
4640  # where $(somedir) is conditionally defined.  However this is wrong
4641  # for two reasons:
4642  #  1. if the package is installed by a user who cannot write `.'
4643  #     make install will fail,
4644  #  2. the above comment should most certainly read
4645  #     $(mkdir_p) $(DESTDIR)$(somedir)
4646  #     so it does not work when $(somedir) is undefined and
4647  #     $(DESTDIR) is not.
4648  #  To support the latter case, we have to write
4649  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4650  #  so the `.' trick is pointless.
4651  mkdir_p='mkdir -p --'
4652else
4653  # On NextStep and OpenStep, the `mkdir' command does not
4654  # recognize any option.  It will interpret all options as
4655  # directories to create, and then abort because `.' already
4656  # exists.
4657  for d in ./-p ./--version;
4658  do
4659    test -d $d && rmdir $d
4660  done
4661  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4662  if test -f "$ac_aux_dir/mkinstalldirs"; then
4663    mkdir_p='$(mkinstalldirs)'
4664  else
4665    mkdir_p='$(install_sh) -d'
4666  fi
4667fi
4668
4669for ac_prog in gawk mawk nawk awk
4670do
4671  # Extract the first word of "$ac_prog", so it can be a program name with args.
4672set dummy $ac_prog; ac_word=$2
4673echo "$as_me:$LINENO: checking for $ac_word" >&5
4674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675if test "${ac_cv_prog_AWK+set}" = set; then
4676  echo $ECHO_N "(cached) $ECHO_C" >&6
4677else
4678  if test -n "$AWK"; then
4679  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4680else
4681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682for as_dir in $PATH
4683do
4684  IFS=$as_save_IFS
4685  test -z "$as_dir" && as_dir=.
4686  for ac_exec_ext in '' $ac_executable_extensions; do
4687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688    ac_cv_prog_AWK="$ac_prog"
4689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690    break 2
4691  fi
4692done
4693done
4694
4695fi
4696fi
4697AWK=$ac_cv_prog_AWK
4698if test -n "$AWK"; then
4699  echo "$as_me:$LINENO: result: $AWK" >&5
4700echo "${ECHO_T}$AWK" >&6
4701else
4702  echo "$as_me:$LINENO: result: no" >&5
4703echo "${ECHO_T}no" >&6
4704fi
4705
4706  test -n "$AWK" && break
4707done
4708
4709echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4710echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4711set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4712if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4713  echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
4715  cat >conftest.make <<\_ACEOF
4716all:
4717        @echo 'ac_maketemp="$(MAKE)"'
4718_ACEOF
4719# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4720eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4721if test -n "$ac_maketemp"; then
4722  eval ac_cv_prog_make_${ac_make}_set=yes
4723else
4724  eval ac_cv_prog_make_${ac_make}_set=no
4725fi
4726rm -f conftest.make
4727fi
4728if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4729  echo "$as_me:$LINENO: result: yes" >&5
4730echo "${ECHO_T}yes" >&6
4731  SET_MAKE=
4732else
4733  echo "$as_me:$LINENO: result: no" >&5
4734echo "${ECHO_T}no" >&6
4735  SET_MAKE="MAKE=${MAKE-make}"
4736fi
4737
4738rm -rf .tst 2>/dev/null
4739mkdir .tst 2>/dev/null
4740if test -d .tst; then
4741  am__leading_dot=.
4742else
4743  am__leading_dot=_
4744fi
4745rmdir .tst 2>/dev/null
4746
4747DEPDIR="${am__leading_dot}deps"
4748
4749          ac_config_commands="$ac_config_commands depfiles"
4750
4751
4752am_make=${MAKE-make}
4753cat > confinc << 'END'
4754am__doit:
4755        @echo done
4756.PHONY: am__doit
4757END
4758# If we don't find an include directive, just comment out the code.
4759echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4760echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4761am__include="#"
4762am__quote=
4763_am_result=none
4764# First try GNU make style include.
4765echo "include confinc" > confmf
4766# We grep out `Entering directory' and `Leaving directory'
4767# messages which can occur if `w' ends up in MAKEFLAGS.
4768# In particular we don't look at `^make:' because GNU make might
4769# be invoked under some other name (usually "gmake"), in which
4770# case it prints its new name instead of `make'.
4771if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4772   am__include=include
4773   am__quote=
4774   _am_result=GNU
4775fi
4776# Now try BSD make style include.
4777if test "$am__include" = "#"; then
4778   echo '.include "confinc"' > confmf
4779   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4780      am__include=.include
4781      am__quote="\""
4782      _am_result=BSD
4783   fi
4784fi
4785
4786
4787echo "$as_me:$LINENO: result: $_am_result" >&5
4788echo "${ECHO_T}$_am_result" >&6
4789rm -f confinc confmf
4790
4791# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4792if test "${enable_dependency_tracking+set}" = set; then
4793  enableval="$enable_dependency_tracking"
4794
4795fi;
4796if test "x$enable_dependency_tracking" != xno; then
4797  am_depcomp="$ac_aux_dir/depcomp"
4798  AMDEPBACKSLASH='\'
4799fi
4800
4801
4802if test "x$enable_dependency_tracking" != xno; then
4803  AMDEP_TRUE=
4804  AMDEP_FALSE='#'
4805else
4806  AMDEP_TRUE='#'
4807  AMDEP_FALSE=
4808fi
4809
4810
4811
4812
4813
4814
4815# AC_MSG_NOTICE([Beginning automake initialisation.])
4816# Stuff for automake
4817# test to see if srcdir already configured
4818if test "`cd $srcdir && pwd`" != "`pwd`" &&
4819   test -f $srcdir/config.status; then
4820  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4821echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4822   { (exit 1); exit 1; }; }
4823fi
4824
4825# test whether we have cygpath
4826if test -z "$CYGPATH_W"; then
4827  if (cygpath --version) >/dev/null 2>/dev/null; then
4828    CYGPATH_W='cygpath -w'
4829  else
4830    CYGPATH_W=echo
4831  fi
4832fi
4833
4834
4835# Define the identity of the package.
4836 PACKAGE='thirdpartysoplex'
4837 VERSION='1.2'
4838
4839
4840cat >>confdefs.h <<_ACEOF
4841#define PACKAGE "$PACKAGE"
4842_ACEOF
4843
4844
4845cat >>confdefs.h <<_ACEOF
4846#define VERSION "$VERSION"
4847_ACEOF
4848
4849# Some tools Automake needs.
4850
4851ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4852
4853
4854AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4855
4856
4857AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4858
4859
4860AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4861
4862
4863MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4864
4865install_sh=${install_sh-"$am_aux_dir/install-sh"}
4866
4867# Installed binaries are usually stripped using `strip' when the user
4868# run `make install-strip'.  However `strip' might not be the right
4869# tool to use in cross-compilation environments, therefore Automake
4870# will honor the `STRIP' environment variable to overrule this program.
4871if test "$cross_compiling" != no; then
4872  if test -n "$ac_tool_prefix"; then
4873  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4874set dummy ${ac_tool_prefix}strip; ac_word=$2
4875echo "$as_me:$LINENO: checking for $ac_word" >&5
4876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4877if test "${ac_cv_prog_STRIP+set}" = set; then
4878  echo $ECHO_N "(cached) $ECHO_C" >&6
4879else
4880  if test -n "$STRIP"; then
4881  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4882else
4883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884for as_dir in $PATH
4885do
4886  IFS=$as_save_IFS
4887  test -z "$as_dir" && as_dir=.
4888  for ac_exec_ext in '' $ac_executable_extensions; do
4889  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892    break 2
4893  fi
4894done
4895done
4896
4897fi
4898fi
4899STRIP=$ac_cv_prog_STRIP
4900if test -n "$STRIP"; then
4901  echo "$as_me:$LINENO: result: $STRIP" >&5
4902echo "${ECHO_T}$STRIP" >&6
4903else
4904  echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6
4906fi
4907
4908fi
4909if test -z "$ac_cv_prog_STRIP"; then
4910  ac_ct_STRIP=$STRIP
4911  # Extract the first word of "strip", so it can be a program name with args.
4912set dummy strip; ac_word=$2
4913echo "$as_me:$LINENO: checking for $ac_word" >&5
4914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4916  echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
4918  if test -n "$ac_ct_STRIP"; then
4919  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4920else
4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924  IFS=$as_save_IFS
4925  test -z "$as_dir" && as_dir=.
4926  for ac_exec_ext in '' $ac_executable_extensions; do
4927  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928    ac_cv_prog_ac_ct_STRIP="strip"
4929    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930    break 2
4931  fi
4932done
4933done
4934
4935  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4936fi
4937fi
4938ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4939if test -n "$ac_ct_STRIP"; then
4940  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4941echo "${ECHO_T}$ac_ct_STRIP" >&6
4942else
4943  echo "$as_me:$LINENO: result: no" >&5
4944echo "${ECHO_T}no" >&6
4945fi
4946
4947  STRIP=$ac_ct_STRIP
4948else
4949  STRIP="$ac_cv_prog_STRIP"
4950fi
4951
4952fi
4953INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4954
4955# We need awk for the "check" target.  The system "awk" is bad on
4956# some platforms.
4957# Always define AMTAR for backward compatibility.
4958
4959AMTAR=${AMTAR-"${am_missing_run}tar"}
4960
4961am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4962
4963
4964
4965
4966depcc="$CC"   am_compiler_list=
4967
4968echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4969echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4970if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4971  echo $ECHO_N "(cached) $ECHO_C" >&6
4972else
4973  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4974  # We make a subdir and do the tests there.  Otherwise we can end up
4975  # making bogus files that we don't know about and never remove.  For
4976  # instance it was reported that on HP-UX the gcc test will end up
4977  # making a dummy file named `D' -- because `-MD' means `put the output
4978  # in D'.
4979  mkdir conftest.dir
4980  # Copy depcomp to subdir because otherwise we won't find it if we're
4981  # using a relative directory.
4982  cp "$am_depcomp" conftest.dir
4983  cd conftest.dir
4984  # We will build objects and dependencies in a subdirectory because
4985  # it helps to detect inapplicable dependency modes.  For instance
4986  # both Tru64's cc and ICC support -MD to output dependencies as a
4987  # side effect of compilation, but ICC will put the dependencies in
4988  # the current directory while Tru64 will put them in the object
4989  # directory.
4990  mkdir sub
4991
4992  am_cv_CC_dependencies_compiler_type=none
4993  if test "$am_compiler_list" = ""; then
4994     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4995  fi
4996  for depmode in $am_compiler_list; do
4997    # Setup a source with many dependencies, because some compilers
4998    # like to wrap large dependency lists on column 80 (with \), and
4999    # we should not choose a depcomp mode which is confused by this.
5000    #
5001    # We need to recreate these files for each test, as the compiler may
5002    # overwrite some of them when testing with obscure command lines.
5003    # This happens at least with the AIX C compiler.
5004    : > sub/conftest.c
5005    for i in 1 2 3 4 5 6; do
5006      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5007      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5008      # Solaris 8's {/usr,}/bin/sh.
5009      touch sub/conftst$i.h
5010    done
5011    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5012
5013    case $depmode in
5014    nosideeffect)
5015      # after this tag, mechanisms are not by side-effect, so they'll
5016      # only be used when explicitly requested
5017      if test "x$enable_dependency_tracking" = xyes; then
5018        continue
5019      else
5020        break
5021      fi
5022      ;;
5023    none) break ;;
5024    esac
5025    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5026    # mode.  It turns out that the SunPro C++ compiler does not properly
5027    # handle `-M -o', and we need to detect this.
5028    if depmode=$depmode \
5029       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5030       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5031       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5032         >/dev/null 2>conftest.err &&
5033       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5034       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5035       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5036      # icc doesn't choke on unknown options, it will just issue warnings
5037      # or remarks (even with -Werror).  So we grep stderr for any message
5038      # that says an option was ignored or not supported.
5039      # When given -MP, icc 7.0 and 7.1 complain thusly:
5040      #   icc: Command line warning: ignoring option '-M'; no argument required
5041      # The diagnosis changed in icc 8.0:
5042      #   icc: Command line remark: option '-MP' not supported
5043      if (grep 'ignoring option' conftest.err ||
5044          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5045        am_cv_CC_dependencies_compiler_type=$depmode
5046        break
5047      fi
5048    fi
5049  done
5050
5051  cd ..
5052  rm -rf conftest.dir
5053else
5054  am_cv_CC_dependencies_compiler_type=none
5055fi
5056
5057fi
5058echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5059echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5060CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5061
5062
5063
5064if
5065  test "x$enable_dependency_tracking" != xno \
5066  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5067  am__fastdepCC_TRUE=
5068  am__fastdepCC_FALSE='#'
5069else
5070  am__fastdepCC_TRUE='#'
5071  am__fastdepCC_FALSE=
5072fi
5073
5074
5075depcc="$CXX"  am_compiler_list=
5076
5077echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5078echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5079if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5080  echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5083  # We make a subdir and do the tests there.  Otherwise we can end up
5084  # making bogus files that we don't know about and never remove.  For
5085  # instance it was reported that on HP-UX the gcc test will end up
5086  # making a dummy file named `D' -- because `-MD' means `put the output
5087  # in D'.
5088  mkdir conftest.dir
5089  # Copy depcomp to subdir because otherwise we won't find it if we're
5090  # using a relative directory.
5091  cp "$am_depcomp" conftest.dir
5092  cd conftest.dir
5093  # We will build objects and dependencies in a subdirectory because
5094  # it helps to detect inapplicable dependency modes.  For instance
5095  # both Tru64's cc and ICC support -MD to output dependencies as a
5096  # side effect of compilation, but ICC will put the dependencies in
5097  # the current directory while Tru64 will put them in the object
5098  # directory.
5099  mkdir sub
5100
5101  am_cv_CXX_dependencies_compiler_type=none
5102  if test "$am_compiler_list" = ""; then
5103     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5104  fi
5105  for depmode in $am_compiler_list; do
5106    # Setup a source with many dependencies, because some compilers
5107    # like to wrap large dependency lists on column 80 (with \), and
5108    # we should not choose a depcomp mode which is confused by this.
5109    #
5110    # We need to recreate these files for each test, as the compiler may
5111    # overwrite some of them when testing with obscure command lines.
5112    # This happens at least with the AIX C compiler.
5113    : > sub/conftest.c
5114    for i in 1 2 3 4 5 6; do
5115      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5116      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5117      # Solaris 8's {/usr,}/bin/sh.
5118      touch sub/conftst$i.h
5119    done
5120    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5121
5122    case $depmode in
5123    nosideeffect)
5124      # after this tag, mechanisms are not by side-effect, so they'll
5125      # only be used when explicitly requested
5126      if test "x$enable_dependency_tracking" = xyes; then
5127        continue
5128      else
5129        break
5130      fi
5131      ;;
5132    none) break ;;
5133    esac
5134    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5135    # mode.  It turns out that the SunPro C++ compiler does not properly
5136    # handle `-M -o', and we need to detect this.
5137    if depmode=$depmode \
5138       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5139       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5140       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5141         >/dev/null 2>conftest.err &&
5142       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5143       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5144       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5145      # icc doesn't choke on unknown options, it will just issue warnings
5146      # or remarks (even with -Werror).  So we grep stderr for any message
5147      # that says an option was ignored or not supported.
5148      # When given -MP, icc 7.0 and 7.1 complain thusly:
5149      #   icc: Command line warning: ignoring option '-M'; no argument required
5150      # The diagnosis changed in icc 8.0:
5151      #   icc: Command line remark: option '-MP' not supported
5152      if (grep 'ignoring option' conftest.err ||
5153          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5154        am_cv_CXX_dependencies_compiler_type=$depmode
5155        break
5156      fi
5157    fi
5158  done
5159
5160  cd ..
5161  rm -rf conftest.dir
5162else
5163  am_cv_CXX_dependencies_compiler_type=none
5164fi
5165
5166fi
5167echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5168echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5169CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5170
5171
5172
5173if
5174  test "x$enable_dependency_tracking" != xno \
5175  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5176  am__fastdepCXX_TRUE=
5177  am__fastdepCXX_FALSE='#'
5178else
5179  am__fastdepCXX_TRUE='#'
5180  am__fastdepCXX_FALSE=
5181fi
5182
5183
5184
5185echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5186echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5187    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5188if test "${enable_maintainer_mode+set}" = set; then
5189  enableval="$enable_maintainer_mode"
5190  USE_MAINTAINER_MODE=$enableval
5191else
5192  USE_MAINTAINER_MODE=no
5193fi;
5194  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5195echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5196
5197
5198if test $USE_MAINTAINER_MODE = yes; then
5199  MAINTAINER_MODE_TRUE=
5200  MAINTAINER_MODE_FALSE='#'
5201else
5202  MAINTAINER_MODE_TRUE='#'
5203  MAINTAINER_MODE_FALSE=
5204fi
5205
5206  MAINT=$MAINTAINER_MODE_TRUE
5207
5208
5209
5210coin_have_externals=no
5211if test "$enable_maintainer_mode" = yes; then
5212
5213  # If maintainer mode is chosen, we make sure that the correct versions
5214  # of the tools are used, and that we know where libtool.m4 is (to
5215  # recreate acinclude.m4)
5216
5217
5218  LIBTOOLM4=
5219  # Normally, $HOME
5220  AUTOTOOLS_DFLT=$HOME
5221
5222  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5223echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5224if test "${ac_cv_use_correct_autotools+set}" = set; then
5225  echo $ECHO_N "(cached) $ECHO_C" >&6
5226else
5227  ac_cv_use_correct_autotools=check
5228fi
5229echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5230echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5231
5232  if test $ac_cv_use_correct_autotools = check; then
5233    ac_cv_use_correct_autotools=yes
5234    # Check if we have autoconf
5235    # Extract the first word of "autoconf", so it can be a program name with args.
5236set dummy autoconf; ac_word=$2
5237echo "$as_me:$LINENO: checking for $ac_word" >&5
5238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5239if test "${ac_cv_prog_have_autoconf+set}" = set; then
5240  echo $ECHO_N "(cached) $ECHO_C" >&6
5241else
5242  if test -n "$have_autoconf"; then
5243  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5244else
5245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246for as_dir in $PATH
5247do
5248  IFS=$as_save_IFS
5249  test -z "$as_dir" && as_dir=.
5250  for ac_exec_ext in '' $ac_executable_extensions; do
5251  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5252    ac_cv_prog_have_autoconf="yes"
5253    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254    break 2
5255  fi
5256done
5257done
5258
5259  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5260fi
5261fi
5262have_autoconf=$ac_cv_prog_have_autoconf
5263if test -n "$have_autoconf"; then
5264  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5265echo "${ECHO_T}$have_autoconf" >&6
5266else
5267  echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
5269fi
5270
5271    if test $have_autoconf = no; then
5272      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5273echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5274   { (exit 1); exit 1; }; }
5275    fi
5276
5277    # Check whether autoconf is the correct version
5278    correct_version='2.59'
5279    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5280    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5281echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5282    autoconf --version > confauto.out 2>&1
5283    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5284      echo "$as_me:$LINENO: result: yes" >&5
5285echo "${ECHO_T}yes" >&6
5286    else
5287      rm -f confauto.out
5288      echo "$as_me:$LINENO: result: no" >&5
5289echo "${ECHO_T}no" >&6
5290      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5291echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5292   { (exit 1); exit 1; }; }
5293    fi
5294    rm -f confauto.out
5295
5296    # Check if the executable autoconf is picked up from the correct location
5297    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5298echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5299    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5300    autoconf_dir=`cd $autoconf_dir; pwd`
5301    if test x$AUTOTOOLS_DIR = x; then
5302      want_dir=$AUTOTOOLS_DFLT/bin
5303    else
5304      want_dir=$AUTOTOOLS_DIR/bin
5305    fi
5306    if test $autoconf_dir = `cd $want_dir; pwd`; then
5307      echo "$as_me:$LINENO: result: yes" >&5
5308echo "${ECHO_T}yes" >&6
5309    else
5310      rm -f confauto.out
5311      echo "$as_me:$LINENO: result: no" >&5
5312echo "${ECHO_T}no" >&6
5313      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5314echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5315   { (exit 1); exit 1; }; }
5316    fi
5317
5318    # Check if we have automake
5319    # Extract the first word of "automake", so it can be a program name with args.
5320set dummy automake; ac_word=$2
5321echo "$as_me:$LINENO: checking for $ac_word" >&5
5322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5323if test "${ac_cv_prog_have_automake+set}" = set; then
5324  echo $ECHO_N "(cached) $ECHO_C" >&6
5325else
5326  if test -n "$have_automake"; then
5327  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5328else
5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332  IFS=$as_save_IFS
5333  test -z "$as_dir" && as_dir=.
5334  for ac_exec_ext in '' $ac_executable_extensions; do
5335  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336    ac_cv_prog_have_automake="yes"
5337    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338    break 2
5339  fi
5340done
5341done
5342
5343  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5344fi
5345fi
5346have_automake=$ac_cv_prog_have_automake
5347if test -n "$have_automake"; then
5348  echo "$as_me:$LINENO: result: $have_automake" >&5
5349echo "${ECHO_T}$have_automake" >&6
5350else
5351  echo "$as_me:$LINENO: result: no" >&5
5352echo "${ECHO_T}no" >&6
5353fi
5354
5355    if test $have_automake = no; then
5356      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5357echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5358   { (exit 1); exit 1; }; }
5359    fi
5360
5361    # Check whether automake is the correct version
5362    correct_version='1.9.6'
5363    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5364    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5365echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5366    automake --version > confauto.out 2>&1
5367    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5368      echo "$as_me:$LINENO: result: yes" >&5
5369echo "${ECHO_T}yes" >&6
5370    else
5371      rm -f confauto.out
5372      echo "$as_me:$LINENO: result: no" >&5
5373echo "${ECHO_T}no" >&6
5374      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5375echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5376   { (exit 1); exit 1; }; }
5377    fi
5378    rm -f confauto.out
5379
5380    # Check if the executable automake is picked up from the correct location
5381    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5382echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5383    automake_dir=`which automake | sed -e 's=/automake=='`
5384    automake_dir=`cd $automake_dir; pwd`
5385    if test x$AUTOTOOLS_DIR = x; then
5386      want_dir=$AUTOTOOLS_DFLT/bin
5387    else
5388      want_dir=$AUTOTOOLS_DIR/bin
5389    fi
5390    if test $automake_dir = `cd $want_dir; pwd`; then
5391      echo "$as_me:$LINENO: result: yes" >&5
5392echo "${ECHO_T}yes" >&6
5393    else
5394      rm -f confauto.out
5395      echo "$as_me:$LINENO: result: no" >&5
5396echo "${ECHO_T}no" >&6
5397      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5398echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5399   { (exit 1); exit 1; }; }
5400    fi
5401
5402    # Check if this is the correct version of libtool (with escaped dots)
5403    if test x$AUTOTOOLS_DIR = x; then
5404      want_dir=$AUTOTOOLS_DFLT/share
5405    else
5406      want_dir=$AUTOTOOLS_DIR/share
5407    fi
5408    correct_version='1.5.22'
5409    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5410    if test -r $want_dir/libtool/ltmain.sh; then
5411  have_ltmain=yes
5412  :
5413else
5414  have_ltmain=no
5415  :
5416fi
5417
5418    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5419echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5420    if test $have_ltmain = yes; then
5421    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5422        echo "$as_me:$LINENO: result: yes" >&5
5423echo "${ECHO_T}yes" >&6
5424      else
5425        echo "$as_me:$LINENO: result: no" >&5
5426echo "${ECHO_T}no" >&6
5427        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5428echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5429   { (exit 1); exit 1; }; }
5430      fi
5431    else
5432      echo "$as_me:$LINENO: result: no" >&5
5433echo "${ECHO_T}no" >&6
5434      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5435echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5436   { (exit 1); exit 1; }; }
5437    fi
5438  fi
5439
5440  # Check if we can find the libtool file
5441  if test x$AUTOTOOLS_DIR = x; then
5442    want_dir=$AUTOTOOLS_DFLT/share
5443  else
5444    want_dir=$AUTOTOOLS_DIR/share
5445  fi
5446  if test -r $want_dir/aclocal/libtool.m4; then
5447  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5448  :
5449else
5450  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5451echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5452   { (exit 1); exit 1; }; }
5453  :
5454fi
5455
5456
5457  # Check if we have an Dependencies file
5458  if test -r $srcdir/Dependencies; then
5459    coin_have_externals=yes
5460  fi
5461  # Check if subversion is installed and understands https
5462  # Extract the first word of "svn", so it can be a program name with args.
5463set dummy svn; ac_word=$2
5464echo "$as_me:$LINENO: checking for $ac_word" >&5
5465echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5466if test "${ac_cv_prog_have_svn+set}" = set; then
5467  echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469  if test -n "$have_svn"; then
5470  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475  IFS=$as_save_IFS
5476  test -z "$as_dir" && as_dir=.
5477  for ac_exec_ext in '' $ac_executable_extensions; do
5478  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479    ac_cv_prog_have_svn="yes"
5480    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5481    break 2
5482  fi
5483done
5484done
5485
5486  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5487fi
5488fi
5489have_svn=$ac_cv_prog_have_svn
5490if test -n "$have_svn"; then
5491  echo "$as_me:$LINENO: result: $have_svn" >&5
5492echo "${ECHO_T}$have_svn" >&6
5493else
5494  echo "$as_me:$LINENO: result: no" >&5
5495echo "${ECHO_T}no" >&6
5496fi
5497
5498  if test x$have_svn = xyes; then
5499    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5500echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5501if test "${ac_cv_svn_understands_https+set}" = set; then
5502  echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504  svn --version > confauto.out 2>&1
5505                    if $EGREP https confauto.out >/dev/null 2>&1; then
5506                      ac_cv_svn_understands_https=yes
5507                    else
5508                      ac_cv_svn_understands_https=no
5509                      have_svn=no
5510                      ac_cv_prog_have_svn=no
5511                    fi
5512                    rm -f confauto.out
5513fi
5514echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5515echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5516  fi
5517
5518  # Find the location of the BuildTools directory
5519  BUILDTOOLSDIR=
5520  if test -r $srcdir/BuildTools/coin.m4; then
5521    BUILDTOOLSDIR=$srcdir/BuildTools
5522  else
5523    if test -r $srcdir/../BuildTools/coin.m4; then
5524      BUILDTOOLSDIR=$srcdir/../BuildTools
5525    else
5526      if test -r $srcdir/../../BuildTools/coin.m4; then
5527        BUILDTOOLSDIR=$srcdir/../../BuildTools
5528      else
5529        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5530echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5531   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5532      fi
5533    fi
5534  fi
5535
5536
5537  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5538  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5539    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5540  fi
5541
5542  # The following variable is set to the name of the directory where
5543  # the autotool scripts are located
5544
5545  AUX_DIR=$ac_aux_dir
5546fi
5547
5548# helpful variable for the base directory of this package
5549abs_source_dir=`cd $srcdir; pwd`
5550
5551
5552# Stuff for example Makefiles
5553if test x$prefix = xNONE; then
5554  full_prefix=$ac_default_prefix
5555else
5556  full_prefix=$prefix
5557fi
5558full_prefix=`cd $full_prefix ; pwd`
5559
5560abs_lib_dir=$full_prefix/lib
5561
5562abs_include_dir=$full_prefix/include
5563
5564abs_bin_dir=$full_prefix/bin
5565
5566
5567
5568if test $coin_have_externals = yes && test x$have_svn = xyes; then
5569  HAVE_EXTERNALS_TRUE=
5570  HAVE_EXTERNALS_FALSE='#'
5571else
5572  HAVE_EXTERNALS_TRUE='#'
5573  HAVE_EXTERNALS_FALSE=
5574fi
5575
5576
5577# AC_MSG_NOTICE([End automake initialisation.])
5578
5579
5580
5581LIBTOOL=
5582if test -r ../libtool; then
5583  coin_config_dir=..
5584  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5585fi
5586if test "x$LIBTOOL" = x; then
5587  if test -r ../../libtool; then
5588    coin_config_dir=../..
5589    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5590  fi
5591fi
5592
5593if test "x$LIBTOOL" = x; then
5594# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5595  # Stuff for libtool
5596  # Check whether --enable-shared or --disable-shared was given.
5597if test "${enable_shared+set}" = set; then
5598  enableval="$enable_shared"
5599  p=${PACKAGE-default}
5600    case $enableval in
5601    yes) enable_shared=yes ;;
5602    no) enable_shared=no ;;
5603    *)
5604      enable_shared=no
5605      # Look at the argument we got.  We use all the common list separators.
5606      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5607      for pkg in $enableval; do
5608        IFS="$lt_save_ifs"
5609        if test "X$pkg" = "X$p"; then
5610          enable_shared=yes
5611        fi
5612      done
5613      IFS="$lt_save_ifs"
5614      ;;
5615    esac
5616else
5617  enable_shared=yes
5618fi;
5619
5620# Check whether --enable-fast-install or --disable-fast-install was given.
5621if test "${enable_fast_install+set}" = set; then
5622  enableval="$enable_fast_install"
5623  p=${PACKAGE-default}
5624    case $enableval in
5625    yes) enable_fast_install=yes ;;
5626    no) enable_fast_install=no ;;
5627    *)
5628      enable_fast_install=no
5629      # Look at the argument we got.  We use all the common list separators.
5630      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5631      for pkg in $enableval; do
5632        IFS="$lt_save_ifs"
5633        if test "X$pkg" = "X$p"; then
5634          enable_fast_install=yes
5635        fi
5636      done
5637      IFS="$lt_save_ifs"
5638      ;;
5639    esac
5640else
5641  enable_fast_install=yes
5642fi;
5643
5644echo "$as_me:$LINENO: checking host system type" >&5
5645echo $ECHO_N "checking host system type... $ECHO_C" >&6
5646if test "${ac_cv_host+set}" = set; then
5647  echo $ECHO_N "(cached) $ECHO_C" >&6
5648else
5649  ac_cv_host_alias=$host_alias
5650test -z "$ac_cv_host_alias" &&
5651  ac_cv_host_alias=$ac_cv_build_alias
5652ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5653  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5654echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5655   { (exit 1); exit 1; }; }
5656
5657fi
5658echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5659echo "${ECHO_T}$ac_cv_host" >&6
5660host=$ac_cv_host
5661host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5662host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5663host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5664
5665
5666echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5667echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5668if test "${lt_cv_path_SED+set}" = set; then
5669  echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671  # Loop through the user's path and test for sed and gsed.
5672# Then use that list of sed's as ones to test for truncation.
5673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5674for as_dir in $PATH
5675do
5676  IFS=$as_save_IFS
5677  test -z "$as_dir" && as_dir=.
5678  for lt_ac_prog in sed gsed; do
5679    for ac_exec_ext in '' $ac_executable_extensions; do
5680      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5681        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5682      fi
5683    done
5684  done
5685done
5686lt_ac_max=0
5687lt_ac_count=0
5688# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5689# along with /bin/sed that truncates output.
5690for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5691  test ! -f $lt_ac_sed && continue
5692  cat /dev/null > conftest.in
5693  lt_ac_count=0
5694  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5695  # Check for GNU sed and select it if it is found.
5696  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5697    lt_cv_path_SED=$lt_ac_sed
5698    break
5699  fi
5700  while true; do
5701    cat conftest.in conftest.in >conftest.tmp
5702    mv conftest.tmp conftest.in
5703    cp conftest.in conftest.nl
5704    echo >>conftest.nl
5705    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5706    cmp -s conftest.out conftest.nl || break
5707    # 10000 chars as input seems more than enough
5708    test $lt_ac_count -gt 10 && break
5709    lt_ac_count=`expr $lt_ac_count + 1`
5710    if test $lt_ac_count -gt $lt_ac_max; then
5711      lt_ac_max=$lt_ac_count
5712      lt_cv_path_SED=$lt_ac_sed
5713    fi
5714  done
5715done
5716
5717fi
5718
5719SED=$lt_cv_path_SED
5720echo "$as_me:$LINENO: result: $SED" >&5
5721echo "${ECHO_T}$SED" >&6
5722
5723
5724# Check whether --with-gnu-ld or --without-gnu-ld was given.
5725if test "${with_gnu_ld+set}" = set; then
5726  withval="$with_gnu_ld"
5727  test "$withval" = no || with_gnu_ld=yes
5728else
5729  with_gnu_ld=no
5730fi;
5731ac_prog=ld
5732if test "$GCC" = yes; then
5733  # Check if gcc -print-prog-name=ld gives a path.
5734  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5735echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5736  case $host in
5737  *-*-mingw*)
5738    # gcc leaves a trailing carriage return which upsets mingw
5739    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5740  *)
5741    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5742  esac
5743  case $ac_prog in
5744    # Accept absolute paths.
5745    [\\/]* | ?:[\\/]*)
5746      re_direlt='/[^/][^/]*/\.\./'
5747      # Canonicalize the pathname of ld
5748      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5749      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5750        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5751      done
5752      test -z "$LD" && LD="$ac_prog"
5753      ;;
5754  "")
5755    # If it fails, then pretend we aren't using GCC.
5756    ac_prog=ld
5757    ;;
5758  *)
5759    # If it is relative, then search for the first ld in PATH.
5760    with_gnu_ld=unknown
5761    ;;
5762  esac
5763elif test "$with_gnu_ld" = yes; then
5764  echo "$as_me:$LINENO: checking for GNU ld" >&5
5765echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5766else
5767  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5768echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5769fi
5770if test "${lt_cv_path_LD+set}" = set; then
5771  echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773  if test -z "$LD"; then
5774  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5775  for ac_dir in $PATH; do
5776    IFS="$lt_save_ifs"
5777    test -z "$ac_dir" && ac_dir=.
5778    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5779      lt_cv_path_LD="$ac_dir/$ac_prog"
5780      # Check to see if the program is GNU ld.  I'd rather use --version,
5781      # but apparently some variants of GNU ld only accept -v.
5782      # Break only if it was the GNU/non-GNU ld that we prefer.
5783      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5784      *GNU* | *'with BFD'*)
5785        test "$with_gnu_ld" != no && break
5786        ;;
5787      *)
5788        test "$with_gnu_ld" != yes && break
5789        ;;
5790      esac
5791    fi
5792  done
5793  IFS="$lt_save_ifs"
5794else
5795  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5796fi
5797fi
5798
5799LD="$lt_cv_path_LD"
5800if test -n "$LD"; then
5801  echo "$as_me:$LINENO: result: $LD" >&5
5802echo "${ECHO_T}$LD" >&6
5803else
5804  echo "$as_me:$LINENO: result: no" >&5
5805echo "${ECHO_T}no" >&6
5806fi
5807test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5808echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5809   { (exit 1); exit 1; }; }
5810echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5811echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5812if test "${lt_cv_prog_gnu_ld+set}" = set; then
5813  echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5816case `$LD -v 2>&1 </dev/null` in
5817*GNU* | *'with BFD'*)
5818  lt_cv_prog_gnu_ld=yes
5819  ;;
5820*)
5821  lt_cv_prog_gnu_ld=no
5822  ;;
5823esac
5824fi
5825echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5826echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5827with_gnu_ld=$lt_cv_prog_gnu_ld
5828
5829
5830echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5831echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5832if test "${lt_cv_ld_reload_flag+set}" = set; then
5833  echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835  lt_cv_ld_reload_flag='-r'
5836fi
5837echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5838echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5839reload_flag=$lt_cv_ld_reload_flag
5840case $reload_flag in
5841"" | " "*) ;;
5842*) reload_flag=" $reload_flag" ;;
5843esac
5844reload_cmds='$LD$reload_flag -o $output$reload_objs'
5845case $host_os in
5846  darwin*)
5847    if test "$GCC" = yes; then
5848      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5849    else
5850      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5851    fi
5852    ;;
5853esac
5854
5855echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5856echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5857if test "${lt_cv_path_NM+set}" = set; then
5858  echo $ECHO_N "(cached) $ECHO_C" >&6
5859else
5860  if test -n "$NM"; then
5861  # Let the user override the test.
5862  lt_cv_path_NM="$NM"
5863else
5864  lt_nm_to_check="${ac_tool_prefix}nm"
5865  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5866    lt_nm_to_check="$lt_nm_to_check nm"
5867  fi
5868  for lt_tmp_nm in $lt_nm_to_check; do
5869    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5870    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5871      IFS="$lt_save_ifs"
5872      test -z "$ac_dir" && ac_dir=.
5873      tmp_nm="$ac_dir/$lt_tmp_nm"
5874      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5875        # Check to see if the nm accepts a BSD-compat flag.
5876        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5877        #   nm: unknown option "B" ignored
5878        # Tru64's nm complains that /dev/null is an invalid object file
5879        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5880        */dev/null* | *'Invalid file or object type'*)
5881          lt_cv_path_NM="$tmp_nm -B"
5882          break
5883          ;;
5884        *)
5885          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5886          */dev/null*)
5887            lt_cv_path_NM="$tmp_nm -p"
5888            break
5889            ;;
5890          *)
5891            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5892            continue # so that we can try to find one that supports BSD flags
5893            ;;
5894          esac
5895          ;;
5896        esac
5897      fi
5898    done
5899    IFS="$lt_save_ifs"
5900  done
5901  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5902fi
5903fi
5904echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5905echo "${ECHO_T}$lt_cv_path_NM" >&6
5906NM="$lt_cv_path_NM"
5907
5908echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5909echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5910if test "${lt_cv_deplibs_check_method+set}" = set; then
5911  echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
5913  lt_cv_file_magic_cmd='$MAGIC_CMD'
5914lt_cv_file_magic_test_file=
5915lt_cv_deplibs_check_method='unknown'
5916# Need to set the preceding variable on all platforms that support
5917# interlibrary dependencies.
5918# 'none' -- dependencies not supported.
5919# `unknown' -- same as none, but documents that we really don't know.
5920# 'pass_all' -- all dependencies passed with no checks.
5921# 'test_compile' -- check by making test program.
5922# 'file_magic [[regex]]' -- check by looking for files in library path
5923# which responds to the $file_magic_cmd with a given extended regex.
5924# If you have `file' or equivalent on your system and you're not sure
5925# whether `pass_all' will *always* work, you probably want this one.
5926
5927case $host_os in
5928aix4* | aix5*)
5929  lt_cv_deplibs_check_method=pass_all
5930  ;;
5931
5932beos*)
5933  lt_cv_deplibs_check_method=pass_all
5934  ;;
5935
5936bsdi[45]*)
5937  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5938  lt_cv_file_magic_cmd='/usr/bin/file -L'
5939  lt_cv_file_magic_test_file=/shlib/libc.so
5940  ;;
5941
5942cygwin*)
5943  # func_win32_libid is a shell function defined in ltmain.sh
5944  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5945  lt_cv_file_magic_cmd='func_win32_libid'
5946  ;;
5947
5948mingw* | pw32*)
5949  # Base MSYS/MinGW do not provide the 'file' command needed by
5950  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5951  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5952  lt_cv_file_magic_cmd='$OBJDUMP -f'
5953  ;;
5954
5955darwin* | rhapsody*)
5956  lt_cv_deplibs_check_method=pass_all
5957  ;;
5958
5959freebsd* | kfreebsd*-gnu | dragonfly*)
5960  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5961    case $host_cpu in
5962    i*86 )
5963      # Not sure whether the presence of OpenBSD here was a mistake.
5964      # Let's accept both of them until this is cleared up.
5965      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5966      lt_cv_file_magic_cmd=/usr/bin/file
5967      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5968      ;;
5969    esac
5970  else
5971    lt_cv_deplibs_check_method=pass_all
5972  fi
5973  ;;
5974
5975gnu*)
5976  lt_cv_deplibs_check_method=pass_all
5977  ;;
5978
5979hpux10.20* | hpux11*)
5980  lt_cv_file_magic_cmd=/usr/bin/file
5981  case $host_cpu in
5982  ia64*)
5983    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5984    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5985    ;;
5986  hppa*64*)
5987    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]'
5988    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5989    ;;
5990  *)
5991    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5992    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5993    ;;
5994  esac
5995  ;;
5996
5997interix3*)
5998  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5999  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6000  ;;
6001
6002irix5* | irix6* | nonstopux*)
6003  case $LD in
6004  *-32|*"-32 ") libmagic=32-bit;;
6005  *-n32|*"-n32 ") libmagic=N32;;
6006  *-64|*"-64 ") libmagic=64-bit;;
6007  *) libmagic=never-match;;
6008  esac
6009  lt_cv_deplibs_check_method=pass_all
6010  ;;
6011
6012# This must be Linux ELF.
6013linux*)
6014  lt_cv_deplibs_check_method=pass_all
6015  ;;
6016
6017netbsd*)
6018  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6019    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6020  else
6021    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6022  fi
6023  ;;
6024
6025newos6*)
6026  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6027  lt_cv_file_magic_cmd=/usr/bin/file
6028  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6029  ;;
6030
6031nto-qnx*)
6032  lt_cv_deplibs_check_method=unknown
6033  ;;
6034
6035openbsd*)
6036  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6037    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6038  else
6039    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6040  fi
6041  ;;
6042
6043osf3* | osf4* | osf5*)
6044  lt_cv_deplibs_check_method=pass_all
6045  ;;
6046
6047solaris*)
6048  lt_cv_deplibs_check_method=pass_all
6049  ;;
6050
6051sysv4 | sysv4.3*)
6052  case $host_vendor in
6053  motorola)
6054    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]'
6055    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6056    ;;
6057  ncr)
6058    lt_cv_deplibs_check_method=pass_all
6059    ;;
6060  sequent)
6061    lt_cv_file_magic_cmd='/bin/file'
6062    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6063    ;;
6064  sni)
6065    lt_cv_file_magic_cmd='/bin/file'
6066    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6067    lt_cv_file_magic_test_file=/lib/libc.so
6068    ;;
6069  siemens)
6070    lt_cv_deplibs_check_method=pass_all
6071    ;;
6072  pc)
6073    lt_cv_deplibs_check_method=pass_all
6074    ;;
6075  esac
6076  ;;
6077
6078sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6079  lt_cv_deplibs_check_method=pass_all
6080  ;;
6081esac
6082
6083fi
6084echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6085echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6086file_magic_cmd=$lt_cv_file_magic_cmd
6087deplibs_check_method=$lt_cv_deplibs_check_method
6088test -z "$deplibs_check_method" && deplibs_check_method=unknown
6089
6090
6091
6092
6093# If no C compiler was specified, use CC.
6094LTCC=${LTCC-"$CC"}
6095
6096# If no C compiler flags were specified, use CFLAGS.
6097LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6098
6099# Allow CC to be a program name with arguments.
6100compiler=$CC
6101
6102# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6103if test "${enable_libtool_lock+set}" = set; then
6104  enableval="$enable_libtool_lock"
6105
6106fi;
6107test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6108
6109# Some flags need to be propagated to the compiler or linker for good
6110# libtool support.
6111case $host in
6112ia64-*-hpux*)
6113  # Find out which ABI we are using.
6114  echo 'int i;' > conftest.$ac_ext
6115  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6116  (eval $ac_compile) 2>&5
6117  ac_status=$?
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); }; then
6120    case `/usr/bin/file conftest.$ac_objext` in
6121    *ELF-32*)
6122      HPUX_IA64_MODE="32"
6123      ;;
6124    *ELF-64*)
6125      HPUX_IA64_MODE="64"
6126      ;;
6127    esac
6128  fi
6129  rm -rf conftest*
6130  ;;
6131*-*-irix6*)
6132  # Find out which ABI we are using.
6133  echo '#line 6133 "configure"' > conftest.$ac_ext
6134  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6135  (eval $ac_compile) 2>&5
6136  ac_status=$?
6137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138  (exit $ac_status); }; then
6139   if test "$lt_cv_prog_gnu_ld" = yes; then
6140    case `/usr/bin/file conftest.$ac_objext` in
6141    *32-bit*)
6142      LD="${LD-ld} -melf32bsmip"
6143      ;;
6144    *N32*)
6145      LD="${LD-ld} -melf32bmipn32"
6146      ;;
6147    *64-bit*)
6148      LD="${LD-ld} -melf64bmip"
6149      ;;
6150    esac
6151   else
6152    case `/usr/bin/file conftest.$ac_objext` in
6153    *32-bit*)
6154      LD="${LD-ld} -32"
6155      ;;
6156    *N32*)
6157      LD="${LD-ld} -n32"
6158      ;;
6159    *64-bit*)
6160      LD="${LD-ld} -64"
6161      ;;
6162    esac
6163   fi
6164  fi
6165  rm -rf conftest*
6166  ;;
6167
6168x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6169  # Find out which ABI we are using.
6170  echo 'int i;' > conftest.$ac_ext
6171  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6172  (eval $ac_compile) 2>&5
6173  ac_status=$?
6174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175  (exit $ac_status); }; then
6176    case `/usr/bin/file conftest.o` in
6177    *32-bit*)
6178      case $host in
6179        x86_64-*linux*)
6180          LD="${LD-ld} -m elf_i386"
6181          ;;
6182        ppc64-*linux*|powerpc64-*linux*)
6183          LD="${LD-ld} -m elf32ppclinux"
6184          ;;
6185        s390x-*linux*)
6186          LD="${LD-ld} -m elf_s390"
6187          ;;
6188        sparc64-*linux*)
6189          LD="${LD-ld} -m elf32_sparc"
6190          ;;
6191      esac
6192      ;;
6193    *64-bit*)
6194      case $host in
6195        x86_64-*linux*)
6196          LD="${LD-ld} -m elf_x86_64"
6197          ;;
6198        ppc*-*linux*|powerpc*-*linux*)
6199          LD="${LD-ld} -m elf64ppc"
6200          ;;
6201        s390*-*linux*)
6202          LD="${LD-ld} -m elf64_s390"
6203          ;;
6204        sparc*-*linux*)
6205          LD="${LD-ld} -m elf64_sparc"
6206          ;;
6207      esac
6208      ;;
6209    esac
6210  fi
6211  rm -rf conftest*
6212  ;;
6213
6214*-*-sco3.2v5*)
6215  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6216  SAVE_CFLAGS="$CFLAGS"
6217  CFLAGS="$CFLAGS -belf"
6218  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6219echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6220if test "${lt_cv_cc_needs_belf+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  ac_ext=c
6224ac_cpp='$CPP $CPPFLAGS'
6225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228
6229     cat >conftest.$ac_ext <<_ACEOF
6230/* confdefs.h.  */
6231_ACEOF
6232cat confdefs.h >>conftest.$ac_ext
6233cat >>conftest.$ac_ext <<_ACEOF
6234/* end confdefs.h.  */
6235
6236int
6237main ()
6238{
6239
6240  ;
6241  return 0;
6242}
6243_ACEOF
6244rm -f conftest.$ac_objext conftest$ac_exeext
6245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6246  (eval $ac_link) 2>conftest.er1
6247  ac_status=$?
6248  grep -v '^ *+' conftest.er1 >conftest.err
6249  rm -f conftest.er1
6250  cat conftest.err >&5
6251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252  (exit $ac_status); } &&
6253         { ac_try='test -z "$ac_c_werror_flag"
6254                         || test ! -s conftest.err'
6255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256  (eval $ac_try) 2>&5
6257  ac_status=$?
6258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259  (exit $ac_status); }; } &&
6260         { ac_try='test -s conftest$ac_exeext'
6261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6262  (eval $ac_try) 2>&5
6263  ac_status=$?
6264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265  (exit $ac_status); }; }; then
6266  lt_cv_cc_needs_belf=yes
6267else
6268  echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271lt_cv_cc_needs_belf=no
6272fi
6273rm -f conftest.err conftest.$ac_objext \
6274      conftest$ac_exeext conftest.$ac_ext
6275     ac_ext=c
6276ac_cpp='$CPP $CPPFLAGS'
6277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6279ac_compiler_gnu=$ac_cv_c_compiler_gnu
6280
6281fi
6282echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6283echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6284  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6285    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6286    CFLAGS="$SAVE_CFLAGS"
6287  fi
6288  ;;
6289sparc*-*solaris*)
6290  # Find out which ABI we are using.
6291  echo 'int i;' > conftest.$ac_ext
6292  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293  (eval $ac_compile) 2>&5
6294  ac_status=$?
6295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296  (exit $ac_status); }; then
6297    case `/usr/bin/file conftest.o` in
6298    *64-bit*)
6299      case $lt_cv_prog_gnu_ld in
6300      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6301      *)    LD="${LD-ld} -64" ;;
6302      esac
6303      ;;
6304    esac
6305  fi
6306  rm -rf conftest*
6307  ;;
6308
6309
6310esac
6311
6312need_locks="$enable_libtool_lock"
6313
6314
6315ac_ext=c
6316ac_cpp='$CPP $CPPFLAGS'
6317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6319ac_compiler_gnu=$ac_cv_c_compiler_gnu
6320echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6321echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6322# On Suns, sometimes $CPP names a directory.
6323if test -n "$CPP" && test -d "$CPP"; then
6324  CPP=
6325fi
6326if test -z "$CPP"; then
6327  if test "${ac_cv_prog_CPP+set}" = set; then
6328  echo $ECHO_N "(cached) $ECHO_C" >&6
6329else
6330      # Double quotes because CPP needs to be expanded
6331    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6332    do
6333      ac_preproc_ok=false
6334for ac_c_preproc_warn_flag in '' yes
6335do
6336  # Use a header file that comes with gcc, so configuring glibc
6337  # with a fresh cross-compiler works.
6338  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6339  # <limits.h> exists even on freestanding compilers.
6340  # On the NeXT, cc -E runs the code through the compiler's parser,
6341  # not just through cpp. "Syntax error" is here to catch this case.
6342  cat >conftest.$ac_ext <<_ACEOF
6343/* confdefs.h.  */
6344_ACEOF
6345cat confdefs.h >>conftest.$ac_ext
6346cat >>conftest.$ac_ext <<_ACEOF
6347/* end confdefs.h.  */
6348#ifdef __STDC__
6349# include <limits.h>
6350#else
6351# include <assert.h>
6352#endif
6353                     Syntax error
6354_ACEOF
6355if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6356  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6357  ac_status=$?
6358  grep -v '^ *+' conftest.er1 >conftest.err
6359  rm -f conftest.er1
6360  cat conftest.err >&5
6361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362  (exit $ac_status); } >/dev/null; then
6363  if test -s conftest.err; then
6364    ac_cpp_err=$ac_c_preproc_warn_flag
6365    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6366  else
6367    ac_cpp_err=
6368  fi
6369else
6370  ac_cpp_err=yes
6371fi
6372if test -z "$ac_cpp_err"; then
6373  :
6374else
6375  echo "$as_me: failed program was:" >&5
6376sed 's/^/| /' conftest.$ac_ext >&5
6377
6378  # Broken: fails on valid input.
6379continue
6380fi
6381rm -f conftest.err conftest.$ac_ext
6382
6383  # OK, works on sane cases.  Now check whether non-existent headers
6384  # can be detected and how.
6385  cat >conftest.$ac_ext <<_ACEOF
6386/* confdefs.h.  */
6387_ACEOF
6388cat confdefs.h >>conftest.$ac_ext
6389cat >>conftest.$ac_ext <<_ACEOF
6390/* end confdefs.h.  */
6391#include <ac_nonexistent.h>
6392_ACEOF
6393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6394  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6395  ac_status=$?
6396  grep -v '^ *+' conftest.er1 >conftest.err
6397  rm -f conftest.er1
6398  cat conftest.err >&5
6399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400  (exit $ac_status); } >/dev/null; then
6401  if test -s conftest.err; then
6402    ac_cpp_err=$ac_c_preproc_warn_flag
6403    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6404  else
6405    ac_cpp_err=
6406  fi
6407else
6408  ac_cpp_err=yes
6409fi
6410if test -z "$ac_cpp_err"; then
6411  # Broken: success on invalid input.
6412continue
6413else
6414  echo "$as_me: failed program was:" >&5
6415sed 's/^/| /' conftest.$ac_ext >&5
6416
6417  # Passes both tests.
6418ac_preproc_ok=:
6419break
6420fi
6421rm -f conftest.err conftest.$ac_ext
6422
6423done
6424# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6425rm -f conftest.err conftest.$ac_ext
6426if $ac_preproc_ok; then
6427  break
6428fi
6429
6430    done
6431    ac_cv_prog_CPP=$CPP
6432
6433fi
6434  CPP=$ac_cv_prog_CPP
6435else
6436  ac_cv_prog_CPP=$CPP
6437fi
6438echo "$as_me:$LINENO: result: $CPP" >&5
6439echo "${ECHO_T}$CPP" >&6
6440ac_preproc_ok=false
6441for ac_c_preproc_warn_flag in '' yes
6442do
6443  # Use a header file that comes with gcc, so configuring glibc
6444  # with a fresh cross-compiler works.
6445  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6446  # <limits.h> exists even on freestanding compilers.
6447  # On the NeXT, cc -E runs the code through the compiler's parser,
6448  # not just through cpp. "Syntax error" is here to catch this case.
6449  cat >conftest.$ac_ext <<_ACEOF
6450/* confdefs.h.  */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h.  */
6455#ifdef __STDC__
6456# include <limits.h>
6457#else
6458# include <assert.h>
6459#endif
6460                     Syntax error
6461_ACEOF
6462if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6463  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6464  ac_status=$?
6465  grep -v '^ *+' conftest.er1 >conftest.err
6466  rm -f conftest.er1
6467  cat conftest.err >&5
6468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469  (exit $ac_status); } >/dev/null; then
6470  if test -s conftest.err; then
6471    ac_cpp_err=$ac_c_preproc_warn_flag
6472    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6473  else
6474    ac_cpp_err=
6475  fi
6476else
6477  ac_cpp_err=yes
6478fi
6479if test -z "$ac_cpp_err"; then
6480  :
6481else
6482  echo "$as_me: failed program was:" >&5
6483sed 's/^/| /' conftest.$ac_ext >&5
6484
6485  # Broken: fails on valid input.
6486continue
6487fi
6488rm -f conftest.err conftest.$ac_ext
6489
6490  # OK, works on sane cases.  Now check whether non-existent headers
6491  # can be detected and how.
6492  cat >conftest.$ac_ext <<_ACEOF
6493/* confdefs.h.  */
6494_ACEOF
6495cat confdefs.h >>conftest.$ac_ext
6496cat >>conftest.$ac_ext <<_ACEOF
6497/* end confdefs.h.  */
6498#include <ac_nonexistent.h>
6499_ACEOF
6500if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6501  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6502  ac_status=$?
6503  grep -v '^ *+' conftest.er1 >conftest.err
6504  rm -f conftest.er1
6505  cat conftest.err >&5
6506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507  (exit $ac_status); } >/dev/null; then
6508  if test -s conftest.err; then
6509    ac_cpp_err=$ac_c_preproc_warn_flag
6510    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6511  else
6512    ac_cpp_err=
6513  fi
6514else
6515  ac_cpp_err=yes
6516fi
6517if test -z "$ac_cpp_err"; then
6518  # Broken: success on invalid input.
6519continue
6520else
6521  echo "$as_me: failed program was:" >&5
6522sed 's/^/| /' conftest.$ac_ext >&5
6523
6524  # Passes both tests.
6525ac_preproc_ok=:
6526break
6527fi
6528rm -f conftest.err conftest.$ac_ext
6529
6530done
6531# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6532rm -f conftest.err conftest.$ac_ext
6533if $ac_preproc_ok; then
6534  :
6535else
6536  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6537See \`config.log' for more details." >&5
6538echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6539See \`config.log' for more details." >&2;}
6540   { (exit 1); exit 1; }; }
6541fi
6542
6543ac_ext=c
6544ac_cpp='$CPP $CPPFLAGS'
6545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6547ac_compiler_gnu=$ac_cv_c_compiler_gnu
6548
6549
6550echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6551echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6552if test "${ac_cv_header_stdc+set}" = set; then
6553  echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
6555  cat >conftest.$ac_ext <<_ACEOF
6556/* confdefs.h.  */
6557_ACEOF
6558cat confdefs.h >>conftest.$ac_ext
6559cat >>conftest.$ac_ext <<_ACEOF
6560/* end confdefs.h.  */
6561#include <stdlib.h>
6562#include <stdarg.h>
6563#include <string.h>
6564#include <float.h>
6565
6566int
6567main ()
6568{
6569
6570  ;
6571  return 0;
6572}
6573_ACEOF
6574rm -f conftest.$ac_objext
6575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6576  (eval $ac_compile) 2>conftest.er1
6577  ac_status=$?
6578  grep -v '^ *+' conftest.er1 >conftest.err
6579  rm -f conftest.er1
6580  cat conftest.err >&5
6581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582  (exit $ac_status); } &&
6583         { ac_try='test -z "$ac_c_werror_flag"
6584                         || test ! -s conftest.err'
6585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586  (eval $ac_try) 2>&5
6587  ac_status=$?
6588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589  (exit $ac_status); }; } &&
6590         { ac_try='test -s conftest.$ac_objext'
6591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592  (eval $ac_try) 2>&5
6593  ac_status=$?
6594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595  (exit $ac_status); }; }; then
6596  ac_cv_header_stdc=yes
6597else
6598  echo "$as_me: failed program was:" >&5
6599sed 's/^/| /' conftest.$ac_ext >&5
6600
6601ac_cv_header_stdc=no
6602fi
6603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6604
6605if test $ac_cv_header_stdc = yes; then
6606  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6607  cat >conftest.$ac_ext <<_ACEOF
6608/* confdefs.h.  */
6609_ACEOF
6610cat confdefs.h >>conftest.$ac_ext
6611cat >>conftest.$ac_ext <<_ACEOF
6612/* end confdefs.h.  */
6613#include <string.h>
6614
6615_ACEOF
6616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6617  $EGREP "memchr" >/dev/null 2>&1; then
6618  :
6619else
6620  ac_cv_header_stdc=no
6621fi
6622rm -f conftest*
6623
6624fi
6625
6626if test $ac_cv_header_stdc = yes; then
6627  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6628  cat >conftest.$ac_ext <<_ACEOF
6629/* confdefs.h.  */
6630_ACEOF
6631cat confdefs.h >>conftest.$ac_ext
6632cat >>conftest.$ac_ext <<_ACEOF
6633/* end confdefs.h.  */
6634#include <stdlib.h>
6635
6636_ACEOF
6637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6638  $EGREP "free" >/dev/null 2>&1; then
6639  :
6640else
6641  ac_cv_header_stdc=no
6642fi
6643rm -f conftest*
6644
6645fi
6646
6647if test $ac_cv_header_stdc = yes; then
6648  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6649  if test "$cross_compiling" = yes; then
6650  :
6651else
6652  cat >conftest.$ac_ext <<_ACEOF
6653/* confdefs.h.  */
6654_ACEOF
6655cat confdefs.h >>conftest.$ac_ext
6656cat >>conftest.$ac_ext <<_ACEOF
6657/* end confdefs.h.  */
6658#include <ctype.h>
6659#if ((' ' & 0x0FF) == 0x020)
6660# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6661# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6662#else
6663# define ISLOWER(c) \
6664                   (('a' <= (c) && (c) <= 'i') \
6665                     || ('j' <= (c) && (c) <= 'r') \
6666                     || ('s' <= (c) && (c) <= 'z'))
6667# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6668#endif
6669
6670#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6671int
6672main ()
6673{
6674  int i;
6675  for (i = 0; i < 256; i++)
6676    if (XOR (islower (i), ISLOWER (i))
6677        || toupper (i) != TOUPPER (i))
6678      exit(2);
6679  exit (0);
6680}
6681_ACEOF
6682rm -f conftest$ac_exeext
6683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6684  (eval $ac_link) 2>&5
6685  ac_status=$?
6686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689  (eval $ac_try) 2>&5
6690  ac_status=$?
6691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692  (exit $ac_status); }; }; then
6693  :
6694else
6695  echo "$as_me: program exited with status $ac_status" >&5
6696echo "$as_me: failed program was:" >&5
6697sed 's/^/| /' conftest.$ac_ext >&5
6698
6699( exit $ac_status )
6700ac_cv_header_stdc=no
6701fi
6702rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6703fi
6704fi
6705fi
6706echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6707echo "${ECHO_T}$ac_cv_header_stdc" >&6
6708if test $ac_cv_header_stdc = yes; then
6709
6710cat >>confdefs.h <<\_ACEOF
6711#define STDC_HEADERS 1
6712_ACEOF
6713
6714fi
6715
6716# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6727                  inttypes.h stdint.h unistd.h
6728do
6729as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6730echo "$as_me:$LINENO: checking for $ac_header" >&5
6731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6732if eval "test \"\${$as_ac_Header+set}\" = set"; then
6733  echo $ECHO_N "(cached) $ECHO_C" >&6
6734else
6735  cat >conftest.$ac_ext <<_ACEOF
6736/* confdefs.h.  */
6737_ACEOF
6738cat confdefs.h >>conftest.$ac_ext
6739cat >>conftest.$ac_ext <<_ACEOF
6740/* end confdefs.h.  */
6741$ac_includes_default
6742
6743#include <$ac_header>
6744_ACEOF
6745rm -f conftest.$ac_objext
6746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6747  (eval $ac_compile) 2>conftest.er1
6748  ac_status=$?
6749  grep -v '^ *+' conftest.er1 >conftest.err
6750  rm -f conftest.er1
6751  cat conftest.err >&5
6752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753  (exit $ac_status); } &&
6754         { ac_try='test -z "$ac_c_werror_flag"
6755                         || test ! -s conftest.err'
6756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757  (eval $ac_try) 2>&5
6758  ac_status=$?
6759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760  (exit $ac_status); }; } &&
6761         { ac_try='test -s conftest.$ac_objext'
6762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6763  (eval $ac_try) 2>&5
6764  ac_status=$?
6765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766  (exit $ac_status); }; }; then
6767  eval "$as_ac_Header=yes"
6768else
6769  echo "$as_me: failed program was:" >&5
6770sed 's/^/| /' conftest.$ac_ext >&5
6771
6772eval "$as_ac_Header=no"
6773fi
6774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6775fi
6776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6778if test `eval echo '${'$as_ac_Header'}'` = yes; then
6779  cat >>confdefs.h <<_ACEOF
6780#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6781_ACEOF
6782
6783fi
6784
6785done
6786
6787
6788
6789for ac_header in dlfcn.h
6790do
6791as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6792if eval "test \"\${$as_ac_Header+set}\" = set"; then
6793  echo "$as_me:$LINENO: checking for $ac_header" >&5
6794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6795if eval "test \"\${$as_ac_Header+set}\" = set"; then
6796  echo $ECHO_N "(cached) $ECHO_C" >&6
6797fi
6798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6800else
6801  # Is the header compilable?
6802echo "$as_me:$LINENO: checking $ac_header usability" >&5
6803echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6804cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h.  */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h.  */
6810$ac_includes_default
6811#include <$ac_header>
6812_ACEOF
6813rm -f conftest.$ac_objext
6814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6815  (eval $ac_compile) 2>conftest.er1
6816  ac_status=$?
6817  grep -v '^ *+' conftest.er1 >conftest.err
6818  rm -f conftest.er1
6819  cat conftest.err >&5
6820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821  (exit $ac_status); } &&
6822         { ac_try='test -z "$ac_c_werror_flag"
6823                         || test ! -s conftest.err'
6824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825  (eval $ac_try) 2>&5
6826  ac_status=$?
6827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828  (exit $ac_status); }; } &&
6829         { ac_try='test -s conftest.$ac_objext'
6830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831  (eval $ac_try) 2>&5
6832  ac_status=$?
6833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834  (exit $ac_status); }; }; then
6835  ac_header_compiler=yes
6836else
6837  echo "$as_me: failed program was:" >&5
6838sed 's/^/| /' conftest.$ac_ext >&5
6839
6840ac_header_compiler=no
6841fi
6842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6843echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6844echo "${ECHO_T}$ac_header_compiler" >&6
6845
6846# Is the header present?
6847echo "$as_me:$LINENO: checking $ac_header presence" >&5
6848echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6849cat >conftest.$ac_ext <<_ACEOF
6850/* confdefs.h.  */
6851_ACEOF
6852cat confdefs.h >>conftest.$ac_ext
6853cat >>conftest.$ac_ext <<_ACEOF
6854/* end confdefs.h.  */
6855#include <$ac_header>
6856_ACEOF
6857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6858  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6859  ac_status=$?
6860  grep -v '^ *+' conftest.er1 >conftest.err
6861  rm -f conftest.er1
6862  cat conftest.err >&5
6863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864  (exit $ac_status); } >/dev/null; then
6865  if test -s conftest.err; then
6866    ac_cpp_err=$ac_c_preproc_warn_flag
6867    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6868  else
6869    ac_cpp_err=
6870  fi
6871else
6872  ac_cpp_err=yes
6873fi
6874if test -z "$ac_cpp_err"; then
6875  ac_header_preproc=yes
6876else
6877  echo "$as_me: failed program was:" >&5
6878sed 's/^/| /' conftest.$ac_ext >&5
6879
6880  ac_header_preproc=no
6881fi
6882rm -f conftest.err conftest.$ac_ext
6883echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6884echo "${ECHO_T}$ac_header_preproc" >&6
6885
6886# So?  What about this header?
6887case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6888  yes:no: )
6889    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6890echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6891    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6892echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6893    ac_header_preproc=yes
6894    ;;
6895  no:yes:* )
6896    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6897echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6898    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6899echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6900    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6901echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6902    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6903echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6904    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6905echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6906    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6907echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6908    (
6909      cat <<\_ASBOX
6910## --------------------------------------------------------------- ##
6911## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6912## --------------------------------------------------------------- ##
6913_ASBOX
6914    ) |
6915      sed "s/^/$as_me: WARNING:     /" >&2
6916    ;;
6917esac
6918echo "$as_me:$LINENO: checking for $ac_header" >&5
6919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6920if eval "test \"\${$as_ac_Header+set}\" = set"; then
6921  echo $ECHO_N "(cached) $ECHO_C" >&6
6922else
6923  eval "$as_ac_Header=\$ac_header_preproc"
6924fi
6925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6927
6928fi
6929if test `eval echo '${'$as_ac_Header'}'` = yes; then
6930  cat >>confdefs.h <<_ACEOF
6931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6932_ACEOF
6933
6934fi
6935
6936done
6937
6938
6939
6940if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6941    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6942    (test "X$CXX" != "Xg++"))) ; then
6943  ac_ext=cc
6944ac_cpp='$CXXCPP $CPPFLAGS'
6945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6948echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6949echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6950if test -z "$CXXCPP"; then
6951  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6952  echo $ECHO_N "(cached) $ECHO_C" >&6
6953else
6954      # Double quotes because CXXCPP needs to be expanded
6955    for CXXCPP in "$CXX -E" "/lib/cpp"
6956    do
6957      ac_preproc_ok=false
6958for ac_cxx_preproc_warn_flag in '' yes
6959do
6960  # Use a header file that comes with gcc, so configuring glibc
6961  # with a fresh cross-compiler works.
6962  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6963  # <limits.h> exists even on freestanding compilers.
6964  # On the NeXT, cc -E runs the code through the compiler's parser,
6965  # not just through cpp. "Syntax error" is here to catch this case.
6966  cat >conftest.$ac_ext <<_ACEOF
6967/* confdefs.h.  */
6968_ACEOF
6969cat confdefs.h >>conftest.$ac_ext
6970cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h.  */
6972#ifdef __STDC__
6973# include <limits.h>
6974#else
6975# include <assert.h>
6976#endif
6977                     Syntax error
6978_ACEOF
6979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6980  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6981  ac_status=$?
6982  grep -v '^ *+' conftest.er1 >conftest.err
6983  rm -f conftest.er1
6984  cat conftest.err >&5
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); } >/dev/null; then
6987  if test -s conftest.err; then
6988    ac_cpp_err=$ac_cxx_preproc_warn_flag
6989    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6990  else
6991    ac_cpp_err=
6992  fi
6993else
6994  ac_cpp_err=yes
6995fi
6996if test -z "$ac_cpp_err"; then
6997  :
6998else
6999  echo "$as_me: failed program was:" >&5
7000sed 's/^/| /' conftest.$ac_ext >&5
7001
7002  # Broken: fails on valid input.
7003continue
7004fi
7005rm -f conftest.err conftest.$ac_ext
7006
7007  # OK, works on sane cases.  Now check whether non-existent headers
7008  # can be detected and how.
7009  cat >conftest.$ac_ext <<_ACEOF
7010/* confdefs.h.  */
7011_ACEOF
7012cat confdefs.h >>conftest.$ac_ext
7013cat >>conftest.$ac_ext <<_ACEOF
7014/* end confdefs.h.  */
7015#include <ac_nonexistent.h>
7016_ACEOF
7017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7018  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7019  ac_status=$?
7020  grep -v '^ *+' conftest.er1 >conftest.err
7021  rm -f conftest.er1
7022  cat conftest.err >&5
7023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024  (exit $ac_status); } >/dev/null; then
7025  if test -s conftest.err; then
7026    ac_cpp_err=$ac_cxx_preproc_warn_flag
7027    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7028  else
7029    ac_cpp_err=
7030  fi
7031else
7032  ac_cpp_err=yes
7033fi
7034if test -z "$ac_cpp_err"; then
7035  # Broken: success on invalid input.
7036continue
7037else
7038  echo "$as_me: failed program was:" >&5
7039sed 's/^/| /' conftest.$ac_ext >&5
7040
7041  # Passes both tests.
7042ac_preproc_ok=:
7043break
7044fi
7045rm -f conftest.err conftest.$ac_ext
7046
7047done
7048# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7049rm -f conftest.err conftest.$ac_ext
7050if $ac_preproc_ok; then
7051  break
7052fi
7053
7054    done
7055    ac_cv_prog_CXXCPP=$CXXCPP
7056
7057fi
7058  CXXCPP=$ac_cv_prog_CXXCPP
7059else
7060  ac_cv_prog_CXXCPP=$CXXCPP
7061fi
7062echo "$as_me:$LINENO: result: $CXXCPP" >&5
7063echo "${ECHO_T}$CXXCPP" >&6
7064ac_preproc_ok=false
7065for ac_cxx_preproc_warn_flag in '' yes
7066do
7067  # Use a header file that comes with gcc, so configuring glibc
7068  # with a fresh cross-compiler works.
7069  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7070  # <limits.h> exists even on freestanding compilers.
7071  # On the NeXT, cc -E runs the code through the compiler's parser,
7072  # not just through cpp. "Syntax error" is here to catch this case.
7073  cat >conftest.$ac_ext <<_ACEOF
7074/* confdefs.h.  */
7075_ACEOF
7076cat confdefs.h >>conftest.$ac_ext
7077cat >>conftest.$ac_ext <<_ACEOF
7078/* end confdefs.h.  */
7079#ifdef __STDC__
7080# include <limits.h>
7081#else
7082# include <assert.h>
7083#endif
7084                     Syntax error
7085_ACEOF
7086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7087  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7088  ac_status=$?
7089  grep -v '^ *+' conftest.er1 >conftest.err
7090  rm -f conftest.er1
7091  cat conftest.err >&5
7092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093  (exit $ac_status); } >/dev/null; then
7094  if test -s conftest.err; then
7095    ac_cpp_err=$ac_cxx_preproc_warn_flag
7096    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7097  else
7098    ac_cpp_err=
7099  fi
7100else
7101  ac_cpp_err=yes
7102fi
7103if test -z "$ac_cpp_err"; then
7104  :
7105else
7106  echo "$as_me: failed program was:" >&5
7107sed 's/^/| /' conftest.$ac_ext >&5
7108
7109  # Broken: fails on valid input.
7110continue
7111fi
7112rm -f conftest.err conftest.$ac_ext
7113
7114  # OK, works on sane cases.  Now check whether non-existent headers
7115  # can be detected and how.
7116  cat >conftest.$ac_ext <<_ACEOF
7117/* confdefs.h.  */
7118_ACEOF
7119cat confdefs.h >>conftest.$ac_ext
7120cat >>conftest.$ac_ext <<_ACEOF
7121/* end confdefs.h.  */
7122#include <ac_nonexistent.h>
7123_ACEOF
7124if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7125  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7126  ac_status=$?
7127  grep -v '^ *+' conftest.er1 >conftest.err
7128  rm -f conftest.er1
7129  cat conftest.err >&5
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); } >/dev/null; then
7132  if test -s conftest.err; then
7133    ac_cpp_err=$ac_cxx_preproc_warn_flag
7134    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7135  else
7136    ac_cpp_err=
7137  fi
7138else
7139  ac_cpp_err=yes
7140fi
7141if test -z "$ac_cpp_err"; then
7142  # Broken: success on invalid input.
7143continue
7144else
7145  echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5
7147
7148  # Passes both tests.
7149ac_preproc_ok=:
7150break
7151fi
7152rm -f conftest.err conftest.$ac_ext
7153
7154done
7155# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7156rm -f conftest.err conftest.$ac_ext
7157if $ac_preproc_ok; then
7158  :
7159else
7160  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7161See \`config.log' for more details." >&5
7162echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7163See \`config.log' for more details." >&2;}
7164   { (exit 1); exit 1; }; }
7165fi
7166
7167ac_ext=cc
7168ac_cpp='$CXXCPP $CPPFLAGS'
7169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7172
7173fi
7174
7175ac_ext=f
7176ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7177ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7178ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7179if test -n "$ac_tool_prefix"; then
7180  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7181  do
7182    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7183set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7184echo "$as_me:$LINENO: checking for $ac_word" >&5
7185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7186if test "${ac_cv_prog_F77+set}" = set; then
7187  echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189  if test -n "$F77"; then
7190  ac_cv_prog_F77="$F77" # Let the user override the test.
7191else
7192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193for as_dir in $PATH
7194do
7195  IFS=$as_save_IFS
7196  test -z "$as_dir" && as_dir=.
7197  for ac_exec_ext in '' $ac_executable_extensions; do
7198  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7199    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7201    break 2
7202  fi
7203done
7204done
7205
7206fi
7207fi
7208F77=$ac_cv_prog_F77
7209if test -n "$F77"; then
7210  echo "$as_me:$LINENO: result: $F77" >&5
7211echo "${ECHO_T}$F77" >&6
7212else
7213  echo "$as_me:$LINENO: result: no" >&5
7214echo "${ECHO_T}no" >&6
7215fi
7216
7217    test -n "$F77" && break
7218  done
7219fi
7220if test -z "$F77"; then
7221  ac_ct_F77=$F77
7222  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7223do
7224  # Extract the first word of "$ac_prog", so it can be a program name with args.
7225set dummy $ac_prog; ac_word=$2
7226echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7229  echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231  if test -n "$ac_ct_F77"; then
7232  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237  IFS=$as_save_IFS
7238  test -z "$as_dir" && as_dir=.
7239  for ac_exec_ext in '' $ac_executable_extensions; do
7240  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241    ac_cv_prog_ac_ct_F77="$ac_prog"
7242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243    break 2
7244  fi
7245done
7246done
7247
7248fi
7249fi
7250ac_ct_F77=$ac_cv_prog_ac_ct_F77
7251if test -n "$ac_ct_F77"; then
7252  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7253echo "${ECHO_T}$ac_ct_F77" >&6
7254else
7255  echo "$as_me:$LINENO: result: no" >&5
7256echo "${ECHO_T}no" >&6
7257fi
7258
7259  test -n "$ac_ct_F77" && break
7260done
7261
7262  F77=$ac_ct_F77
7263fi
7264
7265
7266# Provide some information about the compiler.
7267echo "$as_me:7267:" \
7268     "checking for Fortran 77 compiler version" >&5
7269ac_compiler=`set X $ac_compile; echo $2`
7270{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7271  (eval $ac_compiler --version </dev/null >&5) 2>&5
7272  ac_status=$?
7273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274  (exit $ac_status); }
7275{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7276  (eval $ac_compiler -v </dev/null >&5) 2>&5
7277  ac_status=$?
7278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279  (exit $ac_status); }
7280{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7281  (eval $ac_compiler -V </dev/null >&5) 2>&5
7282  ac_status=$?
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); }
7285rm -f a.out
7286
7287# If we don't use `.F' as extension, the preprocessor is not run on the
7288# input file.  (Note that this only needs to work for GNU compilers.)
7289ac_save_ext=$ac_ext
7290ac_ext=F
7291echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7292echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7293if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7294  echo $ECHO_N "(cached) $ECHO_C" >&6
7295else
7296  cat >conftest.$ac_ext <<_ACEOF
7297      program main
7298#ifndef __GNUC__
7299       choke me
7300#endif
7301
7302      end
7303_ACEOF
7304rm -f conftest.$ac_objext
7305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7306  (eval $ac_compile) 2>conftest.er1
7307  ac_status=$?
7308  grep -v '^ *+' conftest.er1 >conftest.err
7309  rm -f conftest.er1
7310  cat conftest.err >&5
7311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312  (exit $ac_status); } &&
7313         { ac_try='test -z "$ac_f77_werror_flag"
7314                         || test ! -s conftest.err'
7315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7316  (eval $ac_try) 2>&5
7317  ac_status=$?
7318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319  (exit $ac_status); }; } &&
7320         { ac_try='test -s conftest.$ac_objext'
7321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322  (eval $ac_try) 2>&5
7323  ac_status=$?
7324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325  (exit $ac_status); }; }; then
7326  ac_compiler_gnu=yes
7327else
7328  echo "$as_me: failed program was:" >&5
7329sed 's/^/| /' conftest.$ac_ext >&5
7330
7331ac_compiler_gnu=no
7332fi
7333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7334ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7335
7336fi
7337echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7338echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7339ac_ext=$ac_save_ext
7340ac_test_FFLAGS=${FFLAGS+set}
7341ac_save_FFLAGS=$FFLAGS
7342FFLAGS=
7343echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7344echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7345if test "${ac_cv_prog_f77_g+set}" = set; then
7346  echo $ECHO_N "(cached) $ECHO_C" >&6
7347else
7348  FFLAGS=-g
7349cat >conftest.$ac_ext <<_ACEOF
7350      program main
7351
7352      end
7353_ACEOF
7354rm -f conftest.$ac_objext
7355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7356  (eval $ac_compile) 2>conftest.er1
7357  ac_status=$?
7358  grep -v '^ *+' conftest.er1 >conftest.err
7359  rm -f conftest.er1
7360  cat conftest.err >&5
7361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362  (exit $ac_status); } &&
7363         { ac_try='test -z "$ac_f77_werror_flag"
7364                         || test ! -s conftest.err'
7365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7366  (eval $ac_try) 2>&5
7367  ac_status=$?
7368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369  (exit $ac_status); }; } &&
7370         { ac_try='test -s conftest.$ac_objext'
7371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7372  (eval $ac_try) 2>&5
7373  ac_status=$?
7374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375  (exit $ac_status); }; }; then
7376  ac_cv_prog_f77_g=yes
7377else
7378  echo "$as_me: failed program was:" >&5
7379sed 's/^/| /' conftest.$ac_ext >&5
7380
7381ac_cv_prog_f77_g=no
7382fi
7383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7384
7385fi
7386echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7387echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7388if test "$ac_test_FFLAGS" = set; then
7389  FFLAGS=$ac_save_FFLAGS
7390elif test $ac_cv_prog_f77_g = yes; then
7391  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7392    FFLAGS="-g -O2"
7393  else
7394    FFLAGS="-g"
7395  fi
7396else
7397  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7398    FFLAGS="-O2"
7399  else
7400    FFLAGS=
7401  fi
7402fi
7403
7404G77=`test $ac_compiler_gnu = yes && echo yes`
7405ac_ext=c
7406ac_cpp='$CPP $CPPFLAGS'
7407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7409ac_compiler_gnu=$ac_cv_c_compiler_gnu
7410
7411
7412
7413# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7414
7415# find the maximum length of command line arguments
7416echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7417echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7418if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7419  echo $ECHO_N "(cached) $ECHO_C" >&6
7420else
7421    i=0
7422  teststring="ABCD"
7423
7424  case $build_os in
7425  msdosdjgpp*)
7426    # On DJGPP, this test can blow up pretty badly due to problems in libc
7427    # (any single argument exceeding 2000 bytes causes a buffer overrun
7428    # during glob expansion).  Even if it were fixed, the result of this
7429    # check would be larger than it should be.
7430    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7431    ;;
7432
7433  gnu*)
7434    # Under GNU Hurd, this test is not required because there is
7435    # no limit to the length of command line arguments.
7436    # Libtool will interpret -1 as no limit whatsoever
7437    lt_cv_sys_max_cmd_len=-1;
7438    ;;
7439
7440  cygwin* | mingw*)
7441    # On Win9x/ME, this test blows up -- it succeeds, but takes
7442    # about 5 minutes as the teststring grows exponentially.
7443    # Worse, since 9x/ME are not pre-emptively multitasking,
7444    # you end up with a "frozen" computer, even though with patience
7445    # the test eventually succeeds (with a max line length of 256k).
7446    # Instead, let's just punt: use the minimum linelength reported by
7447    # all of the supported platforms: 8192 (on NT/2K/XP).
7448    lt_cv_sys_max_cmd_len=8192;
7449    ;;
7450
7451  amigaos*)
7452    # On AmigaOS with pdksh, this test takes hours, literally.
7453    # So we just punt and use a minimum line length of 8192.
7454    lt_cv_sys_max_cmd_len=8192;
7455    ;;
7456
7457  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7458    # This has been around since 386BSD, at least.  Likely further.
7459    if test -x /sbin/sysctl; then
7460      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7461    elif test -x /usr/sbin/sysctl; then
7462      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7463    else
7464      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7465    fi
7466    # And add a safety zone
7467    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7468    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7469    ;;
7470
7471  interix*)
7472    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7473    lt_cv_sys_max_cmd_len=196608
7474    ;;
7475
7476  osf*)
7477    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7478    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7479    # nice to cause kernel panics so lets avoid the loop below.
7480    # First set a reasonable default.
7481    lt_cv_sys_max_cmd_len=16384
7482    #
7483    if test -x /sbin/sysconfig; then
7484      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7485        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7486      esac
7487    fi
7488    ;;
7489  sco3.2v5*)
7490    lt_cv_sys_max_cmd_len=102400
7491    ;;
7492  sysv5* | sco5v6* | sysv4.2uw2*)
7493    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7494    if test -n "$kargmax"; then
7495      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7496    else
7497      lt_cv_sys_max_cmd_len=32768
7498    fi
7499    ;;
7500  *)
7501    # If test is not a shell built-in, we'll probably end up computing a
7502    # maximum length that is only half of the actual maximum length, but
7503    # we can't tell.
7504    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7505    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7506               = "XX$teststring") >/dev/null 2>&1 &&
7507            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7508            lt_cv_sys_max_cmd_len=$new_result &&
7509            test $i != 17 # 1/2 MB should be enough
7510    do
7511      i=`expr $i + 1`
7512      teststring=$teststring$teststring
7513    done
7514    teststring=
7515    # Add a significant safety factor because C++ compilers can tack on massive
7516    # amounts of additional arguments before passing them to the linker.
7517    # It appears as though 1/2 is a usable value.
7518    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7519    ;;
7520  esac
7521
7522fi
7523
7524if test -n $lt_cv_sys_max_cmd_len ; then
7525  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7526echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7527else
7528  echo "$as_me:$LINENO: result: none" >&5
7529echo "${ECHO_T}none" >&6
7530fi
7531
7532
7533
7534
7535# Check for command to grab the raw symbol name followed by C symbol from nm.
7536echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7537echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7538if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7539  echo $ECHO_N "(cached) $ECHO_C" >&6
7540else
7541
7542# These are sane defaults that work on at least a few old systems.
7543# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7544
7545# Character class describing NM global symbol codes.
7546symcode='[BCDEGRST]'
7547
7548# Regexp to match symbols that can be accessed directly from C.
7549sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7550
7551# Transform an extracted symbol line into a proper C declaration
7552lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7553
7554# Transform an extracted symbol line into symbol name and symbol address
7555lt_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'"
7556
7557# Define system-specific variables.
7558case $host_os in
7559aix*)
7560  symcode='[BCDT]'
7561  ;;
7562cygwin* | mingw* | pw32*)
7563  symcode='[ABCDGISTW]'
7564  ;;
7565hpux*) # Its linker distinguishes data from code symbols
7566  if test "$host_cpu" = ia64; then
7567    symcode='[ABCDEGRST]'
7568  fi
7569  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7570  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'"
7571  ;;
7572linux*)
7573  if test "$host_cpu" = ia64; then
7574    symcode='[ABCDGIRSTW]'
7575    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7576    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'"
7577  fi
7578  ;;
7579irix* | nonstopux*)
7580  symcode='[BCDEGRST]'
7581  ;;
7582osf*)
7583  symcode='[BCDEGQRST]'
7584  ;;
7585solaris*)
7586  symcode='[BDRT]'
7587  ;;
7588sco3.2v5*)
7589  symcode='[DT]'
7590  ;;
7591sysv4.2uw2*)
7592  symcode='[DT]'
7593  ;;
7594sysv5* | sco5v6* | unixware* | OpenUNIX*)
7595  symcode='[ABDT]'
7596  ;;
7597sysv4)
7598  symcode='[DFNSTU]'
7599  ;;
7600esac
7601
7602# Handle CRLF in mingw tool chain
7603opt_cr=
7604case $build_os in
7605mingw*)
7606  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7607  ;;
7608esac
7609
7610# If we're using GNU nm, then use its standard symbol codes.
7611case `$NM -V 2>&1` in
7612*GNU* | *'with BFD'*)
7613  symcode='[ABCDGIRSTW]' ;;
7614esac
7615
7616# Try without a prefix undercore, then with it.
7617for ac_symprfx in "" "_"; do
7618
7619  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7620  symxfrm="\\1 $ac_symprfx\\2 \\2"
7621
7622  # Write the raw and C identifiers.
7623  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7624
7625  # Check to see that the pipe works correctly.
7626  pipe_works=no
7627
7628  rm -f conftest*
7629  cat > conftest.$ac_ext <<EOF
7630#ifdef __cplusplus
7631extern "C" {
7632#endif
7633char nm_test_var;
7634void nm_test_func(){}
7635#ifdef __cplusplus
7636}
7637#endif
7638int main(){nm_test_var='a';nm_test_func();return(0);}
7639EOF
7640
7641  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7642  (eval $ac_compile) 2>&5
7643  ac_status=$?
7644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645  (exit $ac_status); }; then
7646    # Now try to grab the symbols.
7647    nlist=conftest.nm
7648    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7649  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7650  ac_status=$?
7651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652  (exit $ac_status); } && test -s "$nlist"; then
7653      # Try sorting and uniquifying the output.
7654      if sort "$nlist" | uniq > "$nlist"T; then
7655        mv -f "$nlist"T "$nlist"
7656      else
7657        rm -f "$nlist"T
7658      fi
7659
7660      # Make sure that we snagged all the symbols we need.
7661      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7662        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7663          cat <<EOF > conftest.$ac_ext
7664#ifdef __cplusplus
7665extern "C" {
7666#endif
7667
7668EOF
7669          # Now generate the symbol file.
7670          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7671
7672          cat <<EOF >> conftest.$ac_ext
7673#if defined (__STDC__) && __STDC__
7674# define lt_ptr_t void *
7675#else
7676# define lt_ptr_t char *
7677# define const
7678#endif
7679
7680/* The mapping between symbol names and symbols. */
7681const struct {
7682  const char *name;
7683  lt_ptr_t address;
7684}
7685lt_preloaded_symbols[] =
7686{
7687EOF
7688          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7689          cat <<\EOF >> conftest.$ac_ext
7690  {0, (lt_ptr_t) 0}
7691};
7692
7693#ifdef __cplusplus
7694}
7695#endif
7696EOF
7697          # Now try linking the two files.
7698          mv conftest.$ac_objext conftstm.$ac_objext
7699          lt_save_LIBS="$LIBS"
7700          lt_save_CFLAGS="$CFLAGS"
7701          LIBS="conftstm.$ac_objext"
7702          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7703          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7704  (eval $ac_link) 2>&5
7705  ac_status=$?
7706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7708            pipe_works=yes
7709          fi
7710          LIBS="$lt_save_LIBS"
7711          CFLAGS="$lt_save_CFLAGS"
7712        else
7713          echo "cannot find nm_test_func in $nlist" >&5
7714        fi
7715      else
7716        echo "cannot find nm_test_var in $nlist" >&5
7717      fi
7718    else
7719      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7720    fi
7721  else
7722    echo "$progname: failed program was:" >&5
7723    cat conftest.$ac_ext >&5
7724  fi
7725  rm -f conftest* conftst*
7726
7727  # Do not use the global_symbol_pipe unless it works.
7728  if test "$pipe_works" = yes; then
7729    break
7730  else
7731    lt_cv_sys_global_symbol_pipe=
7732  fi
7733done
7734
7735fi
7736
7737if test -z "$lt_cv_sys_global_symbol_pipe"; then
7738  lt_cv_sys_global_symbol_to_cdecl=
7739fi
7740if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7741  echo "$as_me:$LINENO: result: failed" >&5
7742echo "${ECHO_T}failed" >&6
7743else
7744  echo "$as_me:$LINENO: result: ok" >&5
7745echo "${ECHO_T}ok" >&6
7746fi
7747
7748echo "$as_me:$LINENO: checking for objdir" >&5
7749echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7750if test "${lt_cv_objdir+set}" = set; then
7751  echo $ECHO_N "(cached) $ECHO_C" >&6
7752else
7753  rm -f .libs 2>/dev/null
7754mkdir .libs 2>/dev/null
7755if test -d .libs; then
7756  lt_cv_objdir=.libs
7757else
7758  # MS-DOS does not allow filenames that begin with a dot.
7759  lt_cv_objdir=_libs
7760fi
7761rmdir .libs 2>/dev/null
7762fi
7763echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7764echo "${ECHO_T}$lt_cv_objdir" >&6
7765objdir=$lt_cv_objdir
7766
7767
7768
7769
7770
7771case $host_os in
7772aix3*)
7773  # AIX sometimes has problems with the GCC collect2 program.  For some
7774  # reason, if we set the COLLECT_NAMES environment variable, the problems
7775  # vanish in a puff of smoke.
7776  if test "X${COLLECT_NAMES+set}" != Xset; then
7777    COLLECT_NAMES=
7778    export COLLECT_NAMES
7779  fi
7780  ;;
7781esac
7782
7783# Sed substitution that helps us do robust quoting.  It backslashifies
7784# metacharacters that are still active within double-quoted strings.
7785Xsed='sed -e 1s/^X//'
7786sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7787
7788# Same as above, but do not quote variable references.
7789double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7790
7791# Sed substitution to delay expansion of an escaped shell variable in a
7792# double_quote_subst'ed string.
7793delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7794
7795# Sed substitution to avoid accidental globbing in evaled expressions
7796no_glob_subst='s/\*/\\\*/g'
7797
7798# Constants:
7799rm="rm -f"
7800
7801# Global variables:
7802default_ofile=libtool
7803can_build_shared=yes
7804
7805# All known linkers require a `.a' archive for static linking (except MSVC,
7806# which needs '.lib').
7807libext=a
7808ltmain="$ac_aux_dir/ltmain.sh"
7809ofile="$default_ofile"
7810with_gnu_ld="$lt_cv_prog_gnu_ld"
7811
7812if test -n "$ac_tool_prefix"; then
7813  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7814set dummy ${ac_tool_prefix}ar; ac_word=$2
7815echo "$as_me:$LINENO: checking for $ac_word" >&5
7816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7817if test "${ac_cv_prog_AR+set}" = set; then
7818  echo $ECHO_N "(cached) $ECHO_C" >&6
7819else
7820  if test -n "$AR"; then
7821  ac_cv_prog_AR="$AR" # Let the user override the test.
7822else
7823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824for as_dir in $PATH
7825do
7826  IFS=$as_save_IFS
7827  test -z "$as_dir" && as_dir=.
7828  for ac_exec_ext in '' $ac_executable_extensions; do
7829  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7830    ac_cv_prog_AR="${ac_tool_prefix}ar"
7831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7832    break 2
7833  fi
7834done
7835done
7836
7837fi
7838fi
7839AR=$ac_cv_prog_AR
7840if test -n "$AR"; then
7841  echo "$as_me:$LINENO: result: $AR" >&5
7842echo "${ECHO_T}$AR" >&6
7843else
7844  echo "$as_me:$LINENO: result: no" >&5
7845echo "${ECHO_T}no" >&6
7846fi
7847
7848fi
7849if test -z "$ac_cv_prog_AR"; then
7850  ac_ct_AR=$AR
7851  # Extract the first word of "ar", so it can be a program name with args.
7852set dummy ar; ac_word=$2
7853echo "$as_me:$LINENO: checking for $ac_word" >&5
7854echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7855if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7856  echo $ECHO_N "(cached) $ECHO_C" >&6
7857else
7858  if test -n "$ac_ct_AR"; then
7859  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7860else
7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7862for as_dir in $PATH
7863do
7864  IFS=$as_save_IFS
7865  test -z "$as_dir" && as_dir=.
7866  for ac_exec_ext in '' $ac_executable_extensions; do
7867  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7868    ac_cv_prog_ac_ct_AR="ar"
7869    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7870    break 2
7871  fi
7872done
7873done
7874
7875  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7876fi
7877fi
7878ac_ct_AR=$ac_cv_prog_ac_ct_AR
7879if test -n "$ac_ct_AR"; then
7880  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7881echo "${ECHO_T}$ac_ct_AR" >&6
7882else
7883  echo "$as_me:$LINENO: result: no" >&5
7884echo "${ECHO_T}no" >&6
7885fi
7886
7887  AR=$ac_ct_AR
7888else
7889  AR="$ac_cv_prog_AR"
7890fi
7891
7892if test -n "$ac_tool_prefix"; then
7893  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7894set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7895echo "$as_me:$LINENO: checking for $ac_word" >&5
7896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7897if test "${ac_cv_prog_RANLIB+set}" = set; then
7898  echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900  if test -n "$RANLIB"; then
7901  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7902else
7903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7904for as_dir in $PATH
7905do
7906  IFS=$as_save_IFS
7907  test -z "$as_dir" && as_dir=.
7908  for ac_exec_ext in '' $ac_executable_extensions; do
7909  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7910    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7911    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7912    break 2
7913  fi
7914done
7915done
7916
7917fi
7918fi
7919RANLIB=$ac_cv_prog_RANLIB
7920if test -n "$RANLIB"; then
7921  echo "$as_me:$LINENO: result: $RANLIB" >&5
7922echo "${ECHO_T}$RANLIB" >&6
7923else
7924  echo "$as_me:$LINENO: result: no" >&5
7925echo "${ECHO_T}no" >&6
7926fi
7927
7928fi
7929if test -z "$ac_cv_prog_RANLIB"; then
7930  ac_ct_RANLIB=$RANLIB
7931  # Extract the first word of "ranlib", so it can be a program name with args.
7932set dummy ranlib; ac_word=$2
7933echo "$as_me:$LINENO: checking for $ac_word" >&5
7934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7935if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7936  echo $ECHO_N "(cached) $ECHO_C" >&6
7937else
7938  if test -n "$ac_ct_RANLIB"; then
7939  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7940else
7941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942for as_dir in $PATH
7943do
7944  IFS=$as_save_IFS
7945  test -z "$as_dir" && as_dir=.
7946  for ac_exec_ext in '' $ac_executable_extensions; do
7947  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948    ac_cv_prog_ac_ct_RANLIB="ranlib"
7949    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7950    break 2
7951  fi
7952done
7953done
7954
7955  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7956fi
7957fi
7958ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7959if test -n "$ac_ct_RANLIB"; then
7960  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7961echo "${ECHO_T}$ac_ct_RANLIB" >&6
7962else
7963  echo "$as_me:$LINENO: result: no" >&5
7964echo "${ECHO_T}no" >&6
7965fi
7966
7967  RANLIB=$ac_ct_RANLIB
7968else
7969  RANLIB="$ac_cv_prog_RANLIB"
7970fi
7971
7972if test -n "$ac_tool_prefix"; then
7973  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7974set dummy ${ac_tool_prefix}strip; ac_word=$2
7975echo "$as_me:$LINENO: checking for $ac_word" >&5
7976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7977if test "${ac_cv_prog_STRIP+set}" = set; then
7978  echo $ECHO_N "(cached) $ECHO_C" >&6
7979else
7980  if test -n "$STRIP"; then
7981  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7982else
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986  IFS=$as_save_IFS
7987  test -z "$as_dir" && as_dir=.
7988  for ac_exec_ext in '' $ac_executable_extensions; do
7989  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7991    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7992    break 2
7993  fi
7994done
7995done
7996
7997fi
7998fi
7999STRIP=$ac_cv_prog_STRIP
8000if test -n "$STRIP"; then
8001  echo "$as_me:$LINENO: result: $STRIP" >&5
8002echo "${ECHO_T}$STRIP" >&6
8003else
8004  echo "$as_me:$LINENO: result: no" >&5
8005echo "${ECHO_T}no" >&6
8006fi
8007
8008fi
8009if test -z "$ac_cv_prog_STRIP"; then
8010  ac_ct_STRIP=$STRIP
8011  # Extract the first word of "strip", so it can be a program name with args.
8012set dummy strip; ac_word=$2
8013echo "$as_me:$LINENO: checking for $ac_word" >&5
8014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8015if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8016  echo $ECHO_N "(cached) $ECHO_C" >&6
8017else
8018  if test -n "$ac_ct_STRIP"; then
8019  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8020else
8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022for as_dir in $PATH
8023do
8024  IFS=$as_save_IFS
8025  test -z "$as_dir" && as_dir=.
8026  for ac_exec_ext in '' $ac_executable_extensions; do
8027  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028    ac_cv_prog_ac_ct_STRIP="strip"
8029    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8030    break 2
8031  fi
8032done
8033done
8034
8035  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8036fi
8037fi
8038ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8039if test -n "$ac_ct_STRIP"; then
8040  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8041echo "${ECHO_T}$ac_ct_STRIP" >&6
8042else
8043  echo "$as_me:$LINENO: result: no" >&5
8044echo "${ECHO_T}no" >&6
8045fi
8046
8047  STRIP=$ac_ct_STRIP
8048else
8049  STRIP="$ac_cv_prog_STRIP"
8050fi
8051
8052
8053old_CC="$CC"
8054old_CFLAGS="$CFLAGS"
8055
8056# Set sane defaults for various variables
8057test -z "$AR" && AR=ar
8058test -z "$AR_FLAGS" && AR_FLAGS=cru
8059test -z "$AS" && AS=as
8060test -z "$CC" && CC=cc
8061test -z "$LTCC" && LTCC=$CC
8062test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8063test -z "$DLLTOOL" && DLLTOOL=dlltool
8064test -z "$LD" && LD=ld
8065test -z "$LN_S" && LN_S="ln -s"
8066test -z "$MAGIC_CMD" && MAGIC_CMD=file
8067test -z "$NM" && NM=nm
8068test -z "$SED" && SED=sed
8069test -z "$OBJDUMP" && OBJDUMP=objdump
8070test -z "$RANLIB" && RANLIB=:
8071test -z "$STRIP" && STRIP=:
8072test -z "$ac_objext" && ac_objext=o
8073
8074# Determine commands to create old-style static archives.
8075old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8076old_postinstall_cmds='chmod 644 $oldlib'
8077old_postuninstall_cmds=
8078
8079if test -n "$RANLIB"; then
8080  case $host_os in
8081  openbsd*)
8082    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8083    ;;
8084  *)
8085    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8086    ;;
8087  esac
8088  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8089fi
8090
8091for cc_temp in $compiler""; do
8092  case $cc_temp in
8093    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8094    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8095    \-*) ;;
8096    *) break;;
8097  esac
8098done
8099cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8100
8101
8102# Only perform the check for file, if the check method requires it
8103case $deplibs_check_method in
8104file_magic*)
8105  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8106    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8107echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8108if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8109  echo $ECHO_N "(cached) $ECHO_C" >&6
8110else
8111  case $MAGIC_CMD in
8112[\\/*] |  ?:[\\/]*)
8113  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8114  ;;
8115*)
8116  lt_save_MAGIC_CMD="$MAGIC_CMD"
8117  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8118  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8119  for ac_dir in $ac_dummy; do
8120    IFS="$lt_save_ifs"
8121    test -z "$ac_dir" && ac_dir=.
8122    if test -f $ac_dir/${ac_tool_prefix}file; then
8123      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8124      if test -n "$file_magic_test_file"; then
8125        case $deplibs_check_method in
8126        "file_magic "*)
8127          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8128          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8129          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8130            $EGREP "$file_magic_regex" > /dev/null; then
8131            :
8132          else
8133            cat <<EOF 1>&2
8134
8135*** Warning: the command libtool uses to detect shared libraries,
8136*** $file_magic_cmd, produces output that libtool cannot recognize.
8137*** The result is that libtool may fail to recognize shared libraries
8138*** as such.  This will affect the creation of libtool libraries that
8139*** depend on shared libraries, but programs linked with such libtool
8140*** libraries will work regardless of this problem.  Nevertheless, you
8141*** may want to report the problem to your system manager and/or to
8142*** bug-libtool@gnu.org
8143
8144EOF
8145          fi ;;
8146        esac
8147      fi
8148      break
8149    fi
8150  done
8151  IFS="$lt_save_ifs"
8152  MAGIC_CMD="$lt_save_MAGIC_CMD"
8153  ;;
8154esac
8155fi
8156
8157MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8158if test -n "$MAGIC_CMD"; then
8159  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8160echo "${ECHO_T}$MAGIC_CMD" >&6
8161else
8162  echo "$as_me:$LINENO: result: no" >&5
8163echo "${ECHO_T}no" >&6
8164fi
8165
8166if test -z "$lt_cv_path_MAGIC_CMD"; then
8167  if test -n "$ac_tool_prefix"; then
8168    echo "$as_me:$LINENO: checking for file" >&5
8169echo $ECHO_N "checking for file... $ECHO_C" >&6
8170if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8171  echo $ECHO_N "(cached) $ECHO_C" >&6
8172else
8173  case $MAGIC_CMD in
8174[\\/*] |  ?:[\\/]*)
8175  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8176  ;;
8177*)
8178  lt_save_MAGIC_CMD="$MAGIC_CMD"
8179  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8180  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8181  for ac_dir in $ac_dummy; do
8182    IFS="$lt_save_ifs"
8183    test -z "$ac_dir" && ac_dir=.
8184    if test -f $ac_dir/file; then
8185      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8186      if test -n "$file_magic_test_file"; then
8187        case $deplibs_check_method in
8188        "file_magic "*)
8189          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8190          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8191          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8192            $EGREP "$file_magic_regex" > /dev/null; then
8193            :
8194          else
8195            cat <<EOF 1>&2
8196
8197*** Warning: the command libtool uses to detect shared libraries,
8198*** $file_magic_cmd, produces output that libtool cannot recognize.
8199*** The result is that libtool may fail to recognize shared libraries
8200*** as such.  This will affect the creation of libtool libraries that
8201*** depend on shared libraries, but programs linked with such libtool
8202*** libraries will work regardless of this problem.  Nevertheless, you
8203*** may want to report the problem to your system manager and/or to
8204*** bug-libtool@gnu.org
8205
8206EOF
8207          fi ;;
8208        esac
8209      fi
8210      break
8211    fi
8212  done
8213  IFS="$lt_save_ifs"
8214  MAGIC_CMD="$lt_save_MAGIC_CMD"
8215  ;;
8216esac
8217fi
8218
8219MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8220if test -n "$MAGIC_CMD"; then
8221  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8222echo "${ECHO_T}$MAGIC_CMD" >&6
8223else
8224  echo "$as_me:$LINENO: result: no" >&5
8225echo "${ECHO_T}no" >&6
8226fi
8227
8228  else
8229    MAGIC_CMD=:
8230  fi
8231fi
8232
8233  fi
8234  ;;
8235esac
8236
8237enable_dlopen=no
8238enable_win32_dll=no
8239
8240# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8241if test "${enable_libtool_lock+set}" = set; then
8242  enableval="$enable_libtool_lock"
8243
8244fi;
8245test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8246
8247
8248# Check whether --with-pic or --without-pic was given.
8249if test "${with_pic+set}" = set; then
8250  withval="$with_pic"
8251  pic_mode="$withval"
8252else
8253  pic_mode=default
8254fi;
8255test -z "$pic_mode" && pic_mode=default
8256
8257# Use C for the default configuration in the libtool script
8258tagname=
8259lt_save_CC="$CC"
8260ac_ext=c
8261ac_cpp='$CPP $CPPFLAGS'
8262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8264ac_compiler_gnu=$ac_cv_c_compiler_gnu
8265
8266
8267# Source file extension for C test sources.
8268ac_ext=c
8269
8270# Object file extension for compiled C test sources.
8271objext=o
8272objext=$objext
8273
8274# Code to be used in simple compile tests
8275lt_simple_compile_test_code="int some_variable = 0;\n"
8276
8277# Code to be used in simple link tests
8278lt_simple_link_test_code='int main(){return(0);}\n'
8279
8280
8281# If no C compiler was specified, use CC.
8282LTCC=${LTCC-"$CC"}
8283
8284# If no C compiler flags were specified, use CFLAGS.
8285LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8286
8287# Allow CC to be a program name with arguments.
8288compiler=$CC
8289
8290
8291# save warnings/boilerplate of simple test code
8292ac_outfile=conftest.$ac_objext
8293printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8294eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8295_lt_compiler_boilerplate=`cat conftest.err`
8296$rm conftest*
8297
8298ac_outfile=conftest.$ac_objext
8299printf "$lt_simple_link_test_code" >conftest.$ac_ext
8300eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8301_lt_linker_boilerplate=`cat conftest.err`
8302$rm conftest*
8303
8304
8305## CAVEAT EMPTOR:
8306## There is no encapsulation within the following macros, do not change
8307## the running order or otherwise move them around unless you know exactly
8308## what you are doing...
8309
8310lt_prog_compiler_no_builtin_flag=
8311
8312if test "$GCC" = yes; then
8313  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8314
8315
8316echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8317echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8318if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8319  echo $ECHO_N "(cached) $ECHO_C" >&6
8320else
8321  lt_cv_prog_compiler_rtti_exceptions=no
8322  ac_outfile=conftest.$ac_objext
8323   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8324   lt_compiler_flag="-fno-rtti -fno-exceptions"
8325   # Insert the option either (1) after the last *FLAGS variable, or
8326   # (2) before a word containing "conftest.", or (3) at the end.
8327   # Note that $ac_compile itself does not contain backslashes and begins
8328   # with a dollar sign (not a hyphen), so the echo should work correctly.
8329   # The option is referenced via a variable to avoid confusing sed.
8330   lt_compile=`echo "$ac_compile" | $SED \
8331   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8332   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8333   -e 's:$: $lt_compiler_flag:'`
8334   (eval echo "\"\$as_me:8334: $lt_compile\"" >&5)
8335   (eval "$lt_compile" 2>conftest.err)
8336   ac_status=$?
8337   cat conftest.err >&5
8338   echo "$as_me:8338: \$? = $ac_status" >&5
8339   if (exit $ac_status) && test -s "$ac_outfile"; then
8340     # The compiler can only warn and ignore the option if not recognized
8341     # So say no if there are warnings other than the usual output.
8342     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8343     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8344     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8345       lt_cv_prog_compiler_rtti_exceptions=yes
8346     fi
8347   fi
8348   $rm conftest*
8349
8350fi
8351echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8352echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8353
8354if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8355    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8356else
8357    :
8358fi
8359
8360fi
8361
8362lt_prog_compiler_wl=
8363lt_prog_compiler_pic=
8364lt_prog_compiler_static=
8365
8366echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8367echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8368
8369  if test "$GCC" = yes; then
8370    lt_prog_compiler_wl='-Wl,'
8371    lt_prog_compiler_static='-static'
8372
8373    case $host_os in
8374      aix*)
8375      # All AIX code is PIC.
8376      if test "$host_cpu" = ia64; then
8377        # AIX 5 now supports IA64 processor
8378        lt_prog_compiler_static='-Bstatic'
8379      fi
8380      ;;
8381
8382    amigaos*)
8383      # FIXME: we need at least 68020 code to build shared libraries, but
8384      # adding the `-m68020' flag to GCC prevents building anything better,
8385      # like `-m68040'.
8386      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8387      ;;
8388
8389    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8390      # PIC is the default for these OSes.
8391      ;;
8392
8393    mingw* | pw32* | os2*)
8394      # This hack is so that the source file can tell whether it is being
8395      # built for inclusion in a dll (and should export symbols for example).
8396      lt_prog_compiler_pic='-DDLL_EXPORT'
8397      ;;
8398
8399    darwin* | rhapsody*)
8400      # PIC is the default on this platform
8401      # Common symbols not allowed in MH_DYLIB files
8402      lt_prog_compiler_pic='-fno-common'
8403      ;;
8404
8405    interix3*)
8406      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8407      # Instead, we relocate shared libraries at runtime.
8408      ;;
8409
8410    msdosdjgpp*)
8411      # Just because we use GCC doesn't mean we suddenly get shared libraries
8412      # on systems that don't support them.
8413      lt_prog_compiler_can_build_shared=no
8414      enable_shared=no
8415      ;;
8416
8417    sysv4*MP*)
8418      if test -d /usr/nec; then
8419        lt_prog_compiler_pic=-Kconform_pic
8420      fi
8421      ;;
8422
8423    hpux*)
8424      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8425      # not for PA HP-UX.
8426      case $host_cpu in
8427      hppa*64*|ia64*)
8428        # +Z the default
8429        ;;
8430      *)
8431        lt_prog_compiler_pic='-fPIC'
8432        ;;
8433      esac
8434      ;;
8435
8436    *)
8437      lt_prog_compiler_pic='-fPIC'
8438      ;;
8439    esac
8440  else
8441    # PORTME Check for flag to pass linker flags through the system compiler.
8442    case $host_os in
8443    aix*)
8444      lt_prog_compiler_wl='-Wl,'
8445      if test "$host_cpu" = ia64; then
8446        # AIX 5 now supports IA64 processor
8447        lt_prog_compiler_static='-Bstatic'
8448      else
8449        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8450      fi
8451      ;;
8452      darwin*)
8453        # PIC is the default on this platform
8454        # Common symbols not allowed in MH_DYLIB files
8455       case $cc_basename in
8456         xlc*)
8457         lt_prog_compiler_pic='-qnocommon'
8458         lt_prog_compiler_wl='-Wl,'
8459         ;;
8460       esac
8461       ;;
8462
8463    mingw* | pw32* | os2*)
8464      # This hack is so that the source file can tell whether it is being
8465      # built for inclusion in a dll (and should export symbols for example).
8466      lt_prog_compiler_pic='-DDLL_EXPORT'
8467      ;;
8468
8469    hpux9* | hpux10* | hpux11*)
8470      lt_prog_compiler_wl='-Wl,'
8471      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8472      # not for PA HP-UX.
8473      case $host_cpu in
8474      hppa*64*|ia64*)
8475        # +Z the default
8476        ;;
8477      *)
8478        lt_prog_compiler_pic='+Z'
8479        ;;
8480      esac
8481      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8482      lt_prog_compiler_static='${wl}-a ${wl}archive'
8483      ;;
8484
8485    irix5* | irix6* | nonstopux*)
8486      lt_prog_compiler_wl='-Wl,'
8487      # PIC (with -KPIC) is the default.
8488      lt_prog_compiler_static='-non_shared'
8489      ;;
8490
8491    newsos6)
8492      lt_prog_compiler_pic='-KPIC'
8493      lt_prog_compiler_static='-Bstatic'
8494      ;;
8495
8496    linux*)
8497      case $cc_basename in
8498      icc* | ecc*)
8499        lt_prog_compiler_wl='-Wl,'
8500        lt_prog_compiler_pic='-KPIC'
8501        lt_prog_compiler_static='-static'
8502        ;;
8503      pgcc* | pgf77* | pgf90* | pgf95*)
8504        # Portland Group compilers (*not* the Pentium gcc compiler,
8505        # which looks to be a dead project)
8506        lt_prog_compiler_wl='-Wl,'
8507        lt_prog_compiler_pic='-fpic'
8508        lt_prog_compiler_static='-Bstatic'
8509        ;;
8510      ccc*)
8511        lt_prog_compiler_wl='-Wl,'
8512        # All Alpha code is PIC.
8513        lt_prog_compiler_static='-non_shared'
8514        ;;
8515      esac
8516      ;;
8517
8518    osf3* | osf4* | osf5*)
8519      lt_prog_compiler_wl='-Wl,'
8520      # All OSF/1 code is PIC.
8521      lt_prog_compiler_static='-non_shared'
8522      ;;
8523
8524    solaris*)
8525      lt_prog_compiler_pic='-KPIC'
8526      lt_prog_compiler_static='-Bstatic'
8527      case $cc_basename in
8528      f77* | f90* | f95*)
8529        lt_prog_compiler_wl='-Qoption ld ';;
8530      *)
8531        lt_prog_compiler_wl='-Wl,';;
8532      esac
8533      ;;
8534
8535    sunos4*)
8536      lt_prog_compiler_wl='-Qoption ld '
8537      lt_prog_compiler_pic='-PIC'
8538      lt_prog_compiler_static='-Bstatic'
8539      ;;
8540
8541    sysv4 | sysv4.2uw2* | sysv4.3*)
8542      lt_prog_compiler_wl='-Wl,'
8543      lt_prog_compiler_pic='-KPIC'
8544      lt_prog_compiler_static='-Bstatic'
8545      ;;
8546
8547    sysv4*MP*)
8548      if test -d /usr/nec ;then
8549        lt_prog_compiler_pic='-Kconform_pic'
8550        lt_prog_compiler_static='-Bstatic'
8551      fi
8552      ;;
8553
8554    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8555      lt_prog_compiler_wl='-Wl,'
8556      lt_prog_compiler_pic='-KPIC'
8557      lt_prog_compiler_static='-Bstatic'
8558      ;;
8559
8560    unicos*)
8561      lt_prog_compiler_wl='-Wl,'
8562      lt_prog_compiler_can_build_shared=no
8563      ;;
8564
8565    uts4*)
8566      lt_prog_compiler_pic='-pic'
8567      lt_prog_compiler_static='-Bstatic'
8568      ;;
8569
8570    *)
8571      lt_prog_compiler_can_build_shared=no
8572      ;;
8573    esac
8574  fi
8575
8576echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8577echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8578
8579#
8580# Check to make sure the PIC flag actually works.
8581#
8582if test -n "$lt_prog_compiler_pic"; then
8583
8584echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8585echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8586if test "${lt_prog_compiler_pic_works+set}" = set; then
8587  echo $ECHO_N "(cached) $ECHO_C" >&6
8588else
8589  lt_prog_compiler_pic_works=no
8590  ac_outfile=conftest.$ac_objext
8591   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8592   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8593   # Insert the option either (1) after the last *FLAGS variable, or
8594   # (2) before a word containing "conftest.", or (3) at the end.
8595   # Note that $ac_compile itself does not contain backslashes and begins
8596   # with a dollar sign (not a hyphen), so the echo should work correctly.
8597   # The option is referenced via a variable to avoid confusing sed.
8598   lt_compile=`echo "$ac_compile" | $SED \
8599   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8600   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8601   -e 's:$: $lt_compiler_flag:'`
8602   (eval echo "\"\$as_me:8602: $lt_compile\"" >&5)
8603   (eval "$lt_compile" 2>conftest.err)
8604   ac_status=$?
8605   cat conftest.err >&5
8606   echo "$as_me:8606: \$? = $ac_status" >&5
8607   if (exit $ac_status) && test -s "$ac_outfile"; then
8608     # The compiler can only warn and ignore the option if not recognized
8609     # So say no if there are warnings other than the usual output.
8610     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8611     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8612     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8613       lt_prog_compiler_pic_works=yes
8614     fi
8615   fi
8616   $rm conftest*
8617
8618fi
8619echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8620echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8621
8622if test x"$lt_prog_compiler_pic_works" = xyes; then
8623    case $lt_prog_compiler_pic in
8624     "" | " "*) ;;
8625     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8626     esac
8627else
8628    lt_prog_compiler_pic=
8629     lt_prog_compiler_can_build_shared=no
8630fi
8631
8632fi
8633case $host_os in
8634  # For platforms which do not support PIC, -DPIC is meaningless:
8635  *djgpp*)
8636    lt_prog_compiler_pic=
8637    ;;
8638  *)
8639    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8640    ;;
8641esac
8642
8643#
8644# Check to make sure the static flag actually works.
8645#
8646wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8647echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8648echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8649if test "${lt_prog_compiler_static_works+set}" = set; then
8650  echo $ECHO_N "(cached) $ECHO_C" >&6
8651else
8652  lt_prog_compiler_static_works=no
8653   save_LDFLAGS="$LDFLAGS"
8654   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8655   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8656   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8657     # The linker can only warn and ignore the option if not recognized
8658     # So say no if there are warnings
8659     if test -s conftest.err; then
8660       # Append any errors to the config.log.
8661       cat conftest.err 1>&5
8662       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8663       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8664       if diff conftest.exp conftest.er2 >/dev/null; then
8665         lt_prog_compiler_static_works=yes
8666       fi
8667     else
8668       lt_prog_compiler_static_works=yes
8669     fi
8670   fi
8671   $rm conftest*
8672   LDFLAGS="$save_LDFLAGS"
8673
8674fi
8675echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8676echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8677
8678if test x"$lt_prog_compiler_static_works" = xyes; then
8679    :
8680else
8681    lt_prog_compiler_static=
8682fi
8683
8684
8685echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8686echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8687if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8688  echo $ECHO_N "(cached) $ECHO_C" >&6
8689else
8690  lt_cv_prog_compiler_c_o=no
8691   $rm -r conftest 2>/dev/null
8692   mkdir conftest
8693   cd conftest
8694   mkdir out
8695   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8696
8697   lt_compiler_flag="-o out/conftest2.$ac_objext"
8698   # Insert the option either (1) after the last *FLAGS variable, or
8699   # (2) before a word containing "conftest.", or (3) at the end.
8700   # Note that $ac_compile itself does not contain backslashes and begins
8701   # with a dollar sign (not a hyphen), so the echo should work correctly.
8702   lt_compile=`echo "$ac_compile" | $SED \
8703   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8704   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8705   -e 's:$: $lt_compiler_flag:'`
8706   (eval echo "\"\$as_me:8706: $lt_compile\"" >&5)
8707   (eval "$lt_compile" 2>out/conftest.err)
8708   ac_status=$?
8709   cat out/conftest.err >&5
8710   echo "$as_me:8710: \$? = $ac_status" >&5
8711   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8712   then
8713     # The compiler can only warn and ignore the option if not recognized
8714     # So say no if there are warnings
8715     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8716     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8717     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8718       lt_cv_prog_compiler_c_o=yes
8719     fi
8720   fi
8721   chmod u+w . 2>&5
8722   $rm conftest*
8723   # SGI C++ compiler will create directory out/ii_files/ for
8724   # template instantiation
8725   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8726   $rm out/* && rmdir out
8727   cd ..
8728   rmdir conftest
8729   $rm conftest*
8730
8731fi
8732echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8733echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8734
8735
8736hard_links="nottested"
8737if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8738  # do not overwrite the value of need_locks provided by the user
8739  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8740echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8741  hard_links=yes
8742  $rm conftest*
8743  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8744  touch conftest.a
8745  ln conftest.a conftest.b 2>&5 || hard_links=no
8746  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8747  echo "$as_me:$LINENO: result: $hard_links" >&5
8748echo "${ECHO_T}$hard_links" >&6
8749  if test "$hard_links" = no; then
8750    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8751echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8752    need_locks=warn
8753  fi
8754else
8755  need_locks=no
8756fi
8757
8758echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8759echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8760
8761  runpath_var=
8762  allow_undefined_flag=
8763  enable_shared_with_static_runtimes=no
8764  archive_cmds=
8765  archive_expsym_cmds=
8766  old_archive_From_new_cmds=
8767  old_archive_from_expsyms_cmds=
8768  export_dynamic_flag_spec=
8769  whole_archive_flag_spec=
8770  thread_safe_flag_spec=
8771  hardcode_libdir_flag_spec=
8772  hardcode_libdir_flag_spec_ld=
8773  hardcode_libdir_separator=
8774  hardcode_direct=no
8775  hardcode_minus_L=no
8776  hardcode_shlibpath_var=unsupported
8777  link_all_deplibs=unknown
8778  hardcode_automatic=no
8779  module_cmds=
8780  module_expsym_cmds=
8781  always_export_symbols=no
8782  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8783  # include_expsyms should be a list of space-separated symbols to be *always*
8784  # included in the symbol list
8785  include_expsyms=
8786  # exclude_expsyms can be an extended regexp of symbols to exclude
8787  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8788  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8789  # as well as any symbol that contains `d'.
8790  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8791  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8792  # platforms (ab)use it in PIC code, but their linkers get confused if
8793  # the symbol is explicitly referenced.  Since portable code cannot
8794  # rely on this symbol name, it's probably fine to never include it in
8795  # preloaded symbol tables.
8796  extract_expsyms_cmds=
8797  # Just being paranoid about ensuring that cc_basename is set.
8798  for cc_temp in $compiler""; do
8799  case $cc_temp in
8800    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8801    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8802    \-*) ;;
8803    *) break;;
8804  esac
8805done
8806cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8807
8808  case $host_os in
8809  cygwin* | mingw* | pw32*)
8810    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8811    # When not using gcc, we currently assume that we are using
8812    # Microsoft Visual C++.
8813    if test "$GCC" != yes; then
8814      with_gnu_ld=no
8815    fi
8816    ;;
8817  interix*)
8818    # we just hope/assume this is gcc and not c89 (= MSVC++)
8819    with_gnu_ld=yes
8820    ;;
8821  openbsd*)
8822    with_gnu_ld=no
8823    ;;
8824  esac
8825
8826  ld_shlibs=yes
8827  if test "$with_gnu_ld" = yes; then
8828    # If archive_cmds runs LD, not CC, wlarc should be empty
8829    wlarc='${wl}'
8830
8831    # Set some defaults for GNU ld with shared library support. These
8832    # are reset later if shared libraries are not supported. Putting them
8833    # here allows them to be overridden if necessary.
8834    runpath_var=LD_RUN_PATH
8835    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8836    export_dynamic_flag_spec='${wl}--export-dynamic'
8837    # ancient GNU ld didn't support --whole-archive et. al.
8838    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8839        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8840      else
8841        whole_archive_flag_spec=
8842    fi
8843    supports_anon_versioning=no
8844    case `$LD -v 2>/dev/null` in
8845      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8846      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8847      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8848      *\ 2.11.*) ;; # other 2.11 versions
8849      *) supports_anon_versioning=yes ;;
8850    esac
8851
8852    # See if GNU ld supports shared libraries.
8853    case $host_os in
8854    aix3* | aix4* | aix5*)
8855      # On AIX/PPC, the GNU linker is very broken
8856      if test "$host_cpu" != ia64; then
8857        ld_shlibs=no
8858        cat <<EOF 1>&2
8859
8860*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8861*** to be unable to reliably create shared libraries on AIX.
8862*** Therefore, libtool is disabling shared libraries support.  If you
8863*** really care for shared libraries, you may want to modify your PATH
8864*** so that a non-GNU linker is found, and then restart.
8865
8866EOF
8867      fi
8868      ;;
8869
8870    amigaos*)
8871      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)'
8872      hardcode_libdir_flag_spec='-L$libdir'
8873      hardcode_minus_L=yes
8874
8875      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8876      # that the semantics of dynamic libraries on AmigaOS, at least up
8877      # to version 4, is to share data among multiple programs linked
8878      # with the same dynamic library.  Since this doesn't match the
8879      # behavior of shared libraries on other platforms, we can't use
8880      # them.
8881      ld_shlibs=no
8882      ;;
8883
8884    beos*)
8885      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8886        allow_undefined_flag=unsupported
8887        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8888        # support --undefined.  This deserves some investigation.  FIXME
8889        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8890      else
8891        ld_shlibs=no
8892      fi
8893      ;;
8894
8895    cygwin* | mingw* | pw32*)
8896      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8897      # as there is no search path for DLLs.
8898      hardcode_libdir_flag_spec='-L$libdir'
8899      allow_undefined_flag=unsupported
8900      always_export_symbols=no
8901      enable_shared_with_static_runtimes=yes
8902      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8903
8904      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8905        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8906        # If the export-symbols file already is a .def file (1st line
8907        # is EXPORTS), use it as is; otherwise, prepend...
8908        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8909          cp $export_symbols $output_objdir/$soname.def;
8910        else
8911          echo EXPORTS > $output_objdir/$soname.def;
8912          cat $export_symbols >> $output_objdir/$soname.def;
8913        fi~
8914        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8915      else
8916        ld_shlibs=no
8917      fi
8918      ;;
8919
8920    interix3*)
8921      hardcode_direct=no
8922      hardcode_shlibpath_var=no
8923      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8924      export_dynamic_flag_spec='${wl}-E'
8925      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8926      # Instead, shared libraries are loaded at an image base (0x10000000 by
8927      # default) and relocated if they conflict, which is a slow very memory
8928      # consuming and fragmenting process.  To avoid this, we pick a random,
8929      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8930      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8931      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8932      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'
8933      ;;
8934
8935    linux*)
8936      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8937        tmp_addflag=
8938        case $cc_basename,$host_cpu in
8939        pgcc*)                          # Portland Group C compiler
8940          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'
8941          tmp_addflag=' $pic_flag'
8942          ;;
8943        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8944          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'
8945          tmp_addflag=' $pic_flag -Mnomain' ;;
8946        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8947          tmp_addflag=' -i_dynamic' ;;
8948        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8949          tmp_addflag=' -i_dynamic -nofor_main' ;;
8950        ifc* | ifort*)                  # Intel Fortran compiler
8951          tmp_addflag=' -nofor_main' ;;
8952        esac
8953        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8954
8955        if test $supports_anon_versioning = yes; then
8956          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8957  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8958  $echo "local: *; };" >> $output_objdir/$libname.ver~
8959          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8960        fi
8961      else
8962        ld_shlibs=no
8963      fi
8964      ;;
8965
8966    netbsd*)
8967      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8968        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8969        wlarc=
8970      else
8971        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8972        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8973      fi
8974      ;;
8975
8976    solaris*)
8977      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8978        ld_shlibs=no
8979        cat <<EOF 1>&2
8980
8981*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8982*** create shared libraries on Solaris systems.  Therefore, libtool
8983*** is disabling shared libraries support.  We urge you to upgrade GNU
8984*** binutils to release 2.9.1 or newer.  Another option is to modify
8985*** your PATH or compiler configuration so that the native linker is
8986*** used, and then restart.
8987
8988EOF
8989      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8990        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8991        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8992      else
8993        ld_shlibs=no
8994      fi
8995      ;;
8996
8997    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8998      case `$LD -v 2>&1` in
8999        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9000        ld_shlibs=no
9001        cat <<_LT_EOF 1>&2
9002
9003*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9004*** reliably create shared libraries on SCO systems.  Therefore, libtool
9005*** is disabling shared libraries support.  We urge you to upgrade GNU
9006*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9007*** your PATH or compiler configuration so that the native linker is
9008*** used, and then restart.
9009
9010_LT_EOF
9011        ;;
9012        *)
9013          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9014            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9015            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9016            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9017          else
9018            ld_shlibs=no
9019          fi
9020        ;;
9021      esac
9022      ;;
9023
9024    sunos4*)
9025      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9026      wlarc=
9027      hardcode_direct=yes
9028      hardcode_shlibpath_var=no
9029      ;;
9030
9031    *)
9032      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9033        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9035      else
9036        ld_shlibs=no
9037      fi
9038      ;;
9039    esac
9040
9041    if test "$ld_shlibs" = no; then
9042      runpath_var=
9043      hardcode_libdir_flag_spec=
9044      export_dynamic_flag_spec=
9045      whole_archive_flag_spec=
9046    fi
9047  else
9048    # PORTME fill in a description of your system's linker (not GNU ld)
9049    case $host_os in
9050    aix3*)
9051      allow_undefined_flag=unsupported
9052      always_export_symbols=yes
9053      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'
9054      # Note: this linker hardcodes the directories in LIBPATH if there
9055      # are no directories specified by -L.
9056      hardcode_minus_L=yes
9057      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9058        # Neither direct hardcoding nor static linking is supported with a
9059        # broken collect2.
9060        hardcode_direct=unsupported
9061      fi
9062      ;;
9063
9064    aix4* | aix5*)
9065      if test "$host_cpu" = ia64; then
9066        # On IA64, the linker does run time linking by default, so we don't
9067        # have to do anything special.
9068        aix_use_runtimelinking=no
9069        exp_sym_flag='-Bexport'
9070        no_entry_flag=""
9071      else
9072        # If we're using GNU nm, then we don't want the "-C" option.
9073        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9074        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9075          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'
9076        else
9077          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'
9078        fi
9079        aix_use_runtimelinking=no
9080
9081        # Test if we are trying to use run time linking or normal
9082        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9083        # need to do runtime linking.
9084        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9085          for ld_flag in $LDFLAGS; do
9086          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9087            aix_use_runtimelinking=yes
9088            break
9089          fi
9090          done
9091          ;;
9092        esac
9093
9094        exp_sym_flag='-bexport'
9095        no_entry_flag='-bnoentry'
9096      fi
9097
9098      # When large executables or shared objects are built, AIX ld can
9099      # have problems creating the table of contents.  If linking a library
9100      # or program results in "error TOC overflow" add -mminimal-toc to
9101      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9102      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9103
9104      archive_cmds=''
9105      hardcode_direct=yes
9106      hardcode_libdir_separator=':'
9107      link_all_deplibs=yes
9108
9109      if test "$GCC" = yes; then
9110        case $host_os in aix4.[012]|aix4.[012].*)
9111        # We only want to do this on AIX 4.2 and lower, the check
9112        # below for broken collect2 doesn't work under 4.3+
9113          collect2name=`${CC} -print-prog-name=collect2`
9114          if test -f "$collect2name" && \
9115           strings "$collect2name" | grep resolve_lib_name >/dev/null
9116          then
9117          # We have reworked collect2
9118          hardcode_direct=yes
9119          else
9120          # We have old collect2
9121          hardcode_direct=unsupported
9122          # It fails to find uninstalled libraries when the uninstalled
9123          # path is not listed in the libpath.  Setting hardcode_minus_L
9124          # to unsupported forces relinking
9125          hardcode_minus_L=yes
9126          hardcode_libdir_flag_spec='-L$libdir'
9127          hardcode_libdir_separator=
9128          fi
9129          ;;
9130        esac
9131        shared_flag='-shared'
9132        if test "$aix_use_runtimelinking" = yes; then
9133          shared_flag="$shared_flag "'${wl}-G'
9134        fi
9135      else
9136        # not using gcc
9137        if test "$host_cpu" = ia64; then
9138        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9139        # chokes on -Wl,-G. The following line is correct:
9140          shared_flag='-G'
9141        else
9142          if test "$aix_use_runtimelinking" = yes; then
9143            shared_flag='${wl}-G'
9144          else
9145            shared_flag='${wl}-bM:SRE'
9146          fi
9147        fi
9148      fi
9149
9150      # It seems that -bexpall does not export symbols beginning with
9151      # underscore (_), so it is better to generate a list of symbols to export.
9152      always_export_symbols=yes
9153      if test "$aix_use_runtimelinking" = yes; then
9154        # Warning - without using the other runtime loading flags (-brtl),
9155        # -berok will link without error, but may produce a broken library.
9156        allow_undefined_flag='-berok'
9157       # Determine the default libpath from the value encoded in an empty executable.
9158       cat >conftest.$ac_ext <<_ACEOF
9159/* confdefs.h.  */
9160_ACEOF
9161cat confdefs.h >>conftest.$ac_ext
9162cat >>conftest.$ac_ext <<_ACEOF
9163/* end confdefs.h.  */
9164
9165int
9166main ()
9167{
9168
9169  ;
9170  return 0;
9171}
9172_ACEOF
9173rm -f conftest.$ac_objext conftest$ac_exeext
9174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175  (eval $ac_link) 2>conftest.er1
9176  ac_status=$?
9177  grep -v '^ *+' conftest.er1 >conftest.err
9178  rm -f conftest.er1
9179  cat conftest.err >&5
9180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181  (exit $ac_status); } &&
9182         { ac_try='test -z "$ac_c_werror_flag"
9183                         || test ! -s conftest.err'
9184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185  (eval $ac_try) 2>&5
9186  ac_status=$?
9187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188  (exit $ac_status); }; } &&
9189         { ac_try='test -s conftest$ac_exeext'
9190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191  (eval $ac_try) 2>&5
9192  ac_status=$?
9193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194  (exit $ac_status); }; }; then
9195
9196aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9197}'`
9198# Check for a 64-bit object if we didn't find anything.
9199if 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; }
9200}'`; fi
9201else
9202  echo "$as_me: failed program was:" >&5
9203sed 's/^/| /' conftest.$ac_ext >&5
9204
9205fi
9206rm -f conftest.err conftest.$ac_objext \
9207      conftest$ac_exeext conftest.$ac_ext
9208if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9209
9210       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9211        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"
9212       else
9213        if test "$host_cpu" = ia64; then
9214          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9215          allow_undefined_flag="-z nodefs"
9216          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"
9217        else
9218         # Determine the default libpath from the value encoded in an empty executable.
9219         cat >conftest.$ac_ext <<_ACEOF
9220/* confdefs.h.  */
9221_ACEOF
9222cat confdefs.h >>conftest.$ac_ext
9223cat >>conftest.$ac_ext <<_ACEOF
9224/* end confdefs.h.  */
9225
9226int
9227main ()
9228{
9229
9230  ;
9231  return 0;
9232}
9233_ACEOF
9234rm -f conftest.$ac_objext conftest$ac_exeext
9235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236  (eval $ac_link) 2>conftest.er1
9237  ac_status=$?
9238  grep -v '^ *+' conftest.er1 >conftest.err
9239  rm -f conftest.er1
9240  cat conftest.err >&5
9241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242  (exit $ac_status); } &&
9243         { ac_try='test -z "$ac_c_werror_flag"
9244                         || test ! -s conftest.err'
9245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9246  (eval $ac_try) 2>&5
9247  ac_status=$?
9248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249  (exit $ac_status); }; } &&
9250         { ac_try='test -s conftest$ac_exeext'
9251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9252  (eval $ac_try) 2>&5
9253  ac_status=$?
9254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255  (exit $ac_status); }; }; then
9256
9257aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9258}'`
9259# Check for a 64-bit object if we didn't find anything.
9260if 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; }
9261}'`; fi
9262else
9263  echo "$as_me: failed program was:" >&5
9264sed 's/^/| /' conftest.$ac_ext >&5
9265
9266fi
9267rm -f conftest.err conftest.$ac_objext \
9268      conftest$ac_exeext conftest.$ac_ext
9269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9270
9271         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9272          # Warning - without using the other run time loading flags,
9273          # -berok will link without error, but may produce a broken library.
9274          no_undefined_flag=' ${wl}-bernotok'
9275          allow_undefined_flag=' ${wl}-berok'
9276          # Exported symbols can be pulled into shared objects from archives
9277          whole_archive_flag_spec='$convenience'
9278          archive_cmds_need_lc=yes
9279          # This is similar to how AIX traditionally builds its shared libraries.
9280          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'
9281        fi
9282      fi
9283      ;;
9284
9285    amigaos*)
9286      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)'
9287      hardcode_libdir_flag_spec='-L$libdir'
9288      hardcode_minus_L=yes
9289      # see comment about different semantics on the GNU ld section
9290      ld_shlibs=no
9291      ;;
9292
9293    bsdi[45]*)
9294      export_dynamic_flag_spec=-rdynamic
9295      ;;
9296
9297    cygwin* | mingw* | pw32*)
9298      # When not using gcc, we currently assume that we are using
9299      # Microsoft Visual C++.
9300      # hardcode_libdir_flag_spec is actually meaningless, as there is
9301      # no search path for DLLs.
9302      hardcode_libdir_flag_spec=' '
9303      allow_undefined_flag=unsupported
9304      # Tell ltmain to make .lib files, not .a files.
9305      libext=lib
9306      # Tell ltmain to make .dll files, not .so files.
9307      shrext_cmds=".dll"
9308      # FIXME: Setting linknames here is a bad hack.
9309      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9310      # The linker will automatically build a .lib file if we build a DLL.
9311      old_archive_From_new_cmds='true'
9312      # FIXME: Should let the user specify the lib program.
9313      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9314      fix_srcfile_path='`cygpath -w "$srcfile"`'
9315      enable_shared_with_static_runtimes=yes
9316      ;;
9317
9318    darwin* | rhapsody*)
9319      case $host_os in
9320        rhapsody* | darwin1.[012])
9321         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9322         ;;
9323       *) # Darwin 1.3 on
9324         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9325           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9326         else
9327           case ${MACOSX_DEPLOYMENT_TARGET} in
9328             10.[012])
9329               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9330               ;;
9331             10.*)
9332               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9333               ;;
9334           esac
9335         fi
9336         ;;
9337      esac
9338      archive_cmds_need_lc=no
9339      hardcode_direct=no
9340      hardcode_automatic=yes
9341      hardcode_shlibpath_var=unsupported
9342      whole_archive_flag_spec=''
9343      link_all_deplibs=yes
9344    if test "$GCC" = yes ; then
9345        output_verbose_link_cmd='echo'
9346        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9347      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9348      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9349      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}'
9350      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}'
9351    else
9352      case $cc_basename in
9353        xlc*)
9354         output_verbose_link_cmd='echo'
9355         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9356         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9357          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9358         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}'
9359          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}'
9360          ;;
9361       *)
9362         ld_shlibs=no
9363          ;;
9364      esac
9365    fi
9366      ;;
9367
9368    dgux*)
9369      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370      hardcode_libdir_flag_spec='-L$libdir'
9371      hardcode_shlibpath_var=no
9372      ;;
9373
9374    freebsd1*)
9375      ld_shlibs=no
9376      ;;
9377
9378    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9379    # support.  Future versions do this automatically, but an explicit c++rt0.o
9380    # does not break anything, and helps significantly (at the cost of a little
9381    # extra space).
9382    freebsd2.2*)
9383      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9384      hardcode_libdir_flag_spec='-R$libdir'
9385      hardcode_direct=yes
9386      hardcode_shlibpath_var=no
9387      ;;
9388
9389    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9390    freebsd2*)
9391      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9392      hardcode_direct=yes
9393      hardcode_minus_L=yes
9394      hardcode_shlibpath_var=no
9395      ;;
9396
9397    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9398    freebsd* | kfreebsd*-gnu | dragonfly*)
9399      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9400      hardcode_libdir_flag_spec='-R$libdir'
9401      hardcode_direct=yes
9402      hardcode_shlibpath_var=no
9403      ;;
9404
9405    hpux9*)
9406      if test "$GCC" = yes; then
9407        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'
9408      else
9409        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'
9410      fi
9411      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9412      hardcode_libdir_separator=:
9413      hardcode_direct=yes
9414
9415      # hardcode_minus_L: Not really in the search PATH,
9416      # but as the default location of the library.
9417      hardcode_minus_L=yes
9418      export_dynamic_flag_spec='${wl}-E'
9419      ;;
9420
9421    hpux10*)
9422      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9423        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9424      else
9425        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9426      fi
9427      if test "$with_gnu_ld" = no; then
9428        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9429        hardcode_libdir_separator=:
9430
9431        hardcode_direct=yes
9432        export_dynamic_flag_spec='${wl}-E'
9433
9434        # hardcode_minus_L: Not really in the search PATH,
9435        # but as the default location of the library.
9436        hardcode_minus_L=yes
9437      fi
9438      ;;
9439
9440    hpux11*)
9441      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9442        case $host_cpu in
9443        hppa*64*)
9444          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9445          ;;
9446        ia64*)
9447          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9448          ;;
9449        *)
9450          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9451          ;;
9452        esac
9453      else
9454        case $host_cpu in
9455        hppa*64*)
9456          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9457          ;;
9458        ia64*)
9459          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9460          ;;
9461        *)
9462          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9463          ;;
9464        esac
9465      fi
9466      if test "$with_gnu_ld" = no; then
9467        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9468        hardcode_libdir_separator=:
9469
9470        case $host_cpu in
9471        hppa*64*|ia64*)
9472          hardcode_libdir_flag_spec_ld='+b $libdir'
9473          hardcode_direct=no
9474          hardcode_shlibpath_var=no
9475          ;;
9476        *)
9477          hardcode_direct=yes
9478          export_dynamic_flag_spec='${wl}-E'
9479
9480          # hardcode_minus_L: Not really in the search PATH,
9481          # but as the default location of the library.
9482          hardcode_minus_L=yes
9483          ;;
9484        esac
9485      fi
9486      ;;
9487
9488    irix5* | irix6* | nonstopux*)
9489      if test "$GCC" = yes; then
9490        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'
9491      else
9492        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'
9493        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9494      fi
9495      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496      hardcode_libdir_separator=:
9497      link_all_deplibs=yes
9498      ;;
9499
9500    netbsd*)
9501      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9502        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9503      else
9504        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9505      fi
9506      hardcode_libdir_flag_spec='-R$libdir'
9507      hardcode_direct=yes
9508      hardcode_shlibpath_var=no
9509      ;;
9510
9511    newsos6)
9512      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513      hardcode_direct=yes
9514      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9515      hardcode_libdir_separator=:
9516      hardcode_shlibpath_var=no
9517      ;;
9518
9519    openbsd*)
9520      hardcode_direct=yes
9521      hardcode_shlibpath_var=no
9522      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9523        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9524        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9525        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9526        export_dynamic_flag_spec='${wl}-E'
9527      else
9528       case $host_os in
9529         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9530           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9531           hardcode_libdir_flag_spec='-R$libdir'
9532           ;;
9533         *)
9534           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9535           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9536           ;;
9537       esac
9538      fi
9539      ;;
9540
9541    os2*)
9542      hardcode_libdir_flag_spec='-L$libdir'
9543      hardcode_minus_L=yes
9544      allow_undefined_flag=unsupported
9545      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'
9546      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9547      ;;
9548
9549    osf3*)
9550      if test "$GCC" = yes; then
9551        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9552        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'
9553      else
9554        allow_undefined_flag=' -expect_unresolved \*'
9555        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'
9556      fi
9557      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558      hardcode_libdir_separator=:
9559      ;;
9560
9561    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9562      if test "$GCC" = yes; then
9563        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9564        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'
9565        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9566      else
9567        allow_undefined_flag=' -expect_unresolved \*'
9568        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'
9569        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9570        $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'
9571
9572        # Both c and cxx compiler support -rpath directly
9573        hardcode_libdir_flag_spec='-rpath $libdir'
9574      fi
9575      hardcode_libdir_separator=:
9576      ;;
9577
9578    solaris*)
9579      no_undefined_flag=' -z text'
9580      if test "$GCC" = yes; then
9581        wlarc='${wl}'
9582        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9583        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9584          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9585      else
9586        wlarc=''
9587        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9588        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9589        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9590      fi
9591      hardcode_libdir_flag_spec='-R$libdir'
9592      hardcode_shlibpath_var=no
9593      case $host_os in
9594      solaris2.[0-5] | solaris2.[0-5].*) ;;
9595      *)
9596        # The compiler driver will combine linker options so we
9597        # cannot just pass the convience library names through
9598        # without $wl, iff we do not link with $LD.
9599        # Luckily, gcc supports the same syntax we need for Sun Studio.
9600        # Supported since Solaris 2.6 (maybe 2.5.1?)
9601        case $wlarc in
9602        '')
9603          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9604        *)
9605          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' ;;
9606        esac ;;
9607      esac
9608      link_all_deplibs=yes
9609      ;;
9610
9611    sunos4*)
9612      if test "x$host_vendor" = xsequent; then
9613        # Use $CC to link under sequent, because it throws in some extra .o
9614        # files that make .init and .fini sections work.
9615        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9616      else
9617        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9618      fi
9619      hardcode_libdir_flag_spec='-L$libdir'
9620      hardcode_direct=yes
9621      hardcode_minus_L=yes
9622      hardcode_shlibpath_var=no
9623      ;;
9624
9625    sysv4)
9626      case $host_vendor in
9627        sni)
9628          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9629          hardcode_direct=yes # is this really true???
9630        ;;
9631        siemens)
9632          ## LD is ld it makes a PLAMLIB
9633          ## CC just makes a GrossModule.
9634          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9635          reload_cmds='$CC -r -o $output$reload_objs'
9636          hardcode_direct=no
9637        ;;
9638        motorola)
9639          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9640          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9641        ;;
9642      esac
9643      runpath_var='LD_RUN_PATH'
9644      hardcode_shlibpath_var=no
9645      ;;
9646
9647    sysv4.3*)
9648      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649      hardcode_shlibpath_var=no
9650      export_dynamic_flag_spec='-Bexport'
9651      ;;
9652
9653    sysv4*MP*)
9654      if test -d /usr/nec; then
9655        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9656        hardcode_shlibpath_var=no
9657        runpath_var=LD_RUN_PATH
9658        hardcode_runpath_var=yes
9659        ld_shlibs=yes
9660      fi
9661      ;;
9662
9663    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9664      no_undefined_flag='${wl}-z,text'
9665      archive_cmds_need_lc=no
9666      hardcode_shlibpath_var=no
9667      runpath_var='LD_RUN_PATH'
9668
9669      if test "$GCC" = yes; then
9670        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9672      else
9673        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9674        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675      fi
9676      ;;
9677
9678    sysv5* | sco3.2v5* | sco5v6*)
9679      # Note: We can NOT use -z defs as we might desire, because we do not
9680      # link with -lc, and that would cause any symbols used from libc to
9681      # always be unresolved, which means just about no library would
9682      # ever link correctly.  If we're not using GNU ld we use -z text
9683      # though, which does catch some bad symbols but isn't as heavy-handed
9684      # as -z defs.
9685      no_undefined_flag='${wl}-z,text'
9686      allow_undefined_flag='${wl}-z,nodefs'
9687      archive_cmds_need_lc=no
9688      hardcode_shlibpath_var=no
9689      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9690      hardcode_libdir_separator=':'
9691      link_all_deplibs=yes
9692      export_dynamic_flag_spec='${wl}-Bexport'
9693      runpath_var='LD_RUN_PATH'
9694
9695      if test "$GCC" = yes; then
9696        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9697        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9698      else
9699        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9700        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9701      fi
9702      ;;
9703
9704    uts4*)
9705      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706      hardcode_libdir_flag_spec='-L$libdir'
9707      hardcode_shlibpath_var=no
9708      ;;
9709
9710    *)
9711      ld_shlibs=no
9712      ;;
9713    esac
9714  fi
9715
9716echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9717echo "${ECHO_T}$ld_shlibs" >&6
9718test "$ld_shlibs" = no && can_build_shared=no
9719
9720#
9721# Do we need to explicitly link libc?
9722#
9723case "x$archive_cmds_need_lc" in
9724x|xyes)
9725  # Assume -lc should be added
9726  archive_cmds_need_lc=yes
9727
9728  if test "$enable_shared" = yes && test "$GCC" = yes; then
9729    case $archive_cmds in
9730    *'~'*)
9731      # FIXME: we may have to deal with multi-command sequences.
9732      ;;
9733    '$CC '*)
9734      # Test whether the compiler implicitly links with -lc since on some
9735      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9736      # to ld, don't add -lc before -lgcc.
9737      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9738echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9739      $rm conftest*
9740      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9741
9742      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743  (eval $ac_compile) 2>&5
9744  ac_status=$?
9745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746  (exit $ac_status); } 2>conftest.err; then
9747        soname=conftest
9748        lib=conftest
9749        libobjs=conftest.$ac_objext
9750        deplibs=
9751        wl=$lt_prog_compiler_wl
9752        pic_flag=$lt_prog_compiler_pic
9753        compiler_flags=-v
9754        linker_flags=-v
9755        verstring=
9756        output_objdir=.
9757        libname=conftest
9758        lt_save_allow_undefined_flag=$allow_undefined_flag
9759        allow_undefined_flag=
9760        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9761  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9762  ac_status=$?
9763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764  (exit $ac_status); }
9765        then
9766          archive_cmds_need_lc=no
9767        else
9768          archive_cmds_need_lc=yes
9769        fi
9770        allow_undefined_flag=$lt_save_allow_undefined_flag
9771      else
9772        cat conftest.err 1>&5
9773      fi
9774      $rm conftest*
9775      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9776echo "${ECHO_T}$archive_cmds_need_lc" >&6
9777      ;;
9778    esac
9779  fi
9780  ;;
9781esac
9782
9783echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9784echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9785library_names_spec=
9786libname_spec='lib$name'
9787soname_spec=
9788shrext_cmds=".so"
9789postinstall_cmds=
9790postuninstall_cmds=
9791finish_cmds=
9792finish_eval=
9793shlibpath_var=
9794shlibpath_overrides_runpath=unknown
9795version_type=none
9796dynamic_linker="$host_os ld.so"
9797sys_lib_dlsearch_path_spec="/lib /usr/lib"
9798if test "$GCC" = yes; then
9799  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9800  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9801    # if the path contains ";" then we assume it to be the separator
9802    # otherwise default to the standard path separator (i.e. ":") - it is
9803    # assumed that no part of a normal pathname contains ";" but that should
9804    # okay in the real world where ";" in dirpaths is itself problematic.
9805    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9806  else
9807    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9808  fi
9809else
9810  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9811fi
9812need_lib_prefix=unknown
9813hardcode_into_libs=no
9814
9815# when you set need_version to no, make sure it does not cause -set_version
9816# flags to be left without arguments
9817need_version=unknown
9818
9819case $host_os in
9820aix3*)
9821  version_type=linux
9822  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9823  shlibpath_var=LIBPATH
9824
9825  # AIX 3 has no versioning support, so we append a major version to the name.
9826  soname_spec='${libname}${release}${shared_ext}$major'
9827  ;;
9828
9829aix4* | aix5*)
9830  version_type=linux
9831  need_lib_prefix=no
9832  need_version=no
9833  hardcode_into_libs=yes
9834  if test "$host_cpu" = ia64; then
9835    # AIX 5 supports IA64
9836    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9837    shlibpath_var=LD_LIBRARY_PATH
9838  else
9839    # With GCC up to 2.95.x, collect2 would create an import file
9840    # for dependence libraries.  The import file would start with
9841    # the line `#! .'.  This would cause the generated library to
9842    # depend on `.', always an invalid library.  This was fixed in
9843    # development snapshots of GCC prior to 3.0.
9844    case $host_os in
9845      aix4 | aix4.[01] | aix4.[01].*)
9846      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9847           echo ' yes '
9848           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9849        :
9850      else
9851        can_build_shared=no
9852      fi
9853      ;;
9854    esac
9855    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9856    # soname into executable. Probably we can add versioning support to
9857    # collect2, so additional links can be useful in future.
9858    if test "$aix_use_runtimelinking" = yes; then
9859      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9860      # instead of lib<name>.a to let people know that these are not
9861      # typical AIX shared libraries.
9862      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9863    else
9864      # We preserve .a as extension for shared libraries through AIX4.2
9865      # and later when we are not doing run time linking.
9866      library_names_spec='${libname}${release}.a $libname.a'
9867      soname_spec='${libname}${release}${shared_ext}$major'
9868    fi
9869    shlibpath_var=LIBPATH
9870  fi
9871  ;;
9872
9873amigaos*)
9874  library_names_spec='$libname.ixlibrary $libname.a'
9875  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9876  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'
9877  ;;
9878
9879beos*)
9880  library_names_spec='${libname}${shared_ext}'
9881  dynamic_linker="$host_os ld.so"
9882  shlibpath_var=LIBRARY_PATH
9883  ;;
9884
9885bsdi[45]*)
9886  version_type=linux
9887  need_version=no
9888  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9889  soname_spec='${libname}${release}${shared_ext}$major'
9890  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9891  shlibpath_var=LD_LIBRARY_PATH
9892  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9893  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9894  # the default ld.so.conf also contains /usr/contrib/lib and
9895  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9896  # libtool to hard-code these into programs
9897  ;;
9898
9899cygwin* | mingw* | pw32*)
9900  version_type=windows
9901  shrext_cmds=".dll"
9902  need_version=no
9903  need_lib_prefix=no
9904
9905  case $GCC,$host_os in
9906  yes,cygwin* | yes,mingw* | yes,pw32*)
9907    library_names_spec='$libname.dll.a'
9908    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9909    postinstall_cmds='base_file=`basename \${file}`~
9910      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9911      dldir=$destdir/`dirname \$dlpath`~
9912      test -d \$dldir || mkdir -p \$dldir~
9913      $install_prog $dir/$dlname \$dldir/$dlname~
9914      chmod a+x \$dldir/$dlname'
9915    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9916      dlpath=$dir/\$dldll~
9917       $rm \$dlpath'
9918    shlibpath_overrides_runpath=yes
9919
9920    case $host_os in
9921    cygwin*)
9922      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9923      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9924      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9925      ;;
9926    mingw*)
9927      # MinGW DLLs use traditional 'lib' prefix
9928      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9929      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9930      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9931        # It is most probably a Windows format PATH printed by
9932        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9933        # path with ; separators, and with drive letters. We can handle the
9934        # drive letters (cygwin fileutils understands them), so leave them,
9935        # especially as we might pass files found there to a mingw objdump,
9936        # which wouldn't understand a cygwinified path. Ahh.
9937        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9938      else
9939        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9940      fi
9941      ;;
9942    pw32*)
9943      # pw32 DLLs use 'pw' prefix rather than 'lib'
9944      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9945      ;;
9946    esac
9947    ;;
9948
9949  *)
9950    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9951    ;;
9952  esac
9953  dynamic_linker='Win32 ld.exe'
9954  # FIXME: first we should search . and the directory the executable is in
9955  shlibpath_var=PATH
9956  ;;
9957
9958darwin* | rhapsody*)
9959  dynamic_linker="$host_os dyld"
9960  version_type=darwin
9961  need_lib_prefix=no
9962  need_version=no
9963  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9964  soname_spec='${libname}${release}${major}$shared_ext'
9965  shlibpath_overrides_runpath=yes
9966  shlibpath_var=DYLD_LIBRARY_PATH
9967  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9968  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9969  if test "$GCC" = yes; then
9970    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"`
9971  else
9972    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9973  fi
9974  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9975  ;;
9976
9977dgux*)
9978  version_type=linux
9979  need_lib_prefix=no
9980  need_version=no
9981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9982  soname_spec='${libname}${release}${shared_ext}$major'
9983  shlibpath_var=LD_LIBRARY_PATH
9984  ;;
9985
9986freebsd1*)
9987  dynamic_linker=no
9988  ;;
9989
9990kfreebsd*-gnu)
9991  version_type=linux
9992  need_lib_prefix=no
9993  need_version=no
9994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9995  soname_spec='${libname}${release}${shared_ext}$major'
9996  shlibpath_var=LD_LIBRARY_PATH
9997  shlibpath_overrides_runpath=no
9998  hardcode_into_libs=yes
9999  dynamic_linker='GNU ld.so'
10000  ;;
10001
10002freebsd* | dragonfly*)
10003  # DragonFly does not have aout.  When/if they implement a new
10004  # versioning mechanism, adjust this.
10005  if test -x /usr/bin/objformat; then
10006    objformat=`/usr/bin/objformat`
10007  else
10008    case $host_os in
10009    freebsd[123]*) objformat=aout ;;
10010    *) objformat=elf ;;
10011    esac
10012  fi
10013  version_type=freebsd-$objformat
10014  case $version_type in
10015    freebsd-elf*)
10016      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10017      need_version=no
10018      need_lib_prefix=no
10019      ;;
10020    freebsd-*)
10021      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10022      need_version=yes
10023      ;;
10024  esac
10025  shlibpath_var=LD_LIBRARY_PATH
10026  case $host_os in
10027  freebsd2*)
10028    shlibpath_overrides_runpath=yes
10029    ;;
10030  freebsd3.[01]* | freebsdelf3.[01]*)
10031    shlibpath_overrides_runpath=yes
10032    hardcode_into_libs=yes
10033    ;;
10034  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10035  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10036    shlibpath_overrides_runpath=no
10037    hardcode_into_libs=yes
10038    ;;
10039  freebsd*) # from 4.6 on
10040    shlibpath_overrides_runpath=yes
10041    hardcode_into_libs=yes
10042    ;;
10043  esac
10044  ;;
10045
10046gnu*)
10047  version_type=linux
10048  need_lib_prefix=no
10049  need_version=no
10050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10051  soname_spec='${libname}${release}${shared_ext}$major'
10052  shlibpath_var=LD_LIBRARY_PATH
10053  hardcode_into_libs=yes
10054  ;;
10055
10056hpux9* | hpux10* | hpux11*)
10057  # Give a soname corresponding to the major version so that dld.sl refuses to
10058  # link against other versions.
10059  version_type=sunos
10060  need_lib_prefix=no
10061  need_version=no
10062  case $host_cpu in
10063  ia64*)
10064    shrext_cmds='.so'
10065    hardcode_into_libs=yes
10066    dynamic_linker="$host_os dld.so"
10067    shlibpath_var=LD_LIBRARY_PATH
10068    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10069    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070    soname_spec='${libname}${release}${shared_ext}$major'
10071    if test "X$HPUX_IA64_MODE" = X32; then
10072      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10073    else
10074      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10075    fi
10076    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10077    ;;
10078   hppa*64*)
10079     shrext_cmds='.sl'
10080     hardcode_into_libs=yes
10081     dynamic_linker="$host_os dld.sl"
10082     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10083     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10087     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10088     ;;
10089   *)
10090    shrext_cmds='.sl'
10091    dynamic_linker="$host_os dld.sl"
10092    shlibpath_var=SHLIB_PATH
10093    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10094    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095    soname_spec='${libname}${release}${shared_ext}$major'
10096    ;;
10097  esac
10098  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10099  postinstall_cmds='chmod 555 $lib'
10100  ;;
10101
10102interix3*)
10103  version_type=linux
10104  need_lib_prefix=no
10105  need_version=no
10106  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10107  soname_spec='${libname}${release}${shared_ext}$major'
10108  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10109  shlibpath_var=LD_LIBRARY_PATH
10110  shlibpath_overrides_runpath=no
10111  hardcode_into_libs=yes
10112  ;;
10113
10114irix5* | irix6* | nonstopux*)
10115  case $host_os in
10116    nonstopux*) version_type=nonstopux ;;
10117    *)
10118        if test "$lt_cv_prog_gnu_ld" = yes; then
10119                version_type=linux
10120        else
10121                version_type=irix
10122        fi ;;
10123  esac
10124  need_lib_prefix=no
10125  need_version=no
10126  soname_spec='${libname}${release}${shared_ext}$major'
10127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10128  case $host_os in
10129  irix5* | nonstopux*)
10130    libsuff= shlibsuff=
10131    ;;
10132  *)
10133    case $LD in # libtool.m4 will add one of these switches to LD
10134    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10135      libsuff= shlibsuff= libmagic=32-bit;;
10136    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10137      libsuff=32 shlibsuff=N32 libmagic=N32;;
10138    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10139      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10140    *) libsuff= shlibsuff= libmagic=never-match;;
10141    esac
10142    ;;
10143  esac
10144  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10145  shlibpath_overrides_runpath=no
10146  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10147  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10148  hardcode_into_libs=yes
10149  ;;
10150
10151# No shared lib support for Linux oldld, aout, or coff.
10152linux*oldld* | linux*aout* | linux*coff*)
10153  dynamic_linker=no
10154  ;;
10155
10156# This must be Linux ELF.
10157linux*)
10158  version_type=linux
10159  need_lib_prefix=no
10160  need_version=no
10161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162  soname_spec='${libname}${release}${shared_ext}$major'
10163  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10164  shlibpath_var=LD_LIBRARY_PATH
10165  shlibpath_overrides_runpath=no
10166  # This implies no fast_install, which is unacceptable.
10167  # Some rework will be needed to allow for fast_install
10168  # before this can be enabled.
10169  hardcode_into_libs=yes
10170
10171  # Append ld.so.conf contents to the search path
10172  if test -f /etc/ld.so.conf; then
10173    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' ' '`
10174    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10175  fi
10176
10177  # We used to test for /lib/ld.so.1 and disable shared libraries on
10178  # powerpc, because MkLinux only supported shared libraries with the
10179  # GNU dynamic linker.  Since this was broken with cross compilers,
10180  # most powerpc-linux boxes support dynamic linking these days and
10181  # people can always --disable-shared, the test was removed, and we
10182  # assume the GNU/Linux dynamic linker is in use.
10183  dynamic_linker='GNU/Linux ld.so'
10184  ;;
10185
10186knetbsd*-gnu)
10187  version_type=linux
10188  need_lib_prefix=no
10189  need_version=no
10190  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10191  soname_spec='${libname}${release}${shared_ext}$major'
10192  shlibpath_var=LD_LIBRARY_PATH
10193  shlibpath_overrides_runpath=no
10194  hardcode_into_libs=yes
10195  dynamic_linker='GNU ld.so'
10196  ;;
10197
10198netbsd*)
10199  version_type=sunos
10200  need_lib_prefix=no
10201  need_version=no
10202  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10203    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10204    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10205    dynamic_linker='NetBSD (a.out) ld.so'
10206  else
10207    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10208    soname_spec='${libname}${release}${shared_ext}$major'
10209    dynamic_linker='NetBSD ld.elf_so'
10210  fi
10211  shlibpath_var=LD_LIBRARY_PATH
10212  shlibpath_overrides_runpath=yes
10213  hardcode_into_libs=yes
10214  ;;
10215
10216newsos6)
10217  version_type=linux
10218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219  shlibpath_var=LD_LIBRARY_PATH
10220  shlibpath_overrides_runpath=yes
10221  ;;
10222
10223nto-qnx*)
10224  version_type=linux
10225  need_lib_prefix=no
10226  need_version=no
10227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10228  soname_spec='${libname}${release}${shared_ext}$major'
10229  shlibpath_var=LD_LIBRARY_PATH
10230  shlibpath_overrides_runpath=yes
10231  ;;
10232
10233openbsd*)
10234  version_type=sunos
10235  sys_lib_dlsearch_path_spec="/usr/lib"
10236  need_lib_prefix=no
10237  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10238  case $host_os in
10239    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10240    *)                         need_version=no  ;;
10241  esac
10242  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10243  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10244  shlibpath_var=LD_LIBRARY_PATH
10245  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10246    case $host_os in
10247      openbsd2.[89] | openbsd2.[89].*)
10248        shlibpath_overrides_runpath=no
10249        ;;
10250      *)
10251        shlibpath_overrides_runpath=yes
10252        ;;
10253      esac
10254  else
10255    shlibpath_overrides_runpath=yes
10256  fi
10257  ;;
10258
10259os2*)
10260  libname_spec='$name'
10261  shrext_cmds=".dll"
10262  need_lib_prefix=no
10263  library_names_spec='$libname${shared_ext} $libname.a'
10264  dynamic_linker='OS/2 ld.exe'
10265  shlibpath_var=LIBPATH
10266  ;;
10267
10268osf3* | osf4* | osf5*)
10269  version_type=osf
10270  need_lib_prefix=no
10271  need_version=no
10272  soname_spec='${libname}${release}${shared_ext}$major'
10273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274  shlibpath_var=LD_LIBRARY_PATH
10275  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10276  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10277  ;;
10278
10279solaris*)
10280  version_type=linux
10281  need_lib_prefix=no
10282  need_version=no
10283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284  soname_spec='${libname}${release}${shared_ext}$major'
10285  shlibpath_var=LD_LIBRARY_PATH
10286  shlibpath_overrides_runpath=yes
10287  hardcode_into_libs=yes
10288  # ldd complains unless libraries are executable
10289  postinstall_cmds='chmod +x $lib'
10290  ;;
10291
10292sunos4*)
10293  version_type=sunos
10294  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10296  shlibpath_var=LD_LIBRARY_PATH
10297  shlibpath_overrides_runpath=yes
10298  if test "$with_gnu_ld" = yes; then
10299    need_lib_prefix=no
10300  fi
10301  need_version=yes
10302  ;;
10303
10304sysv4 | sysv4.3*)
10305  version_type=linux
10306  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307  soname_spec='${libname}${release}${shared_ext}$major'
10308  shlibpath_var=LD_LIBRARY_PATH
10309  case $host_vendor in
10310    sni)
10311      shlibpath_overrides_runpath=no
10312      need_lib_prefix=no
10313      export_dynamic_flag_spec='${wl}-Blargedynsym'
10314      runpath_var=LD_RUN_PATH
10315      ;;
10316    siemens)
10317      need_lib_prefix=no
10318      ;;
10319    motorola)
10320      need_lib_prefix=no
10321      need_version=no
10322      shlibpath_overrides_runpath=no
10323      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10324      ;;
10325  esac
10326  ;;
10327
10328sysv4*MP*)
10329  if test -d /usr/nec ;then
10330    version_type=linux
10331    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10332    soname_spec='$libname${shared_ext}.$major'
10333    shlibpath_var=LD_LIBRARY_PATH
10334  fi
10335  ;;
10336
10337sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10338  version_type=freebsd-elf
10339  need_lib_prefix=no
10340  need_version=no
10341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10342  soname_spec='${libname}${release}${shared_ext}$major'
10343  shlibpath_var=LD_LIBRARY_PATH
10344  hardcode_into_libs=yes
10345  if test "$with_gnu_ld" = yes; then
10346    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10347    shlibpath_overrides_runpath=no
10348  else
10349    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10350    shlibpath_overrides_runpath=yes
10351    case $host_os in
10352      sco3.2v5*)
10353        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10354        ;;
10355    esac
10356  fi
10357  sys_lib_dlsearch_path_spec='/usr/lib'
10358  ;;
10359
10360uts4*)
10361  version_type=linux
10362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363  soname_spec='${libname}${release}${shared_ext}$major'
10364  shlibpath_var=LD_LIBRARY_PATH
10365  ;;
10366
10367*)
10368  dynamic_linker=no
10369  ;;
10370esac
10371echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10372echo "${ECHO_T}$dynamic_linker" >&6
10373test "$dynamic_linker" = no && can_build_shared=no
10374
10375variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10376if test "$GCC" = yes; then
10377  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10378fi
10379
10380echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10381echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10382hardcode_action=
10383if test -n "$hardcode_libdir_flag_spec" || \
10384   test -n "$runpath_var" || \
10385   test "X$hardcode_automatic" = "Xyes" ; then
10386
10387  # We can hardcode non-existant directories.
10388  if test "$hardcode_direct" != no &&
10389     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10390     # have to relink, otherwise we might link with an installed library
10391     # when we should be linking with a yet-to-be-installed one
10392     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10393     test "$hardcode_minus_L" != no; then
10394    # Linking always hardcodes the temporary library directory.
10395    hardcode_action=relink
10396  else
10397    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10398    hardcode_action=immediate
10399  fi
10400else
10401  # We cannot hardcode anything, or else we can only hardcode existing
10402  # directories.
10403  hardcode_action=unsupported
10404fi
10405echo "$as_me:$LINENO: result: $hardcode_action" >&5
10406echo "${ECHO_T}$hardcode_action" >&6
10407
10408if test "$hardcode_action" = relink; then
10409  # Fast installation is not supported
10410  enable_fast_install=no
10411elif test "$shlibpath_overrides_runpath" = yes ||
10412     test "$enable_shared" = no; then
10413  # Fast installation is not necessary
10414  enable_fast_install=needless
10415fi
10416
10417striplib=
10418old_striplib=
10419echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10420echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10421if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10422  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10423  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10424  echo "$as_me:$LINENO: result: yes" >&5
10425echo "${ECHO_T}yes" >&6
10426else
10427# FIXME - insert some real tests, host_os isn't really good enough
10428  case $host_os in
10429   darwin*)
10430       if test -n "$STRIP" ; then
10431         striplib="$STRIP -x"
10432         echo "$as_me:$LINENO: result: yes" >&5
10433echo "${ECHO_T}yes" >&6
10434       else
10435  echo "$as_me:$LINENO: result: no" >&5
10436echo "${ECHO_T}no" >&6
10437fi
10438       ;;
10439   *)
10440  echo "$as_me:$LINENO: result: no" >&5
10441echo "${ECHO_T}no" >&6
10442    ;;
10443  esac
10444fi
10445
10446if test "x$enable_dlopen" != xyes; then
10447  enable_dlopen=unknown
10448  enable_dlopen_self=unknown
10449  enable_dlopen_self_static=unknown
10450else
10451  lt_cv_dlopen=no
10452  lt_cv_dlopen_libs=
10453
10454  case $host_os in
10455  beos*)
10456    lt_cv_dlopen="load_add_on"
10457    lt_cv_dlopen_libs=
10458    lt_cv_dlopen_self=yes
10459    ;;
10460
10461  mingw* | pw32*)
10462    lt_cv_dlopen="LoadLibrary"
10463    lt_cv_dlopen_libs=
10464   ;;
10465
10466  cygwin*)
10467    lt_cv_dlopen="dlopen"
10468    lt_cv_dlopen_libs=
10469   ;;
10470
10471  darwin*)
10472  # if libdl is installed we need to link against it
10473    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10474echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10475if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10476  echo $ECHO_N "(cached) $ECHO_C" >&6
10477else
10478  ac_check_lib_save_LIBS=$LIBS
10479LIBS="-ldl  $LIBS"
10480cat >conftest.$ac_ext <<_ACEOF
10481/* confdefs.h.  */
10482_ACEOF
10483cat confdefs.h >>conftest.$ac_ext
10484cat >>conftest.$ac_ext <<_ACEOF
10485/* end confdefs.h.  */
10486
10487/* Override any gcc2 internal prototype to avoid an error.  */
10488#ifdef __cplusplus
10489extern "C"
10490#endif
10491/* We use char because int might match the return type of a gcc2
10492   builtin and then its argument prototype would still apply.  */
10493char dlopen ();
10494int
10495main ()
10496{
10497dlopen ();
10498  ;
10499  return 0;
10500}
10501_ACEOF
10502rm -f conftest.$ac_objext conftest$ac_exeext
10503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10504  (eval $ac_link) 2>conftest.er1
10505  ac_status=$?
10506  grep -v '^ *+' conftest.er1 >conftest.err
10507  rm -f conftest.er1
10508  cat conftest.err >&5
10509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510  (exit $ac_status); } &&
10511         { ac_try='test -z "$ac_c_werror_flag"
10512                         || test ! -s conftest.err'
10513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514  (eval $ac_try) 2>&5
10515  ac_status=$?
10516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517  (exit $ac_status); }; } &&
10518         { ac_try='test -s conftest$ac_exeext'
10519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520  (eval $ac_try) 2>&5
10521  ac_status=$?
10522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523  (exit $ac_status); }; }; then
10524  ac_cv_lib_dl_dlopen=yes
10525else
10526  echo "$as_me: failed program was:" >&5
10527sed 's/^/| /' conftest.$ac_ext >&5
10528
10529ac_cv_lib_dl_dlopen=no
10530fi
10531rm -f conftest.err conftest.$ac_objext \
10532      conftest$ac_exeext conftest.$ac_ext
10533LIBS=$ac_check_lib_save_LIBS
10534fi
10535echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10536echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10537if test $ac_cv_lib_dl_dlopen = yes; then
10538  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10539else
10540
10541    lt_cv_dlopen="dyld"
10542    lt_cv_dlopen_libs=
10543    lt_cv_dlopen_self=yes
10544
10545fi
10546
10547   ;;
10548
10549  *)
10550    echo "$as_me:$LINENO: checking for shl_load" >&5
10551echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10552if test "${ac_cv_func_shl_load+set}" = set; then
10553  echo $ECHO_N "(cached) $ECHO_C" >&6
10554else
10555  cat >conftest.$ac_ext <<_ACEOF
10556/* confdefs.h.  */
10557_ACEOF
10558cat confdefs.h >>conftest.$ac_ext
10559cat >>conftest.$ac_ext <<_ACEOF
10560/* end confdefs.h.  */
10561/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10562   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10563#define shl_load innocuous_shl_load
10564
10565/* System header to define __stub macros and hopefully few prototypes,
10566    which can conflict with char shl_load (); below.
10567    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10568    <limits.h> exists even on freestanding compilers.  */
10569
10570#ifdef __STDC__
10571# include <limits.h>
10572#else
10573# include <assert.h>
10574#endif
10575
10576#undef shl_load
10577
10578/* Override any gcc2 internal prototype to avoid an error.  */
10579#ifdef __cplusplus
10580extern "C"
10581{
10582#endif
10583/* We use char because int might match the return type of a gcc2
10584   builtin and then its argument prototype would still apply.  */
10585char shl_load ();
10586/* The GNU C library defines this for functions which it implements
10587    to always fail with ENOSYS.  Some functions are actually named
10588    something starting with __ and the normal name is an alias.  */
10589#if defined (__stub_shl_load) || defined (__stub___shl_load)
10590choke me
10591#else
10592char (*f) () = shl_load;
10593#endif
10594#ifdef __cplusplus
10595}
10596#endif
10597
10598int
10599main ()
10600{
10601return f != shl_load;
10602  ;
10603  return 0;
10604}
10605_ACEOF
10606rm -f conftest.$ac_objext conftest$ac_exeext
10607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10608  (eval $ac_link) 2>conftest.er1
10609  ac_status=$?
10610  grep -v '^ *+' conftest.er1 >conftest.err
10611  rm -f conftest.er1
10612  cat conftest.err >&5
10613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614  (exit $ac_status); } &&
10615         { ac_try='test -z "$ac_c_werror_flag"
10616                         || test ! -s conftest.err'
10617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10618  (eval $ac_try) 2>&5
10619  ac_status=$?
10620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621  (exit $ac_status); }; } &&
10622         { ac_try='test -s conftest$ac_exeext'
10623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624  (eval $ac_try) 2>&5
10625  ac_status=$?
10626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627  (exit $ac_status); }; }; then
10628  ac_cv_func_shl_load=yes
10629else
10630  echo "$as_me: failed program was:" >&5
10631sed 's/^/| /' conftest.$ac_ext >&5
10632
10633ac_cv_func_shl_load=no
10634fi
10635rm -f conftest.err conftest.$ac_objext \
10636      conftest$ac_exeext conftest.$ac_ext
10637fi
10638echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10639echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10640if test $ac_cv_func_shl_load = yes; then
10641  lt_cv_dlopen="shl_load"
10642else
10643  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10644echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10645if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10646  echo $ECHO_N "(cached) $ECHO_C" >&6
10647else
10648  ac_check_lib_save_LIBS=$LIBS
10649LIBS="-ldld  $LIBS"
10650cat >conftest.$ac_ext <<_ACEOF
10651/* confdefs.h.  */
10652_ACEOF
10653cat confdefs.h >>conftest.$ac_ext
10654cat >>conftest.$ac_ext <<_ACEOF
10655/* end confdefs.h.  */
10656
10657/* Override any gcc2 internal prototype to avoid an error.  */
10658#ifdef __cplusplus
10659extern "C"
10660#endif
10661/* We use char because int might match the return type of a gcc2
10662   builtin and then its argument prototype would still apply.  */
10663char shl_load ();
10664int
10665main ()
10666{
10667shl_load ();
10668  ;
10669  return 0;
10670}
10671_ACEOF
10672rm -f conftest.$ac_objext conftest$ac_exeext
10673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10674  (eval $ac_link) 2>conftest.er1
10675  ac_status=$?
10676  grep -v '^ *+' conftest.er1 >conftest.err
10677  rm -f conftest.er1
10678  cat conftest.err >&5
10679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680  (exit $ac_status); } &&
10681         { ac_try='test -z "$ac_c_werror_flag"
10682                         || test ! -s conftest.err'
10683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684  (eval $ac_try) 2>&5
10685  ac_status=$?
10686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687  (exit $ac_status); }; } &&
10688         { ac_try='test -s conftest$ac_exeext'
10689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690  (eval $ac_try) 2>&5
10691  ac_status=$?
10692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693  (exit $ac_status); }; }; then
10694  ac_cv_lib_dld_shl_load=yes
10695else
10696  echo "$as_me: failed program was:" >&5
10697sed 's/^/| /' conftest.$ac_ext >&5
10698
10699ac_cv_lib_dld_shl_load=no
10700fi
10701rm -f conftest.err conftest.$ac_objext \
10702      conftest$ac_exeext conftest.$ac_ext
10703LIBS=$ac_check_lib_save_LIBS
10704fi
10705echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10706echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10707if test $ac_cv_lib_dld_shl_load = yes; then
10708  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10709else
10710  echo "$as_me:$LINENO: checking for dlopen" >&5
10711echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10712if test "${ac_cv_func_dlopen+set}" = set; then
10713  echo $ECHO_N "(cached) $ECHO_C" >&6
10714else
10715  cat >conftest.$ac_ext <<_ACEOF
10716/* confdefs.h.  */
10717_ACEOF
10718cat confdefs.h >>conftest.$ac_ext
10719cat >>conftest.$ac_ext <<_ACEOF
10720/* end confdefs.h.  */
10721/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10722   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10723#define dlopen innocuous_dlopen
10724
10725/* System header to define __stub macros and hopefully few prototypes,
10726    which can conflict with char dlopen (); below.
10727    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10728    <limits.h> exists even on freestanding compilers.  */
10729
10730#ifdef __STDC__
10731# include <limits.h>
10732#else
10733# include <assert.h>
10734#endif
10735
10736#undef dlopen
10737
10738/* Override any gcc2 internal prototype to avoid an error.  */
10739#ifdef __cplusplus
10740extern "C"
10741{
10742#endif
10743/* We use char because int might match the return type of a gcc2
10744   builtin and then its argument prototype would still apply.  */
10745char dlopen ();
10746/* The GNU C library defines this for functions which it implements
10747    to always fail with ENOSYS.  Some functions are actually named
10748    something starting with __ and the normal name is an alias.  */
10749#if defined (__stub_dlopen) || defined (__stub___dlopen)
10750choke me
10751#else
10752char (*f) () = dlopen;
10753#endif
10754#ifdef __cplusplus
10755}
10756#endif
10757
10758int
10759main ()
10760{
10761return f != dlopen;
10762  ;
10763  return 0;
10764}
10765_ACEOF
10766rm -f conftest.$ac_objext conftest$ac_exeext
10767