source: ThirdParty/SoPlex/trunk/configure @ 2253

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

rerun autotools

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