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

Last change on this file since 3175 was 3175, checked in by tkr, 8 years ago

restoring BuildTools/ThirdParty/SoPlex?/stable/1.2

  • Property svn:executable set to *
File size: 745.8 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartySoplex 1.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2010,2011 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartySoplex'
431PACKAGE_TARNAME='thirdpartysoplex'
432PACKAGE_VERSION='1.2'
433PACKAGE_STRING='ThirdPartySoplex 1.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="soplex/src/soplex.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SOPLEX_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE SOPLEX_WITH_GMP_CFLAG SOPLEX_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
981ac_env_PKG_CONFIG_value=$PKG_CONFIG
982ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
983ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_F77_set=${F77+set}
993ac_env_F77_value=$F77
994ac_cv_env_F77_set=${F77+set}
995ac_cv_env_F77_value=$F77
996ac_env_FFLAGS_set=${FFLAGS+set}
997ac_env_FFLAGS_value=$FFLAGS
998ac_cv_env_FFLAGS_set=${FFLAGS+set}
999ac_cv_env_FFLAGS_value=$FFLAGS
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartySoplex 1.2 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartySoplex 1.2:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-soplex compile project SoPlex with debug compiler flags
1084
1085  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086  --disable-pkg-config    disable use of pkg-config (if available)
1087  --enable-static[=PKGS]
1088                          build static libraries [default=no]
1089  --disable-dependency-tracking  speeds up one-time build
1090  --enable-dependency-tracking   do not reject slow dependency extractors
1091  --enable-maintainer-mode  enable make rules and dependencies not useful
1092                          (and sometimes confusing) to the casual installer
1093  --enable-shared[=PKGS]
1094                          build shared libraries [default=yes]
1095  --enable-fast-install[=PKGS]
1096                          optimize for fast installation [default=yes]
1097  --disable-libtool-lock  avoid locking (might break parallel builds)
1098  --disable-zlib          do not compile with compression library zlib
1099  --disable-gmp           do not compile with GNU multiple precision library
1100
1101Optional Packages:
1102  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1103  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1104  --with-soplex-verbosity specify the debug verbosity level for project SoPlex
1105  --with-soplex-checklevel
1106                          specify the sanity check level for project SoPlex
1107  --with-coin-instdir     prefix of installation directory for precompiled
1108                          COIN packages
1109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1110  --with-pic              try to use only PIC/non-PIC objects [default=use
1111                          both]
1112  --with-tags[=TAGS]
1113                          include additional configurations [automatic]
1114
1115Some influential environment variables:
1116  CDEFS       Additional -D flags to be used when compiling C code.
1117  ADD_CFLAGS  Additional C compiler options
1118  DBG_CFLAGS  Debug C compiler options
1119  OPT_CFLAGS  Optimize C compiler options
1120  CC          C compiler command
1121  CFLAGS      C compiler flags
1122  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1123              nonstandard directory <lib dir>
1124  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1125              headers in a nonstandard directory <include dir>
1126  MPICC       C MPI Compiler
1127  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1128  ADD_CXXFLAGS
1129              Additional C++ compiler options
1130  DBG_CXXFLAGS
1131              Debug C++ compiler options
1132  OPT_CXXFLAGS
1133              Optimize C++ compiler options
1134  CXX         C++ compiler command
1135  CXXFLAGS    C++ compiler flags
1136  MPICXX      C++ MPI Compiler
1137  PKG_CONFIG  path to pkg-config utility
1138  CPP         C preprocessor
1139  CXXCPP      C++ preprocessor
1140  F77         Fortran 77 compiler command
1141  FFLAGS      Fortran 77 compiler flags
1142
1143Use these variables to override the choices made by `configure' or to help
1144it to find libraries and programs with nonstandard names/locations.
1145
1146Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1147_ACEOF
1148fi
1149
1150if test "$ac_init_help" = "recursive"; then
1151  # If there are subdirs, report their specific --help.
1152  ac_popdir=`pwd`
1153  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1154    test -d $ac_dir || continue
1155    ac_builddir=.
1156
1157if test "$ac_dir" != .; then
1158  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1159  # A "../" for each directory in $ac_dir_suffix.
1160  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1161else
1162  ac_dir_suffix= ac_top_builddir=
1163fi
1164
1165case $srcdir in
1166  .)  # No --srcdir option.  We are building in place.
1167    ac_srcdir=.
1168    if test -z "$ac_top_builddir"; then
1169       ac_top_srcdir=.
1170    else
1171       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1172    fi ;;
1173  [\\/]* | ?:[\\/]* )  # Absolute path.
1174    ac_srcdir=$srcdir$ac_dir_suffix;
1175    ac_top_srcdir=$srcdir ;;
1176  *) # Relative path.
1177    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1178    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1179esac
1180
1181# Do not use `cd foo && pwd` to compute absolute paths, because
1182# the directories may not exist.
1183case `pwd` in
1184.) ac_abs_builddir="$ac_dir";;
1185*)
1186  case "$ac_dir" in
1187  .) ac_abs_builddir=`pwd`;;
1188  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1189  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1190  esac;;
1191esac
1192case $ac_abs_builddir in
1193.) ac_abs_top_builddir=${ac_top_builddir}.;;
1194*)
1195  case ${ac_top_builddir}. in
1196  .) ac_abs_top_builddir=$ac_abs_builddir;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1198  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1199  esac;;
1200esac
1201case $ac_abs_builddir in
1202.) ac_abs_srcdir=$ac_srcdir;;
1203*)
1204  case $ac_srcdir in
1205  .) ac_abs_srcdir=$ac_abs_builddir;;
1206  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1207  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1208  esac;;
1209esac
1210case $ac_abs_builddir in
1211.) ac_abs_top_srcdir=$ac_top_srcdir;;
1212*)
1213  case $ac_top_srcdir in
1214  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1215  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1216  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1217  esac;;
1218esac
1219
1220    cd $ac_dir
1221    # Check for guested configure; otherwise get Cygnus style configure.
1222    if test -f $ac_srcdir/configure.gnu; then
1223      echo
1224      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1225    elif test -f $ac_srcdir/configure; then
1226      echo
1227      $SHELL $ac_srcdir/configure  --help=recursive
1228    elif test -f $ac_srcdir/configure.ac ||
1229           test -f $ac_srcdir/configure.in; then
1230      echo
1231      $ac_configure --help
1232    else
1233      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1234    fi
1235    cd $ac_popdir
1236  done
1237fi
1238
1239test -n "$ac_init_help" && exit 0
1240if $ac_init_version; then
1241  cat <<\_ACEOF
1242ThirdPartySoplex configure 1.2
1243generated by GNU Autoconf 2.59
1244
1245Copyright (C) 2003 Free Software Foundation, Inc.
1246This configure script is free software; the Free Software Foundation
1247gives unlimited permission to copy, distribute and modify it.
1248
1249
1250Copyright 2010,2011 Stefan Vigerske and others.
1251All Rights Reserved.
1252This file is part of the open source package COIN-OR which is distributed
1253under the Eclipse Public License.
1254_ACEOF
1255  exit 0
1256fi
1257exec 5>config.log
1258cat >&5 <<_ACEOF
1259This file contains any messages produced by compilers while
1260running configure, to aid debugging if configure makes a mistake.
1261
1262It was created by ThirdPartySoplex $as_me 1.2, which was
1263generated by GNU Autoconf 2.59.  Invocation command line was
1264
1265  $ $0 $@
1266
1267_ACEOF
1268{
1269cat <<_ASUNAME
1270## --------- ##
1271## Platform. ##
1272## --------- ##
1273
1274hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1275uname -m = `(uname -m) 2>/dev/null || echo unknown`
1276uname -r = `(uname -r) 2>/dev/null || echo unknown`
1277uname -s = `(uname -s) 2>/dev/null || echo unknown`
1278uname -v = `(uname -v) 2>/dev/null || echo unknown`
1279
1280/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1281/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1282
1283/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1284/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1285/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1286hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1287/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1288/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1289/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1290
1291_ASUNAME
1292
1293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1294for as_dir in $PATH
1295do
1296  IFS=$as_save_IFS
1297  test -z "$as_dir" && as_dir=.
1298  echo "PATH: $as_dir"
1299done
1300
1301} >&5
1302
1303cat >&5 <<_ACEOF
1304
1305
1306## ----------- ##
1307## Core tests. ##
1308## ----------- ##
1309
1310_ACEOF
1311
1312
1313# Keep a trace of the command line.
1314# Strip out --no-create and --no-recursion so they do not pile up.
1315# Strip out --silent because we don't want to record it for future runs.
1316# Also quote any args containing shell meta-characters.
1317# Make two passes to allow for proper duplicate-argument suppression.
1318ac_configure_args=
1319ac_configure_args0=
1320ac_configure_args1=
1321ac_sep=
1322ac_must_keep_next=false
1323for ac_pass in 1 2
1324do
1325  for ac_arg
1326  do
1327    case $ac_arg in
1328    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1329    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1330    | -silent | --silent | --silen | --sile | --sil)
1331      continue ;;
1332    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1333      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1334    esac
1335    case $ac_pass in
1336    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1337    2)
1338      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1339      if test $ac_must_keep_next = true; then
1340        ac_must_keep_next=false # Got value, back to normal.
1341      else
1342        case $ac_arg in
1343          *=* | --config-cache | -C | -disable-* | --disable-* \
1344          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1345          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1346          | -with-* | --with-* | -without-* | --without-* | --x)
1347            case "$ac_configure_args0 " in
1348              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1349            esac
1350            ;;
1351          -* ) ac_must_keep_next=true ;;
1352        esac
1353      fi
1354      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1355      # Get rid of the leading space.
1356      ac_sep=" "
1357      ;;
1358    esac
1359  done
1360done
1361$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1362$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1363
1364# When interrupted or exit'd, cleanup temporary files, and complete
1365# config.log.  We remove comments because anyway the quotes in there
1366# would cause problems or look ugly.
1367# WARNING: Be sure not to use single quotes in there, as some shells,
1368# such as our DU 5.0 friend, will then `close' the trap.
1369trap 'exit_status=$?
1370  # Save into config.log some information that might help in debugging.
1371  {
1372    echo
1373
1374    cat <<\_ASBOX
1375## ---------------- ##
1376## Cache variables. ##
1377## ---------------- ##
1378_ASBOX
1379    echo
1380    # The following way of writing the cache mishandles newlines in values,
1381{
1382  (set) 2>&1 |
1383    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1384    *ac_space=\ *)
1385      sed -n \
1386        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1387          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1388      ;;
1389    *)
1390      sed -n \
1391        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1392      ;;
1393    esac;
1394}
1395    echo
1396
1397    cat <<\_ASBOX
1398## ----------------- ##
1399## Output variables. ##
1400## ----------------- ##
1401_ASBOX
1402    echo
1403    for ac_var in $ac_subst_vars
1404    do
1405      eval ac_val=$`echo $ac_var`
1406      echo "$ac_var='"'"'$ac_val'"'"'"
1407    done | sort
1408    echo
1409
1410    if test -n "$ac_subst_files"; then
1411      cat <<\_ASBOX
1412## ------------- ##
1413## Output files. ##
1414## ------------- ##
1415_ASBOX
1416      echo
1417      for ac_var in $ac_subst_files
1418      do
1419        eval ac_val=$`echo $ac_var`
1420        echo "$ac_var='"'"'$ac_val'"'"'"
1421      done | sort
1422      echo
1423    fi
1424
1425    if test -s confdefs.h; then
1426      cat <<\_ASBOX
1427## ----------- ##
1428## confdefs.h. ##
1429## ----------- ##
1430_ASBOX
1431      echo
1432      sed "/^$/d" confdefs.h | sort
1433      echo
1434    fi
1435    test "$ac_signal" != 0 &&
1436      echo "$as_me: caught signal $ac_signal"
1437    echo "$as_me: exit $exit_status"
1438  } >&5
1439  rm -f core *.core &&
1440  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1441    exit $exit_status
1442     ' 0
1443for ac_signal in 1 2 13 15; do
1444  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1445done
1446ac_signal=0
1447
1448# confdefs.h avoids OS command line length limits that DEFS can exceed.
1449rm -rf conftest* confdefs.h
1450# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1451echo >confdefs.h
1452
1453# Predefined preprocessor variables.
1454
1455cat >>confdefs.h <<_ACEOF
1456#define PACKAGE_NAME "$PACKAGE_NAME"
1457_ACEOF
1458
1459
1460cat >>confdefs.h <<_ACEOF
1461#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1462_ACEOF
1463
1464
1465cat >>confdefs.h <<_ACEOF
1466#define PACKAGE_VERSION "$PACKAGE_VERSION"
1467_ACEOF
1468
1469
1470cat >>confdefs.h <<_ACEOF
1471#define PACKAGE_STRING "$PACKAGE_STRING"
1472_ACEOF
1473
1474
1475cat >>confdefs.h <<_ACEOF
1476#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1477_ACEOF
1478
1479
1480# Let the site file select an alternate cache file if it wants to.
1481# Prefer explicitly selected file to automatically selected ones.
1482if test -z "$CONFIG_SITE"; then
1483  if test "x$prefix" != xNONE; then
1484    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1485  else
1486    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1487  fi
1488fi
1489for ac_site_file in $CONFIG_SITE; do
1490  if test -r "$ac_site_file"; then
1491    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1492echo "$as_me: loading site script $ac_site_file" >&6;}
1493    sed 's/^/| /' "$ac_site_file" >&5
1494    . "$ac_site_file"
1495  fi
1496done
1497
1498if test -r "$cache_file"; then
1499  # Some versions of bash will fail to source /dev/null (special
1500  # files actually), so we avoid doing that.
1501  if test -f "$cache_file"; then
1502    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1503echo "$as_me: loading cache $cache_file" >&6;}
1504    case $cache_file in
1505      [\\/]* | ?:[\\/]* ) . $cache_file;;
1506      *)                      . ./$cache_file;;
1507    esac
1508  fi
1509else
1510  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1511echo "$as_me: creating cache $cache_file" >&6;}
1512  >$cache_file
1513fi
1514
1515# Check that the precious variables saved in the cache have kept the same
1516# value.
1517ac_cache_corrupted=false
1518for ac_var in `(set) 2>&1 |
1519               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1520  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1521  eval ac_new_set=\$ac_env_${ac_var}_set
1522  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1523  eval ac_new_val="\$ac_env_${ac_var}_value"
1524  case $ac_old_set,$ac_new_set in
1525    set,)
1526      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1527echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1528      ac_cache_corrupted=: ;;
1529    ,set)
1530      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1531echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1532      ac_cache_corrupted=: ;;
1533    ,);;
1534    *)
1535      if test "x$ac_old_val" != "x$ac_new_val"; then
1536        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1537echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1538        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1539echo "$as_me:   former value:  $ac_old_val" >&2;}
1540        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1541echo "$as_me:   current value: $ac_new_val" >&2;}
1542        ac_cache_corrupted=:
1543      fi;;
1544  esac
1545  # Pass precious variables to config.status.
1546  if test "$ac_new_set" = set; then
1547    case $ac_new_val in
1548    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1549      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1550    *) ac_arg=$ac_var=$ac_new_val ;;
1551    esac
1552    case " $ac_configure_args " in
1553      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1554      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1555    esac
1556  fi
1557done
1558if $ac_cache_corrupted; then
1559  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1560echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1561  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1562echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1563   { (exit 1); exit 1; }; }
1564fi
1565
1566ac_ext=c
1567ac_cpp='$CPP $CPPFLAGS'
1568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1570ac_compiler_gnu=$ac_cv_c_compiler_gnu
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601# List one file in the package so that the configure script can test
1602# whether the package is actually there
1603
1604
1605# Where should everything be installed by default?  Here, we want it
1606# to be installed directly in 'bin', 'lib', 'include' subdirectories
1607# of the directory where configure is run.  The default would be
1608# /usr/local.
1609
1610
1611
1612# As backup, we make sure we don't loose an FLIBS if it has been set
1613# by the user
1614save_FLIBS="$FLIBS"
1615
1616# A useful makefile conditional that is always false
1617
1618
1619if false; then
1620  ALWAYS_FALSE_TRUE=
1621  ALWAYS_FALSE_FALSE='#'
1622else
1623  ALWAYS_FALSE_TRUE='#'
1624  ALWAYS_FALSE_FALSE=
1625fi
1626
1627
1628# We set the following variable so that we know later in AC_COIN_FINALIZE
1629# that we are in a project main directory
1630coin_projectdir=yes
1631
1632# Set the project's version numbers
1633
1634
1635cat >>confdefs.h <<_ACEOF
1636#define SOPLEX_VERSION "$PACKAGE_VERSION"
1637_ACEOF
1638
1639
1640  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1641  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1642  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1643  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1644  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1645  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1646
1647cat >>confdefs.h <<_ACEOF
1648#define SOPLEX_VERSION_MAJOR $coin_majorver
1649_ACEOF
1650
1651
1652cat >>confdefs.h <<_ACEOF
1653#define SOPLEX_VERSION_MINOR $coin_minorver
1654_ACEOF
1655
1656
1657cat >>confdefs.h <<_ACEOF
1658#define SOPLEX_VERSION_RELEASE $coin_releasever
1659_ACEOF
1660
1661
1662  # We use the following variable to have a string with the upper case
1663  # version of the project name
1664  COIN_PRJCT=SOPLEX
1665
1666  # Set the project's SVN revision number. The complicated sed expression
1667  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1668  # as a single number.
1669  # Extract the first word of "svnversion", so it can be a program name with args.
1670set dummy svnversion; ac_word=$2
1671echo "$as_me:$LINENO: checking for $ac_word" >&5
1672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1673if test "${ac_cv_prog_have_svnversion+set}" = set; then
1674  echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676  if test -n "$have_svnversion"; then
1677  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1678else
1679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680for as_dir in $PATH
1681do
1682  IFS=$as_save_IFS
1683  test -z "$as_dir" && as_dir=.
1684  for ac_exec_ext in '' $ac_executable_extensions; do
1685  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1686    ac_cv_prog_have_svnversion="yes"
1687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1688    break 2
1689  fi
1690done
1691done
1692
1693  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1694fi
1695fi
1696have_svnversion=$ac_cv_prog_have_svnversion
1697if test -n "$have_svnversion"; then
1698  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1699echo "${ECHO_T}$have_svnversion" >&6
1700else
1701  echo "$as_me:$LINENO: result: no" >&5
1702echo "${ECHO_T}no" >&6
1703fi
1704
1705  if test "x$have_svnversion" = xyes; then
1706
1707    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1708    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1709      SOPLEX_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1710
1711cat >>confdefs.h <<_ACEOF
1712#define SOPLEX_SVN_REV $SOPLEX_SVN_REV
1713_ACEOF
1714
1715    fi
1716  fi
1717
1718
1719
1720# Capture libtool library version, if given.
1721
1722
1723
1724
1725#############################################################################
1726#                         Standard build tool stuff                         #
1727#############################################################################
1728
1729# Get the system type
1730ac_aux_dir=
1731for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1732  if test -f $ac_dir/install-sh; then
1733    ac_aux_dir=$ac_dir
1734    ac_install_sh="$ac_aux_dir/install-sh -c"
1735    break
1736  elif test -f $ac_dir/install.sh; then
1737    ac_aux_dir=$ac_dir
1738    ac_install_sh="$ac_aux_dir/install.sh -c"
1739    break
1740  elif test -f $ac_dir/shtool; then
1741    ac_aux_dir=$ac_dir
1742    ac_install_sh="$ac_aux_dir/shtool install -c"
1743    break
1744  fi
1745done
1746if test -z "$ac_aux_dir"; then
1747  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1748echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1749   { (exit 1); exit 1; }; }
1750fi
1751ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1752ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1753ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1754
1755# Make sure we can run config.sub.
1756$ac_config_sub sun4 >/dev/null 2>&1 ||
1757  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1758echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1759   { (exit 1); exit 1; }; }
1760
1761echo "$as_me:$LINENO: checking build system type" >&5
1762echo $ECHO_N "checking build system type... $ECHO_C" >&6
1763if test "${ac_cv_build+set}" = set; then
1764  echo $ECHO_N "(cached) $ECHO_C" >&6
1765else
1766  ac_cv_build_alias=$build_alias
1767test -z "$ac_cv_build_alias" &&
1768  ac_cv_build_alias=`$ac_config_guess`
1769test -z "$ac_cv_build_alias" &&
1770  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1771echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1772   { (exit 1); exit 1; }; }
1773ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1774  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1775echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1776   { (exit 1); exit 1; }; }
1777
1778fi
1779echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1780echo "${ECHO_T}$ac_cv_build" >&6
1781build=$ac_cv_build
1782build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1783build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1784build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1785
1786
1787
1788# Check if user wants to produce debugging code
1789
1790echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1791echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1792
1793# Check whether --enable-debug or --disable-debug was given.
1794if test "${enable_debug+set}" = set; then
1795  enableval="$enable_debug"
1796  case "${enableval}" in
1797   yes) coin_debug_compile=true
1798        if test "${enable_shared+set}" = set; then :; else
1799          enable_shared=no
1800        fi
1801        ;;
1802   no)  coin_debug_compile=false
1803        ;;
1804   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1805echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1806   { (exit 1); exit 1; }; }
1807        ;;
1808esac
1809else
1810  coin_debug_compile=false
1811fi;
1812
1813# Check whether --enable-debug-soplex or --disable-debug-soplex was given.
1814if test "${enable_debug_soplex+set}" = set; then
1815  enableval="$enable_debug_soplex"
1816  case "${enableval}" in
1817    yes) coin_debug_compile=true
1818         ;;
1819    no)  coin_debug_compile=false
1820         ;;
1821    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-soplex" >&5
1822echo "$as_me: error: bad value ${enableval} for --enable-debug-soplex" >&2;}
1823   { (exit 1); exit 1; }; }
1824         ;;
1825 esac
1826else
1827  :
1828fi;
1829
1830 # m4_ifvaln([SoPlex],
1831
1832if test $coin_debug_compile = true; then
1833  echo "$as_me:$LINENO: result: yes" >&5
1834echo "${ECHO_T}yes" >&6
1835else
1836  echo "$as_me:$LINENO: result: no" >&5
1837echo "${ECHO_T}no" >&6
1838fi
1839
1840
1841# Check whether --with-soplex-verbosity or --without-soplex-verbosity was given.
1842if test "${with_soplex_verbosity+set}" = set; then
1843  withval="$with_soplex_verbosity"
1844  if test "$withval" = yes; then
1845                withval=1
1846              fi
1847              coin_soplex_verbosity=$withval
1848else
1849  coin_soplex_verbosity=0
1850fi;
1851
1852cat >>confdefs.h <<_ACEOF
1853#define COIN_SOPLEX_VERBOSITY $coin_soplex_verbosity
1854_ACEOF
1855
1856
1857
1858# Check whether --with-soplex-checklevel or --without-soplex-checklevel was given.
1859if test "${with_soplex_checklevel+set}" = set; then
1860  withval="$with_soplex_checklevel"
1861  if test "$withval" = yes; then
1862                withval=1
1863              fi
1864              coin_soplex_checklevel=$withval
1865else
1866  coin_soplex_checklevel=0
1867fi;
1868
1869cat >>confdefs.h <<_ACEOF
1870#define COIN_SOPLEX_CHECKLEVEL $coin_soplex_checklevel
1871_ACEOF
1872
1873
1874 # m4_ifvaln([SoPlex],
1875
1876
1877
1878# Get the name of the C compiler and appropriate compiler options
1879
1880
1881  # for backward compatibility
1882  # Check whether --enable-doscompile or --disable-doscompile was given.
1883if test "${enable_doscompile+set}" = set; then
1884  enableval="$enable_doscompile"
1885  enable_doscompile=$enableval
1886else
1887  enable_doscompile=no
1888fi;
1889
1890  # Check whether --enable-msvc or --disable-msvc was given.
1891if test "${enable_msvc+set}" = set; then
1892  enableval="$enable_msvc"
1893  enable_msvc=$enableval
1894else
1895  enable_msvc=no
1896     if test "$enable_doscompile" = msvc ; then
1897       enable_msvc=yes
1898     elif test "$enable_doscompile" != no ; then
1899       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1900echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1901   { (exit 1); exit 1; }; }
1902     fi
1903
1904fi;
1905
1906  if test "$enable_msvc" = MD; then
1907    enable_shared=yes
1908    enable_msvc=yes
1909  fi
1910
1911  if test "$enable_msvc" = yes; then
1912    case $build in
1913      *-cygwin* | *-mingw*) ;;
1914      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1915echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1916   { (exit 1); exit 1; }; } ;;
1917    esac
1918  fi
1919
1920
1921 case $build in
1922  *-mingw*)
1923    if test "${LD+set}" = set; then :; else
1924      LD=link
1925    fi
1926    ;;
1927 esac
1928 if test $enable_msvc = yes ; then
1929   if test "x${LD+set}" = xset; then :; else
1930     LD=link
1931   fi
1932 fi
1933
1934
1935
1936
1937ac_ext=c
1938ac_cpp='$CPP $CPPFLAGS'
1939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942
1943
1944# For consistency, we set the C compiler to the same value of the C++
1945# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1946if test x"$CXX" != x; then
1947  case "$CXX" in
1948    clang* ) ;;
1949    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1950      if test x"$CC" = x; then
1951        CC="$CXX"
1952        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1953echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1954      fi
1955      ;;
1956  esac
1957fi
1958
1959
1960
1961
1962
1963
1964coin_has_cc=yes
1965
1966save_cflags="$CFLAGS"
1967
1968# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1969# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1970# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1971# compiler. In this case, put cc after gcc.
1972
1973case $build in
1974  *-cygwin* | *-mingw*)
1975             if test "$enable_msvc" = yes ; then
1976               comps="icl cl gcc"
1977             else
1978               comps="gcc icl cl"
1979             fi ;;
1980  *-*-solaris*)
1981             # Extract the first word of "cc", so it can be a program name with args.
1982set dummy cc; ac_word=$2
1983echo "$as_me:$LINENO: checking for $ac_word" >&5
1984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1985if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1986  echo $ECHO_N "(cached) $ECHO_C" >&6
1987else
1988  if test -n "$sol_cc_compiler"; then
1989  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1990else
1991  ac_prog_rejected=no
1992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993for as_dir in $PATH
1994do
1995  IFS=$as_save_IFS
1996  test -z "$as_dir" && as_dir=.
1997  for ac_exec_ext in '' $ac_executable_extensions; do
1998  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1999    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2000       ac_prog_rejected=yes
2001       continue
2002     fi
2003    ac_cv_prog_sol_cc_compiler="cc"
2004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005    break 2
2006  fi
2007done
2008done
2009
2010if test $ac_prog_rejected = yes; then
2011  # We found a bogon in the path, so make sure we never use it.
2012  set dummy $ac_cv_prog_sol_cc_compiler
2013  shift
2014  if test $# != 0; then
2015    # We chose a different compiler from the bogus one.
2016    # However, it has the same basename, so the bogon will be chosen
2017    # first if we set sol_cc_compiler to just the basename; use the full file name.
2018    shift
2019    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2020  fi
2021fi
2022fi
2023fi
2024sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2025if test -n "$sol_cc_compiler"; then
2026  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2027echo "${ECHO_T}$sol_cc_compiler" >&6
2028else
2029  echo "$as_me:$LINENO: result: no" >&5
2030echo "${ECHO_T}no" >&6
2031fi
2032
2033             if test "$sol_cc_compiler" = "cc" ; then
2034               comps="cc xlc gcc pgcc icc"
2035             else
2036               comps="xlc gcc pgcc icc cc"
2037             fi
2038             ;;
2039  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2040  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2041  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2042esac
2043
2044# We delete the cached value, since the test might not have been
2045# performed with our choice of compilers earlier
2046$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2047# AC_MSG_NOTICE([C compiler candidates: $comps])
2048ac_ext=c
2049ac_cpp='$CPP $CPPFLAGS'
2050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2052ac_compiler_gnu=$ac_cv_c_compiler_gnu
2053if test -n "$ac_tool_prefix"; then
2054  for ac_prog in $comps
2055  do
2056    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2058echo "$as_me:$LINENO: checking for $ac_word" >&5
2059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2060if test "${ac_cv_prog_CC+set}" = set; then
2061  echo $ECHO_N "(cached) $ECHO_C" >&6
2062else
2063  if test -n "$CC"; then
2064  ac_cv_prog_CC="$CC" # Let the user override the test.
2065else
2066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067for as_dir in $PATH
2068do
2069  IFS=$as_save_IFS
2070  test -z "$as_dir" && as_dir=.
2071  for ac_exec_ext in '' $ac_executable_extensions; do
2072  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2073    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075    break 2
2076  fi
2077done
2078done
2079
2080fi
2081fi
2082CC=$ac_cv_prog_CC
2083if test -n "$CC"; then
2084  echo "$as_me:$LINENO: result: $CC" >&5
2085echo "${ECHO_T}$CC" >&6
2086else
2087  echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
2089fi
2090
2091    test -n "$CC" && break
2092  done
2093fi
2094if test -z "$CC"; then
2095  ac_ct_CC=$CC
2096  for ac_prog in $comps
2097do
2098  # Extract the first word of "$ac_prog", so it can be a program name with args.
2099set dummy $ac_prog; ac_word=$2
2100echo "$as_me:$LINENO: checking for $ac_word" >&5
2101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2102if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2103  echo $ECHO_N "(cached) $ECHO_C" >&6
2104else
2105  if test -n "$ac_ct_CC"; then
2106  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2107else
2108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109for as_dir in $PATH
2110do
2111  IFS=$as_save_IFS
2112  test -z "$as_dir" && as_dir=.
2113  for ac_exec_ext in '' $ac_executable_extensions; do
2114  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2115    ac_cv_prog_ac_ct_CC="$ac_prog"
2116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2117    break 2
2118  fi
2119done
2120done
2121
2122fi
2123fi
2124ac_ct_CC=$ac_cv_prog_ac_ct_CC
2125if test -n "$ac_ct_CC"; then
2126  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2127echo "${ECHO_T}$ac_ct_CC" >&6
2128else
2129  echo "$as_me:$LINENO: result: no" >&5
2130echo "${ECHO_T}no" >&6
2131fi
2132
2133  test -n "$ac_ct_CC" && break
2134done
2135
2136  CC=$ac_ct_CC
2137fi
2138
2139
2140test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2141See \`config.log' for more details." >&5
2142echo "$as_me: error: no acceptable C compiler found in \$PATH
2143See \`config.log' for more details." >&2;}
2144   { (exit 1); exit 1; }; }
2145
2146# Provide some information about the compiler.
2147echo "$as_me:$LINENO:" \
2148     "checking for C compiler version" >&5
2149ac_compiler=`set X $ac_compile; echo $2`
2150{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2151  (eval $ac_compiler --version </dev/null >&5) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }
2155{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2156  (eval $ac_compiler -v </dev/null >&5) 2>&5
2157  ac_status=$?
2158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159  (exit $ac_status); }
2160{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2161  (eval $ac_compiler -V </dev/null >&5) 2>&5
2162  ac_status=$?
2163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164  (exit $ac_status); }
2165
2166cat >conftest.$ac_ext <<_ACEOF
2167/* confdefs.h.  */
2168_ACEOF
2169cat confdefs.h >>conftest.$ac_ext
2170cat >>conftest.$ac_ext <<_ACEOF
2171/* end confdefs.h.  */
2172
2173int
2174main ()
2175{
2176
2177  ;
2178  return 0;
2179}
2180_ACEOF
2181ac_clean_files_save=$ac_clean_files
2182ac_clean_files="$ac_clean_files a.out a.exe b.out"
2183# Try to create an executable without -o first, disregard a.out.
2184# It will help us diagnose broken compilers, and finding out an intuition
2185# of exeext.
2186echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2187echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2188ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2189if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2190  (eval $ac_link_default) 2>&5
2191  ac_status=$?
2192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193  (exit $ac_status); }; then
2194  # Find the output, starting from the most likely.  This scheme is
2195# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2196# resort.
2197
2198# Be careful to initialize this variable, since it used to be cached.
2199# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2200ac_cv_exeext=
2201# b.out is created by i960 compilers.
2202for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2203do
2204  test -f "$ac_file" || continue
2205  case $ac_file in
2206    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2207        ;;
2208    conftest.$ac_ext )
2209        # This is the source file.
2210        ;;
2211    [ab].out )
2212        # We found the default executable, but exeext='' is most
2213        # certainly right.
2214        break;;
2215    *.* )
2216        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217        # FIXME: I believe we export ac_cv_exeext for Libtool,
2218        # but it would be cool to find out if it's true.  Does anybody
2219        # maintain Libtool? --akim.
2220        export ac_cv_exeext
2221        break;;
2222    * )
2223        break;;
2224  esac
2225done
2226else
2227  echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2231See \`config.log' for more details." >&5
2232echo "$as_me: error: C compiler cannot create executables
2233See \`config.log' for more details." >&2;}
2234   { (exit 77); exit 77; }; }
2235fi
2236
2237ac_exeext=$ac_cv_exeext
2238echo "$as_me:$LINENO: result: $ac_file" >&5
2239echo "${ECHO_T}$ac_file" >&6
2240
2241# Check the compiler produces executables we can run.  If not, either
2242# the compiler is broken, or we cross compile.
2243echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2244echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2245# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2246# If not cross compiling, check that we can run a simple program.
2247if test "$cross_compiling" != yes; then
2248  if { ac_try='./$ac_file'
2249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250  (eval $ac_try) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; }; then
2254    cross_compiling=no
2255  else
2256    if test "$cross_compiling" = maybe; then
2257        cross_compiling=yes
2258    else
2259        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2260If you meant to cross compile, use \`--host'.
2261See \`config.log' for more details." >&5
2262echo "$as_me: error: cannot run C compiled programs.
2263If you meant to cross compile, use \`--host'.
2264See \`config.log' for more details." >&2;}
2265   { (exit 1); exit 1; }; }
2266    fi
2267  fi
2268fi
2269echo "$as_me:$LINENO: result: yes" >&5
2270echo "${ECHO_T}yes" >&6
2271
2272rm -f a.out a.exe conftest$ac_cv_exeext b.out
2273ac_clean_files=$ac_clean_files_save
2274# Check the compiler produces executables we can run.  If not, either
2275# the compiler is broken, or we cross compile.
2276echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2277echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2278echo "$as_me:$LINENO: result: $cross_compiling" >&5
2279echo "${ECHO_T}$cross_compiling" >&6
2280
2281echo "$as_me:$LINENO: checking for suffix of executables" >&5
2282echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2284  (eval $ac_link) 2>&5
2285  ac_status=$?
2286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287  (exit $ac_status); }; then
2288  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2290# work properly (i.e., refer to `conftest.exe'), while it won't with
2291# `rm'.
2292for ac_file in conftest.exe conftest conftest.*; do
2293  test -f "$ac_file" || continue
2294  case $ac_file in
2295    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2296    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2297          export ac_cv_exeext
2298          break;;
2299    * ) break;;
2300  esac
2301done
2302else
2303  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2304See \`config.log' for more details." >&5
2305echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2306See \`config.log' for more details." >&2;}
2307   { (exit 1); exit 1; }; }
2308fi
2309
2310rm -f conftest$ac_cv_exeext
2311echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2312echo "${ECHO_T}$ac_cv_exeext" >&6
2313
2314rm -f conftest.$ac_ext
2315EXEEXT=$ac_cv_exeext
2316ac_exeext=$EXEEXT
2317echo "$as_me:$LINENO: checking for suffix of object files" >&5
2318echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2319if test "${ac_cv_objext+set}" = set; then
2320  echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322  cat >conftest.$ac_ext <<_ACEOF
2323/* confdefs.h.  */
2324_ACEOF
2325cat confdefs.h >>conftest.$ac_ext
2326cat >>conftest.$ac_ext <<_ACEOF
2327/* end confdefs.h.  */
2328
2329int
2330main ()
2331{
2332
2333  ;
2334  return 0;
2335}
2336_ACEOF
2337rm -f conftest.o conftest.obj
2338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339  (eval $ac_compile) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }; then
2343  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2344  case $ac_file in
2345    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2346    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2347       break;;
2348  esac
2349done
2350else
2351  echo "$as_me: failed program was:" >&5
2352sed 's/^/| /' conftest.$ac_ext >&5
2353
2354{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2355See \`config.log' for more details." >&5
2356echo "$as_me: error: cannot compute suffix of object files: cannot compile
2357See \`config.log' for more details." >&2;}
2358   { (exit 1); exit 1; }; }
2359fi
2360
2361rm -f conftest.$ac_cv_objext conftest.$ac_ext
2362fi
2363echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2364echo "${ECHO_T}$ac_cv_objext" >&6
2365OBJEXT=$ac_cv_objext
2366ac_objext=$OBJEXT
2367echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2368echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2369if test "${ac_cv_c_compiler_gnu+set}" = set; then
2370  echo $ECHO_N "(cached) $ECHO_C" >&6
2371else
2372  cat >conftest.$ac_ext <<_ACEOF
2373/* confdefs.h.  */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h.  */
2378
2379int
2380main ()
2381{
2382#ifndef __GNUC__
2383       choke me
2384#endif
2385
2386  ;
2387  return 0;
2388}
2389_ACEOF
2390rm -f conftest.$ac_objext
2391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392  (eval $ac_compile) 2>conftest.er1
2393  ac_status=$?
2394  grep -v '^ *+' conftest.er1 >conftest.err
2395  rm -f conftest.er1
2396  cat conftest.err >&5
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); } &&
2399         { ac_try='test -z "$ac_c_werror_flag"
2400                         || test ! -s conftest.err'
2401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402  (eval $ac_try) 2>&5
2403  ac_status=$?
2404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405  (exit $ac_status); }; } &&
2406         { ac_try='test -s conftest.$ac_objext'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; }; then
2412  ac_compiler_gnu=yes
2413else
2414  echo "$as_me: failed program was:" >&5
2415sed 's/^/| /' conftest.$ac_ext >&5
2416
2417ac_compiler_gnu=no
2418fi
2419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2420ac_cv_c_compiler_gnu=$ac_compiler_gnu
2421
2422fi
2423echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2424echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2425GCC=`test $ac_compiler_gnu = yes && echo yes`
2426ac_test_CFLAGS=${CFLAGS+set}
2427ac_save_CFLAGS=$CFLAGS
2428CFLAGS="-g"
2429echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2431if test "${ac_cv_prog_cc_g+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  cat >conftest.$ac_ext <<_ACEOF
2435/* confdefs.h.  */
2436_ACEOF
2437cat confdefs.h >>conftest.$ac_ext
2438cat >>conftest.$ac_ext <<_ACEOF
2439/* end confdefs.h.  */
2440
2441int
2442main ()
2443{
2444
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext
2450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451  (eval $ac_compile) 2>conftest.er1
2452  ac_status=$?
2453  grep -v '^ *+' conftest.er1 >conftest.err
2454  rm -f conftest.er1
2455  cat conftest.err >&5
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); } &&
2458         { ac_try='test -z "$ac_c_werror_flag"
2459                         || test ! -s conftest.err'
2460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461  (eval $ac_try) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; } &&
2465         { ac_try='test -s conftest.$ac_objext'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; }; then
2471  ac_cv_prog_cc_g=yes
2472else
2473  echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476ac_cv_prog_cc_g=no
2477fi
2478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479fi
2480echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2481echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2482if test "$ac_test_CFLAGS" = set; then
2483  CFLAGS=$ac_save_CFLAGS
2484elif test $ac_cv_prog_cc_g = yes; then
2485  if test "$GCC" = yes; then
2486    CFLAGS="-g -O2"
2487  else
2488    CFLAGS="-g"
2489  fi
2490else
2491  if test "$GCC" = yes; then
2492    CFLAGS="-O2"
2493  else
2494    CFLAGS=
2495  fi
2496fi
2497echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2498echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2499if test "${ac_cv_prog_cc_stdc+set}" = set; then
2500  echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502  ac_cv_prog_cc_stdc=no
2503ac_save_CC=$CC
2504cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h.  */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h.  */
2510#include <stdarg.h>
2511#include <stdio.h>
2512#include <sys/types.h>
2513#include <sys/stat.h>
2514/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2515struct buf { int x; };
2516FILE * (*rcsopen) (struct buf *, struct stat *, int);
2517static char *e (p, i)
2518     char **p;
2519     int i;
2520{
2521  return p[i];
2522}
2523static char *f (char * (*g) (char **, int), char **p, ...)
2524{
2525  char *s;
2526  va_list v;
2527  va_start (v,p);
2528  s = g (p, va_arg (v,int));
2529  va_end (v);
2530  return s;
2531}
2532
2533/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2534   function prototypes and stuff, but not '\xHH' hex character constants.
2535   These don't provoke an error unfortunately, instead are silently treated
2536   as 'x'.  The following induces an error, until -std1 is added to get
2537   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2538   array size at least.  It's necessary to write '\x00'==0 to get something
2539   that's true only with -std1.  */
2540int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2541
2542int test (int i, double x);
2543struct s1 {int (*f) (int a);};
2544struct s2 {int (*f) (double a);};
2545int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2546int argc;
2547char **argv;
2548int
2549main ()
2550{
2551return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2552  ;
2553  return 0;
2554}
2555_ACEOF
2556# Don't try gcc -ansi; that turns off useful extensions and
2557# breaks some systems' header files.
2558# AIX                   -qlanglvl=ansi
2559# Ultrix and OSF/1      -std1
2560# HP-UX 10.20 and later -Ae
2561# HP-UX older versions  -Aa -D_HPUX_SOURCE
2562# SVR4                  -Xc -D__EXTENSIONS__
2563for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2564do
2565  CC="$ac_save_CC $ac_arg"
2566  rm -f conftest.$ac_objext
2567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2568  (eval $ac_compile) 2>conftest.er1
2569  ac_status=$?
2570  grep -v '^ *+' conftest.er1 >conftest.err
2571  rm -f conftest.er1
2572  cat conftest.err >&5
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); } &&
2575         { ac_try='test -z "$ac_c_werror_flag"
2576                         || test ! -s conftest.err'
2577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2578  (eval $ac_try) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }; } &&
2582         { ac_try='test -s conftest.$ac_objext'
2583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584  (eval $ac_try) 2>&5
2585  ac_status=$?
2586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587  (exit $ac_status); }; }; then
2588  ac_cv_prog_cc_stdc=$ac_arg
2589break
2590else
2591  echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594fi
2595rm -f conftest.err conftest.$ac_objext
2596done
2597rm -f conftest.$ac_ext conftest.$ac_objext
2598CC=$ac_save_CC
2599
2600fi
2601
2602case "x$ac_cv_prog_cc_stdc" in
2603  x|xno)
2604    echo "$as_me:$LINENO: result: none needed" >&5
2605echo "${ECHO_T}none needed" >&6 ;;
2606  *)
2607    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2608echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2609    CC="$CC $ac_cv_prog_cc_stdc" ;;
2610esac
2611
2612# Some people use a C++ compiler to compile C.  Since we use `exit',
2613# in C++ we need to declare it.  In case someone uses the same compiler
2614# for both compiling C and C++ we need to have the C++ compiler decide
2615# the declaration of exit, since it's the most demanding environment.
2616cat >conftest.$ac_ext <<_ACEOF
2617#ifndef __cplusplus
2618  choke me
2619#endif
2620_ACEOF
2621rm -f conftest.$ac_objext
2622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623  (eval $ac_compile) 2>conftest.er1
2624  ac_status=$?
2625  grep -v '^ *+' conftest.er1 >conftest.err
2626  rm -f conftest.er1
2627  cat conftest.err >&5
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); } &&
2630         { ac_try='test -z "$ac_c_werror_flag"
2631                         || test ! -s conftest.err'
2632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633  (eval $ac_try) 2>&5
2634  ac_status=$?
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); }; } &&
2637         { ac_try='test -s conftest.$ac_objext'
2638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639  (eval $ac_try) 2>&5
2640  ac_status=$?
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); }; }; then
2643  for ac_declaration in \
2644   '' \
2645   'extern "C" void std::exit (int) throw (); using std::exit;' \
2646   'extern "C" void std::exit (int); using std::exit;' \
2647   'extern "C" void exit (int) throw ();' \
2648   'extern "C" void exit (int);' \
2649   'void exit (int);'
2650do
2651  cat >conftest.$ac_ext <<_ACEOF
2652/* confdefs.h.  */
2653_ACEOF
2654cat confdefs.h >>conftest.$ac_ext
2655cat >>conftest.$ac_ext <<_ACEOF
2656/* end confdefs.h.  */
2657$ac_declaration
2658#include <stdlib.h>
2659int
2660main ()
2661{
2662exit (42);
2663  ;
2664  return 0;
2665}
2666_ACEOF
2667rm -f conftest.$ac_objext
2668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669  (eval $ac_compile) 2>conftest.er1
2670  ac_status=$?
2671  grep -v '^ *+' conftest.er1 >conftest.err
2672  rm -f conftest.er1
2673  cat conftest.err >&5
2674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675  (exit $ac_status); } &&
2676         { ac_try='test -z "$ac_c_werror_flag"
2677                         || test ! -s conftest.err'
2678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2679  (eval $ac_try) 2>&5
2680  ac_status=$?
2681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682  (exit $ac_status); }; } &&
2683         { ac_try='test -s conftest.$ac_objext'
2684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685  (eval $ac_try) 2>&5
2686  ac_status=$?
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); }; }; then
2689  :
2690else
2691  echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
2694continue
2695fi
2696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2697  cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h.  */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h.  */
2703$ac_declaration
2704int
2705main ()
2706{
2707exit (42);
2708  ;
2709  return 0;
2710}
2711_ACEOF
2712rm -f conftest.$ac_objext
2713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714  (eval $ac_compile) 2>conftest.er1
2715  ac_status=$?
2716  grep -v '^ *+' conftest.er1 >conftest.err
2717  rm -f conftest.er1
2718  cat conftest.err >&5
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); } &&
2721         { ac_try='test -z "$ac_c_werror_flag"
2722                         || test ! -s conftest.err'
2723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724  (eval $ac_try) 2>&5
2725  ac_status=$?
2726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727  (exit $ac_status); }; } &&
2728         { ac_try='test -s conftest.$ac_objext'
2729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730  (eval $ac_try) 2>&5
2731  ac_status=$?
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); }; }; then
2734  break
2735else
2736  echo "$as_me: failed program was:" >&5
2737sed 's/^/| /' conftest.$ac_ext >&5
2738
2739fi
2740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2741done
2742rm -f conftest*
2743if test -n "$ac_declaration"; then
2744  echo '#ifdef __cplusplus' >>confdefs.h
2745  echo $ac_declaration      >>confdefs.h
2746  echo '#endif'             >>confdefs.h
2747fi
2748
2749else
2750  echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753fi
2754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755ac_ext=c
2756ac_cpp='$CPP $CPPFLAGS'
2757ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2758ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2759ac_compiler_gnu=$ac_cv_c_compiler_gnu
2760
2761if test -z "$CC" ; then
2762  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2763echo "$as_me: error: Failed to find a C compiler!" >&2;}
2764   { (exit 1); exit 1; }; }
2765fi
2766# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2767case "$CC" in
2768  clang* ) ;;
2769  cl* | */cl* | CL* | */CL* )
2770    if test "$ac_cv_prog_cc_g" = yes ; then
2771      ac_cv_prog_cc_g=no
2772      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2773echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2774    fi ;;
2775  * )
2776    if test x"$CYGPATH_W" = x ; then
2777      CYGPATH_W=echo
2778    fi
2779    ;;
2780esac
2781CFLAGS="$save_cflags"
2782
2783# add automake conditional so we can recognize cl compiler in makefile
2784coin_cc_is_cl=false
2785case "$CC" in
2786  clang* ) ;;
2787  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2788    coin_cc_is_cl=true
2789    ;;
2790esac
2791
2792
2793if test $coin_cc_is_cl = true; then
2794  COIN_CC_IS_CL_TRUE=
2795  COIN_CC_IS_CL_FALSE='#'
2796else
2797  COIN_CC_IS_CL_TRUE='#'
2798  COIN_CC_IS_CL_FALSE=
2799fi
2800
2801
2802# Check if a project specific CFLAGS variable has been set
2803if test x$COIN_PRJCT != x; then
2804  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2805  if test x$coin_tmp = xset; then
2806    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2807  fi
2808fi
2809
2810if test x"$CFLAGS" = x; then
2811
2812  coin_add_cflags=
2813  coin_opt_cflags=
2814  coin_dbg_cflags=
2815  coin_warn_cflags=
2816
2817  if test "$GCC" = "yes"; then
2818    case "$CC" in
2819      icc* | */icc*)
2820        ;;
2821      *)
2822        coin_opt_cflags="-O3"
2823        coin_add_cflags="-pipe"
2824        coin_dbg_cflags="-g -O0"
2825        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2826        case $build in
2827          *-darwin*)
2828            ;;
2829          *)
2830            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2831            ;;
2832        esac
2833    esac
2834  fi
2835  if test -z "$coin_opt_cflags"; then
2836    case $build in
2837      *-cygwin* | *-mingw*)
2838        case "$CC" in
2839          clang* ) ;;
2840          cl* | */cl* | CL* | */CL*)
2841            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2842              coin_opt_cflags='-MD -O2'
2843              coin_dbg_cflags='-MDd'
2844            else
2845              coin_opt_cflags='-MT -O2'
2846              coin_dbg_cflags='-MTd'
2847            fi
2848            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2849            ;;
2850          icl* | */icl* | ICL* | */ICL*)
2851            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2852              coin_opt_cflags='-MD -Ox'
2853              coin_dbg_cflags='-MDd -debug'
2854            else
2855              coin_opt_cflags='-MT -Ox'
2856              coin_dbg_cflags='-MTd -debug'
2857            fi
2858            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2859            ;;
2860        esac
2861        ;;
2862      *-linux-*)
2863        case "$CC" in
2864          icc* | */icc*)
2865            coin_opt_cflags="-O3 -ip -mp1"
2866            coin_add_cflags=""
2867            coin_dbg_cflags="-g"
2868            # Check if -i_dynamic is necessary (for new glibc library)
2869            CFLAGS=
2870            cat >conftest.$ac_ext <<_ACEOF
2871/* confdefs.h.  */
2872_ACEOF
2873cat confdefs.h >>conftest.$ac_ext
2874cat >>conftest.$ac_ext <<_ACEOF
2875/* end confdefs.h.  */
2876
2877int
2878main ()
2879{
2880int i=0; i++;
2881  ;
2882  return 0;
2883}
2884_ACEOF
2885rm -f conftest.$ac_objext conftest$ac_exeext
2886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2887  (eval $ac_link) 2>conftest.er1
2888  ac_status=$?
2889  grep -v '^ *+' conftest.er1 >conftest.err
2890  rm -f conftest.er1
2891  cat conftest.err >&5
2892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893  (exit $ac_status); } &&
2894         { ac_try='test -z "$ac_c_werror_flag"
2895                         || test ! -s conftest.err'
2896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897  (eval $ac_try) 2>&5
2898  ac_status=$?
2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900  (exit $ac_status); }; } &&
2901         { ac_try='test -s conftest$ac_exeext'
2902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903  (eval $ac_try) 2>&5
2904  ac_status=$?
2905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906  (exit $ac_status); }; }; then
2907  :
2908else
2909  echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912coin_add_cflags="-i_dynamic $coin_add_cflags"
2913fi
2914rm -f conftest.err conftest.$ac_objext \
2915      conftest$ac_exeext conftest.$ac_ext
2916            ;;
2917          pgcc* | */pgcc*)
2918            coin_opt_cflags="-fast"
2919            coin_add_cflags="-Kieee -pc 64"
2920            coin_dbg_cflags="-g"
2921            ;;
2922        esac
2923        ;;
2924      *-ibm-*)
2925        case "$CC" in
2926          xlc* | */xlc* | mpxlc* | */mpxlc*)
2927            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2928            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2929            coin_dbg_cflags="-g"
2930          ;;
2931        esac
2932        ;;
2933      *-hp-*)
2934        coin_opt_cflags="-O"
2935        coin_add_cflags="-Ae"
2936        coin_dbg_cflags="-g"
2937        ;;
2938      *-*-solaris*)
2939        coin_opt_cflags="-xO4"
2940        coin_dbg_cflags="-g"
2941        ;;
2942      *-sgi-*)
2943        coin_opt_cflags="-O -OPT:Olimit=0"
2944        coin_dbg_cflags="-g"
2945        ;;
2946    esac
2947  fi
2948
2949  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2950    coin_dbg_cflags="-g"
2951  fi
2952
2953  if test -z "$coin_opt_cflags"; then
2954    # Try if -O option works if nothing else is set
2955    CFLAGS="-O"
2956    cat >conftest.$ac_ext <<_ACEOF
2957/* confdefs.h.  */
2958_ACEOF
2959cat confdefs.h >>conftest.$ac_ext
2960cat >>conftest.$ac_ext <<_ACEOF
2961/* end confdefs.h.  */
2962
2963int
2964main ()
2965{
2966int i=0; i++;
2967  ;
2968  return 0;
2969}
2970_ACEOF
2971rm -f conftest.$ac_objext conftest$ac_exeext
2972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2973  (eval $ac_link) 2>conftest.er1
2974  ac_status=$?
2975  grep -v '^ *+' conftest.er1 >conftest.err
2976  rm -f conftest.er1
2977  cat conftest.err >&5
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); } &&
2980         { ac_try='test -z "$ac_c_werror_flag"
2981                         || test ! -s conftest.err'
2982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983  (eval $ac_try) 2>&5
2984  ac_status=$?
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); }; } &&
2987         { ac_try='test -s conftest$ac_exeext'
2988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989  (eval $ac_try) 2>&5
2990  ac_status=$?
2991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992  (exit $ac_status); }; }; then
2993  coin_opt_cflags="-O"
2994else
2995  echo "$as_me: failed program was:" >&5
2996sed 's/^/| /' conftest.$ac_ext >&5
2997
2998fi
2999rm -f conftest.err conftest.$ac_objext \
3000      conftest$ac_exeext conftest.$ac_ext
3001  fi
3002
3003  # if PM doesn't want the warning messages, take them out
3004  if test x"$coin_skip_warn_cflags" = xyes; then
3005    coin_warn_cflags=
3006  fi
3007
3008  if test x${DBG_CFLAGS+set} != xset; then
3009    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3010  fi
3011  if test x${OPT_CFLAGS+set} != xset; then
3012    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3013  fi
3014
3015  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3016  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3017
3018  if test "$coin_debug_compile" = "true"; then
3019    CFLAGS="$DBG_CFLAGS"
3020  else
3021    CFLAGS="$OPT_CFLAGS"
3022  fi
3023else
3024  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3025  if test x${DBG_CFLAGS+set} != xset; then
3026    DBG_CFLAGS="$CFLAGS"
3027  fi
3028  if test x${OPT_CFLAGS+set} != xset; then
3029    OPT_CFLAGS="$CFLAGS"
3030  fi
3031fi
3032
3033# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3034if test x$COIN_PRJCT != x; then
3035  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3036fi
3037
3038# Try if CFLAGS works
3039save_CFLAGS="$CFLAGS"
3040cat >conftest.$ac_ext <<_ACEOF
3041/* confdefs.h.  */
3042_ACEOF
3043cat confdefs.h >>conftest.$ac_ext
3044cat >>conftest.$ac_ext <<_ACEOF
3045/* end confdefs.h.  */
3046
3047int
3048main ()
3049{
3050int i=0; i++;
3051  ;
3052  return 0;
3053}
3054_ACEOF
3055rm -f conftest.$ac_objext conftest$ac_exeext
3056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3057  (eval $ac_link) 2>conftest.er1
3058  ac_status=$?
3059  grep -v '^ *+' conftest.er1 >conftest.err
3060  rm -f conftest.er1
3061  cat conftest.err >&5
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); } &&
3064         { ac_try='test -z "$ac_c_werror_flag"
3065                         || test ! -s conftest.err'
3066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3067  (eval $ac_try) 2>&5
3068  ac_status=$?
3069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070  (exit $ac_status); }; } &&
3071         { ac_try='test -s conftest$ac_exeext'
3072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3073  (eval $ac_try) 2>&5
3074  ac_status=$?
3075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076  (exit $ac_status); }; }; then
3077  :
3078else
3079  echo "$as_me: failed program was:" >&5
3080sed 's/^/| /' conftest.$ac_ext >&5
3081
3082CFLAGS=
3083fi
3084rm -f conftest.err conftest.$ac_objext \
3085      conftest$ac_exeext conftest.$ac_ext
3086if test -z "$CFLAGS"; then
3087  { 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
3088echo "$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;}
3089  CFLAGS='-O'
3090  cat >conftest.$ac_ext <<_ACEOF
3091/* confdefs.h.  */
3092_ACEOF
3093cat confdefs.h >>conftest.$ac_ext
3094cat >>conftest.$ac_ext <<_ACEOF
3095/* end confdefs.h.  */
3096
3097int
3098main ()
3099{
3100int i=0; i++;
3101  ;
3102  return 0;
3103}
3104_ACEOF
3105rm -f conftest.$ac_objext conftest$ac_exeext
3106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3107  (eval $ac_link) 2>conftest.er1
3108  ac_status=$?
3109  grep -v '^ *+' conftest.er1 >conftest.err
3110  rm -f conftest.er1
3111  cat conftest.err >&5
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); } &&
3114         { ac_try='test -z "$ac_c_werror_flag"
3115                         || test ! -s conftest.err'
3116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117  (eval $ac_try) 2>&5
3118  ac_status=$?
3119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120  (exit $ac_status); }; } &&
3121         { ac_try='test -s conftest$ac_exeext'
3122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123  (eval $ac_try) 2>&5
3124  ac_status=$?
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); }; }; then
3127  :
3128else
3129  echo "$as_me: failed program was:" >&5
3130sed 's/^/| /' conftest.$ac_ext >&5
3131
3132CFLAGS=
3133fi
3134rm -f conftest.err conftest.$ac_objext \
3135      conftest$ac_exeext conftest.$ac_ext
3136  if test -z "$CFLAGS"; then
3137    { 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
3138echo "$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;}
3139  fi
3140fi
3141
3142{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3143echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3144
3145
3146if test x"$MPICC" = x; then :; else
3147  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3148echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3149  CC="$MPICC"
3150fi
3151
3152# Correct the LD variable if we are using the MS or Intel-windows compiler
3153case "$CC" in
3154  clang* ) ;;
3155  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3156
3157 case $build in
3158  *-mingw*)
3159    if test "${LD+set}" = set; then :; else
3160      LD=link
3161    fi
3162    ;;
3163 esac
3164 if test $enable_msvc = yes ; then
3165   if test "x${LD+set}" = xset; then :; else
3166     LD=link
3167   fi
3168 fi
3169
3170    ;;
3171esac
3172
3173ac_ext=c
3174ac_cpp='$CPP $CPPFLAGS'
3175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177ac_compiler_gnu=$ac_cv_c_compiler_gnu
3178
3179
3180
3181# Get the name of the C++ compiler and appropriate compiler options
3182
3183 #Let's try if that overcomes configuration problem with VC++ 6.0
3184
3185ac_ext=cc
3186ac_cpp='$CXXCPP $CPPFLAGS'
3187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3190
3191
3192
3193
3194
3195
3196
3197coin_has_cxx=yes
3198
3199save_cxxflags="$CXXFLAGS"
3200# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3201case $build in
3202  *-cygwin* | *-mingw*)
3203      if test "$enable_msvc" = yes ; then
3204         comps="icl cl g++"
3205      else
3206         comps="g++ icl cl"
3207      fi ;;
3208  *-*-solaris*)
3209             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3210  *-darwin*) comps="g++ c++ CC" ;;
3211  *-linux-gnu*)
3212             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3213          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3214esac
3215
3216# We delete the cached value, since the test might not have been
3217# performed with our choice of compilers earlier
3218$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3219# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3220ac_ext=cc
3221ac_cpp='$CXXCPP $CPPFLAGS'
3222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3225if test -n "$ac_tool_prefix"; then
3226  for ac_prog in $CCC $comps
3227  do
3228    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230echo "$as_me:$LINENO: checking for $ac_word" >&5
3231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232if test "${ac_cv_prog_CXX+set}" = set; then
3233  echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235  if test -n "$CXX"; then
3236  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243  for ac_exec_ext in '' $ac_executable_extensions; do
3244  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250done
3251
3252fi
3253fi
3254CXX=$ac_cv_prog_CXX
3255if test -n "$CXX"; then
3256  echo "$as_me:$LINENO: result: $CXX" >&5
3257echo "${ECHO_T}$CXX" >&6
3258else
3259  echo "$as_me:$LINENO: result: no" >&5
3260echo "${ECHO_T}no" >&6
3261fi
3262
3263    test -n "$CXX" && break
3264  done
3265fi
3266if test -z "$CXX"; then
3267  ac_ct_CXX=$CXX
3268  for ac_prog in $CCC $comps
3269do
3270  # Extract the first word of "$ac_prog", so it can be a program name with args.
3271set dummy $ac_prog; ac_word=$2
3272echo "$as_me:$LINENO: checking for $ac_word" >&5
3273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3274if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3275  echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277  if test -n "$ac_ct_CXX"; then
3278  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3279else
3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281for as_dir in $PATH
3282do
3283  IFS=$as_save_IFS
3284  test -z "$as_dir" && as_dir=.
3285  for ac_exec_ext in '' $ac_executable_extensions; do
3286  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287    ac_cv_prog_ac_ct_CXX="$ac_prog"
3288    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3289    break 2
3290  fi
3291done
3292done
3293
3294fi
3295fi
3296ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3297if test -n "$ac_ct_CXX"; then
3298  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3299echo "${ECHO_T}$ac_ct_CXX" >&6
3300else
3301  echo "$as_me:$LINENO: result: no" >&5
3302echo "${ECHO_T}no" >&6
3303fi
3304
3305  test -n "$ac_ct_CXX" && break
3306done
3307test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3308
3309  CXX=$ac_ct_CXX
3310fi
3311
3312
3313# Provide some information about the compiler.
3314echo "$as_me:$LINENO:" \
3315     "checking for C++ compiler version" >&5
3316ac_compiler=`set X $ac_compile; echo $2`
3317{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3318  (eval $ac_compiler --version </dev/null >&5) 2>&5
3319  ac_status=$?
3320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321  (exit $ac_status); }
3322{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3323  (eval $ac_compiler -v </dev/null >&5) 2>&5
3324  ac_status=$?
3325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326  (exit $ac_status); }
3327{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3328  (eval $ac_compiler -V </dev/null >&5) 2>&5
3329  ac_status=$?
3330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331  (exit $ac_status); }
3332
3333echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3334echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3335if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3336  echo $ECHO_N "(cached) $ECHO_C" >&6
3337else
3338  cat >conftest.$ac_ext <<_ACEOF
3339/* confdefs.h.  */
3340_ACEOF
3341cat confdefs.h >>conftest.$ac_ext
3342cat >>conftest.$ac_ext <<_ACEOF
3343/* end confdefs.h.  */
3344
3345int
3346main ()
3347{
3348#ifndef __GNUC__
3349       choke me
3350#endif
3351
3352  ;
3353  return 0;
3354}
3355_ACEOF
3356rm -f conftest.$ac_objext
3357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3358  (eval $ac_compile) 2>conftest.er1
3359  ac_status=$?
3360  grep -v '^ *+' conftest.er1 >conftest.err
3361  rm -f conftest.er1
3362  cat conftest.err >&5
3363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364  (exit $ac_status); } &&
3365         { ac_try='test -z "$ac_cxx_werror_flag"
3366                         || test ! -s conftest.err'
3367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368  (eval $ac_try) 2>&5
3369  ac_status=$?
3370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371  (exit $ac_status); }; } &&
3372         { ac_try='test -s conftest.$ac_objext'
3373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3374  (eval $ac_try) 2>&5
3375  ac_status=$?
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); }; }; then
3378  ac_compiler_gnu=yes
3379else
3380  echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383ac_compiler_gnu=no
3384fi
3385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3386ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3387
3388fi
3389echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3390echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3391GXX=`test $ac_compiler_gnu = yes && echo yes`
3392ac_test_CXXFLAGS=${CXXFLAGS+set}
3393ac_save_CXXFLAGS=$CXXFLAGS
3394CXXFLAGS="-g"
3395echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3396echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3397if test "${ac_cv_prog_cxx_g+set}" = set; then
3398  echo $ECHO_N "(cached) $ECHO_C" >&6
3399else
3400  cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h.  */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h.  */
3406
3407int
3408main ()
3409{
3410
3411  ;
3412  return 0;
3413}
3414_ACEOF
3415rm -f conftest.$ac_objext
3416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417  (eval $ac_compile) 2>conftest.er1
3418  ac_status=$?
3419  grep -v '^ *+' conftest.er1 >conftest.err
3420  rm -f conftest.er1
3421  cat conftest.err >&5
3422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423  (exit $ac_status); } &&
3424         { ac_try='test -z "$ac_cxx_werror_flag"
3425                         || test ! -s conftest.err'
3426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427  (eval $ac_try) 2>&5
3428  ac_status=$?
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); }; } &&
3431         { ac_try='test -s conftest.$ac_objext'
3432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433  (eval $ac_try) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }; }; then
3437  ac_cv_prog_cxx_g=yes
3438else
3439  echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
3442ac_cv_prog_cxx_g=no
3443fi
3444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445fi
3446echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3447echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3448if test "$ac_test_CXXFLAGS" = set; then
3449  CXXFLAGS=$ac_save_CXXFLAGS
3450elif test $ac_cv_prog_cxx_g = yes; then
3451  if test "$GXX" = yes; then
3452    CXXFLAGS="-g -O2"
3453  else
3454    CXXFLAGS="-g"
3455  fi
3456else
3457  if test "$GXX" = yes; then
3458    CXXFLAGS="-O2"
3459  else
3460    CXXFLAGS=
3461  fi
3462fi
3463for ac_declaration in \
3464   '' \
3465   'extern "C" void std::exit (int) throw (); using std::exit;' \
3466   'extern "C" void std::exit (int); using std::exit;' \
3467   'extern "C" void exit (int) throw ();' \
3468   'extern "C" void exit (int);' \
3469   'void exit (int);'
3470do
3471  cat >conftest.$ac_ext <<_ACEOF
3472/* confdefs.h.  */
3473_ACEOF
3474cat confdefs.h >>conftest.$ac_ext
3475cat >>conftest.$ac_ext <<_ACEOF
3476/* end confdefs.h.  */
3477$ac_declaration
3478#include <stdlib.h>
3479int
3480main ()
3481{
3482exit (42);
3483  ;
3484  return 0;
3485}
3486_ACEOF
3487rm -f conftest.$ac_objext
3488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3489  (eval $ac_compile) 2>conftest.er1
3490  ac_status=$?
3491  grep -v '^ *+' conftest.er1 >conftest.err
3492  rm -f conftest.er1
3493  cat conftest.err >&5
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); } &&
3496         { ac_try='test -z "$ac_cxx_werror_flag"
3497                         || test ! -s conftest.err'
3498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3499  (eval $ac_try) 2>&5
3500  ac_status=$?
3501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502  (exit $ac_status); }; } &&
3503         { ac_try='test -s conftest.$ac_objext'
3504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505  (eval $ac_try) 2>&5
3506  ac_status=$?
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); }; }; then
3509  :
3510else
3511  echo "$as_me: failed program was:" >&5
3512sed 's/^/| /' conftest.$ac_ext >&5
3513
3514continue
3515fi
3516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3517  cat >conftest.$ac_ext <<_ACEOF
3518/* confdefs.h.  */
3519_ACEOF
3520cat confdefs.h >>conftest.$ac_ext
3521cat >>conftest.$ac_ext <<_ACEOF
3522/* end confdefs.h.  */
3523$ac_declaration
3524int
3525main ()
3526{
3527exit (42);
3528  ;
3529  return 0;
3530}
3531_ACEOF
3532rm -f conftest.$ac_objext
3533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3534  (eval $ac_compile) 2>conftest.er1
3535  ac_status=$?
3536  grep -v '^ *+' conftest.er1 >conftest.err
3537  rm -f conftest.er1
3538  cat conftest.err >&5
3539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); } &&
3541         { ac_try='test -z "$ac_cxx_werror_flag"
3542                         || test ! -s conftest.err'
3543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544  (eval $ac_try) 2>&5
3545  ac_status=$?
3546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); }; } &&
3548         { ac_try='test -s conftest.$ac_objext'
3549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3550  (eval $ac_try) 2>&5
3551  ac_status=$?
3552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553  (exit $ac_status); }; }; then
3554  break
3555else
3556  echo "$as_me: failed program was:" >&5
3557sed 's/^/| /' conftest.$ac_ext >&5
3558
3559fi
3560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3561done
3562rm -f conftest*
3563if test -n "$ac_declaration"; then
3564  echo '#ifdef __cplusplus' >>confdefs.h
3565  echo $ac_declaration      >>confdefs.h
3566  echo '#endif'             >>confdefs.h
3567fi
3568
3569ac_ext=cc
3570ac_cpp='$CXXCPP $CPPFLAGS'
3571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3574
3575
3576#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3577#thus, we test here whether $CXX is actually working
3578ac_ext=cc
3579ac_cpp='$CXXCPP $CPPFLAGS'
3580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3583
3584echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3585echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3586cat >conftest.$ac_ext <<_ACEOF
3587/* confdefs.h.  */
3588_ACEOF
3589cat confdefs.h >>conftest.$ac_ext
3590cat >>conftest.$ac_ext <<_ACEOF
3591/* end confdefs.h.  */
3592
3593int
3594main ()
3595{
3596int i=0;
3597  ;
3598  return 0;
3599}
3600_ACEOF
3601rm -f conftest.$ac_objext
3602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3603  (eval $ac_compile) 2>conftest.er1
3604  ac_status=$?
3605  grep -v '^ *+' conftest.er1 >conftest.err
3606  rm -f conftest.er1
3607  cat conftest.err >&5
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); } &&
3610         { ac_try='test -z "$ac_cxx_werror_flag"
3611                         || test ! -s conftest.err'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; } &&
3617         { ac_try='test -s conftest.$ac_objext'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; }; then
3623  echo "$as_me:$LINENO: result: yes" >&5
3624echo "${ECHO_T}yes" >&6
3625else
3626  echo "$as_me: failed program was:" >&5
3627sed 's/^/| /' conftest.$ac_ext >&5
3628
3629echo "$as_me:$LINENO: result: no" >&5
3630echo "${ECHO_T}no" >&6
3631   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3632echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3633   { (exit 1); exit 1; }; }
3634
3635fi
3636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3637ac_ext=cc
3638ac_cpp='$CXXCPP $CPPFLAGS'
3639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3642
3643
3644coin_cxx_is_cl=false
3645# It seems that we need to cleanup something here for the Windows
3646case "$CXX" in
3647  clang* ) ;;
3648  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3649    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3650    mv confdefs.hh confdefs.h
3651    coin_cxx_is_cl=true
3652    ;;
3653esac
3654
3655# add automake conditional so we can recognize cl compiler in makefile
3656
3657
3658if test $coin_cxx_is_cl = true; then
3659  COIN_CXX_IS_CL_TRUE=
3660  COIN_CXX_IS_CL_FALSE='#'
3661else
3662  COIN_CXX_IS_CL_TRUE='#'
3663  COIN_CXX_IS_CL_FALSE=
3664fi
3665
3666
3667# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3668case "$CXX" in
3669  clang* ) ;;
3670  cl* | */cl* | CL* | */CL* )
3671    if test "$ac_cv_prog_cxx_g" = yes ; then
3672      ac_cv_prog_cxx_g=no
3673      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3674echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3675    fi ;;
3676  * )
3677    if test x"$CYGPATH_W" = x ; then
3678      CYGPATH_W=echo
3679    fi
3680    ;;
3681esac
3682CXXFLAGS="$save_cxxflags"
3683
3684# Check if a project specific CXXFLAGS variable has been set
3685if test x$COIN_PRJCT != x; then
3686  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3687  if test x$coin_tmp = xset; then
3688    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3689  fi
3690fi
3691
3692if test x"$CXXFLAGS" = x; then
3693
3694# ToDo decide whether we want -DNDEBUG for optimization
3695  coin_add_cxxflags=
3696  coin_opt_cxxflags=
3697  coin_dbg_cxxflags=
3698  coin_warn_cxxflags=
3699
3700  if test "$GXX" = "yes"; then
3701    case "$CXX" in
3702      icpc* | */icpc*)
3703        ;;
3704      *)
3705# ToDo decide about unroll-loops
3706        coin_opt_cxxflags="-O3"
3707        coin_add_cxxflags="-pipe"
3708        coin_dbg_cxxflags="-g -O0"
3709        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3710        case $build in
3711          *-darwin*)
3712            ;;
3713          *)
3714            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3715            ;;
3716        esac
3717    esac
3718  fi
3719
3720# Note that we do not need to cover GCC in the following tests.
3721
3722  if test -z "$coin_opt_cxxflags"; then
3723    case $build in
3724      *-cygwin* | *-mingw*)
3725        case "$CXX" in
3726          clang* ) ;;
3727          cl* | */cl* | CL* | */CL*)
3728            # The MT and MTd options are mutually exclusive
3729            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3730               coin_opt_cxxflags='-MD -O2'
3731               coin_dbg_cxxflags='-MDd'
3732            else
3733               coin_opt_cxxflags='-MT -O2'
3734               coin_dbg_cxxflags='-MTd'
3735            fi
3736            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3737            ;;
3738          icl* | */icl* | ICL* | */ICL*)
3739          # The MT and MTd options are mutually exclusive
3740            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3741              coin_opt_cxxflags='-MD -Ox'
3742              coin_dbg_cxxflags='-MDd -debug'
3743            else
3744              coin_opt_cxxflags='-MT -Ox'
3745              coin_dbg_cxxflags='-MTd -debug'
3746            fi
3747            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3748            ;;
3749        esac
3750        ;;
3751      *-linux-*)
3752        case "$CXX" in
3753          icpc* | */icpc*)
3754            coin_opt_cxxflags="-O3 -ip -mp1"
3755            coin_add_cxxflags=""
3756            coin_dbg_cxxflags="-g"
3757            # Check if -i_dynamic is necessary (for new glibc library)
3758            CXXFLAGS=
3759            cat >conftest.$ac_ext <<_ACEOF
3760/* confdefs.h.  */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h.  */
3765
3766int
3767main ()
3768{
3769int i=0; i++;
3770  ;
3771  return 0;
3772}
3773_ACEOF
3774rm -f conftest.$ac_objext conftest$ac_exeext
3775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3776  (eval $ac_link) 2>conftest.er1
3777  ac_status=$?
3778  grep -v '^ *+' conftest.er1 >conftest.err
3779  rm -f conftest.er1
3780  cat conftest.err >&5
3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782  (exit $ac_status); } &&
3783         { ac_try='test -z "$ac_cxx_werror_flag"
3784                         || test ! -s conftest.err'
3785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3786  (eval $ac_try) 2>&5
3787  ac_status=$?
3788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789  (exit $ac_status); }; } &&
3790         { ac_try='test -s conftest$ac_exeext'
3791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3792  (eval $ac_try) 2>&5
3793  ac_status=$?
3794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795  (exit $ac_status); }; }; then
3796  :
3797else
3798  echo "$as_me: failed program was:" >&5
3799sed 's/^/| /' conftest.$ac_ext >&5
3800
3801coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3802fi
3803rm -f conftest.err conftest.$ac_objext \
3804      conftest$ac_exeext conftest.$ac_ext
3805            ;;
3806          pgCC* | */pgCC*)
3807            coin_opt_cxxflags="-fast"
3808            coin_add_cxxflags="-Kieee -pc 64"
3809            coin_dbg_cxxflags="-g"
3810            ;;
3811        esac
3812        ;;
3813      *-ibm-*)
3814        case "$CXX" in
3815          xlC* | */xlC* | mpxlC* | */mpxlC*)
3816            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3817            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3818            coin_dbg_cxxflags="-g"
3819            ;;
3820        esac
3821        ;;
3822      *-hp-*)
3823        case "$CXX" in
3824          aCC* | */aCC* )
3825            coin_opt_cxxflags="-O"
3826            coin_add_cxxflags="-AA"
3827            coin_dbg_cxxflags="-g"
3828            ;;
3829        esac
3830        ;;
3831      *-*-solaris*)
3832          coin_opt_cxxflags="-O4"
3833          coin_dbg_cxxflags="-g"
3834        ;;
3835    esac
3836  fi
3837
3838# Generic flag settings. If these don't work, add a case above.
3839
3840  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3841    coin_dbg_cxxflags="-g"
3842  fi
3843
3844  if test -z "$coin_opt_cxxflags"; then
3845    # Try if -O option works if nothing else is set
3846    CXXFLAGS=-O
3847    cat >conftest.$ac_ext <<_ACEOF
3848/* confdefs.h.  */
3849_ACEOF
3850cat confdefs.h >>conftest.$ac_ext
3851cat >>conftest.$ac_ext <<_ACEOF
3852/* end confdefs.h.  */
3853
3854int
3855main ()
3856{
3857int i=0; i++;
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862rm -f conftest.$ac_objext conftest$ac_exeext
3863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3864  (eval $ac_link) 2>conftest.er1
3865  ac_status=$?
3866  grep -v '^ *+' conftest.er1 >conftest.err
3867  rm -f conftest.er1
3868  cat conftest.err >&5
3869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870  (exit $ac_status); } &&
3871         { ac_try='test -z "$ac_cxx_werror_flag"
3872                         || test ! -s conftest.err'
3873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3874  (eval $ac_try) 2>&5
3875  ac_status=$?
3876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877  (exit $ac_status); }; } &&
3878         { ac_try='test -s conftest$ac_exeext'
3879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880  (eval $ac_try) 2>&5
3881  ac_status=$?
3882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883  (exit $ac_status); }; }; then
3884  coin_opt_cxxflags="-O"
3885else
3886  echo "$as_me: failed program was:" >&5
3887sed 's/^/| /' conftest.$ac_ext >&5
3888
3889fi
3890rm -f conftest.err conftest.$ac_objext \
3891      conftest$ac_exeext conftest.$ac_ext
3892  fi
3893
3894  # if PM doesn't want the warning messages, take them out
3895  if test x"$coin_skip_warn_cxxflags" = xyes; then
3896    coin_warn_cxxflags=
3897  fi
3898
3899# Do final setup of flags based on values determined above.
3900
3901  if test x${DBG_CXXFLAGS+set} != xset; then
3902    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3903  fi
3904  if test x${OPT_CXXFLAGS+set} != xset; then
3905    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3906  fi
3907
3908  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3909  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3910
3911  if test "$coin_debug_compile" = "true"; then
3912    CXXFLAGS="$DBG_CXXFLAGS"
3913  else
3914    CXXFLAGS="$OPT_CXXFLAGS"
3915  fi
3916
3917# Handle the case where CXXFLAGS was set externally.
3918else
3919  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3920  if test x${DBG_CXXFLAGS+set} != xset; then
3921    DBG_CXXFLAGS="$CXXFLAGS"
3922  fi
3923  if test x${OPT_CXXFLAGS+set} != xset; then
3924    OPT_CXXFLAGS="$CXXFLAGS"
3925  fi
3926fi
3927
3928# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3929if test x$COIN_PRJCT != x; then
3930  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3931fi
3932
3933# Try if CXXFLAGS works
3934save_CXXFLAGS="$CXXFLAGS"
3935cat >conftest.$ac_ext <<_ACEOF
3936/* confdefs.h.  */
3937_ACEOF
3938cat confdefs.h >>conftest.$ac_ext
3939cat >>conftest.$ac_ext <<_ACEOF
3940/* end confdefs.h.  */
3941
3942int
3943main ()
3944{
3945int i=0; i++;
3946  ;
3947  return 0;
3948}
3949_ACEOF
3950rm -f conftest.$ac_objext conftest$ac_exeext
3951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3952  (eval $ac_link) 2>conftest.er1
3953  ac_status=$?
3954  grep -v '^ *+' conftest.er1 >conftest.err
3955  rm -f conftest.er1
3956  cat conftest.err >&5
3957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958  (exit $ac_status); } &&
3959         { ac_try='test -z "$ac_cxx_werror_flag"
3960                         || test ! -s conftest.err'
3961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962  (eval $ac_try) 2>&5
3963  ac_status=$?
3964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965  (exit $ac_status); }; } &&
3966         { ac_try='test -s conftest$ac_exeext'
3967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968  (eval $ac_try) 2>&5
3969  ac_status=$?
3970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971  (exit $ac_status); }; }; then
3972  :
3973else
3974  echo "$as_me: failed program was:" >&5
3975sed 's/^/| /' conftest.$ac_ext >&5
3976
3977CXXFLAGS=
3978fi
3979rm -f conftest.err conftest.$ac_objext \
3980      conftest$ac_exeext conftest.$ac_ext
3981if test -z "$CXXFLAGS"; then
3982  { 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
3983echo "$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;}
3984  CXXFLAGS='-O'
3985  cat >conftest.$ac_ext <<_ACEOF
3986/* confdefs.h.  */
3987_ACEOF
3988cat confdefs.h >>conftest.$ac_ext
3989cat >>conftest.$ac_ext <<_ACEOF
3990/* end confdefs.h.  */
3991
3992int
3993main ()
3994{
3995int i=0; i++;
3996  ;
3997  return 0;
3998}
3999_ACEOF
4000rm -f conftest.$ac_objext conftest$ac_exeext
4001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002  (eval $ac_link) 2>conftest.er1
4003  ac_status=$?
4004  grep -v '^ *+' conftest.er1 >conftest.err
4005  rm -f conftest.er1
4006  cat conftest.err >&5
4007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008  (exit $ac_status); } &&
4009         { ac_try='test -z "$ac_cxx_werror_flag"
4010                         || test ! -s conftest.err'
4011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4012  (eval $ac_try) 2>&5
4013  ac_status=$?
4014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015  (exit $ac_status); }; } &&
4016         { ac_try='test -s conftest$ac_exeext'
4017  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018  (eval $ac_try) 2>&5
4019  ac_status=$?
4020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021  (exit $ac_status); }; }; then
4022  :
4023else
4024  echo "$as_me: failed program was:" >&5
4025sed 's/^/| /' conftest.$ac_ext >&5
4026
4027CXXFLAGS=
4028fi
4029rm -f conftest.err conftest.$ac_objext \
4030      conftest$ac_exeext conftest.$ac_ext
4031  if test -z "$CXXFLAGS"; then
4032    { 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
4033echo "$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;}
4034  fi
4035fi
4036
4037{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4038echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4039
4040
4041if test x"$MPICXX" = x; then :; else
4042  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4043echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4044  CXX="$MPICXX"
4045fi
4046
4047# correct the LD variable in a mingw build with MS or intel compiler
4048case "$CXX" in
4049  clang* ) ;;
4050  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4051
4052 case $build in
4053  *-mingw*)
4054    if test "${LD+set}" = set; then :; else
4055      LD=link
4056    fi
4057    ;;
4058 esac
4059 if test $enable_msvc = yes ; then
4060   if test "x${LD+set}" = xset; then :; else
4061     LD=link
4062   fi
4063 fi
4064
4065    ;;
4066esac
4067
4068ac_ext=c
4069ac_cpp='$CPP $CPPFLAGS'
4070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072ac_compiler_gnu=$ac_cv_c_compiler_gnu
4073
4074
4075
4076# Check if pkg-config is available (to setup addlibs file)
4077
4078
4079# Check whether --enable-pkg-config or --disable-pkg-config was given.
4080if test "${enable_pkg_config+set}" = set; then
4081  enableval="$enable_pkg_config"
4082  use_pkgconfig="$enableval"
4083else
4084  if test x$coin_cc_is_cl = xtrue; then
4085     use_pkgconfig=no
4086   else
4087     use_pkgconfig=yes
4088   fi
4089fi;
4090
4091if test $use_pkgconfig = yes ; then
4092  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4093    if test -n "$ac_tool_prefix"; then
4094  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4095set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4096echo "$as_me:$LINENO: checking for $ac_word" >&5
4097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4099  echo $ECHO_N "(cached) $ECHO_C" >&6
4100else
4101  if test -n "$PKG_CONFIG"; then
4102  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4103else
4104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105for as_dir in $PATH
4106do
4107  IFS=$as_save_IFS
4108  test -z "$as_dir" && as_dir=.
4109  for ac_exec_ext in '' $ac_executable_extensions; do
4110  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4111    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4112    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113    break 2
4114  fi
4115done
4116done
4117
4118fi
4119fi
4120PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4121if test -n "$PKG_CONFIG"; then
4122  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4123echo "${ECHO_T}$PKG_CONFIG" >&6
4124else
4125  echo "$as_me:$LINENO: result: no" >&5
4126echo "${ECHO_T}no" >&6
4127fi
4128
4129fi
4130if test -z "$ac_cv_prog_PKG_CONFIG"; then
4131  ac_ct_PKG_CONFIG=$PKG_CONFIG
4132  # Extract the first word of "pkg-config", so it can be a program name with args.
4133set dummy pkg-config; ac_word=$2
4134echo "$as_me:$LINENO: checking for $ac_word" >&5
4135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4136if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4137  echo $ECHO_N "(cached) $ECHO_C" >&6
4138else
4139  if test -n "$ac_ct_PKG_CONFIG"; then
4140  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4141else
4142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143for as_dir in $PATH
4144do
4145  IFS=$as_save_IFS
4146  test -z "$as_dir" && as_dir=.
4147  for ac_exec_ext in '' $ac_executable_extensions; do
4148  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4149    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4150    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4151    break 2
4152  fi
4153done
4154done
4155
4156fi
4157fi
4158ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4159if test -n "$ac_ct_PKG_CONFIG"; then
4160  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4161echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4162else
4163  echo "$as_me:$LINENO: result: no" >&5
4164echo "${ECHO_T}no" >&6
4165fi
4166
4167  PKG_CONFIG=$ac_ct_PKG_CONFIG
4168else
4169  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4170fi
4171
4172  fi
4173  if test -n "$PKG_CONFIG"; then
4174    _pkg_min_version=0.16.0
4175    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4176echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4177    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4178      echo "$as_me:$LINENO: result: yes" >&5
4179echo "${ECHO_T}yes" >&6
4180    else
4181      echo "$as_me:$LINENO: result: no" >&5
4182echo "${ECHO_T}no" >&6
4183      PKG_CONFIG=""
4184    fi
4185  fi
4186
4187  # check if pkg-config supports the short-errors flag
4188  if test -n "$PKG_CONFIG" && \
4189    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4190    pkg_short_errors=" --short-errors "
4191  else
4192    pkg_short_errors=""
4193  fi
4194fi
4195
4196
4197
4198if test -n "$PKG_CONFIG"; then
4199  COIN_HAS_PKGCONFIG_TRUE=
4200  COIN_HAS_PKGCONFIG_FALSE='#'
4201else
4202  COIN_HAS_PKGCONFIG_TRUE='#'
4203  COIN_HAS_PKGCONFIG_FALSE=
4204fi
4205
4206
4207
4208# assemble pkg-config search path for installed projects
4209COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4210
4211# 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
4212# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4213# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4214if test "x${prefix}" = xNONE ; then
4215  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4216else
4217  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4218fi
4219
4220
4221# Check whether --with-coin-instdir or --without-coin-instdir was given.
4222if test "${with_coin_instdir+set}" = set; then
4223  withval="$with_coin_instdir"
4224  if test -d "$withval"; then : ; else
4225     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4226echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4227   { (exit 1); exit 1; }; }
4228   fi
4229   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4230
4231fi;
4232
4233
4234
4235# assemble additional pkg-config search paths for uninstalled projects
4236if test x$coin_projectdir = xyes ; then
4237  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4238  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4239  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4240  # 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)
4241  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4242  if test -f ../coin_subdirs.txt ; then
4243    for i in `cat ../coin_subdirs.txt` ; do
4244      if test -d ../$i ; then
4245        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4246      fi
4247      if test -d ../$i/pkgconfig ; then
4248        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4249      fi
4250    done
4251  fi
4252
4253  if test -f ../../coin_subdirs.txt ; then
4254    for i in `cat ../../coin_subdirs.txt` ; do
4255      if test -d ../../$i ; then
4256        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4257      fi
4258      if test -d ../../$i/pkgconfig ; then
4259        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4260      fi
4261    done
4262  fi
4263
4264
4265fi
4266
4267if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4268  { 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
4269echo "$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;}
4270fi
4271
4272
4273
4274# Initialize automake
4275{
4276
4277
4278
4279# START
4280
4281coin_disable_shared=no
4282# Test if force_shared has been set
4283if test "x" = xforce_shared; then
4284  if test x$enable_shared = xno; then
4285    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4286echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4287   { (exit 1); exit 1; }; }
4288  fi
4289  enable_shared=yes;
4290else
4291  # On Cygwin and AIX, building DLLs doesn't work
4292  case $build in
4293    *-cygwin* | *-mingw*)
4294      coin_disable_shared=yes
4295      if test x"$enable_shared" = xyes; then
4296        case "$CC" in
4297          clang* )
4298            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4299echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4300            ;;
4301          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4302            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4303echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4304            ;;
4305          *gcc*)
4306            if test x"$enable_dependency_linking" = xyes; then
4307              coin_disable_shared=no
4308            else
4309              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
4310echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
4311            fi
4312            ;;
4313          *)
4314            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4315echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4316            ;;
4317        esac
4318      fi
4319    ;;
4320    *-aix*)
4321      coin_disable_shared=yes
4322      platform=AIX
4323      if test x"$enable_shared" = xyes; then
4324        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4325echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4326      fi
4327    ;;
4328  esac
4329fi
4330if test x"$coin_disable_shared" = xyes; then
4331  if test x"$enable_shared" = xyes; then
4332    :
4333  else
4334    # we don't disable shared, because it was not selected anyway
4335    coin_disable_shared=no
4336  fi
4337  enable_shared=no
4338fi
4339# By default, we only want the shared objects to be compiled
4340# Check whether --enable-static or --disable-static was given.
4341if test "${enable_static+set}" = set; then
4342  enableval="$enable_static"
4343  p=${PACKAGE-default}
4344    case $enableval in
4345    yes) enable_static=yes ;;
4346    no) enable_static=no ;;
4347    *)
4348     enable_static=no
4349      # Look at the argument we got.  We use all the common list separators.
4350      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4351      for pkg in $enableval; do
4352        IFS="$lt_save_ifs"
4353        if test "X$pkg" = "X$p"; then
4354          enable_static=yes
4355        fi
4356      done
4357      IFS="$lt_save_ifs"
4358      ;;
4359    esac
4360else
4361  enable_static=no
4362fi;
4363
4364
4365
4366
4367# Initialize automake
4368echo "$as_me:$LINENO: checking for egrep" >&5
4369echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4370if test "${ac_cv_prog_egrep+set}" = set; then
4371  echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4374    then ac_cv_prog_egrep='grep -E'
4375    else ac_cv_prog_egrep='egrep'
4376    fi
4377fi
4378echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4379echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4380 EGREP=$ac_cv_prog_egrep
4381
4382
4383echo "$as_me:$LINENO: checking whether ln -s works" >&5
4384echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4385LN_S=$as_ln_s
4386if test "$LN_S" = "ln -s"; then
4387  echo "$as_me:$LINENO: result: yes" >&5
4388echo "${ECHO_T}yes" >&6
4389else
4390  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4391echo "${ECHO_T}no, using $LN_S" >&6
4392fi
4393
4394am__api_version="1.9"
4395# Find a good install program.  We prefer a C program (faster),
4396# so one script is as good as another.  But avoid the broken or
4397# incompatible versions:
4398# SysV /etc/install, /usr/sbin/install
4399# SunOS /usr/etc/install
4400# IRIX /sbin/install
4401# AIX /bin/install
4402# AmigaOS /C/install, which installs bootblocks on floppy discs
4403# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4404# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4405# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4406# OS/2's system install, which has a completely different semantic
4407# ./install, which can be erroneously created by make from ./install.sh.
4408echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4409echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4410if test -z "$INSTALL"; then
4411if test "${ac_cv_path_install+set}" = set; then
4412  echo $ECHO_N "(cached) $ECHO_C" >&6
4413else
4414  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415for as_dir in $PATH
4416do
4417  IFS=$as_save_IFS
4418  test -z "$as_dir" && as_dir=.
4419  # Account for people who put trailing slashes in PATH elements.
4420case $as_dir/ in
4421  ./ | .// | /cC/* | \
4422  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4423  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4424  /usr/ucb/* ) ;;
4425  *)
4426    # OSF1 and SCO ODT 3.0 have their own names for install.
4427    # Don't use installbsd from OSF since it installs stuff as root
4428    # by default.
4429    for ac_prog in ginstall scoinst install; do
4430      for ac_exec_ext in '' $ac_executable_extensions; do
4431        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4432          if test $ac_prog = install &&
4433            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4434            # AIX install.  It has an incompatible calling convention.
4435            :
4436          elif test $ac_prog = install &&
4437            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4438            # program-specific install script used by HP pwplus--don't use.
4439            :
4440          else
4441            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4442            break 3
4443          fi
4444        fi
4445      done
4446    done
4447    ;;
4448esac
4449done
4450
4451
4452fi
4453  if test "${ac_cv_path_install+set}" = set; then
4454    INSTALL=$ac_cv_path_install
4455  else
4456    # As a last resort, use the slow shell script.  We don't cache a
4457    # path for INSTALL within a source directory, because that will
4458    # break other packages using the cache if that directory is
4459    # removed, or if the path is relative.
4460    INSTALL=$ac_install_sh
4461  fi
4462fi
4463echo "$as_me:$LINENO: result: $INSTALL" >&5
4464echo "${ECHO_T}$INSTALL" >&6
4465
4466# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4467# It thinks the first close brace ends the variable substitution.
4468test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4469
4470test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4471
4472test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4473
4474echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4475echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4476# Just in case
4477sleep 1
4478echo timestamp > conftest.file
4479# Do `set' in a subshell so we don't clobber the current shell's
4480# arguments.  Must try -L first in case configure is actually a
4481# symlink; some systems play weird games with the mod time of symlinks
4482# (eg FreeBSD returns the mod time of the symlink's containing
4483# directory).
4484if (
4485   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4486   if test "$*" = "X"; then
4487      # -L didn't work.
4488      set X `ls -t $srcdir/configure conftest.file`
4489   fi
4490   rm -f conftest.file
4491   if test "$*" != "X $srcdir/configure conftest.file" \
4492      && test "$*" != "X conftest.file $srcdir/configure"; then
4493
4494      # If neither matched, then we have a broken ls.  This can happen
4495      # if, for instance, CONFIG_SHELL is bash and it inherits a
4496      # broken ls alias from the environment.  This has actually
4497      # happened.  Such a system could not be considered "sane".
4498      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4499alias in your environment" >&5
4500echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4501alias in your environment" >&2;}
4502   { (exit 1); exit 1; }; }
4503   fi
4504
4505   test "$2" = conftest.file
4506   )
4507then
4508   # Ok.
4509   :
4510else
4511   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4512Check your system clock" >&5
4513echo "$as_me: error: newly created file is older than distributed files!
4514Check your system clock" >&2;}
4515   { (exit 1); exit 1; }; }
4516fi
4517echo "$as_me:$LINENO: result: yes" >&5
4518echo "${ECHO_T}yes" >&6
4519test "$program_prefix" != NONE &&
4520  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4521# Use a double $ so make ignores it.
4522test "$program_suffix" != NONE &&
4523  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4524# Double any \ or $.  echo might interpret backslashes.
4525# By default was `s,x,x', remove it if useless.
4526cat <<\_ACEOF >conftest.sed
4527s/[\\$]/&&/g;s/;s,x,x,$//
4528_ACEOF
4529program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4530rm conftest.sed
4531
4532# expand $ac_aux_dir to an absolute path
4533am_aux_dir=`cd $ac_aux_dir && pwd`
4534
4535test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4536# Use eval to expand $SHELL
4537if eval "$MISSING --run true"; then
4538  am_missing_run="$MISSING --run "
4539else
4540  am_missing_run=
4541  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4542echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4543fi
4544
4545if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4546  # We used to keeping the `.' as first argument, in order to
4547  # allow $(mkdir_p) to be used without argument.  As in
4548  #   $(mkdir_p) $(somedir)
4549  # where $(somedir) is conditionally defined.  However this is wrong
4550  # for two reasons:
4551  #  1. if the package is installed by a user who cannot write `.'
4552  #     make install will fail,
4553  #  2. the above comment should most certainly read
4554  #     $(mkdir_p) $(DESTDIR)$(somedir)
4555  #     so it does not work when $(somedir) is undefined and
4556  #     $(DESTDIR) is not.
4557  #  To support the latter case, we have to write
4558  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4559  #  so the `.' trick is pointless.
4560  mkdir_p='mkdir -p --'
4561else
4562  # On NextStep and OpenStep, the `mkdir' command does not
4563  # recognize any option.  It will interpret all options as
4564  # directories to create, and then abort because `.' already
4565  # exists.
4566  for d in ./-p ./--version;
4567  do
4568    test -d $d && rmdir $d
4569  done
4570  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4571  if test -f "$ac_aux_dir/mkinstalldirs"; then
4572    mkdir_p='$(mkinstalldirs)'
4573  else
4574    mkdir_p='$(install_sh) -d'
4575  fi
4576fi
4577
4578for ac_prog in gawk mawk nawk awk
4579do
4580  # Extract the first word of "$ac_prog", so it can be a program name with args.
4581set dummy $ac_prog; ac_word=$2
4582echo "$as_me:$LINENO: checking for $ac_word" >&5
4583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584if test "${ac_cv_prog_AWK+set}" = set; then
4585  echo $ECHO_N "(cached) $ECHO_C" >&6
4586else
4587  if test -n "$AWK"; then
4588  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4589else
4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593  IFS=$as_save_IFS
4594  test -z "$as_dir" && as_dir=.
4595  for ac_exec_ext in '' $ac_executable_extensions; do
4596  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597    ac_cv_prog_AWK="$ac_prog"
4598    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599    break 2
4600  fi
4601done
4602done
4603
4604fi
4605fi
4606AWK=$ac_cv_prog_AWK
4607if test -n "$AWK"; then
4608  echo "$as_me:$LINENO: result: $AWK" >&5
4609echo "${ECHO_T}$AWK" >&6
4610else
4611  echo "$as_me:$LINENO: result: no" >&5
4612echo "${ECHO_T}no" >&6
4613fi
4614
4615  test -n "$AWK" && break
4616done
4617
4618echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4619echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4620set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4621if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4622  echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624  cat >conftest.make <<\_ACEOF
4625all:
4626        @echo 'ac_maketemp="$(MAKE)"'
4627_ACEOF
4628# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4629eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4630if test -n "$ac_maketemp"; then
4631  eval ac_cv_prog_make_${ac_make}_set=yes
4632else
4633  eval ac_cv_prog_make_${ac_make}_set=no
4634fi
4635rm -f conftest.make
4636fi
4637if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4638  echo "$as_me:$LINENO: result: yes" >&5
4639echo "${ECHO_T}yes" >&6
4640  SET_MAKE=
4641else
4642  echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6
4644  SET_MAKE="MAKE=${MAKE-make}"
4645fi
4646
4647rm -rf .tst 2>/dev/null
4648mkdir .tst 2>/dev/null
4649if test -d .tst; then
4650  am__leading_dot=.
4651else
4652  am__leading_dot=_
4653fi
4654rmdir .tst 2>/dev/null
4655
4656DEPDIR="${am__leading_dot}deps"
4657
4658          ac_config_commands="$ac_config_commands depfiles"
4659
4660
4661am_make=${MAKE-make}
4662cat > confinc << 'END'
4663am__doit:
4664        @echo done
4665.PHONY: am__doit
4666END
4667# If we don't find an include directive, just comment out the code.
4668echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4669echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4670am__include="#"
4671am__quote=
4672_am_result=none
4673# First try GNU make style include.
4674echo "include confinc" > confmf
4675# We grep out `Entering directory' and `Leaving directory'
4676# messages which can occur if `w' ends up in MAKEFLAGS.
4677# In particular we don't look at `^make:' because GNU make might
4678# be invoked under some other name (usually "gmake"), in which
4679# case it prints its new name instead of `make'.
4680if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4681   am__include=include
4682   am__quote=
4683   _am_result=GNU
4684fi
4685# Now try BSD make style include.
4686if test "$am__include" = "#"; then
4687   echo '.include "confinc"' > confmf
4688   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4689      am__include=.include
4690      am__quote="\""
4691      _am_result=BSD
4692   fi
4693fi
4694
4695
4696echo "$as_me:$LINENO: result: $_am_result" >&5
4697echo "${ECHO_T}$_am_result" >&6
4698rm -f confinc confmf
4699
4700# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4701if test "${enable_dependency_tracking+set}" = set; then
4702  enableval="$enable_dependency_tracking"
4703
4704fi;
4705if test "x$enable_dependency_tracking" != xno; then
4706  am_depcomp="$ac_aux_dir/depcomp"
4707  AMDEPBACKSLASH='\'
4708fi
4709
4710
4711if test "x$enable_dependency_tracking" != xno; then
4712  AMDEP_TRUE=
4713  AMDEP_FALSE='#'
4714else
4715  AMDEP_TRUE='#'
4716  AMDEP_FALSE=
4717fi
4718
4719
4720
4721
4722
4723
4724# AC_MSG_NOTICE([Beginning automake initialisation.])
4725# Stuff for automake
4726# test to see if srcdir already configured
4727if test "`cd $srcdir && pwd`" != "`pwd`" &&
4728   test -f $srcdir/config.status; then
4729  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4730echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4731   { (exit 1); exit 1; }; }
4732fi
4733
4734# test whether we have cygpath
4735if test -z "$CYGPATH_W"; then
4736  if (cygpath --version) >/dev/null 2>/dev/null; then
4737    CYGPATH_W='cygpath -w'
4738  else
4739    CYGPATH_W=echo
4740  fi
4741fi
4742
4743
4744# Define the identity of the package.
4745 PACKAGE='thirdpartysoplex'
4746 VERSION='1.2'
4747
4748
4749cat >>confdefs.h <<_ACEOF
4750#define PACKAGE "$PACKAGE"
4751_ACEOF
4752
4753
4754cat >>confdefs.h <<_ACEOF
4755#define VERSION "$VERSION"
4756_ACEOF
4757
4758# Some tools Automake needs.
4759
4760ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4761
4762
4763AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4764
4765
4766AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4767
4768
4769AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4770
4771
4772MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4773
4774install_sh=${install_sh-"$am_aux_dir/install-sh"}
4775
4776# Installed binaries are usually stripped using `strip' when the user
4777# run `make install-strip'.  However `strip' might not be the right
4778# tool to use in cross-compilation environments, therefore Automake
4779# will honor the `STRIP' environment variable to overrule this program.
4780if test "$cross_compiling" != no; then
4781  if test -n "$ac_tool_prefix"; then
4782  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4783set dummy ${ac_tool_prefix}strip; ac_word=$2
4784echo "$as_me:$LINENO: checking for $ac_word" >&5
4785echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4786if test "${ac_cv_prog_STRIP+set}" = set; then
4787  echo $ECHO_N "(cached) $ECHO_C" >&6
4788else
4789  if test -n "$STRIP"; then
4790  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4791else
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795  IFS=$as_save_IFS
4796  test -z "$as_dir" && as_dir=.
4797  for ac_exec_ext in '' $ac_executable_extensions; do
4798  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4800    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801    break 2
4802  fi
4803done
4804done
4805
4806fi
4807fi
4808STRIP=$ac_cv_prog_STRIP
4809if test -n "$STRIP"; then
4810  echo "$as_me:$LINENO: result: $STRIP" >&5
4811echo "${ECHO_T}$STRIP" >&6
4812else
4813  echo "$as_me:$LINENO: result: no" >&5
4814echo "${ECHO_T}no" >&6
4815fi
4816
4817fi
4818if test -z "$ac_cv_prog_STRIP"; then
4819  ac_ct_STRIP=$STRIP
4820  # Extract the first word of "strip", so it can be a program name with args.
4821set dummy strip; ac_word=$2
4822echo "$as_me:$LINENO: checking for $ac_word" >&5
4823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4825  echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827  if test -n "$ac_ct_STRIP"; then
4828  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4829else
4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833  IFS=$as_save_IFS
4834  test -z "$as_dir" && as_dir=.
4835  for ac_exec_ext in '' $ac_executable_extensions; do
4836  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837    ac_cv_prog_ac_ct_STRIP="strip"
4838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839    break 2
4840  fi
4841done
4842done
4843
4844  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4845fi
4846fi
4847ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4848if test -n "$ac_ct_STRIP"; then
4849  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4850echo "${ECHO_T}$ac_ct_STRIP" >&6
4851else
4852  echo "$as_me:$LINENO: result: no" >&5
4853echo "${ECHO_T}no" >&6
4854fi
4855
4856  STRIP=$ac_ct_STRIP
4857else
4858  STRIP="$ac_cv_prog_STRIP"
4859fi
4860
4861fi
4862INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4863
4864# We need awk for the "check" target.  The system "awk" is bad on
4865# some platforms.
4866# Always define AMTAR for backward compatibility.
4867
4868AMTAR=${AMTAR-"${am_missing_run}tar"}
4869
4870am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4871
4872
4873
4874
4875depcc="$CC"   am_compiler_list=
4876
4877echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4878echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4879if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4880  echo $ECHO_N "(cached) $ECHO_C" >&6
4881else
4882  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4883  # We make a subdir and do the tests there.  Otherwise we can end up
4884  # making bogus files that we don't know about and never remove.  For
4885  # instance it was reported that on HP-UX the gcc test will end up
4886  # making a dummy file named `D' -- because `-MD' means `put the output
4887  # in D'.
4888  mkdir conftest.dir
4889  # Copy depcomp to subdir because otherwise we won't find it if we're
4890  # using a relative directory.
4891  cp "$am_depcomp" conftest.dir
4892  cd conftest.dir
4893  # We will build objects and dependencies in a subdirectory because
4894  # it helps to detect inapplicable dependency modes.  For instance
4895  # both Tru64's cc and ICC support -MD to output dependencies as a
4896  # side effect of compilation, but ICC will put the dependencies in
4897  # the current directory while Tru64 will put them in the object
4898  # directory.
4899  mkdir sub
4900
4901  am_cv_CC_dependencies_compiler_type=none
4902  if test "$am_compiler_list" = ""; then
4903     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4904  fi
4905  for depmode in $am_compiler_list; do
4906    # Setup a source with many dependencies, because some compilers
4907    # like to wrap large dependency lists on column 80 (with \), and
4908    # we should not choose a depcomp mode which is confused by this.
4909    #
4910    # We need to recreate these files for each test, as the compiler may
4911    # overwrite some of them when testing with obscure command lines.
4912    # This happens at least with the AIX C compiler.
4913    : > sub/conftest.c
4914    for i in 1 2 3 4 5 6; do
4915      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4916      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4917      # Solaris 8's {/usr,}/bin/sh.
4918      touch sub/conftst$i.h
4919    done
4920    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4921
4922    case $depmode in
4923    nosideeffect)
4924      # after this tag, mechanisms are not by side-effect, so they'll
4925      # only be used when explicitly requested
4926      if test "x$enable_dependency_tracking" = xyes; then
4927        continue
4928      else
4929        break
4930      fi
4931      ;;
4932    none) break ;;
4933    esac
4934    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4935    # mode.  It turns out that the SunPro C++ compiler does not properly
4936    # handle `-M -o', and we need to detect this.
4937    if depmode=$depmode \
4938       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4939       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4940       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4941         >/dev/null 2>conftest.err &&
4942       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4943       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4944       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4945      # icc doesn't choke on unknown options, it will just issue warnings
4946      # or remarks (even with -Werror).  So we grep stderr for any message
4947      # that says an option was ignored or not supported.
4948      # When given -MP, icc 7.0 and 7.1 complain thusly:
4949      #   icc: Command line warning: ignoring option '-M'; no argument required
4950      # The diagnosis changed in icc 8.0:
4951      #   icc: Command line remark: option '-MP' not supported
4952      if (grep 'ignoring option' conftest.err ||
4953          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4954        am_cv_CC_dependencies_compiler_type=$depmode
4955        break
4956      fi
4957    fi
4958  done
4959
4960  cd ..
4961  rm -rf conftest.dir
4962else
4963  am_cv_CC_dependencies_compiler_type=none
4964fi
4965
4966fi
4967echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4968echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4969CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4970
4971
4972
4973if
4974  test "x$enable_dependency_tracking" != xno \
4975  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4976  am__fastdepCC_TRUE=
4977  am__fastdepCC_FALSE='#'
4978else
4979  am__fastdepCC_TRUE='#'
4980  am__fastdepCC_FALSE=
4981fi
4982
4983
4984depcc="$CXX"  am_compiler_list=
4985
4986echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4987echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4988if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4989  echo $ECHO_N "(cached) $ECHO_C" >&6
4990else
4991  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4992  # We make a subdir and do the tests there.  Otherwise we can end up
4993  # making bogus files that we don't know about and never remove.  For
4994  # instance it was reported that on HP-UX the gcc test will end up
4995  # making a dummy file named `D' -- because `-MD' means `put the output
4996  # in D'.
4997  mkdir conftest.dir
4998  # Copy depcomp to subdir because otherwise we won't find it if we're
4999  # using a relative directory.
5000  cp "$am_depcomp" conftest.dir
5001  cd conftest.dir
5002  # We will build objects and dependencies in a subdirectory because
5003  # it helps to detect inapplicable dependency modes.  For instance
5004  # both Tru64's cc and ICC support -MD to output dependencies as a
5005  # side effect of compilation, but ICC will put the dependencies in
5006  # the current directory while Tru64 will put them in the object
5007  # directory.
5008  mkdir sub
5009
5010  am_cv_CXX_dependencies_compiler_type=none
5011  if test "$am_compiler_list" = ""; then
5012     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5013  fi
5014  for depmode in $am_compiler_list; do
5015    # Setup a source with many dependencies, because some compilers
5016    # like to wrap large dependency lists on column 80 (with \), and
5017    # we should not choose a depcomp mode which is confused by this.
5018    #
5019    # We need to recreate these files for each test, as the compiler may
5020    # overwrite some of them when testing with obscure command lines.
5021    # This happens at least with the AIX C compiler.
5022    : > sub/conftest.c
5023    for i in 1 2 3 4 5 6; do
5024      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5025      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5026      # Solaris 8's {/usr,}/bin/sh.
5027      touch sub/conftst$i.h
5028    done
5029    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5030
5031    case $depmode in
5032    nosideeffect)
5033      # after this tag, mechanisms are not by side-effect, so they'll
5034      # only be used when explicitly requested
5035      if test "x$enable_dependency_tracking" = xyes; then
5036        continue
5037      else
5038        break
5039      fi
5040      ;;
5041    none) break ;;
5042    esac
5043    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5044    # mode.  It turns out that the SunPro C++ compiler does not properly
5045    # handle `-M -o', and we need to detect this.
5046    if depmode=$depmode \
5047       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5048       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5049       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5050         >/dev/null 2>conftest.err &&
5051       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5052       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5053       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5054      # icc doesn't choke on unknown options, it will just issue warnings
5055      # or remarks (even with -Werror).  So we grep stderr for any message
5056      # that says an option was ignored or not supported.
5057      # When given -MP, icc 7.0 and 7.1 complain thusly:
5058      #   icc: Command line warning: ignoring option '-M'; no argument required
5059      # The diagnosis changed in icc 8.0:
5060      #   icc: Command line remark: option '-MP' not supported
5061      if (grep 'ignoring option' conftest.err ||
5062          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5063        am_cv_CXX_dependencies_compiler_type=$depmode
5064        break
5065      fi
5066    fi
5067  done
5068
5069  cd ..
5070  rm -rf conftest.dir
5071else
5072  am_cv_CXX_dependencies_compiler_type=none
5073fi
5074
5075fi
5076echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5077echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5078CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5079
5080
5081
5082if
5083  test "x$enable_dependency_tracking" != xno \
5084  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5085  am__fastdepCXX_TRUE=
5086  am__fastdepCXX_FALSE='#'
5087else
5088  am__fastdepCXX_TRUE='#'
5089  am__fastdepCXX_FALSE=
5090fi
5091
5092
5093
5094echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5095echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5096    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5097if test "${enable_maintainer_mode+set}" = set; then
5098  enableval="$enable_maintainer_mode"
5099  USE_MAINTAINER_MODE=$enableval
5100else
5101  USE_MAINTAINER_MODE=no
5102fi;
5103  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5104echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5105
5106
5107if test $USE_MAINTAINER_MODE = yes; then
5108  MAINTAINER_MODE_TRUE=
5109  MAINTAINER_MODE_FALSE='#'
5110else
5111  MAINTAINER_MODE_TRUE='#'
5112  MAINTAINER_MODE_FALSE=
5113fi
5114
5115  MAINT=$MAINTAINER_MODE_TRUE
5116
5117
5118
5119coin_have_externals=no
5120if test "$enable_maintainer_mode" = yes; then
5121
5122  # If maintainer mode is chosen, we make sure that the correct versions
5123  # of the tools are used, and that we know where libtool.m4 is (to
5124  # recreate acinclude.m4)
5125
5126
5127  LIBTOOLM4=
5128  # Normally, $HOME
5129  AUTOTOOLS_DFLT=$HOME
5130
5131  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5132echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5133if test "${ac_cv_use_correct_autotools+set}" = set; then
5134  echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136  ac_cv_use_correct_autotools=check
5137fi
5138echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5139echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5140
5141  if test $ac_cv_use_correct_autotools = check; then
5142    ac_cv_use_correct_autotools=yes
5143    # Check if we have autoconf
5144    # Extract the first word of "autoconf", so it can be a program name with args.
5145set dummy autoconf; ac_word=$2
5146echo "$as_me:$LINENO: checking for $ac_word" >&5
5147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5148if test "${ac_cv_prog_have_autoconf+set}" = set; then
5149  echo $ECHO_N "(cached) $ECHO_C" >&6
5150else
5151  if test -n "$have_autoconf"; then
5152  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5153else
5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155for as_dir in $PATH
5156do
5157  IFS=$as_save_IFS
5158  test -z "$as_dir" && as_dir=.
5159  for ac_exec_ext in '' $ac_executable_extensions; do
5160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5161    ac_cv_prog_have_autoconf="yes"
5162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163    break 2
5164  fi
5165done
5166done
5167
5168  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5169fi
5170fi
5171have_autoconf=$ac_cv_prog_have_autoconf
5172if test -n "$have_autoconf"; then
5173  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5174echo "${ECHO_T}$have_autoconf" >&6
5175else
5176  echo "$as_me:$LINENO: result: no" >&5
5177echo "${ECHO_T}no" >&6
5178fi
5179
5180    if test $have_autoconf = no; then
5181      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5182echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5183   { (exit 1); exit 1; }; }
5184    fi
5185
5186    # Check whether autoconf is the correct version
5187    correct_version='2.59'
5188    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5189    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5190echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5191    autoconf --version > confauto.out 2>&1
5192    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5193      echo "$as_me:$LINENO: result: yes" >&5
5194echo "${ECHO_T}yes" >&6
5195    else
5196      rm -f confauto.out
5197      echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5200echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5201   { (exit 1); exit 1; }; }
5202    fi
5203    rm -f confauto.out
5204
5205    # Check if the executable autoconf is picked up from the correct location
5206    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5207echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5208    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5209    autoconf_dir=`cd $autoconf_dir; pwd`
5210    if test x$AUTOTOOLS_DIR = x; then
5211      want_dir=$AUTOTOOLS_DFLT/bin
5212    else
5213      want_dir=$AUTOTOOLS_DIR/bin
5214    fi
5215    if test $autoconf_dir = `cd $want_dir; pwd`; then
5216      echo "$as_me:$LINENO: result: yes" >&5
5217echo "${ECHO_T}yes" >&6
5218    else
5219      rm -f confauto.out
5220      echo "$as_me:$LINENO: result: no" >&5
5221echo "${ECHO_T}no" >&6
5222      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5223echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5224   { (exit 1); exit 1; }; }
5225    fi
5226
5227    # Check if we have automake
5228    # Extract the first word of "automake", so it can be a program name with args.
5229set dummy automake; ac_word=$2
5230echo "$as_me:$LINENO: checking for $ac_word" >&5
5231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5232if test "${ac_cv_prog_have_automake+set}" = set; then
5233  echo $ECHO_N "(cached) $ECHO_C" >&6
5234else
5235  if test -n "$have_automake"; then
5236  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5237else
5238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239for as_dir in $PATH
5240do
5241  IFS=$as_save_IFS
5242  test -z "$as_dir" && as_dir=.
5243  for ac_exec_ext in '' $ac_executable_extensions; do
5244  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5245    ac_cv_prog_have_automake="yes"
5246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247    break 2
5248  fi
5249done
5250done
5251
5252  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5253fi
5254fi
5255have_automake=$ac_cv_prog_have_automake
5256if test -n "$have_automake"; then
5257  echo "$as_me:$LINENO: result: $have_automake" >&5
5258echo "${ECHO_T}$have_automake" >&6
5259else
5260  echo "$as_me:$LINENO: result: no" >&5
5261echo "${ECHO_T}no" >&6
5262fi
5263
5264    if test $have_automake = no; then
5265      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5266echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5267   { (exit 1); exit 1; }; }
5268    fi
5269
5270    # Check whether automake is the correct version
5271    correct_version='1.9.6'
5272    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5273    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5274echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5275    automake --version > confauto.out 2>&1
5276    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5277      echo "$as_me:$LINENO: result: yes" >&5
5278echo "${ECHO_T}yes" >&6
5279    else
5280      rm -f confauto.out
5281      echo "$as_me:$LINENO: result: no" >&5
5282echo "${ECHO_T}no" >&6
5283      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5284echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5285   { (exit 1); exit 1; }; }
5286    fi
5287    rm -f confauto.out
5288
5289    # Check if the executable automake is picked up from the correct location
5290    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5291echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5292    automake_dir=`which automake | sed -e 's=/automake=='`
5293    automake_dir=`cd $automake_dir; pwd`
5294    if test x$AUTOTOOLS_DIR = x; then
5295      want_dir=$AUTOTOOLS_DFLT/bin
5296    else
5297      want_dir=$AUTOTOOLS_DIR/bin
5298    fi
5299    if test $automake_dir = `cd $want_dir; pwd`; then
5300      echo "$as_me:$LINENO: result: yes" >&5
5301echo "${ECHO_T}yes" >&6
5302    else
5303      rm -f confauto.out
5304      echo "$as_me:$LINENO: result: no" >&5
5305echo "${ECHO_T}no" >&6
5306      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5307echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5308   { (exit 1); exit 1; }; }
5309    fi
5310
5311    # Check if this is the correct version of libtool (with escaped dots)
5312    if test x$AUTOTOOLS_DIR = x; then
5313      want_dir=$AUTOTOOLS_DFLT/share
5314    else
5315      want_dir=$AUTOTOOLS_DIR/share
5316    fi
5317    correct_version='1.5.22'
5318    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5319    if test -r $want_dir/libtool/ltmain.sh; then
5320  have_ltmain=yes
5321  :
5322else
5323  have_ltmain=no
5324  :
5325fi
5326
5327    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5328echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5329    if test $have_ltmain = yes; then
5330    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5331        echo "$as_me:$LINENO: result: yes" >&5
5332echo "${ECHO_T}yes" >&6
5333      else
5334        echo "$as_me:$LINENO: result: no" >&5
5335echo "${ECHO_T}no" >&6
5336        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5337echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5338   { (exit 1); exit 1; }; }
5339      fi
5340    else
5341      echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
5343      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5344echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5345   { (exit 1); exit 1; }; }
5346    fi
5347  fi
5348
5349  # Check if we can find the libtool file
5350  if test x$AUTOTOOLS_DIR = x; then
5351    want_dir=$AUTOTOOLS_DFLT/share
5352  else
5353    want_dir=$AUTOTOOLS_DIR/share
5354  fi
5355  if test -r $want_dir/aclocal/libtool.m4; then
5356  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5357  :
5358else
5359  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5360echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5361   { (exit 1); exit 1; }; }
5362  :
5363fi
5364
5365
5366  # Check if we have an Dependencies file
5367  if test -r $srcdir/Dependencies; then
5368    coin_have_externals=yes
5369  fi
5370  # Check if subversion is installed and understands https
5371  # Extract the first word of "svn", so it can be a program name with args.
5372set dummy svn; ac_word=$2
5373echo "$as_me:$LINENO: checking for $ac_word" >&5
5374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5375if test "${ac_cv_prog_have_svn+set}" = set; then
5376  echo $ECHO_N "(cached) $ECHO_C" >&6
5377else
5378  if test -n "$have_svn"; then
5379  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5380else
5381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH
5383do
5384  IFS=$as_save_IFS
5385  test -z "$as_dir" && as_dir=.
5386  for ac_exec_ext in '' $ac_executable_extensions; do
5387  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388    ac_cv_prog_have_svn="yes"
5389    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390    break 2
5391  fi
5392done
5393done
5394
5395  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5396fi
5397fi
5398have_svn=$ac_cv_prog_have_svn
5399if test -n "$have_svn"; then
5400  echo "$as_me:$LINENO: result: $have_svn" >&5
5401echo "${ECHO_T}$have_svn" >&6
5402else
5403  echo "$as_me:$LINENO: result: no" >&5
5404echo "${ECHO_T}no" >&6
5405fi
5406
5407  if test x$have_svn = xyes; then
5408    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5409echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5410if test "${ac_cv_svn_understands_https+set}" = set; then
5411  echo $ECHO_N "(cached) $ECHO_C" >&6
5412else
5413  svn --version > confauto.out 2>&1
5414                    if $EGREP https confauto.out >/dev/null 2>&1; then
5415                      ac_cv_svn_understands_https=yes
5416                    else
5417                      ac_cv_svn_understands_https=no
5418                      have_svn=no
5419                      ac_cv_prog_have_svn=no
5420                    fi
5421                    rm -f confauto.out
5422fi
5423echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5424echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5425  fi
5426
5427  # Find the location of the BuildTools directory
5428  BUILDTOOLSDIR=
5429  if test -r $srcdir/BuildTools/coin.m4; then
5430    BUILDTOOLSDIR=$srcdir/BuildTools
5431  else
5432    if test -r $srcdir/../BuildTools/coin.m4; then
5433      BUILDTOOLSDIR=$srcdir/../BuildTools
5434    else
5435      if test -r $srcdir/../../BuildTools/coin.m4; then
5436        BUILDTOOLSDIR=$srcdir/../../BuildTools
5437      else
5438        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5439echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5440   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5441      fi
5442    fi
5443  fi
5444
5445
5446  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5447  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5448    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5449  fi
5450
5451  # The following variable is set to the name of the directory where
5452  # the autotool scripts are located
5453
5454  AUX_DIR=$ac_aux_dir
5455fi
5456
5457# helpful variable for the base directory of this package
5458abs_source_dir=`cd $srcdir; pwd`
5459
5460
5461# Stuff for example Makefiles
5462if test x$prefix = xNONE; then
5463  full_prefix=$ac_default_prefix
5464else
5465  full_prefix=$prefix
5466fi
5467full_prefix=`cd $full_prefix ; pwd`
5468
5469abs_lib_dir=$full_prefix/lib
5470
5471abs_include_dir=$full_prefix/include
5472
5473abs_bin_dir=$full_prefix/bin
5474
5475
5476
5477if test $coin_have_externals = yes && test x$have_svn = xyes; then
5478  HAVE_EXTERNALS_TRUE=
5479  HAVE_EXTERNALS_FALSE='#'
5480else
5481  HAVE_EXTERNALS_TRUE='#'
5482  HAVE_EXTERNALS_FALSE=
5483fi
5484
5485
5486# AC_MSG_NOTICE([End automake initialisation.])
5487
5488
5489
5490LIBTOOL=
5491if test -f ../libtool; then
5492  coin_config_dir=..
5493  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5494fi
5495if test "x$LIBTOOL" = x; then
5496  if test -f ../../libtool; then
5497    coin_config_dir=../..
5498    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5499  fi
5500fi
5501
5502if test "x$LIBTOOL" = x; then
5503# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5504  # Stuff for libtool
5505  # Check whether --enable-shared or --disable-shared was given.
5506if test "${enable_shared+set}" = set; then
5507  enableval="$enable_shared"
5508  p=${PACKAGE-default}
5509    case $enableval in
5510    yes) enable_shared=yes ;;
5511    no) enable_shared=no ;;
5512    *)
5513      enable_shared=no
5514      # Look at the argument we got.  We use all the common list separators.
5515      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5516      for pkg in $enableval; do
5517        IFS="$lt_save_ifs"
5518        if test "X$pkg" = "X$p"; then
5519          enable_shared=yes
5520        fi
5521      done
5522      IFS="$lt_save_ifs"
5523      ;;
5524    esac
5525else
5526  enable_shared=yes
5527fi;
5528
5529# Check whether --enable-fast-install or --disable-fast-install was given.
5530if test "${enable_fast_install+set}" = set; then
5531  enableval="$enable_fast_install"
5532  p=${PACKAGE-default}
5533    case $enableval in
5534    yes) enable_fast_install=yes ;;
5535    no) enable_fast_install=no ;;
5536    *)
5537      enable_fast_install=no
5538      # Look at the argument we got.  We use all the common list separators.
5539      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5540      for pkg in $enableval; do
5541        IFS="$lt_save_ifs"
5542        if test "X$pkg" = "X$p"; then
5543          enable_fast_install=yes
5544        fi
5545      done
5546      IFS="$lt_save_ifs"
5547      ;;
5548    esac
5549else
5550  enable_fast_install=yes
5551fi;
5552
5553echo "$as_me:$LINENO: checking host system type" >&5
5554echo $ECHO_N "checking host system type... $ECHO_C" >&6
5555if test "${ac_cv_host+set}" = set; then
5556  echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558  ac_cv_host_alias=$host_alias
5559test -z "$ac_cv_host_alias" &&
5560  ac_cv_host_alias=$ac_cv_build_alias
5561ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5562  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5563echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5564   { (exit 1); exit 1; }; }
5565
5566fi
5567echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5568echo "${ECHO_T}$ac_cv_host" >&6
5569host=$ac_cv_host
5570host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5571host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5572host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5573
5574
5575echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5576echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5577if test "${lt_cv_path_SED+set}" = set; then
5578  echo $ECHO_N "(cached) $ECHO_C" >&6
5579else
5580  # Loop through the user's path and test for sed and gsed.
5581# Then use that list of sed's as ones to test for truncation.
5582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583for as_dir in $PATH
5584do
5585  IFS=$as_save_IFS
5586  test -z "$as_dir" && as_dir=.
5587  for lt_ac_prog in sed gsed; do
5588    for ac_exec_ext in '' $ac_executable_extensions; do
5589      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5590        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5591      fi
5592    done
5593  done
5594done
5595lt_ac_max=0
5596lt_ac_count=0
5597# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5598# along with /bin/sed that truncates output.
5599for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5600  test ! -f $lt_ac_sed && continue
5601  cat /dev/null > conftest.in
5602  lt_ac_count=0
5603  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5604  # Check for GNU sed and select it if it is found.
5605  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5606    lt_cv_path_SED=$lt_ac_sed
5607    break
5608  fi
5609  while true; do
5610    cat conftest.in conftest.in >conftest.tmp
5611    mv conftest.tmp conftest.in
5612    cp conftest.in conftest.nl
5613    echo >>conftest.nl
5614    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5615    cmp -s conftest.out conftest.nl || break
5616    # 10000 chars as input seems more than enough
5617    test $lt_ac_count -gt 10 && break
5618    lt_ac_count=`expr $lt_ac_count + 1`
5619    if test $lt_ac_count -gt $lt_ac_max; then
5620      lt_ac_max=$lt_ac_count
5621      lt_cv_path_SED=$lt_ac_sed
5622    fi
5623  done
5624done
5625
5626fi
5627
5628SED=$lt_cv_path_SED
5629echo "$as_me:$LINENO: result: $SED" >&5
5630echo "${ECHO_T}$SED" >&6
5631
5632
5633# Check whether --with-gnu-ld or --without-gnu-ld was given.
5634if test "${with_gnu_ld+set}" = set; then
5635  withval="$with_gnu_ld"
5636  test "$withval" = no || with_gnu_ld=yes
5637else
5638  with_gnu_ld=no
5639fi;
5640ac_prog=ld
5641if test "$GCC" = yes; then
5642  # Check if gcc -print-prog-name=ld gives a path.
5643  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5644echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5645  case $host in
5646  *-*-mingw*)
5647    # gcc leaves a trailing carriage return which upsets mingw
5648    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5649  *)
5650    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5651  esac
5652  case $ac_prog in
5653    # Accept absolute paths.
5654    [\\/]* | ?:[\\/]*)
5655      re_direlt='/[^/][^/]*/\.\./'
5656      # Canonicalize the pathname of ld
5657      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5658      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5659        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5660      done
5661      test -z "$LD" && LD="$ac_prog"
5662      ;;
5663  "")
5664    # If it fails, then pretend we aren't using GCC.
5665    ac_prog=ld
5666    ;;
5667  *)
5668    # If it is relative, then search for the first ld in PATH.
5669    with_gnu_ld=unknown
5670    ;;
5671  esac
5672elif test "$with_gnu_ld" = yes; then
5673  echo "$as_me:$LINENO: checking for GNU ld" >&5
5674echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5675else
5676  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5677echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5678fi
5679if test "${lt_cv_path_LD+set}" = set; then
5680  echo $ECHO_N "(cached) $ECHO_C" >&6
5681else
5682  if test -z "$LD"; then
5683  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5684  for ac_dir in $PATH; do
5685    IFS="$lt_save_ifs"
5686    test -z "$ac_dir" && ac_dir=.
5687    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5688      lt_cv_path_LD="$ac_dir/$ac_prog"
5689      # Check to see if the program is GNU ld.  I'd rather use --version,
5690      # but apparently some variants of GNU ld only accept -v.
5691      # Break only if it was the GNU/non-GNU ld that we prefer.
5692      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5693      *GNU* | *'with BFD'*)
5694        test "$with_gnu_ld" != no && break
5695        ;;
5696      *)
5697        test "$with_gnu_ld" != yes && break
5698        ;;
5699      esac
5700    fi
5701  done
5702  IFS="$lt_save_ifs"
5703else
5704  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5705fi
5706fi
5707
5708LD="$lt_cv_path_LD"
5709if test -n "$LD"; then
5710  echo "$as_me:$LINENO: result: $LD" >&5
5711echo "${ECHO_T}$LD" >&6
5712else
5713  echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6
5715fi
5716test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5717echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5718   { (exit 1); exit 1; }; }
5719echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5720echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5721if test "${lt_cv_prog_gnu_ld+set}" = set; then
5722  echo $ECHO_N "(cached) $ECHO_C" >&6
5723else
5724  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5725case `$LD -v 2>&1 </dev/null` in
5726*GNU* | *'with BFD'*)
5727  lt_cv_prog_gnu_ld=yes
5728  ;;
5729*)
5730  lt_cv_prog_gnu_ld=no
5731  ;;
5732esac
5733fi
5734echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5735echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5736with_gnu_ld=$lt_cv_prog_gnu_ld
5737
5738
5739echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5740echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5741if test "${lt_cv_ld_reload_flag+set}" = set; then
5742  echo $ECHO_N "(cached) $ECHO_C" >&6
5743else
5744  lt_cv_ld_reload_flag='-r'
5745fi
5746echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5747echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5748reload_flag=$lt_cv_ld_reload_flag
5749case $reload_flag in
5750"" | " "*) ;;
5751*) reload_flag=" $reload_flag" ;;
5752esac
5753reload_cmds='$LD$reload_flag -o $output$reload_objs'
5754case $host_os in
5755  darwin*)
5756    if test "$GCC" = yes; then
5757      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5758    else
5759      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5760    fi
5761    ;;
5762esac
5763
5764echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5765echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5766if test "${lt_cv_path_NM+set}" = set; then
5767  echo $ECHO_N "(cached) $ECHO_C" >&6
5768else
5769  if test -n "$NM"; then
5770  # Let the user override the test.
5771  lt_cv_path_NM="$NM"
5772else
5773  lt_nm_to_check="${ac_tool_prefix}nm"
5774  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5775    lt_nm_to_check="$lt_nm_to_check nm"
5776  fi
5777  for lt_tmp_nm in $lt_nm_to_check; do
5778    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5780      IFS="$lt_save_ifs"
5781      test -z "$ac_dir" && ac_dir=.
5782      tmp_nm="$ac_dir/$lt_tmp_nm"
5783      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5784        # Check to see if the nm accepts a BSD-compat flag.
5785        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5786        #   nm: unknown option "B" ignored
5787        # Tru64's nm complains that /dev/null is an invalid object file
5788        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5789        */dev/null* | *'Invalid file or object type'*)
5790          lt_cv_path_NM="$tmp_nm -B"
5791          break
5792          ;;
5793        *)
5794          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5795          */dev/null*)
5796            lt_cv_path_NM="$tmp_nm -p"
5797            break
5798            ;;
5799          *)
5800            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5801            continue # so that we can try to find one that supports BSD flags
5802            ;;
5803          esac
5804          ;;
5805        esac
5806      fi
5807    done
5808    IFS="$lt_save_ifs"
5809  done
5810  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5811fi
5812fi
5813echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5814echo "${ECHO_T}$lt_cv_path_NM" >&6
5815NM="$lt_cv_path_NM"
5816
5817echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5818echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5819if test "${lt_cv_deplibs_check_method+set}" = set; then
5820  echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822  lt_cv_file_magic_cmd='$MAGIC_CMD'
5823lt_cv_file_magic_test_file=
5824lt_cv_deplibs_check_method='unknown'
5825# Need to set the preceding variable on all platforms that support
5826# interlibrary dependencies.
5827# 'none' -- dependencies not supported.
5828# `unknown' -- same as none, but documents that we really don't know.
5829# 'pass_all' -- all dependencies passed with no checks.
5830# 'test_compile' -- check by making test program.
5831# 'file_magic [[regex]]' -- check by looking for files in library path
5832# which responds to the $file_magic_cmd with a given extended regex.
5833# If you have `file' or equivalent on your system and you're not sure
5834# whether `pass_all' will *always* work, you probably want this one.
5835
5836case $host_os in
5837aix4* | aix5*)
5838  lt_cv_deplibs_check_method=pass_all
5839  ;;
5840
5841beos*)
5842  lt_cv_deplibs_check_method=pass_all
5843  ;;
5844
5845bsdi[45]*)
5846  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5847  lt_cv_file_magic_cmd='/usr/bin/file -L'
5848  lt_cv_file_magic_test_file=/shlib/libc.so
5849  ;;
5850
5851cygwin*)
5852  # func_win32_libid is a shell function defined in ltmain.sh
5853  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5854  lt_cv_file_magic_cmd='func_win32_libid'
5855  ;;
5856
5857mingw* | pw32*)
5858  # Base MSYS/MinGW do not provide the 'file' command needed by
5859  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5860  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5861  lt_cv_file_magic_cmd='$OBJDUMP -f'
5862  ;;
5863
5864darwin* | rhapsody*)
5865  lt_cv_deplibs_check_method=pass_all
5866  ;;
5867
5868freebsd* | kfreebsd*-gnu | dragonfly*)
5869  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5870    case $host_cpu in
5871    i*86 )
5872      # Not sure whether the presence of OpenBSD here was a mistake.
5873      # Let's accept both of them until this is cleared up.
5874      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5875      lt_cv_file_magic_cmd=/usr/bin/file
5876      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5877      ;;
5878    esac
5879  else
5880    lt_cv_deplibs_check_method=pass_all
5881  fi
5882  ;;
5883
5884gnu*)
5885  lt_cv_deplibs_check_method=pass_all
5886  ;;
5887
5888hpux10.20* | hpux11*)
5889  lt_cv_file_magic_cmd=/usr/bin/file
5890  case $host_cpu in
5891  ia64*)
5892    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5893    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5894    ;;
5895  hppa*64*)
5896    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]'
5897    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5898    ;;
5899  *)
5900    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5901    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5902    ;;
5903  esac
5904  ;;
5905
5906interix3*)
5907  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5908  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5909  ;;
5910
5911irix5* | irix6* | nonstopux*)
5912  case $LD in
5913  *-32|*"-32 ") libmagic=32-bit;;
5914  *-n32|*"-n32 ") libmagic=N32;;
5915  *-64|*"-64 ") libmagic=64-bit;;
5916  *) libmagic=never-match;;
5917  esac
5918  lt_cv_deplibs_check_method=pass_all
5919  ;;
5920
5921# This must be Linux ELF.
5922linux*)
5923  lt_cv_deplibs_check_method=pass_all
5924  ;;
5925
5926netbsd*)
5927  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5928    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5929  else
5930    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5931  fi
5932  ;;
5933
5934newos6*)
5935  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5936  lt_cv_file_magic_cmd=/usr/bin/file
5937  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5938  ;;
5939
5940nto-qnx*)
5941  lt_cv_deplibs_check_method=unknown
5942  ;;
5943
5944openbsd*)
5945  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5946    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5947  else
5948    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5949  fi
5950  ;;
5951
5952osf3* | osf4* | osf5*)
5953  lt_cv_deplibs_check_method=pass_all
5954  ;;
5955
5956solaris*)
5957  lt_cv_deplibs_check_method=pass_all
5958  ;;
5959
5960sysv4 | sysv4.3*)
5961  case $host_vendor in
5962  motorola)
5963    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]'
5964    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5965    ;;
5966  ncr)
5967    lt_cv_deplibs_check_method=pass_all
5968    ;;
5969  sequent)
5970    lt_cv_file_magic_cmd='/bin/file'
5971    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5972    ;;
5973  sni)
5974    lt_cv_file_magic_cmd='/bin/file'
5975    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5976    lt_cv_file_magic_test_file=/lib/libc.so
5977    ;;
5978  siemens)
5979    lt_cv_deplibs_check_method=pass_all
5980    ;;
5981  pc)
5982    lt_cv_deplibs_check_method=pass_all
5983    ;;
5984  esac
5985  ;;
5986
5987sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5988  lt_cv_deplibs_check_method=pass_all
5989  ;;
5990esac
5991
5992fi
5993echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5994echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5995file_magic_cmd=$lt_cv_file_magic_cmd
5996deplibs_check_method=$lt_cv_deplibs_check_method
5997test -z "$deplibs_check_method" && deplibs_check_method=unknown
5998
5999
6000
6001
6002# If no C compiler was specified, use CC.
6003LTCC=${LTCC-"$CC"}
6004
6005# If no C compiler flags were specified, use CFLAGS.
6006LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6007
6008# Allow CC to be a program name with arguments.
6009compiler=$CC
6010
6011# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6012if test "${enable_libtool_lock+set}" = set; then
6013  enableval="$enable_libtool_lock"
6014
6015fi;
6016test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6017
6018# Some flags need to be propagated to the compiler or linker for good
6019# libtool support.
6020case $host in
6021ia64-*-hpux*)
6022  # Find out which ABI we are using.
6023  echo 'int i;' > conftest.$ac_ext
6024  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6025  (eval $ac_compile) 2>&5
6026  ac_status=$?
6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028  (exit $ac_status); }; then
6029    case `/usr/bin/file conftest.$ac_objext` in
6030    *ELF-32*)
6031      HPUX_IA64_MODE="32"
6032      ;;
6033    *ELF-64*)
6034      HPUX_IA64_MODE="64"
6035      ;;
6036    esac
6037  fi
6038  rm -rf conftest*
6039  ;;
6040*-*-irix6*)
6041  # Find out which ABI we are using.
6042  echo '#line 6042 "configure"' > conftest.$ac_ext
6043  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044  (eval $ac_compile) 2>&5
6045  ac_status=$?
6046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047  (exit $ac_status); }; then
6048   if test "$lt_cv_prog_gnu_ld" = yes; then
6049    case `/usr/bin/file conftest.$ac_objext` in
6050    *32-bit*)
6051      LD="${LD-ld} -melf32bsmip"
6052      ;;
6053    *N32*)
6054      LD="${LD-ld} -melf32bmipn32"
6055      ;;
6056    *64-bit*)
6057      LD="${LD-ld} -melf64bmip"
6058      ;;
6059    esac
6060   else
6061    case `/usr/bin/file conftest.$ac_objext` in
6062    *32-bit*)
6063      LD="${LD-ld} -32"
6064      ;;
6065    *N32*)
6066      LD="${LD-ld} -n32"
6067      ;;
6068    *64-bit*)
6069      LD="${LD-ld} -64"
6070      ;;
6071    esac
6072   fi
6073  fi
6074  rm -rf conftest*
6075  ;;
6076
6077x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6078  # Find out which ABI we are using.
6079  echo 'int i;' > conftest.$ac_ext
6080  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6081  (eval $ac_compile) 2>&5
6082  ac_status=$?
6083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084  (exit $ac_status); }; then
6085    case `/usr/bin/file conftest.o` in
6086    *32-bit*)
6087      case $host in
6088        x86_64-*linux*)
6089          LD="${LD-ld} -m elf_i386"
6090          ;;
6091        ppc64-*linux*|powerpc64-*linux*)
6092          LD="${LD-ld} -m elf32ppclinux"
6093          ;;
6094        s390x-*linux*)
6095          LD="${LD-ld} -m elf_s390"
6096          ;;
6097        sparc64-*linux*)
6098          LD="${LD-ld} -m elf32_sparc"
6099          ;;
6100      esac
6101      ;;
6102    *64-bit*)
6103      case $host in
6104        x86_64-*linux*)
6105          LD="${LD-ld} -m elf_x86_64"
6106          ;;
6107        ppc*-*linux*|powerpc*-*linux*)
6108          LD="${LD-ld} -m elf64ppc"
6109          ;;
6110        s390*-*linux*)
6111          LD="${LD-ld} -m elf64_s390"
6112          ;;
6113        sparc*-*linux*)
6114          LD="${LD-ld} -m elf64_sparc"
6115          ;;
6116      esac
6117      ;;
6118    esac
6119  fi
6120  rm -rf conftest*
6121  ;;
6122
6123*-*-sco3.2v5*)
6124  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6125  SAVE_CFLAGS="$CFLAGS"
6126  CFLAGS="$CFLAGS -belf"
6127  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6128echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6129if test "${lt_cv_cc_needs_belf+set}" = set; then
6130  echo $ECHO_N "(cached) $ECHO_C" >&6
6131else
6132  ac_ext=c
6133ac_cpp='$CPP $CPPFLAGS'
6134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137
6138     cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h.  */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h.  */
6144
6145int
6146main ()
6147{
6148
6149  ;
6150  return 0;
6151}
6152_ACEOF
6153rm -f conftest.$ac_objext conftest$ac_exeext
6154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155  (eval $ac_link) 2>conftest.er1
6156  ac_status=$?
6157  grep -v '^ *+' conftest.er1 >conftest.err
6158  rm -f conftest.er1
6159  cat conftest.err >&5
6160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161  (exit $ac_status); } &&
6162         { ac_try='test -z "$ac_c_werror_flag"
6163                         || test ! -s conftest.err'
6164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6165  (eval $ac_try) 2>&5
6166  ac_status=$?
6167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168  (exit $ac_status); }; } &&
6169         { ac_try='test -s conftest$ac_exeext'
6170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171  (eval $ac_try) 2>&5
6172  ac_status=$?
6173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174  (exit $ac_status); }; }; then
6175  lt_cv_cc_needs_belf=yes
6176else
6177  echo "$as_me: failed program was:" >&5
6178sed 's/^/| /' conftest.$ac_ext >&5
6179
6180lt_cv_cc_needs_belf=no
6181fi
6182rm -f conftest.err conftest.$ac_objext \
6183      conftest$ac_exeext conftest.$ac_ext
6184     ac_ext=c
6185ac_cpp='$CPP $CPPFLAGS'
6186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6188ac_compiler_gnu=$ac_cv_c_compiler_gnu
6189
6190fi
6191echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6192echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6193  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6194    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6195    CFLAGS="$SAVE_CFLAGS"
6196  fi
6197  ;;
6198sparc*-*solaris*)
6199  # Find out which ABI we are using.
6200  echo 'int i;' > conftest.$ac_ext
6201  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202  (eval $ac_compile) 2>&5
6203  ac_status=$?
6204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205  (exit $ac_status); }; then
6206    case `/usr/bin/file conftest.o` in
6207    *64-bit*)
6208      case $lt_cv_prog_gnu_ld in
6209      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6210      *)    LD="${LD-ld} -64" ;;
6211      esac
6212      ;;
6213    esac
6214  fi
6215  rm -rf conftest*
6216  ;;
6217
6218
6219esac
6220
6221need_locks="$enable_libtool_lock"
6222
6223
6224ac_ext=c
6225ac_cpp='$CPP $CPPFLAGS'
6226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6228ac_compiler_gnu=$ac_cv_c_compiler_gnu
6229echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6230echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6231# On Suns, sometimes $CPP names a directory.
6232if test -n "$CPP" && test -d "$CPP"; then
6233  CPP=
6234fi
6235if test -z "$CPP"; then
6236  if test "${ac_cv_prog_CPP+set}" = set; then
6237  echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239      # Double quotes because CPP needs to be expanded
6240    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6241    do
6242      ac_preproc_ok=false
6243for ac_c_preproc_warn_flag in '' yes
6244do
6245  # Use a header file that comes with gcc, so configuring glibc
6246  # with a fresh cross-compiler works.
6247  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6248  # <limits.h> exists even on freestanding compilers.
6249  # On the NeXT, cc -E runs the code through the compiler's parser,
6250  # not just through cpp. "Syntax error" is here to catch this case.
6251  cat >conftest.$ac_ext <<_ACEOF
6252/* confdefs.h.  */
6253_ACEOF
6254cat confdefs.h >>conftest.$ac_ext
6255cat >>conftest.$ac_ext <<_ACEOF
6256/* end confdefs.h.  */
6257#ifdef __STDC__
6258# include <limits.h>
6259#else
6260# include <assert.h>
6261#endif
6262                     Syntax error
6263_ACEOF
6264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6265  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6266  ac_status=$?
6267  grep -v '^ *+' conftest.er1 >conftest.err
6268  rm -f conftest.er1
6269  cat conftest.err >&5
6270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271  (exit $ac_status); } >/dev/null; then
6272  if test -s conftest.err; then
6273    ac_cpp_err=$ac_c_preproc_warn_flag
6274    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6275  else
6276    ac_cpp_err=
6277  fi
6278else
6279  ac_cpp_err=yes
6280fi
6281if test -z "$ac_cpp_err"; then
6282  :
6283else
6284  echo "$as_me: failed program was:" >&5
6285sed 's/^/| /' conftest.$ac_ext >&5
6286
6287  # Broken: fails on valid input.
6288continue
6289fi
6290rm -f conftest.err conftest.$ac_ext
6291
6292  # OK, works on sane cases.  Now check whether non-existent headers
6293  # can be detected and how.
6294  cat >conftest.$ac_ext <<_ACEOF
6295/* confdefs.h.  */
6296_ACEOF
6297cat confdefs.h >>conftest.$ac_ext
6298cat >>conftest.$ac_ext <<_ACEOF
6299/* end confdefs.h.  */
6300#include <ac_nonexistent.h>
6301_ACEOF
6302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6303  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6304  ac_status=$?
6305  grep -v '^ *+' conftest.er1 >conftest.err
6306  rm -f conftest.er1
6307  cat conftest.err >&5
6308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6309  (exit $ac_status); } >/dev/null; then
6310  if test -s conftest.err; then
6311    ac_cpp_err=$ac_c_preproc_warn_flag
6312    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6313  else
6314    ac_cpp_err=
6315  fi
6316else
6317  ac_cpp_err=yes
6318fi
6319if test -z "$ac_cpp_err"; then
6320  # Broken: success on invalid input.
6321continue
6322else
6323  echo "$as_me: failed program was:" >&5
6324sed 's/^/| /' conftest.$ac_ext >&5
6325
6326  # Passes both tests.
6327ac_preproc_ok=:
6328break
6329fi
6330rm -f conftest.err conftest.$ac_ext
6331
6332done
6333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6334rm -f conftest.err conftest.$ac_ext
6335if $ac_preproc_ok; then
6336  break
6337fi
6338
6339    done
6340    ac_cv_prog_CPP=$CPP
6341
6342fi
6343  CPP=$ac_cv_prog_CPP
6344else
6345  ac_cv_prog_CPP=$CPP
6346fi
6347echo "$as_me:$LINENO: result: $CPP" >&5
6348echo "${ECHO_T}$CPP" >&6
6349ac_preproc_ok=false
6350for ac_c_preproc_warn_flag in '' yes
6351do
6352  # Use a header file that comes with gcc, so configuring glibc
6353  # with a fresh cross-compiler works.
6354  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6355  # <limits.h> exists even on freestanding compilers.
6356  # On the NeXT, cc -E runs the code through the compiler's parser,
6357  # not just through cpp. "Syntax error" is here to catch this case.
6358  cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h.  */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h.  */
6364#ifdef __STDC__
6365# include <limits.h>
6366#else
6367# include <assert.h>
6368#endif
6369                     Syntax error
6370_ACEOF
6371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6372  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6373  ac_status=$?
6374  grep -v '^ *+' conftest.er1 >conftest.err
6375  rm -f conftest.er1
6376  cat conftest.err >&5
6377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378  (exit $ac_status); } >/dev/null; then
6379  if test -s conftest.err; then
6380    ac_cpp_err=$ac_c_preproc_warn_flag
6381    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6382  else
6383    ac_cpp_err=
6384  fi
6385else
6386  ac_cpp_err=yes
6387fi
6388if test -z "$ac_cpp_err"; then
6389  :
6390else
6391  echo "$as_me: failed program was:" >&5
6392sed 's/^/| /' conftest.$ac_ext >&5
6393
6394  # Broken: fails on valid input.
6395continue
6396fi
6397rm -f conftest.err conftest.$ac_ext
6398
6399  # OK, works on sane cases.  Now check whether non-existent headers
6400  # can be detected and how.
6401  cat >conftest.$ac_ext <<_ACEOF
6402/* confdefs.h.  */
6403_ACEOF
6404cat confdefs.h >>conftest.$ac_ext
6405cat >>conftest.$ac_ext <<_ACEOF
6406/* end confdefs.h.  */
6407#include <ac_nonexistent.h>
6408_ACEOF
6409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6410  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6411  ac_status=$?
6412  grep -v '^ *+' conftest.er1 >conftest.err
6413  rm -f conftest.er1
6414  cat conftest.err >&5
6415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416  (exit $ac_status); } >/dev/null; then
6417  if test -s conftest.err; then
6418    ac_cpp_err=$ac_c_preproc_warn_flag
6419    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6420  else
6421    ac_cpp_err=
6422  fi
6423else
6424  ac_cpp_err=yes
6425fi
6426if test -z "$ac_cpp_err"; then
6427  # Broken: success on invalid input.
6428continue
6429else
6430  echo "$as_me: failed program was:" >&5
6431sed 's/^/| /' conftest.$ac_ext >&5
6432
6433  # Passes both tests.
6434ac_preproc_ok=:
6435break
6436fi
6437rm -f conftest.err conftest.$ac_ext
6438
6439done
6440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6441rm -f conftest.err conftest.$ac_ext
6442if $ac_preproc_ok; then
6443  :
6444else
6445  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6446See \`config.log' for more details." >&5
6447echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6448See \`config.log' for more details." >&2;}
6449   { (exit 1); exit 1; }; }
6450fi
6451
6452ac_ext=c
6453ac_cpp='$CPP $CPPFLAGS'
6454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6456ac_compiler_gnu=$ac_cv_c_compiler_gnu
6457
6458
6459echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6460echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6461if test "${ac_cv_header_stdc+set}" = set; then
6462  echo $ECHO_N "(cached) $ECHO_C" >&6
6463else
6464  cat >conftest.$ac_ext <<_ACEOF
6465/* confdefs.h.  */
6466_ACEOF
6467cat confdefs.h >>conftest.$ac_ext
6468cat >>conftest.$ac_ext <<_ACEOF
6469/* end confdefs.h.  */
6470#include <stdlib.h>
6471#include <stdarg.h>
6472#include <string.h>
6473#include <float.h>
6474
6475int
6476main ()
6477{
6478
6479  ;
6480  return 0;
6481}
6482_ACEOF
6483rm -f conftest.$ac_objext
6484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6485  (eval $ac_compile) 2>conftest.er1
6486  ac_status=$?
6487  grep -v '^ *+' conftest.er1 >conftest.err
6488  rm -f conftest.er1
6489  cat conftest.err >&5
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); } &&
6492         { ac_try='test -z "$ac_c_werror_flag"
6493                         || test ! -s conftest.err'
6494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6495  (eval $ac_try) 2>&5
6496  ac_status=$?
6497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498  (exit $ac_status); }; } &&
6499         { ac_try='test -s conftest.$ac_objext'
6500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501  (eval $ac_try) 2>&5
6502  ac_status=$?
6503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504  (exit $ac_status); }; }; then
6505  ac_cv_header_stdc=yes
6506else
6507  echo "$as_me: failed program was:" >&5
6508sed 's/^/| /' conftest.$ac_ext >&5
6509
6510ac_cv_header_stdc=no
6511fi
6512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6513
6514if test $ac_cv_header_stdc = yes; then
6515  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6516  cat >conftest.$ac_ext <<_ACEOF
6517/* confdefs.h.  */
6518_ACEOF
6519cat confdefs.h >>conftest.$ac_ext
6520cat >>conftest.$ac_ext <<_ACEOF
6521/* end confdefs.h.  */
6522#include <string.h>
6523
6524_ACEOF
6525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6526  $EGREP "memchr" >/dev/null 2>&1; then
6527  :
6528else
6529  ac_cv_header_stdc=no
6530fi
6531rm -f conftest*
6532
6533fi
6534
6535if test $ac_cv_header_stdc = yes; then
6536  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6537  cat >conftest.$ac_ext <<_ACEOF
6538/* confdefs.h.  */
6539_ACEOF
6540cat confdefs.h >>conftest.$ac_ext
6541cat >>conftest.$ac_ext <<_ACEOF
6542/* end confdefs.h.  */
6543#include <stdlib.h>
6544
6545_ACEOF
6546if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6547  $EGREP "free" >/dev/null 2>&1; then
6548  :
6549else
6550  ac_cv_header_stdc=no
6551fi
6552rm -f conftest*
6553
6554fi
6555
6556if test $ac_cv_header_stdc = yes; then
6557  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6558  if test "$cross_compiling" = yes; then
6559  :
6560else
6561  cat >conftest.$ac_ext <<_ACEOF
6562/* confdefs.h.  */
6563_ACEOF
6564cat confdefs.h >>conftest.$ac_ext
6565cat >>conftest.$ac_ext <<_ACEOF
6566/* end confdefs.h.  */
6567#include <ctype.h>
6568#if ((' ' & 0x0FF) == 0x020)
6569# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6570# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6571#else
6572# define ISLOWER(c) \
6573                   (('a' <= (c) && (c) <= 'i') \
6574                     || ('j' <= (c) && (c) <= 'r') \
6575                     || ('s' <= (c) && (c) <= 'z'))
6576# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6577#endif
6578
6579#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6580int
6581main ()
6582{
6583  int i;
6584  for (i = 0; i < 256; i++)
6585    if (XOR (islower (i), ISLOWER (i))
6586        || toupper (i) != TOUPPER (i))
6587      exit(2);
6588  exit (0);
6589}
6590_ACEOF
6591rm -f conftest$ac_exeext
6592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593  (eval $ac_link) 2>&5
6594  ac_status=$?
6595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6598  (eval $ac_try) 2>&5
6599  ac_status=$?
6600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601  (exit $ac_status); }; }; then
6602  :
6603else
6604  echo "$as_me: program exited with status $ac_status" >&5
6605echo "$as_me: failed program was:" >&5
6606sed 's/^/| /' conftest.$ac_ext >&5
6607
6608( exit $ac_status )
6609ac_cv_header_stdc=no
6610fi
6611rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6612fi
6613fi
6614fi
6615echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6616echo "${ECHO_T}$ac_cv_header_stdc" >&6
6617if test $ac_cv_header_stdc = yes; then
6618
6619cat >>confdefs.h <<\_ACEOF
6620#define STDC_HEADERS 1
6621_ACEOF
6622
6623fi
6624
6625# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6636                  inttypes.h stdint.h unistd.h
6637do
6638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6639echo "$as_me:$LINENO: checking for $ac_header" >&5
6640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6641if eval "test \"\${$as_ac_Header+set}\" = set"; then
6642  echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644  cat >conftest.$ac_ext <<_ACEOF
6645/* confdefs.h.  */
6646_ACEOF
6647cat confdefs.h >>conftest.$ac_ext
6648cat >>conftest.$ac_ext <<_ACEOF
6649/* end confdefs.h.  */
6650$ac_includes_default
6651
6652#include <$ac_header>
6653_ACEOF
6654rm -f conftest.$ac_objext
6655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6656  (eval $ac_compile) 2>conftest.er1
6657  ac_status=$?
6658  grep -v '^ *+' conftest.er1 >conftest.err
6659  rm -f conftest.er1
6660  cat conftest.err >&5
6661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662  (exit $ac_status); } &&
6663         { ac_try='test -z "$ac_c_werror_flag"
6664                         || test ! -s conftest.err'
6665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666  (eval $ac_try) 2>&5
6667  ac_status=$?
6668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669  (exit $ac_status); }; } &&
6670         { ac_try='test -s conftest.$ac_objext'
6671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672  (eval $ac_try) 2>&5
6673  ac_status=$?
6674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675  (exit $ac_status); }; }; then
6676  eval "$as_ac_Header=yes"
6677else
6678  echo "$as_me: failed program was:" >&5
6679sed 's/^/| /' conftest.$ac_ext >&5
6680
6681eval "$as_ac_Header=no"
6682fi
6683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6684fi
6685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6687if test `eval echo '${'$as_ac_Header'}'` = yes; then
6688  cat >>confdefs.h <<_ACEOF
6689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6690_ACEOF
6691
6692fi
6693
6694done
6695
6696
6697
6698for ac_header in dlfcn.h
6699do
6700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6701if eval "test \"\${$as_ac_Header+set}\" = set"; then
6702  echo "$as_me:$LINENO: checking for $ac_header" >&5
6703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6704if eval "test \"\${$as_ac_Header+set}\" = set"; then
6705  echo $ECHO_N "(cached) $ECHO_C" >&6
6706fi
6707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6709else
6710  # Is the header compilable?
6711echo "$as_me:$LINENO: checking $ac_header usability" >&5
6712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6713cat >conftest.$ac_ext <<_ACEOF
6714/* confdefs.h.  */
6715_ACEOF
6716cat confdefs.h >>conftest.$ac_ext
6717cat >>conftest.$ac_ext <<_ACEOF
6718/* end confdefs.h.  */
6719$ac_includes_default
6720#include <$ac_header>
6721_ACEOF
6722rm -f conftest.$ac_objext
6723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6724  (eval $ac_compile) 2>conftest.er1
6725  ac_status=$?
6726  grep -v '^ *+' conftest.er1 >conftest.err
6727  rm -f conftest.er1
6728  cat conftest.err >&5
6729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730  (exit $ac_status); } &&
6731         { ac_try='test -z "$ac_c_werror_flag"
6732                         || test ! -s conftest.err'
6733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734  (eval $ac_try) 2>&5
6735  ac_status=$?
6736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737  (exit $ac_status); }; } &&
6738         { ac_try='test -s conftest.$ac_objext'
6739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6740  (eval $ac_try) 2>&5
6741  ac_status=$?
6742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743  (exit $ac_status); }; }; then
6744  ac_header_compiler=yes
6745else
6746  echo "$as_me: failed program was:" >&5
6747sed 's/^/| /' conftest.$ac_ext >&5
6748
6749ac_header_compiler=no
6750fi
6751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6753echo "${ECHO_T}$ac_header_compiler" >&6
6754
6755# Is the header present?
6756echo "$as_me:$LINENO: checking $ac_header presence" >&5
6757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6758cat >conftest.$ac_ext <<_ACEOF
6759/* confdefs.h.  */
6760_ACEOF
6761cat confdefs.h >>conftest.$ac_ext
6762cat >>conftest.$ac_ext <<_ACEOF
6763/* end confdefs.h.  */
6764#include <$ac_header>
6765_ACEOF
6766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6767  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6768  ac_status=$?
6769  grep -v '^ *+' conftest.er1 >conftest.err
6770  rm -f conftest.er1
6771  cat conftest.err >&5
6772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773  (exit $ac_status); } >/dev/null; then
6774  if test -s conftest.err; then
6775    ac_cpp_err=$ac_c_preproc_warn_flag
6776    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6777  else
6778    ac_cpp_err=
6779  fi
6780else
6781  ac_cpp_err=yes
6782fi
6783if test -z "$ac_cpp_err"; then
6784  ac_header_preproc=yes
6785else
6786  echo "$as_me: failed program was:" >&5
6787sed 's/^/| /' conftest.$ac_ext >&5
6788
6789  ac_header_preproc=no
6790fi
6791rm -f conftest.err conftest.$ac_ext
6792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6793echo "${ECHO_T}$ac_header_preproc" >&6
6794
6795# So?  What about this header?
6796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6797  yes:no: )
6798    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6800    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6801echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6802    ac_header_preproc=yes
6803    ;;
6804  no:yes:* )
6805    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6807    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6808echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6809    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6810echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6811    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6812echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6813    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6814echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6815    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6816echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6817    (
6818      cat <<\_ASBOX
6819## --------------------------------------------------------------- ##
6820## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6821## --------------------------------------------------------------- ##
6822_ASBOX
6823    ) |
6824      sed "s/^/$as_me: WARNING:     /" >&2
6825    ;;
6826esac
6827echo "$as_me:$LINENO: checking for $ac_header" >&5
6828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6829if eval "test \"\${$as_ac_Header+set}\" = set"; then
6830  echo $ECHO_N "(cached) $ECHO_C" >&6
6831else
6832  eval "$as_ac_Header=\$ac_header_preproc"
6833fi
6834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6836
6837fi
6838if test `eval echo '${'$as_ac_Header'}'` = yes; then
6839  cat >>confdefs.h <<_ACEOF
6840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6841_ACEOF
6842
6843fi
6844
6845done
6846
6847
6848
6849if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6850    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6851    (test "X$CXX" != "Xg++"))) ; then
6852  ac_ext=cc
6853ac_cpp='$CXXCPP $CPPFLAGS'
6854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6857echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6858echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6859if test -z "$CXXCPP"; then
6860  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6861  echo $ECHO_N "(cached) $ECHO_C" >&6
6862else
6863      # Double quotes because CXXCPP needs to be expanded
6864    for CXXCPP in "$CXX -E" "/lib/cpp"
6865    do
6866      ac_preproc_ok=false
6867for ac_cxx_preproc_warn_flag in '' yes
6868do
6869  # Use a header file that comes with gcc, so configuring glibc
6870  # with a fresh cross-compiler works.
6871  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6872  # <limits.h> exists even on freestanding compilers.
6873  # On the NeXT, cc -E runs the code through the compiler's parser,
6874  # not just through cpp. "Syntax error" is here to catch this case.
6875  cat >conftest.$ac_ext <<_ACEOF
6876/* confdefs.h.  */
6877_ACEOF
6878cat confdefs.h >>conftest.$ac_ext
6879cat >>conftest.$ac_ext <<_ACEOF
6880/* end confdefs.h.  */
6881#ifdef __STDC__
6882# include <limits.h>
6883#else
6884# include <assert.h>
6885#endif
6886                     Syntax error
6887_ACEOF
6888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6889  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6890  ac_status=$?
6891  grep -v '^ *+' conftest.er1 >conftest.err
6892  rm -f conftest.er1
6893  cat conftest.err >&5
6894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895  (exit $ac_status); } >/dev/null; then
6896  if test -s conftest.err; then
6897    ac_cpp_err=$ac_cxx_preproc_warn_flag
6898    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6899  else
6900    ac_cpp_err=
6901  fi
6902else
6903  ac_cpp_err=yes
6904fi
6905if test -z "$ac_cpp_err"; then
6906  :
6907else
6908  echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
6911  # Broken: fails on valid input.
6912continue
6913fi
6914rm -f conftest.err conftest.$ac_ext
6915
6916  # OK, works on sane cases.  Now check whether non-existent headers
6917  # can be detected and how.
6918  cat >conftest.$ac_ext <<_ACEOF
6919/* confdefs.h.  */
6920_ACEOF
6921cat confdefs.h >>conftest.$ac_ext
6922cat >>conftest.$ac_ext <<_ACEOF
6923/* end confdefs.h.  */
6924#include <ac_nonexistent.h>
6925_ACEOF
6926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6927  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6928  ac_status=$?
6929  grep -v '^ *+' conftest.er1 >conftest.err
6930  rm -f conftest.er1
6931  cat conftest.err >&5
6932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933  (exit $ac_status); } >/dev/null; then
6934  if test -s conftest.err; then
6935    ac_cpp_err=$ac_cxx_preproc_warn_flag
6936    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6937  else
6938    ac_cpp_err=
6939  fi
6940else
6941  ac_cpp_err=yes
6942fi
6943if test -z "$ac_cpp_err"; then
6944  # Broken: success on invalid input.
6945continue
6946else
6947  echo "$as_me: failed program was:" >&5
6948sed 's/^/| /' conftest.$ac_ext >&5
6949
6950  # Passes both tests.
6951ac_preproc_ok=:
6952break
6953fi
6954rm -f conftest.err conftest.$ac_ext
6955
6956done
6957# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6958rm -f conftest.err conftest.$ac_ext
6959if $ac_preproc_ok; then
6960  break
6961fi
6962
6963    done
6964    ac_cv_prog_CXXCPP=$CXXCPP
6965
6966fi
6967  CXXCPP=$ac_cv_prog_CXXCPP
6968else
6969  ac_cv_prog_CXXCPP=$CXXCPP
6970fi
6971echo "$as_me:$LINENO: result: $CXXCPP" >&5
6972echo "${ECHO_T}$CXXCPP" >&6
6973ac_preproc_ok=false
6974for ac_cxx_preproc_warn_flag in '' yes
6975do
6976  # Use a header file that comes with gcc, so configuring glibc
6977  # with a fresh cross-compiler works.
6978  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6979  # <limits.h> exists even on freestanding compilers.
6980  # On the NeXT, cc -E runs the code through the compiler's parser,
6981  # not just through cpp. "Syntax error" is here to catch this case.
6982  cat >conftest.$ac_ext <<_ACEOF
6983/* confdefs.h.  */
6984_ACEOF
6985cat confdefs.h >>conftest.$ac_ext
6986cat >>conftest.$ac_ext <<_ACEOF
6987/* end confdefs.h.  */
6988#ifdef __STDC__
6989# include <limits.h>
6990#else
6991# include <assert.h>
6992#endif
6993                     Syntax error
6994_ACEOF
6995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6996  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6997  ac_status=$?
6998  grep -v '^ *+' conftest.er1 >conftest.err
6999  rm -f conftest.er1
7000  cat conftest.err >&5
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); } >/dev/null; then
7003  if test -s conftest.err; then
7004    ac_cpp_err=$ac_cxx_preproc_warn_flag
7005    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7006  else
7007    ac_cpp_err=
7008  fi
7009else
7010  ac_cpp_err=yes
7011fi
7012if test -z "$ac_cpp_err"; then
7013  :
7014else
7015  echo "$as_me: failed program was:" >&5
7016sed 's/^/| /' conftest.$ac_ext >&5
7017
7018  # Broken: fails on valid input.
7019continue
7020fi
7021rm -f conftest.err conftest.$ac_ext
7022
7023  # OK, works on sane cases.  Now check whether non-existent headers
7024  # can be detected and how.
7025  cat >conftest.$ac_ext <<_ACEOF
7026/* confdefs.h.  */
7027_ACEOF
7028cat confdefs.h >>conftest.$ac_ext
7029cat >>conftest.$ac_ext <<_ACEOF
7030/* end confdefs.h.  */
7031#include <ac_nonexistent.h>
7032_ACEOF
7033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7034  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7035  ac_status=$?
7036  grep -v '^ *+' conftest.er1 >conftest.err
7037  rm -f conftest.er1
7038  cat conftest.err >&5
7039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040  (exit $ac_status); } >/dev/null; then
7041  if test -s conftest.err; then
7042    ac_cpp_err=$ac_cxx_preproc_warn_flag
7043    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7044  else
7045    ac_cpp_err=
7046  fi
7047else
7048  ac_cpp_err=yes
7049fi
7050if test -z "$ac_cpp_err"; then
7051  # Broken: success on invalid input.
7052continue
7053else
7054  echo "$as_me: failed program was:" >&5
7055sed 's/^/| /' conftest.$ac_ext >&5
7056
7057  # Passes both tests.
7058ac_preproc_ok=:
7059break
7060fi
7061rm -f conftest.err conftest.$ac_ext
7062
7063done
7064# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7065rm -f conftest.err conftest.$ac_ext
7066if $ac_preproc_ok; then
7067  :
7068else
7069  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7070See \`config.log' for more details." >&5
7071echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7072See \`config.log' for more details." >&2;}
7073   { (exit 1); exit 1; }; }
7074fi
7075
7076ac_ext=cc
7077ac_cpp='$CXXCPP $CPPFLAGS'
7078ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7079ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7080ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7081
7082fi
7083
7084ac_ext=f
7085ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7086ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7088if test -n "$ac_tool_prefix"; then
7089  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7090  do
7091    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7092set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7093echo "$as_me:$LINENO: checking for $ac_word" >&5
7094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7095if test "${ac_cv_prog_F77+set}" = set; then
7096  echo $ECHO_N "(cached) $ECHO_C" >&6
7097else
7098  if test -n "$F77"; then
7099  ac_cv_prog_F77="$F77" # Let the user override the test.
7100else
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104  IFS=$as_save_IFS
7105  test -z "$as_dir" && as_dir=.
7106  for ac_exec_ext in '' $ac_executable_extensions; do
7107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110    break 2
7111  fi
7112done
7113done
7114
7115fi
7116fi
7117F77=$ac_cv_prog_F77
7118if test -n "$F77"; then
7119  echo "$as_me:$LINENO: result: $F77" >&5
7120echo "${ECHO_T}$F77" >&6
7121else
7122  echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6
7124fi
7125
7126    test -n "$F77" && break
7127  done
7128fi
7129if test -z "$F77"; then
7130  ac_ct_F77=$F77
7131  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7132do
7133  # Extract the first word of "$ac_prog", so it can be a program name with args.
7134set dummy $ac_prog; ac_word=$2
7135echo "$as_me:$LINENO: checking for $ac_word" >&5
7136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7137if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7138  echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140  if test -n "$ac_ct_F77"; then
7141  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7142else
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146  IFS=$as_save_IFS
7147  test -z "$as_dir" && as_dir=.
7148  for ac_exec_ext in '' $ac_executable_extensions; do
7149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150    ac_cv_prog_ac_ct_F77="$ac_prog"
7151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152    break 2
7153  fi
7154done
7155done
7156
7157fi
7158fi
7159ac_ct_F77=$ac_cv_prog_ac_ct_F77
7160if test -n "$ac_ct_F77"; then
7161  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7162echo "${ECHO_T}$ac_ct_F77" >&6
7163else
7164  echo "$as_me:$LINENO: result: no" >&5
7165echo "${ECHO_T}no" >&6
7166fi
7167
7168  test -n "$ac_ct_F77" && break
7169done
7170
7171  F77=$ac_ct_F77
7172fi
7173
7174
7175# Provide some information about the compiler.
7176echo "$as_me:7176:" \
7177     "checking for Fortran 77 compiler version" >&5
7178ac_compiler=`set X $ac_compile; echo $2`
7179{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7180  (eval $ac_compiler --version </dev/null >&5) 2>&5
7181  ac_status=$?
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); }
7184{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7185  (eval $ac_compiler -v </dev/null >&5) 2>&5
7186  ac_status=$?
7187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188  (exit $ac_status); }
7189{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7190  (eval $ac_compiler -V </dev/null >&5) 2>&5
7191  ac_status=$?
7192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193  (exit $ac_status); }
7194rm -f a.out
7195
7196# If we don't use `.F' as extension, the preprocessor is not run on the
7197# input file.  (Note that this only needs to work for GNU compilers.)
7198ac_save_ext=$ac_ext
7199ac_ext=F
7200echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7201echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7202if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7203  echo $ECHO_N "(cached) $ECHO_C" >&6
7204else
7205  cat >conftest.$ac_ext <<_ACEOF
7206      program main
7207#ifndef __GNUC__
7208       choke me
7209#endif
7210
7211      end
7212_ACEOF
7213rm -f conftest.$ac_objext
7214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215  (eval $ac_compile) 2>conftest.er1
7216  ac_status=$?
7217  grep -v '^ *+' conftest.er1 >conftest.err
7218  rm -f conftest.er1
7219  cat conftest.err >&5
7220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221  (exit $ac_status); } &&
7222         { ac_try='test -z "$ac_f77_werror_flag"
7223                         || test ! -s conftest.err'
7224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225  (eval $ac_try) 2>&5
7226  ac_status=$?
7227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228  (exit $ac_status); }; } &&
7229         { ac_try='test -s conftest.$ac_objext'
7230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231  (eval $ac_try) 2>&5
7232  ac_status=$?
7233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234  (exit $ac_status); }; }; then
7235  ac_compiler_gnu=yes
7236else
7237  echo "$as_me: failed program was:" >&5
7238sed 's/^/| /' conftest.$ac_ext >&5
7239
7240ac_compiler_gnu=no
7241fi
7242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7244
7245fi
7246echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7247echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7248ac_ext=$ac_save_ext
7249ac_test_FFLAGS=${FFLAGS+set}
7250ac_save_FFLAGS=$FFLAGS
7251FFLAGS=
7252echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7253echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7254if test "${ac_cv_prog_f77_g+set}" = set; then
7255  echo $ECHO_N "(cached) $ECHO_C" >&6
7256else
7257  FFLAGS=-g
7258cat >conftest.$ac_ext <<_ACEOF
7259      program main
7260
7261      end
7262_ACEOF
7263rm -f conftest.$ac_objext
7264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265  (eval $ac_compile) 2>conftest.er1
7266  ac_status=$?
7267  grep -v '^ *+' conftest.er1 >conftest.err
7268  rm -f conftest.er1
7269  cat conftest.err >&5
7270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271  (exit $ac_status); } &&
7272         { ac_try='test -z "$ac_f77_werror_flag"
7273                         || test ! -s conftest.err'
7274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275  (eval $ac_try) 2>&5
7276  ac_status=$?
7277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278  (exit $ac_status); }; } &&
7279         { ac_try='test -s conftest.$ac_objext'
7280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281  (eval $ac_try) 2>&5
7282  ac_status=$?
7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284  (exit $ac_status); }; }; then
7285  ac_cv_prog_f77_g=yes
7286else
7287  echo "$as_me: failed program was:" >&5
7288sed 's/^/| /' conftest.$ac_ext >&5
7289
7290ac_cv_prog_f77_g=no
7291fi
7292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7293
7294fi
7295echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7296echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7297if test "$ac_test_FFLAGS" = set; then
7298  FFLAGS=$ac_save_FFLAGS
7299elif test $ac_cv_prog_f77_g = yes; then
7300  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7301    FFLAGS="-g -O2"
7302  else
7303    FFLAGS="-g"
7304  fi
7305else
7306  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7307    FFLAGS="-O2"
7308  else
7309    FFLAGS=
7310  fi
7311fi
7312
7313G77=`test $ac_compiler_gnu = yes && echo yes`
7314ac_ext=c
7315ac_cpp='$CPP $CPPFLAGS'
7316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7318ac_compiler_gnu=$ac_cv_c_compiler_gnu
7319
7320
7321
7322# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7323
7324# find the maximum length of command line arguments
7325echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7326echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7327if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7328  echo $ECHO_N "(cached) $ECHO_C" >&6
7329else
7330    i=0
7331  teststring="ABCD"
7332
7333  case $build_os in
7334  msdosdjgpp*)
7335    # On DJGPP, this test can blow up pretty badly due to problems in libc
7336    # (any single argument exceeding 2000 bytes causes a buffer overrun
7337    # during glob expansion).  Even if it were fixed, the result of this
7338    # check would be larger than it should be.
7339    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7340    ;;
7341
7342  gnu*)
7343    # Under GNU Hurd, this test is not required because there is
7344    # no limit to the length of command line arguments.
7345    # Libtool will interpret -1 as no limit whatsoever
7346    lt_cv_sys_max_cmd_len=-1;
7347    ;;
7348
7349  cygwin* | mingw*)
7350    # On Win9x/ME, this test blows up -- it succeeds, but takes
7351    # about 5 minutes as the teststring grows exponentially.
7352    # Worse, since 9x/ME are not pre-emptively multitasking,
7353    # you end up with a "frozen" computer, even though with patience
7354    # the test eventually succeeds (with a max line length of 256k).
7355    # Instead, let's just punt: use the minimum linelength reported by
7356    # all of the supported platforms: 8192 (on NT/2K/XP).
7357    lt_cv_sys_max_cmd_len=8192;
7358    ;;
7359
7360  amigaos*)
7361    # On AmigaOS with pdksh, this test takes hours, literally.
7362    # So we just punt and use a minimum line length of 8192.
7363    lt_cv_sys_max_cmd_len=8192;
7364    ;;
7365
7366  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7367    # This has been around since 386BSD, at least.  Likely further.
7368    if test -x /sbin/sysctl; then
7369      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7370    elif test -x /usr/sbin/sysctl; then
7371      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7372    else
7373      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7374    fi
7375    # And add a safety zone
7376    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7377    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7378    ;;
7379
7380  interix*)
7381    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7382    lt_cv_sys_max_cmd_len=196608
7383    ;;
7384
7385  osf*)
7386    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7387    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7388    # nice to cause kernel panics so lets avoid the loop below.
7389    # First set a reasonable default.
7390    lt_cv_sys_max_cmd_len=16384
7391    #
7392    if test -x /sbin/sysconfig; then
7393      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7394        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7395      esac
7396    fi
7397    ;;
7398  sco3.2v5*)
7399    lt_cv_sys_max_cmd_len=102400
7400    ;;
7401  sysv5* | sco5v6* | sysv4.2uw2*)
7402    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7403    if test -n "$kargmax"; then
7404      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7405    else
7406      lt_cv_sys_max_cmd_len=32768
7407    fi
7408    ;;
7409  *)
7410    # If test is not a shell built-in, we'll probably end up computing a
7411    # maximum length that is only half of the actual maximum length, but
7412    # we can't tell.
7413    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7414    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7415               = "XX$teststring") >/dev/null 2>&1 &&
7416            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7417            lt_cv_sys_max_cmd_len=$new_result &&
7418            test $i != 17 # 1/2 MB should be enough
7419    do
7420      i=`expr $i + 1`
7421      teststring=$teststring$teststring
7422    done
7423    teststring=
7424    # Add a significant safety factor because C++ compilers can tack on massive
7425    # amounts of additional arguments before passing them to the linker.
7426    # It appears as though 1/2 is a usable value.
7427    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7428    ;;
7429  esac
7430
7431fi
7432
7433if test -n $lt_cv_sys_max_cmd_len ; then
7434  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7435echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7436else
7437  echo "$as_me:$LINENO: result: none" >&5
7438echo "${ECHO_T}none" >&6
7439fi
7440
7441
7442
7443
7444# Check for command to grab the raw symbol name followed by C symbol from nm.
7445echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7446echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7447if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7448  echo $ECHO_N "(cached) $ECHO_C" >&6
7449else
7450
7451# These are sane defaults that work on at least a few old systems.
7452# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7453
7454# Character class describing NM global symbol codes.
7455symcode='[BCDEGRST]'
7456
7457# Regexp to match symbols that can be accessed directly from C.
7458sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7459
7460# Transform an extracted symbol line into a proper C declaration
7461lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7462
7463# Transform an extracted symbol line into symbol name and symbol address
7464lt_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'"
7465
7466# Define system-specific variables.
7467case $host_os in
7468aix*)
7469  symcode='[BCDT]'
7470  ;;
7471cygwin* | mingw* | pw32*)
7472  symcode='[ABCDGISTW]'
7473  ;;
7474hpux*) # Its linker distinguishes data from code symbols
7475  if test "$host_cpu" = ia64; then
7476    symcode='[ABCDEGRST]'
7477  fi
7478  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7479  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'"
7480  ;;
7481linux*)
7482  if test "$host_cpu" = ia64; then
7483    symcode='[ABCDGIRSTW]'
7484    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7485    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'"
7486  fi
7487  ;;
7488irix* | nonstopux*)
7489  symcode='[BCDEGRST]'
7490  ;;
7491osf*)
7492  symcode='[BCDEGQRST]'
7493  ;;
7494solaris*)
7495  symcode='[BDRT]'
7496  ;;
7497sco3.2v5*)
7498  symcode='[DT]'
7499  ;;
7500sysv4.2uw2*)
7501  symcode='[DT]'
7502  ;;
7503sysv5* | sco5v6* | unixware* | OpenUNIX*)
7504  symcode='[ABDT]'
7505  ;;
7506sysv4)
7507  symcode='[DFNSTU]'
7508  ;;
7509esac
7510
7511# Handle CRLF in mingw tool chain
7512opt_cr=
7513case $build_os in
7514mingw*)
7515  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7516  ;;
7517esac
7518
7519# If we're using GNU nm, then use its standard symbol codes.
7520case `$NM -V 2>&1` in
7521*GNU* | *'with BFD'*)
7522  symcode='[ABCDGIRSTW]' ;;
7523esac
7524
7525# Try without a prefix undercore, then with it.
7526for ac_symprfx in "" "_"; do
7527
7528  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7529  symxfrm="\\1 $ac_symprfx\\2 \\2"
7530
7531  # Write the raw and C identifiers.
7532  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7533
7534  # Check to see that the pipe works correctly.
7535  pipe_works=no
7536
7537  rm -f conftest*
7538  cat > conftest.$ac_ext <<EOF
7539#ifdef __cplusplus
7540extern "C" {
7541#endif
7542char nm_test_var;
7543void nm_test_func(){}
7544#ifdef __cplusplus
7545}
7546#endif
7547int main(){nm_test_var='a';nm_test_func();return(0);}
7548EOF
7549
7550  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7551  (eval $ac_compile) 2>&5
7552  ac_status=$?
7553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554  (exit $ac_status); }; then
7555    # Now try to grab the symbols.
7556    nlist=conftest.nm
7557    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7558  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7559  ac_status=$?
7560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561  (exit $ac_status); } && test -s "$nlist"; then
7562      # Try sorting and uniquifying the output.
7563      if sort "$nlist" | uniq > "$nlist"T; then
7564        mv -f "$nlist"T "$nlist"
7565      else
7566        rm -f "$nlist"T
7567      fi
7568
7569      # Make sure that we snagged all the symbols we need.
7570      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7571        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7572          cat <<EOF > conftest.$ac_ext
7573#ifdef __cplusplus
7574extern "C" {
7575#endif
7576
7577EOF
7578          # Now generate the symbol file.
7579          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7580
7581          cat <<EOF >> conftest.$ac_ext
7582#if defined (__STDC__) && __STDC__
7583# define lt_ptr_t void *
7584#else
7585# define lt_ptr_t char *
7586# define const
7587#endif
7588
7589/* The mapping between symbol names and symbols. */
7590const struct {
7591  const char *name;
7592  lt_ptr_t address;
7593}
7594lt_preloaded_symbols[] =
7595{
7596EOF
7597          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7598          cat <<\EOF >> conftest.$ac_ext
7599  {0, (lt_ptr_t) 0}
7600};
7601
7602#ifdef __cplusplus
7603}
7604#endif
7605EOF
7606          # Now try linking the two files.
7607          mv conftest.$ac_objext conftstm.$ac_objext
7608          lt_save_LIBS="$LIBS"
7609          lt_save_CFLAGS="$CFLAGS"
7610          LIBS="conftstm.$ac_objext"
7611          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7612          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7613  (eval $ac_link) 2>&5
7614  ac_status=$?
7615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7617            pipe_works=yes
7618          fi
7619          LIBS="$lt_save_LIBS"
7620          CFLAGS="$lt_save_CFLAGS"
7621        else
7622          echo "cannot find nm_test_func in $nlist" >&5
7623        fi
7624      else
7625        echo "cannot find nm_test_var in $nlist" >&5
7626      fi
7627    else
7628      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7629    fi
7630  else
7631    echo "$progname: failed program was:" >&5
7632    cat conftest.$ac_ext >&5
7633  fi
7634  rm -f conftest* conftst*
7635
7636  # Do not use the global_symbol_pipe unless it works.
7637  if test "$pipe_works" = yes; then
7638    break
7639  else
7640    lt_cv_sys_global_symbol_pipe=
7641  fi
7642done
7643
7644fi
7645
7646if test -z "$lt_cv_sys_global_symbol_pipe"; then
7647  lt_cv_sys_global_symbol_to_cdecl=
7648fi
7649if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7650  echo "$as_me:$LINENO: result: failed" >&5
7651echo "${ECHO_T}failed" >&6
7652else
7653  echo "$as_me:$LINENO: result: ok" >&5
7654echo "${ECHO_T}ok" >&6
7655fi
7656
7657echo "$as_me:$LINENO: checking for objdir" >&5
7658echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7659if test "${lt_cv_objdir+set}" = set; then
7660  echo $ECHO_N "(cached) $ECHO_C" >&6
7661else
7662  rm -f .libs 2>/dev/null
7663mkdir .libs 2>/dev/null
7664if test -d .libs; then
7665  lt_cv_objdir=.libs
7666else
7667  # MS-DOS does not allow filenames that begin with a dot.
7668  lt_cv_objdir=_libs
7669fi
7670rmdir .libs 2>/dev/null
7671fi
7672echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7673echo "${ECHO_T}$lt_cv_objdir" >&6
7674objdir=$lt_cv_objdir
7675
7676
7677
7678
7679
7680case $host_os in
7681aix3*)
7682  # AIX sometimes has problems with the GCC collect2 program.  For some
7683  # reason, if we set the COLLECT_NAMES environment variable, the problems
7684  # vanish in a puff of smoke.
7685  if test "X${COLLECT_NAMES+set}" != Xset; then
7686    COLLECT_NAMES=
7687    export COLLECT_NAMES
7688  fi
7689  ;;
7690esac
7691
7692# Sed substitution that helps us do robust quoting.  It backslashifies
7693# metacharacters that are still active within double-quoted strings.
7694Xsed='sed -e 1s/^X//'
7695sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7696
7697# Same as above, but do not quote variable references.
7698double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7699
7700# Sed substitution to delay expansion of an escaped shell variable in a
7701# double_quote_subst'ed string.
7702delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7703
7704# Sed substitution to avoid accidental globbing in evaled expressions
7705no_glob_subst='s/\*/\\\*/g'
7706
7707# Constants:
7708rm="rm -f"
7709
7710# Global variables:
7711default_ofile=libtool
7712can_build_shared=yes
7713
7714# All known linkers require a `.a' archive for static linking (except MSVC,
7715# which needs '.lib').
7716libext=a
7717ltmain="$ac_aux_dir/ltmain.sh"
7718ofile="$default_ofile"
7719with_gnu_ld="$lt_cv_prog_gnu_ld"
7720
7721if test -n "$ac_tool_prefix"; then
7722  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7723set dummy ${ac_tool_prefix}ar; ac_word=$2
7724echo "$as_me:$LINENO: checking for $ac_word" >&5
7725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7726if test "${ac_cv_prog_AR+set}" = set; then
7727  echo $ECHO_N "(cached) $ECHO_C" >&6
7728else
7729  if test -n "$AR"; then
7730  ac_cv_prog_AR="$AR" # Let the user override the test.
7731else
7732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735  IFS=$as_save_IFS
7736  test -z "$as_dir" && as_dir=.
7737  for ac_exec_ext in '' $ac_executable_extensions; do
7738  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7739    ac_cv_prog_AR="${ac_tool_prefix}ar"
7740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741    break 2
7742  fi
7743done
7744done
7745
7746fi
7747fi
7748AR=$ac_cv_prog_AR
7749if test -n "$AR"; then
7750  echo "$as_me:$LINENO: result: $AR" >&5
7751echo "${ECHO_T}$AR" >&6
7752else
7753  echo "$as_me:$LINENO: result: no" >&5
7754echo "${ECHO_T}no" >&6
7755fi
7756
7757fi
7758if test -z "$ac_cv_prog_AR"; then
7759  ac_ct_AR=$AR
7760  # Extract the first word of "ar", so it can be a program name with args.
7761set dummy ar; ac_word=$2
7762echo "$as_me:$LINENO: checking for $ac_word" >&5
7763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7764if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7765  echo $ECHO_N "(cached) $ECHO_C" >&6
7766else
7767  if test -n "$ac_ct_AR"; then
7768  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7769else
7770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773  IFS=$as_save_IFS
7774  test -z "$as_dir" && as_dir=.
7775  for ac_exec_ext in '' $ac_executable_extensions; do
7776  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777    ac_cv_prog_ac_ct_AR="ar"
7778    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779    break 2
7780  fi
7781done
7782done
7783
7784  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7785fi
7786fi
7787ac_ct_AR=$ac_cv_prog_ac_ct_AR
7788if test -n "$ac_ct_AR"; then
7789  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7790echo "${ECHO_T}$ac_ct_AR" >&6
7791else
7792  echo "$as_me:$LINENO: result: no" >&5
7793echo "${ECHO_T}no" >&6
7794fi
7795
7796  AR=$ac_ct_AR
7797else
7798  AR="$ac_cv_prog_AR"
7799fi
7800
7801if test -n "$ac_tool_prefix"; then
7802  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7803set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7804echo "$as_me:$LINENO: checking for $ac_word" >&5
7805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7806if test "${ac_cv_prog_RANLIB+set}" = set; then
7807  echo $ECHO_N "(cached) $ECHO_C" >&6
7808else
7809  if test -n "$RANLIB"; then
7810  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7811else
7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815  IFS=$as_save_IFS
7816  test -z "$as_dir" && as_dir=.
7817  for ac_exec_ext in '' $ac_executable_extensions; do
7818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7819    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821    break 2
7822  fi
7823done
7824done
7825
7826fi
7827fi
7828RANLIB=$ac_cv_prog_RANLIB
7829if test -n "$RANLIB"; then
7830  echo "$as_me:$LINENO: result: $RANLIB" >&5
7831echo "${ECHO_T}$RANLIB" >&6
7832else
7833  echo "$as_me:$LINENO: result: no" >&5
7834echo "${ECHO_T}no" >&6
7835fi
7836
7837fi
7838if test -z "$ac_cv_prog_RANLIB"; then
7839  ac_ct_RANLIB=$RANLIB
7840  # Extract the first word of "ranlib", so it can be a program name with args.
7841set dummy ranlib; ac_word=$2
7842echo "$as_me:$LINENO: checking for $ac_word" >&5
7843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7844if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7845  echo $ECHO_N "(cached) $ECHO_C" >&6
7846else
7847  if test -n "$ac_ct_RANLIB"; then
7848  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7849else
7850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851for as_dir in $PATH
7852do
7853  IFS=$as_save_IFS
7854  test -z "$as_dir" && as_dir=.
7855  for ac_exec_ext in '' $ac_executable_extensions; do
7856  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7857    ac_cv_prog_ac_ct_RANLIB="ranlib"
7858    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859    break 2
7860  fi
7861done
7862done
7863
7864  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7865fi
7866fi
7867ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7868if test -n "$ac_ct_RANLIB"; then
7869  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7870echo "${ECHO_T}$ac_ct_RANLIB" >&6
7871else
7872  echo "$as_me:$LINENO: result: no" >&5
7873echo "${ECHO_T}no" >&6
7874fi
7875
7876  RANLIB=$ac_ct_RANLIB
7877else
7878  RANLIB="$ac_cv_prog_RANLIB"
7879fi
7880
7881if test -n "$ac_tool_prefix"; then
7882  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7883set dummy ${ac_tool_prefix}strip; ac_word=$2
7884echo "$as_me:$LINENO: checking for $ac_word" >&5
7885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7886if test "${ac_cv_prog_STRIP+set}" = set; then
7887  echo $ECHO_N "(cached) $ECHO_C" >&6
7888else
7889  if test -n "$STRIP"; then
7890  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7891else
7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893for as_dir in $PATH
7894do
7895  IFS=$as_save_IFS
7896  test -z "$as_dir" && as_dir=.
7897  for ac_exec_ext in '' $ac_executable_extensions; do
7898  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7899    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7900    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7901    break 2
7902  fi
7903done
7904done
7905
7906fi
7907fi
7908STRIP=$ac_cv_prog_STRIP
7909if test -n "$STRIP"; then
7910  echo "$as_me:$LINENO: result: $STRIP" >&5
7911echo "${ECHO_T}$STRIP" >&6
7912else
7913  echo "$as_me:$LINENO: result: no" >&5
7914echo "${ECHO_T}no" >&6
7915fi
7916
7917fi
7918if test -z "$ac_cv_prog_STRIP"; then
7919  ac_ct_STRIP=$STRIP
7920  # Extract the first word of "strip", so it can be a program name with args.
7921set dummy strip; ac_word=$2
7922echo "$as_me:$LINENO: checking for $ac_word" >&5
7923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7924if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7925  echo $ECHO_N "(cached) $ECHO_C" >&6
7926else
7927  if test -n "$ac_ct_STRIP"; then
7928  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7929else
7930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931for as_dir in $PATH
7932do
7933  IFS=$as_save_IFS
7934  test -z "$as_dir" && as_dir=.
7935  for ac_exec_ext in '' $ac_executable_extensions; do
7936  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7937    ac_cv_prog_ac_ct_STRIP="strip"
7938    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939    break 2
7940  fi
7941done
7942done
7943
7944  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7945fi
7946fi
7947ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7948if test -n "$ac_ct_STRIP"; then
7949  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7950echo "${ECHO_T}$ac_ct_STRIP" >&6
7951else
7952  echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954fi
7955
7956  STRIP=$ac_ct_STRIP
7957else
7958  STRIP="$ac_cv_prog_STRIP"
7959fi
7960
7961
7962old_CC="$CC"
7963old_CFLAGS="$CFLAGS"
7964
7965# Set sane defaults for various variables
7966test -z "$AR" && AR=ar
7967test -z "$AR_FLAGS" && AR_FLAGS=cru
7968test -z "$AS" && AS=as
7969test -z "$CC" && CC=cc
7970test -z "$LTCC" && LTCC=$CC
7971test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7972test -z "$DLLTOOL" && DLLTOOL=dlltool
7973test -z "$LD" && LD=ld
7974test -z "$LN_S" && LN_S="ln -s"
7975test -z "$MAGIC_CMD" && MAGIC_CMD=file
7976test -z "$NM" && NM=nm
7977test -z "$SED" && SED=sed
7978test -z "$OBJDUMP" && OBJDUMP=objdump
7979test -z "$RANLIB" && RANLIB=:
7980test -z "$STRIP" && STRIP=:
7981test -z "$ac_objext" && ac_objext=o
7982
7983# Determine commands to create old-style static archives.
7984old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7985old_postinstall_cmds='chmod 644 $oldlib'
7986old_postuninstall_cmds=
7987
7988if test -n "$RANLIB"; then
7989  case $host_os in
7990  openbsd*)
7991    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7992    ;;
7993  *)
7994    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7995    ;;
7996  esac
7997  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7998fi
7999
8000for cc_temp in $compiler""; do
8001  case $cc_temp in
8002    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8003    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8004    \-*) ;;
8005    *) break;;
8006  esac
8007done
8008cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8009
8010
8011# Only perform the check for file, if the check method requires it
8012case $deplibs_check_method in
8013file_magic*)
8014  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8015    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8016echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8017if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8018  echo $ECHO_N "(cached) $ECHO_C" >&6
8019else
8020  case $MAGIC_CMD in
8021[\\/*] |  ?:[\\/]*)
8022  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8023  ;;
8024*)
8025  lt_save_MAGIC_CMD="$MAGIC_CMD"
8026  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8027  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8028  for ac_dir in $ac_dummy; do
8029    IFS="$lt_save_ifs"
8030    test -z "$ac_dir" && ac_dir=.
8031    if test -f $ac_dir/${ac_tool_prefix}file; then
8032      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8033      if test -n "$file_magic_test_file"; then
8034        case $deplibs_check_method in
8035        "file_magic "*)
8036          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8037          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8038          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8039            $EGREP "$file_magic_regex" > /dev/null; then
8040            :
8041          else
8042            cat <<EOF 1>&2
8043
8044*** Warning: the command libtool uses to detect shared libraries,
8045*** $file_magic_cmd, produces output that libtool cannot recognize.
8046*** The result is that libtool may fail to recognize shared libraries
8047*** as such.  This will affect the creation of libtool libraries that
8048*** depend on shared libraries, but programs linked with such libtool
8049*** libraries will work regardless of this problem.  Nevertheless, you
8050*** may want to report the problem to your system manager and/or to
8051*** bug-libtool@gnu.org
8052
8053EOF
8054          fi ;;
8055        esac
8056      fi
8057      break
8058    fi
8059  done
8060  IFS="$lt_save_ifs"
8061  MAGIC_CMD="$lt_save_MAGIC_CMD"
8062  ;;
8063esac
8064fi
8065
8066MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8067if test -n "$MAGIC_CMD"; then
8068  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8069echo "${ECHO_T}$MAGIC_CMD" >&6
8070else
8071  echo "$as_me:$LINENO: result: no" >&5
8072echo "${ECHO_T}no" >&6
8073fi
8074
8075if test -z "$lt_cv_path_MAGIC_CMD"; then
8076  if test -n "$ac_tool_prefix"; then
8077    echo "$as_me:$LINENO: checking for file" >&5
8078echo $ECHO_N "checking for file... $ECHO_C" >&6
8079if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8080  echo $ECHO_N "(cached) $ECHO_C" >&6
8081else
8082  case $MAGIC_CMD in
8083[\\/*] |  ?:[\\/]*)
8084  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8085  ;;
8086*)
8087  lt_save_MAGIC_CMD="$MAGIC_CMD"
8088  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8089  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8090  for ac_dir in $ac_dummy; do
8091    IFS="$lt_save_ifs"
8092    test -z "$ac_dir" && ac_dir=.
8093    if test -f $ac_dir/file; then
8094      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8095      if test -n "$file_magic_test_file"; then
8096        case $deplibs_check_method in
8097        "file_magic "*)
8098          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8099          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8100          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8101            $EGREP "$file_magic_regex" > /dev/null; then
8102            :
8103          else
8104            cat <<EOF 1>&2
8105
8106*** Warning: the command libtool uses to detect shared libraries,
8107*** $file_magic_cmd, produces output that libtool cannot recognize.
8108*** The result is that libtool may fail to recognize shared libraries
8109*** as such.  This will affect the creation of libtool libraries that
8110*** depend on shared libraries, but programs linked with such libtool
8111*** libraries will work regardless of this problem.  Nevertheless, you
8112*** may want to report the problem to your system manager and/or to
8113*** bug-libtool@gnu.org
8114
8115EOF
8116          fi ;;
8117        esac
8118      fi
8119      break
8120    fi
8121  done
8122  IFS="$lt_save_ifs"
8123  MAGIC_CMD="$lt_save_MAGIC_CMD"
8124  ;;
8125esac
8126fi
8127
8128MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8129if test -n "$MAGIC_CMD"; then
8130  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8131echo "${ECHO_T}$MAGIC_CMD" >&6
8132else
8133  echo "$as_me:$LINENO: result: no" >&5
8134echo "${ECHO_T}no" >&6
8135fi
8136
8137  else
8138    MAGIC_CMD=:
8139  fi
8140fi
8141
8142  fi
8143  ;;
8144esac
8145
8146enable_dlopen=no
8147enable_win32_dll=no
8148
8149# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8150if test "${enable_libtool_lock+set}" = set; then
8151  enableval="$enable_libtool_lock"
8152
8153fi;
8154test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8155
8156
8157# Check whether --with-pic or --without-pic was given.
8158if test "${with_pic+set}" = set; then
8159  withval="$with_pic"
8160  pic_mode="$withval"
8161else
8162  pic_mode=default
8163fi;
8164test -z "$pic_mode" && pic_mode=default
8165
8166# Use C for the default configuration in the libtool script
8167tagname=
8168lt_save_CC="$CC"
8169ac_ext=c
8170ac_cpp='$CPP $CPPFLAGS'
8171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8173ac_compiler_gnu=$ac_cv_c_compiler_gnu
8174
8175
8176# Source file extension for C test sources.
8177ac_ext=c
8178
8179# Object file extension for compiled C test sources.
8180objext=o
8181objext=$objext
8182
8183# Code to be used in simple compile tests
8184lt_simple_compile_test_code="int some_variable = 0;\n"
8185
8186# Code to be used in simple link tests
8187lt_simple_link_test_code='int main(){return(0);}\n'
8188
8189
8190# If no C compiler was specified, use CC.
8191LTCC=${LTCC-"$CC"}
8192
8193# If no C compiler flags were specified, use CFLAGS.
8194LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8195
8196# Allow CC to be a program name with arguments.
8197compiler=$CC
8198
8199
8200# save warnings/boilerplate of simple test code
8201ac_outfile=conftest.$ac_objext
8202printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8204_lt_compiler_boilerplate=`cat conftest.err`
8205$rm conftest*
8206
8207ac_outfile=conftest.$ac_objext
8208printf "$lt_simple_link_test_code" >conftest.$ac_ext
8209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8210_lt_linker_boilerplate=`cat conftest.err`
8211$rm conftest*
8212
8213
8214## CAVEAT EMPTOR:
8215## There is no encapsulation within the following macros, do not change
8216## the running order or otherwise move them around unless you know exactly
8217## what you are doing...
8218
8219lt_prog_compiler_no_builtin_flag=
8220
8221if test "$GCC" = yes; then
8222  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8223
8224
8225echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8226echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8227if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8228  echo $ECHO_N "(cached) $ECHO_C" >&6
8229else
8230  lt_cv_prog_compiler_rtti_exceptions=no
8231  ac_outfile=conftest.$ac_objext
8232   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8233   lt_compiler_flag="-fno-rtti -fno-exceptions"
8234   # Insert the option either (1) after the last *FLAGS variable, or
8235   # (2) before a word containing "conftest.", or (3) at the end.
8236   # Note that $ac_compile itself does not contain backslashes and begins
8237   # with a dollar sign (not a hyphen), so the echo should work correctly.
8238   # The option is referenced via a variable to avoid confusing sed.
8239   lt_compile=`echo "$ac_compile" | $SED \
8240   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8242   -e 's:$: $lt_compiler_flag:'`
8243   (eval echo "\"\$as_me:8243: $lt_compile\"" >&5)
8244   (eval "$lt_compile" 2>conftest.err)
8245   ac_status=$?
8246   cat conftest.err >&5
8247   echo "$as_me:8247: \$? = $ac_status" >&5
8248   if (exit $ac_status) && test -s "$ac_outfile"; then
8249     # The compiler can only warn and ignore the option if not recognized
8250     # So say no if there are warnings other than the usual output.
8251     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8252     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8253     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8254       lt_cv_prog_compiler_rtti_exceptions=yes
8255     fi
8256   fi
8257   $rm conftest*
8258
8259fi
8260echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8261echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8262
8263if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8264    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8265else
8266    :
8267fi
8268
8269fi
8270
8271lt_prog_compiler_wl=
8272lt_prog_compiler_pic=
8273lt_prog_compiler_static=
8274
8275echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8276echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8277
8278  if test "$GCC" = yes; then
8279    lt_prog_compiler_wl='-Wl,'
8280    lt_prog_compiler_static='-static'
8281
8282    case $host_os in
8283      aix*)
8284      # All AIX code is PIC.
8285      if test "$host_cpu" = ia64; then
8286        # AIX 5 now supports IA64 processor
8287        lt_prog_compiler_static='-Bstatic'
8288      fi
8289      ;;
8290
8291    amigaos*)
8292      # FIXME: we need at least 68020 code to build shared libraries, but
8293      # adding the `-m68020' flag to GCC prevents building anything better,
8294      # like `-m68040'.
8295      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8296      ;;
8297
8298    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8299      # PIC is the default for these OSes.
8300      ;;
8301
8302    mingw* | pw32* | os2*)
8303      # This hack is so that the source file can tell whether it is being
8304      # built for inclusion in a dll (and should export symbols for example).
8305      lt_prog_compiler_pic='-DDLL_EXPORT'
8306      ;;
8307
8308    darwin* | rhapsody*)
8309      # PIC is the default on this platform
8310      # Common symbols not allowed in MH_DYLIB files
8311      lt_prog_compiler_pic='-fno-common'
8312      ;;
8313
8314    interix3*)
8315      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8316      # Instead, we relocate shared libraries at runtime.
8317      ;;
8318
8319    msdosdjgpp*)
8320      # Just because we use GCC doesn't mean we suddenly get shared libraries
8321      # on systems that don't support them.
8322      lt_prog_compiler_can_build_shared=no
8323      enable_shared=no
8324      ;;
8325
8326    sysv4*MP*)
8327      if test -d /usr/nec; then
8328        lt_prog_compiler_pic=-Kconform_pic
8329      fi
8330      ;;
8331
8332    hpux*)
8333      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8334      # not for PA HP-UX.
8335      case $host_cpu in
8336      hppa*64*|ia64*)
8337        # +Z the default
8338        ;;
8339      *)
8340        lt_prog_compiler_pic='-fPIC'
8341        ;;
8342      esac
8343      ;;
8344
8345    *)
8346      lt_prog_compiler_pic='-fPIC'
8347      ;;
8348    esac
8349  else
8350    # PORTME Check for flag to pass linker flags through the system compiler.
8351    case $host_os in
8352    aix*)
8353      lt_prog_compiler_wl='-Wl,'
8354      if test "$host_cpu" = ia64; then
8355        # AIX 5 now supports IA64 processor
8356        lt_prog_compiler_static='-Bstatic'
8357      else
8358        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8359      fi
8360      ;;
8361      darwin*)
8362        # PIC is the default on this platform
8363        # Common symbols not allowed in MH_DYLIB files
8364       case $cc_basename in
8365         xlc*)
8366         lt_prog_compiler_pic='-qnocommon'
8367         lt_prog_compiler_wl='-Wl,'
8368         ;;
8369       esac
8370       ;;
8371
8372    mingw* | pw32* | os2*)
8373      # This hack is so that the source file can tell whether it is being
8374      # built for inclusion in a dll (and should export symbols for example).
8375      lt_prog_compiler_pic='-DDLL_EXPORT'
8376      ;;
8377
8378    hpux9* | hpux10* | hpux11*)
8379      lt_prog_compiler_wl='-Wl,'
8380      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8381      # not for PA HP-UX.
8382      case $host_cpu in
8383      hppa*64*|ia64*)
8384        # +Z the default
8385        ;;
8386      *)
8387        lt_prog_compiler_pic='+Z'
8388        ;;
8389      esac
8390      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8391      lt_prog_compiler_static='${wl}-a ${wl}archive'
8392      ;;
8393
8394    irix5* | irix6* | nonstopux*)
8395      lt_prog_compiler_wl='-Wl,'
8396      # PIC (with -KPIC) is the default.
8397      lt_prog_compiler_static='-non_shared'
8398      ;;
8399
8400    newsos6)
8401      lt_prog_compiler_pic='-KPIC'
8402      lt_prog_compiler_static='-Bstatic'
8403      ;;
8404
8405    linux*)
8406      case $cc_basename in
8407      icc* | ecc*)
8408        lt_prog_compiler_wl='-Wl,'
8409        lt_prog_compiler_pic='-KPIC'
8410        lt_prog_compiler_static='-static'
8411        ;;
8412      pgcc* | pgf77* | pgf90* | pgf95*)
8413        # Portland Group compilers (*not* the Pentium gcc compiler,
8414        # which looks to be a dead project)
8415        lt_prog_compiler_wl='-Wl,'
8416        lt_prog_compiler_pic='-fpic'
8417        lt_prog_compiler_static='-Bstatic'
8418        ;;
8419      ccc*)
8420        lt_prog_compiler_wl='-Wl,'
8421        # All Alpha code is PIC.
8422        lt_prog_compiler_static='-non_shared'
8423        ;;
8424      esac
8425      ;;
8426
8427    osf3* | osf4* | osf5*)
8428      lt_prog_compiler_wl='-Wl,'
8429      # All OSF/1 code is PIC.
8430      lt_prog_compiler_static='-non_shared'
8431      ;;
8432
8433    solaris*)
8434      lt_prog_compiler_pic='-KPIC'
8435      lt_prog_compiler_static='-Bstatic'
8436      case $cc_basename in
8437      f77* | f90* | f95*)
8438        lt_prog_compiler_wl='-Qoption ld ';;
8439      *)
8440        lt_prog_compiler_wl='-Wl,';;
8441      esac
8442      ;;
8443
8444    sunos4*)
8445      lt_prog_compiler_wl='-Qoption ld '
8446      lt_prog_compiler_pic='-PIC'
8447      lt_prog_compiler_static='-Bstatic'
8448      ;;
8449
8450    sysv4 | sysv4.2uw2* | sysv4.3*)
8451      lt_prog_compiler_wl='-Wl,'
8452      lt_prog_compiler_pic='-KPIC'
8453      lt_prog_compiler_static='-Bstatic'
8454      ;;
8455
8456    sysv4*MP*)
8457      if test -d /usr/nec ;then
8458        lt_prog_compiler_pic='-Kconform_pic'
8459        lt_prog_compiler_static='-Bstatic'
8460      fi
8461      ;;
8462
8463    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8464      lt_prog_compiler_wl='-Wl,'
8465      lt_prog_compiler_pic='-KPIC'
8466      lt_prog_compiler_static='-Bstatic'
8467      ;;
8468
8469    unicos*)
8470      lt_prog_compiler_wl='-Wl,'
8471      lt_prog_compiler_can_build_shared=no
8472      ;;
8473
8474    uts4*)
8475      lt_prog_compiler_pic='-pic'
8476      lt_prog_compiler_static='-Bstatic'
8477      ;;
8478
8479    *)
8480      lt_prog_compiler_can_build_shared=no
8481      ;;
8482    esac
8483  fi
8484
8485echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8486echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8487
8488#
8489# Check to make sure the PIC flag actually works.
8490#
8491if test -n "$lt_prog_compiler_pic"; then
8492
8493echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8494echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8495if test "${lt_prog_compiler_pic_works+set}" = set; then
8496  echo $ECHO_N "(cached) $ECHO_C" >&6
8497else
8498  lt_prog_compiler_pic_works=no
8499  ac_outfile=conftest.$ac_objext
8500   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8501   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8502   # Insert the option either (1) after the last *FLAGS variable, or
8503   # (2) before a word containing "conftest.", or (3) at the end.
8504   # Note that $ac_compile itself does not contain backslashes and begins
8505   # with a dollar sign (not a hyphen), so the echo should work correctly.
8506   # The option is referenced via a variable to avoid confusing sed.
8507   lt_compile=`echo "$ac_compile" | $SED \
8508   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8509   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8510   -e 's:$: $lt_compiler_flag:'`
8511   (eval echo "\"\$as_me:8511: $lt_compile\"" >&5)
8512   (eval "$lt_compile" 2>conftest.err)
8513   ac_status=$?
8514   cat conftest.err >&5
8515   echo "$as_me:8515: \$? = $ac_status" >&5
8516   if (exit $ac_status) && test -s "$ac_outfile"; then
8517     # The compiler can only warn and ignore the option if not recognized
8518     # So say no if there are warnings other than the usual output.
8519     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8520     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8521     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8522       lt_prog_compiler_pic_works=yes
8523     fi
8524   fi
8525   $rm conftest*
8526
8527fi
8528echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8529echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8530
8531if test x"$lt_prog_compiler_pic_works" = xyes; then
8532    case $lt_prog_compiler_pic in
8533     "" | " "*) ;;
8534     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8535     esac
8536else
8537    lt_prog_compiler_pic=
8538     lt_prog_compiler_can_build_shared=no
8539fi
8540
8541fi
8542case $host_os in
8543  # For platforms which do not support PIC, -DPIC is meaningless:
8544  *djgpp*)
8545    lt_prog_compiler_pic=
8546    ;;
8547  *)
8548    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8549    ;;
8550esac
8551
8552#
8553# Check to make sure the static flag actually works.
8554#
8555wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8556echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8557echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8558if test "${lt_prog_compiler_static_works+set}" = set; then
8559  echo $ECHO_N "(cached) $ECHO_C" >&6
8560else
8561  lt_prog_compiler_static_works=no
8562   save_LDFLAGS="$LDFLAGS"
8563   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8564   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8565   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8566     # The linker can only warn and ignore the option if not recognized
8567     # So say no if there are warnings
8568     if test -s conftest.err; then
8569       # Append any errors to the config.log.
8570       cat conftest.err 1>&5
8571       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8572       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8573       if diff conftest.exp conftest.er2 >/dev/null; then
8574         lt_prog_compiler_static_works=yes
8575       fi
8576     else
8577       lt_prog_compiler_static_works=yes
8578     fi
8579   fi
8580   $rm conftest*
8581   LDFLAGS="$save_LDFLAGS"
8582
8583fi
8584echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8585echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8586
8587if test x"$lt_prog_compiler_static_works" = xyes; then
8588    :
8589else
8590    lt_prog_compiler_static=
8591fi
8592
8593
8594echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8595echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8596if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8597  echo $ECHO_N "(cached) $ECHO_C" >&6
8598else
8599  lt_cv_prog_compiler_c_o=no
8600   $rm -r conftest 2>/dev/null
8601   mkdir conftest
8602   cd conftest
8603   mkdir out
8604   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8605
8606   lt_compiler_flag="-o out/conftest2.$ac_objext"
8607   # Insert the option either (1) after the last *FLAGS variable, or
8608   # (2) before a word containing "conftest.", or (3) at the end.
8609   # Note that $ac_compile itself does not contain backslashes and begins
8610   # with a dollar sign (not a hyphen), so the echo should work correctly.
8611   lt_compile=`echo "$ac_compile" | $SED \
8612   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8613   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8614   -e 's:$: $lt_compiler_flag:'`
8615   (eval echo "\"\$as_me:8615: $lt_compile\"" >&5)
8616   (eval "$lt_compile" 2>out/conftest.err)
8617   ac_status=$?
8618   cat out/conftest.err >&5
8619   echo "$as_me:8619: \$? = $ac_status" >&5
8620   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8621   then
8622     # The compiler can only warn and ignore the option if not recognized
8623     # So say no if there are warnings
8624     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8625     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8626     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8627       lt_cv_prog_compiler_c_o=yes
8628     fi
8629   fi
8630   chmod u+w . 2>&5
8631   $rm conftest*
8632   # SGI C++ compiler will create directory out/ii_files/ for
8633   # template instantiation
8634   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8635   $rm out/* && rmdir out
8636   cd ..
8637   rmdir conftest
8638   $rm conftest*
8639
8640fi
8641echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8642echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8643
8644
8645hard_links="nottested"
8646if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8647  # do not overwrite the value of need_locks provided by the user
8648  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8649echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8650  hard_links=yes
8651  $rm conftest*
8652  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8653  touch conftest.a
8654  ln conftest.a conftest.b 2>&5 || hard_links=no
8655  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8656  echo "$as_me:$LINENO: result: $hard_links" >&5
8657echo "${ECHO_T}$hard_links" >&6
8658  if test "$hard_links" = no; then
8659    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8660echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8661    need_locks=warn
8662  fi
8663else
8664  need_locks=no
8665fi
8666
8667echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8668echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8669
8670  runpath_var=
8671  allow_undefined_flag=
8672  enable_shared_with_static_runtimes=no
8673  archive_cmds=
8674  archive_expsym_cmds=
8675  old_archive_From_new_cmds=
8676  old_archive_from_expsyms_cmds=
8677  export_dynamic_flag_spec=
8678  whole_archive_flag_spec=
8679  thread_safe_flag_spec=
8680  hardcode_libdir_flag_spec=
8681  hardcode_libdir_flag_spec_ld=
8682  hardcode_libdir_separator=
8683  hardcode_direct=no
8684  hardcode_minus_L=no
8685  hardcode_shlibpath_var=unsupported
8686  link_all_deplibs=unknown
8687  hardcode_automatic=no
8688  module_cmds=
8689  module_expsym_cmds=
8690  always_export_symbols=no
8691  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8692  # include_expsyms should be a list of space-separated symbols to be *always*
8693  # included in the symbol list
8694  include_expsyms=
8695  # exclude_expsyms can be an extended regexp of symbols to exclude
8696  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8697  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8698  # as well as any symbol that contains `d'.
8699  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8700  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8701  # platforms (ab)use it in PIC code, but their linkers get confused if
8702  # the symbol is explicitly referenced.  Since portable code cannot
8703  # rely on this symbol name, it's probably fine to never include it in
8704  # preloaded symbol tables.
8705  extract_expsyms_cmds=
8706  # Just being paranoid about ensuring that cc_basename is set.
8707  for cc_temp in $compiler""; do
8708  case $cc_temp in
8709    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8710    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8711    \-*) ;;
8712    *) break;;
8713  esac
8714done
8715cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8716
8717  case $host_os in
8718  cygwin* | mingw* | pw32*)
8719    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8720    # When not using gcc, we currently assume that we are using
8721    # Microsoft Visual C++.
8722    if test "$GCC" != yes; then
8723      with_gnu_ld=no
8724    fi
8725    ;;
8726  interix*)
8727    # we just hope/assume this is gcc and not c89 (= MSVC++)
8728    with_gnu_ld=yes
8729    ;;
8730  openbsd*)
8731    with_gnu_ld=no
8732    ;;
8733  esac
8734
8735  ld_shlibs=yes
8736  if test "$with_gnu_ld" = yes; then
8737    # If archive_cmds runs LD, not CC, wlarc should be empty
8738    wlarc='${wl}'
8739
8740    # Set some defaults for GNU ld with shared library support. These
8741    # are reset later if shared libraries are not supported. Putting them
8742    # here allows them to be overridden if necessary.
8743    runpath_var=LD_RUN_PATH
8744    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8745    export_dynamic_flag_spec='${wl}--export-dynamic'
8746    # ancient GNU ld didn't support --whole-archive et. al.
8747    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8748        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8749      else
8750        whole_archive_flag_spec=
8751    fi
8752    supports_anon_versioning=no
8753    case `$LD -v 2>/dev/null` in
8754      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8755      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8756      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8757      *\ 2.11.*) ;; # other 2.11 versions
8758      *) supports_anon_versioning=yes ;;
8759    esac
8760
8761    # See if GNU ld supports shared libraries.
8762    case $host_os in
8763    aix3* | aix4* | aix5*)
8764      # On AIX/PPC, the GNU linker is very broken
8765      if test "$host_cpu" != ia64; then
8766        ld_shlibs=no
8767        cat <<EOF 1>&2
8768
8769*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8770*** to be unable to reliably create shared libraries on AIX.
8771*** Therefore, libtool is disabling shared libraries support.  If you
8772*** really care for shared libraries, you may want to modify your PATH
8773*** so that a non-GNU linker is found, and then restart.
8774
8775EOF
8776      fi
8777      ;;
8778
8779    amigaos*)
8780      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)'
8781      hardcode_libdir_flag_spec='-L$libdir'
8782      hardcode_minus_L=yes
8783
8784      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8785      # that the semantics of dynamic libraries on AmigaOS, at least up
8786      # to version 4, is to share data among multiple programs linked
8787      # with the same dynamic library.  Since this doesn't match the
8788      # behavior of shared libraries on other platforms, we can't use
8789      # them.
8790      ld_shlibs=no
8791      ;;
8792
8793    beos*)
8794      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8795        allow_undefined_flag=unsupported
8796        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8797        # support --undefined.  This deserves some investigation.  FIXME
8798        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8799      else
8800        ld_shlibs=no
8801      fi
8802      ;;
8803
8804    cygwin* | mingw* | pw32*)
8805      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8806      # as there is no search path for DLLs.
8807      hardcode_libdir_flag_spec='-L$libdir'
8808      allow_undefined_flag=unsupported
8809      always_export_symbols=no
8810      enable_shared_with_static_runtimes=yes
8811      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8812
8813      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8814        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8815        # If the export-symbols file already is a .def file (1st line
8816        # is EXPORTS), use it as is; otherwise, prepend...
8817        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8818          cp $export_symbols $output_objdir/$soname.def;
8819        else
8820          echo EXPORTS > $output_objdir/$soname.def;
8821          cat $export_symbols >> $output_objdir/$soname.def;
8822        fi~
8823        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8824      else
8825        ld_shlibs=no
8826      fi
8827      ;;
8828
8829    interix3*)
8830      hardcode_direct=no
8831      hardcode_shlibpath_var=no
8832      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8833      export_dynamic_flag_spec='${wl}-E'
8834      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8835      # Instead, shared libraries are loaded at an image base (0x10000000 by
8836      # default) and relocated if they conflict, which is a slow very memory
8837      # consuming and fragmenting process.  To avoid this, we pick a random,
8838      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8839      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8840      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8841      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'
8842      ;;
8843
8844    linux*)
8845      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8846        tmp_addflag=
8847        case $cc_basename,$host_cpu in
8848        pgcc*)                          # Portland Group C compiler
8849          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'
8850          tmp_addflag=' $pic_flag'
8851          ;;
8852        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8853          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'
8854          tmp_addflag=' $pic_flag -Mnomain' ;;
8855        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8856          tmp_addflag=' -i_dynamic' ;;
8857        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8858          tmp_addflag=' -i_dynamic -nofor_main' ;;
8859        ifc* | ifort*)                  # Intel Fortran compiler
8860          tmp_addflag=' -nofor_main' ;;
8861        esac
8862        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8863
8864        if test $supports_anon_versioning = yes; then
8865          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8866  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8867  $echo "local: *; };" >> $output_objdir/$libname.ver~
8868          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8869        fi
8870      else
8871        ld_shlibs=no
8872      fi
8873      ;;
8874
8875    netbsd*)
8876      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8877        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8878        wlarc=
8879      else
8880        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8881        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8882      fi
8883      ;;
8884
8885    solaris*)
8886      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8887        ld_shlibs=no
8888        cat <<EOF 1>&2
8889
8890*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8891*** create shared libraries on Solaris systems.  Therefore, libtool
8892*** is disabling shared libraries support.  We urge you to upgrade GNU
8893*** binutils to release 2.9.1 or newer.  Another option is to modify
8894*** your PATH or compiler configuration so that the native linker is
8895*** used, and then restart.
8896
8897EOF
8898      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8899        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8900        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8901      else
8902        ld_shlibs=no
8903      fi
8904      ;;
8905
8906    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8907      case `$LD -v 2>&1` in
8908        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8909        ld_shlibs=no
8910        cat <<_LT_EOF 1>&2
8911
8912*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8913*** reliably create shared libraries on SCO systems.  Therefore, libtool
8914*** is disabling shared libraries support.  We urge you to upgrade GNU
8915*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8916*** your PATH or compiler configuration so that the native linker is
8917*** used, and then restart.
8918
8919_LT_EOF
8920        ;;
8921        *)
8922          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8923            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8924            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8925            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8926          else
8927            ld_shlibs=no
8928          fi
8929        ;;
8930      esac
8931      ;;
8932
8933    sunos4*)
8934      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8935      wlarc=
8936      hardcode_direct=yes
8937      hardcode_shlibpath_var=no
8938      ;;
8939
8940    *)
8941      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8942        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8943        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8944      else
8945        ld_shlibs=no
8946      fi
8947      ;;
8948    esac
8949
8950    if test "$ld_shlibs" = no; then
8951      runpath_var=
8952      hardcode_libdir_flag_spec=
8953      export_dynamic_flag_spec=
8954      whole_archive_flag_spec=
8955    fi
8956  else
8957    # PORTME fill in a description of your system's linker (not GNU ld)
8958    case $host_os in
8959    aix3*)
8960      allow_undefined_flag=unsupported
8961      always_export_symbols=yes
8962      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'
8963      # Note: this linker hardcodes the directories in LIBPATH if there
8964      # are no directories specified by -L.
8965      hardcode_minus_L=yes
8966      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8967        # Neither direct hardcoding nor static linking is supported with a
8968        # broken collect2.
8969        hardcode_direct=unsupported
8970      fi
8971      ;;
8972
8973    aix4* | aix5*)
8974      if test "$host_cpu" = ia64; then
8975        # On IA64, the linker does run time linking by default, so we don't
8976        # have to do anything special.
8977        aix_use_runtimelinking=no
8978        exp_sym_flag='-Bexport'
8979        no_entry_flag=""
8980      else
8981        # If we're using GNU nm, then we don't want the "-C" option.
8982        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8983        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8984          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'
8985        else
8986          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'
8987        fi
8988        aix_use_runtimelinking=no
8989
8990        # Test if we are trying to use run time linking or normal
8991        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8992        # need to do runtime linking.
8993        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8994          for ld_flag in $LDFLAGS; do
8995          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8996            aix_use_runtimelinking=yes
8997            break
8998          fi
8999          done
9000          ;;
9001        esac
9002
9003        exp_sym_flag='-bexport'
9004        no_entry_flag='-bnoentry'
9005      fi
9006
9007      # When large executables or shared objects are built, AIX ld can
9008      # have problems creating the table of contents.  If linking a library
9009      # or program results in "error TOC overflow" add -mminimal-toc to
9010      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9011      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9012
9013      archive_cmds=''
9014      hardcode_direct=yes
9015      hardcode_libdir_separator=':'
9016      link_all_deplibs=yes
9017
9018      if test "$GCC" = yes; then
9019        case $host_os in aix4.[012]|aix4.[012].*)
9020        # We only want to do this on AIX 4.2 and lower, the check
9021        # below for broken collect2 doesn't work under 4.3+
9022          collect2name=`${CC} -print-prog-name=collect2`
9023          if test -f "$collect2name" && \
9024           strings "$collect2name" | grep resolve_lib_name >/dev/null
9025          then
9026          # We have reworked collect2
9027          hardcode_direct=yes
9028          else
9029          # We have old collect2
9030          hardcode_direct=unsupported
9031          # It fails to find uninstalled libraries when the uninstalled
9032          # path is not listed in the libpath.  Setting hardcode_minus_L
9033          # to unsupported forces relinking
9034          hardcode_minus_L=yes
9035          hardcode_libdir_flag_spec='-L$libdir'
9036          hardcode_libdir_separator=
9037          fi
9038          ;;
9039        esac
9040        shared_flag='-shared'
9041        if test "$aix_use_runtimelinking" = yes; then
9042          shared_flag="$shared_flag "'${wl}-G'
9043        fi
9044      else
9045        # not using gcc
9046        if test "$host_cpu" = ia64; then
9047        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9048        # chokes on -Wl,-G. The following line is correct:
9049          shared_flag='-G'
9050        else
9051          if test "$aix_use_runtimelinking" = yes; then
9052            shared_flag='${wl}-G'
9053          else
9054            shared_flag='${wl}-bM:SRE'
9055          fi
9056        fi
9057      fi
9058
9059      # It seems that -bexpall does not export symbols beginning with
9060      # underscore (_), so it is better to generate a list of symbols to export.
9061      always_export_symbols=yes
9062      if test "$aix_use_runtimelinking" = yes; then
9063        # Warning - without using the other runtime loading flags (-brtl),
9064        # -berok will link without error, but may produce a broken library.
9065        allow_undefined_flag='-berok'
9066       # Determine the default libpath from the value encoded in an empty executable.
9067       cat >conftest.$ac_ext <<_ACEOF
9068/* confdefs.h.  */
9069_ACEOF
9070cat confdefs.h >>conftest.$ac_ext
9071cat >>conftest.$ac_ext <<_ACEOF
9072/* end confdefs.h.  */
9073
9074int
9075main ()
9076{
9077
9078  ;
9079  return 0;
9080}
9081_ACEOF
9082rm -f conftest.$ac_objext conftest$ac_exeext
9083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9084  (eval $ac_link) 2>conftest.er1
9085  ac_status=$?
9086  grep -v '^ *+' conftest.er1 >conftest.err
9087  rm -f conftest.er1
9088  cat conftest.err >&5
9089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090  (exit $ac_status); } &&
9091         { ac_try='test -z "$ac_c_werror_flag"
9092                         || test ! -s conftest.err'
9093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094  (eval $ac_try) 2>&5
9095  ac_status=$?
9096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097  (exit $ac_status); }; } &&
9098         { ac_try='test -s conftest$ac_exeext'
9099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100  (eval $ac_try) 2>&5
9101  ac_status=$?
9102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103  (exit $ac_status); }; }; then
9104
9105aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9106}'`
9107# Check for a 64-bit object if we didn't find anything.
9108if 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; }
9109}'`; fi
9110else
9111  echo "$as_me: failed program was:" >&5
9112sed 's/^/| /' conftest.$ac_ext >&5
9113
9114fi
9115rm -f conftest.err conftest.$ac_objext \
9116      conftest$ac_exeext conftest.$ac_ext
9117if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9118
9119       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9120        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"
9121       else
9122        if test "$host_cpu" = ia64; then
9123          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9124          allow_undefined_flag="-z nodefs"
9125          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"
9126        else
9127         # Determine the default libpath from the value encoded in an empty executable.
9128         cat >conftest.$ac_ext <<_ACEOF
9129/* confdefs.h.  */
9130_ACEOF
9131cat confdefs.h >>conftest.$ac_ext
9132cat >>conftest.$ac_ext <<_ACEOF
9133/* end confdefs.h.  */
9134
9135int
9136main ()
9137{
9138
9139  ;
9140  return 0;
9141}
9142_ACEOF
9143rm -f conftest.$ac_objext conftest$ac_exeext
9144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145  (eval $ac_link) 2>conftest.er1
9146  ac_status=$?
9147  grep -v '^ *+' conftest.er1 >conftest.err
9148  rm -f conftest.er1
9149  cat conftest.err >&5
9150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151  (exit $ac_status); } &&
9152         { ac_try='test -z "$ac_c_werror_flag"
9153                         || test ! -s conftest.err'
9154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155  (eval $ac_try) 2>&5
9156  ac_status=$?
9157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158  (exit $ac_status); }; } &&
9159         { ac_try='test -s conftest$ac_exeext'
9160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161  (eval $ac_try) 2>&5
9162  ac_status=$?
9163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164  (exit $ac_status); }; }; then
9165
9166aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9167}'`
9168# Check for a 64-bit object if we didn't find anything.
9169if 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; }
9170}'`; fi
9171else
9172  echo "$as_me: failed program was:" >&5
9173sed 's/^/| /' conftest.$ac_ext >&5
9174
9175fi
9176rm -f conftest.err conftest.$ac_objext \
9177      conftest$ac_exeext conftest.$ac_ext
9178if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9179
9180         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9181          # Warning - without using the other run time loading flags,
9182          # -berok will link without error, but may produce a broken library.
9183          no_undefined_flag=' ${wl}-bernotok'
9184          allow_undefined_flag=' ${wl}-berok'
9185          # Exported symbols can be pulled into shared objects from archives
9186          whole_archive_flag_spec='$convenience'
9187          archive_cmds_need_lc=yes
9188          # This is similar to how AIX traditionally builds its shared libraries.
9189          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'
9190        fi
9191      fi
9192      ;;
9193
9194    amigaos*)
9195      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)'
9196      hardcode_libdir_flag_spec='-L$libdir'
9197      hardcode_minus_L=yes
9198      # see comment about different semantics on the GNU ld section
9199      ld_shlibs=no
9200      ;;
9201
9202    bsdi[45]*)
9203      export_dynamic_flag_spec=-rdynamic
9204      ;;
9205
9206    cygwin* | mingw* | pw32*)
9207      # When not using gcc, we currently assume that we are using
9208      # Microsoft Visual C++.
9209      # hardcode_libdir_flag_spec is actually meaningless, as there is
9210      # no search path for DLLs.
9211      hardcode_libdir_flag_spec=' '
9212      allow_undefined_flag=unsupported
9213      # Tell ltmain to make .lib files, not .a files.
9214      libext=lib
9215      # Tell ltmain to make .dll files, not .so files.
9216      shrext_cmds=".dll"
9217      # FIXME: Setting linknames here is a bad hack.
9218      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9219      # The linker will automatically build a .lib file if we build a DLL.
9220      old_archive_From_new_cmds='true'
9221      # FIXME: Should let the user specify the lib program.
9222      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9223      fix_srcfile_path='`cygpath -w "$srcfile"`'
9224      enable_shared_with_static_runtimes=yes
9225      ;;
9226
9227    darwin* | rhapsody*)
9228      case $host_os in
9229        rhapsody* | darwin1.[012])
9230         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9231         ;;
9232       *) # Darwin 1.3 on
9233         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9234           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9235         else
9236           case ${MACOSX_DEPLOYMENT_TARGET} in
9237             10.[012])
9238               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9239               ;;
9240             10.*)
9241               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9242               ;;
9243           esac
9244         fi
9245         ;;
9246      esac
9247      archive_cmds_need_lc=no
9248      hardcode_direct=no
9249      hardcode_automatic=yes
9250      hardcode_shlibpath_var=unsupported
9251      whole_archive_flag_spec=''
9252      link_all_deplibs=yes
9253    if test "$GCC" = yes ; then
9254        output_verbose_link_cmd='echo'
9255        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9256      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9257      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9258      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}'
9259      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}'
9260    else
9261      case $cc_basename in
9262        xlc*)
9263         output_verbose_link_cmd='echo'
9264         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9265         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9266          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9267         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}'
9268          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}'
9269          ;;
9270       *)
9271         ld_shlibs=no
9272          ;;
9273      esac
9274    fi
9275      ;;
9276
9277    dgux*)
9278      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9279      hardcode_libdir_flag_spec='-L$libdir'
9280      hardcode_shlibpath_var=no
9281      ;;
9282
9283    freebsd1*)
9284      ld_shlibs=no
9285      ;;
9286
9287    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9288    # support.  Future versions do this automatically, but an explicit c++rt0.o
9289    # does not break anything, and helps significantly (at the cost of a little
9290    # extra space).
9291    freebsd2.2*)
9292      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9293      hardcode_libdir_flag_spec='-R$libdir'
9294      hardcode_direct=yes
9295      hardcode_shlibpath_var=no
9296      ;;
9297
9298    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9299    freebsd2*)
9300      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9301      hardcode_direct=yes
9302      hardcode_minus_L=yes
9303      hardcode_shlibpath_var=no
9304      ;;
9305
9306    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9307    freebsd* | kfreebsd*-gnu | dragonfly*)
9308      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9309      hardcode_libdir_flag_spec='-R$libdir'
9310      hardcode_direct=yes
9311      hardcode_shlibpath_var=no
9312      ;;
9313
9314    hpux9*)
9315      if test "$GCC" = yes; then
9316        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'
9317      else
9318        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'
9319      fi
9320      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9321      hardcode_libdir_separator=:
9322      hardcode_direct=yes
9323
9324      # hardcode_minus_L: Not really in the search PATH,
9325      # but as the default location of the library.
9326      hardcode_minus_L=yes
9327      export_dynamic_flag_spec='${wl}-E'
9328      ;;
9329
9330    hpux10*)
9331      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9332        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9333      else
9334        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9335      fi
9336      if test "$with_gnu_ld" = no; then
9337        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9338        hardcode_libdir_separator=:
9339
9340        hardcode_direct=yes
9341        export_dynamic_flag_spec='${wl}-E'
9342
9343        # hardcode_minus_L: Not really in the search PATH,
9344        # but as the default location of the library.
9345        hardcode_minus_L=yes
9346      fi
9347      ;;
9348
9349    hpux11*)
9350      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9351        case $host_cpu in
9352        hppa*64*)
9353          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9354          ;;
9355        ia64*)
9356          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9357          ;;
9358        *)
9359          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9360          ;;
9361        esac
9362      else
9363        case $host_cpu in
9364        hppa*64*)
9365          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9366          ;;
9367        ia64*)
9368          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9369          ;;
9370        *)
9371          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9372          ;;
9373        esac
9374      fi
9375      if test "$with_gnu_ld" = no; then
9376        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9377        hardcode_libdir_separator=:
9378
9379        case $host_cpu in
9380        hppa*64*|ia64*)
9381          hardcode_libdir_flag_spec_ld='+b $libdir'
9382          hardcode_direct=no
9383          hardcode_shlibpath_var=no
9384          ;;
9385        *)
9386          hardcode_direct=yes
9387          export_dynamic_flag_spec='${wl}-E'
9388
9389          # hardcode_minus_L: Not really in the search PATH,
9390          # but as the default location of the library.
9391          hardcode_minus_L=yes
9392          ;;
9393        esac
9394      fi
9395      ;;
9396
9397    irix5* | irix6* | nonstopux*)
9398      if test "$GCC" = yes; then
9399        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'
9400      else
9401        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'
9402        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9403      fi
9404      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405      hardcode_libdir_separator=:
9406      link_all_deplibs=yes
9407      ;;
9408
9409    netbsd*)
9410      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9411        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9412      else
9413        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9414      fi
9415      hardcode_libdir_flag_spec='-R$libdir'
9416      hardcode_direct=yes
9417      hardcode_shlibpath_var=no
9418      ;;
9419
9420    newsos6)
9421      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422      hardcode_direct=yes
9423      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9424      hardcode_libdir_separator=:
9425      hardcode_shlibpath_var=no
9426      ;;
9427
9428    openbsd*)
9429      hardcode_direct=yes
9430      hardcode_shlibpath_var=no
9431      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9432        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9433        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9434        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9435        export_dynamic_flag_spec='${wl}-E'
9436      else
9437       case $host_os in
9438         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9439           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9440           hardcode_libdir_flag_spec='-R$libdir'
9441           ;;
9442         *)
9443           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9444           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9445           ;;
9446       esac
9447      fi
9448      ;;
9449
9450    os2*)
9451      hardcode_libdir_flag_spec='-L$libdir'
9452      hardcode_minus_L=yes
9453      allow_undefined_flag=unsupported
9454      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'
9455      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9456      ;;
9457
9458    osf3*)
9459      if test "$GCC" = yes; then
9460        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9461        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'
9462      else
9463        allow_undefined_flag=' -expect_unresolved \*'
9464        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'
9465      fi
9466      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9467      hardcode_libdir_separator=:
9468      ;;
9469
9470    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9471      if test "$GCC" = yes; then
9472        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9473        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'
9474        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9475      else
9476        allow_undefined_flag=' -expect_unresolved \*'
9477        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'
9478        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9479        $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'
9480
9481        # Both c and cxx compiler support -rpath directly
9482        hardcode_libdir_flag_spec='-rpath $libdir'
9483      fi
9484      hardcode_libdir_separator=:
9485      ;;
9486
9487    solaris*)
9488      no_undefined_flag=' -z text'
9489      if test "$GCC" = yes; then
9490        wlarc='${wl}'
9491        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9492        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9493          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9494      else
9495        wlarc=''
9496        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9498        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9499      fi
9500      hardcode_libdir_flag_spec='-R$libdir'
9501      hardcode_shlibpath_var=no
9502      case $host_os in
9503      solaris2.[0-5] | solaris2.[0-5].*) ;;
9504      *)
9505        # The compiler driver will combine linker options so we
9506        # cannot just pass the convience library names through
9507        # without $wl, iff we do not link with $LD.
9508        # Luckily, gcc supports the same syntax we need for Sun Studio.
9509        # Supported since Solaris 2.6 (maybe 2.5.1?)
9510        case $wlarc in
9511        '')
9512          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9513        *)
9514          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' ;;
9515        esac ;;
9516      esac
9517      link_all_deplibs=yes
9518      ;;
9519
9520    sunos4*)
9521      if test "x$host_vendor" = xsequent; then
9522        # Use $CC to link under sequent, because it throws in some extra .o
9523        # files that make .init and .fini sections work.
9524        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9525      else
9526        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9527      fi
9528      hardcode_libdir_flag_spec='-L$libdir'
9529      hardcode_direct=yes
9530      hardcode_minus_L=yes
9531      hardcode_shlibpath_var=no
9532      ;;
9533
9534    sysv4)
9535      case $host_vendor in
9536        sni)
9537          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9538          hardcode_direct=yes # is this really true???
9539        ;;
9540        siemens)
9541          ## LD is ld it makes a PLAMLIB
9542          ## CC just makes a GrossModule.
9543          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9544          reload_cmds='$CC -r -o $output$reload_objs'
9545          hardcode_direct=no
9546        ;;
9547        motorola)
9548          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9549          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9550        ;;
9551      esac
9552      runpath_var='LD_RUN_PATH'
9553      hardcode_shlibpath_var=no
9554      ;;
9555
9556    sysv4.3*)
9557      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9558      hardcode_shlibpath_var=no
9559      export_dynamic_flag_spec='-Bexport'
9560      ;;
9561
9562    sysv4*MP*)
9563      if test -d /usr/nec; then
9564        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9565        hardcode_shlibpath_var=no
9566        runpath_var=LD_RUN_PATH
9567        hardcode_runpath_var=yes
9568        ld_shlibs=yes
9569      fi
9570      ;;
9571
9572    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9573      no_undefined_flag='${wl}-z,text'
9574      archive_cmds_need_lc=no
9575      hardcode_shlibpath_var=no
9576      runpath_var='LD_RUN_PATH'
9577
9578      if test "$GCC" = yes; then
9579        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9581      else
9582        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9583        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9584      fi
9585      ;;
9586
9587    sysv5* | sco3.2v5* | sco5v6*)
9588      # Note: We can NOT use -z defs as we might desire, because we do not
9589      # link with -lc, and that would cause any symbols used from libc to
9590      # always be unresolved, which means just about no library would
9591      # ever link correctly.  If we're not using GNU ld we use -z text
9592      # though, which does catch some bad symbols but isn't as heavy-handed
9593      # as -z defs.
9594      no_undefined_flag='${wl}-z,text'
9595      allow_undefined_flag='${wl}-z,nodefs'
9596      archive_cmds_need_lc=no
9597      hardcode_shlibpath_var=no
9598      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9599      hardcode_libdir_separator=':'
9600      link_all_deplibs=yes
9601      export_dynamic_flag_spec='${wl}-Bexport'
9602      runpath_var='LD_RUN_PATH'
9603
9604      if test "$GCC" = yes; then
9605        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9606        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9607      else
9608        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9609        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9610      fi
9611      ;;
9612
9613    uts4*)
9614      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9615      hardcode_libdir_flag_spec='-L$libdir'
9616      hardcode_shlibpath_var=no
9617      ;;
9618
9619    *)
9620      ld_shlibs=no
9621      ;;
9622    esac
9623  fi
9624
9625echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9626echo "${ECHO_T}$ld_shlibs" >&6
9627test "$ld_shlibs" = no && can_build_shared=no
9628
9629#
9630# Do we need to explicitly link libc?
9631#
9632case "x$archive_cmds_need_lc" in
9633x|xyes)
9634  # Assume -lc should be added
9635  archive_cmds_need_lc=yes
9636
9637  if test "$enable_shared" = yes && test "$GCC" = yes; then
9638    case $archive_cmds in
9639    *'~'*)
9640      # FIXME: we may have to deal with multi-command sequences.
9641      ;;
9642    '$CC '*)
9643      # Test whether the compiler implicitly links with -lc since on some
9644      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9645      # to ld, don't add -lc before -lgcc.
9646      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9647echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9648      $rm conftest*
9649      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9650
9651      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9652  (eval $ac_compile) 2>&5
9653  ac_status=$?
9654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655  (exit $ac_status); } 2>conftest.err; then
9656        soname=conftest
9657        lib=conftest
9658        libobjs=conftest.$ac_objext
9659        deplibs=
9660        wl=$lt_prog_compiler_wl
9661        pic_flag=$lt_prog_compiler_pic
9662        compiler_flags=-v
9663        linker_flags=-v
9664        verstring=
9665        output_objdir=.
9666        libname=conftest
9667        lt_save_allow_undefined_flag=$allow_undefined_flag
9668        allow_undefined_flag=
9669        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9670  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9671  ac_status=$?
9672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673  (exit $ac_status); }
9674        then
9675          archive_cmds_need_lc=no
9676        else
9677          archive_cmds_need_lc=yes
9678        fi
9679        allow_undefined_flag=$lt_save_allow_undefined_flag
9680      else
9681        cat conftest.err 1>&5
9682      fi
9683      $rm conftest*
9684      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9685echo "${ECHO_T}$archive_cmds_need_lc" >&6
9686      ;;
9687    esac
9688  fi
9689  ;;
9690esac
9691
9692echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9693echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9694library_names_spec=
9695libname_spec='lib$name'
9696soname_spec=
9697shrext_cmds=".so"
9698postinstall_cmds=
9699postuninstall_cmds=
9700finish_cmds=
9701finish_eval=
9702shlibpath_var=
9703shlibpath_overrides_runpath=unknown
9704version_type=none
9705dynamic_linker="$host_os ld.so"
9706sys_lib_dlsearch_path_spec="/lib /usr/lib"
9707if test "$GCC" = yes; then
9708  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9709  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9710    # if the path contains ";" then we assume it to be the separator
9711    # otherwise default to the standard path separator (i.e. ":") - it is
9712    # assumed that no part of a normal pathname contains ";" but that should
9713    # okay in the real world where ";" in dirpaths is itself problematic.
9714    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9715  else
9716    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9717  fi
9718else
9719  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9720fi
9721need_lib_prefix=unknown
9722hardcode_into_libs=no
9723
9724# when you set need_version to no, make sure it does not cause -set_version
9725# flags to be left without arguments
9726need_version=unknown
9727
9728case $host_os in
9729aix3*)
9730  version_type=linux
9731  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9732  shlibpath_var=LIBPATH
9733
9734  # AIX 3 has no versioning support, so we append a major version to the name.
9735  soname_spec='${libname}${release}${shared_ext}$major'
9736  ;;
9737
9738aix4* | aix5*)
9739  version_type=linux
9740  need_lib_prefix=no
9741  need_version=no
9742  hardcode_into_libs=yes
9743  if test "$host_cpu" = ia64; then
9744    # AIX 5 supports IA64
9745    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9746    shlibpath_var=LD_LIBRARY_PATH
9747  else
9748    # With GCC up to 2.95.x, collect2 would create an import file
9749    # for dependence libraries.  The import file would start with
9750    # the line `#! .'.  This would cause the generated library to
9751    # depend on `.', always an invalid library.  This was fixed in
9752    # development snapshots of GCC prior to 3.0.
9753    case $host_os in
9754      aix4 | aix4.[01] | aix4.[01].*)
9755      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9756           echo ' yes '
9757           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9758        :
9759      else
9760        can_build_shared=no
9761      fi
9762      ;;
9763    esac
9764    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9765    # soname into executable. Probably we can add versioning support to
9766    # collect2, so additional links can be useful in future.
9767    if test "$aix_use_runtimelinking" = yes; then
9768      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9769      # instead of lib<name>.a to let people know that these are not
9770      # typical AIX shared libraries.
9771      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9772    else
9773      # We preserve .a as extension for shared libraries through AIX4.2
9774      # and later when we are not doing run time linking.
9775      library_names_spec='${libname}${release}.a $libname.a'
9776      soname_spec='${libname}${release}${shared_ext}$major'
9777    fi
9778    shlibpath_var=LIBPATH
9779  fi
9780  ;;
9781
9782amigaos*)
9783  library_names_spec='$libname.ixlibrary $libname.a'
9784  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9785  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'
9786  ;;
9787
9788beos*)
9789  library_names_spec='${libname}${shared_ext}'
9790  dynamic_linker="$host_os ld.so"
9791  shlibpath_var=LIBRARY_PATH
9792  ;;
9793
9794bsdi[45]*)
9795  version_type=linux
9796  need_version=no
9797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798  soname_spec='${libname}${release}${shared_ext}$major'
9799  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9800  shlibpath_var=LD_LIBRARY_PATH
9801  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9802  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9803  # the default ld.so.conf also contains /usr/contrib/lib and
9804  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9805  # libtool to hard-code these into programs
9806  ;;
9807
9808cygwin* | mingw* | pw32*)
9809  version_type=windows
9810  shrext_cmds=".dll"
9811  need_version=no
9812  need_lib_prefix=no
9813
9814  case $GCC,$host_os in
9815  yes,cygwin* | yes,mingw* | yes,pw32*)
9816    library_names_spec='$libname.dll.a'
9817    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9818    postinstall_cmds='base_file=`basename \${file}`~
9819      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9820      dldir=$destdir/`dirname \$dlpath`~
9821      test -d \$dldir || mkdir -p \$dldir~
9822      $install_prog $dir/$dlname \$dldir/$dlname~
9823      chmod a+x \$dldir/$dlname'
9824    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9825      dlpath=$dir/\$dldll~
9826       $rm \$dlpath'
9827    shlibpath_overrides_runpath=yes
9828
9829    case $host_os in
9830    cygwin*)
9831      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9832      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9833      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9834      ;;
9835    mingw*)
9836      # MinGW DLLs use traditional 'lib' prefix
9837      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9838      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9839      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9840        # It is most probably a Windows format PATH printed by
9841        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9842        # path with ; separators, and with drive letters. We can handle the
9843        # drive letters (cygwin fileutils understands them), so leave them,
9844        # especially as we might pass files found there to a mingw objdump,
9845        # which wouldn't understand a cygwinified path. Ahh.
9846        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9847      else
9848        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9849      fi
9850      ;;
9851    pw32*)
9852      # pw32 DLLs use 'pw' prefix rather than 'lib'
9853      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9854      ;;
9855    esac
9856    ;;
9857
9858  *)
9859    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9860    ;;
9861  esac
9862  dynamic_linker='Win32 ld.exe'
9863  # FIXME: first we should search . and the directory the executable is in
9864  shlibpath_var=PATH
9865  ;;
9866
9867darwin* | rhapsody*)
9868  dynamic_linker="$host_os dyld"
9869  version_type=darwin
9870  need_lib_prefix=no
9871  need_version=no
9872  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9873  soname_spec='${libname}${release}${major}$shared_ext'
9874  shlibpath_overrides_runpath=yes
9875  shlibpath_var=DYLD_LIBRARY_PATH
9876  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9877  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9878  if test "$GCC" = yes; then
9879    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"`
9880  else
9881    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9882  fi
9883  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9884  ;;
9885
9886dgux*)
9887  version_type=linux
9888  need_lib_prefix=no
9889  need_version=no
9890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9891  soname_spec='${libname}${release}${shared_ext}$major'
9892  shlibpath_var=LD_LIBRARY_PATH
9893  ;;
9894
9895freebsd1*)
9896  dynamic_linker=no
9897  ;;
9898
9899kfreebsd*-gnu)
9900  version_type=linux
9901  need_lib_prefix=no
9902  need_version=no
9903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9904  soname_spec='${libname}${release}${shared_ext}$major'
9905  shlibpath_var=LD_LIBRARY_PATH
9906  shlibpath_overrides_runpath=no
9907  hardcode_into_libs=yes
9908  dynamic_linker='GNU ld.so'
9909  ;;
9910
9911freebsd* | dragonfly*)
9912  # DragonFly does not have aout.  When/if they implement a new
9913  # versioning mechanism, adjust this.
9914  if test -x /usr/bin/objformat; then
9915    objformat=`/usr/bin/objformat`
9916  else
9917    case $host_os in
9918    freebsd[123]*) objformat=aout ;;
9919    *) objformat=elf ;;
9920    esac
9921  fi
9922  version_type=freebsd-$objformat
9923  case $version_type in
9924    freebsd-elf*)
9925      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9926      need_version=no
9927      need_lib_prefix=no
9928      ;;
9929    freebsd-*)
9930      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9931      need_version=yes
9932      ;;
9933  esac
9934  shlibpath_var=LD_LIBRARY_PATH
9935  case $host_os in
9936  freebsd2*)
9937    shlibpath_overrides_runpath=yes
9938    ;;
9939  freebsd3.[01]* | freebsdelf3.[01]*)
9940    shlibpath_overrides_runpath=yes
9941    hardcode_into_libs=yes
9942    ;;
9943  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9944  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9945    shlibpath_overrides_runpath=no
9946    hardcode_into_libs=yes
9947    ;;
9948  freebsd*) # from 4.6 on
9949    shlibpath_overrides_runpath=yes
9950    hardcode_into_libs=yes
9951    ;;
9952  esac
9953  ;;
9954
9955gnu*)
9956  version_type=linux
9957  need_lib_prefix=no
9958  need_version=no
9959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9960  soname_spec='${libname}${release}${shared_ext}$major'
9961  shlibpath_var=LD_LIBRARY_PATH
9962  hardcode_into_libs=yes
9963  ;;
9964
9965hpux9* | hpux10* | hpux11*)
9966  # Give a soname corresponding to the major version so that dld.sl refuses to
9967  # link against other versions.
9968  version_type=sunos
9969  need_lib_prefix=no
9970  need_version=no
9971  case $host_cpu in
9972  ia64*)
9973    shrext_cmds='.so'
9974    hardcode_into_libs=yes
9975    dynamic_linker="$host_os dld.so"
9976    shlibpath_var=LD_LIBRARY_PATH
9977    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9978    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979    soname_spec='${libname}${release}${shared_ext}$major'
9980    if test "X$HPUX_IA64_MODE" = X32; then
9981      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9982    else
9983      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9984    fi
9985    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9986    ;;
9987   hppa*64*)
9988     shrext_cmds='.sl'
9989     hardcode_into_libs=yes
9990     dynamic_linker="$host_os dld.sl"
9991     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9992     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9993     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9994     soname_spec='${libname}${release}${shared_ext}$major'
9995     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9996     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9997     ;;
9998   *)
9999    shrext_cmds='.sl'
10000    dynamic_linker="$host_os dld.sl"
10001    shlibpath_var=SHLIB_PATH
10002    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10003    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10004    soname_spec='${libname}${release}${shared_ext}$major'
10005    ;;
10006  esac
10007  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10008  postinstall_cmds='chmod 555 $lib'
10009  ;;
10010
10011interix3*)
10012  version_type=linux
10013  need_lib_prefix=no
10014  need_version=no
10015  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10016  soname_spec='${libname}${release}${shared_ext}$major'
10017  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10018  shlibpath_var=LD_LIBRARY_PATH
10019  shlibpath_overrides_runpath=no
10020  hardcode_into_libs=yes
10021  ;;
10022
10023irix5* | irix6* | nonstopux*)
10024  case $host_os in
10025    nonstopux*) version_type=nonstopux ;;
10026    *)
10027        if test "$lt_cv_prog_gnu_ld" = yes; then
10028                version_type=linux
10029        else
10030                version_type=irix
10031        fi ;;
10032  esac
10033  need_lib_prefix=no
10034  need_version=no
10035  soname_spec='${libname}${release}${shared_ext}$major'
10036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10037  case $host_os in
10038  irix5* | nonstopux*)
10039    libsuff= shlibsuff=
10040    ;;
10041  *)
10042    case $LD in # libtool.m4 will add one of these switches to LD
10043    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10044      libsuff= shlibsuff= libmagic=32-bit;;
10045    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10046      libsuff=32 shlibsuff=N32 libmagic=N32;;
10047    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10048      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10049    *) libsuff= shlibsuff= libmagic=never-match;;
10050    esac
10051    ;;
10052  esac
10053  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10054  shlibpath_overrides_runpath=no
10055  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10056  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10057  hardcode_into_libs=yes
10058  ;;
10059
10060# No shared lib support for Linux oldld, aout, or coff.
10061linux*oldld* | linux*aout* | linux*coff*)
10062  dynamic_linker=no
10063  ;;
10064
10065# This must be Linux ELF.
10066linux*)
10067  version_type=linux
10068  need_lib_prefix=no
10069  need_version=no
10070  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10071  soname_spec='${libname}${release}${shared_ext}$major'
10072  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10073  shlibpath_var=LD_LIBRARY_PATH
10074  shlibpath_overrides_runpath=no
10075  # This implies no fast_install, which is unacceptable.
10076  # Some rework will be needed to allow for fast_install
10077  # before this can be enabled.
10078  hardcode_into_libs=yes
10079
10080  # Append ld.so.conf contents to the search path
10081  if test -f /etc/ld.so.conf; then
10082    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' ' '`
10083    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10084  fi
10085
10086  # We used to test for /lib/ld.so.1 and disable shared libraries on
10087  # powerpc, because MkLinux only supported shared libraries with the
10088  # GNU dynamic linker.  Since this was broken with cross compilers,
10089  # most powerpc-linux boxes support dynamic linking these days and
10090  # people can always --disable-shared, the test was removed, and we
10091  # assume the GNU/Linux dynamic linker is in use.
10092  dynamic_linker='GNU/Linux ld.so'
10093  ;;
10094
10095knetbsd*-gnu)
10096  version_type=linux
10097  need_lib_prefix=no
10098  need_version=no
10099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10100  soname_spec='${libname}${release}${shared_ext}$major'
10101  shlibpath_var=LD_LIBRARY_PATH
10102  shlibpath_overrides_runpath=no
10103  hardcode_into_libs=yes
10104  dynamic_linker='GNU ld.so'
10105  ;;
10106
10107netbsd*)
10108  version_type=sunos
10109  need_lib_prefix=no
10110  need_version=no
10111  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10112    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10113    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10114    dynamic_linker='NetBSD (a.out) ld.so'
10115  else
10116    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10117    soname_spec='${libname}${release}${shared_ext}$major'
10118    dynamic_linker='NetBSD ld.elf_so'
10119  fi
10120  shlibpath_var=LD_LIBRARY_PATH
10121  shlibpath_overrides_runpath=yes
10122  hardcode_into_libs=yes
10123  ;;
10124
10125newsos6)
10126  version_type=linux
10127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128  shlibpath_var=LD_LIBRARY_PATH
10129  shlibpath_overrides_runpath=yes
10130  ;;
10131
10132nto-qnx*)
10133  version_type=linux
10134  need_lib_prefix=no
10135  need_version=no
10136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137  soname_spec='${libname}${release}${shared_ext}$major'
10138  shlibpath_var=LD_LIBRARY_PATH
10139  shlibpath_overrides_runpath=yes
10140  ;;
10141
10142openbsd*)
10143  version_type=sunos
10144  sys_lib_dlsearch_path_spec="/usr/lib"
10145  need_lib_prefix=no
10146  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10147  case $host_os in
10148    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10149    *)                         need_version=no  ;;
10150  esac
10151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10152  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10153  shlibpath_var=LD_LIBRARY_PATH
10154  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10155    case $host_os in
10156      openbsd2.[89] | openbsd2.[89].*)
10157        shlibpath_overrides_runpath=no
10158        ;;
10159      *)
10160        shlibpath_overrides_runpath=yes
10161        ;;
10162      esac
10163  else
10164    shlibpath_overrides_runpath=yes
10165  fi
10166  ;;
10167
10168os2*)
10169  libname_spec='$name'
10170  shrext_cmds=".dll"
10171  need_lib_prefix=no
10172  library_names_spec='$libname${shared_ext} $libname.a'
10173  dynamic_linker='OS/2 ld.exe'
10174  shlibpath_var=LIBPATH
10175  ;;
10176
10177osf3* | osf4* | osf5*)
10178  version_type=osf
10179  need_lib_prefix=no
10180  need_version=no
10181  soname_spec='${libname}${release}${shared_ext}$major'
10182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10183  shlibpath_var=LD_LIBRARY_PATH
10184  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10185  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10186  ;;
10187
10188solaris*)
10189  version_type=linux
10190  need_lib_prefix=no
10191  need_version=no
10192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193  soname_spec='${libname}${release}${shared_ext}$major'
10194  shlibpath_var=LD_LIBRARY_PATH
10195  shlibpath_overrides_runpath=yes
10196  hardcode_into_libs=yes
10197  # ldd complains unless libraries are executable
10198  postinstall_cmds='chmod +x $lib'
10199  ;;
10200
10201sunos4*)
10202  version_type=sunos
10203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10204  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10205  shlibpath_var=LD_LIBRARY_PATH
10206  shlibpath_overrides_runpath=yes
10207  if test "$with_gnu_ld" = yes; then
10208    need_lib_prefix=no
10209  fi
10210  need_version=yes
10211  ;;
10212
10213sysv4 | sysv4.3*)
10214  version_type=linux
10215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216  soname_spec='${libname}${release}${shared_ext}$major'
10217  shlibpath_var=LD_LIBRARY_PATH
10218  case $host_vendor in
10219    sni)
10220      shlibpath_overrides_runpath=no
10221      need_lib_prefix=no
10222      export_dynamic_flag_spec='${wl}-Blargedynsym'
10223      runpath_var=LD_RUN_PATH
10224      ;;
10225    siemens)
10226      need_lib_prefix=no
10227      ;;
10228    motorola)
10229      need_lib_prefix=no
10230      need_version=no
10231      shlibpath_overrides_runpath=no
10232      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10233      ;;
10234  esac
10235  ;;
10236
10237sysv4*MP*)
10238  if test -d /usr/nec ;then
10239    version_type=linux
10240    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10241    soname_spec='$libname${shared_ext}.$major'
10242    shlibpath_var=LD_LIBRARY_PATH
10243  fi
10244  ;;
10245
10246sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10247  version_type=freebsd-elf
10248  need_lib_prefix=no
10249  need_version=no
10250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10251  soname_spec='${libname}${release}${shared_ext}$major'
10252  shlibpath_var=LD_LIBRARY_PATH
10253  hardcode_into_libs=yes
10254  if test "$with_gnu_ld" = yes; then
10255    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10256    shlibpath_overrides_runpath=no
10257  else
10258    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10259    shlibpath_overrides_runpath=yes
10260    case $host_os in
10261      sco3.2v5*)
10262        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10263        ;;
10264    esac
10265  fi
10266  sys_lib_dlsearch_path_spec='/usr/lib'
10267  ;;
10268
10269uts4*)
10270  version_type=linux
10271  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10272  soname_spec='${libname}${release}${shared_ext}$major'
10273  shlibpath_var=LD_LIBRARY_PATH
10274  ;;
10275
10276*)
10277  dynamic_linker=no
10278  ;;
10279esac
10280echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10281echo "${ECHO_T}$dynamic_linker" >&6
10282test "$dynamic_linker" = no && can_build_shared=no
10283
10284variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10285if test "$GCC" = yes; then
10286  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10287fi
10288
10289echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10290echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10291hardcode_action=
10292if test -n "$hardcode_libdir_flag_spec" || \
10293   test -n "$runpath_var" || \
10294   test "X$hardcode_automatic" = "Xyes" ; then
10295
10296  # We can hardcode non-existant directories.
10297  if test "$hardcode_direct" != no &&
10298     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10299     # have to relink, otherwise we might link with an installed library
10300     # when we should be linking with a yet-to-be-installed one
10301     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10302     test "$hardcode_minus_L" != no; then
10303    # Linking always hardcodes the temporary library directory.
10304    hardcode_action=relink
10305  else
10306    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10307    hardcode_action=immediate
10308  fi
10309else
10310  # We cannot hardcode anything, or else we can only hardcode existing
10311  # directories.
10312  hardcode_action=unsupported
10313fi
10314echo "$as_me:$LINENO: result: $hardcode_action" >&5
10315echo "${ECHO_T}$hardcode_action" >&6
10316
10317if test "$hardcode_action" = relink; then
10318  # Fast installation is not supported
10319  enable_fast_install=no
10320elif test "$shlibpath_overrides_runpath" = yes ||
10321     test "$enable_shared" = no; then
10322  # Fast installation is not necessary
10323  enable_fast_install=needless
10324fi
10325
10326striplib=
10327old_striplib=
10328echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10329echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10330if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10331  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10332  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10333  echo "$as_me:$LINENO: result: yes" >&5
10334echo "${ECHO_T}yes" >&6
10335else
10336# FIXME - insert some real tests, host_os isn't really good enough
10337  case $host_os in
10338   darwin*)
10339       if test -n "$STRIP" ; then
10340         striplib="$STRIP -x"
10341         echo "$as_me:$LINENO: result: yes" >&5
10342echo "${ECHO_T}yes" >&6
10343       else
10344  echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
10346fi
10347       ;;
10348   *)
10349  echo "$as_me:$LINENO: result: no" >&5
10350echo "${ECHO_T}no" >&6
10351    ;;
10352  esac
10353fi
10354
10355if test "x$enable_dlopen" != xyes; then
10356  enable_dlopen=unknown
10357  enable_dlopen_self=unknown
10358  enable_dlopen_self_static=unknown
10359else
10360  lt_cv_dlopen=no
10361  lt_cv_dlopen_libs=
10362
10363  case $host_os in
10364  beos*)
10365    lt_cv_dlopen="load_add_on"
10366    lt_cv_dlopen_libs=
10367    lt_cv_dlopen_self=yes
10368    ;;
10369
10370  mingw* | pw32*)
10371    lt_cv_dlopen="LoadLibrary"
10372    lt_cv_dlopen_libs=
10373   ;;
10374
10375  cygwin*)
10376    lt_cv_dlopen="dlopen"
10377    lt_cv_dlopen_libs=
10378   ;;
10379
10380  darwin*)
10381  # if libdl is installed we need to link against it
10382    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10383echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10384if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10385  echo $ECHO_N "(cached) $ECHO_C" >&6
10386else
10387  ac_check_lib_save_LIBS=$LIBS
10388LIBS="-ldl  $LIBS"
10389cat >conftest.$ac_ext <<_ACEOF
10390/* confdefs.h.  */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h.  */
10395
10396/* Override any gcc2 internal prototype to avoid an error.  */
10397#ifdef __cplusplus
10398extern "C"
10399#endif
10400/* We use char because int might match the return type of a gcc2
10401   builtin and then its argument prototype would still apply.  */
10402char dlopen ();
10403int
10404main ()
10405{
10406dlopen ();
10407  ;
10408  return 0;
10409}
10410_ACEOF
10411rm -f conftest.$ac_objext conftest$ac_exeext
10412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413  (eval $ac_link) 2>conftest.er1
10414  ac_status=$?
10415  grep -v '^ *+' conftest.er1 >conftest.err
10416  rm -f conftest.er1
10417  cat conftest.err >&5
10418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419  (exit $ac_status); } &&
10420         { ac_try='test -z "$ac_c_werror_flag"
10421                         || test ! -s conftest.err'
10422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423  (eval $ac_try) 2>&5
10424  ac_status=$?
10425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426  (exit $ac_status); }; } &&
10427         { ac_try='test -s conftest$ac_exeext'
10428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429  (eval $ac_try) 2>&5
10430  ac_status=$?
10431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432  (exit $ac_status); }; }; then
10433  ac_cv_lib_dl_dlopen=yes
10434else
10435  echo "$as_me: failed program was:" >&5
10436sed 's/^/| /' conftest.$ac_ext >&5
10437
10438ac_cv_lib_dl_dlopen=no
10439fi
10440rm -f conftest.err conftest.$ac_objext \
10441      conftest$ac_exeext conftest.$ac_ext
10442LIBS=$ac_check_lib_save_LIBS
10443fi
10444echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10445echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10446if test $ac_cv_lib_dl_dlopen = yes; then
10447  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10448else
10449
10450    lt_cv_dlopen="dyld"
10451    lt_cv_dlopen_libs=
10452    lt_cv_dlopen_self=yes
10453
10454fi
10455
10456   ;;
10457
10458  *)
10459    echo "$as_me:$LINENO: checking for shl_load" >&5
10460echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10461if test "${ac_cv_func_shl_load+set}" = set; then
10462  echo $ECHO_N "(cached) $ECHO_C" >&6
10463else
10464  cat >conftest.$ac_ext <<_ACEOF
10465/* confdefs.h.  */
10466_ACEOF
10467cat confdefs.h >>conftest.$ac_ext
10468cat >>conftest.$ac_ext <<_ACEOF
10469/* end confdefs.h.  */
10470/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10471   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10472#define shl_load innocuous_shl_load
10473
10474/* System header to define __stub macros and hopefully few prototypes,
10475    which can conflict with char shl_load (); below.
10476    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10477    <limits.h> exists even on freestanding compilers.  */
10478
10479#ifdef __STDC__
10480# include <limits.h>
10481#else
10482# include <assert.h>
10483#endif
10484
10485#undef shl_load
10486
10487/* Override any gcc2 internal prototype to avoid an error.  */
10488#ifdef __cplusplus
10489extern "C"
10490{
10491#endif
10492/* We use char because int might match the return type of a gcc2
10493   builtin and then its argument prototype would still apply.  */
10494char shl_load ();
10495/* The GNU C library defines this for functions which it implements
10496    to always fail with ENOSYS.  Some functions are actually named
10497    something starting with __ and the normal name is an alias.  */
10498#if defined (__stub_shl_load) || defined (__stub___shl_load)
10499choke me
10500#else
10501char (*f) () = shl_load;
10502#endif
10503#ifdef __cplusplus
10504}
10505#endif
10506
10507int
10508main ()
10509{
10510return f != shl_load;
10511  ;
10512  return 0;
10513}
10514_ACEOF
10515rm -f conftest.$ac_objext conftest$ac_exeext
10516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10517  (eval $ac_link) 2>conftest.er1
10518  ac_status=$?
10519  grep -v '^ *+' conftest.er1 >conftest.err
10520  rm -f conftest.er1
10521  cat conftest.err >&5
10522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523  (exit $ac_status); } &&
10524         { ac_try='test -z "$ac_c_werror_flag"
10525                         || test ! -s conftest.err'
10526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527  (eval $ac_try) 2>&5
10528  ac_status=$?
10529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530  (exit $ac_status); }; } &&
10531         { ac_try='test -s conftest$ac_exeext'
10532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533  (eval $ac_try) 2>&5
10534  ac_status=$?
10535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536  (exit $ac_status); }; }; then
10537  ac_cv_func_shl_load=yes
10538else
10539  echo "$as_me: failed program was:" >&5
10540sed 's/^/| /' conftest.$ac_ext >&5
10541
10542ac_cv_func_shl_load=no
10543fi
10544rm -f conftest.err conftest.$ac_objext \
10545      conftest$ac_exeext conftest.$ac_ext
10546fi
10547echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10548echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10549if test $ac_cv_func_shl_load = yes; then
10550  lt_cv_dlopen="shl_load"
10551else
10552  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10553echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10554if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10555  echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557  ac_check_lib_save_LIBS=$LIBS
10558LIBS="-ldld  $LIBS"
10559cat >conftest.$ac_ext <<_ACEOF
10560/* confdefs.h.  */
10561_ACEOF
10562cat confdefs.h >>conftest.$ac_ext
10563cat >>conftest.$ac_ext <<_ACEOF
10564/* end confdefs.h.  */
10565
10566/* Override any gcc2 internal prototype to avoid an error.  */
10567#ifdef __cplusplus
10568extern "C"
10569#endif
10570/* We use char because int might match the return type of a gcc2
10571   builtin and then its argument prototype would still apply.  */
10572char shl_load ();
10573int
10574main ()
10575{
10576shl_load ();
10577  ;
10578  return 0;
10579}
10580_ACEOF
10581rm -f conftest.$ac_objext conftest$ac_exeext
10582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10583  (eval $ac_link) 2>conftest.er1
10584  ac_status=$?
10585  grep -v '^ *+' conftest.er1 >conftest.err
10586  rm -f conftest.er1
10587  cat conftest.err >&5
10588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589  (exit $ac_status); } &&
10590         { ac_try='test -z "$ac_c_werror_flag"
10591                         || test ! -s conftest.err'
10592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593  (eval $ac_try) 2>&5
10594  ac_status=$?
10595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596  (exit $ac_status); }; } &&
10597         { ac_try='test -s conftest$ac_exeext'
10598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599  (eval $ac_try) 2>&5
10600  ac_status=$?
10601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602  (exit $ac_status); }; }; then
10603  ac_cv_lib_dld_shl_load=yes
10604else
10605  echo "$as_me: failed program was:" >&5
10606sed 's/^/| /' conftest.$ac_ext >&5
10607
10608ac_cv_lib_dld_shl_load=no
10609fi
10610rm -f conftest.err conftest.$ac_objext \
10611      conftest$ac_exeext conftest.$ac_ext
10612LIBS=$ac_check_lib_save_LIBS
10613fi
10614echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10615echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10616if test $ac_cv_lib_dld_shl_load = yes; then
10617  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10618else
10619  echo "$as_me:$LINENO: checking for dlopen" >&5
10620echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10621if test "${ac_cv_func_dlopen+set}" = set; then
10622  echo $ECHO_N "(cached) $ECHO_C" >&6
10623else
10624  cat >conftest.$ac_ext <<_ACEOF
10625/* confdefs.h.  */
10626_ACEOF
10627cat confdefs.h >>conftest.$ac_ext
10628cat >>conftest.$ac_ext <<_ACEOF
10629/* end confdefs.h.  */
10630/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10631   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10632#define dlopen innocuous_dlopen
10633
10634/* System header to define __stub macros and hopefully few prototypes,
10635    which can conflict with char dlopen (); below.
10636    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10637    <limits.h> exists even on freestanding compilers.  */
10638
10639#ifdef __STDC__
10640# include <limits.h>
10641#else
10642# include <assert.h>
10643#endif
10644
10645#undef dlopen
10646
10647/* Override any gcc2 internal prototype to avoid an error.  */
10648#ifdef __cplusplus
10649extern "C"
10650{
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 dlopen ();
10655/* The GNU C library defines this for functions which it implements
10656    to always fail with ENOSYS.  Some functions are actually named
10657    something starting with __ and the normal name is an alias.  */
10658#if defined (__stub_dlopen) || defined (__stub___dlopen)
10659choke me
10660#else
10661char (*f) () = dlopen;
10662#endif
10663#ifdef __cplusplus
10664}
10665#endif
10666
10667int
10668main ()
10669{
10670return f != dlopen;
10671  ;
10672  return 0;
10673}
10674_ACEOF
10675rm -f conftest.$ac_objext conftest$ac_exeext
10676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10677  (eval $ac_link) 2>conftest.er1
10678  ac_status=$?
10679  grep -v '^ *+' conftest.er1 >conftest.err
10680  rm -f conftest.er1
10681  cat conftest.err >&5
10682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683  (exit $ac_status); } &&
10684         { ac_try='test -z "$ac_c_werror_flag"
10685                         || test ! -s conftest.err'
10686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687  (eval $ac_try) 2>&5
10688  ac_status=$?
10689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690  (exit $ac_status); }; } &&
10691         { ac_try='test -s conftest$ac_exeext'
10692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693  (eval $ac_try) 2>&5
10694  ac_status=$?
10695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696  (exit $ac_status); }; }; then
10697  ac_cv_func_dlopen=yes
10698else
10699  echo "$as_me: failed program was:" >&5
10700sed 's/^/| /' conftest.$ac_ext >&5
10701
10702ac_cv_func_dlopen=no
10703fi
10704rm -f conftest.err conftest.$ac_objext \
10705      conftest$ac_exeext conftest.$ac_ext
10706fi
10707echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10708echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10709if test $ac_cv_func_dlopen = yes; then
10710  lt_cv_dlopen="dlopen"
10711else
10712  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10713echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10714if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10715  echo $ECHO_N "(cached) $ECHO_C" >&6
10716else
10717  ac_check_lib_save_LIBS=$LIBS
10718LIBS="-ldl  $LIBS"
10719cat >conftest.$ac_ext <<_ACEOF
10720/* confdefs.h.  */
10721_ACEOF
10722cat confdefs.h >>conftest.$ac_ext
10723cat >>conftest.$ac_ext <<_ACEOF
10724/* end confdefs.h.  */
10725
10726/* Override any gcc2 internal prototype to avoid an error.  */
10727#ifdef __cplusplus
10728extern "C"
10729#endif
10730/* We use char because int might match the return type of a gcc2
10731   builtin and then its argument prototype would still apply.  */
10732char dlopen ();
10733int
10734main ()
10735{
10736dlopen ();
10737  ;
10738  return 0;
10739}
10740_ACEOF
10741rm -f conftest.$ac_objext conftest$ac_exeext
10742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10743  (eval $ac_link) 2>conftest.er1
10744  ac_status=$?
10745  grep -v '^ *+' conftest.er1 >conftest.err
10746  rm -f conftest.er1
10747  cat conftest.err >&5
10748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749  (exit $ac_status); } &&
10750         { ac_try='test -z "$ac_c_werror_flag"
10751                         || test ! -s conftest.err'
10752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753  (eval $ac_try) 2>&5
10754  ac_status=$?
10755  echo "$as_me:$LINENO: \$? = $ac_status" >&5