source: ThirdParty/SoPlex/stable/1.4/configure @ 3426

Last change on this file since 3426 was 3426, checked in by tkr, 7 years ago

temporarily committing release candidate

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