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

Last change on this file since 2793 was 2793, checked in by stefan, 7 years ago

restoring BuildTools/ThirdParty/SoPlex?/stable/1.2

  • Property svn:executable set to *
File size: 747.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartySoplex 1.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2010,2011 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartySoplex'
431PACKAGE_TARNAME='thirdpartysoplex'
432PACKAGE_VERSION='1.2'
433PACKAGE_STRING='ThirdPartySoplex 1.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="soplex/src/soplex.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SOPLEX_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX PKG_CONFIG ac_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 LT_LDFLAGS COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE SOPLEX_WITH_GMP_CFLAG SOPLEX_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
981ac_env_PKG_CONFIG_value=$PKG_CONFIG
982ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
983ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
984ac_env_CPP_set=${CPP+set}
985ac_env_CPP_value=$CPP
986ac_cv_env_CPP_set=${CPP+set}
987ac_cv_env_CPP_value=$CPP
988ac_env_CXXCPP_set=${CXXCPP+set}
989ac_env_CXXCPP_value=$CXXCPP
990ac_cv_env_CXXCPP_set=${CXXCPP+set}
991ac_cv_env_CXXCPP_value=$CXXCPP
992ac_env_F77_set=${F77+set}
993ac_env_F77_value=$F77
994ac_cv_env_F77_set=${F77+set}
995ac_cv_env_F77_value=$F77
996ac_env_FFLAGS_set=${FFLAGS+set}
997ac_env_FFLAGS_value=$FFLAGS
998ac_cv_env_FFLAGS_set=${FFLAGS+set}
999ac_cv_env_FFLAGS_value=$FFLAGS
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartySoplex 1.2 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartySoplex 1.2:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-soplex compile project SoPlex with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --disable-pkg-config    disable use of pkg-config (if available)
1090  --enable-static[=PKGS]
1091                          build static libraries [default=no]
1092  --disable-dependency-tracking  speeds up one-time build
1093  --enable-dependency-tracking   do not reject slow dependency extractors
1094  --enable-maintainer-mode  enable make rules and dependencies not useful
1095                          (and sometimes confusing) to the casual installer
1096  --enable-shared[=PKGS]
1097                          build shared libraries [default=yes]
1098  --enable-fast-install[=PKGS]
1099                          optimize for fast installation [default=yes]
1100  --disable-libtool-lock  avoid locking (might break parallel builds)
1101  --disable-zlib          do not compile with compression library zlib
1102  --disable-gmp           do not compile with GNU multiple precision library
1103
1104Optional Packages:
1105  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1106  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1107  --with-soplex-verbosity specify the debug verbosity level for project SoPlex
1108  --with-soplex-checklevel
1109                          specify the sanity check level for project SoPlex
1110  --with-coin-instdir     prefix of installation directory for precompiled
1111                          COIN packages
1112  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1113  --with-pic              try to use only PIC/non-PIC objects [default=use
1114                          both]
1115  --with-tags[=TAGS]
1116                          include additional configurations [automatic]
1117
1118Some influential environment variables:
1119  CDEFS       Additional -D flags to be used when compiling C code.
1120  ADD_CFLAGS  Additional C compiler options
1121  DBG_CFLAGS  Debug C compiler options
1122  OPT_CFLAGS  Optimize C compiler options
1123  CC          C compiler command
1124  CFLAGS      C compiler flags
1125  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1126              nonstandard directory <lib dir>
1127  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1128              headers in a nonstandard directory <include dir>
1129  MPICC       C MPI Compiler
1130  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1131  ADD_CXXFLAGS
1132              Additional C++ compiler options
1133  DBG_CXXFLAGS
1134              Debug C++ compiler options
1135  OPT_CXXFLAGS
1136              Optimize C++ compiler options
1137  CXX         C++ compiler command
1138  CXXFLAGS    C++ compiler flags
1139  MPICXX      C++ MPI Compiler
1140  PKG_CONFIG  path to pkg-config utility
1141  CPP         C preprocessor
1142  CXXCPP      C++ preprocessor
1143  F77         Fortran 77 compiler command
1144  FFLAGS      Fortran 77 compiler flags
1145
1146Use these variables to override the choices made by `configure' or to help
1147it to find libraries and programs with nonstandard names/locations.
1148
1149Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1150_ACEOF
1151fi
1152
1153if test "$ac_init_help" = "recursive"; then
1154  # If there are subdirs, report their specific --help.
1155  ac_popdir=`pwd`
1156  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1157    test -d $ac_dir || continue
1158    ac_builddir=.
1159
1160if test "$ac_dir" != .; then
1161  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1162  # A "../" for each directory in $ac_dir_suffix.
1163  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1164else
1165  ac_dir_suffix= ac_top_builddir=
1166fi
1167
1168case $srcdir in
1169  .)  # No --srcdir option.  We are building in place.
1170    ac_srcdir=.
1171    if test -z "$ac_top_builddir"; then
1172       ac_top_srcdir=.
1173    else
1174       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1175    fi ;;
1176  [\\/]* | ?:[\\/]* )  # Absolute path.
1177    ac_srcdir=$srcdir$ac_dir_suffix;
1178    ac_top_srcdir=$srcdir ;;
1179  *) # Relative path.
1180    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1181    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1182esac
1183
1184# Do not use `cd foo && pwd` to compute absolute paths, because
1185# the directories may not exist.
1186case `pwd` in
1187.) ac_abs_builddir="$ac_dir";;
1188*)
1189  case "$ac_dir" in
1190  .) ac_abs_builddir=`pwd`;;
1191  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1192  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1193  esac;;
1194esac
1195case $ac_abs_builddir in
1196.) ac_abs_top_builddir=${ac_top_builddir}.;;
1197*)
1198  case ${ac_top_builddir}. in
1199  .) ac_abs_top_builddir=$ac_abs_builddir;;
1200  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1201  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1202  esac;;
1203esac
1204case $ac_abs_builddir in
1205.) ac_abs_srcdir=$ac_srcdir;;
1206*)
1207  case $ac_srcdir in
1208  .) ac_abs_srcdir=$ac_abs_builddir;;
1209  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1210  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1211  esac;;
1212esac
1213case $ac_abs_builddir in
1214.) ac_abs_top_srcdir=$ac_top_srcdir;;
1215*)
1216  case $ac_top_srcdir in
1217  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1218  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1219  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1220  esac;;
1221esac
1222
1223    cd $ac_dir
1224    # Check for guested configure; otherwise get Cygnus style configure.
1225    if test -f $ac_srcdir/configure.gnu; then
1226      echo
1227      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1228    elif test -f $ac_srcdir/configure; then
1229      echo
1230      $SHELL $ac_srcdir/configure  --help=recursive
1231    elif test -f $ac_srcdir/configure.ac ||
1232           test -f $ac_srcdir/configure.in; then
1233      echo
1234      $ac_configure --help
1235    else
1236      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1237    fi
1238    cd $ac_popdir
1239  done
1240fi
1241
1242test -n "$ac_init_help" && exit 0
1243if $ac_init_version; then
1244  cat <<\_ACEOF
1245ThirdPartySoplex configure 1.2
1246generated by GNU Autoconf 2.59
1247
1248Copyright (C) 2003 Free Software Foundation, Inc.
1249This configure script is free software; the Free Software Foundation
1250gives unlimited permission to copy, distribute and modify it.
1251
1252
1253Copyright 2010,2011 Stefan Vigerske and others.
1254All Rights Reserved.
1255This file is part of the open source package COIN-OR which is distributed
1256under the Eclipse Public License.
1257_ACEOF
1258  exit 0
1259fi
1260exec 5>config.log
1261cat >&5 <<_ACEOF
1262This file contains any messages produced by compilers while
1263running configure, to aid debugging if configure makes a mistake.
1264
1265It was created by ThirdPartySoplex $as_me 1.2, which was
1266generated by GNU Autoconf 2.59.  Invocation command line was
1267
1268  $ $0 $@
1269
1270_ACEOF
1271{
1272cat <<_ASUNAME
1273## --------- ##
1274## Platform. ##
1275## --------- ##
1276
1277hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1278uname -m = `(uname -m) 2>/dev/null || echo unknown`
1279uname -r = `(uname -r) 2>/dev/null || echo unknown`
1280uname -s = `(uname -s) 2>/dev/null || echo unknown`
1281uname -v = `(uname -v) 2>/dev/null || echo unknown`
1282
1283/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1284/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1285
1286/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1287/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1288/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1289hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1290/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1291/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1292/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1293
1294_ASUNAME
1295
1296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1297for as_dir in $PATH
1298do
1299  IFS=$as_save_IFS
1300  test -z "$as_dir" && as_dir=.
1301  echo "PATH: $as_dir"
1302done
1303
1304} >&5
1305
1306cat >&5 <<_ACEOF
1307
1308
1309## ----------- ##
1310## Core tests. ##
1311## ----------- ##
1312
1313_ACEOF
1314
1315
1316# Keep a trace of the command line.
1317# Strip out --no-create and --no-recursion so they do not pile up.
1318# Strip out --silent because we don't want to record it for future runs.
1319# Also quote any args containing shell meta-characters.
1320# Make two passes to allow for proper duplicate-argument suppression.
1321ac_configure_args=
1322ac_configure_args0=
1323ac_configure_args1=
1324ac_sep=
1325ac_must_keep_next=false
1326for ac_pass in 1 2
1327do
1328  for ac_arg
1329  do
1330    case $ac_arg in
1331    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1332    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1333    | -silent | --silent | --silen | --sile | --sil)
1334      continue ;;
1335    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1336      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1337    esac
1338    case $ac_pass in
1339    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1340    2)
1341      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1342      if test $ac_must_keep_next = true; then
1343        ac_must_keep_next=false # Got value, back to normal.
1344      else
1345        case $ac_arg in
1346          *=* | --config-cache | -C | -disable-* | --disable-* \
1347          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1348          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1349          | -with-* | --with-* | -without-* | --without-* | --x)
1350            case "$ac_configure_args0 " in
1351              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1352            esac
1353            ;;
1354          -* ) ac_must_keep_next=true ;;
1355        esac
1356      fi
1357      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1358      # Get rid of the leading space.
1359      ac_sep=" "
1360      ;;
1361    esac
1362  done
1363done
1364$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1365$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1366
1367# When interrupted or exit'd, cleanup temporary files, and complete
1368# config.log.  We remove comments because anyway the quotes in there
1369# would cause problems or look ugly.
1370# WARNING: Be sure not to use single quotes in there, as some shells,
1371# such as our DU 5.0 friend, will then `close' the trap.
1372trap 'exit_status=$?
1373  # Save into config.log some information that might help in debugging.
1374  {
1375    echo
1376
1377    cat <<\_ASBOX
1378## ---------------- ##
1379## Cache variables. ##
1380## ---------------- ##
1381_ASBOX
1382    echo
1383    # The following way of writing the cache mishandles newlines in values,
1384{
1385  (set) 2>&1 |
1386    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1387    *ac_space=\ *)
1388      sed -n \
1389        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1390          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1391      ;;
1392    *)
1393      sed -n \
1394        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1395      ;;
1396    esac;
1397}
1398    echo
1399
1400    cat <<\_ASBOX
1401## ----------------- ##
1402## Output variables. ##
1403## ----------------- ##
1404_ASBOX
1405    echo
1406    for ac_var in $ac_subst_vars
1407    do
1408      eval ac_val=$`echo $ac_var`
1409      echo "$ac_var='"'"'$ac_val'"'"'"
1410    done | sort
1411    echo
1412
1413    if test -n "$ac_subst_files"; then
1414      cat <<\_ASBOX
1415## ------------- ##
1416## Output files. ##
1417## ------------- ##
1418_ASBOX
1419      echo
1420      for ac_var in $ac_subst_files
1421      do
1422        eval ac_val=$`echo $ac_var`
1423        echo "$ac_var='"'"'$ac_val'"'"'"
1424      done | sort
1425      echo
1426    fi
1427
1428    if test -s confdefs.h; then
1429      cat <<\_ASBOX
1430## ----------- ##
1431## confdefs.h. ##
1432## ----------- ##
1433_ASBOX
1434      echo
1435      sed "/^$/d" confdefs.h | sort
1436      echo
1437    fi
1438    test "$ac_signal" != 0 &&
1439      echo "$as_me: caught signal $ac_signal"
1440    echo "$as_me: exit $exit_status"
1441  } >&5
1442  rm -f core *.core &&
1443  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1444    exit $exit_status
1445     ' 0
1446for ac_signal in 1 2 13 15; do
1447  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1448done
1449ac_signal=0
1450
1451# confdefs.h avoids OS command line length limits that DEFS can exceed.
1452rm -rf conftest* confdefs.h
1453# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1454echo >confdefs.h
1455
1456# Predefined preprocessor variables.
1457
1458cat >>confdefs.h <<_ACEOF
1459#define PACKAGE_NAME "$PACKAGE_NAME"
1460_ACEOF
1461
1462
1463cat >>confdefs.h <<_ACEOF
1464#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1465_ACEOF
1466
1467
1468cat >>confdefs.h <<_ACEOF
1469#define PACKAGE_VERSION "$PACKAGE_VERSION"
1470_ACEOF
1471
1472
1473cat >>confdefs.h <<_ACEOF
1474#define PACKAGE_STRING "$PACKAGE_STRING"
1475_ACEOF
1476
1477
1478cat >>confdefs.h <<_ACEOF
1479#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1480_ACEOF
1481
1482
1483# Let the site file select an alternate cache file if it wants to.
1484# Prefer explicitly selected file to automatically selected ones.
1485if test -z "$CONFIG_SITE"; then
1486  if test "x$prefix" != xNONE; then
1487    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1488  else
1489    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1490  fi
1491fi
1492for ac_site_file in $CONFIG_SITE; do
1493  if test -r "$ac_site_file"; then
1494    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1495echo "$as_me: loading site script $ac_site_file" >&6;}
1496    sed 's/^/| /' "$ac_site_file" >&5
1497    . "$ac_site_file"
1498  fi
1499done
1500
1501if test -r "$cache_file"; then
1502  # Some versions of bash will fail to source /dev/null (special
1503  # files actually), so we avoid doing that.
1504  if test -f "$cache_file"; then
1505    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1506echo "$as_me: loading cache $cache_file" >&6;}
1507    case $cache_file in
1508      [\\/]* | ?:[\\/]* ) . $cache_file;;
1509      *)                      . ./$cache_file;;
1510    esac
1511  fi
1512else
1513  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1514echo "$as_me: creating cache $cache_file" >&6;}
1515  >$cache_file
1516fi
1517
1518# Check that the precious variables saved in the cache have kept the same
1519# value.
1520ac_cache_corrupted=false
1521for ac_var in `(set) 2>&1 |
1522               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1523  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1524  eval ac_new_set=\$ac_env_${ac_var}_set
1525  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1526  eval ac_new_val="\$ac_env_${ac_var}_value"
1527  case $ac_old_set,$ac_new_set in
1528    set,)
1529      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1530echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1531      ac_cache_corrupted=: ;;
1532    ,set)
1533      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1534echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1535      ac_cache_corrupted=: ;;
1536    ,);;
1537    *)
1538      if test "x$ac_old_val" != "x$ac_new_val"; then
1539        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1540echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1541        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1542echo "$as_me:   former value:  $ac_old_val" >&2;}
1543        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1544echo "$as_me:   current value: $ac_new_val" >&2;}
1545        ac_cache_corrupted=:
1546      fi;;
1547  esac
1548  # Pass precious variables to config.status.
1549  if test "$ac_new_set" = set; then
1550    case $ac_new_val in
1551    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1552      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1553    *) ac_arg=$ac_var=$ac_new_val ;;
1554    esac
1555    case " $ac_configure_args " in
1556      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1557      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1558    esac
1559  fi
1560done
1561if $ac_cache_corrupted; then
1562  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1563echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1564  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1565echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1566   { (exit 1); exit 1; }; }
1567fi
1568
1569ac_ext=c
1570ac_cpp='$CPP $CPPFLAGS'
1571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1573ac_compiler_gnu=$ac_cv_c_compiler_gnu
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604# List one file in the package so that the configure script can test
1605# whether the package is actually there
1606
1607
1608# Where should everything be installed by default?  Here, we want it
1609# to be installed directly in 'bin', 'lib', 'include' subdirectories
1610# of the directory where configure is run.  The default would be
1611# /usr/local.
1612
1613
1614
1615# As backup, we make sure we don't loose an FLIBS if it has been set
1616# by the user
1617save_FLIBS="$FLIBS"
1618
1619# A useful makefile conditional that is always false
1620
1621
1622if false; then
1623  ALWAYS_FALSE_TRUE=
1624  ALWAYS_FALSE_FALSE='#'
1625else
1626  ALWAYS_FALSE_TRUE='#'
1627  ALWAYS_FALSE_FALSE=
1628fi
1629
1630
1631# We set the following variable so that we know later in AC_COIN_FINALIZE
1632# that we are in a project main directory
1633coin_projectdir=yes
1634
1635# Set the project's version numbers
1636
1637
1638cat >>confdefs.h <<_ACEOF
1639#define SOPLEX_VERSION "$PACKAGE_VERSION"
1640_ACEOF
1641
1642
1643  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1644  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1645  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1646  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1647  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1648  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1649
1650cat >>confdefs.h <<_ACEOF
1651#define SOPLEX_VERSION_MAJOR $coin_majorver
1652_ACEOF
1653
1654
1655cat >>confdefs.h <<_ACEOF
1656#define SOPLEX_VERSION_MINOR $coin_minorver
1657_ACEOF
1658
1659
1660cat >>confdefs.h <<_ACEOF
1661#define SOPLEX_VERSION_RELEASE $coin_releasever
1662_ACEOF
1663
1664
1665  # We use the following variable to have a string with the upper case
1666  # version of the project name
1667  COIN_PRJCT=SOPLEX
1668
1669  # Set the project's SVN revision number. The complicated sed expression
1670  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1671  # as a single number.
1672  # Extract the first word of "svnversion", so it can be a program name with args.
1673set dummy svnversion; ac_word=$2
1674echo "$as_me:$LINENO: checking for $ac_word" >&5
1675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676if test "${ac_cv_prog_have_svnversion+set}" = set; then
1677  echo $ECHO_N "(cached) $ECHO_C" >&6
1678else
1679  if test -n "$have_svnversion"; then
1680  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1681else
1682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683for as_dir in $PATH
1684do
1685  IFS=$as_save_IFS
1686  test -z "$as_dir" && as_dir=.
1687  for ac_exec_ext in '' $ac_executable_extensions; do
1688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689    ac_cv_prog_have_svnversion="yes"
1690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691    break 2
1692  fi
1693done
1694done
1695
1696  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1697fi
1698fi
1699have_svnversion=$ac_cv_prog_have_svnversion
1700if test -n "$have_svnversion"; then
1701  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1702echo "${ECHO_T}$have_svnversion" >&6
1703else
1704  echo "$as_me:$LINENO: result: no" >&5
1705echo "${ECHO_T}no" >&6
1706fi
1707
1708  if test "x$have_svnversion" = xyes; then
1709
1710    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1711    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1712      SOPLEX_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1713
1714cat >>confdefs.h <<_ACEOF
1715#define SOPLEX_SVN_REV $SOPLEX_SVN_REV
1716_ACEOF
1717
1718    fi
1719  fi
1720
1721
1722
1723# Capture libtool library version, if given.
1724
1725
1726
1727
1728#############################################################################
1729#                         Standard build tool stuff                         #
1730#############################################################################
1731
1732# Get the system type
1733ac_aux_dir=
1734for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1735  if test -f $ac_dir/install-sh; then
1736    ac_aux_dir=$ac_dir
1737    ac_install_sh="$ac_aux_dir/install-sh -c"
1738    break
1739  elif test -f $ac_dir/install.sh; then
1740    ac_aux_dir=$ac_dir
1741    ac_install_sh="$ac_aux_dir/install.sh -c"
1742    break
1743  elif test -f $ac_dir/shtool; then
1744    ac_aux_dir=$ac_dir
1745    ac_install_sh="$ac_aux_dir/shtool install -c"
1746    break
1747  fi
1748done
1749if test -z "$ac_aux_dir"; then
1750  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1751echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1752   { (exit 1); exit 1; }; }
1753fi
1754ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1755ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1756ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1757
1758# Make sure we can run config.sub.
1759$ac_config_sub sun4 >/dev/null 2>&1 ||
1760  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1761echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1762   { (exit 1); exit 1; }; }
1763
1764echo "$as_me:$LINENO: checking build system type" >&5
1765echo $ECHO_N "checking build system type... $ECHO_C" >&6
1766if test "${ac_cv_build+set}" = set; then
1767  echo $ECHO_N "(cached) $ECHO_C" >&6
1768else
1769  ac_cv_build_alias=$build_alias
1770test -z "$ac_cv_build_alias" &&
1771  ac_cv_build_alias=`$ac_config_guess`
1772test -z "$ac_cv_build_alias" &&
1773  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1774echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1775   { (exit 1); exit 1; }; }
1776ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1777  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1778echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1779   { (exit 1); exit 1; }; }
1780
1781fi
1782echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1783echo "${ECHO_T}$ac_cv_build" >&6
1784build=$ac_cv_build
1785build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1786build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1787build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1788
1789
1790
1791# Check if user wants to produce debugging code
1792
1793echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1794echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1795
1796# Check whether --enable-debug or --disable-debug was given.
1797if test "${enable_debug+set}" = set; then
1798  enableval="$enable_debug"
1799  case "${enableval}" in
1800   yes) coin_debug_compile=true
1801        if test "${enable_shared+set}" = set; then :; else
1802          enable_shared=no
1803        fi
1804        ;;
1805   no)  coin_debug_compile=false
1806        ;;
1807   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1808echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1809   { (exit 1); exit 1; }; }
1810        ;;
1811esac
1812else
1813  coin_debug_compile=false
1814fi;
1815
1816# Check whether --enable-debug-soplex or --disable-debug-soplex was given.
1817if test "${enable_debug_soplex+set}" = set; then
1818  enableval="$enable_debug_soplex"
1819  case "${enableval}" in
1820    yes) coin_debug_compile=true
1821         ;;
1822    no)  coin_debug_compile=false
1823         ;;
1824    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-soplex" >&5
1825echo "$as_me: error: bad value ${enableval} for --enable-debug-soplex" >&2;}
1826   { (exit 1); exit 1; }; }
1827         ;;
1828 esac
1829else
1830  :
1831fi;
1832
1833 # m4_ifvaln([SoPlex],
1834
1835if test $coin_debug_compile = true; then
1836  echo "$as_me:$LINENO: result: yes" >&5
1837echo "${ECHO_T}yes" >&6
1838else
1839  echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6
1841fi
1842
1843
1844# Check whether --with-soplex-verbosity or --without-soplex-verbosity was given.
1845if test "${with_soplex_verbosity+set}" = set; then
1846  withval="$with_soplex_verbosity"
1847  if test "$withval" = yes; then
1848                withval=1
1849              fi
1850              coin_soplex_verbosity=$withval
1851else
1852  coin_soplex_verbosity=0
1853fi;
1854
1855cat >>confdefs.h <<_ACEOF
1856#define COIN_SOPLEX_VERBOSITY $coin_soplex_verbosity
1857_ACEOF
1858
1859
1860
1861# Check whether --with-soplex-checklevel or --without-soplex-checklevel was given.
1862if test "${with_soplex_checklevel+set}" = set; then
1863  withval="$with_soplex_checklevel"
1864  if test "$withval" = yes; then
1865                withval=1
1866              fi
1867              coin_soplex_checklevel=$withval
1868else
1869  coin_soplex_checklevel=0
1870fi;
1871
1872cat >>confdefs.h <<_ACEOF
1873#define COIN_SOPLEX_CHECKLEVEL $coin_soplex_checklevel
1874_ACEOF
1875
1876
1877 # m4_ifvaln([SoPlex],
1878
1879
1880
1881# Get the name of the C compiler and appropriate compiler options
1882case $build in
1883  *-mingw*)
1884    if test "${LD+set}" = set; then :; else
1885      LD=link
1886    fi
1887    ;;
1888 esac
1889 case $enable_doscompile in
1890   msvc)
1891     if test "x${LD+set}" = xset; then :; else
1892       LD=link
1893     fi
1894     ;;
1895 esac
1896
1897
1898 # Check whether --enable-doscompile or --disable-doscompile was given.
1899if test "${enable_doscompile+set}" = set; then
1900  enableval="$enable_doscompile"
1901  if test "$enable_doscompile" != no; then
1902     case $build in
1903       *-cygwin* | *-mingw*) ;;
1904       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1905echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1906   { (exit 1); exit 1; }; } ;;
1907     esac
1908   fi
1909else
1910  enable_doscompile=no
1911fi;
1912 case "$enable_doscompile" in
1913   mingw)
1914     case $build in
1915       *-mingw*) enable_doscompile=no ;;
1916     esac
1917     ;;
1918   msvc|no) ;;
1919   yes) enable_doscompile=mingw ;;
1920   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1921                    Try configure --help=recursive." >&5
1922echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1923                    Try configure --help=recursive." >&2;}
1924   { (exit 1); exit 1; }; }
1925      ;;
1926  esac
1927  if test "$enable_doscompile" != no ; then
1928    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1929echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1930  fi
1931
1932
1933
1934
1935ac_ext=c
1936ac_cpp='$CPP $CPPFLAGS'
1937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1939ac_compiler_gnu=$ac_cv_c_compiler_gnu
1940
1941
1942# For consistency, we set the C compiler to the same value of the C++
1943# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1944if test x"$CXX" != x; then
1945  case "$CXX" in
1946    clang* ) ;;
1947    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1948      if test x"$CC" = x; then
1949        CC="$CXX"
1950        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1951echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1952      fi
1953      ;;
1954  esac
1955fi
1956
1957
1958
1959
1960
1961
1962coin_has_cc=yes
1963
1964save_cflags="$CFLAGS"
1965
1966# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1967# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1968# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1969# compiler. In this case, put cc after gcc.
1970
1971case $build in
1972  *-cygwin* | *-mingw*)
1973             if test "$enable_doscompile" = msvc ; then
1974               comps="icl cl"
1975             else
1976               comps="gcc cl"
1977             fi ;;
1978  *-*-solaris*)
1979             # Extract the first word of "cc", so it can be a program name with args.
1980set dummy cc; ac_word=$2
1981echo "$as_me:$LINENO: checking for $ac_word" >&5
1982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1984  echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986  if test -n "$sol_cc_compiler"; then
1987  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1988else
1989  ac_prog_rejected=no
1990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1991for as_dir in $PATH
1992do
1993  IFS=$as_save_IFS
1994  test -z "$as_dir" && as_dir=.
1995  for ac_exec_ext in '' $ac_executable_extensions; do
1996  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1997    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1998       ac_prog_rejected=yes
1999       continue
2000     fi
2001    ac_cv_prog_sol_cc_compiler="cc"
2002    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003    break 2
2004  fi
2005done
2006done
2007
2008if test $ac_prog_rejected = yes; then
2009  # We found a bogon in the path, so make sure we never use it.
2010  set dummy $ac_cv_prog_sol_cc_compiler
2011  shift
2012  if test $# != 0; then
2013    # We chose a different compiler from the bogus one.
2014    # However, it has the same basename, so the bogon will be chosen
2015    # first if we set sol_cc_compiler to just the basename; use the full file name.
2016    shift
2017    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2018  fi
2019fi
2020fi
2021fi
2022sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2023if test -n "$sol_cc_compiler"; then
2024  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2025echo "${ECHO_T}$sol_cc_compiler" >&6
2026else
2027  echo "$as_me:$LINENO: result: no" >&5
2028echo "${ECHO_T}no" >&6
2029fi
2030
2031             if test "$sol_cc_compiler" = "cc" ; then
2032               comps="cc xlc gcc pgcc icc"
2033             else
2034               comps="xlc gcc pgcc icc cc"
2035             fi
2036             ;;
2037  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2038  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2039  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2040esac
2041
2042# We delete the cached value, since the test might not have been
2043# performed with our choice of compilers earlier
2044$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2045# AC_MSG_NOTICE([C compiler candidates: $comps])
2046ac_ext=c
2047ac_cpp='$CPP $CPPFLAGS'
2048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2050ac_compiler_gnu=$ac_cv_c_compiler_gnu
2051if test -n "$ac_tool_prefix"; then
2052  for ac_prog in $comps
2053  do
2054    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2055set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2056echo "$as_me:$LINENO: checking for $ac_word" >&5
2057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058if test "${ac_cv_prog_CC+set}" = set; then
2059  echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061  if test -n "$CC"; then
2062  ac_cv_prog_CC="$CC" # Let the user override the test.
2063else
2064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065for as_dir in $PATH
2066do
2067  IFS=$as_save_IFS
2068  test -z "$as_dir" && as_dir=.
2069  for ac_exec_ext in '' $ac_executable_extensions; do
2070  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073    break 2
2074  fi
2075done
2076done
2077
2078fi
2079fi
2080CC=$ac_cv_prog_CC
2081if test -n "$CC"; then
2082  echo "$as_me:$LINENO: result: $CC" >&5
2083echo "${ECHO_T}$CC" >&6
2084else
2085  echo "$as_me:$LINENO: result: no" >&5
2086echo "${ECHO_T}no" >&6
2087fi
2088
2089    test -n "$CC" && break
2090  done
2091fi
2092if test -z "$CC"; then
2093  ac_ct_CC=$CC
2094  for ac_prog in $comps
2095do
2096  # Extract the first word of "$ac_prog", so it can be a program name with args.
2097set dummy $ac_prog; ac_word=$2
2098echo "$as_me:$LINENO: checking for $ac_word" >&5
2099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101  echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103  if test -n "$ac_ct_CC"; then
2104  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2105else
2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109  IFS=$as_save_IFS
2110  test -z "$as_dir" && as_dir=.
2111  for ac_exec_ext in '' $ac_executable_extensions; do
2112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113    ac_cv_prog_ac_ct_CC="$ac_prog"
2114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115    break 2
2116  fi
2117done
2118done
2119
2120fi
2121fi
2122ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123if test -n "$ac_ct_CC"; then
2124  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125echo "${ECHO_T}$ac_ct_CC" >&6
2126else
2127  echo "$as_me:$LINENO: result: no" >&5
2128echo "${ECHO_T}no" >&6
2129fi
2130
2131  test -n "$ac_ct_CC" && break
2132done
2133
2134  CC=$ac_ct_CC
2135fi
2136
2137
2138test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2139See \`config.log' for more details." >&5
2140echo "$as_me: error: no acceptable C compiler found in \$PATH
2141See \`config.log' for more details." >&2;}
2142   { (exit 1); exit 1; }; }
2143
2144# Provide some information about the compiler.
2145echo "$as_me:$LINENO:" \
2146     "checking for C compiler version" >&5
2147ac_compiler=`set X $ac_compile; echo $2`
2148{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2149  (eval $ac_compiler --version </dev/null >&5) 2>&5
2150  ac_status=$?
2151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152  (exit $ac_status); }
2153{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2154  (eval $ac_compiler -v </dev/null >&5) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }
2158{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2159  (eval $ac_compiler -V </dev/null >&5) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }
2163
2164cat >conftest.$ac_ext <<_ACEOF
2165/* confdefs.h.  */
2166_ACEOF
2167cat confdefs.h >>conftest.$ac_ext
2168cat >>conftest.$ac_ext <<_ACEOF
2169/* end confdefs.h.  */
2170
2171int
2172main ()
2173{
2174
2175  ;
2176  return 0;
2177}
2178_ACEOF
2179ac_clean_files_save=$ac_clean_files
2180ac_clean_files="$ac_clean_files a.out a.exe b.out"
2181# Try to create an executable without -o first, disregard a.out.
2182# It will help us diagnose broken compilers, and finding out an intuition
2183# of exeext.
2184echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2185echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2186ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2187if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2188  (eval $ac_link_default) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }; then
2192  # Find the output, starting from the most likely.  This scheme is
2193# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2194# resort.
2195
2196# Be careful to initialize this variable, since it used to be cached.
2197# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2198ac_cv_exeext=
2199# b.out is created by i960 compilers.
2200for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2201do
2202  test -f "$ac_file" || continue
2203  case $ac_file in
2204    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2205        ;;
2206    conftest.$ac_ext )
2207        # This is the source file.
2208        ;;
2209    [ab].out )
2210        # We found the default executable, but exeext='' is most
2211        # certainly right.
2212        break;;
2213    *.* )
2214        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2215        # FIXME: I believe we export ac_cv_exeext for Libtool,
2216        # but it would be cool to find out if it's true.  Does anybody
2217        # maintain Libtool? --akim.
2218        export ac_cv_exeext
2219        break;;
2220    * )
2221        break;;
2222  esac
2223done
2224else
2225  echo "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2229See \`config.log' for more details." >&5
2230echo "$as_me: error: C compiler cannot create executables
2231See \`config.log' for more details." >&2;}
2232   { (exit 77); exit 77; }; }
2233fi
2234
2235ac_exeext=$ac_cv_exeext
2236echo "$as_me:$LINENO: result: $ac_file" >&5
2237echo "${ECHO_T}$ac_file" >&6
2238
2239# Check the compiler produces executables we can run.  If not, either
2240# the compiler is broken, or we cross compile.
2241echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2242echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2243# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2244# If not cross compiling, check that we can run a simple program.
2245if test "$cross_compiling" != yes; then
2246  if { ac_try='./$ac_file'
2247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2248  (eval $ac_try) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; }; then
2252    cross_compiling=no
2253  else
2254    if test "$cross_compiling" = maybe; then
2255        cross_compiling=yes
2256    else
2257        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2258If you meant to cross compile, use \`--host'.
2259See \`config.log' for more details." >&5
2260echo "$as_me: error: cannot run C compiled programs.
2261If you meant to cross compile, use \`--host'.
2262See \`config.log' for more details." >&2;}
2263   { (exit 1); exit 1; }; }
2264    fi
2265  fi
2266fi
2267echo "$as_me:$LINENO: result: yes" >&5
2268echo "${ECHO_T}yes" >&6
2269
2270rm -f a.out a.exe conftest$ac_cv_exeext b.out
2271ac_clean_files=$ac_clean_files_save
2272# Check the compiler produces executables we can run.  If not, either
2273# the compiler is broken, or we cross compile.
2274echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2275echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2276echo "$as_me:$LINENO: result: $cross_compiling" >&5
2277echo "${ECHO_T}$cross_compiling" >&6
2278
2279echo "$as_me:$LINENO: checking for suffix of executables" >&5
2280echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2282  (eval $ac_link) 2>&5
2283  ac_status=$?
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); }; then
2286  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2288# work properly (i.e., refer to `conftest.exe'), while it won't with
2289# `rm'.
2290for ac_file in conftest.exe conftest conftest.*; do
2291  test -f "$ac_file" || continue
2292  case $ac_file in
2293    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2294    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295          export ac_cv_exeext
2296          break;;
2297    * ) break;;
2298  esac
2299done
2300else
2301  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2302See \`config.log' for more details." >&5
2303echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2304See \`config.log' for more details." >&2;}
2305   { (exit 1); exit 1; }; }
2306fi
2307
2308rm -f conftest$ac_cv_exeext
2309echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2310echo "${ECHO_T}$ac_cv_exeext" >&6
2311
2312rm -f conftest.$ac_ext
2313EXEEXT=$ac_cv_exeext
2314ac_exeext=$EXEEXT
2315echo "$as_me:$LINENO: checking for suffix of object files" >&5
2316echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2317if test "${ac_cv_objext+set}" = set; then
2318  echo $ECHO_N "(cached) $ECHO_C" >&6
2319else
2320  cat >conftest.$ac_ext <<_ACEOF
2321/* confdefs.h.  */
2322_ACEOF
2323cat confdefs.h >>conftest.$ac_ext
2324cat >>conftest.$ac_ext <<_ACEOF
2325/* end confdefs.h.  */
2326
2327int
2328main ()
2329{
2330
2331  ;
2332  return 0;
2333}
2334_ACEOF
2335rm -f conftest.o conftest.obj
2336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337  (eval $ac_compile) 2>&5
2338  ac_status=$?
2339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340  (exit $ac_status); }; then
2341  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2342  case $ac_file in
2343    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2344    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2345       break;;
2346  esac
2347done
2348else
2349  echo "$as_me: failed program was:" >&5
2350sed 's/^/| /' conftest.$ac_ext >&5
2351
2352{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2353See \`config.log' for more details." >&5
2354echo "$as_me: error: cannot compute suffix of object files: cannot compile
2355See \`config.log' for more details." >&2;}
2356   { (exit 1); exit 1; }; }
2357fi
2358
2359rm -f conftest.$ac_cv_objext conftest.$ac_ext
2360fi
2361echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2362echo "${ECHO_T}$ac_cv_objext" >&6
2363OBJEXT=$ac_cv_objext
2364ac_objext=$OBJEXT
2365echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2366echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2367if test "${ac_cv_c_compiler_gnu+set}" = set; then
2368  echo $ECHO_N "(cached) $ECHO_C" >&6
2369else
2370  cat >conftest.$ac_ext <<_ACEOF
2371/* confdefs.h.  */
2372_ACEOF
2373cat confdefs.h >>conftest.$ac_ext
2374cat >>conftest.$ac_ext <<_ACEOF
2375/* end confdefs.h.  */
2376
2377int
2378main ()
2379{
2380#ifndef __GNUC__
2381       choke me
2382#endif
2383
2384  ;
2385  return 0;
2386}
2387_ACEOF
2388rm -f conftest.$ac_objext
2389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2390  (eval $ac_compile) 2>conftest.er1
2391  ac_status=$?
2392  grep -v '^ *+' conftest.er1 >conftest.err
2393  rm -f conftest.er1
2394  cat conftest.err >&5
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); } &&
2397         { ac_try='test -z "$ac_c_werror_flag"
2398                         || test ! -s conftest.err'
2399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400  (eval $ac_try) 2>&5
2401  ac_status=$?
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); }; } &&
2404         { ac_try='test -s conftest.$ac_objext'
2405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406  (eval $ac_try) 2>&5
2407  ac_status=$?
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); }; }; then
2410  ac_compiler_gnu=yes
2411else
2412  echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415ac_compiler_gnu=no
2416fi
2417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2418ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419
2420fi
2421echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2422echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2423GCC=`test $ac_compiler_gnu = yes && echo yes`
2424ac_test_CFLAGS=${CFLAGS+set}
2425ac_save_CFLAGS=$CFLAGS
2426CFLAGS="-g"
2427echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2429if test "${ac_cv_prog_cc_g+set}" = set; then
2430  echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432  cat >conftest.$ac_ext <<_ACEOF
2433/* confdefs.h.  */
2434_ACEOF
2435cat confdefs.h >>conftest.$ac_ext
2436cat >>conftest.$ac_ext <<_ACEOF
2437/* end confdefs.h.  */
2438
2439int
2440main ()
2441{
2442
2443  ;
2444  return 0;
2445}
2446_ACEOF
2447rm -f conftest.$ac_objext
2448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2449  (eval $ac_compile) 2>conftest.er1
2450  ac_status=$?
2451  grep -v '^ *+' conftest.er1 >conftest.err
2452  rm -f conftest.er1
2453  cat conftest.err >&5
2454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455  (exit $ac_status); } &&
2456         { ac_try='test -z "$ac_c_werror_flag"
2457                         || test ! -s conftest.err'
2458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2459  (eval $ac_try) 2>&5
2460  ac_status=$?
2461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462  (exit $ac_status); }; } &&
2463         { ac_try='test -s conftest.$ac_objext'
2464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465  (eval $ac_try) 2>&5
2466  ac_status=$?
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); }; }; then
2469  ac_cv_prog_cc_g=yes
2470else
2471  echo "$as_me: failed program was:" >&5
2472sed 's/^/| /' conftest.$ac_ext >&5
2473
2474ac_cv_prog_cc_g=no
2475fi
2476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2477fi
2478echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2479echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2480if test "$ac_test_CFLAGS" = set; then
2481  CFLAGS=$ac_save_CFLAGS
2482elif test $ac_cv_prog_cc_g = yes; then
2483  if test "$GCC" = yes; then
2484    CFLAGS="-g -O2"
2485  else
2486    CFLAGS="-g"
2487  fi
2488else
2489  if test "$GCC" = yes; then
2490    CFLAGS="-O2"
2491  else
2492    CFLAGS=
2493  fi
2494fi
2495echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2496echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2497if test "${ac_cv_prog_cc_stdc+set}" = set; then
2498  echo $ECHO_N "(cached) $ECHO_C" >&6
2499else
2500  ac_cv_prog_cc_stdc=no
2501ac_save_CC=$CC
2502cat >conftest.$ac_ext <<_ACEOF
2503/* confdefs.h.  */
2504_ACEOF
2505cat confdefs.h >>conftest.$ac_ext
2506cat >>conftest.$ac_ext <<_ACEOF
2507/* end confdefs.h.  */
2508#include <stdarg.h>
2509#include <stdio.h>
2510#include <sys/types.h>
2511#include <sys/stat.h>
2512/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2513struct buf { int x; };
2514FILE * (*rcsopen) (struct buf *, struct stat *, int);
2515static char *e (p, i)
2516     char **p;
2517     int i;
2518{
2519  return p[i];
2520}
2521static char *f (char * (*g) (char **, int), char **p, ...)
2522{
2523  char *s;
2524  va_list v;
2525  va_start (v,p);
2526  s = g (p, va_arg (v,int));
2527  va_end (v);
2528  return s;
2529}
2530
2531/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2532   function prototypes and stuff, but not '\xHH' hex character constants.
2533   These don't provoke an error unfortunately, instead are silently treated
2534   as 'x'.  The following induces an error, until -std1 is added to get
2535   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2536   array size at least.  It's necessary to write '\x00'==0 to get something
2537   that's true only with -std1.  */
2538int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2539
2540int test (int i, double x);
2541struct s1 {int (*f) (int a);};
2542struct s2 {int (*f) (double a);};
2543int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2544int argc;
2545char **argv;
2546int
2547main ()
2548{
2549return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2550  ;
2551  return 0;
2552}
2553_ACEOF
2554# Don't try gcc -ansi; that turns off useful extensions and
2555# breaks some systems' header files.
2556# AIX                   -qlanglvl=ansi
2557# Ultrix and OSF/1      -std1
2558# HP-UX 10.20 and later -Ae
2559# HP-UX older versions  -Aa -D_HPUX_SOURCE
2560# SVR4                  -Xc -D__EXTENSIONS__
2561for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2562do
2563  CC="$ac_save_CC $ac_arg"
2564  rm -f conftest.$ac_objext
2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566  (eval $ac_compile) 2>conftest.er1
2567  ac_status=$?
2568  grep -v '^ *+' conftest.er1 >conftest.err
2569  rm -f conftest.er1
2570  cat conftest.err >&5
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); } &&
2573         { ac_try='test -z "$ac_c_werror_flag"
2574                         || test ! -s conftest.err'
2575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2576  (eval $ac_try) 2>&5
2577  ac_status=$?
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); }; } &&
2580         { ac_try='test -s conftest.$ac_objext'
2581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2582  (eval $ac_try) 2>&5
2583  ac_status=$?
2584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585  (exit $ac_status); }; }; then
2586  ac_cv_prog_cc_stdc=$ac_arg
2587break
2588else
2589  echo "$as_me: failed program was:" >&5
2590sed 's/^/| /' conftest.$ac_ext >&5
2591
2592fi
2593rm -f conftest.err conftest.$ac_objext
2594done
2595rm -f conftest.$ac_ext conftest.$ac_objext
2596CC=$ac_save_CC
2597
2598fi
2599
2600case "x$ac_cv_prog_cc_stdc" in
2601  x|xno)
2602    echo "$as_me:$LINENO: result: none needed" >&5
2603echo "${ECHO_T}none needed" >&6 ;;
2604  *)
2605    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2606echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2607    CC="$CC $ac_cv_prog_cc_stdc" ;;
2608esac
2609
2610# Some people use a C++ compiler to compile C.  Since we use `exit',
2611# in C++ we need to declare it.  In case someone uses the same compiler
2612# for both compiling C and C++ we need to have the C++ compiler decide
2613# the declaration of exit, since it's the most demanding environment.
2614cat >conftest.$ac_ext <<_ACEOF
2615#ifndef __cplusplus
2616  choke me
2617#endif
2618_ACEOF
2619rm -f conftest.$ac_objext
2620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621  (eval $ac_compile) 2>conftest.er1
2622  ac_status=$?
2623  grep -v '^ *+' conftest.er1 >conftest.err
2624  rm -f conftest.er1
2625  cat conftest.err >&5
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); } &&
2628         { ac_try='test -z "$ac_c_werror_flag"
2629                         || test ! -s conftest.err'
2630  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631  (eval $ac_try) 2>&5
2632  ac_status=$?
2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634  (exit $ac_status); }; } &&
2635         { ac_try='test -s conftest.$ac_objext'
2636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637  (eval $ac_try) 2>&5
2638  ac_status=$?
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); }; }; then
2641  for ac_declaration in \
2642   '' \
2643   'extern "C" void std::exit (int) throw (); using std::exit;' \
2644   'extern "C" void std::exit (int); using std::exit;' \
2645   'extern "C" void exit (int) throw ();' \
2646   'extern "C" void exit (int);' \
2647   'void exit (int);'
2648do
2649  cat >conftest.$ac_ext <<_ACEOF
2650/* confdefs.h.  */
2651_ACEOF
2652cat confdefs.h >>conftest.$ac_ext
2653cat >>conftest.$ac_ext <<_ACEOF
2654/* end confdefs.h.  */
2655$ac_declaration
2656#include <stdlib.h>
2657int
2658main ()
2659{
2660exit (42);
2661  ;
2662  return 0;
2663}
2664_ACEOF
2665rm -f conftest.$ac_objext
2666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667  (eval $ac_compile) 2>conftest.er1
2668  ac_status=$?
2669  grep -v '^ *+' conftest.er1 >conftest.err
2670  rm -f conftest.er1
2671  cat conftest.err >&5
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); } &&
2674         { ac_try='test -z "$ac_c_werror_flag"
2675                         || test ! -s conftest.err'
2676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677  (eval $ac_try) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; } &&
2681         { ac_try='test -s conftest.$ac_objext'
2682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683  (eval $ac_try) 2>&5
2684  ac_status=$?
2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686  (exit $ac_status); }; }; then
2687  :
2688else
2689  echo "$as_me: failed program was:" >&5
2690sed 's/^/| /' conftest.$ac_ext >&5
2691
2692continue
2693fi
2694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695  cat >conftest.$ac_ext <<_ACEOF
2696/* confdefs.h.  */
2697_ACEOF
2698cat confdefs.h >>conftest.$ac_ext
2699cat >>conftest.$ac_ext <<_ACEOF
2700/* end confdefs.h.  */
2701$ac_declaration
2702int
2703main ()
2704{
2705exit (42);
2706  ;
2707  return 0;
2708}
2709_ACEOF
2710rm -f conftest.$ac_objext
2711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2712  (eval $ac_compile) 2>conftest.er1
2713  ac_status=$?
2714  grep -v '^ *+' conftest.er1 >conftest.err
2715  rm -f conftest.er1
2716  cat conftest.err >&5
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); } &&
2719         { ac_try='test -z "$ac_c_werror_flag"
2720                         || test ! -s conftest.err'
2721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2722  (eval $ac_try) 2>&5
2723  ac_status=$?
2724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725  (exit $ac_status); }; } &&
2726         { ac_try='test -s conftest.$ac_objext'
2727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728  (eval $ac_try) 2>&5
2729  ac_status=$?
2730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); }; }; then
2732  break
2733else
2734  echo "$as_me: failed program was:" >&5
2735sed 's/^/| /' conftest.$ac_ext >&5
2736
2737fi
2738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2739done
2740rm -f conftest*
2741if test -n "$ac_declaration"; then
2742  echo '#ifdef __cplusplus' >>confdefs.h
2743  echo $ac_declaration      >>confdefs.h
2744  echo '#endif'             >>confdefs.h
2745fi
2746
2747else
2748  echo "$as_me: failed program was:" >&5
2749sed 's/^/| /' conftest.$ac_ext >&5
2750
2751fi
2752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753ac_ext=c
2754ac_cpp='$CPP $CPPFLAGS'
2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
2759if test -z "$CC" ; then
2760  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2761echo "$as_me: error: Failed to find a C compiler!" >&2;}
2762   { (exit 1); exit 1; }; }
2763fi
2764# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2765case "$CC" in
2766  clang* ) ;;
2767  cl* | */cl* | CL* | */CL* )
2768    if test "$ac_cv_prog_cc_g" = yes ; then
2769      ac_cv_prog_cc_g=no
2770      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2771echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2772    fi ;;
2773esac
2774CFLAGS="$save_cflags"
2775
2776# add automake conditional so we can recognize cl compiler in makefile
2777coin_cc_is_cl=false
2778case "$CC" in
2779  clang* ) ;;
2780  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2781    coin_cc_is_cl=true
2782    ;;
2783esac
2784
2785
2786if test $coin_cc_is_cl = true; then
2787  COIN_CC_IS_CL_TRUE=
2788  COIN_CC_IS_CL_FALSE='#'
2789else
2790  COIN_CC_IS_CL_TRUE='#'
2791  COIN_CC_IS_CL_FALSE=
2792fi
2793
2794
2795# Check if a project specific CFLAGS variable has been set
2796if test x$COIN_PRJCT != x; then
2797  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2798  if test x$coin_tmp = xset; then
2799    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2800  fi
2801fi
2802
2803if test x"$CFLAGS" = x; then
2804
2805  coin_add_cflags=
2806  coin_opt_cflags=
2807  coin_dbg_cflags=
2808  coin_warn_cflags=
2809
2810  if test "$GCC" = "yes"; then
2811    case "$CC" in
2812      icc* | */icc*)
2813        ;;
2814      *)
2815        coin_opt_cflags="-O3"
2816        coin_add_cflags="-pipe"
2817        coin_dbg_cflags="-g -O0"
2818        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2819        case $build in
2820          *-darwin*)
2821            ;;
2822          *)
2823            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2824            ;;
2825        esac
2826        case $enable_doscompile in
2827          mingw)
2828            CFLAGS="-mno-cygwin"
2829            cat >conftest.$ac_ext <<_ACEOF
2830/* confdefs.h.  */
2831_ACEOF
2832cat confdefs.h >>conftest.$ac_ext
2833cat >>conftest.$ac_ext <<_ACEOF
2834/* end confdefs.h.  */
2835
2836int
2837main ()
2838{
2839int i=0; i++;
2840  ;
2841  return 0;
2842}
2843_ACEOF
2844rm -f conftest.$ac_objext conftest$ac_exeext
2845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2846  (eval $ac_link) 2>conftest.er1
2847  ac_status=$?
2848  grep -v '^ *+' conftest.er1 >conftest.err
2849  rm -f conftest.er1
2850  cat conftest.err >&5
2851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852  (exit $ac_status); } &&
2853         { ac_try='test -z "$ac_c_werror_flag"
2854                         || test ! -s conftest.err'
2855  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856  (eval $ac_try) 2>&5
2857  ac_status=$?
2858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859  (exit $ac_status); }; } &&
2860         { ac_try='test -s conftest$ac_exeext'
2861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862  (eval $ac_try) 2>&5
2863  ac_status=$?
2864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865  (exit $ac_status); }; }; then
2866  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2867else
2868  echo "$as_me: failed program was:" >&5
2869sed 's/^/| /' conftest.$ac_ext >&5
2870
2871fi
2872rm -f conftest.err conftest.$ac_objext \
2873      conftest$ac_exeext conftest.$ac_ext
2874            CFLAGS=
2875          ;;
2876        esac
2877    esac
2878  fi
2879  if test -z "$coin_opt_cflags"; then
2880    case $build in
2881      *-cygwin* | *-mingw*)
2882        case "$CC" in
2883          clang* ) ;;
2884          cl* | */cl* | CL* | */CL*)
2885            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2886              coin_opt_cflags='-MD -O2'
2887              coin_dbg_cflags='-MDd'
2888            else
2889              coin_opt_cflags='-MT -O2'
2890              coin_dbg_cflags='-MTd'
2891            fi
2892            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2893            ;;
2894          icl* | */icl* | ICL* | */ICL*)
2895            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2896              coin_opt_cflags='-MD -Ox'
2897              coin_dbg_cflags='-MDd -debug'
2898            else
2899              coin_opt_cflags='-MT -Ox'
2900              coin_dbg_cflags='-MTd -debug'
2901            fi
2902            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2903            ;;
2904        esac
2905        ;;
2906      *-linux-*)
2907        case "$CC" in
2908          icc* | */icc*)
2909            coin_opt_cflags="-O3 -ip -mp1"
2910            coin_add_cflags=""
2911            coin_dbg_cflags="-g"
2912            # Check if -i_dynamic is necessary (for new glibc library)
2913            CFLAGS=
2914            cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h.  */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h.  */
2920
2921int
2922main ()
2923{
2924int i=0; i++;
2925  ;
2926  return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext conftest$ac_exeext
2930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2931  (eval $ac_link) 2>conftest.er1
2932  ac_status=$?
2933  grep -v '^ *+' conftest.er1 >conftest.err
2934  rm -f conftest.er1
2935  cat conftest.err >&5
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); } &&
2938         { ac_try='test -z "$ac_c_werror_flag"
2939                         || test ! -s conftest.err'
2940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941  (eval $ac_try) 2>&5
2942  ac_status=$?
2943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944  (exit $ac_status); }; } &&
2945         { ac_try='test -s conftest$ac_exeext'
2946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947  (eval $ac_try) 2>&5
2948  ac_status=$?
2949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950  (exit $ac_status); }; }; then
2951  :
2952else
2953  echo "$as_me: failed program was:" >&5
2954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956coin_add_cflags="-i_dynamic $coin_add_cflags"
2957fi
2958rm -f conftest.err conftest.$ac_objext \
2959      conftest$ac_exeext conftest.$ac_ext
2960            ;;
2961          pgcc* | */pgcc*)
2962            coin_opt_cflags="-fast"
2963            coin_add_cflags="-Kieee -pc 64"
2964            coin_dbg_cflags="-g"
2965            ;;
2966        esac
2967        ;;
2968      *-ibm-*)
2969        case "$CC" in
2970          xlc* | */xlc* | mpxlc* | */mpxlc*)
2971            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2972            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2973            coin_dbg_cflags="-g"
2974          ;;
2975        esac
2976        ;;
2977      *-hp-*)
2978        coin_opt_cflags="-O"
2979        coin_add_cflags="-Ae"
2980        coin_dbg_cflags="-g"
2981        ;;
2982      *-*-solaris*)
2983        coin_opt_cflags="-xO4"
2984        coin_dbg_cflags="-g"
2985        ;;
2986      *-sgi-*)
2987        coin_opt_cflags="-O -OPT:Olimit=0"
2988        coin_dbg_cflags="-g"
2989        ;;
2990    esac
2991  fi
2992
2993  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2994    coin_dbg_cflags="-g"
2995  fi
2996
2997  if test -z "$coin_opt_cflags"; then
2998    # Try if -O option works if nothing else is set
2999    CFLAGS="-O"
3000    cat >conftest.$ac_ext <<_ACEOF
3001/* confdefs.h.  */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h.  */
3006
3007int
3008main ()
3009{
3010int i=0; i++;
3011  ;
3012  return 0;
3013}
3014_ACEOF
3015rm -f conftest.$ac_objext conftest$ac_exeext
3016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3017  (eval $ac_link) 2>conftest.er1
3018  ac_status=$?
3019  grep -v '^ *+' conftest.er1 >conftest.err
3020  rm -f conftest.er1
3021  cat conftest.err >&5
3022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023  (exit $ac_status); } &&
3024         { ac_try='test -z "$ac_c_werror_flag"
3025                         || test ! -s conftest.err'
3026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027  (eval $ac_try) 2>&5
3028  ac_status=$?
3029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030  (exit $ac_status); }; } &&
3031         { ac_try='test -s conftest$ac_exeext'
3032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033  (eval $ac_try) 2>&5
3034  ac_status=$?
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); }; }; then
3037  coin_opt_cflags="-O"
3038else
3039  echo "$as_me: failed program was:" >&5
3040sed 's/^/| /' conftest.$ac_ext >&5
3041
3042fi
3043rm -f conftest.err conftest.$ac_objext \
3044      conftest$ac_exeext conftest.$ac_ext
3045  fi
3046
3047  # if PM doesn't want the warning messages, take them out
3048  if test x"$coin_skip_warn_cflags" = xyes; then
3049    coin_warn_cflags=
3050  fi
3051
3052  if test x${DBG_CFLAGS+set} != xset; then
3053    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3054  fi
3055  if test x${OPT_CFLAGS+set} != xset; then
3056    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3057  fi
3058
3059  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3060  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3061
3062  if test "$coin_debug_compile" = "true"; then
3063    CFLAGS="$DBG_CFLAGS"
3064  else
3065    CFLAGS="$OPT_CFLAGS"
3066  fi
3067else
3068  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3069  if test x${DBG_CFLAGS+set} != xset; then
3070    DBG_CFLAGS="$CFLAGS"
3071  fi
3072  if test x${OPT_CFLAGS+set} != xset; then
3073    OPT_CFLAGS="$CFLAGS"
3074  fi
3075fi
3076
3077# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3078
3079case "$CFLAGS" in
3080  *-mno-cygwin*)
3081    if test x${CPPFLAGS+set} != xset ; then
3082      CPPFLAGS="-mno-cygwin"
3083    else
3084      case "$CPPFLAGS" in
3085        *-mno-cygwin*)
3086          ;;
3087        *)
3088          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3089          ;;
3090      esac
3091    fi ;;
3092esac
3093
3094# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3095if test x$COIN_PRJCT != x; then
3096  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3097fi
3098
3099# Try if CFLAGS works
3100save_CFLAGS="$CFLAGS"
3101cat >conftest.$ac_ext <<_ACEOF
3102/* confdefs.h.  */
3103_ACEOF
3104cat confdefs.h >>conftest.$ac_ext
3105cat >>conftest.$ac_ext <<_ACEOF
3106/* end confdefs.h.  */
3107
3108int
3109main ()
3110{
3111int i=0; i++;
3112  ;
3113  return 0;
3114}
3115_ACEOF
3116rm -f conftest.$ac_objext conftest$ac_exeext
3117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3118  (eval $ac_link) 2>conftest.er1
3119  ac_status=$?
3120  grep -v '^ *+' conftest.er1 >conftest.err
3121  rm -f conftest.er1
3122  cat conftest.err >&5
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); } &&
3125         { ac_try='test -z "$ac_c_werror_flag"
3126                         || test ! -s conftest.err'
3127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128  (eval $ac_try) 2>&5
3129  ac_status=$?
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); }; } &&
3132         { ac_try='test -s conftest$ac_exeext'
3133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134  (eval $ac_try) 2>&5
3135  ac_status=$?
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); }; }; then
3138  :
3139else
3140  echo "$as_me: failed program was:" >&5
3141sed 's/^/| /' conftest.$ac_ext >&5
3142
3143CFLAGS=
3144fi
3145rm -f conftest.err conftest.$ac_objext \
3146      conftest$ac_exeext conftest.$ac_ext
3147if test -z "$CFLAGS"; then
3148  { 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
3149echo "$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;}
3150  CFLAGS='-O'
3151  cat >conftest.$ac_ext <<_ACEOF
3152/* confdefs.h.  */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h.  */
3157
3158int
3159main ()
3160{
3161int i=0; i++;
3162  ;
3163  return 0;
3164}
3165_ACEOF
3166rm -f conftest.$ac_objext conftest$ac_exeext
3167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3168  (eval $ac_link) 2>conftest.er1
3169  ac_status=$?
3170  grep -v '^ *+' conftest.er1 >conftest.err
3171  rm -f conftest.er1
3172  cat conftest.err >&5
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); } &&
3175         { ac_try='test -z "$ac_c_werror_flag"
3176                         || test ! -s conftest.err'
3177  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178  (eval $ac_try) 2>&5
3179  ac_status=$?
3180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181  (exit $ac_status); }; } &&
3182         { ac_try='test -s conftest$ac_exeext'
3183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3184  (eval $ac_try) 2>&5
3185  ac_status=$?
3186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187  (exit $ac_status); }; }; then
3188  :
3189else
3190  echo "$as_me: failed program was:" >&5
3191sed 's/^/| /' conftest.$ac_ext >&5
3192
3193CFLAGS=
3194fi
3195rm -f conftest.err conftest.$ac_objext \
3196      conftest$ac_exeext conftest.$ac_ext
3197  if test -z "$CFLAGS"; then
3198    { 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
3199echo "$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;}
3200  fi
3201fi
3202
3203{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3204echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3205
3206
3207if test x"$MPICC" = x; then :; else
3208  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3209echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3210  CC="$MPICC"
3211fi
3212
3213# Correct the LD variable if we are using the MS or Intel-windows compiler
3214case "$CC" in
3215  clang* ) ;;
3216  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3217    case $build in
3218  *-mingw*)
3219    if test "${LD+set}" = set; then :; else
3220      LD=link
3221    fi
3222    ;;
3223 esac
3224 case $enable_doscompile in
3225   msvc)
3226     if test "x${LD+set}" = xset; then :; else
3227       LD=link
3228     fi
3229     ;;
3230 esac
3231
3232    ;;
3233esac
3234
3235ac_ext=c
3236ac_cpp='$CPP $CPPFLAGS'
3237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240
3241
3242
3243# Get the name of the C++ compiler and appropriate compiler options
3244
3245 #Let's try if that overcomes configuration problem with VC++ 6.0
3246
3247ac_ext=cc
3248ac_cpp='$CXXCPP $CPPFLAGS'
3249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3252
3253
3254
3255
3256
3257
3258
3259coin_has_cxx=yes
3260
3261save_cxxflags="$CXXFLAGS"
3262# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3263case $build in
3264  *-cygwin* | *-mingw*)
3265             if test "$enable_doscompile" = msvc ; then
3266               comps="icl cl"
3267             else
3268               comps="g++ cl"
3269             fi ;;
3270  *-*-solaris*)
3271             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3272  *-darwin*) comps="g++ c++ CC" ;;
3273  *-linux-gnu*)
3274             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3275          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3276esac
3277
3278# We delete the cached value, since the test might not have been
3279# performed with our choice of compilers earlier
3280$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3281# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3282ac_ext=cc
3283ac_cpp='$CXXCPP $CPPFLAGS'
3284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3287if test -n "$ac_tool_prefix"; then
3288  for ac_prog in $CCC $comps
3289  do
3290    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3291set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3292echo "$as_me:$LINENO: checking for $ac_word" >&5
3293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294if test "${ac_cv_prog_CXX+set}" = set; then
3295  echo $ECHO_N "(cached) $ECHO_C" >&6
3296else
3297  if test -n "$CXX"; then
3298  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303  IFS=$as_save_IFS
3304  test -z "$as_dir" && as_dir=.
3305  for ac_exec_ext in '' $ac_executable_extensions; do
3306  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309    break 2
3310  fi
3311done
3312done
3313
3314fi
3315fi
3316CXX=$ac_cv_prog_CXX
3317if test -n "$CXX"; then
3318  echo "$as_me:$LINENO: result: $CXX" >&5
3319echo "${ECHO_T}$CXX" >&6
3320else
3321  echo "$as_me:$LINENO: result: no" >&5
3322echo "${ECHO_T}no" >&6
3323fi
3324
3325    test -n "$CXX" && break
3326  done
3327fi
3328if test -z "$CXX"; then
3329  ac_ct_CXX=$CXX
3330  for ac_prog in $CCC $comps
3331do
3332  # Extract the first word of "$ac_prog", so it can be a program name with args.
3333set dummy $ac_prog; ac_word=$2
3334echo "$as_me:$LINENO: checking for $ac_word" >&5
3335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3336if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3337  echo $ECHO_N "(cached) $ECHO_C" >&6
3338else
3339  if test -n "$ac_ct_CXX"; then
3340  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3341else
3342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343for as_dir in $PATH
3344do
3345  IFS=$as_save_IFS
3346  test -z "$as_dir" && as_dir=.
3347  for ac_exec_ext in '' $ac_executable_extensions; do
3348  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349    ac_cv_prog_ac_ct_CXX="$ac_prog"
3350    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351    break 2
3352  fi
3353done
3354done
3355
3356fi
3357fi
3358ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3359if test -n "$ac_ct_CXX"; then
3360  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3361echo "${ECHO_T}$ac_ct_CXX" >&6
3362else
3363  echo "$as_me:$LINENO: result: no" >&5
3364echo "${ECHO_T}no" >&6
3365fi
3366
3367  test -n "$ac_ct_CXX" && break
3368done
3369test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3370
3371  CXX=$ac_ct_CXX
3372fi
3373
3374
3375# Provide some information about the compiler.
3376echo "$as_me:$LINENO:" \
3377     "checking for C++ compiler version" >&5
3378ac_compiler=`set X $ac_compile; echo $2`
3379{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3380  (eval $ac_compiler --version </dev/null >&5) 2>&5
3381  ac_status=$?
3382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383  (exit $ac_status); }
3384{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3385  (eval $ac_compiler -v </dev/null >&5) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }
3389{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3390  (eval $ac_compiler -V </dev/null >&5) 2>&5
3391  ac_status=$?
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); }
3394
3395echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3396echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3397if test "${ac_cv_cxx_compiler_gnu+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#ifndef __GNUC__
3411       choke me
3412#endif
3413
3414  ;
3415  return 0;
3416}
3417_ACEOF
3418rm -f conftest.$ac_objext
3419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420  (eval $ac_compile) 2>conftest.er1
3421  ac_status=$?
3422  grep -v '^ *+' conftest.er1 >conftest.err
3423  rm -f conftest.er1
3424  cat conftest.err >&5
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); } &&
3427         { ac_try='test -z "$ac_cxx_werror_flag"
3428                         || test ! -s conftest.err'
3429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430  (eval $ac_try) 2>&5
3431  ac_status=$?
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); }; } &&
3434         { ac_try='test -s conftest.$ac_objext'
3435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436  (eval $ac_try) 2>&5
3437  ac_status=$?
3438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439  (exit $ac_status); }; }; then
3440  ac_compiler_gnu=yes
3441else
3442  echo "$as_me: failed program was:" >&5
3443sed 's/^/| /' conftest.$ac_ext >&5
3444
3445ac_compiler_gnu=no
3446fi
3447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3448ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3449
3450fi
3451echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3452echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3453GXX=`test $ac_compiler_gnu = yes && echo yes`
3454ac_test_CXXFLAGS=${CXXFLAGS+set}
3455ac_save_CXXFLAGS=$CXXFLAGS
3456CXXFLAGS="-g"
3457echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3458echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3459if test "${ac_cv_prog_cxx_g+set}" = set; then
3460  echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
3462  cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h.  */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
3467/* end confdefs.h.  */
3468
3469int
3470main ()
3471{
3472
3473  ;
3474  return 0;
3475}
3476_ACEOF
3477rm -f conftest.$ac_objext
3478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3479  (eval $ac_compile) 2>conftest.er1
3480  ac_status=$?
3481  grep -v '^ *+' conftest.er1 >conftest.err
3482  rm -f conftest.er1
3483  cat conftest.err >&5
3484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485  (exit $ac_status); } &&
3486         { ac_try='test -z "$ac_cxx_werror_flag"
3487                         || test ! -s conftest.err'
3488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489  (eval $ac_try) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }; } &&
3493         { ac_try='test -s conftest.$ac_objext'
3494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495  (eval $ac_try) 2>&5
3496  ac_status=$?
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); }; }; then
3499  ac_cv_prog_cxx_g=yes
3500else
3501  echo "$as_me: failed program was:" >&5
3502sed 's/^/| /' conftest.$ac_ext >&5
3503
3504ac_cv_prog_cxx_g=no
3505fi
3506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3507fi
3508echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3509echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3510if test "$ac_test_CXXFLAGS" = set; then
3511  CXXFLAGS=$ac_save_CXXFLAGS
3512elif test $ac_cv_prog_cxx_g = yes; then
3513  if test "$GXX" = yes; then
3514    CXXFLAGS="-g -O2"
3515  else
3516    CXXFLAGS="-g"
3517  fi
3518else
3519  if test "$GXX" = yes; then
3520    CXXFLAGS="-O2"
3521  else
3522    CXXFLAGS=
3523  fi
3524fi
3525for ac_declaration in \
3526   '' \
3527   'extern "C" void std::exit (int) throw (); using std::exit;' \
3528   'extern "C" void std::exit (int); using std::exit;' \
3529   'extern "C" void exit (int) throw ();' \
3530   'extern "C" void exit (int);' \
3531   'void exit (int);'
3532do
3533  cat >conftest.$ac_ext <<_ACEOF
3534/* confdefs.h.  */
3535_ACEOF
3536cat confdefs.h >>conftest.$ac_ext
3537cat >>conftest.$ac_ext <<_ACEOF
3538/* end confdefs.h.  */
3539$ac_declaration
3540#include <stdlib.h>
3541int
3542main ()
3543{
3544exit (42);
3545  ;
3546  return 0;
3547}
3548_ACEOF
3549rm -f conftest.$ac_objext
3550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3551  (eval $ac_compile) 2>conftest.er1
3552  ac_status=$?
3553  grep -v '^ *+' conftest.er1 >conftest.err
3554  rm -f conftest.er1
3555  cat conftest.err >&5
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); } &&
3558         { ac_try='test -z "$ac_cxx_werror_flag"
3559                         || test ! -s conftest.err'
3560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561  (eval $ac_try) 2>&5
3562  ac_status=$?
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); }; } &&
3565         { ac_try='test -s conftest.$ac_objext'
3566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567  (eval $ac_try) 2>&5
3568  ac_status=$?
3569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570  (exit $ac_status); }; }; then
3571  :
3572else
3573  echo "$as_me: failed program was:" >&5
3574sed 's/^/| /' conftest.$ac_ext >&5
3575
3576continue
3577fi
3578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3579  cat >conftest.$ac_ext <<_ACEOF
3580/* confdefs.h.  */
3581_ACEOF
3582cat confdefs.h >>conftest.$ac_ext
3583cat >>conftest.$ac_ext <<_ACEOF
3584/* end confdefs.h.  */
3585$ac_declaration
3586int
3587main ()
3588{
3589exit (42);
3590  ;
3591  return 0;
3592}
3593_ACEOF
3594rm -f conftest.$ac_objext
3595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3596  (eval $ac_compile) 2>conftest.er1
3597  ac_status=$?
3598  grep -v '^ *+' conftest.er1 >conftest.err
3599  rm -f conftest.er1
3600  cat conftest.err >&5
3601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602  (exit $ac_status); } &&
3603         { ac_try='test -z "$ac_cxx_werror_flag"
3604                         || test ! -s conftest.err'
3605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606  (eval $ac_try) 2>&5
3607  ac_status=$?
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); }; } &&
3610         { ac_try='test -s conftest.$ac_objext'
3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612  (eval $ac_try) 2>&5
3613  ac_status=$?
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); }; }; then
3616  break
3617else
3618  echo "$as_me: failed program was:" >&5
3619sed 's/^/| /' conftest.$ac_ext >&5
3620
3621fi
3622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3623done
3624rm -f conftest*
3625if test -n "$ac_declaration"; then
3626  echo '#ifdef __cplusplus' >>confdefs.h
3627  echo $ac_declaration      >>confdefs.h
3628  echo '#endif'             >>confdefs.h
3629fi
3630
3631ac_ext=cc
3632ac_cpp='$CXXCPP $CPPFLAGS'
3633ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3636
3637
3638#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3639#thus, we test here whether $CXX is actually working
3640ac_ext=cc
3641ac_cpp='$CXXCPP $CPPFLAGS'
3642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3645
3646echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3647echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3648cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h.  */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h.  */
3654
3655int
3656main ()
3657{
3658int i=0;
3659  ;
3660  return 0;
3661}
3662_ACEOF
3663rm -f conftest.$ac_objext
3664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3665  (eval $ac_compile) 2>conftest.er1
3666  ac_status=$?
3667  grep -v '^ *+' conftest.er1 >conftest.err
3668  rm -f conftest.er1
3669  cat conftest.err >&5
3670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671  (exit $ac_status); } &&
3672         { ac_try='test -z "$ac_cxx_werror_flag"
3673                         || test ! -s conftest.err'
3674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675  (eval $ac_try) 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); }; } &&
3679         { ac_try='test -s conftest.$ac_objext'
3680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681  (eval $ac_try) 2>&5
3682  ac_status=$?
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); }; }; then
3685  echo "$as_me:$LINENO: result: yes" >&5
3686echo "${ECHO_T}yes" >&6
3687else
3688  echo "$as_me: failed program was:" >&5
3689sed 's/^/| /' conftest.$ac_ext >&5
3690
3691echo "$as_me:$LINENO: result: no" >&5
3692echo "${ECHO_T}no" >&6
3693   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3694echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3695   { (exit 1); exit 1; }; }
3696
3697fi
3698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3699ac_ext=cc
3700ac_cpp='$CXXCPP $CPPFLAGS'
3701ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3704
3705
3706coin_cxx_is_cl=false
3707# It seems that we need to cleanup something here for the Windows
3708case "$CXX" in
3709  clang* ) ;;
3710  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3711    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3712    mv confdefs.hh confdefs.h
3713    coin_cxx_is_cl=true
3714    ;;
3715esac
3716
3717# add automake conditional so we can recognize cl compiler in makefile
3718
3719
3720if test $coin_cxx_is_cl = true; then
3721  COIN_CXX_IS_CL_TRUE=
3722  COIN_CXX_IS_CL_FALSE='#'
3723else
3724  COIN_CXX_IS_CL_TRUE='#'
3725  COIN_CXX_IS_CL_FALSE=
3726fi
3727
3728
3729# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3730case "$CXX" in
3731  clang* ) ;;
3732  cl* | */cl* | CL* | */CL* )
3733    if test "$ac_cv_prog_cxx_g" = yes ; then
3734      ac_cv_prog_cxx_g=no
3735      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3736echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3737    fi ;;
3738esac
3739CXXFLAGS="$save_cxxflags"
3740
3741# Check if a project specific CXXFLAGS variable has been set
3742if test x$COIN_PRJCT != x; then
3743  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3744  if test x$coin_tmp = xset; then
3745    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3746  fi
3747fi
3748
3749if test x"$CXXFLAGS" = x; then
3750
3751# ToDo decide whether we want -DNDEBUG for optimization
3752  coin_add_cxxflags=
3753  coin_opt_cxxflags=
3754  coin_dbg_cxxflags=
3755  coin_warn_cxxflags=
3756
3757  if test "$GXX" = "yes"; then
3758    case "$CXX" in
3759      icpc* | */icpc*)
3760        ;;
3761      *)
3762# ToDo decide about unroll-loops
3763        coin_opt_cxxflags="-O3"
3764        coin_add_cxxflags="-pipe"
3765        coin_dbg_cxxflags="-g -O0"
3766        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3767        case $build in
3768          *-darwin*)
3769            ;;
3770          *)
3771            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3772            ;;
3773        esac
3774
3775        case $enable_doscompile in
3776          mingw)
3777            CXXFLAGS="-mno-cygwin"
3778            cat >conftest.$ac_ext <<_ACEOF
3779/* confdefs.h.  */
3780_ACEOF
3781cat confdefs.h >>conftest.$ac_ext
3782cat >>conftest.$ac_ext <<_ACEOF
3783/* end confdefs.h.  */
3784
3785int
3786main ()
3787{
3788int i=0; i++;
3789  ;
3790  return 0;
3791}
3792_ACEOF
3793rm -f conftest.$ac_objext conftest$ac_exeext
3794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3795  (eval $ac_link) 2>conftest.er1
3796  ac_status=$?
3797  grep -v '^ *+' conftest.er1 >conftest.err
3798  rm -f conftest.er1
3799  cat conftest.err >&5
3800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801  (exit $ac_status); } &&
3802         { ac_try='test -z "$ac_cxx_werror_flag"
3803                         || test ! -s conftest.err'
3804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3805  (eval $ac_try) 2>&5
3806  ac_status=$?
3807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808  (exit $ac_status); }; } &&
3809         { ac_try='test -s conftest$ac_exeext'
3810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811  (eval $ac_try) 2>&5
3812  ac_status=$?
3813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814  (exit $ac_status); }; }; then
3815  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3816else
3817  echo "$as_me: failed program was:" >&5
3818sed 's/^/| /' conftest.$ac_ext >&5
3819
3820fi
3821rm -f conftest.err conftest.$ac_objext \
3822      conftest$ac_exeext conftest.$ac_ext
3823            CXXFLAGS=
3824          ;;
3825        esac
3826    esac
3827  fi
3828
3829# Note that we do not need to cover GCC in the following tests.
3830
3831  if test -z "$coin_opt_cxxflags"; then
3832    case $build in
3833      *-cygwin* | *-mingw*)
3834        case "$CXX" in
3835          clang* ) ;;
3836          cl* | */cl* | CL* | */CL*)
3837            # The MT and MTd options are mutually exclusive
3838            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3839               coin_opt_cxxflags='-MD -O2'
3840               coin_dbg_cxxflags='-MDd'
3841            else
3842               coin_opt_cxxflags='-MT -O2'
3843               coin_dbg_cxxflags='-MTd'
3844            fi
3845            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3846            ;;
3847          icl* | */icl* | ICL* | */ICL*)
3848          # The MT and MTd options are mutually exclusive
3849            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3850              coin_opt_cxxflags='-MD -Ox'
3851              coin_dbg_cxxflags='-MDd -debug'
3852            else
3853              coin_opt_cxxflags='-MT -Ox'
3854              coin_dbg_cxxflags='-MTd -debug'
3855            fi
3856            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3857            ;;
3858        esac
3859        ;;
3860      *-linux-*)
3861        case "$CXX" in
3862          icpc* | */icpc*)
3863            coin_opt_cxxflags="-O3 -ip -mp1"
3864            coin_add_cxxflags=""
3865            coin_dbg_cxxflags="-g"
3866            # Check if -i_dynamic is necessary (for new glibc library)
3867            CXXFLAGS=
3868            cat >conftest.$ac_ext <<_ACEOF
3869/* confdefs.h.  */
3870_ACEOF
3871cat confdefs.h >>conftest.$ac_ext
3872cat >>conftest.$ac_ext <<_ACEOF
3873/* end confdefs.h.  */
3874
3875int
3876main ()
3877{
3878int i=0; i++;
3879  ;
3880  return 0;
3881}
3882_ACEOF
3883rm -f conftest.$ac_objext conftest$ac_exeext
3884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3885  (eval $ac_link) 2>conftest.er1
3886  ac_status=$?
3887  grep -v '^ *+' conftest.er1 >conftest.err
3888  rm -f conftest.er1
3889  cat conftest.err >&5
3890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891  (exit $ac_status); } &&
3892         { ac_try='test -z "$ac_cxx_werror_flag"
3893                         || test ! -s conftest.err'
3894  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3895  (eval $ac_try) 2>&5
3896  ac_status=$?
3897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898  (exit $ac_status); }; } &&
3899         { ac_try='test -s conftest$ac_exeext'
3900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901  (eval $ac_try) 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }; }; then
3905  :
3906else
3907  echo "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
3910coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3911fi
3912rm -f conftest.err conftest.$ac_objext \
3913      conftest$ac_exeext conftest.$ac_ext
3914            ;;
3915          pgCC* | */pgCC*)
3916            coin_opt_cxxflags="-fast"
3917            coin_add_cxxflags="-Kieee -pc 64"
3918            coin_dbg_cxxflags="-g"
3919            ;;
3920        esac
3921        ;;
3922      *-ibm-*)
3923        case "$CXX" in
3924          xlC* | */xlC* | mpxlC* | */mpxlC*)
3925            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3926            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3927            coin_dbg_cxxflags="-g"
3928            ;;
3929        esac
3930        ;;
3931      *-hp-*)
3932        case "$CXX" in
3933          aCC* | */aCC* )
3934            coin_opt_cxxflags="-O"
3935            coin_add_cxxflags="-AA"
3936            coin_dbg_cxxflags="-g"
3937            ;;
3938        esac
3939        ;;
3940      *-*-solaris*)
3941          coin_opt_cxxflags="-O4"
3942          coin_dbg_cxxflags="-g"
3943        ;;
3944    esac
3945  fi
3946
3947# Generic flag settings. If these don't work, add a case above.
3948
3949  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3950    coin_dbg_cxxflags="-g"
3951  fi
3952
3953  if test -z "$coin_opt_cxxflags"; then
3954    # Try if -O option works if nothing else is set
3955    CXXFLAGS=-O
3956    cat >conftest.$ac_ext <<_ACEOF
3957/* confdefs.h.  */
3958_ACEOF
3959cat confdefs.h >>conftest.$ac_ext
3960cat >>conftest.$ac_ext <<_ACEOF
3961/* end confdefs.h.  */
3962
3963int
3964main ()
3965{
3966int i=0; i++;
3967  ;
3968  return 0;
3969}
3970_ACEOF
3971rm -f conftest.$ac_objext conftest$ac_exeext
3972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3973  (eval $ac_link) 2>conftest.er1
3974  ac_status=$?
3975  grep -v '^ *+' conftest.er1 >conftest.err
3976  rm -f conftest.er1
3977  cat conftest.err >&5
3978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979  (exit $ac_status); } &&
3980         { ac_try='test -z "$ac_cxx_werror_flag"
3981                         || test ! -s conftest.err'
3982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983  (eval $ac_try) 2>&5
3984  ac_status=$?
3985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986  (exit $ac_status); }; } &&
3987         { ac_try='test -s conftest$ac_exeext'
3988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989  (eval $ac_try) 2>&5
3990  ac_status=$?
3991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992  (exit $ac_status); }; }; then
3993  coin_opt_cxxflags="-O"
3994else
3995  echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998fi
3999rm -f conftest.err conftest.$ac_objext \
4000      conftest$ac_exeext conftest.$ac_ext
4001  fi
4002
4003  # if PM doesn't want the warning messages, take them out
4004  if test x"$coin_skip_warn_cxxflags" = xyes; then
4005    coin_warn_cxxflags=
4006  fi
4007
4008# Do final setup of flags based on values determined above.
4009
4010  if test x${DBG_CXXFLAGS+set} != xset; then
4011    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4012  fi
4013  if test x${OPT_CXXFLAGS+set} != xset; then
4014    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4015  fi
4016
4017  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4018  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4019
4020  if test "$coin_debug_compile" = "true"; then
4021    CXXFLAGS="$DBG_CXXFLAGS"
4022  else
4023    CXXFLAGS="$OPT_CXXFLAGS"
4024  fi
4025
4026# Handle the case where CXXFLAGS was set externally.
4027else
4028  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4029  if test x${DBG_CXXFLAGS+set} != xset; then
4030    DBG_CXXFLAGS="$CXXFLAGS"
4031  fi
4032  if test x${OPT_CXXFLAGS+set} != xset; then
4033    OPT_CXXFLAGS="$CXXFLAGS"
4034  fi
4035fi
4036
4037# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4038
4039case "$CXXFLAGS" in
4040  *-mno-cygwin*)
4041    if test x${CPPFLAGS+set} != xset ; then
4042      CPPFLAGS="-mno-cygwin"
4043    else
4044      case "$CPPFLAGS" in
4045        *-mno-cygwin*)
4046          ;;
4047        *)
4048          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4049          ;;
4050      esac
4051    fi ;;
4052esac
4053
4054# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4055if test x$COIN_PRJCT != x; then
4056  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4057fi
4058
4059# Try if CXXFLAGS works
4060save_CXXFLAGS="$CXXFLAGS"
4061cat >conftest.$ac_ext <<_ACEOF
4062/* confdefs.h.  */
4063_ACEOF
4064cat confdefs.h >>conftest.$ac_ext
4065cat >>conftest.$ac_ext <<_ACEOF
4066/* end confdefs.h.  */
4067
4068int
4069main ()
4070{
4071int i=0; i++;
4072  ;
4073  return 0;
4074}
4075_ACEOF
4076rm -f conftest.$ac_objext conftest$ac_exeext
4077if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4078  (eval $ac_link) 2>conftest.er1
4079  ac_status=$?
4080  grep -v '^ *+' conftest.er1 >conftest.err
4081  rm -f conftest.er1
4082  cat conftest.err >&5
4083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084  (exit $ac_status); } &&
4085         { ac_try='test -z "$ac_cxx_werror_flag"
4086                         || test ! -s conftest.err'
4087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088  (eval $ac_try) 2>&5
4089  ac_status=$?
4090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091  (exit $ac_status); }; } &&
4092         { ac_try='test -s conftest$ac_exeext'
4093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094  (eval $ac_try) 2>&5
4095  ac_status=$?
4096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097  (exit $ac_status); }; }; then
4098  :
4099else
4100  echo "$as_me: failed program was:" >&5
4101sed 's/^/| /' conftest.$ac_ext >&5
4102
4103CXXFLAGS=
4104fi
4105rm -f conftest.err conftest.$ac_objext \
4106      conftest$ac_exeext conftest.$ac_ext
4107if test -z "$CXXFLAGS"; then
4108  { 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
4109echo "$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;}
4110  CXXFLAGS='-O'
4111  cat >conftest.$ac_ext <<_ACEOF
4112/* confdefs.h.  */
4113_ACEOF
4114cat confdefs.h >>conftest.$ac_ext
4115cat >>conftest.$ac_ext <<_ACEOF
4116/* end confdefs.h.  */
4117
4118int
4119main ()
4120{
4121int i=0; i++;
4122  ;
4123  return 0;
4124}
4125_ACEOF
4126rm -f conftest.$ac_objext conftest$ac_exeext
4127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4128  (eval $ac_link) 2>conftest.er1
4129  ac_status=$?
4130  grep -v '^ *+' conftest.er1 >conftest.err
4131  rm -f conftest.er1
4132  cat conftest.err >&5
4133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134  (exit $ac_status); } &&
4135         { ac_try='test -z "$ac_cxx_werror_flag"
4136                         || test ! -s conftest.err'
4137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138  (eval $ac_try) 2>&5
4139  ac_status=$?
4140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141  (exit $ac_status); }; } &&
4142         { ac_try='test -s conftest$ac_exeext'
4143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4144  (eval $ac_try) 2>&5
4145  ac_status=$?
4146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147  (exit $ac_status); }; }; then
4148  :
4149else
4150  echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
4153CXXFLAGS=
4154fi
4155rm -f conftest.err conftest.$ac_objext \
4156      conftest$ac_exeext conftest.$ac_ext
4157  if test -z "$CXXFLAGS"; then
4158    { 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
4159echo "$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;}
4160  fi
4161fi
4162
4163{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4164echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4165
4166
4167if test x"$MPICXX" = x; then :; else
4168  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4169echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4170  CXX="$MPICXX"
4171fi
4172
4173# correct the LD variable in a mingw build with MS or intel compiler
4174case "$CXX" in
4175  clang* ) ;;
4176  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4177    case $build in
4178  *-mingw*)
4179    if test "${LD+set}" = set; then :; else
4180      LD=link
4181    fi
4182    ;;
4183 esac
4184 case $enable_doscompile in
4185   msvc)
4186     if test "x${LD+set}" = xset; then :; else
4187       LD=link
4188     fi
4189     ;;
4190 esac
4191
4192    ;;
4193esac
4194
4195ac_ext=c
4196ac_cpp='$CPP $CPPFLAGS'
4197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200
4201
4202
4203# Check if pkg-config is available (to setup addlibs file)
4204
4205
4206# Check whether --enable-pkg-config or --disable-pkg-config was given.
4207if test "${enable_pkg_config+set}" = set; then
4208  enableval="$enable_pkg_config"
4209  use_pkgconfig="$enableval"
4210else
4211  if test x$coin_cc_is_cl = xtrue; then
4212     use_pkgconfig=no
4213   else
4214     use_pkgconfig=yes
4215   fi
4216fi;
4217
4218if test $use_pkgconfig = yes ; then
4219  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4220    if test -n "$ac_tool_prefix"; then
4221  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4222set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4223echo "$as_me:$LINENO: checking for $ac_word" >&5
4224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4225if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
4226  echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228  if test -n "$PKG_CONFIG"; then
4229  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234  IFS=$as_save_IFS
4235  test -z "$as_dir" && as_dir=.
4236  for ac_exec_ext in '' $ac_executable_extensions; do
4237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4238    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
4239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240    break 2
4241  fi
4242done
4243done
4244
4245fi
4246fi
4247PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4248if test -n "$PKG_CONFIG"; then
4249  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4250echo "${ECHO_T}$PKG_CONFIG" >&6
4251else
4252  echo "$as_me:$LINENO: result: no" >&5
4253echo "${ECHO_T}no" >&6
4254fi
4255
4256fi
4257if test -z "$ac_cv_prog_PKG_CONFIG"; then
4258  ac_ct_PKG_CONFIG=$PKG_CONFIG
4259  # Extract the first word of "pkg-config", so it can be a program name with args.
4260set dummy pkg-config; ac_word=$2
4261echo "$as_me:$LINENO: checking for $ac_word" >&5
4262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4263if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
4264  echo $ECHO_N "(cached) $ECHO_C" >&6
4265else
4266  if test -n "$ac_ct_PKG_CONFIG"; then
4267  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
4268else
4269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270for as_dir in $PATH
4271do
4272  IFS=$as_save_IFS
4273  test -z "$as_dir" && as_dir=.
4274  for ac_exec_ext in '' $ac_executable_extensions; do
4275  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
4277    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278    break 2
4279  fi
4280done
4281done
4282
4283fi
4284fi
4285ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
4286if test -n "$ac_ct_PKG_CONFIG"; then
4287  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
4288echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
4289else
4290  echo "$as_me:$LINENO: result: no" >&5
4291echo "${ECHO_T}no" >&6
4292fi
4293
4294  PKG_CONFIG=$ac_ct_PKG_CONFIG
4295else
4296  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
4297fi
4298
4299  fi
4300  if test -n "$PKG_CONFIG"; then
4301    _pkg_min_version=0.16.0
4302    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4303echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4304    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4305      echo "$as_me:$LINENO: result: yes" >&5
4306echo "${ECHO_T}yes" >&6
4307    else
4308      echo "$as_me:$LINENO: result: no" >&5
4309echo "${ECHO_T}no" >&6
4310      PKG_CONFIG=""
4311    fi
4312  fi
4313
4314  # check if pkg-config supports the short-errors flag
4315  if test -n "$PKG_CONFIG" && \
4316    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4317    pkg_short_errors=" --short-errors "
4318  else
4319    pkg_short_errors=""
4320  fi
4321fi
4322
4323
4324
4325if test -n "$PKG_CONFIG"; then
4326  COIN_HAS_PKGCONFIG_TRUE=
4327  COIN_HAS_PKGCONFIG_FALSE='#'
4328else
4329  COIN_HAS_PKGCONFIG_TRUE='#'
4330  COIN_HAS_PKGCONFIG_FALSE=
4331fi
4332
4333
4334
4335# assemble pkg-config search path for installed projects
4336COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
4337
4338# 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
4339# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
4340# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
4341if test "x${prefix}" = xNONE ; then
4342  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4343else
4344  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4345fi
4346
4347
4348# Check whether --with-coin-instdir or --without-coin-instdir was given.
4349if test "${with_coin_instdir+set}" = set; then
4350  withval="$with_coin_instdir"
4351  if test -d "$withval"; then : ; else
4352     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
4353echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
4354   { (exit 1); exit 1; }; }
4355   fi
4356   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
4357
4358fi;
4359
4360
4361
4362# assemble additional pkg-config search paths for uninstalled projects
4363if test x$coin_projectdir = xyes ; then
4364  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
4365  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
4366  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
4367  # 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)
4368  COIN_PKG_CONFIG_PATH_UNINSTALLED=
4369  if test -e ../coin_subdirs.txt ; then
4370    for i in `cat ../coin_subdirs.txt` ; do
4371      if test -d ../$i ; then
4372        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4373      fi
4374      if test -d ../$i/pkgconfig ; then
4375        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4376      fi
4377    done
4378  fi
4379
4380  if test -e ../../coin_subdirs.txt ; then
4381    for i in `cat ../../coin_subdirs.txt` ; do
4382      if test -d ../../$i ; then
4383        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4384      fi
4385      if test -d ../../$i/pkgconfig ; then
4386        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
4387      fi
4388    done
4389  fi
4390
4391
4392fi
4393
4394if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
4395  { 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
4396echo "$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;}
4397fi
4398
4399
4400
4401# Initialize automake
4402{
4403
4404
4405
4406# START
4407
4408coin_disable_shared=no
4409# Test if force_shared has been set
4410if test "x" = xforce_shared; then
4411  if test x$enable_shared = xno; then
4412    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4413echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4414   { (exit 1); exit 1; }; }
4415  fi
4416  enable_shared=yes;
4417else
4418  # On Cygwin and AIX, building DLLs doesn't work
4419  case $build in
4420    *-cygwin*)
4421      coin_disable_shared=yes
4422      platform=Cygwin
4423    ;;
4424    *-aix*)
4425      coin_disable_shared=yes
4426      platform=AIX
4427    ;;
4428    *-mingw*)
4429      coin_disable_shared=yes
4430      platform="Msys"
4431#      case "$CXX" in
4432#        cl*)
4433#          coin_disable_shared=yes
4434#          platform="Msys with cl"
4435#      ;;
4436#      esac
4437    ;;
4438  esac
4439fi
4440if test x"$coin_disable_shared" = xyes; then
4441  if test x"$enable_shared" = xyes; then
4442    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4443echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4444  else
4445    # we don't disable shared, because it was not selected anyway
4446    coin_disable_shared=no
4447  fi
4448  enable_shared=no
4449fi
4450# By default, we only want the shared objects to be compiled
4451# Check whether --enable-static or --disable-static was given.
4452if test "${enable_static+set}" = set; then
4453  enableval="$enable_static"
4454  p=${PACKAGE-default}
4455    case $enableval in
4456    yes) enable_static=yes ;;
4457    no) enable_static=no ;;
4458    *)
4459     enable_static=no
4460      # Look at the argument we got.  We use all the common list separators.
4461      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4462      for pkg in $enableval; do
4463        IFS="$lt_save_ifs"
4464        if test "X$pkg" = "X$p"; then
4465          enable_static=yes
4466        fi
4467      done
4468      IFS="$lt_save_ifs"
4469      ;;
4470    esac
4471else
4472  enable_static=no
4473fi;
4474
4475
4476
4477
4478# Initialize automake
4479echo "$as_me:$LINENO: checking for egrep" >&5
4480echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4481if test "${ac_cv_prog_egrep+set}" = set; then
4482  echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4485    then ac_cv_prog_egrep='grep -E'
4486    else ac_cv_prog_egrep='egrep'
4487    fi
4488fi
4489echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4490echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4491 EGREP=$ac_cv_prog_egrep
4492
4493
4494echo "$as_me:$LINENO: checking whether ln -s works" >&5
4495echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4496LN_S=$as_ln_s
4497if test "$LN_S" = "ln -s"; then
4498  echo "$as_me:$LINENO: result: yes" >&5
4499echo "${ECHO_T}yes" >&6
4500else
4501  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4502echo "${ECHO_T}no, using $LN_S" >&6
4503fi
4504
4505am__api_version="1.9"
4506# Find a good install program.  We prefer a C program (faster),
4507# so one script is as good as another.  But avoid the broken or
4508# incompatible versions:
4509# SysV /etc/install, /usr/sbin/install
4510# SunOS /usr/etc/install
4511# IRIX /sbin/install
4512# AIX /bin/install
4513# AmigaOS /C/install, which installs bootblocks on floppy discs
4514# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4515# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4516# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4517# OS/2's system install, which has a completely different semantic
4518# ./install, which can be erroneously created by make from ./install.sh.
4519echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4520echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4521if test -z "$INSTALL"; then
4522if test "${ac_cv_path_install+set}" = set; then
4523  echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH
4527do
4528  IFS=$as_save_IFS
4529  test -z "$as_dir" && as_dir=.
4530  # Account for people who put trailing slashes in PATH elements.
4531case $as_dir/ in
4532  ./ | .// | /cC/* | \
4533  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4534  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4535  /usr/ucb/* ) ;;
4536  *)
4537    # OSF1 and SCO ODT 3.0 have their own names for install.
4538    # Don't use installbsd from OSF since it installs stuff as root
4539    # by default.
4540    for ac_prog in ginstall scoinst install; do
4541      for ac_exec_ext in '' $ac_executable_extensions; do
4542        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4543          if test $ac_prog = install &&
4544            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4545            # AIX install.  It has an incompatible calling convention.
4546            :
4547          elif test $ac_prog = install &&
4548            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4549            # program-specific install script used by HP pwplus--don't use.
4550            :
4551          else
4552            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4553            break 3
4554          fi
4555        fi
4556      done
4557    done
4558    ;;
4559esac
4560done
4561
4562
4563fi
4564  if test "${ac_cv_path_install+set}" = set; then
4565    INSTALL=$ac_cv_path_install
4566  else
4567    # As a last resort, use the slow shell script.  We don't cache a
4568    # path for INSTALL within a source directory, because that will
4569    # break other packages using the cache if that directory is
4570    # removed, or if the path is relative.
4571    INSTALL=$ac_install_sh
4572  fi
4573fi
4574echo "$as_me:$LINENO: result: $INSTALL" >&5
4575echo "${ECHO_T}$INSTALL" >&6
4576
4577# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4578# It thinks the first close brace ends the variable substitution.
4579test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4580
4581test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4582
4583test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4584
4585echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4586echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4587# Just in case
4588sleep 1
4589echo timestamp > conftest.file
4590# Do `set' in a subshell so we don't clobber the current shell's
4591# arguments.  Must try -L first in case configure is actually a
4592# symlink; some systems play weird games with the mod time of symlinks
4593# (eg FreeBSD returns the mod time of the symlink's containing
4594# directory).
4595if (
4596   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4597   if test "$*" = "X"; then
4598      # -L didn't work.
4599      set X `ls -t $srcdir/configure conftest.file`
4600   fi
4601   rm -f conftest.file
4602   if test "$*" != "X $srcdir/configure conftest.file" \
4603      && test "$*" != "X conftest.file $srcdir/configure"; then
4604
4605      # If neither matched, then we have a broken ls.  This can happen
4606      # if, for instance, CONFIG_SHELL is bash and it inherits a
4607      # broken ls alias from the environment.  This has actually
4608      # happened.  Such a system could not be considered "sane".
4609      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4610alias in your environment" >&5
4611echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4612alias in your environment" >&2;}
4613   { (exit 1); exit 1; }; }
4614   fi
4615
4616   test "$2" = conftest.file
4617   )
4618then
4619   # Ok.
4620   :
4621else
4622   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4623Check your system clock" >&5
4624echo "$as_me: error: newly created file is older than distributed files!
4625Check your system clock" >&2;}
4626   { (exit 1); exit 1; }; }
4627fi
4628echo "$as_me:$LINENO: result: yes" >&5
4629echo "${ECHO_T}yes" >&6
4630test "$program_prefix" != NONE &&
4631  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4632# Use a double $ so make ignores it.
4633test "$program_suffix" != NONE &&
4634  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4635# Double any \ or $.  echo might interpret backslashes.
4636# By default was `s,x,x', remove it if useless.
4637cat <<\_ACEOF >conftest.sed
4638s/[\\$]/&&/g;s/;s,x,x,$//
4639_ACEOF
4640program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4641rm conftest.sed
4642
4643# expand $ac_aux_dir to an absolute path
4644am_aux_dir=`cd $ac_aux_dir && pwd`
4645
4646test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4647# Use eval to expand $SHELL
4648if eval "$MISSING --run true"; then
4649  am_missing_run="$MISSING --run "
4650else
4651  am_missing_run=
4652  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4653echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4654fi
4655
4656if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4657  # We used to keeping the `.' as first argument, in order to
4658  # allow $(mkdir_p) to be used without argument.  As in
4659  #   $(mkdir_p) $(somedir)
4660  # where $(somedir) is conditionally defined.  However this is wrong
4661  # for two reasons:
4662  #  1. if the package is installed by a user who cannot write `.'
4663  #     make install will fail,
4664  #  2. the above comment should most certainly read
4665  #     $(mkdir_p) $(DESTDIR)$(somedir)
4666  #     so it does not work when $(somedir) is undefined and
4667  #     $(DESTDIR) is not.
4668  #  To support the latter case, we have to write
4669  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4670  #  so the `.' trick is pointless.
4671  mkdir_p='mkdir -p --'
4672else
4673  # On NextStep and OpenStep, the `mkdir' command does not
4674  # recognize any option.  It will interpret all options as
4675  # directories to create, and then abort because `.' already
4676  # exists.
4677  for d in ./-p ./--version;
4678  do
4679    test -d $d && rmdir $d
4680  done
4681  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4682  if test -f "$ac_aux_dir/mkinstalldirs"; then
4683    mkdir_p='$(mkinstalldirs)'
4684  else
4685    mkdir_p='$(install_sh) -d'
4686  fi
4687fi
4688
4689for ac_prog in gawk mawk nawk awk
4690do
4691  # Extract the first word of "$ac_prog", so it can be a program name with args.
4692set dummy $ac_prog; ac_word=$2
4693echo "$as_me:$LINENO: checking for $ac_word" >&5
4694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4695if test "${ac_cv_prog_AWK+set}" = set; then
4696  echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698  if test -n "$AWK"; then
4699  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704  IFS=$as_save_IFS
4705  test -z "$as_dir" && as_dir=.
4706  for ac_exec_ext in '' $ac_executable_extensions; do
4707  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708    ac_cv_prog_AWK="$ac_prog"
4709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710    break 2
4711  fi
4712done
4713done
4714
4715fi
4716fi
4717AWK=$ac_cv_prog_AWK
4718if test -n "$AWK"; then
4719  echo "$as_me:$LINENO: result: $AWK" >&5
4720echo "${ECHO_T}$AWK" >&6
4721else
4722  echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6
4724fi
4725
4726  test -n "$AWK" && break
4727done
4728
4729echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4730echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4731set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4732if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4733  echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735  cat >conftest.make <<\_ACEOF
4736all:
4737        @echo 'ac_maketemp="$(MAKE)"'
4738_ACEOF
4739# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4740eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4741if test -n "$ac_maketemp"; then
4742  eval ac_cv_prog_make_${ac_make}_set=yes
4743else
4744  eval ac_cv_prog_make_${ac_make}_set=no
4745fi
4746rm -f conftest.make
4747fi
4748if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4749  echo "$as_me:$LINENO: result: yes" >&5
4750echo "${ECHO_T}yes" >&6
4751  SET_MAKE=
4752else
4753  echo "$as_me:$LINENO: result: no" >&5
4754echo "${ECHO_T}no" >&6
4755  SET_MAKE="MAKE=${MAKE-make}"
4756fi
4757
4758rm -rf .tst 2>/dev/null
4759mkdir .tst 2>/dev/null
4760if test -d .tst; then
4761  am__leading_dot=.
4762else
4763  am__leading_dot=_
4764fi
4765rmdir .tst 2>/dev/null
4766
4767DEPDIR="${am__leading_dot}deps"
4768
4769          ac_config_commands="$ac_config_commands depfiles"
4770
4771
4772am_make=${MAKE-make}
4773cat > confinc << 'END'
4774am__doit:
4775        @echo done
4776.PHONY: am__doit
4777END
4778# If we don't find an include directive, just comment out the code.
4779echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4780echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4781am__include="#"
4782am__quote=
4783_am_result=none
4784# First try GNU make style include.
4785echo "include confinc" > confmf
4786# We grep out `Entering directory' and `Leaving directory'
4787# messages which can occur if `w' ends up in MAKEFLAGS.
4788# In particular we don't look at `^make:' because GNU make might
4789# be invoked under some other name (usually "gmake"), in which
4790# case it prints its new name instead of `make'.
4791if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4792   am__include=include
4793   am__quote=
4794   _am_result=GNU
4795fi
4796# Now try BSD make style include.
4797if test "$am__include" = "#"; then
4798   echo '.include "confinc"' > confmf
4799   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4800      am__include=.include
4801      am__quote="\""
4802      _am_result=BSD
4803   fi
4804fi
4805
4806
4807echo "$as_me:$LINENO: result: $_am_result" >&5
4808echo "${ECHO_T}$_am_result" >&6
4809rm -f confinc confmf
4810
4811# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4812if test "${enable_dependency_tracking+set}" = set; then
4813  enableval="$enable_dependency_tracking"
4814
4815fi;
4816if test "x$enable_dependency_tracking" != xno; then
4817  am_depcomp="$ac_aux_dir/depcomp"
4818  AMDEPBACKSLASH='\'
4819fi
4820
4821
4822if test "x$enable_dependency_tracking" != xno; then
4823  AMDEP_TRUE=
4824  AMDEP_FALSE='#'
4825else
4826  AMDEP_TRUE='#'
4827  AMDEP_FALSE=
4828fi
4829
4830
4831
4832
4833
4834
4835# AC_MSG_NOTICE([Beginning automake initialisation.])
4836# Stuff for automake
4837# test to see if srcdir already configured
4838if test "`cd $srcdir && pwd`" != "`pwd`" &&
4839   test -f $srcdir/config.status; then
4840  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4841echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4842   { (exit 1); exit 1; }; }
4843fi
4844
4845# test whether we have cygpath
4846if test -z "$CYGPATH_W"; then
4847  if (cygpath --version) >/dev/null 2>/dev/null; then
4848    CYGPATH_W='cygpath -w'
4849  else
4850    CYGPATH_W=echo
4851  fi
4852fi
4853
4854
4855# Define the identity of the package.
4856 PACKAGE='thirdpartysoplex'
4857 VERSION='1.2'
4858
4859
4860cat >>confdefs.h <<_ACEOF
4861#define PACKAGE "$PACKAGE"
4862_ACEOF
4863
4864
4865cat >>confdefs.h <<_ACEOF
4866#define VERSION "$VERSION"
4867_ACEOF
4868
4869# Some tools Automake needs.
4870
4871ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4872
4873
4874AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4875
4876
4877AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4878
4879
4880AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4881
4882
4883MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4884
4885install_sh=${install_sh-"$am_aux_dir/install-sh"}
4886
4887# Installed binaries are usually stripped using `strip' when the user
4888# run `make install-strip'.  However `strip' might not be the right
4889# tool to use in cross-compilation environments, therefore Automake
4890# will honor the `STRIP' environment variable to overrule this program.
4891if test "$cross_compiling" != no; then
4892  if test -n "$ac_tool_prefix"; then
4893  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4894set dummy ${ac_tool_prefix}strip; ac_word=$2
4895echo "$as_me:$LINENO: checking for $ac_word" >&5
4896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897if test "${ac_cv_prog_STRIP+set}" = set; then
4898  echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900  if test -n "$STRIP"; then
4901  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4902else
4903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904for as_dir in $PATH
4905do
4906  IFS=$as_save_IFS
4907  test -z "$as_dir" && as_dir=.
4908  for ac_exec_ext in '' $ac_executable_extensions; do
4909  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4910    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4911    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912    break 2
4913  fi
4914done
4915done
4916
4917fi
4918fi
4919STRIP=$ac_cv_prog_STRIP
4920if test -n "$STRIP"; then
4921  echo "$as_me:$LINENO: result: $STRIP" >&5
4922echo "${ECHO_T}$STRIP" >&6
4923else
4924  echo "$as_me:$LINENO: result: no" >&5
4925echo "${ECHO_T}no" >&6
4926fi
4927
4928fi
4929if test -z "$ac_cv_prog_STRIP"; then
4930  ac_ct_STRIP=$STRIP
4931  # Extract the first word of "strip", so it can be a program name with args.
4932set dummy strip; ac_word=$2
4933echo "$as_me:$LINENO: checking for $ac_word" >&5
4934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4935if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4936  echo $ECHO_N "(cached) $ECHO_C" >&6
4937else
4938  if test -n "$ac_ct_STRIP"; then
4939  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4940else
4941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942for as_dir in $PATH
4943do
4944  IFS=$as_save_IFS
4945  test -z "$as_dir" && as_dir=.
4946  for ac_exec_ext in '' $ac_executable_extensions; do
4947  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4948    ac_cv_prog_ac_ct_STRIP="strip"
4949    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4950    break 2
4951  fi
4952done
4953done
4954
4955  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4956fi
4957fi
4958ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4959if test -n "$ac_ct_STRIP"; then
4960  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4961echo "${ECHO_T}$ac_ct_STRIP" >&6
4962else
4963  echo "$as_me:$LINENO: result: no" >&5
4964echo "${ECHO_T}no" >&6
4965fi
4966
4967  STRIP=$ac_ct_STRIP
4968else
4969  STRIP="$ac_cv_prog_STRIP"
4970fi
4971
4972fi
4973INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4974
4975# We need awk for the "check" target.  The system "awk" is bad on
4976# some platforms.
4977# Always define AMTAR for backward compatibility.
4978
4979AMTAR=${AMTAR-"${am_missing_run}tar"}
4980
4981am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4982
4983
4984
4985
4986depcc="$CC"   am_compiler_list=
4987
4988echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4989echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4990if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4991  echo $ECHO_N "(cached) $ECHO_C" >&6
4992else
4993  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4994  # We make a subdir and do the tests there.  Otherwise we can end up
4995  # making bogus files that we don't know about and never remove.  For
4996  # instance it was reported that on HP-UX the gcc test will end up
4997  # making a dummy file named `D' -- because `-MD' means `put the output
4998  # in D'.
4999  mkdir conftest.dir
5000  # Copy depcomp to subdir because otherwise we won't find it if we're
5001  # using a relative directory.
5002  cp "$am_depcomp" conftest.dir
5003  cd conftest.dir
5004  # We will build objects and dependencies in a subdirectory because
5005  # it helps to detect inapplicable dependency modes.  For instance
5006  # both Tru64's cc and ICC support -MD to output dependencies as a
5007  # side effect of compilation, but ICC will put the dependencies in
5008  # the current directory while Tru64 will put them in the object
5009  # directory.
5010  mkdir sub
5011
5012  am_cv_CC_dependencies_compiler_type=none
5013  if test "$am_compiler_list" = ""; then
5014     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5015  fi
5016  for depmode in $am_compiler_list; do
5017    # Setup a source with many dependencies, because some compilers
5018    # like to wrap large dependency lists on column 80 (with \), and
5019    # we should not choose a depcomp mode which is confused by this.
5020    #
5021    # We need to recreate these files for each test, as the compiler may
5022    # overwrite some of them when testing with obscure command lines.
5023    # This happens at least with the AIX C compiler.
5024    : > sub/conftest.c
5025    for i in 1 2 3 4 5 6; do
5026      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5027      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5028      # Solaris 8's {/usr,}/bin/sh.
5029      touch sub/conftst$i.h
5030    done
5031    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5032
5033    case $depmode in
5034    nosideeffect)
5035      # after this tag, mechanisms are not by side-effect, so they'll
5036      # only be used when explicitly requested
5037      if test "x$enable_dependency_tracking" = xyes; then
5038        continue
5039      else
5040        break
5041      fi
5042      ;;
5043    none) break ;;
5044    esac
5045    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5046    # mode.  It turns out that the SunPro C++ compiler does not properly
5047    # handle `-M -o', and we need to detect this.
5048    if depmode=$depmode \
5049       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5050       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5051       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5052         >/dev/null 2>conftest.err &&
5053       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5054       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5055       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5056      # icc doesn't choke on unknown options, it will just issue warnings
5057      # or remarks (even with -Werror).  So we grep stderr for any message
5058      # that says an option was ignored or not supported.
5059      # When given -MP, icc 7.0 and 7.1 complain thusly:
5060      #   icc: Command line warning: ignoring option '-M'; no argument required
5061      # The diagnosis changed in icc 8.0:
5062      #   icc: Command line remark: option '-MP' not supported
5063      if (grep 'ignoring option' conftest.err ||
5064          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5065        am_cv_CC_dependencies_compiler_type=$depmode
5066        break
5067      fi
5068    fi
5069  done
5070
5071  cd ..
5072  rm -rf conftest.dir
5073else
5074  am_cv_CC_dependencies_compiler_type=none
5075fi
5076
5077fi
5078echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5079echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5080CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5081
5082
5083
5084if
5085  test "x$enable_dependency_tracking" != xno \
5086  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5087  am__fastdepCC_TRUE=
5088  am__fastdepCC_FALSE='#'
5089else
5090  am__fastdepCC_TRUE='#'
5091  am__fastdepCC_FALSE=
5092fi
5093
5094
5095depcc="$CXX"  am_compiler_list=
5096
5097echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5098echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5099if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5100  echo $ECHO_N "(cached) $ECHO_C" >&6
5101else
5102  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5103  # We make a subdir and do the tests there.  Otherwise we can end up
5104  # making bogus files that we don't know about and never remove.  For
5105  # instance it was reported that on HP-UX the gcc test will end up
5106  # making a dummy file named `D' -- because `-MD' means `put the output
5107  # in D'.
5108  mkdir conftest.dir
5109  # Copy depcomp to subdir because otherwise we won't find it if we're
5110  # using a relative directory.
5111  cp "$am_depcomp" conftest.dir
5112  cd conftest.dir
5113  # We will build objects and dependencies in a subdirectory because
5114  # it helps to detect inapplicable dependency modes.  For instance
5115  # both Tru64's cc and ICC support -MD to output dependencies as a
5116  # side effect of compilation, but ICC will put the dependencies in
5117  # the current directory while Tru64 will put them in the object
5118  # directory.
5119  mkdir sub
5120
5121  am_cv_CXX_dependencies_compiler_type=none
5122  if test "$am_compiler_list" = ""; then
5123     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5124  fi
5125  for depmode in $am_compiler_list; do
5126    # Setup a source with many dependencies, because some compilers
5127    # like to wrap large dependency lists on column 80 (with \), and
5128    # we should not choose a depcomp mode which is confused by this.
5129    #
5130    # We need to recreate these files for each test, as the compiler may
5131    # overwrite some of them when testing with obscure command lines.
5132    # This happens at least with the AIX C compiler.
5133    : > sub/conftest.c
5134    for i in 1 2 3 4 5 6; do
5135      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5136      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5137      # Solaris 8's {/usr,}/bin/sh.
5138      touch sub/conftst$i.h
5139    done
5140    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5141
5142    case $depmode in
5143    nosideeffect)
5144      # after this tag, mechanisms are not by side-effect, so they'll
5145      # only be used when explicitly requested
5146      if test "x$enable_dependency_tracking" = xyes; then
5147        continue
5148      else
5149        break
5150      fi
5151      ;;
5152    none) break ;;
5153    esac
5154    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5155    # mode.  It turns out that the SunPro C++ compiler does not properly
5156    # handle `-M -o', and we need to detect this.
5157    if depmode=$depmode \
5158       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5159       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5160       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5161         >/dev/null 2>conftest.err &&
5162       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5163       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5164       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5165      # icc doesn't choke on unknown options, it will just issue warnings
5166      # or remarks (even with -Werror).  So we grep stderr for any message
5167      # that says an option was ignored or not supported.
5168      # When given -MP, icc 7.0 and 7.1 complain thusly:
5169      #   icc: Command line warning: ignoring option '-M'; no argument required
5170      # The diagnosis changed in icc 8.0:
5171      #   icc: Command line remark: option '-MP' not supported
5172      if (grep 'ignoring option' conftest.err ||
5173          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5174        am_cv_CXX_dependencies_compiler_type=$depmode
5175        break
5176      fi
5177    fi
5178  done
5179
5180  cd ..
5181  rm -rf conftest.dir
5182else
5183  am_cv_CXX_dependencies_compiler_type=none
5184fi
5185
5186fi
5187echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5188echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5189CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5190
5191
5192
5193if
5194  test "x$enable_dependency_tracking" != xno \
5195  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5196  am__fastdepCXX_TRUE=
5197  am__fastdepCXX_FALSE='#'
5198else
5199  am__fastdepCXX_TRUE='#'
5200  am__fastdepCXX_FALSE=
5201fi
5202
5203
5204
5205echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5206echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5207    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5208if test "${enable_maintainer_mode+set}" = set; then
5209  enableval="$enable_maintainer_mode"
5210  USE_MAINTAINER_MODE=$enableval
5211else
5212  USE_MAINTAINER_MODE=no
5213fi;
5214  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5215echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5216
5217
5218if test $USE_MAINTAINER_MODE = yes; then
5219  MAINTAINER_MODE_TRUE=
5220  MAINTAINER_MODE_FALSE='#'
5221else
5222  MAINTAINER_MODE_TRUE='#'
5223  MAINTAINER_MODE_FALSE=
5224fi
5225
5226  MAINT=$MAINTAINER_MODE_TRUE
5227
5228
5229
5230coin_have_externals=no
5231if test "$enable_maintainer_mode" = yes; then
5232
5233  # If maintainer mode is chosen, we make sure that the correct versions
5234  # of the tools are used, and that we know where libtool.m4 is (to
5235  # recreate acinclude.m4)
5236
5237
5238  LIBTOOLM4=
5239  # Normally, $HOME
5240  AUTOTOOLS_DFLT=$HOME
5241
5242  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5243echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5244if test "${ac_cv_use_correct_autotools+set}" = set; then
5245  echo $ECHO_N "(cached) $ECHO_C" >&6
5246else
5247  ac_cv_use_correct_autotools=check
5248fi
5249echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5250echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5251
5252  if test $ac_cv_use_correct_autotools = check; then
5253    ac_cv_use_correct_autotools=yes
5254    # Check if we have autoconf
5255    # Extract the first word of "autoconf", so it can be a program name with args.
5256set dummy autoconf; ac_word=$2
5257echo "$as_me:$LINENO: checking for $ac_word" >&5
5258echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5259if test "${ac_cv_prog_have_autoconf+set}" = set; then
5260  echo $ECHO_N "(cached) $ECHO_C" >&6
5261else
5262  if test -n "$have_autoconf"; then
5263  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5264else
5265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266for as_dir in $PATH
5267do
5268  IFS=$as_save_IFS
5269  test -z "$as_dir" && as_dir=.
5270  for ac_exec_ext in '' $ac_executable_extensions; do
5271  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272    ac_cv_prog_have_autoconf="yes"
5273    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274    break 2
5275  fi
5276done
5277done
5278
5279  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5280fi
5281fi
5282have_autoconf=$ac_cv_prog_have_autoconf
5283if test -n "$have_autoconf"; then
5284  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5285echo "${ECHO_T}$have_autoconf" >&6
5286else
5287  echo "$as_me:$LINENO: result: no" >&5
5288echo "${ECHO_T}no" >&6
5289fi
5290
5291    if test $have_autoconf = no; then
5292      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5293echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5294   { (exit 1); exit 1; }; }
5295    fi
5296
5297    # Check whether autoconf is the correct version
5298    correct_version='2.59'
5299    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5300    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5301echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5302    autoconf --version > confauto.out 2>&1
5303    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5304      echo "$as_me:$LINENO: result: yes" >&5
5305echo "${ECHO_T}yes" >&6
5306    else
5307      rm -f confauto.out
5308      echo "$as_me:$LINENO: result: no" >&5
5309echo "${ECHO_T}no" >&6
5310      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5311echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5312   { (exit 1); exit 1; }; }
5313    fi
5314    rm -f confauto.out
5315
5316    # Check if the executable autoconf is picked up from the correct location
5317    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5318echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5319    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5320    autoconf_dir=`cd $autoconf_dir; pwd`
5321    if test x$AUTOTOOLS_DIR = x; then
5322      want_dir=$AUTOTOOLS_DFLT/bin
5323    else
5324      want_dir=$AUTOTOOLS_DIR/bin
5325    fi
5326    if test $autoconf_dir = `cd $want_dir; pwd`; then
5327      echo "$as_me:$LINENO: result: yes" >&5
5328echo "${ECHO_T}yes" >&6
5329    else
5330      rm -f confauto.out
5331      echo "$as_me:$LINENO: result: no" >&5
5332echo "${ECHO_T}no" >&6
5333      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5334echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5335   { (exit 1); exit 1; }; }
5336    fi
5337
5338    # Check if we have automake
5339    # Extract the first word of "automake", so it can be a program name with args.
5340set dummy automake; ac_word=$2
5341echo "$as_me:$LINENO: checking for $ac_word" >&5
5342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343if test "${ac_cv_prog_have_automake+set}" = set; then
5344  echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346  if test -n "$have_automake"; then
5347  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5348else
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352  IFS=$as_save_IFS
5353  test -z "$as_dir" && as_dir=.
5354  for ac_exec_ext in '' $ac_executable_extensions; do
5355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356    ac_cv_prog_have_automake="yes"
5357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358    break 2
5359  fi
5360done
5361done
5362
5363  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5364fi
5365fi
5366have_automake=$ac_cv_prog_have_automake
5367if test -n "$have_automake"; then
5368  echo "$as_me:$LINENO: result: $have_automake" >&5
5369echo "${ECHO_T}$have_automake" >&6
5370else
5371  echo "$as_me:$LINENO: result: no" >&5
5372echo "${ECHO_T}no" >&6
5373fi
5374
5375    if test $have_automake = no; then
5376      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5377echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5378   { (exit 1); exit 1; }; }
5379    fi
5380
5381    # Check whether automake is the correct version
5382    correct_version='1.9.6'
5383    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5384    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5385echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5386    automake --version > confauto.out 2>&1
5387    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5388      echo "$as_me:$LINENO: result: yes" >&5
5389echo "${ECHO_T}yes" >&6
5390    else
5391      rm -f confauto.out
5392      echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
5394      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5395echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5396   { (exit 1); exit 1; }; }
5397    fi
5398    rm -f confauto.out
5399
5400    # Check if the executable automake is picked up from the correct location
5401    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5402echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5403    automake_dir=`which automake | sed -e 's=/automake=='`
5404    automake_dir=`cd $automake_dir; pwd`
5405    if test x$AUTOTOOLS_DIR = x; then
5406      want_dir=$AUTOTOOLS_DFLT/bin
5407    else
5408      want_dir=$AUTOTOOLS_DIR/bin
5409    fi
5410    if test $automake_dir = `cd $want_dir; pwd`; then
5411      echo "$as_me:$LINENO: result: yes" >&5
5412echo "${ECHO_T}yes" >&6
5413    else
5414      rm -f confauto.out
5415      echo "$as_me:$LINENO: result: no" >&5
5416echo "${ECHO_T}no" >&6
5417      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5418echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5419   { (exit 1); exit 1; }; }
5420    fi
5421
5422    # Check if this is the correct version of libtool (with escaped dots)
5423    if test x$AUTOTOOLS_DIR = x; then
5424      want_dir=$AUTOTOOLS_DFLT/share
5425    else
5426      want_dir=$AUTOTOOLS_DIR/share
5427    fi
5428    correct_version='1.5.22'
5429    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5430    if test -r $want_dir/libtool/ltmain.sh; then
5431  have_ltmain=yes
5432  :
5433else
5434  have_ltmain=no
5435  :
5436fi
5437
5438    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5439echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5440    if test $have_ltmain = yes; then
5441    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5442        echo "$as_me:$LINENO: result: yes" >&5
5443echo "${ECHO_T}yes" >&6
5444      else
5445        echo "$as_me:$LINENO: result: no" >&5
5446echo "${ECHO_T}no" >&6
5447        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5448echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5449   { (exit 1); exit 1; }; }
5450      fi
5451    else
5452      echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6
5454      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5455echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5456   { (exit 1); exit 1; }; }
5457    fi
5458  fi
5459
5460  # Check if we can find the libtool file
5461  if test x$AUTOTOOLS_DIR = x; then
5462    want_dir=$AUTOTOOLS_DFLT/share
5463  else
5464    want_dir=$AUTOTOOLS_DIR/share
5465  fi
5466  if test -r $want_dir/aclocal/libtool.m4; then
5467  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5468  :
5469else
5470  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5471echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5472   { (exit 1); exit 1; }; }
5473  :
5474fi
5475
5476
5477  # Check if we have an Dependencies file
5478  if test -r $srcdir/Dependencies; then
5479    coin_have_externals=yes
5480  fi
5481  # Check if subversion is installed and understands https
5482  # Extract the first word of "svn", so it can be a program name with args.
5483set dummy svn; ac_word=$2
5484echo "$as_me:$LINENO: checking for $ac_word" >&5
5485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5486if test "${ac_cv_prog_have_svn+set}" = set; then
5487  echo $ECHO_N "(cached) $ECHO_C" >&6
5488else
5489  if test -n "$have_svn"; then
5490  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5491else
5492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH
5494do
5495  IFS=$as_save_IFS
5496  test -z "$as_dir" && as_dir=.
5497  for ac_exec_ext in '' $ac_executable_extensions; do
5498  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499    ac_cv_prog_have_svn="yes"
5500    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5501    break 2
5502  fi
5503done
5504done
5505
5506  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5507fi
5508fi
5509have_svn=$ac_cv_prog_have_svn
5510if test -n "$have_svn"; then
5511  echo "$as_me:$LINENO: result: $have_svn" >&5
5512echo "${ECHO_T}$have_svn" >&6
5513else
5514  echo "$as_me:$LINENO: result: no" >&5
5515echo "${ECHO_T}no" >&6
5516fi
5517
5518  if test x$have_svn = xyes; then
5519    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5520echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5521if test "${ac_cv_svn_understands_https+set}" = set; then
5522  echo $ECHO_N "(cached) $ECHO_C" >&6
5523else
5524  svn --version > confauto.out 2>&1
5525                    if $EGREP https confauto.out >/dev/null 2>&1; then
5526                      ac_cv_svn_understands_https=yes
5527                    else
5528                      ac_cv_svn_understands_https=no
5529                      have_svn=no
5530                      ac_cv_prog_have_svn=no
5531                    fi
5532                    rm -f confauto.out
5533fi
5534echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5535echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5536  fi
5537
5538  # Find the location of the BuildTools directory
5539  BUILDTOOLSDIR=
5540  if test -r $srcdir/BuildTools/coin.m4; then
5541    BUILDTOOLSDIR=$srcdir/BuildTools
5542  else
5543    if test -r $srcdir/../BuildTools/coin.m4; then
5544      BUILDTOOLSDIR=$srcdir/../BuildTools
5545    else
5546      if test -r $srcdir/../../BuildTools/coin.m4; then
5547        BUILDTOOLSDIR=$srcdir/../../BuildTools
5548      else
5549        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5550echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5551   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5552      fi
5553    fi
5554  fi
5555
5556
5557  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5558  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5559    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5560  fi
5561
5562  # The following variable is set to the name of the directory where
5563  # the autotool scripts are located
5564
5565  AUX_DIR=$ac_aux_dir
5566fi
5567
5568# helpful variable for the base directory of this package
5569abs_source_dir=`cd $srcdir; pwd`
5570
5571
5572# Stuff for example Makefiles
5573if test x$prefix = xNONE; then
5574  full_prefix=$ac_default_prefix
5575else
5576  full_prefix=$prefix
5577fi
5578full_prefix=`cd $full_prefix ; pwd`
5579
5580abs_lib_dir=$full_prefix/lib
5581
5582abs_include_dir=$full_prefix/include
5583
5584abs_bin_dir=$full_prefix/bin
5585
5586
5587
5588if test $coin_have_externals = yes && test x$have_svn = xyes; then
5589  HAVE_EXTERNALS_TRUE=
5590  HAVE_EXTERNALS_FALSE='#'
5591else
5592  HAVE_EXTERNALS_TRUE='#'
5593  HAVE_EXTERNALS_FALSE=
5594fi
5595
5596
5597# AC_MSG_NOTICE([End automake initialisation.])
5598
5599
5600
5601LIBTOOL=
5602if test -r ../libtool; then
5603  coin_config_dir=..
5604  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5605fi
5606if test "x$LIBTOOL" = x; then
5607  if test -r ../../libtool; then
5608    coin_config_dir=../..
5609    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5610  fi
5611fi
5612
5613if test "x$LIBTOOL" = x; then
5614# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5615  # Stuff for libtool
5616  # Check whether --enable-shared or --disable-shared was given.
5617if test "${enable_shared+set}" = set; then
5618  enableval="$enable_shared"
5619  p=${PACKAGE-default}
5620    case $enableval in
5621    yes) enable_shared=yes ;;
5622    no) enable_shared=no ;;
5623    *)
5624      enable_shared=no
5625      # Look at the argument we got.  We use all the common list separators.
5626      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5627      for pkg in $enableval; do
5628        IFS="$lt_save_ifs"
5629        if test "X$pkg" = "X$p"; then
5630          enable_shared=yes
5631        fi
5632      done
5633      IFS="$lt_save_ifs"
5634      ;;
5635    esac
5636else
5637  enable_shared=yes
5638fi;
5639
5640# Check whether --enable-fast-install or --disable-fast-install was given.
5641if test "${enable_fast_install+set}" = set; then
5642  enableval="$enable_fast_install"
5643  p=${PACKAGE-default}
5644    case $enableval in
5645    yes) enable_fast_install=yes ;;
5646    no) enable_fast_install=no ;;
5647    *)
5648      enable_fast_install=no
5649      # Look at the argument we got.  We use all the common list separators.
5650      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5651      for pkg in $enableval; do
5652        IFS="$lt_save_ifs"
5653        if test "X$pkg" = "X$p"; then
5654          enable_fast_install=yes
5655        fi
5656      done
5657      IFS="$lt_save_ifs"
5658      ;;
5659    esac
5660else
5661  enable_fast_install=yes
5662fi;
5663
5664echo "$as_me:$LINENO: checking host system type" >&5
5665echo $ECHO_N "checking host system type... $ECHO_C" >&6
5666if test "${ac_cv_host+set}" = set; then
5667  echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669  ac_cv_host_alias=$host_alias
5670test -z "$ac_cv_host_alias" &&
5671  ac_cv_host_alias=$ac_cv_build_alias
5672ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5673  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5674echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5675   { (exit 1); exit 1; }; }
5676
5677fi
5678echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5679echo "${ECHO_T}$ac_cv_host" >&6
5680host=$ac_cv_host
5681host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5682host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5683host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5684
5685
5686echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5687echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5688if test "${lt_cv_path_SED+set}" = set; then
5689  echo $ECHO_N "(cached) $ECHO_C" >&6
5690else
5691  # Loop through the user's path and test for sed and gsed.
5692# Then use that list of sed's as ones to test for truncation.
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696  IFS=$as_save_IFS
5697  test -z "$as_dir" && as_dir=.
5698  for lt_ac_prog in sed gsed; do
5699    for ac_exec_ext in '' $ac_executable_extensions; do
5700      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5701        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5702      fi
5703    done
5704  done
5705done
5706lt_ac_max=0
5707lt_ac_count=0
5708# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5709# along with /bin/sed that truncates output.
5710for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5711  test ! -f $lt_ac_sed && continue
5712  cat /dev/null > conftest.in
5713  lt_ac_count=0
5714  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5715  # Check for GNU sed and select it if it is found.
5716  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5717    lt_cv_path_SED=$lt_ac_sed
5718    break
5719  fi
5720  while true; do
5721    cat conftest.in conftest.in >conftest.tmp
5722    mv conftest.tmp conftest.in
5723    cp conftest.in conftest.nl
5724    echo >>conftest.nl
5725    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5726    cmp -s conftest.out conftest.nl || break
5727    # 10000 chars as input seems more than enough
5728    test $lt_ac_count -gt 10 && break
5729    lt_ac_count=`expr $lt_ac_count + 1`
5730    if test $lt_ac_count -gt $lt_ac_max; then
5731      lt_ac_max=$lt_ac_count
5732      lt_cv_path_SED=$lt_ac_sed
5733    fi
5734  done
5735done
5736
5737fi
5738
5739SED=$lt_cv_path_SED
5740echo "$as_me:$LINENO: result: $SED" >&5
5741echo "${ECHO_T}$SED" >&6
5742
5743
5744# Check whether --with-gnu-ld or --without-gnu-ld was given.
5745if test "${with_gnu_ld+set}" = set; then
5746  withval="$with_gnu_ld"
5747  test "$withval" = no || with_gnu_ld=yes
5748else
5749  with_gnu_ld=no
5750fi;
5751ac_prog=ld
5752if test "$GCC" = yes; then
5753  # Check if gcc -print-prog-name=ld gives a path.
5754  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5755echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5756  case $host in
5757  *-*-mingw*)
5758    # gcc leaves a trailing carriage return which upsets mingw
5759    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5760  *)
5761    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5762  esac
5763  case $ac_prog in
5764    # Accept absolute paths.
5765    [\\/]* | ?:[\\/]*)
5766      re_direlt='/[^/][^/]*/\.\./'
5767      # Canonicalize the pathname of ld
5768      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5769      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5770        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5771      done
5772      test -z "$LD" && LD="$ac_prog"
5773      ;;
5774  "")
5775    # If it fails, then pretend we aren't using GCC.
5776    ac_prog=ld
5777    ;;
5778  *)
5779    # If it is relative, then search for the first ld in PATH.
5780    with_gnu_ld=unknown
5781    ;;
5782  esac
5783elif test "$with_gnu_ld" = yes; then
5784  echo "$as_me:$LINENO: checking for GNU ld" >&5
5785echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5786else
5787  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5788echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5789fi
5790if test "${lt_cv_path_LD+set}" = set; then
5791  echo $ECHO_N "(cached) $ECHO_C" >&6
5792else
5793  if test -z "$LD"; then
5794  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5795  for ac_dir in $PATH; do
5796    IFS="$lt_save_ifs"
5797    test -z "$ac_dir" && ac_dir=.
5798    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5799      lt_cv_path_LD="$ac_dir/$ac_prog"
5800      # Check to see if the program is GNU ld.  I'd rather use --version,
5801      # but apparently some variants of GNU ld only accept -v.
5802      # Break only if it was the GNU/non-GNU ld that we prefer.
5803      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5804      *GNU* | *'with BFD'*)
5805        test "$with_gnu_ld" != no && break
5806        ;;
5807      *)
5808        test "$with_gnu_ld" != yes && break
5809        ;;
5810      esac
5811    fi
5812  done
5813  IFS="$lt_save_ifs"
5814else
5815  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5816fi
5817fi
5818
5819LD="$lt_cv_path_LD"
5820if test -n "$LD"; then
5821  echo "$as_me:$LINENO: result: $LD" >&5
5822echo "${ECHO_T}$LD" >&6
5823else
5824  echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6
5826fi
5827test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5828echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5829   { (exit 1); exit 1; }; }
5830echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5831echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5832if test "${lt_cv_prog_gnu_ld+set}" = set; then
5833  echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5836case `$LD -v 2>&1 </dev/null` in
5837*GNU* | *'with BFD'*)
5838  lt_cv_prog_gnu_ld=yes
5839  ;;
5840*)
5841  lt_cv_prog_gnu_ld=no
5842  ;;
5843esac
5844fi
5845echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5846echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5847with_gnu_ld=$lt_cv_prog_gnu_ld
5848
5849
5850echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5851echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5852if test "${lt_cv_ld_reload_flag+set}" = set; then
5853  echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855  lt_cv_ld_reload_flag='-r'
5856fi
5857echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5858echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5859reload_flag=$lt_cv_ld_reload_flag
5860case $reload_flag in
5861"" | " "*) ;;
5862*) reload_flag=" $reload_flag" ;;
5863esac
5864reload_cmds='$LD$reload_flag -o $output$reload_objs'
5865case $host_os in
5866  darwin*)
5867    if test "$GCC" = yes; then
5868      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5869    else
5870      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5871    fi
5872    ;;
5873esac
5874
5875echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5876echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5877if test "${lt_cv_path_NM+set}" = set; then
5878  echo $ECHO_N "(cached) $ECHO_C" >&6
5879else
5880  if test -n "$NM"; then
5881  # Let the user override the test.
5882  lt_cv_path_NM="$NM"
5883else
5884  lt_nm_to_check="${ac_tool_prefix}nm"
5885  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5886    lt_nm_to_check="$lt_nm_to_check nm"
5887  fi
5888  for lt_tmp_nm in $lt_nm_to_check; do
5889    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5890    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5891      IFS="$lt_save_ifs"
5892      test -z "$ac_dir" && ac_dir=.
5893      tmp_nm="$ac_dir/$lt_tmp_nm"
5894      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5895        # Check to see if the nm accepts a BSD-compat flag.
5896        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5897        #   nm: unknown option "B" ignored
5898        # Tru64's nm complains that /dev/null is an invalid object file
5899        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5900        */dev/null* | *'Invalid file or object type'*)
5901          lt_cv_path_NM="$tmp_nm -B"
5902          break
5903          ;;
5904        *)
5905          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5906          */dev/null*)
5907            lt_cv_path_NM="$tmp_nm -p"
5908            break
5909            ;;
5910          *)
5911            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5912            continue # so that we can try to find one that supports BSD flags
5913            ;;
5914          esac
5915          ;;
5916        esac
5917      fi
5918    done
5919    IFS="$lt_save_ifs"
5920  done
5921  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5922fi
5923fi
5924echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5925echo "${ECHO_T}$lt_cv_path_NM" >&6
5926NM="$lt_cv_path_NM"
5927
5928echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5929echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5930if test "${lt_cv_deplibs_check_method+set}" = set; then
5931  echo $ECHO_N "(cached) $ECHO_C" >&6
5932else
5933  lt_cv_file_magic_cmd='$MAGIC_CMD'
5934lt_cv_file_magic_test_file=
5935lt_cv_deplibs_check_method='unknown'
5936# Need to set the preceding variable on all platforms that support
5937# interlibrary dependencies.
5938# 'none' -- dependencies not supported.
5939# `unknown' -- same as none, but documents that we really don't know.
5940# 'pass_all' -- all dependencies passed with no checks.
5941# 'test_compile' -- check by making test program.
5942# 'file_magic [[regex]]' -- check by looking for files in library path
5943# which responds to the $file_magic_cmd with a given extended regex.
5944# If you have `file' or equivalent on your system and you're not sure
5945# whether `pass_all' will *always* work, you probably want this one.
5946
5947case $host_os in
5948aix4* | aix5*)
5949  lt_cv_deplibs_check_method=pass_all
5950  ;;
5951
5952beos*)
5953  lt_cv_deplibs_check_method=pass_all
5954  ;;
5955
5956bsdi[45]*)
5957  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5958  lt_cv_file_magic_cmd='/usr/bin/file -L'
5959  lt_cv_file_magic_test_file=/shlib/libc.so
5960  ;;
5961
5962cygwin*)
5963  # func_win32_libid is a shell function defined in ltmain.sh
5964  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5965  lt_cv_file_magic_cmd='func_win32_libid'
5966  ;;
5967
5968mingw* | pw32*)
5969  # Base MSYS/MinGW do not provide the 'file' command needed by
5970  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5971  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5972  lt_cv_file_magic_cmd='$OBJDUMP -f'
5973  ;;
5974
5975darwin* | rhapsody*)
5976  lt_cv_deplibs_check_method=pass_all
5977  ;;
5978
5979freebsd* | kfreebsd*-gnu | dragonfly*)
5980  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5981    case $host_cpu in
5982    i*86 )
5983      # Not sure whether the presence of OpenBSD here was a mistake.
5984      # Let's accept both of them until this is cleared up.
5985      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5986      lt_cv_file_magic_cmd=/usr/bin/file
5987      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5988      ;;
5989    esac
5990  else
5991    lt_cv_deplibs_check_method=pass_all
5992  fi
5993  ;;
5994
5995gnu*)
5996  lt_cv_deplibs_check_method=pass_all
5997  ;;
5998
5999hpux10.20* | hpux11*)
6000  lt_cv_file_magic_cmd=/usr/bin/file
6001  case $host_cpu in
6002  ia64*)
6003    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6004    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6005    ;;
6006  hppa*64*)
6007    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]'
6008    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6009    ;;
6010  *)
6011    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6012    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6013    ;;
6014  esac
6015  ;;
6016
6017interix3*)
6018  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6019  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6020  ;;
6021
6022irix5* | irix6* | nonstopux*)
6023  case $LD in
6024  *-32|*"-32 ") libmagic=32-bit;;
6025  *-n32|*"-n32 ") libmagic=N32;;
6026  *-64|*"-64 ") libmagic=64-bit;;
6027  *) libmagic=never-match;;
6028  esac
6029  lt_cv_deplibs_check_method=pass_all
6030  ;;
6031
6032# This must be Linux ELF.
6033linux*)
6034  lt_cv_deplibs_check_method=pass_all
6035  ;;
6036
6037netbsd*)
6038  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6039    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6040  else
6041    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6042  fi
6043  ;;
6044
6045newos6*)
6046  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6047  lt_cv_file_magic_cmd=/usr/bin/file
6048  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6049  ;;
6050
6051nto-qnx*)
6052  lt_cv_deplibs_check_method=unknown
6053  ;;
6054
6055openbsd*)
6056  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6057    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6058  else
6059    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6060  fi
6061  ;;
6062
6063osf3* | osf4* | osf5*)
6064  lt_cv_deplibs_check_method=pass_all
6065  ;;
6066
6067solaris*)
6068  lt_cv_deplibs_check_method=pass_all
6069  ;;
6070
6071sysv4 | sysv4.3*)
6072  case $host_vendor in
6073  motorola)
6074    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]'
6075    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6076    ;;
6077  ncr)
6078    lt_cv_deplibs_check_method=pass_all
6079    ;;
6080  sequent)
6081    lt_cv_file_magic_cmd='/bin/file'
6082    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6083    ;;
6084  sni)
6085    lt_cv_file_magic_cmd='/bin/file'
6086    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6087    lt_cv_file_magic_test_file=/lib/libc.so
6088    ;;
6089  siemens)
6090    lt_cv_deplibs_check_method=pass_all
6091    ;;
6092  pc)
6093    lt_cv_deplibs_check_method=pass_all
6094    ;;
6095  esac
6096  ;;
6097
6098sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6099  lt_cv_deplibs_check_method=pass_all
6100  ;;
6101esac
6102
6103fi
6104echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6105echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6106file_magic_cmd=$lt_cv_file_magic_cmd
6107deplibs_check_method=$lt_cv_deplibs_check_method
6108test -z "$deplibs_check_method" && deplibs_check_method=unknown
6109
6110
6111
6112
6113# If no C compiler was specified, use CC.
6114LTCC=${LTCC-"$CC"}
6115
6116# If no C compiler flags were specified, use CFLAGS.
6117LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6118
6119# Allow CC to be a program name with arguments.
6120compiler=$CC
6121
6122# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6123if test "${enable_libtool_lock+set}" = set; then
6124  enableval="$enable_libtool_lock"
6125
6126fi;
6127test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6128
6129# Some flags need to be propagated to the compiler or linker for good
6130# libtool support.
6131case $host in
6132ia64-*-hpux*)
6133  # Find out which ABI we are using.
6134  echo 'int i;' > conftest.$ac_ext
6135  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6136  (eval $ac_compile) 2>&5
6137  ac_status=$?
6138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139  (exit $ac_status); }; then
6140    case `/usr/bin/file conftest.$ac_objext` in
6141    *ELF-32*)
6142      HPUX_IA64_MODE="32"
6143      ;;
6144    *ELF-64*)
6145      HPUX_IA64_MODE="64"
6146      ;;
6147    esac
6148  fi
6149  rm -rf conftest*
6150  ;;
6151*-*-irix6*)
6152  # Find out which ABI we are using.
6153  echo '#line 6153 "configure"' > conftest.$ac_ext
6154  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6155  (eval $ac_compile) 2>&5
6156  ac_status=$?
6157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158  (exit $ac_status); }; then
6159   if test "$lt_cv_prog_gnu_ld" = yes; then
6160    case `/usr/bin/file conftest.$ac_objext` in
6161    *32-bit*)
6162      LD="${LD-ld} -melf32bsmip"
6163      ;;
6164    *N32*)
6165      LD="${LD-ld} -melf32bmipn32"
6166      ;;
6167    *64-bit*)
6168      LD="${LD-ld} -melf64bmip"
6169      ;;
6170    esac
6171   else
6172    case `/usr/bin/file conftest.$ac_objext` in
6173    *32-bit*)
6174      LD="${LD-ld} -32"
6175      ;;
6176    *N32*)
6177      LD="${LD-ld} -n32"
6178      ;;
6179    *64-bit*)
6180      LD="${LD-ld} -64"
6181      ;;
6182    esac
6183   fi
6184  fi
6185  rm -rf conftest*
6186  ;;
6187
6188x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6189  # Find out which ABI we are using.
6190  echo 'int i;' > conftest.$ac_ext
6191  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6192  (eval $ac_compile) 2>&5
6193  ac_status=$?
6194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195  (exit $ac_status); }; then
6196    case `/usr/bin/file conftest.o` in
6197    *32-bit*)
6198      case $host in
6199        x86_64-*linux*)
6200          LD="${LD-ld} -m elf_i386"
6201          ;;
6202        ppc64-*linux*|powerpc64-*linux*)
6203          LD="${LD-ld} -m elf32ppclinux"
6204          ;;
6205        s390x-*linux*)
6206          LD="${LD-ld} -m elf_s390"
6207          ;;
6208        sparc64-*linux*)
6209          LD="${LD-ld} -m elf32_sparc"
6210          ;;
6211      esac
6212      ;;
6213    *64-bit*)
6214      case $host in
6215        x86_64-*linux*)
6216          LD="${LD-ld} -m elf_x86_64"
6217          ;;
6218        ppc*-*linux*|powerpc*-*linux*)
6219          LD="${LD-ld} -m elf64ppc"
6220          ;;
6221        s390*-*linux*)
6222          LD="${LD-ld} -m elf64_s390"
6223          ;;
6224        sparc*-*linux*)
6225          LD="${LD-ld} -m elf64_sparc"
6226          ;;
6227      esac
6228      ;;
6229    esac
6230  fi
6231  rm -rf conftest*
6232  ;;
6233
6234*-*-sco3.2v5*)
6235  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6236  SAVE_CFLAGS="$CFLAGS"
6237  CFLAGS="$CFLAGS -belf"
6238  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6239echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6240if test "${lt_cv_cc_needs_belf+set}" = set; then
6241  echo $ECHO_N "(cached) $ECHO_C" >&6
6242else
6243  ac_ext=c
6244ac_cpp='$CPP $CPPFLAGS'
6245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6247ac_compiler_gnu=$ac_cv_c_compiler_gnu
6248
6249     cat >conftest.$ac_ext <<_ACEOF
6250/* confdefs.h.  */
6251_ACEOF
6252cat confdefs.h >>conftest.$ac_ext
6253cat >>conftest.$ac_ext <<_ACEOF
6254/* end confdefs.h.  */
6255
6256int
6257main ()
6258{
6259
6260  ;
6261  return 0;
6262}
6263_ACEOF
6264rm -f conftest.$ac_objext conftest$ac_exeext
6265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6266  (eval $ac_link) 2>conftest.er1
6267  ac_status=$?
6268  grep -v '^ *+' conftest.er1 >conftest.err
6269  rm -f conftest.er1
6270  cat conftest.err >&5
6271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272  (exit $ac_status); } &&
6273         { ac_try='test -z "$ac_c_werror_flag"
6274                         || test ! -s conftest.err'
6275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276  (eval $ac_try) 2>&5
6277  ac_status=$?
6278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279  (exit $ac_status); }; } &&
6280         { ac_try='test -s conftest$ac_exeext'
6281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282  (eval $ac_try) 2>&5
6283  ac_status=$?
6284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285  (exit $ac_status); }; }; then
6286  lt_cv_cc_needs_belf=yes
6287else
6288  echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291lt_cv_cc_needs_belf=no
6292fi
6293rm -f conftest.err conftest.$ac_objext \
6294      conftest$ac_exeext conftest.$ac_ext
6295     ac_ext=c
6296ac_cpp='$CPP $CPPFLAGS'
6297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299ac_compiler_gnu=$ac_cv_c_compiler_gnu
6300
6301fi
6302echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6303echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6304  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6305    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6306    CFLAGS="$SAVE_CFLAGS"
6307  fi
6308  ;;
6309sparc*-*solaris*)
6310  # Find out which ABI we are using.
6311  echo 'int i;' > conftest.$ac_ext
6312  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6313  (eval $ac_compile) 2>&5
6314  ac_status=$?
6315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); }; then
6317    case `/usr/bin/file conftest.o` in
6318    *64-bit*)
6319      case $lt_cv_prog_gnu_ld in
6320      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6321      *)    LD="${LD-ld} -64" ;;
6322      esac
6323      ;;
6324    esac
6325  fi
6326  rm -rf conftest*
6327  ;;
6328
6329
6330esac
6331
6332need_locks="$enable_libtool_lock"
6333
6334
6335ac_ext=c
6336ac_cpp='$CPP $CPPFLAGS'
6337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6339ac_compiler_gnu=$ac_cv_c_compiler_gnu
6340echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6341echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6342# On Suns, sometimes $CPP names a directory.
6343if test -n "$CPP" && test -d "$CPP"; then
6344  CPP=
6345fi
6346if test -z "$CPP"; then
6347  if test "${ac_cv_prog_CPP+set}" = set; then
6348  echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350      # Double quotes because CPP needs to be expanded
6351    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6352    do
6353      ac_preproc_ok=false
6354for ac_c_preproc_warn_flag in '' yes
6355do
6356  # Use a header file that comes with gcc, so configuring glibc
6357  # with a fresh cross-compiler works.
6358  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6359  # <limits.h> exists even on freestanding compilers.
6360  # On the NeXT, cc -E runs the code through the compiler's parser,
6361  # not just through cpp. "Syntax error" is here to catch this case.
6362  cat >conftest.$ac_ext <<_ACEOF
6363/* confdefs.h.  */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
6367/* end confdefs.h.  */
6368#ifdef __STDC__
6369# include <limits.h>
6370#else
6371# include <assert.h>
6372#endif
6373                     Syntax error
6374_ACEOF
6375if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6376  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6377  ac_status=$?
6378  grep -v '^ *+' conftest.er1 >conftest.err
6379  rm -f conftest.er1
6380  cat conftest.err >&5
6381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382  (exit $ac_status); } >/dev/null; then
6383  if test -s conftest.err; then
6384    ac_cpp_err=$ac_c_preproc_warn_flag
6385    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6386  else
6387    ac_cpp_err=
6388  fi
6389else
6390  ac_cpp_err=yes
6391fi
6392if test -z "$ac_cpp_err"; then
6393  :
6394else
6395  echo "$as_me: failed program was:" >&5
6396sed 's/^/| /' conftest.$ac_ext >&5
6397
6398  # Broken: fails on valid input.
6399continue
6400fi
6401rm -f conftest.err conftest.$ac_ext
6402
6403  # OK, works on sane cases.  Now check whether non-existent headers
6404  # can be detected and how.
6405  cat >conftest.$ac_ext <<_ACEOF
6406/* confdefs.h.  */
6407_ACEOF
6408cat confdefs.h >>conftest.$ac_ext
6409cat >>conftest.$ac_ext <<_ACEOF
6410/* end confdefs.h.  */
6411#include <ac_nonexistent.h>
6412_ACEOF
6413if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6414  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6415  ac_status=$?
6416  grep -v '^ *+' conftest.er1 >conftest.err
6417  rm -f conftest.er1
6418  cat conftest.err >&5
6419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420  (exit $ac_status); } >/dev/null; then
6421  if test -s conftest.err; then
6422    ac_cpp_err=$ac_c_preproc_warn_flag
6423    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6424  else
6425    ac_cpp_err=
6426  fi
6427else
6428  ac_cpp_err=yes
6429fi
6430if test -z "$ac_cpp_err"; then
6431  # Broken: success on invalid input.
6432continue
6433else
6434  echo "$as_me: failed program was:" >&5
6435sed 's/^/| /' conftest.$ac_ext >&5
6436
6437  # Passes both tests.
6438ac_preproc_ok=:
6439break
6440fi
6441rm -f conftest.err conftest.$ac_ext
6442
6443done
6444# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6445rm -f conftest.err conftest.$ac_ext
6446if $ac_preproc_ok; then
6447  break
6448fi
6449
6450    done
6451    ac_cv_prog_CPP=$CPP
6452
6453fi
6454  CPP=$ac_cv_prog_CPP
6455else
6456  ac_cv_prog_CPP=$CPP
6457fi
6458echo "$as_me:$LINENO: result: $CPP" >&5
6459echo "${ECHO_T}$CPP" >&6
6460ac_preproc_ok=false
6461for ac_c_preproc_warn_flag in '' yes
6462do
6463  # Use a header file that comes with gcc, so configuring glibc
6464  # with a fresh cross-compiler works.
6465  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6466  # <limits.h> exists even on freestanding compilers.
6467  # On the NeXT, cc -E runs the code through the compiler's parser,
6468  # not just through cpp. "Syntax error" is here to catch this case.
6469  cat >conftest.$ac_ext <<_ACEOF
6470/* confdefs.h.  */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h.  */
6475#ifdef __STDC__
6476# include <limits.h>
6477#else
6478# include <assert.h>
6479#endif
6480                     Syntax error
6481_ACEOF
6482if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6483  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6484  ac_status=$?
6485  grep -v '^ *+' conftest.er1 >conftest.err
6486  rm -f conftest.er1
6487  cat conftest.err >&5
6488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489  (exit $ac_status); } >/dev/null; then
6490  if test -s conftest.err; then
6491    ac_cpp_err=$ac_c_preproc_warn_flag
6492    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6493  else
6494    ac_cpp_err=
6495  fi
6496else
6497  ac_cpp_err=yes
6498fi
6499if test -z "$ac_cpp_err"; then
6500  :
6501else
6502  echo "$as_me: failed program was:" >&5
6503sed 's/^/| /' conftest.$ac_ext >&5
6504
6505  # Broken: fails on valid input.
6506continue
6507fi
6508rm -f conftest.err conftest.$ac_ext
6509
6510  # OK, works on sane cases.  Now check whether non-existent headers
6511  # can be detected and how.
6512  cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h.  */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h.  */
6518#include <ac_nonexistent.h>
6519_ACEOF
6520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6521  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6522  ac_status=$?
6523  grep -v '^ *+' conftest.er1 >conftest.err
6524  rm -f conftest.er1
6525  cat conftest.err >&5
6526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527  (exit $ac_status); } >/dev/null; then
6528  if test -s conftest.err; then
6529    ac_cpp_err=$ac_c_preproc_warn_flag
6530    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6531  else
6532    ac_cpp_err=
6533  fi
6534else
6535  ac_cpp_err=yes
6536fi
6537if test -z "$ac_cpp_err"; then
6538  # Broken: success on invalid input.
6539continue
6540else
6541  echo "$as_me: failed program was:" >&5
6542sed 's/^/| /' conftest.$ac_ext >&5
6543
6544  # Passes both tests.
6545ac_preproc_ok=:
6546break
6547fi
6548rm -f conftest.err conftest.$ac_ext
6549
6550done
6551# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6552rm -f conftest.err conftest.$ac_ext
6553if $ac_preproc_ok; then
6554  :
6555else
6556  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6557See \`config.log' for more details." >&5
6558echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6559See \`config.log' for more details." >&2;}
6560   { (exit 1); exit 1; }; }
6561fi
6562
6563ac_ext=c
6564ac_cpp='$CPP $CPPFLAGS'
6565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6567ac_compiler_gnu=$ac_cv_c_compiler_gnu
6568
6569
6570echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6571echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6572if test "${ac_cv_header_stdc+set}" = set; then
6573  echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575  cat >conftest.$ac_ext <<_ACEOF
6576/* confdefs.h.  */
6577_ACEOF
6578cat confdefs.h >>conftest.$ac_ext
6579cat >>conftest.$ac_ext <<_ACEOF
6580/* end confdefs.h.  */
6581#include <stdlib.h>
6582#include <stdarg.h>
6583#include <string.h>
6584#include <float.h>
6585
6586int
6587main ()
6588{
6589
6590  ;
6591  return 0;
6592}
6593_ACEOF
6594rm -f conftest.$ac_objext
6595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6596  (eval $ac_compile) 2>conftest.er1
6597  ac_status=$?
6598  grep -v '^ *+' conftest.er1 >conftest.err
6599  rm -f conftest.er1
6600  cat conftest.err >&5
6601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602  (exit $ac_status); } &&
6603         { ac_try='test -z "$ac_c_werror_flag"
6604                         || test ! -s conftest.err'
6605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606  (eval $ac_try) 2>&5
6607  ac_status=$?
6608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609  (exit $ac_status); }; } &&
6610         { ac_try='test -s conftest.$ac_objext'
6611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6612  (eval $ac_try) 2>&5
6613  ac_status=$?
6614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615  (exit $ac_status); }; }; then
6616  ac_cv_header_stdc=yes
6617else
6618  echo "$as_me: failed program was:" >&5
6619sed 's/^/| /' conftest.$ac_ext >&5
6620
6621ac_cv_header_stdc=no
6622fi
6623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6624
6625if test $ac_cv_header_stdc = yes; then
6626  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6627  cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h.  */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h.  */
6633#include <string.h>
6634
6635_ACEOF
6636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6637  $EGREP "memchr" >/dev/null 2>&1; then
6638  :
6639else
6640  ac_cv_header_stdc=no
6641fi
6642rm -f conftest*
6643
6644fi
6645
6646if test $ac_cv_header_stdc = yes; then
6647  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6648  cat >conftest.$ac_ext <<_ACEOF
6649/* confdefs.h.  */
6650_ACEOF
6651cat confdefs.h >>conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h.  */
6654#include <stdlib.h>
6655
6656_ACEOF
6657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6658  $EGREP "free" >/dev/null 2>&1; then
6659  :
6660else
6661  ac_cv_header_stdc=no
6662fi
6663rm -f conftest*
6664
6665fi
6666
6667if test $ac_cv_header_stdc = yes; then
6668  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6669  if test "$cross_compiling" = yes; then
6670  :
6671else
6672  cat >conftest.$ac_ext <<_ACEOF
6673/* confdefs.h.  */
6674_ACEOF
6675cat confdefs.h >>conftest.$ac_ext
6676cat >>conftest.$ac_ext <<_ACEOF
6677/* end confdefs.h.  */
6678#include <ctype.h>
6679#if ((' ' & 0x0FF) == 0x020)
6680# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6681# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6682#else
6683# define ISLOWER(c) \
6684                   (('a' <= (c) && (c) <= 'i') \
6685                     || ('j' <= (c) && (c) <= 'r') \
6686                     || ('s' <= (c) && (c) <= 'z'))
6687# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6688#endif
6689
6690#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6691int
6692main ()
6693{
6694  int i;
6695  for (i = 0; i < 256; i++)
6696    if (XOR (islower (i), ISLOWER (i))
6697        || toupper (i) != TOUPPER (i))
6698      exit(2);
6699  exit (0);
6700}
6701_ACEOF
6702rm -f conftest$ac_exeext
6703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6704  (eval $ac_link) 2>&5
6705  ac_status=$?
6706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709  (eval $ac_try) 2>&5
6710  ac_status=$?
6711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712  (exit $ac_status); }; }; then
6713  :
6714else
6715  echo "$as_me: program exited with status $ac_status" >&5
6716echo "$as_me: failed program was:" >&5
6717sed 's/^/| /' conftest.$ac_ext >&5
6718
6719( exit $ac_status )
6720ac_cv_header_stdc=no
6721fi
6722rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6723fi
6724fi
6725fi
6726echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6727echo "${ECHO_T}$ac_cv_header_stdc" >&6
6728if test $ac_cv_header_stdc = yes; then
6729
6730cat >>confdefs.h <<\_ACEOF
6731#define STDC_HEADERS 1
6732_ACEOF
6733
6734fi
6735
6736# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6747                  inttypes.h stdint.h unistd.h
6748do
6749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6750echo "$as_me:$LINENO: checking for $ac_header" >&5
6751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6752if eval "test \"\${$as_ac_Header+set}\" = set"; then
6753  echo $ECHO_N "(cached) $ECHO_C" >&6
6754else
6755  cat >conftest.$ac_ext <<_ACEOF
6756/* confdefs.h.  */
6757_ACEOF
6758cat confdefs.h >>conftest.$ac_ext
6759cat >>conftest.$ac_ext <<_ACEOF
6760/* end confdefs.h.  */
6761$ac_includes_default
6762
6763#include <$ac_header>
6764_ACEOF
6765rm -f conftest.$ac_objext
6766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767  (eval $ac_compile) 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); } &&
6774         { ac_try='test -z "$ac_c_werror_flag"
6775                         || test ! -s conftest.err'
6776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777  (eval $ac_try) 2>&5
6778  ac_status=$?
6779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780  (exit $ac_status); }; } &&
6781         { ac_try='test -s conftest.$ac_objext'
6782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783  (eval $ac_try) 2>&5
6784  ac_status=$?
6785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786  (exit $ac_status); }; }; then
6787  eval "$as_ac_Header=yes"
6788else
6789  echo "$as_me: failed program was:" >&5
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
6792eval "$as_ac_Header=no"
6793fi
6794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6795fi
6796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6798if test `eval echo '${'$as_ac_Header'}'` = yes; then
6799  cat >>confdefs.h <<_ACEOF
6800#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6801_ACEOF
6802
6803fi
6804
6805done
6806
6807
6808
6809for ac_header in dlfcn.h
6810do
6811as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6812if eval "test \"\${$as_ac_Header+set}\" = set"; then
6813  echo "$as_me:$LINENO: checking for $ac_header" >&5
6814echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6815if eval "test \"\${$as_ac_Header+set}\" = set"; then
6816  echo $ECHO_N "(cached) $ECHO_C" >&6
6817fi
6818echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6819echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6820else
6821  # Is the header compilable?
6822echo "$as_me:$LINENO: checking $ac_header usability" >&5
6823echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6824cat >conftest.$ac_ext <<_ACEOF
6825/* confdefs.h.  */
6826_ACEOF
6827cat confdefs.h >>conftest.$ac_ext
6828cat >>conftest.$ac_ext <<_ACEOF
6829/* end confdefs.h.  */
6830$ac_includes_default
6831#include <$ac_header>
6832_ACEOF
6833rm -f conftest.$ac_objext
6834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6835  (eval $ac_compile) 2>conftest.er1
6836  ac_status=$?
6837  grep -v '^ *+' conftest.er1 >conftest.err
6838  rm -f conftest.er1
6839  cat conftest.err >&5
6840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841  (exit $ac_status); } &&
6842         { ac_try='test -z "$ac_c_werror_flag"
6843                         || test ! -s conftest.err'
6844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845  (eval $ac_try) 2>&5
6846  ac_status=$?
6847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848  (exit $ac_status); }; } &&
6849         { ac_try='test -s conftest.$ac_objext'
6850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851  (eval $ac_try) 2>&5
6852  ac_status=$?
6853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854  (exit $ac_status); }; }; then
6855  ac_header_compiler=yes
6856else
6857  echo "$as_me: failed program was:" >&5
6858sed 's/^/| /' conftest.$ac_ext >&5
6859
6860ac_header_compiler=no
6861fi
6862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6864echo "${ECHO_T}$ac_header_compiler" >&6
6865
6866# Is the header present?
6867echo "$as_me:$LINENO: checking $ac_header presence" >&5
6868echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6869cat >conftest.$ac_ext <<_ACEOF
6870/* confdefs.h.  */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h.  */
6875#include <$ac_header>
6876_ACEOF
6877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6878  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6879  ac_status=$?
6880  grep -v '^ *+' conftest.er1 >conftest.err
6881  rm -f conftest.er1
6882  cat conftest.err >&5
6883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884  (exit $ac_status); } >/dev/null; then
6885  if test -s conftest.err; then
6886    ac_cpp_err=$ac_c_preproc_warn_flag
6887    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6888  else
6889    ac_cpp_err=
6890  fi
6891else
6892  ac_cpp_err=yes
6893fi
6894if test -z "$ac_cpp_err"; then
6895  ac_header_preproc=yes
6896else
6897  echo "$as_me: failed program was:" >&5
6898sed 's/^/| /' conftest.$ac_ext >&5
6899
6900  ac_header_preproc=no
6901fi
6902rm -f conftest.err conftest.$ac_ext
6903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6904echo "${ECHO_T}$ac_header_preproc" >&6
6905
6906# So?  What about this header?
6907case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6908  yes:no: )
6909    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6910echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6911    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6912echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6913    ac_header_preproc=yes
6914    ;;
6915  no:yes:* )
6916    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6917echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6918    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6919echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6920    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6921echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6922    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6923echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6924    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6925echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6926    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6927echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6928    (
6929      cat <<\_ASBOX
6930## --------------------------------------------------------------- ##
6931## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6932## --------------------------------------------------------------- ##
6933_ASBOX
6934    ) |
6935      sed "s/^/$as_me: WARNING:     /" >&2
6936    ;;
6937esac
6938echo "$as_me:$LINENO: checking for $ac_header" >&5
6939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6940if eval "test \"\${$as_ac_Header+set}\" = set"; then
6941  echo $ECHO_N "(cached) $ECHO_C" >&6
6942else
6943  eval "$as_ac_Header=\$ac_header_preproc"
6944fi
6945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6947
6948fi
6949if test `eval echo '${'$as_ac_Header'}'` = yes; then
6950  cat >>confdefs.h <<_ACEOF
6951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6952_ACEOF
6953
6954fi
6955
6956done
6957
6958
6959
6960if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6961    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6962    (test "X$CXX" != "Xg++"))) ; then
6963  ac_ext=cc
6964ac_cpp='$CXXCPP $CPPFLAGS'
6965ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6968echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6969echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6970if test -z "$CXXCPP"; then
6971  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6972  echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974      # Double quotes because CXXCPP needs to be expanded
6975    for CXXCPP in "$CXX -E" "/lib/cpp"
6976    do
6977      ac_preproc_ok=false
6978for ac_cxx_preproc_warn_flag in '' yes
6979do
6980  # Use a header file that comes with gcc, so configuring glibc
6981  # with a fresh cross-compiler works.
6982  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6983  # <limits.h> exists even on freestanding compilers.
6984  # On the NeXT, cc -E runs the code through the compiler's parser,
6985  # not just through cpp. "Syntax error" is here to catch this case.
6986  cat >conftest.$ac_ext <<_ACEOF
6987/* confdefs.h.  */
6988_ACEOF
6989cat confdefs.h >>conftest.$ac_ext
6990cat >>conftest.$ac_ext <<_ACEOF
6991/* end confdefs.h.  */
6992#ifdef __STDC__
6993# include <limits.h>
6994#else
6995# include <assert.h>
6996#endif
6997                     Syntax error
6998_ACEOF
6999if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7000  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7001  ac_status=$?
7002  grep -v '^ *+' conftest.er1 >conftest.err
7003  rm -f conftest.er1
7004  cat conftest.err >&5
7005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006  (exit $ac_status); } >/dev/null; then
7007  if test -s conftest.err; then
7008    ac_cpp_err=$ac_cxx_preproc_warn_flag
7009    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7010  else
7011    ac_cpp_err=
7012  fi
7013else
7014  ac_cpp_err=yes
7015fi
7016if test -z "$ac_cpp_err"; then
7017  :
7018else
7019  echo "$as_me: failed program was:" >&5
7020sed 's/^/| /' conftest.$ac_ext >&5
7021
7022  # Broken: fails on valid input.
7023continue
7024fi
7025rm -f conftest.err conftest.$ac_ext
7026
7027  # OK, works on sane cases.  Now check whether non-existent headers
7028  # can be detected and how.
7029  cat >conftest.$ac_ext <<_ACEOF
7030/* confdefs.h.  */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
7034/* end confdefs.h.  */
7035#include <ac_nonexistent.h>
7036_ACEOF
7037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7038  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7039  ac_status=$?
7040  grep -v '^ *+' conftest.er1 >conftest.err
7041  rm -f conftest.er1
7042  cat conftest.err >&5
7043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044  (exit $ac_status); } >/dev/null; then
7045  if test -s conftest.err; then
7046    ac_cpp_err=$ac_cxx_preproc_warn_flag
7047    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7048  else
7049    ac_cpp_err=
7050  fi
7051else
7052  ac_cpp_err=yes
7053fi
7054if test -z "$ac_cpp_err"; then
7055  # Broken: success on invalid input.
7056continue
7057else
7058  echo "$as_me: failed program was:" >&5
7059sed 's/^/| /' conftest.$ac_ext >&5
7060
7061  # Passes both tests.
7062ac_preproc_ok=:
7063break
7064fi
7065rm -f conftest.err conftest.$ac_ext
7066
7067done
7068# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7069rm -f conftest.err conftest.$ac_ext
7070if $ac_preproc_ok; then
7071  break
7072fi
7073
7074    done
7075    ac_cv_prog_CXXCPP=$CXXCPP
7076
7077fi
7078  CXXCPP=$ac_cv_prog_CXXCPP
7079else
7080  ac_cv_prog_CXXCPP=$CXXCPP
7081fi
7082echo "$as_me:$LINENO: result: $CXXCPP" >&5
7083echo "${ECHO_T}$CXXCPP" >&6
7084ac_preproc_ok=false
7085for ac_cxx_preproc_warn_flag in '' yes
7086do
7087  # Use a header file that comes with gcc, so configuring glibc
7088  # with a fresh cross-compiler works.
7089  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7090  # <limits.h> exists even on freestanding compilers.
7091  # On the NeXT, cc -E runs the code through the compiler's parser,
7092  # not just through cpp. "Syntax error" is here to catch this case.
7093  cat >conftest.$ac_ext <<_ACEOF
7094/* confdefs.h.  */
7095_ACEOF
7096cat confdefs.h >>conftest.$ac_ext
7097cat >>conftest.$ac_ext <<_ACEOF
7098/* end confdefs.h.  */
7099#ifdef __STDC__
7100# include <limits.h>
7101#else
7102# include <assert.h>
7103#endif
7104                     Syntax error
7105_ACEOF
7106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7107  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7108  ac_status=$?
7109  grep -v '^ *+' conftest.er1 >conftest.err
7110  rm -f conftest.er1
7111  cat conftest.err >&5
7112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113  (exit $ac_status); } >/dev/null; then
7114  if test -s conftest.err; then
7115    ac_cpp_err=$ac_cxx_preproc_warn_flag
7116    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7117  else
7118    ac_cpp_err=
7119  fi
7120else
7121  ac_cpp_err=yes
7122fi
7123if test -z "$ac_cpp_err"; then
7124  :
7125else
7126  echo "$as_me: failed program was:" >&5
7127sed 's/^/| /' conftest.$ac_ext >&5
7128
7129  # Broken: fails on valid input.
7130continue
7131fi
7132rm -f conftest.err conftest.$ac_ext
7133
7134  # OK, works on sane cases.  Now check whether non-existent headers
7135  # can be detected and how.
7136  cat >conftest.$ac_ext <<_ACEOF
7137/* confdefs.h.  */
7138_ACEOF
7139cat confdefs.h >>conftest.$ac_ext
7140cat >>conftest.$ac_ext <<_ACEOF
7141/* end confdefs.h.  */
7142#include <ac_nonexistent.h>
7143_ACEOF
7144if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7145  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7146  ac_status=$?
7147  grep -v '^ *+' conftest.er1 >conftest.err
7148  rm -f conftest.er1
7149  cat conftest.err >&5
7150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151  (exit $ac_status); } >/dev/null; then
7152  if test -s conftest.err; then
7153    ac_cpp_err=$ac_cxx_preproc_warn_flag
7154    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7155  else
7156    ac_cpp_err=
7157  fi
7158else
7159  ac_cpp_err=yes
7160fi
7161if test -z "$ac_cpp_err"; then
7162  # Broken: success on invalid input.
7163continue
7164else
7165  echo "$as_me: failed program was:" >&5
7166sed 's/^/| /' conftest.$ac_ext >&5
7167
7168  # Passes both tests.
7169ac_preproc_ok=:
7170break
7171fi
7172rm -f conftest.err conftest.$ac_ext
7173
7174done
7175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7176rm -f conftest.err conftest.$ac_ext
7177if $ac_preproc_ok; then
7178  :
7179else
7180  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7181See \`config.log' for more details." >&5
7182echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7183See \`config.log' for more details." >&2;}
7184   { (exit 1); exit 1; }; }
7185fi
7186
7187ac_ext=cc
7188ac_cpp='$CXXCPP $CPPFLAGS'
7189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7192
7193fi
7194
7195ac_ext=f
7196ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7197ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7199if test -n "$ac_tool_prefix"; then
7200  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7201  do
7202    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7203set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7204echo "$as_me:$LINENO: checking for $ac_word" >&5
7205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7206if test "${ac_cv_prog_F77+set}" = set; then
7207  echo $ECHO_N "(cached) $ECHO_C" >&6
7208else
7209  if test -n "$F77"; then
7210  ac_cv_prog_F77="$F77" # Let the user override the test.
7211else
7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215  IFS=$as_save_IFS
7216  test -z "$as_dir" && as_dir=.
7217  for ac_exec_ext in '' $ac_executable_extensions; do
7218  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7220    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7221    break 2
7222  fi
7223done
7224done
7225
7226fi
7227fi
7228F77=$ac_cv_prog_F77
7229if test -n "$F77"; then
7230  echo "$as_me:$LINENO: result: $F77" >&5
7231echo "${ECHO_T}$F77" >&6
7232else
7233  echo "$as_me:$LINENO: result: no" >&5
7234echo "${ECHO_T}no" >&6
7235fi
7236
7237    test -n "$F77" && break
7238  done
7239fi
7240if test -z "$F77"; then
7241  ac_ct_F77=$F77
7242  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7243do
7244  # Extract the first word of "$ac_prog", so it can be a program name with args.
7245set dummy $ac_prog; ac_word=$2
7246echo "$as_me:$LINENO: checking for $ac_word" >&5
7247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7248if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7249  echo $ECHO_N "(cached) $ECHO_C" >&6
7250else
7251  if test -n "$ac_ct_F77"; then
7252  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257  IFS=$as_save_IFS
7258  test -z "$as_dir" && as_dir=.
7259  for ac_exec_ext in '' $ac_executable_extensions; do
7260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261    ac_cv_prog_ac_ct_F77="$ac_prog"
7262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263    break 2
7264  fi
7265done
7266done
7267
7268fi
7269fi
7270ac_ct_F77=$ac_cv_prog_ac_ct_F77
7271if test -n "$ac_ct_F77"; then
7272  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7273echo "${ECHO_T}$ac_ct_F77" >&6
7274else
7275  echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6
7277fi
7278
7279  test -n "$ac_ct_F77" && break
7280done
7281
7282  F77=$ac_ct_F77
7283fi
7284
7285
7286# Provide some information about the compiler.
7287echo "$as_me:7287:" \
7288     "checking for Fortran 77 compiler version" >&5
7289ac_compiler=`set X $ac_compile; echo $2`
7290{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7291  (eval $ac_compiler --version </dev/null >&5) 2>&5
7292  ac_status=$?
7293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294  (exit $ac_status); }
7295{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7296  (eval $ac_compiler -v </dev/null >&5) 2>&5
7297  ac_status=$?
7298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299  (exit $ac_status); }
7300{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7301  (eval $ac_compiler -V </dev/null >&5) 2>&5
7302  ac_status=$?
7303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304  (exit $ac_status); }
7305rm -f a.out
7306
7307# If we don't use `.F' as extension, the preprocessor is not run on the
7308# input file.  (Note that this only needs to work for GNU compilers.)
7309ac_save_ext=$ac_ext
7310ac_ext=F
7311echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7312echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7313if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7314  echo $ECHO_N "(cached) $ECHO_C" >&6
7315else
7316  cat >conftest.$ac_ext <<_ACEOF
7317      program main
7318#ifndef __GNUC__
7319       choke me
7320#endif
7321
7322      end
7323_ACEOF
7324rm -f conftest.$ac_objext
7325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7326  (eval $ac_compile) 2>conftest.er1
7327  ac_status=$?
7328  grep -v '^ *+' conftest.er1 >conftest.err
7329  rm -f conftest.er1
7330  cat conftest.err >&5
7331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332  (exit $ac_status); } &&
7333         { ac_try='test -z "$ac_f77_werror_flag"
7334                         || test ! -s conftest.err'
7335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7336  (eval $ac_try) 2>&5
7337  ac_status=$?
7338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339  (exit $ac_status); }; } &&
7340         { ac_try='test -s conftest.$ac_objext'
7341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342  (eval $ac_try) 2>&5
7343  ac_status=$?
7344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345  (exit $ac_status); }; }; then
7346  ac_compiler_gnu=yes
7347else
7348  echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351ac_compiler_gnu=no
7352fi
7353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7354ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7355
7356fi
7357echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7358echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7359ac_ext=$ac_save_ext
7360ac_test_FFLAGS=${FFLAGS+set}
7361ac_save_FFLAGS=$FFLAGS
7362FFLAGS=
7363echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7364echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7365if test "${ac_cv_prog_f77_g+set}" = set; then
7366  echo $ECHO_N "(cached) $ECHO_C" >&6
7367else
7368  FFLAGS=-g
7369cat >conftest.$ac_ext <<_ACEOF
7370      program main
7371
7372      end
7373_ACEOF
7374rm -f conftest.$ac_objext
7375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376  (eval $ac_compile) 2>conftest.er1
7377  ac_status=$?
7378  grep -v '^ *+' conftest.er1 >conftest.err
7379  rm -f conftest.er1
7380  cat conftest.err >&5
7381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382  (exit $ac_status); } &&
7383         { ac_try='test -z "$ac_f77_werror_flag"
7384                         || test ! -s conftest.err'
7385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386  (eval $ac_try) 2>&5
7387  ac_status=$?
7388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389  (exit $ac_status); }; } &&
7390         { ac_try='test -s conftest.$ac_objext'
7391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7392  (eval $ac_try) 2>&5
7393  ac_status=$?
7394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395  (exit $ac_status); }; }; then
7396  ac_cv_prog_f77_g=yes
7397else
7398  echo "$as_me: failed program was:" >&5
7399sed 's/^/| /' conftest.$ac_ext >&5
7400
7401ac_cv_prog_f77_g=no
7402fi
7403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7404
7405fi
7406echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7407echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7408if test "$ac_test_FFLAGS" = set; then
7409  FFLAGS=$ac_save_FFLAGS
7410elif test $ac_cv_prog_f77_g = yes; then
7411  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7412    FFLAGS="-g -O2"
7413  else
7414    FFLAGS="-g"
7415  fi
7416else
7417  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7418    FFLAGS="-O2"
7419  else
7420    FFLAGS=
7421  fi
7422fi
7423
7424G77=`test $ac_compiler_gnu = yes && echo yes`
7425ac_ext=c
7426ac_cpp='$CPP $CPPFLAGS'
7427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7429ac_compiler_gnu=$ac_cv_c_compiler_gnu
7430
7431
7432
7433# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7434
7435# find the maximum length of command line arguments
7436echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7437echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7438if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7439  echo $ECHO_N "(cached) $ECHO_C" >&6
7440else
7441    i=0
7442  teststring="ABCD"
7443
7444  case $build_os in
7445  msdosdjgpp*)
7446    # On DJGPP, this test can blow up pretty badly due to problems in libc
7447    # (any single argument exceeding 2000 bytes causes a buffer overrun
7448    # during glob expansion).  Even if it were fixed, the result of this
7449    # check would be larger than it should be.
7450    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7451    ;;
7452
7453  gnu*)
7454    # Under GNU Hurd, this test is not required because there is
7455    # no limit to the length of command line arguments.
7456    # Libtool will interpret -1 as no limit whatsoever
7457    lt_cv_sys_max_cmd_len=-1;
7458    ;;
7459
7460  cygwin* | mingw*)
7461    # On Win9x/ME, this test blows up -- it succeeds, but takes
7462    # about 5 minutes as the teststring grows exponentially.
7463    # Worse, since 9x/ME are not pre-emptively multitasking,
7464    # you end up with a "frozen" computer, even though with patience
7465    # the test eventually succeeds (with a max line length of 256k).
7466    # Instead, let's just punt: use the minimum linelength reported by
7467    # all of the supported platforms: 8192 (on NT/2K/XP).
7468    lt_cv_sys_max_cmd_len=8192;
7469    ;;
7470
7471  amigaos*)
7472    # On AmigaOS with pdksh, this test takes hours, literally.
7473    # So we just punt and use a minimum line length of 8192.
7474    lt_cv_sys_max_cmd_len=8192;
7475    ;;
7476
7477  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7478    # This has been around since 386BSD, at least.  Likely further.
7479    if test -x /sbin/sysctl; then
7480      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7481    elif test -x /usr/sbin/sysctl; then
7482      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7483    else
7484      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7485    fi
7486    # And add a safety zone
7487    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7488    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7489    ;;
7490
7491  interix*)
7492    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7493    lt_cv_sys_max_cmd_len=196608
7494    ;;
7495
7496  osf*)
7497    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7498    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7499    # nice to cause kernel panics so lets avoid the loop below.
7500    # First set a reasonable default.
7501    lt_cv_sys_max_cmd_len=16384
7502    #
7503    if test -x /sbin/sysconfig; then
7504      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7505        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7506      esac
7507    fi
7508    ;;
7509  sco3.2v5*)
7510    lt_cv_sys_max_cmd_len=102400
7511    ;;
7512  sysv5* | sco5v6* | sysv4.2uw2*)
7513    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7514    if test -n "$kargmax"; then
7515      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7516    else
7517      lt_cv_sys_max_cmd_len=32768
7518    fi
7519    ;;
7520  *)
7521    # If test is not a shell built-in, we'll probably end up computing a
7522    # maximum length that is only half of the actual maximum length, but
7523    # we can't tell.
7524    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7525    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7526               = "XX$teststring") >/dev/null 2>&1 &&
7527            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7528            lt_cv_sys_max_cmd_len=$new_result &&
7529            test $i != 17 # 1/2 MB should be enough
7530    do
7531      i=`expr $i + 1`
7532      teststring=$teststring$teststring
7533    done
7534    teststring=
7535    # Add a significant safety factor because C++ compilers can tack on massive
7536    # amounts of additional arguments before passing them to the linker.
7537    # It appears as though 1/2 is a usable value.
7538    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7539    ;;
7540  esac
7541
7542fi
7543
7544if test -n $lt_cv_sys_max_cmd_len ; then
7545  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7546echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7547else
7548  echo "$as_me:$LINENO: result: none" >&5
7549echo "${ECHO_T}none" >&6
7550fi
7551
7552
7553
7554
7555# Check for command to grab the raw symbol name followed by C symbol from nm.
7556echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7557echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7558if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7559  echo $ECHO_N "(cached) $ECHO_C" >&6
7560else
7561
7562# These are sane defaults that work on at least a few old systems.
7563# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7564
7565# Character class describing NM global symbol codes.
7566symcode='[BCDEGRST]'
7567
7568# Regexp to match symbols that can be accessed directly from C.
7569sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7570
7571# Transform an extracted symbol line into a proper C declaration
7572lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7573
7574# Transform an extracted symbol line into symbol name and symbol address
7575lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7576
7577# Define system-specific variables.
7578case $host_os in
7579aix*)
7580  symcode='[BCDT]'
7581  ;;
7582cygwin* | mingw* | pw32*)
7583  symcode='[ABCDGISTW]'
7584  ;;
7585hpux*) # Its linker distinguishes data from code symbols
7586  if test "$host_cpu" = ia64; then
7587    symcode='[ABCDEGRST]'
7588  fi
7589  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7590  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'"
7591  ;;
7592linux*)
7593  if test "$host_cpu" = ia64; then
7594    symcode='[ABCDGIRSTW]'
7595    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7596    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'"
7597  fi
7598  ;;
7599irix* | nonstopux*)
7600  symcode='[BCDEGRST]'
7601  ;;
7602osf*)
7603  symcode='[BCDEGQRST]'
7604  ;;
7605solaris*)
7606  symcode='[BDRT]'
7607  ;;
7608sco3.2v5*)
7609  symcode='[DT]'
7610  ;;
7611sysv4.2uw2*)
7612  symcode='[DT]'
7613  ;;
7614sysv5* | sco5v6* | unixware* | OpenUNIX*)
7615  symcode='[ABDT]'
7616  ;;
7617sysv4)
7618  symcode='[DFNSTU]'
7619  ;;
7620esac
7621
7622# Handle CRLF in mingw tool chain
7623opt_cr=
7624case $build_os in
7625mingw*)
7626  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7627  ;;
7628esac
7629
7630# If we're using GNU nm, then use its standard symbol codes.
7631case `$NM -V 2>&1` in
7632*GNU* | *'with BFD'*)
7633  symcode='[ABCDGIRSTW]' ;;
7634esac
7635
7636# Try without a prefix undercore, then with it.
7637for ac_symprfx in "" "_"; do
7638
7639  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7640  symxfrm="\\1 $ac_symprfx\\2 \\2"
7641
7642  # Write the raw and C identifiers.
7643  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7644
7645  # Check to see that the pipe works correctly.
7646  pipe_works=no
7647
7648  rm -f conftest*
7649  cat > conftest.$ac_ext <<EOF
7650#ifdef __cplusplus
7651extern "C" {
7652#endif
7653char nm_test_var;
7654void nm_test_func(){}
7655#ifdef __cplusplus
7656}
7657#endif
7658int main(){nm_test_var='a';nm_test_func();return(0);}
7659EOF
7660
7661  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7662  (eval $ac_compile) 2>&5
7663  ac_status=$?
7664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665  (exit $ac_status); }; then
7666    # Now try to grab the symbols.
7667    nlist=conftest.nm
7668    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7669  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7670  ac_status=$?
7671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672  (exit $ac_status); } && test -s "$nlist"; then
7673      # Try sorting and uniquifying the output.
7674      if sort "$nlist" | uniq > "$nlist"T; then
7675        mv -f "$nlist"T "$nlist"
7676      else
7677        rm -f "$nlist"T
7678      fi
7679
7680      # Make sure that we snagged all the symbols we need.
7681      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7682        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7683          cat <<EOF > conftest.$ac_ext
7684#ifdef __cplusplus
7685extern "C" {
7686#endif
7687
7688EOF
7689          # Now generate the symbol file.
7690          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7691
7692          cat <<EOF >> conftest.$ac_ext
7693#if defined (__STDC__) && __STDC__
7694# define lt_ptr_t void *
7695#else
7696# define lt_ptr_t char *
7697# define const
7698#endif
7699
7700/* The mapping between symbol names and symbols. */
7701const struct {
7702  const char *name;
7703  lt_ptr_t address;
7704}
7705lt_preloaded_symbols[] =
7706{
7707EOF
7708          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7709          cat <<\EOF >> conftest.$ac_ext
7710  {0, (lt_ptr_t) 0}
7711};
7712
7713#ifdef __cplusplus
7714}
7715#endif
7716EOF
7717          # Now try linking the two files.
7718          mv conftest.$ac_objext conftstm.$ac_objext
7719          lt_save_LIBS="$LIBS"
7720          lt_save_CFLAGS="$CFLAGS"
7721          LIBS="conftstm.$ac_objext"
7722          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7723          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724  (eval $ac_link) 2>&5
7725  ac_status=$?
7726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7728            pipe_works=yes
7729          fi
7730          LIBS="$lt_save_LIBS"
7731          CFLAGS="$lt_save_CFLAGS"
7732        else
7733          echo "cannot find nm_test_func in $nlist" >&5
7734        fi
7735      else
7736        echo "cannot find nm_test_var in $nlist" >&5
7737      fi
7738    else
7739      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7740    fi
7741  else
7742    echo "$progname: failed program was:" >&5
7743    cat conftest.$ac_ext >&5
7744  fi
7745  rm -f conftest* conftst*
7746
7747  # Do not use the global_symbol_pipe unless it works.
7748  if test "$pipe_works" = yes; then
7749    break
7750  else
7751    lt_cv_sys_global_symbol_pipe=
7752  fi
7753done
7754
7755fi
7756
7757if test -z "$lt_cv_sys_global_symbol_pipe"; then
7758  lt_cv_sys_global_symbol_to_cdecl=
7759fi
7760if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7761  echo "$as_me:$LINENO: result: failed" >&5
7762echo "${ECHO_T}failed" >&6
7763else
7764  echo "$as_me:$LINENO: result: ok" >&5
7765echo "${ECHO_T}ok" >&6
7766fi
7767
7768echo "$as_me:$LINENO: checking for objdir" >&5
7769echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7770if test "${lt_cv_objdir+set}" = set; then
7771  echo $ECHO_N "(cached) $ECHO_C" >&6
7772else
7773  rm -f .libs 2>/dev/null
7774mkdir .libs 2>/dev/null
7775if test -d .libs; then
7776  lt_cv_objdir=.libs
7777else
7778  # MS-DOS does not allow filenames that begin with a dot.
7779  lt_cv_objdir=_libs
7780fi
7781rmdir .libs 2>/dev/null
7782fi
7783echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7784echo "${ECHO_T}$lt_cv_objdir" >&6
7785objdir=$lt_cv_objdir
7786
7787
7788
7789
7790
7791case $host_os in
7792aix3*)
7793  # AIX sometimes has problems with the GCC collect2 program.  For some
7794  # reason, if we set the COLLECT_NAMES environment variable, the problems
7795  # vanish in a puff of smoke.
7796  if test "X${COLLECT_NAMES+set}" != Xset; then
7797    COLLECT_NAMES=
7798    export COLLECT_NAMES
7799  fi
7800  ;;
7801esac
7802
7803# Sed substitution that helps us do robust quoting.  It backslashifies
7804# metacharacters that are still active within double-quoted strings.
7805Xsed='sed -e 1s/^X//'
7806sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7807
7808# Same as above, but do not quote variable references.
7809double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7810
7811# Sed substitution to delay expansion of an escaped shell variable in a
7812# double_quote_subst'ed string.
7813delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7814
7815# Sed substitution to avoid accidental globbing in evaled expressions
7816no_glob_subst='s/\*/\\\*/g'
7817
7818# Constants:
7819rm="rm -f"
7820
7821# Global variables:
7822default_ofile=libtool
7823can_build_shared=yes
7824
7825# All known linkers require a `.a' archive for static linking (except MSVC,
7826# which needs '.lib').
7827libext=a
7828ltmain="$ac_aux_dir/ltmain.sh"
7829ofile="$default_ofile"
7830with_gnu_ld="$lt_cv_prog_gnu_ld"
7831
7832if test -n "$ac_tool_prefix"; then
7833  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7834set dummy ${ac_tool_prefix}ar; ac_word=$2
7835echo "$as_me:$LINENO: checking for $ac_word" >&5
7836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7837if test "${ac_cv_prog_AR+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  if test -n "$AR"; then
7841  ac_cv_prog_AR="$AR" # Let the user override the test.
7842else
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846  IFS=$as_save_IFS
7847  test -z "$as_dir" && as_dir=.
7848  for ac_exec_ext in '' $ac_executable_extensions; do
7849  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850    ac_cv_prog_AR="${ac_tool_prefix}ar"
7851    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852    break 2
7853  fi
7854done
7855done
7856
7857fi
7858fi
7859AR=$ac_cv_prog_AR
7860if test -n "$AR"; then
7861  echo "$as_me:$LINENO: result: $AR" >&5
7862echo "${ECHO_T}$AR" >&6
7863else
7864  echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6
7866fi
7867
7868fi
7869if test -z "$ac_cv_prog_AR"; then
7870  ac_ct_AR=$AR
7871  # Extract the first word of "ar", so it can be a program name with args.
7872set dummy ar; ac_word=$2
7873echo "$as_me:$LINENO: checking for $ac_word" >&5
7874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7876  echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878  if test -n "$ac_ct_AR"; then
7879  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7880else
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884  IFS=$as_save_IFS
7885  test -z "$as_dir" && as_dir=.
7886  for ac_exec_ext in '' $ac_executable_extensions; do
7887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888    ac_cv_prog_ac_ct_AR="ar"
7889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890    break 2
7891  fi
7892done
7893done
7894
7895  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7896fi
7897fi
7898ac_ct_AR=$ac_cv_prog_ac_ct_AR
7899if test -n "$ac_ct_AR"; then
7900  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7901echo "${ECHO_T}$ac_ct_AR" >&6
7902else
7903  echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
7905fi
7906
7907  AR=$ac_ct_AR
7908else
7909  AR="$ac_cv_prog_AR"
7910fi
7911
7912if test -n "$ac_tool_prefix"; then
7913  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7914set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7915echo "$as_me:$LINENO: checking for $ac_word" >&5
7916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7917if test "${ac_cv_prog_RANLIB+set}" = set; then
7918  echo $ECHO_N "(cached) $ECHO_C" >&6
7919else
7920  if test -n "$RANLIB"; then
7921  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7922else
7923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924for as_dir in $PATH
7925do
7926  IFS=$as_save_IFS
7927  test -z "$as_dir" && as_dir=.
7928  for ac_exec_ext in '' $ac_executable_extensions; do
7929  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7930    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7931    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7932    break 2
7933  fi
7934done
7935done
7936
7937fi
7938fi
7939RANLIB=$ac_cv_prog_RANLIB
7940if test -n "$RANLIB"; then
7941  echo "$as_me:$LINENO: result: $RANLIB" >&5
7942echo "${ECHO_T}$RANLIB" >&6
7943else
7944  echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
7946fi
7947
7948fi
7949if test -z "$ac_cv_prog_RANLIB"; then
7950  ac_ct_RANLIB=$RANLIB
7951  # Extract the first word of "ranlib", so it can be a program name with args.
7952set dummy ranlib; ac_word=$2
7953echo "$as_me:$LINENO: checking for $ac_word" >&5
7954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7955if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7956  echo $ECHO_N "(cached) $ECHO_C" >&6
7957else
7958  if test -n "$ac_ct_RANLIB"; then
7959  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7960else
7961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962for as_dir in $PATH
7963do
7964  IFS=$as_save_IFS
7965  test -z "$as_dir" && as_dir=.
7966  for ac_exec_ext in '' $ac_executable_extensions; do
7967  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7968    ac_cv_prog_ac_ct_RANLIB="ranlib"
7969    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970    break 2
7971  fi
7972done
7973done
7974
7975  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7976fi
7977fi
7978ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7979if test -n "$ac_ct_RANLIB"; then
7980  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7981echo "${ECHO_T}$ac_ct_RANLIB" >&6
7982else
7983  echo "$as_me:$LINENO: result: no" >&5
7984echo "${ECHO_T}no" >&6
7985fi
7986
7987  RANLIB=$ac_ct_RANLIB
7988else
7989  RANLIB="$ac_cv_prog_RANLIB"
7990fi
7991
7992if test -n "$ac_tool_prefix"; then
7993  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7994set dummy ${ac_tool_prefix}strip; ac_word=$2
7995echo "$as_me:$LINENO: checking for $ac_word" >&5
7996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7997if test "${ac_cv_prog_STRIP+set}" = set; then
7998  echo $ECHO_N "(cached) $ECHO_C" >&6
7999else
8000  if test -n "$STRIP"; then
8001  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8002else
8003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004for as_dir in $PATH
8005do
8006  IFS=$as_save_IFS
8007  test -z "$as_dir" && as_dir=.
8008  for ac_exec_ext in '' $ac_executable_extensions; do
8009  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8011    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8012    break 2
8013  fi
8014done
8015done
8016
8017fi
8018fi
8019STRIP=$ac_cv_prog_STRIP
8020if test -n "$STRIP"; then
8021  echo "$as_me:$LINENO: result: $STRIP" >&5
8022echo "${ECHO_T}$STRIP" >&6
8023else
8024  echo "$as_me:$LINENO: result: no" >&5
8025echo "${ECHO_T}no" >&6
8026fi
8027
8028fi
8029if test -z "$ac_cv_prog_STRIP"; then
8030  ac_ct_STRIP=$STRIP
8031  # Extract the first word of "strip", so it can be a program name with args.
8032set dummy strip; ac_word=$2
8033echo "$as_me:$LINENO: checking for $ac_word" >&5
8034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8035if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8036  echo $ECHO_N "(cached) $ECHO_C" >&6
8037else
8038  if test -n "$ac_ct_STRIP"; then
8039  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8040else
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044  IFS=$as_save_IFS
8045  test -z "$as_dir" && as_dir=.
8046  for ac_exec_ext in '' $ac_executable_extensions; do
8047  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048    ac_cv_prog_ac_ct_STRIP="strip"
8049    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8050    break 2
8051  fi
8052done
8053done
8054
8055  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8056fi
8057fi
8058ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8059if test -n "$ac_ct_STRIP"; then
8060  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8061echo "${ECHO_T}$ac_ct_STRIP" >&6
8062else
8063  echo "$as_me:$LINENO: result: no" >&5
8064echo "${ECHO_T}no" >&6
8065fi
8066
8067  STRIP=$ac_ct_STRIP
8068else
8069  STRIP="$ac_cv_prog_STRIP"
8070fi
8071
8072
8073old_CC="$CC"
8074old_CFLAGS="$CFLAGS"
8075
8076# Set sane defaults for various variables
8077test -z "$AR" && AR=ar
8078test -z "$AR_FLAGS" && AR_FLAGS=cru
8079test -z "$AS" && AS=as
8080test -z "$CC" && CC=cc
8081test -z "$LTCC" && LTCC=$CC
8082test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8083test -z "$DLLTOOL" && DLLTOOL=dlltool
8084test -z "$LD" && LD=ld
8085test -z "$LN_S" && LN_S="ln -s"
8086test -z "$MAGIC_CMD" && MAGIC_CMD=file
8087test -z "$NM" && NM=nm
8088test -z "$SED" && SED=sed
8089test -z "$OBJDUMP" && OBJDUMP=objdump
8090test -z "$RANLIB" && RANLIB=:
8091test -z "$STRIP" && STRIP=:
8092test -z "$ac_objext" && ac_objext=o
8093
8094# Determine commands to create old-style static archives.
8095old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8096old_postinstall_cmds='chmod 644 $oldlib'
8097old_postuninstall_cmds=
8098
8099if test -n "$RANLIB"; then
8100  case $host_os in
8101  openbsd*)
8102    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8103    ;;
8104  *)
8105    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8106    ;;
8107  esac
8108  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8109fi
8110
8111for cc_temp in $compiler""; do
8112  case $cc_temp in
8113    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8114    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8115    \-*) ;;
8116    *) break;;
8117  esac
8118done
8119cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8120
8121
8122# Only perform the check for file, if the check method requires it
8123case $deplibs_check_method in
8124file_magic*)
8125  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8126    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8127echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8128if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8129  echo $ECHO_N "(cached) $ECHO_C" >&6
8130else
8131  case $MAGIC_CMD in
8132[\\/*] |  ?:[\\/]*)
8133  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8134  ;;
8135*)
8136  lt_save_MAGIC_CMD="$MAGIC_CMD"
8137  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8138  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8139  for ac_dir in $ac_dummy; do
8140    IFS="$lt_save_ifs"
8141    test -z "$ac_dir" && ac_dir=.
8142    if test -f $ac_dir/${ac_tool_prefix}file; then
8143      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8144      if test -n "$file_magic_test_file"; then
8145        case $deplibs_check_method in
8146        "file_magic "*)
8147          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8148          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8149          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8150            $EGREP "$file_magic_regex" > /dev/null; then
8151            :
8152          else
8153            cat <<EOF 1>&2
8154
8155*** Warning: the command libtool uses to detect shared libraries,
8156*** $file_magic_cmd, produces output that libtool cannot recognize.
8157*** The result is that libtool may fail to recognize shared libraries
8158*** as such.  This will affect the creation of libtool libraries that
8159*** depend on shared libraries, but programs linked with such libtool
8160*** libraries will work regardless of this problem.  Nevertheless, you
8161*** may want to report the problem to your system manager and/or to
8162*** bug-libtool@gnu.org
8163
8164EOF
8165          fi ;;
8166        esac
8167      fi
8168      break
8169    fi
8170  done
8171  IFS="$lt_save_ifs"
8172  MAGIC_CMD="$lt_save_MAGIC_CMD"
8173  ;;
8174esac
8175fi
8176
8177MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8178if test -n "$MAGIC_CMD"; then
8179  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8180echo "${ECHO_T}$MAGIC_CMD" >&6
8181else
8182  echo "$as_me:$LINENO: result: no" >&5
8183echo "${ECHO_T}no" >&6
8184fi
8185
8186if test -z "$lt_cv_path_MAGIC_CMD"; then
8187  if test -n "$ac_tool_prefix"; then
8188    echo "$as_me:$LINENO: checking for file" >&5
8189echo $ECHO_N "checking for file... $ECHO_C" >&6
8190if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8191  echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193  case $MAGIC_CMD in
8194[\\/*] |  ?:[\\/]*)
8195  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8196  ;;
8197*)
8198  lt_save_MAGIC_CMD="$MAGIC_CMD"
8199  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8200  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8201  for ac_dir in $ac_dummy; do
8202    IFS="$lt_save_ifs"
8203    test -z "$ac_dir" && ac_dir=.
8204    if test -f $ac_dir/file; then
8205      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8206      if test -n "$file_magic_test_file"; then
8207        case $deplibs_check_method in
8208        "file_magic "*)
8209          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8210          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8211          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8212            $EGREP "$file_magic_regex" > /dev/null; then
8213            :
8214          else
8215            cat <<EOF 1>&2
8216
8217*** Warning: the command libtool uses to detect shared libraries,
8218*** $file_magic_cmd, produces output that libtool cannot recognize.
8219*** The result is that libtool may fail to recognize shared libraries
8220*** as such.  This will affect the creation of libtool libraries that
8221*** depend on shared libraries, but programs linked with such libtool
8222*** libraries will work regardless of this problem.  Nevertheless, you
8223*** may want to report the problem to your system manager and/or to
8224*** bug-libtool@gnu.org
8225
8226EOF
8227          fi ;;
8228        esac
8229      fi
8230      break
8231    fi
8232  done
8233  IFS="$lt_save_ifs"
8234  MAGIC_CMD="$lt_save_MAGIC_CMD"
8235  ;;
8236esac
8237fi
8238
8239MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8240if test -n "$MAGIC_CMD"; then
8241  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8242echo "${ECHO_T}$MAGIC_CMD" >&6
8243else
8244  echo "$as_me:$LINENO: result: no" >&5
8245echo "${ECHO_T}no" >&6
8246fi
8247
8248  else
8249    MAGIC_CMD=:
8250  fi
8251fi
8252
8253  fi
8254  ;;
8255esac
8256
8257enable_dlopen=no
8258enable_win32_dll=no
8259
8260# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8261if test "${enable_libtool_lock+set}" = set; then
8262  enableval="$enable_libtool_lock"
8263
8264fi;
8265test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8266
8267
8268# Check whether --with-pic or --without-pic was given.
8269if test "${with_pic+set}" = set; then
8270  withval="$with_pic"
8271  pic_mode="$withval"
8272else
8273  pic_mode=default
8274fi;
8275test -z "$pic_mode" && pic_mode=default
8276
8277# Use C for the default configuration in the libtool script
8278tagname=
8279lt_save_CC="$CC"
8280ac_ext=c
8281ac_cpp='$CPP $CPPFLAGS'
8282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8284ac_compiler_gnu=$ac_cv_c_compiler_gnu
8285
8286
8287# Source file extension for C test sources.
8288ac_ext=c
8289
8290# Object file extension for compiled C test sources.
8291objext=o
8292objext=$objext
8293
8294# Code to be used in simple compile tests
8295lt_simple_compile_test_code="int some_variable = 0;\n"
8296
8297# Code to be used in simple link tests
8298lt_simple_link_test_code='int main(){return(0);}\n'
8299
8300
8301# If no C compiler was specified, use CC.
8302LTCC=${LTCC-"$CC"}
8303
8304# If no C compiler flags were specified, use CFLAGS.
8305LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8306
8307# Allow CC to be a program name with arguments.
8308compiler=$CC
8309
8310
8311# save warnings/boilerplate of simple test code
8312ac_outfile=conftest.$ac_objext
8313printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8314eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8315_lt_compiler_boilerplate=`cat conftest.err`
8316$rm conftest*
8317
8318ac_outfile=conftest.$ac_objext
8319printf "$lt_simple_link_test_code" >conftest.$ac_ext
8320eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8321_lt_linker_boilerplate=`cat conftest.err`
8322$rm conftest*
8323
8324
8325## CAVEAT EMPTOR:
8326## There is no encapsulation within the following macros, do not change
8327## the running order or otherwise move them around unless you know exactly
8328## what you are doing...
8329
8330lt_prog_compiler_no_builtin_flag=
8331
8332if test "$GCC" = yes; then
8333  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8334
8335
8336echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8337echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8338if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8339  echo $ECHO_N "(cached) $ECHO_C" >&6
8340else
8341  lt_cv_prog_compiler_rtti_exceptions=no
8342  ac_outfile=conftest.$ac_objext
8343   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8344   lt_compiler_flag="-fno-rtti -fno-exceptions"
8345   # Insert the option either (1) after the last *FLAGS variable, or
8346   # (2) before a word containing "conftest.", or (3) at the end.
8347   # Note that $ac_compile itself does not contain backslashes and begins
8348   # with a dollar sign (not a hyphen), so the echo should work correctly.
8349   # The option is referenced via a variable to avoid confusing sed.
8350   lt_compile=`echo "$ac_compile" | $SED \
8351   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8352   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8353   -e 's:$: $lt_compiler_flag:'`
8354   (eval echo "\"\$as_me:8354: $lt_compile\"" >&5)
8355   (eval "$lt_compile" 2>conftest.err)
8356   ac_status=$?
8357   cat conftest.err >&5
8358   echo "$as_me:8358: \$? = $ac_status" >&5
8359   if (exit $ac_status) && test -s "$ac_outfile"; then
8360     # The compiler can only warn and ignore the option if not recognized
8361     # So say no if there are warnings other than the usual output.
8362     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8363     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8364     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8365       lt_cv_prog_compiler_rtti_exceptions=yes
8366     fi
8367   fi
8368   $rm conftest*
8369
8370fi
8371echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8372echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8373
8374if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8375    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8376else
8377    :
8378fi
8379
8380fi
8381
8382lt_prog_compiler_wl=
8383lt_prog_compiler_pic=
8384lt_prog_compiler_static=
8385
8386echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8387echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8388
8389  if test "$GCC" = yes; then
8390    lt_prog_compiler_wl='-Wl,'
8391    lt_prog_compiler_static='-static'
8392
8393    case $host_os in
8394      aix*)
8395      # All AIX code is PIC.
8396      if test "$host_cpu" = ia64; then
8397        # AIX 5 now supports IA64 processor
8398        lt_prog_compiler_static='-Bstatic'
8399      fi
8400      ;;
8401
8402    amigaos*)
8403      # FIXME: we need at least 68020 code to build shared libraries, but
8404      # adding the `-m68020' flag to GCC prevents building anything better,
8405      # like `-m68040'.
8406      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8407      ;;
8408
8409    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8410      # PIC is the default for these OSes.
8411      ;;
8412
8413    mingw* | pw32* | os2*)
8414      # This hack is so that the source file can tell whether it is being
8415      # built for inclusion in a dll (and should export symbols for example).
8416      lt_prog_compiler_pic='-DDLL_EXPORT'
8417      ;;
8418
8419    darwin* | rhapsody*)
8420      # PIC is the default on this platform
8421      # Common symbols not allowed in MH_DYLIB files
8422      lt_prog_compiler_pic='-fno-common'
8423      ;;
8424
8425    interix3*)
8426      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8427      # Instead, we relocate shared libraries at runtime.
8428      ;;
8429
8430    msdosdjgpp*)
8431      # Just because we use GCC doesn't mean we suddenly get shared libraries
8432      # on systems that don't support them.
8433      lt_prog_compiler_can_build_shared=no
8434      enable_shared=no
8435      ;;
8436
8437    sysv4*MP*)
8438      if test -d /usr/nec; then
8439        lt_prog_compiler_pic=-Kconform_pic
8440      fi
8441      ;;
8442
8443    hpux*)
8444      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8445      # not for PA HP-UX.
8446      case $host_cpu in
8447      hppa*64*|ia64*)
8448        # +Z the default
8449        ;;
8450      *)
8451        lt_prog_compiler_pic='-fPIC'
8452        ;;
8453      esac
8454      ;;
8455
8456    *)
8457      lt_prog_compiler_pic='-fPIC'
8458      ;;
8459    esac
8460  else
8461    # PORTME Check for flag to pass linker flags through the system compiler.
8462    case $host_os in
8463    aix*)
8464      lt_prog_compiler_wl='-Wl,'
8465      if test "$host_cpu" = ia64; then
8466        # AIX 5 now supports IA64 processor
8467        lt_prog_compiler_static='-Bstatic'
8468      else
8469        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8470      fi
8471      ;;
8472      darwin*)
8473        # PIC is the default on this platform
8474        # Common symbols not allowed in MH_DYLIB files
8475       case $cc_basename in
8476         xlc*)
8477         lt_prog_compiler_pic='-qnocommon'
8478         lt_prog_compiler_wl='-Wl,'
8479         ;;
8480       esac
8481       ;;
8482
8483    mingw* | pw32* | os2*)
8484      # This hack is so that the source file can tell whether it is being
8485      # built for inclusion in a dll (and should export symbols for example).
8486      lt_prog_compiler_pic='-DDLL_EXPORT'
8487      ;;
8488
8489    hpux9* | hpux10* | hpux11*)
8490      lt_prog_compiler_wl='-Wl,'
8491      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8492      # not for PA HP-UX.
8493      case $host_cpu in
8494      hppa*64*|ia64*)
8495        # +Z the default
8496        ;;
8497      *)
8498        lt_prog_compiler_pic='+Z'
8499        ;;
8500      esac
8501      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8502      lt_prog_compiler_static='${wl}-a ${wl}archive'
8503      ;;
8504
8505    irix5* | irix6* | nonstopux*)
8506      lt_prog_compiler_wl='-Wl,'
8507      # PIC (with -KPIC) is the default.
8508      lt_prog_compiler_static='-non_shared'
8509      ;;
8510
8511    newsos6)
8512      lt_prog_compiler_pic='-KPIC'
8513      lt_prog_compiler_static='-Bstatic'
8514      ;;
8515
8516    linux*)
8517      case $cc_basename in
8518      icc* | ecc*)
8519        lt_prog_compiler_wl='-Wl,'
8520        lt_prog_compiler_pic='-KPIC'
8521        lt_prog_compiler_static='-static'
8522        ;;
8523      pgcc* | pgf77* | pgf90* | pgf95*)
8524        # Portland Group compilers (*not* the Pentium gcc compiler,
8525        # which looks to be a dead project)
8526        lt_prog_compiler_wl='-Wl,'
8527        lt_prog_compiler_pic='-fpic'
8528        lt_prog_compiler_static='-Bstatic'
8529        ;;
8530      ccc*)
8531        lt_prog_compiler_wl='-Wl,'
8532        # All Alpha code is PIC.
8533        lt_prog_compiler_static='-non_shared'
8534        ;;
8535      esac
8536      ;;
8537
8538    osf3* | osf4* | osf5*)
8539      lt_prog_compiler_wl='-Wl,'
8540      # All OSF/1 code is PIC.
8541      lt_prog_compiler_static='-non_shared'
8542      ;;
8543
8544    solaris*)
8545      lt_prog_compiler_pic='-KPIC'
8546      lt_prog_compiler_static='-Bstatic'
8547      case $cc_basename in
8548      f77* | f90* | f95*)
8549        lt_prog_compiler_wl='-Qoption ld ';;
8550      *)
8551        lt_prog_compiler_wl='-Wl,';;
8552      esac
8553      ;;
8554
8555    sunos4*)
8556      lt_prog_compiler_wl='-Qoption ld '
8557      lt_prog_compiler_pic='-PIC'
8558      lt_prog_compiler_static='-Bstatic'
8559      ;;
8560
8561    sysv4 | sysv4.2uw2* | sysv4.3*)
8562      lt_prog_compiler_wl='-Wl,'
8563      lt_prog_compiler_pic='-KPIC'
8564      lt_prog_compiler_static='-Bstatic'
8565      ;;
8566
8567    sysv4*MP*)
8568      if test -d /usr/nec ;then
8569        lt_prog_compiler_pic='-Kconform_pic'
8570        lt_prog_compiler_static='-Bstatic'
8571      fi
8572      ;;
8573
8574    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8575      lt_prog_compiler_wl='-Wl,'
8576      lt_prog_compiler_pic='-KPIC'
8577      lt_prog_compiler_static='-Bstatic'
8578      ;;
8579
8580    unicos*)
8581      lt_prog_compiler_wl='-Wl,'
8582      lt_prog_compiler_can_build_shared=no
8583      ;;
8584
8585    uts4*)
8586      lt_prog_compiler_pic='-pic'
8587      lt_prog_compiler_static='-Bstatic'
8588      ;;
8589
8590    *)
8591      lt_prog_compiler_can_build_shared=no
8592      ;;
8593    esac
8594  fi
8595
8596echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8597echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8598
8599#
8600# Check to make sure the PIC flag actually works.
8601#
8602if test -n "$lt_prog_compiler_pic"; then
8603
8604echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8605echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8606if test "${lt_prog_compiler_pic_works+set}" = set; then
8607  echo $ECHO_N "(cached) $ECHO_C" >&6
8608else
8609  lt_prog_compiler_pic_works=no
8610  ac_outfile=conftest.$ac_objext
8611   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8612   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8613   # Insert the option either (1) after the last *FLAGS variable, or
8614   # (2) before a word containing "conftest.", or (3) at the end.
8615   # Note that $ac_compile itself does not contain backslashes and begins
8616   # with a dollar sign (not a hyphen), so the echo should work correctly.
8617   # The option is referenced via a variable to avoid confusing sed.
8618   lt_compile=`echo "$ac_compile" | $SED \
8619   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621   -e 's:$: $lt_compiler_flag:'`
8622   (eval echo "\"\$as_me:8622: $lt_compile\"" >&5)
8623   (eval "$lt_compile" 2>conftest.err)
8624   ac_status=$?
8625   cat conftest.err >&5
8626   echo "$as_me:8626: \$? = $ac_status" >&5
8627   if (exit $ac_status) && test -s "$ac_outfile"; then
8628     # The compiler can only warn and ignore the option if not recognized
8629     # So say no if there are warnings other than the usual output.
8630     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8631     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8632     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8633       lt_prog_compiler_pic_works=yes
8634     fi
8635   fi
8636   $rm conftest*
8637
8638fi
8639echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8640echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8641
8642if test x"$lt_prog_compiler_pic_works" = xyes; then
8643    case $lt_prog_compiler_pic in
8644     "" | " "*) ;;
8645     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8646     esac
8647else
8648    lt_prog_compiler_pic=
8649     lt_prog_compiler_can_build_shared=no
8650fi
8651
8652fi
8653case $host_os in
8654  # For platforms which do not support PIC, -DPIC is meaningless:
8655  *djgpp*)
8656    lt_prog_compiler_pic=
8657    ;;
8658  *)
8659    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8660    ;;
8661esac
8662
8663#
8664# Check to make sure the static flag actually works.
8665#
8666wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8667echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8668echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8669if test "${lt_prog_compiler_static_works+set}" = set; then
8670  echo $ECHO_N "(cached) $ECHO_C" >&6
8671else
8672  lt_prog_compiler_static_works=no
8673   save_LDFLAGS="$LDFLAGS"
8674   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8675   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8676   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8677     # The linker can only warn and ignore the option if not recognized
8678     # So say no if there are warnings
8679     if test -s conftest.err; then
8680       # Append any errors to the config.log.
8681       cat conftest.err 1>&5
8682       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8683       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8684       if diff conftest.exp conftest.er2 >/dev/null; then
8685         lt_prog_compiler_static_works=yes
8686       fi
8687     else
8688       lt_prog_compiler_static_works=yes
8689     fi
8690   fi
8691   $rm conftest*
8692   LDFLAGS="$save_LDFLAGS"
8693
8694fi
8695echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8696echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8697
8698if test x"$lt_prog_compiler_static_works" = xyes; then
8699    :
8700else
8701    lt_prog_compiler_static=
8702fi
8703
8704
8705echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8706echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8707if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8708  echo $ECHO_N "(cached) $ECHO_C" >&6
8709else
8710  lt_cv_prog_compiler_c_o=no
8711   $rm -r conftest 2>/dev/null
8712   mkdir conftest
8713   cd conftest
8714   mkdir out
8715   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8716
8717   lt_compiler_flag="-o out/conftest2.$ac_objext"
8718   # Insert the option either (1) after the last *FLAGS variable, or
8719   # (2) before a word containing "conftest.", or (3) at the end.
8720   # Note that $ac_compile itself does not contain backslashes and begins
8721   # with a dollar sign (not a hyphen), so the echo should work correctly.
8722   lt_compile=`echo "$ac_compile" | $SED \
8723   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8724   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8725   -e 's:$: $lt_compiler_flag:'`
8726   (eval echo "\"\$as_me:8726: $lt_compile\"" >&5)
8727   (eval "$lt_compile" 2>out/conftest.err)
8728   ac_status=$?
8729   cat out/conftest.err >&5
8730   echo "$as_me:8730: \$? = $ac_status" >&5
8731   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8732   then
8733     # The compiler can only warn and ignore the option if not recognized
8734     # So say no if there are warnings
8735     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8736     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8737     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8738       lt_cv_prog_compiler_c_o=yes
8739     fi
8740   fi
8741   chmod u+w . 2>&5
8742   $rm conftest*
8743   # SGI C++ compiler will create directory out/ii_files/ for
8744   # template instantiation
8745   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8746   $rm out/* && rmdir out
8747   cd ..
8748   rmdir conftest
8749   $rm conftest*
8750
8751fi
8752echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8753echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8754
8755
8756hard_links="nottested"
8757if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8758  # do not overwrite the value of need_locks provided by the user
8759  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8760echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8761  hard_links=yes
8762  $rm conftest*
8763  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8764  touch conftest.a
8765  ln conftest.a conftest.b 2>&5 || hard_links=no
8766  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8767  echo "$as_me:$LINENO: result: $hard_links" >&5
8768echo "${ECHO_T}$hard_links" >&6
8769  if test "$hard_links" = no; then
8770    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8771echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8772    need_locks=warn
8773  fi
8774else
8775  need_locks=no
8776fi
8777
8778echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8779echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8780
8781  runpath_var=
8782  allow_undefined_flag=
8783  enable_shared_with_static_runtimes=no
8784  archive_cmds=
8785  archive_expsym_cmds=
8786  old_archive_From_new_cmds=
8787  old_archive_from_expsyms_cmds=
8788  export_dynamic_flag_spec=
8789  whole_archive_flag_spec=
8790  thread_safe_flag_spec=
8791  hardcode_libdir_flag_spec=
8792  hardcode_libdir_flag_spec_ld=
8793  hardcode_libdir_separator=
8794  hardcode_direct=no
8795  hardcode_minus_L=no
8796  hardcode_shlibpath_var=unsupported
8797  link_all_deplibs=unknown
8798  hardcode_automatic=no
8799  module_cmds=
8800  module_expsym_cmds=
8801  always_export_symbols=no
8802  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8803  # include_expsyms should be a list of space-separated symbols to be *always*
8804  # included in the symbol list
8805  include_expsyms=
8806  # exclude_expsyms can be an extended regexp of symbols to exclude
8807  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8808  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8809  # as well as any symbol that contains `d'.
8810  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8811  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8812  # platforms (ab)use it in PIC code, but their linkers get confused if
8813  # the symbol is explicitly referenced.  Since portable code cannot
8814  # rely on this symbol name, it's probably fine to never include it in
8815  # preloaded symbol tables.
8816  extract_expsyms_cmds=
8817  # Just being paranoid about ensuring that cc_basename is set.
8818  for cc_temp in $compiler""; do
8819  case $cc_temp in
8820    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8821    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8822    \-*) ;;
8823    *) break;;
8824  esac
8825done
8826cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8827
8828  case $host_os in
8829  cygwin* | mingw* | pw32*)
8830    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8831    # When not using gcc, we currently assume that we are using
8832    # Microsoft Visual C++.
8833    if test "$GCC" != yes; then
8834      with_gnu_ld=no
8835    fi
8836    ;;
8837  interix*)
8838    # we just hope/assume this is gcc and not c89 (= MSVC++)
8839    with_gnu_ld=yes
8840    ;;
8841  openbsd*)
8842    with_gnu_ld=no
8843    ;;
8844  esac
8845
8846  ld_shlibs=yes
8847  if test "$with_gnu_ld" = yes; then
8848    # If archive_cmds runs LD, not CC, wlarc should be empty
8849    wlarc='${wl}'
8850
8851    # Set some defaults for GNU ld with shared library support. These
8852    # are reset later if shared libraries are not supported. Putting them
8853    # here allows them to be overridden if necessary.
8854    runpath_var=LD_RUN_PATH
8855    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8856    export_dynamic_flag_spec='${wl}--export-dynamic'
8857    # ancient GNU ld didn't support --whole-archive et. al.
8858    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8859        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8860      else
8861        whole_archive_flag_spec=
8862    fi
8863    supports_anon_versioning=no
8864    case `$LD -v 2>/dev/null` in
8865      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8866      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8867      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8868      *\ 2.11.*) ;; # other 2.11 versions
8869      *) supports_anon_versioning=yes ;;
8870    esac
8871
8872    # See if GNU ld supports shared libraries.
8873    case $host_os in
8874    aix3* | aix4* | aix5*)
8875      # On AIX/PPC, the GNU linker is very broken
8876      if test "$host_cpu" != ia64; then
8877        ld_shlibs=no
8878        cat <<EOF 1>&2
8879
8880*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8881*** to be unable to reliably create shared libraries on AIX.
8882*** Therefore, libtool is disabling shared libraries support.  If you
8883*** really care for shared libraries, you may want to modify your PATH
8884*** so that a non-GNU linker is found, and then restart.
8885
8886EOF
8887      fi
8888      ;;
8889
8890    amigaos*)
8891      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)'
8892      hardcode_libdir_flag_spec='-L$libdir'
8893      hardcode_minus_L=yes
8894
8895      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8896      # that the semantics of dynamic libraries on AmigaOS, at least up
8897      # to version 4, is to share data among multiple programs linked
8898      # with the same dynamic library.  Since this doesn't match the
8899      # behavior of shared libraries on other platforms, we can't use
8900      # them.
8901      ld_shlibs=no
8902      ;;
8903
8904    beos*)
8905      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8906        allow_undefined_flag=unsupported
8907        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8908        # support --undefined.  This deserves some investigation.  FIXME
8909        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8910      else
8911        ld_shlibs=no
8912      fi
8913      ;;
8914
8915    cygwin* | mingw* | pw32*)
8916      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8917      # as there is no search path for DLLs.
8918      hardcode_libdir_flag_spec='-L$libdir'
8919      allow_undefined_flag=unsupported
8920      always_export_symbols=no
8921      enable_shared_with_static_runtimes=yes
8922      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8923
8924      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8925        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8926        # If the export-symbols file already is a .def file (1st line
8927        # is EXPORTS), use it as is; otherwise, prepend...
8928        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8929          cp $export_symbols $output_objdir/$soname.def;
8930        else
8931          echo EXPORTS > $output_objdir/$soname.def;
8932          cat $export_symbols >> $output_objdir/$soname.def;
8933        fi~
8934        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8935      else
8936        ld_shlibs=no
8937      fi
8938      ;;
8939
8940    interix3*)
8941      hardcode_direct=no
8942      hardcode_shlibpath_var=no
8943      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8944      export_dynamic_flag_spec='${wl}-E'
8945      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8946      # Instead, shared libraries are loaded at an image base (0x10000000 by
8947      # default) and relocated if they conflict, which is a slow very memory
8948      # consuming and fragmenting process.  To avoid this, we pick a random,
8949      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8950      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8951      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8952      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'
8953      ;;
8954
8955    linux*)
8956      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8957        tmp_addflag=
8958        case $cc_basename,$host_cpu in
8959        pgcc*)                          # Portland Group C compiler
8960          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'
8961          tmp_addflag=' $pic_flag'
8962          ;;
8963        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8964          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'
8965          tmp_addflag=' $pic_flag -Mnomain' ;;
8966        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8967          tmp_addflag=' -i_dynamic' ;;
8968        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8969          tmp_addflag=' -i_dynamic -nofor_main' ;;
8970        ifc* | ifort*)                  # Intel Fortran compiler
8971          tmp_addflag=' -nofor_main' ;;
8972        esac
8973        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8974
8975        if test $supports_anon_versioning = yes; then
8976          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8977  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8978  $echo "local: *; };" >> $output_objdir/$libname.ver~
8979          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8980        fi
8981      else
8982        ld_shlibs=no
8983      fi
8984      ;;
8985
8986    netbsd*)
8987      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8988        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8989        wlarc=
8990      else
8991        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8992        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8993      fi
8994      ;;
8995
8996    solaris*)
8997      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8998        ld_shlibs=no
8999        cat <<EOF 1>&2
9000
9001*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9002*** create shared libraries on Solaris systems.  Therefore, libtool
9003*** is disabling shared libraries support.  We urge you to upgrade GNU
9004*** binutils to release 2.9.1 or newer.  Another option is to modify
9005*** your PATH or compiler configuration so that the native linker is
9006*** used, and then restart.
9007
9008EOF
9009      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9010        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9011        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9012      else
9013        ld_shlibs=no
9014      fi
9015      ;;
9016
9017    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9018      case `$LD -v 2>&1` in
9019        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9020        ld_shlibs=no
9021        cat <<_LT_EOF 1>&2
9022
9023*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9024*** reliably create shared libraries on SCO systems.  Therefore, libtool
9025*** is disabling shared libraries support.  We urge you to upgrade GNU
9026*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9027*** your PATH or compiler configuration so that the native linker is
9028*** used, and then restart.
9029
9030_LT_EOF
9031        ;;
9032        *)
9033          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9034            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9035            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9036            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9037          else
9038            ld_shlibs=no
9039          fi
9040        ;;
9041      esac
9042      ;;
9043
9044    sunos4*)
9045      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9046      wlarc=
9047      hardcode_direct=yes
9048      hardcode_shlibpath_var=no
9049      ;;
9050
9051    *)
9052      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9053        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9054        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9055      else
9056        ld_shlibs=no
9057      fi
9058      ;;
9059    esac
9060
9061    if test "$ld_shlibs" = no; then
9062      runpath_var=
9063      hardcode_libdir_flag_spec=
9064      export_dynamic_flag_spec=
9065      whole_archive_flag_spec=
9066    fi
9067  else
9068    # PORTME fill in a description of your system's linker (not GNU ld)
9069    case $host_os in
9070    aix3*)
9071      allow_undefined_flag=unsupported
9072      always_export_symbols=yes
9073      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'
9074      # Note: this linker hardcodes the directories in LIBPATH if there
9075      # are no directories specified by -L.
9076      hardcode_minus_L=yes
9077      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9078        # Neither direct hardcoding nor static linking is supported with a
9079        # broken collect2.
9080        hardcode_direct=unsupported
9081      fi
9082      ;;
9083
9084    aix4* | aix5*)
9085      if test "$host_cpu" = ia64; then
9086        # On IA64, the linker does run time linking by default, so we don't
9087        # have to do anything special.
9088        aix_use_runtimelinking=no
9089        exp_sym_flag='-Bexport'
9090        no_entry_flag=""
9091      else
9092        # If we're using GNU nm, then we don't want the "-C" option.
9093        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9094        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9095          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'
9096        else
9097          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'
9098        fi
9099        aix_use_runtimelinking=no
9100
9101        # Test if we are trying to use run time linking or normal
9102        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9103        # need to do runtime linking.
9104        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9105          for ld_flag in $LDFLAGS; do
9106          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9107            aix_use_runtimelinking=yes
9108            break
9109          fi
9110          done
9111          ;;
9112        esac
9113
9114        exp_sym_flag='-bexport'
9115        no_entry_flag='-bnoentry'
9116      fi
9117
9118      # When large executables or shared objects are built, AIX ld can
9119      # have problems creating the table of contents.  If linking a library
9120      # or program results in "error TOC overflow" add -mminimal-toc to
9121      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9122      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9123
9124      archive_cmds=''
9125      hardcode_direct=yes
9126      hardcode_libdir_separator=':'
9127      link_all_deplibs=yes
9128
9129      if test "$GCC" = yes; then
9130        case $host_os in aix4.[012]|aix4.[012].*)
9131        # We only want to do this on AIX 4.2 and lower, the check
9132        # below for broken collect2 doesn't work under 4.3+
9133          collect2name=`${CC} -print-prog-name=collect2`
9134          if test -f "$collect2name" && \
9135           strings "$collect2name" | grep resolve_lib_name >/dev/null
9136          then
9137          # We have reworked collect2
9138          hardcode_direct=yes
9139          else
9140          # We have old collect2
9141          hardcode_direct=unsupported
9142          # It fails to find uninstalled libraries when the uninstalled
9143          # path is not listed in the libpath.  Setting hardcode_minus_L
9144          # to unsupported forces relinking
9145          hardcode_minus_L=yes
9146          hardcode_libdir_flag_spec='-L$libdir'
9147          hardcode_libdir_separator=
9148          fi
9149          ;;
9150        esac
9151        shared_flag='-shared'
9152        if test "$aix_use_runtimelinking" = yes; then
9153          shared_flag="$shared_flag "'${wl}-G'
9154        fi
9155      else
9156        # not using gcc
9157        if test "$host_cpu" = ia64; then
9158        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9159        # chokes on -Wl,-G. The following line is correct:
9160          shared_flag='-G'
9161        else
9162          if test "$aix_use_runtimelinking" = yes; then
9163            shared_flag='${wl}-G'
9164          else
9165            shared_flag='${wl}-bM:SRE'
9166          fi
9167        fi
9168      fi
9169
9170      # It seems that -bexpall does not export symbols beginning with
9171      # underscore (_), so it is better to generate a list of symbols to export.
9172      always_export_symbols=yes
9173      if test "$aix_use_runtimelinking" = yes; then
9174        # Warning - without using the other runtime loading flags (-brtl),
9175        # -berok will link without error, but may produce a broken library.
9176        allow_undefined_flag='-berok'
9177       # Determine the default libpath from the value encoded in an empty executable.
9178       cat >conftest.$ac_ext <<_ACEOF
9179/* confdefs.h.  */
9180_ACEOF
9181cat confdefs.h >>conftest.$ac_ext
9182cat >>conftest.$ac_ext <<_ACEOF
9183/* end confdefs.h.  */
9184
9185int
9186main ()
9187{
9188
9189  ;
9190  return 0;
9191}
9192_ACEOF
9193rm -f conftest.$ac_objext conftest$ac_exeext
9194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195  (eval $ac_link) 2>conftest.er1
9196  ac_status=$?
9197  grep -v '^ *+' conftest.er1 >conftest.err
9198  rm -f conftest.er1
9199  cat conftest.err >&5
9200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201  (exit $ac_status); } &&
9202         { ac_try='test -z "$ac_c_werror_flag"
9203                         || test ! -s conftest.err'
9204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205  (eval $ac_try) 2>&5
9206  ac_status=$?
9207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208  (exit $ac_status); }; } &&
9209         { ac_try='test -s conftest$ac_exeext'
9210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211  (eval $ac_try) 2>&5
9212  ac_status=$?
9213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214  (exit $ac_status); }; }; then
9215
9216aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9217}'`
9218# Check for a 64-bit object if we didn't find anything.
9219if 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; }
9220}'`; fi
9221else
9222  echo "$as_me: failed program was:" >&5
9223sed 's/^/| /' conftest.$ac_ext >&5
9224
9225fi
9226rm -f conftest.err conftest.$ac_objext \
9227      conftest$ac_exeext conftest.$ac_ext
9228if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9229
9230       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9231        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"
9232       else
9233        if test "$host_cpu" = ia64; then
9234          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9235          allow_undefined_flag="-z nodefs"
9236          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"
9237        else
9238         # Determine the default libpath from the value encoded in an empty executable.
9239         cat >conftest.$ac_ext <<_ACEOF
9240/* confdefs.h.  */
9241_ACEOF
9242cat confdefs.h >>conftest.$ac_ext
9243cat >>conftest.$ac_ext <<_ACEOF
9244/* end confdefs.h.  */
9245
9246int
9247main ()
9248{
9249
9250  ;
9251  return 0;
9252}
9253_ACEOF
9254rm -f conftest.$ac_objext conftest$ac_exeext
9255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256  (eval $ac_link) 2>conftest.er1
9257  ac_status=$?
9258  grep -v '^ *+' conftest.er1 >conftest.err
9259  rm -f conftest.er1
9260  cat conftest.err >&5
9261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262  (exit $ac_status); } &&
9263         { ac_try='test -z "$ac_c_werror_flag"
9264                         || test ! -s conftest.err'
9265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266  (eval $ac_try) 2>&5
9267  ac_status=$?
9268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269  (exit $ac_status); }; } &&
9270         { ac_try='test -s conftest$ac_exeext'
9271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272  (eval $ac_try) 2>&5
9273  ac_status=$?
9274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275  (exit $ac_status); }; }; then
9276
9277aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9278}'`
9279# Check for a 64-bit object if we didn't find anything.
9280if 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; }
9281}'`; fi
9282else
9283  echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286fi
9287rm -f conftest.err conftest.$ac_objext \
9288      conftest$ac_exeext conftest.$ac_ext
9289if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9290
9291         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9292          # Warning - without using the other run time loading flags,
9293          # -berok will link without error, but may produce a broken library.
9294          no_undefined_flag=' ${wl}-bernotok'
9295          allow_undefined_flag=' ${wl}-berok'
9296          # Exported symbols can be pulled into shared objects from archives
9297          whole_archive_flag_spec='$convenience'
9298          archive_cmds_need_lc=yes
9299          # This is similar to how AIX traditionally builds its shared libraries.
9300          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'
9301        fi
9302      fi
9303      ;;
9304
9305    amigaos*)
9306      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)'
9307      hardcode_libdir_flag_spec='-L$libdir'
9308      hardcode_minus_L=yes
9309      # see comment about different semantics on the GNU ld section
9310      ld_shlibs=no
9311      ;;
9312
9313    bsdi[45]*)
9314      export_dynamic_flag_spec=-rdynamic
9315      ;;
9316
9317    cygwin* | mingw* | pw32*)
9318      # When not using gcc, we currently assume that we are using
9319      # Microsoft Visual C++.
9320      # hardcode_libdir_flag_spec is actually meaningless, as there is
9321      # no search path for DLLs.
9322      hardcode_libdir_flag_spec=' '
9323      allow_undefined_flag=unsupported
9324      # Tell ltmain to make .lib files, not .a files.
9325      libext=lib
9326      # Tell ltmain to make .dll files, not .so files.
9327      shrext_cmds=".dll"
9328      # FIXME: Setting linknames here is a bad hack.
9329      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9330      # The linker will automatically build a .lib file if we build a DLL.
9331      old_archive_From_new_cmds='true'
9332      # FIXME: Should let the user specify the lib program.
9333      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9334      fix_srcfile_path='`cygpath -w "$srcfile"`'
9335      enable_shared_with_static_runtimes=yes
9336      ;;
9337
9338    darwin* | rhapsody*)
9339      case $host_os in
9340        rhapsody* | darwin1.[012])
9341         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9342         ;;
9343       *) # Darwin 1.3 on
9344         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9345           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9346         else
9347           case ${MACOSX_DEPLOYMENT_TARGET} in
9348             10.[012])
9349               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9350               ;;
9351             10.*)
9352               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9353               ;;
9354           esac
9355         fi
9356         ;;
9357      esac
9358      archive_cmds_need_lc=no
9359      hardcode_direct=no
9360      hardcode_automatic=yes
9361      hardcode_shlibpath_var=unsupported
9362      whole_archive_flag_spec=''
9363      link_all_deplibs=yes
9364    if test "$GCC" = yes ; then
9365        output_verbose_link_cmd='echo'
9366        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9367      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9368      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9369      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}'
9370      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}'
9371    else
9372      case $cc_basename in
9373        xlc*)
9374         output_verbose_link_cmd='echo'
9375         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9376         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9377          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9378         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}'
9379          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}'
9380          ;;
9381       *)
9382         ld_shlibs=no
9383          ;;
9384      esac
9385    fi
9386      ;;
9387
9388    dgux*)
9389      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9390      hardcode_libdir_flag_spec='-L$libdir'
9391      hardcode_shlibpath_var=no
9392      ;;
9393
9394    freebsd1*)
9395      ld_shlibs=no
9396      ;;
9397
9398    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9399    # support.  Future versions do this automatically, but an explicit c++rt0.o
9400    # does not break anything, and helps significantly (at the cost of a little
9401    # extra space).
9402    freebsd2.2*)
9403      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9404      hardcode_libdir_flag_spec='-R$libdir'
9405      hardcode_direct=yes
9406      hardcode_shlibpath_var=no
9407      ;;
9408
9409    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9410    freebsd2*)
9411      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9412      hardcode_direct=yes
9413      hardcode_minus_L=yes
9414      hardcode_shlibpath_var=no
9415      ;;
9416
9417    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9418    freebsd* | kfreebsd*-gnu | dragonfly*)
9419      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9420      hardcode_libdir_flag_spec='-R$libdir'
9421      hardcode_direct=yes
9422      hardcode_shlibpath_var=no
9423      ;;
9424
9425    hpux9*)
9426      if test "$GCC" = yes; then
9427        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'
9428      else
9429        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'
9430      fi
9431      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9432      hardcode_libdir_separator=:
9433      hardcode_direct=yes
9434
9435      # hardcode_minus_L: Not really in the search PATH,
9436      # but as the default location of the library.
9437      hardcode_minus_L=yes
9438      export_dynamic_flag_spec='${wl}-E'
9439      ;;
9440
9441    hpux10*)
9442      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9443        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9444      else
9445        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9446      fi
9447      if test "$with_gnu_ld" = no; then
9448        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9449        hardcode_libdir_separator=:
9450
9451        hardcode_direct=yes
9452        export_dynamic_flag_spec='${wl}-E'
9453
9454        # hardcode_minus_L: Not really in the search PATH,
9455        # but as the default location of the library.
9456        hardcode_minus_L=yes
9457      fi
9458      ;;
9459
9460    hpux11*)
9461      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9462        case $host_cpu in
9463        hppa*64*)
9464          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9465          ;;
9466        ia64*)
9467          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9468          ;;
9469        *)
9470          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9471          ;;
9472        esac
9473      else
9474        case $host_cpu in
9475        hppa*64*)
9476          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9477          ;;
9478        ia64*)
9479          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9480          ;;
9481        *)
9482          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9483          ;;
9484        esac
9485      fi
9486      if test "$with_gnu_ld" = no; then
9487        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9488        hardcode_libdir_separator=:
9489
9490        case $host_cpu in
9491        hppa*64*|ia64*)
9492          hardcode_libdir_flag_spec_ld='+b $libdir'
9493          hardcode_direct=no
9494          hardcode_shlibpath_var=no
9495          ;;
9496        *)
9497          hardcode_direct=yes
9498          export_dynamic_flag_spec='${wl}-E'
9499
9500          # hardcode_minus_L: Not really in the search PATH,
9501          # but as the default location of the library.
9502          hardcode_minus_L=yes
9503          ;;
9504        esac
9505      fi
9506      ;;
9507
9508    irix5* | irix6* | nonstopux*)
9509      if test "$GCC" = yes; then
9510        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'
9511      else
9512        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'
9513        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9514      fi
9515      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9516      hardcode_libdir_separator=:
9517      link_all_deplibs=yes
9518      ;;
9519
9520    netbsd*)
9521      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9522        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9523      else
9524        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9525      fi
9526      hardcode_libdir_flag_spec='-R$libdir'
9527      hardcode_direct=yes
9528      hardcode_shlibpath_var=no
9529      ;;
9530
9531    newsos6)
9532      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533      hardcode_direct=yes
9534      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9535      hardcode_libdir_separator=:
9536      hardcode_shlibpath_var=no
9537      ;;
9538
9539    openbsd*)
9540      hardcode_direct=yes
9541      hardcode_shlibpath_var=no
9542      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9543        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9544        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9545        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9546        export_dynamic_flag_spec='${wl}-E'
9547      else
9548       case $host_os in
9549         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9550           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9551           hardcode_libdir_flag_spec='-R$libdir'
9552           ;;
9553         *)
9554           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9555           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9556           ;;
9557       esac
9558      fi
9559      ;;
9560
9561    os2*)
9562      hardcode_libdir_flag_spec='-L$libdir'
9563      hardcode_minus_L=yes
9564      allow_undefined_flag=unsupported
9565      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'
9566      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9567      ;;
9568
9569    osf3*)
9570      if test "$GCC" = yes; then
9571        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9572        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'
9573      else
9574        allow_undefined_flag=' -expect_unresolved \*'
9575        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'
9576      fi
9577      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9578      hardcode_libdir_separator=:
9579      ;;
9580
9581    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9582      if test "$GCC" = yes; then
9583        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9584        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'
9585        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9586      else
9587        allow_undefined_flag=' -expect_unresolved \*'
9588        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'
9589        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9590        $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'
9591
9592        # Both c and cxx compiler support -rpath directly
9593        hardcode_libdir_flag_spec='-rpath $libdir'
9594      fi
9595      hardcode_libdir_separator=:
9596      ;;
9597
9598    solaris*)
9599      no_undefined_flag=' -z text'
9600      if test "$GCC" = yes; then
9601        wlarc='${wl}'
9602        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9603        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9604          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9605      else
9606        wlarc=''
9607        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9608        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9609        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9610      fi
9611      hardcode_libdir_flag_spec='-R$libdir'
9612      hardcode_shlibpath_var=no
9613      case $host_os in
9614      solaris2.[0-5] | solaris2.[0-5].*) ;;
9615      *)
9616        # The compiler driver will combine linker options so we
9617        # cannot just pass the convience library names through
9618        # without $wl, iff we do not link with $LD.
9619        # Luckily, gcc supports the same syntax we need for Sun Studio.
9620        # Supported since Solaris 2.6 (maybe 2.5.1?)
9621        case $wlarc in
9622        '')
9623          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9624        *)
9625          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' ;;
9626        esac ;;
9627      esac
9628      link_all_deplibs=yes
9629      ;;
9630
9631    sunos4*)
9632      if test "x$host_vendor" = xsequent; then
9633        # Use $CC to link under sequent, because it throws in some extra .o
9634        # files that make .init and .fini sections work.
9635        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9636      else
9637        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9638      fi
9639      hardcode_libdir_flag_spec='-L$libdir'
9640      hardcode_direct=yes
9641      hardcode_minus_L=yes
9642      hardcode_shlibpath_var=no
9643      ;;
9644
9645    sysv4)
9646      case $host_vendor in
9647        sni)
9648          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649          hardcode_direct=yes # is this really true???
9650        ;;
9651        siemens)
9652          ## LD is ld it makes a PLAMLIB
9653          ## CC just makes a GrossModule.
9654          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9655          reload_cmds='$CC -r -o $output$reload_objs'
9656          hardcode_direct=no
9657        ;;
9658        motorola)
9659          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9660          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9661        ;;
9662      esac
9663      runpath_var='LD_RUN_PATH'
9664      hardcode_shlibpath_var=no
9665      ;;
9666
9667    sysv4.3*)
9668      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669      hardcode_shlibpath_var=no
9670      export_dynamic_flag_spec='-Bexport'
9671      ;;
9672
9673    sysv4*MP*)
9674      if test -d /usr/nec; then
9675        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9676        hardcode_shlibpath_var=no
9677        runpath_var=LD_RUN_PATH
9678        hardcode_runpath_var=yes
9679        ld_shlibs=yes
9680      fi
9681      ;;
9682
9683    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9684      no_undefined_flag='${wl}-z,text'
9685      archive_cmds_need_lc=no
9686      hardcode_shlibpath_var=no
9687      runpath_var='LD_RUN_PATH'
9688
9689      if test "$GCC" = yes; then
9690        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692      else
9693        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695      fi
9696      ;;
9697
9698    sysv5* | sco3.2v5* | sco5v6*)
9699      # Note: We can NOT use -z defs as we might desire, because we do not
9700      # link with -lc, and that would cause any symbols used from libc to
9701      # always be unresolved, which means just about no library would
9702      # ever link correctly.  If we're not using GNU ld we use -z text
9703      # though, which does catch some bad symbols but isn't as heavy-handed
9704      # as -z defs.
9705      no_undefined_flag='${wl}-z,text'
9706      allow_undefined_flag='${wl}-z,nodefs'
9707      archive_cmds_need_lc=no
9708      hardcode_shlibpath_var=no
9709      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9710      hardcode_libdir_separator=':'
9711      link_all_deplibs=yes
9712      export_dynamic_flag_spec='${wl}-Bexport'
9713      runpath_var='LD_RUN_PATH'
9714
9715      if test "$GCC" = yes; then
9716        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9717        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9718      else
9719        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9720        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9721      fi
9722      ;;
9723
9724    uts4*)
9725      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726      hardcode_libdir_flag_spec='-L$libdir'
9727      hardcode_shlibpath_var=no
9728      ;;
9729
9730    *)
9731      ld_shlibs=no
9732      ;;
9733    esac
9734  fi
9735
9736echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9737echo "${ECHO_T}$ld_shlibs" >&6
9738test "$ld_shlibs" = no && can_build_shared=no
9739
9740#
9741# Do we need to explicitly link libc?
9742#
9743case "x$archive_cmds_need_lc" in
9744x|xyes)
9745  # Assume -lc should be added
9746  archive_cmds_need_lc=yes
9747
9748  if test "$enable_shared" = yes && test "$GCC" = yes; then
9749    case $archive_cmds in
9750    *'~'*)
9751      # FIXME: we may have to deal with multi-command sequences.
9752      ;;
9753    '$CC '*)
9754      # Test whether the compiler implicitly links with -lc since on some
9755      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9756      # to ld, don't add -lc before -lgcc.
9757      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9758echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9759      $rm conftest*
9760      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9761
9762      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9763  (eval $ac_compile) 2>&5
9764  ac_status=$?
9765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766  (exit $ac_status); } 2>conftest.err; then
9767        soname=conftest
9768        lib=conftest
9769        libobjs=conftest.$ac_objext
9770        deplibs=
9771        wl=$lt_prog_compiler_wl
9772        pic_flag=$lt_prog_compiler_pic
9773        compiler_flags=-v
9774        linker_flags=-v
9775        verstring=
9776        output_objdir=.
9777        libname=conftest
9778        lt_save_allow_undefined_flag=$allow_undefined_flag
9779        allow_undefined_flag=
9780        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9781  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9782  ac_status=$?
9783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784  (exit $ac_status); }
9785        then
9786          archive_cmds_need_lc=no
9787        else
9788          archive_cmds_need_lc=yes
9789        fi
9790        allow_undefined_flag=$lt_save_allow_undefined_flag
9791      else
9792        cat conftest.err 1>&5
9793      fi
9794      $rm conftest*
9795      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9796echo "${ECHO_T}$archive_cmds_need_lc" >&6
9797      ;;
9798    esac
9799  fi
9800  ;;
9801esac
9802
9803echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9804echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9805library_names_spec=
9806libname_spec='lib$name'
9807soname_spec=
9808shrext_cmds=".so"
9809postinstall_cmds=
9810postuninstall_cmds=
9811finish_cmds=
9812finish_eval=
9813shlibpath_var=
9814shlibpath_overrides_runpath=unknown
9815version_type=none
9816dynamic_linker="$host_os ld.so"
9817sys_lib_dlsearch_path_spec="/lib /usr/lib"
9818if test "$GCC" = yes; then
9819  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9820  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9821    # if the path contains ";" then we assume it to be the separator
9822    # otherwise default to the standard path separator (i.e. ":") - it is
9823    # assumed that no part of a normal pathname contains ";" but that should
9824    # okay in the real world where ";" in dirpaths is itself problematic.
9825    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9826  else
9827    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9828  fi
9829else
9830  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9831fi
9832need_lib_prefix=unknown
9833hardcode_into_libs=no
9834
9835# when you set need_version to no, make sure it does not cause -set_version
9836# flags to be left without arguments
9837need_version=unknown
9838
9839case $host_os in
9840aix3*)
9841  version_type=linux
9842  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9843  shlibpath_var=LIBPATH
9844
9845  # AIX 3 has no versioning support, so we append a major version to the name.
9846  soname_spec='${libname}${release}${shared_ext}$major'
9847  ;;
9848
9849aix4* | aix5*)
9850  version_type=linux
9851  need_lib_prefix=no
9852  need_version=no
9853  hardcode_into_libs=yes
9854  if test "$host_cpu" = ia64; then
9855    # AIX 5 supports IA64
9856    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9857    shlibpath_var=LD_LIBRARY_PATH
9858  else
9859    # With GCC up to 2.95.x, collect2 would create an import file
9860    # for dependence libraries.  The import file would start with
9861    # the line `#! .'.  This would cause the generated library to
9862    # depend on `.', always an invalid library.  This was fixed in
9863    # development snapshots of GCC prior to 3.0.
9864    case $host_os in
9865      aix4 | aix4.[01] | aix4.[01].*)
9866      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9867           echo ' yes '
9868           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9869        :
9870      else
9871        can_build_shared=no
9872      fi
9873      ;;
9874    esac
9875    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9876    # soname into executable. Probably we can add versioning support to
9877    # collect2, so additional links can be useful in future.
9878    if test "$aix_use_runtimelinking" = yes; then
9879      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9880      # instead of lib<name>.a to let people know that these are not
9881      # typical AIX shared libraries.
9882      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9883    else
9884      # We preserve .a as extension for shared libraries through AIX4.2
9885      # and later when we are not doing run time linking.
9886      library_names_spec='${libname}${release}.a $libname.a'
9887      soname_spec='${libname}${release}${shared_ext}$major'
9888    fi
9889    shlibpath_var=LIBPATH
9890  fi
9891  ;;
9892
9893amigaos*)
9894  library_names_spec='$libname.ixlibrary $libname.a'
9895  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9896  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'
9897  ;;
9898
9899beos*)
9900  library_names_spec='${libname}${shared_ext}'
9901  dynamic_linker="$host_os ld.so"
9902  shlibpath_var=LIBRARY_PATH
9903  ;;
9904
9905bsdi[45]*)
9906  version_type=linux
9907  need_version=no
9908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909  soname_spec='${libname}${release}${shared_ext}$major'
9910  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9911  shlibpath_var=LD_LIBRARY_PATH
9912  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9913  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9914  # the default ld.so.conf also contains /usr/contrib/lib and
9915  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9916  # libtool to hard-code these into programs
9917  ;;
9918
9919cygwin* | mingw* | pw32*)
9920  version_type=windows
9921  shrext_cmds=".dll"
9922  need_version=no
9923  need_lib_prefix=no
9924
9925  case $GCC,$host_os in
9926  yes,cygwin* | yes,mingw* | yes,pw32*)
9927    library_names_spec='$libname.dll.a'
9928    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9929    postinstall_cmds='base_file=`basename \${file}`~
9930      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9931      dldir=$destdir/`dirname \$dlpath`~
9932      test -d \$dldir || mkdir -p \$dldir~
9933      $install_prog $dir/$dlname \$dldir/$dlname~
9934      chmod a+x \$dldir/$dlname'
9935    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9936      dlpath=$dir/\$dldll~
9937       $rm \$dlpath'
9938    shlibpath_overrides_runpath=yes
9939
9940    case $host_os in
9941    cygwin*)
9942      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9943      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9944      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9945      ;;
9946    mingw*)
9947      # MinGW DLLs use traditional 'lib' prefix
9948      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9949      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9950      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9951        # It is most probably a Windows format PATH printed by
9952        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9953        # path with ; separators, and with drive letters. We can handle the
9954        # drive letters (cygwin fileutils understands them), so leave them,
9955        # especially as we might pass files found there to a mingw objdump,
9956        # which wouldn't understand a cygwinified path. Ahh.
9957        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9958      else
9959        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9960      fi
9961      ;;
9962    pw32*)
9963      # pw32 DLLs use 'pw' prefix rather than 'lib'
9964      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9965      ;;
9966    esac
9967    ;;
9968
9969  *)
9970    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9971    ;;
9972  esac
9973  dynamic_linker='Win32 ld.exe'
9974  # FIXME: first we should search . and the directory the executable is in
9975  shlibpath_var=PATH
9976  ;;
9977
9978darwin* | rhapsody*)
9979  dynamic_linker="$host_os dyld"
9980  version_type=darwin
9981  need_lib_prefix=no
9982  need_version=no
9983  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9984  soname_spec='${libname}${release}${major}$shared_ext'
9985  shlibpath_overrides_runpath=yes
9986  shlibpath_var=DYLD_LIBRARY_PATH
9987  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9988  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9989  if test "$GCC" = yes; then
9990    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"`
9991  else
9992    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9993  fi
9994  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9995  ;;
9996
9997dgux*)
9998  version_type=linux
9999  need_lib_prefix=no
10000  need_version=no
10001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10002  soname_spec='${libname}${release}${shared_ext}$major'
10003  shlibpath_var=LD_LIBRARY_PATH
10004  ;;
10005
10006freebsd1*)
10007  dynamic_linker=no
10008  ;;
10009
10010kfreebsd*-gnu)
10011  version_type=linux
10012  need_lib_prefix=no
10013  need_version=no
10014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10015  soname_spec='${libname}${release}${shared_ext}$major'
10016  shlibpath_var=LD_LIBRARY_PATH
10017  shlibpath_overrides_runpath=no
10018  hardcode_into_libs=yes
10019  dynamic_linker='GNU ld.so'
10020  ;;
10021
10022freebsd* | dragonfly*)
10023  # DragonFly does not have aout.  When/if they implement a new
10024  # versioning mechanism, adjust this.
10025  if test -x /usr/bin/objformat; then
10026    objformat=`/usr/bin/objformat`
10027  else
10028    case $host_os in
10029    freebsd[123]*) objformat=aout ;;
10030    *) objformat=elf ;;
10031    esac
10032  fi
10033  version_type=freebsd-$objformat
10034  case $version_type in
10035    freebsd-elf*)
10036      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10037      need_version=no
10038      need_lib_prefix=no
10039      ;;
10040    freebsd-*)
10041      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10042      need_version=yes
10043      ;;
10044  esac
10045  shlibpath_var=LD_LIBRARY_PATH
10046  case $host_os in
10047  freebsd2*)
10048    shlibpath_overrides_runpath=yes
10049    ;;
10050  freebsd3.[01]* | freebsdelf3.[01]*)
10051    shlibpath_overrides_runpath=yes
10052    hardcode_into_libs=yes
10053    ;;
10054  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10055  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10056    shlibpath_overrides_runpath=no
10057    hardcode_into_libs=yes
10058    ;;
10059  freebsd*) # from 4.6 on
10060    shlibpath_overrides_runpath=yes
10061    hardcode_into_libs=yes
10062    ;;
10063  esac
10064  ;;
10065
10066gnu*)
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  shlibpath_var=LD_LIBRARY_PATH
10073  hardcode_into_libs=yes
10074  ;;
10075
10076hpux9* | hpux10* | hpux11*)
10077  # Give a soname corresponding to the major version so that dld.sl refuses to
10078  # link against other versions.
10079  version_type=sunos
10080  need_lib_prefix=no
10081  need_version=no
10082  case $host_cpu in
10083  ia64*)
10084    shrext_cmds='.so'
10085    hardcode_into_libs=yes
10086    dynamic_linker="$host_os dld.so"
10087    shlibpath_var=LD_LIBRARY_PATH
10088    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10089    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10090    soname_spec='${libname}${release}${shared_ext}$major'
10091    if test "X$HPUX_IA64_MODE" = X32; then
10092      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10093    else
10094      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10095    fi
10096    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10097    ;;
10098   hppa*64*)
10099     shrext_cmds='.sl'
10100     hardcode_into_libs=yes
10101     dynamic_linker="$host_os dld.sl"
10102     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10103     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10104     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105     soname_spec='${libname}${release}${shared_ext}$major'
10106     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10107     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10108     ;;
10109   *)
10110    shrext_cmds='.sl'
10111    dynamic_linker="$host_os dld.sl"
10112    shlibpath_var=SHLIB_PATH
10113    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10114    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115    soname_spec='${libname}${release}${shared_ext}$major'
10116    ;;
10117  esac
10118  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10119  postinstall_cmds='chmod 555 $lib'
10120  ;;
10121
10122interix3*)
10123  version_type=linux
10124  need_lib_prefix=no
10125  need_version=no
10126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10127  soname_spec='${libname}${release}${shared_ext}$major'
10128  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10129  shlibpath_var=LD_LIBRARY_PATH
10130  shlibpath_overrides_runpath=no
10131  hardcode_into_libs=yes
10132  ;;
10133
10134irix5* | irix6* | nonstopux*)
10135  case $host_os in
10136    nonstopux*) version_type=nonstopux ;;
10137    *)
10138        if test "$lt_cv_prog_gnu_ld" = yes; then
10139                version_type=linux
10140        else
10141                version_type=irix
10142        fi ;;
10143  esac
10144  need_lib_prefix=no
10145  need_version=no
10146  soname_spec='${libname}${release}${shared_ext}$major'
10147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10148  case $host_os in
10149  irix5* | nonstopux*)
10150    libsuff= shlibsuff=
10151    ;;
10152  *)
10153    case $LD in # libtool.m4 will add one of these switches to LD
10154    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10155      libsuff= shlibsuff= libmagic=32-bit;;
10156    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10157      libsuff=32 shlibsuff=N32 libmagic=N32;;
10158    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10159      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10160    *) libsuff= shlibsuff= libmagic=never-match;;
10161    esac
10162    ;;
10163  esac
10164  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10165  shlibpath_overrides_runpath=no
10166  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10167  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10168  hardcode_into_libs=yes
10169  ;;
10170
10171# No shared lib support for Linux oldld, aout, or coff.
10172linux*oldld* | linux*aout* | linux*coff*)
10173  dynamic_linker=no
10174  ;;
10175
10176# This must be Linux ELF.
10177linux*)
10178  version_type=linux
10179  need_lib_prefix=no
10180  need_version=no
10181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182  soname_spec='${libname}${release}${shared_ext}$major'
10183  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10184  shlibpath_var=LD_LIBRARY_PATH
10185  shlibpath_overrides_runpath=no
10186  # This implies no fast_install, which is unacceptable.
10187  # Some rework will be needed to allow for fast_install
10188  # before this can be enabled.
10189  hardcode_into_libs=yes
10190
10191  # Append ld.so.conf contents to the search path
10192  if test -f /etc/ld.so.conf; then
10193    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' ' '`
10194    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10195  fi
10196
10197  # We used to test for /lib/ld.so.1 and disable shared libraries on
10198  # powerpc, because MkLinux only supported shared libraries with the
10199  # GNU dynamic linker.  Since this was broken with cross compilers,
10200  # most powerpc-linux boxes support dynamic linking these days and
10201  # people can always --disable-shared, the test was removed, and we
10202  # assume the GNU/Linux dynamic linker is in use.
10203  dynamic_linker='GNU/Linux ld.so'
10204  ;;
10205
10206knetbsd*-gnu)
10207  version_type=linux
10208  need_lib_prefix=no
10209  need_version=no
10210  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211  soname_spec='${libname}${release}${shared_ext}$major'
10212  shlibpath_var=LD_LIBRARY_PATH
10213  shlibpath_overrides_runpath=no
10214  hardcode_into_libs=yes
10215  dynamic_linker='GNU ld.so'
10216  ;;
10217
10218netbsd*)
10219  version_type=sunos
10220  need_lib_prefix=no
10221  need_version=no
10222  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10223    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10224    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10225    dynamic_linker='NetBSD (a.out) ld.so'
10226  else
10227    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10228    soname_spec='${libname}${release}${shared_ext}$major'
10229    dynamic_linker='NetBSD ld.elf_so'
10230  fi
10231  shlibpath_var=LD_LIBRARY_PATH
10232  shlibpath_overrides_runpath=yes
10233  hardcode_into_libs=yes
10234  ;;
10235
10236newsos6)
10237  version_type=linux
10238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239  shlibpath_var=LD_LIBRARY_PATH
10240  shlibpath_overrides_runpath=yes
10241  ;;
10242
10243nto-qnx*)
10244  version_type=linux
10245  need_lib_prefix=no
10246  need_version=no
10247  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248  soname_spec='${libname}${release}${shared_ext}$major'
10249  shlibpath_var=LD_LIBRARY_PATH
10250  shlibpath_overrides_runpath=yes
10251  ;;
10252
10253openbsd*)
10254  version_type=sunos
10255  sys_lib_dlsearch_path_spec="/usr/lib"
10256  need_lib_prefix=no
10257  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10258  case $host_os in
10259    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10260    *)                         need_version=no  ;;
10261  esac
10262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10263  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10264  shlibpath_var=LD_LIBRARY_PATH
10265  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10266    case $host_os in
10267      openbsd2.[89] | openbsd2.[89].*)
10268        shlibpath_overrides_runpath=no
10269        ;;
10270      *)
10271        shlibpath_overrides_runpath=yes
10272        ;;
10273      esac
10274  else
10275    shlibpath_overrides_runpath=yes
10276  fi
10277  ;;
10278
10279os2*)
10280  libname_spec='$name'
10281  shrext_cmds=".dll"
10282  need_lib_prefix=no
10283  library_names_spec='$libname${shared_ext} $libname.a'
10284  dynamic_linker='OS/2 ld.exe'
10285  shlibpath_var=LIBPATH
10286  ;;
10287
10288osf3* | osf4* | osf5*)
10289  version_type=osf
10290  need_lib_prefix=no
10291  need_version=no
10292  soname_spec='${libname}${release}${shared_ext}$major'
10293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294  shlibpath_var=LD_LIBRARY_PATH
10295  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10296  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10297  ;;
10298
10299solaris*)
10300  version_type=linux
10301  need_lib_prefix=no
10302  need_version=no
10303  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304  soname_spec='${libname}${release}${shared_ext}$major'
10305  shlibpath_var=LD_LIBRARY_PATH
10306  shlibpath_overrides_runpath=yes
10307  hardcode_into_libs=yes
10308  # ldd complains unless libraries are executable
10309  postinstall_cmds='chmod +x $lib'
10310  ;;
10311
10312sunos4*)
10313  version_type=sunos
10314  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10315  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10316  shlibpath_var=LD_LIBRARY_PATH
10317  shlibpath_overrides_runpath=yes
10318  if test "$with_gnu_ld" = yes; then
10319    need_lib_prefix=no
10320  fi
10321  need_version=yes
10322  ;;
10323
10324sysv4 | sysv4.3*)
10325  version_type=linux
10326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10327  soname_spec='${libname}${release}${shared_ext}$major'
10328  shlibpath_var=LD_LIBRARY_PATH
10329  case $host_vendor in
10330    sni)
10331      shlibpath_overrides_runpath=no
10332      need_lib_prefix=no
10333      export_dynamic_flag_spec='${wl}-Blargedynsym'
10334      runpath_var=LD_RUN_PATH
10335      ;;
10336    siemens)
10337      need_lib_prefix=no
10338      ;;
10339    motorola)
10340      need_lib_prefix=no
10341      need_version=no
10342      shlibpath_overrides_runpath=no
10343      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10344      ;;
10345  esac
10346  ;;
10347
10348sysv4*MP*)
10349  if test -d /usr/nec ;then
10350    version_type=linux
10351    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10352    soname_spec='$libname${shared_ext}.$major'
10353    shlibpath_var=LD_LIBRARY_PATH
10354  fi
10355  ;;
10356
10357sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10358  version_type=freebsd-elf
10359  need_lib_prefix=no
10360  need_version=no
10361  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10362  soname_spec='${libname}${release}${shared_ext}$major'
10363  shlibpath_var=LD_LIBRARY_PATH
10364  hardcode_into_libs=yes
10365  if test "$with_gnu_ld" = yes; then
10366    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10367    shlibpath_overrides_runpath=no
10368  else
10369    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10370    shlibpath_overrides_runpath=yes
10371    case $host_os in
10372      sco3.2v5*)
10373        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10374        ;;
10375    esac
10376  fi
10377  sys_lib_dlsearch_path_spec='/usr/lib'
10378  ;;
10379
10380uts4*)
10381  version_type=linux
10382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383  soname_spec='${libname}${release}${shared_ext}$major'
10384  shlibpath_var=LD_LIBRARY_PATH
10385  ;;
10386
10387*)
10388  dynamic_linker=no
10389  ;;
10390esac
10391echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10392echo "${ECHO_T}$dynamic_linker" >&6
10393test "$dynamic_linker" = no && can_build_shared=no
10394
10395variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10396if test "$GCC" = yes; then
10397  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10398fi
10399
10400echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10401echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10402hardcode_action=
10403if test -n "$hardcode_libdir_flag_spec" || \
10404   test -n "$runpath_var" || \
10405   test "X$hardcode_automatic" = "Xyes" ; then
10406
10407  # We can hardcode non-existant directories.
10408  if test "$hardcode_direct" != no &&
10409     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10410     # have to relink, otherwise we might link with an installed library
10411     # when we should be linking with a yet-to-be-installed one
10412     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10413     test "$hardcode_minus_L" != no; then
10414    # Linking always hardcodes the temporary library directory.
10415    hardcode_action=relink
10416  else
10417    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10418    hardcode_action=immediate
10419  fi
10420else
10421  # We cannot hardcode anything, or else we can only hardcode existing
10422  # directories.
10423  hardcode_action=unsupported
10424fi
10425echo "$as_me:$LINENO: result: $hardcode_action" >&5
10426echo "${ECHO_T}$hardcode_action" >&6
10427
10428if test "$hardcode_action" = relink; then
10429  # Fast installation is not supported
10430  enable_fast_install=no
10431elif test "$shlibpath_overrides_runpath" = yes ||
10432     test "$enable_shared" = no; then
10433  # Fast installation is not necessary
10434  enable_fast_install=needless
10435fi
10436
10437striplib=
10438old_striplib=
10439echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10440echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10441if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10442  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10443  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10444  echo "$as_me:$LINENO: result: yes" >&5
10445echo "${ECHO_T}yes" >&6
10446else
10447# FIXME - insert some real tests, host_os isn't really good enough
10448  case $host_os in
10449   darwin*)
10450       if test -n "$STRIP" ; then
10451         striplib="$STRIP -x"
10452         echo "$as_me:$LINENO: result: yes" >&5
10453echo "${ECHO_T}yes" >&6
10454       else
10455  echo "$as_me:$LINENO: result: no" >&5
10456echo "${ECHO_T}no" >&6
10457fi
10458       ;;
10459   *)
10460  echo "$as_me:$LINENO: result: no" >&5
10461echo "${ECHO_T}no" >&6
10462    ;;
10463  esac
10464fi
10465
10466if test "x$enable_dlopen" != xyes; then
10467  enable_dlopen=unknown
10468  enable_dlopen_self=unknown
10469  enable_dlopen_self_static=unknown
10470else
10471  lt_cv_dlopen=no
10472  lt_cv_dlopen_libs=
10473
10474  case $host_os in
10475  beos*)
10476    lt_cv_dlopen="load_add_on"
10477    lt_cv_dlopen_libs=
10478    lt_cv_dlopen_self=yes
10479    ;;
10480
10481  mingw* | pw32*)
10482    lt_cv_dlopen="LoadLibrary"
10483    lt_cv_dlopen_libs=
10484   ;;
10485
10486  cygwin*)
10487    lt_cv_dlopen="dlopen"
10488    lt_cv_dlopen_libs=
10489   ;;
10490
10491  darwin*)
10492  # if libdl is installed we need to link against it
10493    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10494echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10495if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10496  echo $ECHO_N "(cached) $ECHO_C" >&6
10497else
10498  ac_check_lib_save_LIBS=$LIBS
10499LIBS="-ldl  $LIBS"
10500cat >conftest.$ac_ext <<_ACEOF
10501/* confdefs.h.  */
10502_ACEOF
10503cat confdefs.h >>conftest.$ac_ext
10504cat >>conftest.$ac_ext <<_ACEOF
10505/* end confdefs.h.  */
10506
10507/* Override any gcc2 internal prototype to avoid an error.  */
10508#ifdef __cplusplus
10509extern "C"
10510#endif
10511/* We use char because int might match the return type of a gcc2
10512   builtin and then its argument prototype would still apply.  */
10513char dlopen ();
10514int
10515main ()
10516{
10517dlopen ();
10518  ;
10519  return 0;
10520}
10521_ACEOF
10522rm -f conftest.$ac_objext conftest$ac_exeext
10523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524  (eval $ac_link) 2>conftest.er1
10525  ac_status=$?
10526  grep -v '^ *+' conftest.er1 >conftest.err
10527  rm -f conftest.er1
10528  cat conftest.err >&5
10529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530  (exit $ac_status); } &&
10531         { ac_try='test -z "$ac_c_werror_flag"
10532                         || test ! -s conftest.err'
10533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534  (eval $ac_try) 2>&5
10535  ac_status=$?
10536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537  (exit $ac_status); }; } &&
10538         { ac_try='test -s conftest$ac_exeext'
10539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540  (eval $ac_try) 2>&5
10541  ac_status=$?
10542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543  (exit $ac_status); }; }; then
10544  ac_cv_lib_dl_dlopen=yes
10545else
10546  echo "$as_me: failed program was:" >&5
10547sed 's/^/| /' conftest.$ac_ext >&5
10548
10549ac_cv_lib_dl_dlopen=no
10550fi
10551rm -f conftest.err conftest.$ac_objext \
10552      conftest$ac_exeext conftest.$ac_ext
10553LIBS=$ac_check_lib_save_LIBS
10554fi
10555echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10556echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10557if test $ac_cv_lib_dl_dlopen = yes; then
10558  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10559else
10560
10561    lt_cv_dlopen="dyld"
10562    lt_cv_dlopen_libs=
10563    lt_cv_dlopen_self=yes
10564
10565fi
10566
10567   ;;
10568
10569  *)
10570    echo "$as_me:$LINENO: checking for shl_load" >&5
10571echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10572if test "${ac_cv_func_shl_load+set}" = set; then
10573  echo $ECHO_N "(cached) $ECHO_C" >&6
10574else
10575  cat >conftest.$ac_ext <<_ACEOF
10576/* confdefs.h.  */
10577_ACEOF
10578cat confdefs.h >>conftest.$ac_ext
10579cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h.  */
10581/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10582   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10583#define shl_load innocuous_shl_load
10584
10585/* System header to define __stub macros and hopefully few prototypes,
10586    which can conflict with char shl_load (); below.
10587    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10588    <limits.h> exists even on freestanding compilers.  */
10589
10590#ifdef __STDC__
10591# include <limits.h>
10592#else
10593# include <assert.h>
10594#endif
10595
10596#undef shl_load
10597
10598/* Override any gcc2 internal prototype to avoid an error.  */
10599#ifdef __cplusplus
10600extern "C"
10601{
10602#endif
10603/* We use char because int might match the return type of a gcc2
10604   builtin and then its argument prototype would still apply.  */
10605char shl_load ();
10606/* The GNU C library defines this for functions which it implements
10607    to always fail with ENOSYS.  Some functions are actually named
10608    something starting with __ and the normal name is an alias.  */
10609#if defined (__stub_shl_load) || defined (__stub___shl_load)
10610choke me
10611#else
10612char (*f) () = shl_load;
10613#endif
10614#ifdef __cplusplus
10615}
10616#endif
10617
10618int
10619main ()
10620{
10621return f != shl_load;
10622  ;
10623  return 0;
10624}
10625_ACEOF
10626rm -f conftest.$ac_objext conftest$ac_exeext
10627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10628  (eval $ac_link) 2>conftest.er1
10629  ac_status=$?
10630  grep -v '^ *+' conftest.er1 >conftest.err
10631  rm -f conftest.er1
10632  cat conftest.err >&5
10633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634  (exit $ac_status); } &&
10635         { ac_try='test -z "$ac_c_werror_flag"
10636                         || test ! -s conftest.err'
10637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638  (eval $ac_try) 2>&5
10639  ac_status=$?
10640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641  (exit $ac_status); }; } &&
10642         { ac_try='test -s conftest$ac_exeext'
10643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644  (eval $ac_try) 2>&5
10645  ac_status=$?
10646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647  (exit $ac_status); }; }; then
10648  ac_cv_func_shl_load=yes
10649else
10650  echo "$as_me: failed program was:" >&5
10651sed 's/^/| /' conftest.$ac_ext >&5
10652
10653ac_cv_func_shl_load=no
10654fi
10655rm -f conftest.err conftest.$ac_objext \
10656      conftest$ac_exeext conftest.$ac_ext
10657fi
10658echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10659echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10660if test $ac_cv_func_shl_load = yes; then
10661  lt_cv_dlopen="shl_load"
10662else
10663  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10664echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10665if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10666  echo $ECHO_N "(cached) $ECHO_C" >&6
10667else
10668  ac_check_lib_save_LIBS=$LIBS
10669LIBS="-ldld  $LIBS"
10670cat >conftest.$ac_ext <<_ACEOF
10671/* confdefs.h.  */
10672_ACEOF
10673cat confdefs.h >>conftest.$ac_ext
10674cat >>conftest.$ac_ext <<_ACEOF
10675/* end confdefs.h.  */
10676
10677/* Override any gcc2 internal prototype to avoid an error.  */
10678#ifdef __cplusplus
10679extern "C"
10680#endif
10681/* We use char because int might match the return type of a gcc2
10682   builtin and then its argument prototype would still apply.  */
10683char shl_load ();
10684int
10685main ()
10686{
10687shl_load ();
10688  ;
10689  return 0;
10690}
10691_ACEOF
10692rm -f conftest.$ac_objext conftest$ac_exeext
10693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694  (eval $ac_link) 2>conftest.er1
10695  ac_status=$?
10696  grep -v '^ *+' conftest.er1 >conftest.err
10697  rm -f conftest.er1
10698  cat conftest.err >&5
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); } &&
10701         { ac_try='test -z "$ac_c_werror_flag"
10702                         || test ! -s conftest.err'
10703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704  (eval $ac_try) 2>&5
10705  ac_status=$?
10706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707  (exit $ac_status); }; } &&
10708         { ac_try='test -s conftest$ac_exeext'
10709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710  (eval $ac_try) 2>&5
10711  ac_status=$?
10712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713  (exit $ac_status); }; }; then
10714  ac_cv_lib_dld_shl_load=yes
10715else
10716  echo "$as_me: failed program was:" >&5
10717sed 's/^/| /' conftest.$ac_ext >&5
10718
10719ac_cv_lib_dld_shl_load=no
10720fi
10721rm -f conftest.err conftest.$ac_objext \
10722      conftest$ac_exeext conftest.$ac_ext
10723LIBS=$ac_check_lib_save_LIBS
10724fi
10725echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10726echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10727if test $ac_cv_lib_dld_shl_load = yes; then
10728  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10729else
10730  echo "$as_me:$LINENO: checking for dlopen" >&5
10731echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10732if test "${ac_cv_func_dlopen+set}" = set; then
10733  echo $ECHO_N "(cached) $ECHO_C" >&6
10734else
10735  cat >conftest.$ac_ext <<_ACEOF
10736/* confdefs.h.  */
10737_ACEOF
10738cat confdefs.h >>conftest.$ac_ext
10739cat >>conftest.$ac_ext <<_ACEOF
10740/* end confdefs.h.  */
10741/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10742   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10743#define dlopen innocuous_dlopen
10744
10745/* System header to define __stub macros and hopefully few prototypes,
10746    which can conflict with char dlopen (); below.
10747    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10748    <limits.h> exists even on freestanding compilers.  */
10749
10750#ifdef __STDC__
10751# include <limits.h>
10752#else
10753# include <assert.h>
10754#endif
10755
10756#undef dlopen
10757
10758/* Override any gcc2 internal prototype to avoid an error.  */
10759#ifdef __cplusplus</